/* ── producttour.css ──────────────────────────────────
   Module: nf--producttour
   ATOSS Time Control 12 Produkttour — left chapter rail
   with accordion of stations, right viewer (browser or card
   frame) + caption + prev/next controls.

   Data + step content are German-only (see nf/js/producttour.js).
   ──────────────────────────────────────────────────────── */

.nf--producttour__body {
    display: grid;
    grid-template-columns: 34rem 1fr;
    gap: var(--spacing6);
    align-items: start;
    /* Safety net: when the author omits `.nf--wrap`, self-constrain to the
       same 10-col grid width so the module doesn't spill the full viewport.
       Inside `.nf--wrap` this is a no-op (the wrap already caps the parent). */
    max-width: calc(var(--grid-column-width) * 10 + var(--grid-gap) * 9);
    margin: 0 auto;
}

/* ── Left: chapter / step navigator ────────────────── */
.nf--producttour__nav {
    background: var(--white);
    border: 1px solid var(--fog);
}

.nf--producttour__chap {
    border-bottom: 1px solid var(--fog);
}

.nf--producttour__chap:last-child {
    border-bottom: 0;
}

.nf--producttour__chap-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.6rem 1.8rem;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    transition: background 160ms ease;
    font-family: inherit;
}

.nf--producttour__chap-head:hover {
    background: var(--pale);
}

.nf--producttour__chap.is-open .nf--producttour__chap-head {
    background: var(--pale);
}

.nf--producttour__chap-num {
    flex: none;
    width: 2.8rem;
    height: 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pale);
    color: var(--slate);
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 999px;
    transition: 160ms;
}

.nf--producttour__chap.is-open .nf--producttour__chap-num {
    background: var(--orange);
    color: var(--white);
}

.nf--producttour__chap-label {
    flex: 1;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    color: var(--black);
    line-height: 1.2;
}

.nf--producttour__chap-chev {
    flex: none;
    width: 1.6rem;
    height: 1.6rem;
    color: var(--shark);
    transition: transform 200ms ease;
}

.nf--producttour__chap.is-open .nf--producttour__chap-chev {
    transform: rotate(180deg);
    color: var(--orange);
}

.nf--producttour__steps {
    list-style: none;
    margin: 0;
    padding: 0 0 0.8rem;
    display: none;
}

.nf--producttour__chap.is-open .nf--producttour__steps {
    display: block;
    list-style-type: none;
}

.nf--producttour__step {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.9rem 1.8rem 0.9rem 2.2rem;
    background: none;
    border: 0;
    border-left: 3px solid transparent;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 1.35rem;
    color: var(--slate);
    line-height: 1.35;
    transition: 140ms;
}

.nf--producttour__step:hover {
    color: var(--black);
    background: var(--pale);
}

.nf--producttour__step.is-active {
    border-left-color: var(--orange);
    color: var(--black);
    font-weight: 600;
}

.nf--producttour__step-tick {
    flex: none;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: var(--fog);
    transition: 140ms;
}

.nf--producttour__step.is-active .nf--producttour__step-tick {
    background: var(--orange);
}

/* ── Right: viewer + caption ────────────────────────── */
.nf--producttour__stage {
    display: flex;
    flex-direction: column;
}

.nf--producttour__viewer {
    background: var(--pale);
    border: 1px solid var(--fog);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.8rem;
    height: 48rem;
    overflow: hidden;
}

.nf--producttour__viewer-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Browser frame */
.nf--producttour__browser {
    width: 100%;
    max-width: 64rem;
    max-height: 100%;
    background: var(--white);
    border: 1px solid var(--fog);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2rem 5rem rgba(11, 12, 16, 0.18);
    display: flex;
    flex-direction: column;
}

.nf--producttour__browser-bar {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 1.3rem;
    background: #f3f4f6;
    border-bottom: 1px solid var(--fog);
    flex: none;
}

