/* ─── TIMELINE: MEIN WEG ────────────────────────────────────────────────────── */

.timeline-section {
  background: var(--c-paper);
}

.timeline-wrapper {
  position: relative;
  margin-top: var(--space-lg);
}

/* Desktop: goldene S-Welle mit Stationen links/rechts */
@media (min-width: 769px) {
  .timeline-wrapper {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    gap: 0;
    align-items: start;
  }

  /* Mittelspalte dehnt sich über alle 4 Reihen und wird Positioning-Kontext für das SVG */
  .timeline-path-col {
    grid-column: 2;
    grid-row: 1 / 5;
    align-self: stretch;
    position: relative;
  }

  /* SVG füllt die Mittelspalte vollständig; overflow:visible lässt die Welle in die Stationsspalten schwingen */
  .timeline-path-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .timeline-station {
    padding-bottom: var(--space-xl);
    min-height: 200px;
  }

  /*
   * nth-child zählt ALLE Kinder von .timeline-wrapper:
   *   1 = Station 01, 2 = .timeline-path-col, 3 = Station 02,
   *   4 = Station 03, 5 = Station 04
   */
  .timeline-wrapper > div:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
    padding-right: 56px; /* Abstand zur S-Welle */
  }
  .timeline-wrapper > div:nth-child(3) {
    grid-column: 3;
    grid-row: 2;
    padding-left: 56px;
  }
  .timeline-wrapper > div:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
    text-align: right;
    padding-right: 56px;
  }
  .timeline-wrapper > div:nth-child(5) {
    grid-column: 3;
    grid-row: 4;
    padding-left: 56px;
  }
}

/* Mobile: einfache vertikale Liste */
@media (max-width: 768px) {
  .timeline-path-col { display: none; }

  .timeline-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 32px;
    border-left: 2px solid oklch(0.78 0.12 72 / 0.25);
    margin-left: var(--space-sm);
  }

  .timeline-station {
    position: relative;
    padding: 0 0 var(--space-lg) var(--space-md);
  }
  .timeline-station::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--c-gold);
    box-shadow: 0 0 0 4px var(--c-paper);
  }
}

/* Stationsinhalt */
.station-number {
  font-family: var(--font-primary);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 4px;
  display: block;
}
.station-period {
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--c-lavender);
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.station-title {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--c-night);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.station-subtitle {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--c-indigo);
  margin-bottom: var(--space-xs);
}

.station-text {
  font-family: var(--font-secondary);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.65;
  color: oklch(0.38 0.12 265);
}

.station-metaphor {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-gold);
  opacity: 0.75;
}

/* SVG Pfad-Animation: JS setzt dasharray/dashoffset per inline style auf getTotalLength();
   danach setzt JS dashoffset auf 0 — die transition greift auf inline-style-Änderungen */
.timeline-path {
  transition: stroke-dashoffset 1200ms linear;
}

.timeline-node {
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}
.timeline-node.visible {
  opacity: 1;
}
