/* Gerome Oberste-Lehn · Landingpage
   Farbwelt "Rote Erde", Aufbau Variante B. Alle Werte stehen in :root. */

:root {
  --bg: #100F0E;
  --bg-2: #181614;
  --line: #2C2926;
  --text: #F0EDE7;
  --muted: #A7A199;
  --faint: #8A847C;
  --rail-dash: #5A554F;
  --field-line: #56514B;
  --accent: #E4572E;
  --on-accent: #100F0E;
  --land: #262320;
  --paper: #F0EDE7;
  --paper-ink: #100F0E;
  --accent-on-paper: #B03A19;

  --display: "Anybody", "Arial Narrow", sans-serif;
  --sans: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Spline Sans Mono", Menlo, monospace;

  --pad: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --head-h: 64px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-arrive: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 150ms;
  --dur-hover: 200ms;
  --dur-reveal: 800ms;
  --dur-clip: 1100ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); scroll-padding-top: var(--head-h); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--accent); color: var(--on-accent); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--muted); }
.display { font-family: var(--display); font-weight: 900; font-stretch: 55%; text-transform: uppercase; line-height: 0.88; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.link { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 4px; }

.skip { position: absolute; left: 16px; top: -80px; z-index: 50; padding: 10px 14px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; border-radius: 4px; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; background: var(--accent); color: var(--on-accent); font: 700 16px/1 var(--sans); text-decoration: none; border: 0; border-radius: 4px; cursor: pointer; white-space: nowrap; transition: transform var(--dur-press) var(--ease-out), filter var(--dur-hover) ease; }
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header */
.head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.head .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--head-h); gap: 16px; }
.wordmark { font-family: var(--display); font-weight: 900; font-stretch: 60%; font-size: 26px; line-height: 1; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.head-right { display: flex; align-items: center; gap: 20px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.menu-btn { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; padding: 0; background: none; border: 0; color: var(--text); cursor: pointer; }
.menu-btn span { position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 1px; background: currentColor; transition: transform 240ms var(--ease-out), opacity 160ms ease; }
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 27px; }
.head.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.head.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.head.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
.nav-link { color: var(--muted); text-decoration: none; transition: color var(--dur-hover) ease; }
/* Sprachschalter DE / EN: aktuelle Sprache hell, die andere ist der Link */
.lang { display: flex; align-items: center; margin: 0; font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: 0.04em; color: var(--text); }
.lang > * { position: relative; display: inline-flex; align-items: center; min-height: 42px; padding: 0 8px; }
.lang > * + *::before { content: ""; position: absolute; left: 0; top: 50%; height: 12px; margin-top: -6px; border-left: 1px solid var(--field-line); }
.lang a { color: var(--muted); text-decoration: none; transition: color var(--dur-hover) ease; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(1.08); }
  .nav-link:hover, .foot a:hover, .lang a:hover { color: var(--text); }
  .link:hover, .mail:hover { text-decoration-thickness: 3px; }
}

