/* ============================================================
   Hvordan fungerer forliksprosessen?
   Vertikal timeline med navigasjon til venstre, innhold til h&oslash;yre
   ============================================================ */
#info-process {
    max-width: 1100px;
    margin: 20px auto;
    padding: 40px 20px 60px;
    text-align: left;
}
#info-process h1 {
    color: #111;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.01em;
}
#info-process .info-divider {
    height: 2px;
    background: #b02626;
    margin: 24px 0 50px;
}

/* ---------- Timeline-layout ---------- */
.timeline-wrapper {
    position: relative;
    min-height: 600px;
}
.timeline-row {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* ---------- Venstre: navigasjon ---------- */
.timeline-nav {
    position: relative;
    padding: 0;
}
.timeline-line {
    position: absolute;
    left: 25px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: #d1d5db;
    z-index: 0;
}
.timeline-progress {
    position: absolute;
    left: 25px;
    top: 40px;
    width: 2px;
    background: #b02626;
    height: 0;
    transition: height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}
.timeline-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}
.timeline-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #f8fafc;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    font-family: Helvetica, Arial, sans-serif;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease;
}
.timeline-label {
    margin-left: 18px;
    color: #374151;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.3;
}
.timeline-nav-item:hover .timeline-number {
    border-color: #b02626;
    color: #b02626;
}
.timeline-nav-item.active .timeline-number {
    transform: scale(1.25);
    background: #b02626;
    color: #fff;
    border-color: #b02626;
    box-shadow: 0 0 18px rgba(176, 38, 38, 0.35);
    font-size: 1.2rem;
    font-weight: 800;
}
.timeline-nav-item.active .timeline-label {
    color: #b02626;
    font-weight: 700;
}

/* ---------- H&oslash;yre: innhold ---------- */
.timeline-content {
    position: relative;
    min-height: 280px;
    padding: 0 10px;
}
.timeline-step {
    display: none;
    animation: timelineFadeIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.timeline-step.active {
    display: block;
}
.timeline-step-counter {
    position: absolute;
    top: 0;
    right: 0;
    color: #b02626;
    font-weight: 700;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
}
.timeline-step h2 {
    color: #111;
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0 70px 18px 0;
    line-height: 1.25;
}
.timeline-step p {
    color: #374151;
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0;
}

@keyframes timelineFadeIn {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ---------- CTA nederst ---------- */
.info-back {
    margin-top: 60px;
    text-align: center;
}

/* ---------- Responsivt: stack p&aring; smale skjermer ---------- */
@media (max-width: 800px) {
    .timeline-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .timeline-label {
        display: none;             /* bare tall p&aring; smale skjermer */
    }
    .timeline-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    .timeline-line,
    .timeline-progress {
        display: none;
    }
    .timeline-nav-item {
        padding: 6px;
    }
    .timeline-number {
        width: 44px;
        height: 44px;
        font-size: 0.95rem;
    }
    .timeline-nav-item.active .timeline-number {
        transform: scale(1.15);
        font-size: 1.05rem;
    }
    .timeline-step h2 {
        font-size: 1.4rem;
        margin-right: 50px;
    }
}
