/* =========================================
   Block: Zeitlinie (kss/lswn-timeline)
   ========================================= */

.lswn-timeline {
    position: relative;
    z-index: 4;
    /* !important nötig: das Parent-Theme erzwingt für Block-Kinder von
       .is-layout-constrained per html body :is(...)>:where(...) eine
       max-width von --kss-container-max-width (global.css) — diese Regel
       hat durch das html/body-Präfix höhere Spezifität als eine einfache
       Klassenregel, obwohl :where() selbst Spezifität 0 hat (gleiches
       Fallstrick-Muster wie die :not(#fakeID)-Hacks, siehe Projekt-Doku). */
    max-width: 860px !important;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.lswn-timeline__head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 56px;
}

.lswn-timeline__head h2 {
    font-family: var(--lswn-serif);
    font-weight: 400;
    line-height: var(--lswn-leading-heading);
    letter-spacing: var(--lswn-tracking-heading);
    font-size: clamp(27px, 3.4vw, 40px);
    color: var(--lswn-wine);
    margin: 0 0 14px;
}

.lswn-timeline__head p {
    color: var(--lswn-ink-soft);
    font-size: 16.5px;
    margin: 0;
}

.lswn-timeline__steps {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.lswn-timeline__rail-svg {
    position: absolute;
    left: 166px;
    top: 6px;
    bottom: 6px;
    width: 24px;
    pointer-events: none;
    overflow: visible;
}

.lswn-timeline__rail-svg path {
    fill: none;
    stroke: var(--lswn-gold);
    stroke-width: 1.2;
    stroke-linecap: round;
}

@media (max-width: 560px) {
    .lswn-timeline__rail-svg {
        left: 16px;
        width: 16px;
    }
}

.lswn-timeline__step {
    position: relative;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 26px;
    margin-bottom: clamp(40px, 5.5vw, 64px);
}

@media (max-width: 560px) {
    .lswn-timeline__step {
        grid-template-columns: 40px 1fr;
        gap: 18px;
    }
}

.lswn-timeline__step:last-child {
    margin-bottom: 0;
}

.lswn-timeline__mark {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--lswn-parch);
    border: 1.4px solid var(--lswn-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--lswn-serif);
    font-style: italic;
    font-size: 14px;
    color: var(--lswn-wine);
}

@media (max-width: 560px) {
    .lswn-timeline__mark {
        width: 36px;
        height: 36px;
        font-size: 11px;
    }
}

.lswn-timeline__body h3 {
    font-size: clamp(19px, 2.2vw, 25px);
    color: var(--lswn-wine);
    margin: 0 0 8px;
}

.lswn-timeline__body p {
    color: var(--lswn-ink-soft);
    font-size: 15.5px;
    line-height: 1.8;
    max-width: 56ch;
    margin: 0;
}

/* --- Einblenden beim Scrollen (siehe script.js) ---
   Standardzustand ist sichtbar (Progressive Enhancement): der ausgeblendete
   Startzustand gilt nur, wenn script.js den Block aktiv mit
   .is-reveal-armed markiert (IntersectionObserver verfügbar). Ohne JS oder
   im Block-Editor-Preview (wo das Frontend-Script nicht zuverlässig läuft)
   bleibt der Block dadurch immer sichtbar statt dauerhaft bei opacity:0
   hängen zu bleiben und kaputt zu wirken. */
.lswn-timeline.is-reveal-armed .lswn-timeline__head,
.lswn-timeline.is-reveal-armed .lswn-timeline__step {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .8s cubic-bezier(.2, .7, .3, 1), transform .8s cubic-bezier(.2, .7, .3, 1);
}

.lswn-timeline.is-reveal-armed .lswn-timeline__head.is-visible,
.lswn-timeline.is-reveal-armed .lswn-timeline__step.is-visible {
    opacity: 1;
    transform: none;
}


@media screen and (max-width: 450px) {
    .lswn-timeline__Inner {
        padding: 0 2rem;
    }
}