/* Hero mit Foto: Bild über die ganze Fläche, Text links auf dem dunklen Teil */
.hero { position: relative; isolation: isolate; min-height: calc(100svh - var(--head-h)); display: flex; align-items: center; overflow: hidden; padding: clamp(40px, 6vw, 72px) 0; }
.hero-photo { position: absolute; inset: 0; z-index: -1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 72%, transparent) 30%, transparent 60%), linear-gradient(0deg, var(--bg) 0%, transparent 26%); }
.hero .wrap { position: relative; width: 100%; }
.hero-text { max-width: min(620px, 44vw); }
.hero-kicker { margin: 0 0 18px; }
.hero-name { font-size: clamp(72px, 10vw, 156px); margin: 0 0 26px; }
.hero-name .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero-name .line-inner { display: block; }
.hero-claim { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.2; font-weight: 600; color: var(--accent); margin: 0 0 12px; max-width: 22ch; }
.hero-lead { color: var(--muted); max-width: 42ch; margin: 0 0 30px; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-now { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.hero-now strong { color: var(--text); font-weight: 400; }
.hero-coords { color: var(--faint); }
.hero-coords::before { content: "· "; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Weltkarte, steht jetzt am Anfang von „Der Weg“ */
.journey-map { max-width: 1040px; margin: 0 auto clamp(48px, 6vw, 88px); }
.w-svg { width: 100%; height: auto; display: block; overflow: visible; }
.w-land { fill: var(--land); stroke: var(--bg); stroke-width: 0.6; }
.w-route { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-dasharray: 8 6; }
.w-reveal { fill: none; stroke: #FFFFFF; stroke-width: 14; transition: stroke-dashoffset 2200ms var(--ease-io) 200ms; }
.w-map.in .w-reveal { stroke-dashoffset: 0 !important; }
.w-pin circle, .w-pin path { fill: var(--text); }
.w-goal path { fill: var(--bg); stroke: var(--text); stroke-width: 2; }
.w-current .w-dot { fill: var(--accent); }
.w-current .w-ring { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.w-current .w-glow { fill: url(#w-glow); }
.w-glow-in { stop-color: var(--accent); stop-opacity: 0.45; }
.w-glow-out { stop-color: var(--accent); stop-opacity: 0; }
.w-label { font-family: var(--mono); font-size: 13px; fill: var(--muted); }
.w-label-current { fill: var(--text); font-size: 15px; font-weight: 600; }
.w-current .w-dot, .w-current .w-glow, .w-current .w-label-current { opacity: 0; transition: opacity 500ms var(--ease-out) 2300ms; }
.w-map.in .w-current .w-dot, .w-map.in .w-current .w-glow, .w-map.in .w-current .w-label-current { opacity: 1; }

/* Story mit Startnummer */
.story { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.story .wrap { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.story-media { position: relative; }
.story-media .clip-reveal { border-radius: 4px; overflow: hidden; }
.story-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; }
/* Countdown-Karte oben rechts am Foto: dort ist Himmel, ich bin unten im Bild */
.bib { position: absolute; top: -36px; right: -36px; width: 244px; margin: 0; background: var(--paper); color: var(--paper-ink); border-radius: 6px; padding: 18px 22px 18px; box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5); transform: rotate(2.5deg); }
.bib-holes { display: flex; justify-content: space-between; margin-bottom: 4px; }
.bib-holes span { width: 9px; height: 9px; border-radius: 50%; background: var(--bg); }
.bib-num { margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 55%; font-size: 112px; line-height: 0.9; font-variant-numeric: tabular-nums; }
.bib-label { font-size: 14px; line-height: 1.4; margin: 8px 0 0; }
.bib-label strong { color: var(--accent-on-paper); }
.story h2 { font-size: clamp(56px, 7.5vw, 116px); margin: 0 0 28px; }
.story-text > p { margin: 0 0 16px; max-width: 50ch; }

/* Der Weg */
.journey { padding: clamp(80px, 10vw, 140px) 0; background: var(--bg-2); }
.journey-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px); }
.journey h2 { font-size: clamp(56px, 7.5vw, 116px); margin: 0; }
.journey-head .mono { margin: 0; }
.jl { --col-when: 150px; --col-mark: 40px; --gap: 20px; list-style: none; margin: 0; padding: 0; position: relative; }
.jl-rail { position: absolute; top: var(--rail-top, 36px); bottom: var(--rail-bottom, 40px); left: calc(var(--col-when) + var(--gap) + 19px); width: 2px; }
.jl-rail-future { position: absolute; inset: 0; border-left: 2px dashed var(--rail-dash); }
.jl-rail-past { position: absolute; top: 0; left: 0; width: 2px; height: var(--past, 50%); background: var(--accent); transform-origin: top; }
.jl-rail-tip { position: absolute; top: -7px; left: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg-2); opacity: 0; transition: opacity 200ms var(--ease-out); }
.jl.is-moving .jl-rail-tip { opacity: 1; }
.jl-item { position: relative; display: grid; grid-template-columns: var(--col-when) var(--col-mark) minmax(0, 1fr); column-gap: var(--gap); padding: 30px 0; }
.jl-when { margin: 0; padding-top: 6px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.jl-mark { position: relative; grid-column: 2; }
.jl-mark span { position: absolute; top: 6px; left: 10px; z-index: 1; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--text); background: var(--bg-2); }
.jl-body { grid-column: 3; }
.jl-item h3 { font-family: var(--display); font-weight: 900; font-stretch: 60%; text-transform: uppercase; font-size: clamp(34px, 3.4vw, 46px); line-height: 0.92; margin: 0 0 10px; }
.jl-item p { margin: 0; max-width: 48ch; }
.jl-body p:last-child { color: var(--muted); }

.jl-item.done .jl-mark span { background: var(--accent); border-color: var(--accent); }
.jl-item.is-now .jl-when { color: var(--accent); }
.jl-item.is-now .jl-mark span { width: 24px; height: 24px; left: 8px; top: 4px; background: var(--accent); border-color: var(--accent); }
.jl-item.is-now h3 { color: var(--text); }
.now-tag { display: inline-flex; margin: 0 0 12px !important; padding: 4px 10px; font-family: var(--mono); font-size: 12px; color: var(--on-accent) !important; background: var(--accent); border-radius: 999px; }
.pulse { position: absolute; top: 4px; left: 8px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; pointer-events: none; }
.jl-item.future .jl-mark span { border: 2px dashed var(--faint); background: var(--bg-2); }
.jl-item.future h3 { color: var(--faint); }
.jl-item.future .jl-when { color: var(--faint); }
.jl-item.future .jl-body p:last-child { color: var(--muted); }

/* Training */
.train { display: grid; grid-template-columns: 1fr 1.6fr 1fr 1fr; gap: 8px; }
.train .clip-reveal { overflow: hidden; }
.train img { width: 100%; height: clamp(260px, 30vw, 480px); object-fit: cover; object-position: 50% 40%; }
.train-rudern img { object-position: 50% 25%; }
.train-helm img { object-position: 62% 45%; }

/* Kontakt */
.contact { padding: clamp(90px, 11vw, 150px) 0; border-top: 1px solid var(--line); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.contact h2 { font-size: clamp(88px, 13vw, 190px); margin: 0 0 28px; }
.contact-text p { max-width: 42ch; margin: 0 0 16px; }
.contact-text p:nth-of-type(2) { color: var(--muted); }
.contact-mail { margin-top: 28px !important; }
.mail { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.form { display: grid; gap: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.form label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.form input, .form textarea { font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: 4px; background: var(--bg); color: var(--text); transition: border-color var(--dur-hover) ease; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { justify-self: start; }
.form-hint { margin: 0; font-size: 14px; color: var(--muted); }
.form-note { margin: 0; padding: 12px 14px; border-radius: 4px; font-size: 15px; border: 1px solid var(--line); }
.form-note.is-ok { border-color: var(--accent); color: var(--text); }
.form-note.is-error { border-color: var(--field-line); color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Textseite (Impressum, Datenschutz) */
.textpage { padding: clamp(60px, 8vw, 110px) 0 clamp(80px, 10vw, 140px); }
.textpage h1 { font-size: clamp(56px, 8vw, 120px); margin: 0 0 clamp(28px, 4vw, 48px); }
.prose { max-width: 68ch; }
.prose h2, .prose h3 { font-family: var(--sans); font-weight: 700; text-transform: none; line-height: 1.3; margin: 40px 0 10px; }
.prose h2 { font-size: 24px; }
.prose h3 { font-size: 19px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 4px; overflow-wrap: anywhere; }

/* Cookie-Banner (Complianz) im Design der Seite. Zustimmen und Ablehnen sehen gleich aus. */
.cmplz-cookiebanner, #cmplz-manage-consent {
  --cmplz_banner_background_color: var(--bg-2);
  --cmplz_banner_border_color: var(--line);
  --cmplz_banner_border_width: 1px;
  --cmplz_banner_border_radius: 6px;
  --cmplz_text_color: var(--muted);
  --cmplz_hyperlink_color: var(--text);
  --cmplz_title_font_size: 16px;
  --cmplz_text_font_size: 14px;
  --cmplz_link_font_size: 13px;
  --cmplz_button_font_size: 15px;
  --cmplz_button_border_radius: 4px;
  --cmplz_button_accept_background_color: var(--accent);
  --cmplz_button_accept_border_color: var(--accent);
  --cmplz_button_accept_text_color: var(--on-accent);
  --cmplz_button_deny_background_color: var(--accent);
  --cmplz_button_deny_border_color: var(--accent);
  --cmplz_button_deny_text_color: var(--on-accent);
  --cmplz_button_settings_background_color: transparent;
  --cmplz_button_settings_border_color: var(--field-line);
  --cmplz_button_settings_text_color: var(--text);
  --cmplz_slider_active_color: var(--accent);
  --cmplz_slider_inactive_color: var(--field-line);
  --cmplz_slider_bullet_color: var(--text);
  --cmplz_category_header_always_active_color: var(--accent);
}
.cmplz-cookiebanner { font-family: var(--sans); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5); }
.cmplz-cookiebanner .cmplz-title { color: var(--text); font-weight: 700; }
.cmplz-cookiebanner .cmplz-logo { display: none; }
.cmplz-cookiebanner .cmplz-btn { font-family: var(--sans); font-weight: 700; }

/* Kompakt: schmal, nur der erste Absatz, Zustimmen und Ablehnen nebeneinander, Einstellungen als Link.
   "body" davor, damit die Regeln stärker sind als die von Complianz. */
body .cmplz-cookiebanner { --cmplz_banner_width: 360px; --cmplz_banner_margin: 8px; --cmplz_text_font_size: 13px; --cmplz_text_line_height: 1.5; --cmplz_title_font_size: 14px; --cmplz_button_font_size: 14px; --cmplz_link_font_size: 12px; padding: 16px 18px; row-gap: 10px; }
body .cmplz-cookiebanner .cmplz-divider { display: none; }
body .cmplz-cookiebanner .cmplz-header { grid-template-columns: 1fr auto; }
body .cmplz-cookiebanner .cmplz-title { grid-column-start: 1; justify-self: start; }
body .cmplz-cookiebanner .cmplz-close { grid-column-start: 2; }
body .cmplz-cookiebanner .cmplz-message { margin-bottom: 0; }
body .cmplz-cookiebanner .cmplz-message p { margin: 0; }
body .cmplz-cookiebanner .cmplz-message p + p { display: none; }
body .cmplz-cookiebanner .cmplz-buttons { flex-direction: row; flex-wrap: wrap; gap: 8px; }
body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn { flex: 1 1 0; min-height: 40px; padding: 8px 12px; }
body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences { flex-basis: 100%; }
body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences { flex-basis: 100%; min-height: 0; padding: 2px 0; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
body .cmplz-cookiebanner .cmplz-links.cmplz-documents { gap: 16px; }
@media (max-width: 767px) {
  body .cmplz-cookiebanner { left: 10px; right: 10px; bottom: 10px; width: auto; min-width: 0; padding: 14px 16px; row-gap: 8px; }
  /* Kopfzeile weg: Complianz blendet den Titel auf dem Handy ohnehin aus, übrig bliebe nur das X */
  body .cmplz-cookiebanner .cmplz-header { display: none; }
  body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn { min-height: 38px; }
}

/* Sprachwahl von GTranslate auf diesen Seiten ausblenden (das Plugin gibt sie auf jeder Seite aus) */
.gtranslate_wrapper, .gt_switcher_wrapper, .gt_float_switcher { display: none !important; }

/* Eingeloggt in WordPress: Header unter der Adminleiste */
.admin-bar .head { top: 32px; }
@media (max-width: 782px) { .admin-bar .head { top: 46px; } }
@media (max-width: 600px) { .admin-bar .head { top: 0; } }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 72px; gap: 16px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; transition: color var(--dur-hover) ease; }

/* ---------- Bewegung ---------- */
/* Hero: Name steigt zeilenweise aus einer Maske, danach der Rest. Nur beim Laden. */
.js .hero-name .line-inner { transform: translateY(105%); animation: rise 900ms var(--ease-arrive) forwards; }
.js .hero-name .line:nth-child(2) .line-inner { animation-delay: 90ms; }
.js .hero-photo img { opacity: 0; transform: scale(1.06); animation: hero-in 1800ms var(--ease-out) 100ms forwards; }
@keyframes hero-in { to { opacity: 1; transform: scale(1); } }
.js .intro { opacity: 0; transform: translateY(12px); animation: fade-up 700ms var(--ease-out) forwards; }
.js .intro-1 { animation-delay: 0ms; }
.js .intro-3 { animation-delay: 380ms; }
.js .intro-4 { animation-delay: 470ms; }
.js .intro-5 { animation-delay: 560ms; }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* Aktueller Ort auf der Karte und im Weg: derselbe Puls, läuft dauerhaft, aber nur solange sichtbar */
.w-map.in .w-ring { animation: pulse 2400ms var(--ease-out) 2400ms infinite; }
.w-map.in .w-ring-2 { animation-delay: 3600ms; }
.w-map.is-paused .w-ring { animation-play-state: paused; }
.live-dot { animation: live 2400ms var(--ease-out) 1200ms 4; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.jl-mark.is-live .pulse { animation: pulse 2400ms var(--ease-out) infinite; }
.jl-mark.is-live .pulse-2 { animation-delay: 1200ms; }
@keyframes pulse { 0% { opacity: 0.85; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }

/* Einblenden beim Scrollen */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Fotos werden aufgedeckt statt eingeblendet */
.js .clip-reveal[data-reveal] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path var(--dur-clip) var(--ease-io); }
/* Trainingsfotos: nacheinander von unten aufgedeckt */
.js .train .clip-reveal:nth-child(2) { transition-delay: 90ms; }
.js .train .clip-reveal:nth-child(3) { transition-delay: 180ms; }
.js .train .clip-reveal:nth-child(4) { transition-delay: 270ms; }
.js .clip-reveal[data-reveal].in { clip-path: inset(0 0 0 0); }
.js .clip-reveal img { transform: scale(1.08); transition: transform 1600ms var(--ease-out); }
.js .clip-reveal.in img { transform: scale(1); }

/* Startnummer fällt nach dem Foto an ihren Platz */
.js .bib[data-reveal] { opacity: 0; transform: translateY(40px) rotate(-6deg); transition: opacity 600ms var(--ease-out) 700ms, transform 900ms var(--ease-arrive) 700ms; }
.js .bib[data-reveal].in { opacity: 1; transform: rotate(2.5deg); }

/* Der Weg: die orange Linie folgt dem Scrollen (main.js) und färbt jede Station, die sie erreicht */
.js .jl-rail-past { transform: scaleY(0); will-change: transform; }
.js .jl-item.done .jl-mark span, .js .jl-item.is-now .jl-mark span { background: var(--bg-2); border-color: var(--muted); transform: scale(0.8); transition: background-color 250ms var(--ease-out), border-color 250ms var(--ease-out), transform 450ms var(--ease-arrive); }
.js .jl-item.is-reached .jl-mark span { background: var(--accent); border-color: var(--accent); transform: scale(1); }
.js .jl-item.is-now.is-reached .jl-mark span { animation: land 600ms var(--ease-out); }
@keyframes land { 0% { transform: scale(0.8); } 45% { transform: scale(1.25); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-name .line-inner, .js .intro, .js .hero-photo img { animation: none; transform: none; opacity: 1; }
  .js [data-reveal], .js .bib[data-reveal] { transform: none; transition: opacity 300ms ease; }
  .js .bib[data-reveal], .js .bib[data-reveal].in { transform: rotate(2.5deg); }
  .js .head.menu-open .nav { animation: none; }
  .menu-btn span { transition: none; }
  .js .clip-reveal[data-reveal] { clip-path: none; transition: none; }
  .js .clip-reveal img { transform: none; transition: none; }
  .js .jl-rail-tip { display: none; }
  .js .jl-item .jl-mark span { transform: none; transition: none; animation: none; }
  .live-dot, .jl-mark.is-live .pulse, .w-map.in .w-ring { animation: none; }
  .w-current .w-dot, .w-current .w-glow, .w-current .w-label-current { opacity: 1; transition: none; }
}

/* ---------- Tablet und Handy ---------- */
@media (max-width: 900px) {
  .hero { align-items: flex-end; padding-bottom: 40px; }
  .hero-photo img { object-position: 64% 20%; }
  .hero-photo::after { background: linear-gradient(0deg, var(--bg) 6%, color-mix(in srgb, var(--bg) 78%, transparent) 42%, transparent 68%); }
  .hero-text { max-width: none; }
  .story .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .story-media { margin: 28px 12px 40px 0; }
  .bib { top: -28px; right: -12px; width: 176px; padding: 14px 16px; }
  .bib-num { font-size: 68px; }
  .bib-label { font-size: 13px; }
  .train { grid-template-columns: 1fr 1fr; }
  .train img { height: clamp(220px, 62vw, 360px); }
  /* Menü hinter den drei Strichen, klappt unter der Kopfzeile auf */
  .head-right { gap: 4px; }
  .js .menu-btn { display: block; }
  .js .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--pad) 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45); }
  .js .head.menu-open .nav { display: flex; animation: menu-in 240ms var(--ease-out); }
  .js .nav .nav-link { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--text); }
  .js .nav .btn { margin-top: 20px; min-height: 48px; font-size: 16px; }
  html:not(.js) .nav .nav-link { display: none; }
}
/* Schmale Handys: Name, Sprachschalter und drei Striche in einer Zeile */
@media (max-width: 480px) {
  .wordmark { font-size: 21px; }
}
@media (max-width: 640px) {
  .jl { --col-mark: 32px; --gap: 14px; }
  .jl-rail { left: 15px; }
  .jl-item { grid-template-columns: var(--col-mark) minmax(0, 1fr); padding: 24px 0; }
  .jl-when { grid-column: 2; grid-row: 1; padding-top: 3px; }
  .jl-mark { grid-column: 1; grid-row: 1 / span 3; }
  .jl-mark span { left: 6px; }
  .jl-item.is-now .jl-mark span, .pulse { left: 4px; }
  .jl-body { grid-column: 2; }
  .jl-body { margin-top: 6px; }
  .form { padding: 20px; }
  .hero-coords { display: none; }
}