.nf--producttour__browser-dot {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 999px;
    background: #d6dae0;
}

.nf--producttour__browser-dot:nth-child(1) { background: #ff6b6b; }
.nf--producttour__browser-dot:nth-child(2) { background: #ffce5b; }
.nf--producttour__browser-dot:nth-child(3) { background: #67d28b; }

.nf--producttour__browser-addr {
    margin-left: 1rem;
    flex: 1;
    background: var(--white);
    border: 1px solid var(--fog);
    border-radius: 999px;
    padding: 0.4rem 1.2rem;
    font-size: 1.1rem;
    color: var(--shark);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.nf--producttour__browser-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 38.4rem;
    object-fit: cover;
    object-position: top center;
}

/* Card frame (cropped components) */
.nf--producttour__card {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nf--producttour__card img {
    max-width: 100%;
    max-height: 40rem;
    width: auto;
    height: auto;
    border-radius: 1.2rem;
    border: 1px solid var(--fog);
    box-shadow: 0 2rem 5rem rgba(11, 12, 16, 0.18);
    background: var(--white);
}

/* ── Caption + controls ─────────────────────────────── */
.nf--producttour__caption {
    padding: 2.6rem 0.4rem 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.6rem 2.4rem;
    align-items: start;
}

.nf--producttour__cap-text {
    max-width: 64rem;
    min-height: 11.8rem;
}

.nf--producttour__cap-chap {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 0.8rem;
}

.nf--producttour__cap-title {
    font-weight: 600;
    font-size: 2.3rem;
    letter-spacing: -0.01em;
    color: var(--black);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.nf--producttour__cap-body {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--slate);
    margin: 0;
}

.nf--producttour__cap-body strong {
    color: var(--black);
    font-weight: 600;
}

.nf--producttour__ctrl {
    display: flex;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
}

.nf--producttour__cbtn {
    width: 4.4rem;
    height: 4.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--fog);
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    transition: 160ms;
    border-radius: 2px;
}

.nf--producttour__cbtn:hover:not(:disabled) {
    border-color: var(--orange);
    color: var(--orange);
}

.nf--producttour__cbtn:disabled {
    opacity: 0.35;
    cursor: default;
}

.nf--producttour__count {
    font-size: 1.3rem;
    color: var(--shark);
    font-variant-numeric: tabular-nums;
    min-width: 9.2rem;
    text-align: center;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
    .nf--producttour__body {
        grid-template-columns: 1fr;
        gap: var(--spacing5);
    }

    /* On mobile: stage on top, nav below */
    .nf--producttour__stage { order: 1; }
    .nf--producttour__nav { order: 2; }

    .nf--producttour__viewer {
        height: auto;
        min-height: 30rem;
        padding: 2.2rem;
    }

    .nf--producttour__browser {
        max-width: 56rem;
        margin: 0 auto;
    }

    .nf--producttour__card img {
        max-height: 52vh;
    }

    .nf--producttour__browser-img {
        max-height: 52vh;
        object-fit: contain;
    }
}

@media (max-width: 640px) {
    .nf--producttour__viewer {
        padding: 1.4rem;
        min-height: 24rem;
    }

    .nf--producttour__viewer-inner {
        align-items: flex-start;
    }

    .nf--producttour__browser-img,
    .nf--producttour__card img {
        max-height: 46vh;
    }

    .nf--producttour__caption {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 1.8rem;
    }

    .nf--producttour__cap-text {
        min-height: 0;
    }

    .nf--producttour__cap-title {
        font-size: 2rem;
    }

    .nf--producttour__ctrl {
        width: 100%;
        justify-content: space-between;
    }

    .nf--producttour__count {
        flex: 1;
    }

    .nf--producttour__chap-head {
        padding: 1.4rem 1.6rem;
    }

    .nf--producttour__step {
        padding: 1.1rem 1.6rem 1.1rem 2rem;
        font-size: 1.4rem;
    }
}
