/* Sparkassen-Firmenlauf Oberhausen – Startseite (Relaunch-Entwurf 3)
   Kompakt, einladend, barrierefrei nach WCAG 2.1 AA (BFSG).
   Big Shoulders (Display) + Public Sans (Text). Akzent: Sparkassenrot. */

/* ---------- Tokens ---------- */
:root {
  --bg: #EFEFEC;
  --surface: #E2E2DE;
  --ink: #141414;
  --muted: #4A4A46;
  --paper: #FFFFFF;
  --accent: #E30613;        /* Weiß auf Rot 4,9:1 */
  --accent-ink: #FFFFFF;
  --accent-dark: #B0000C;   /* Hover/Fokus, Weiß darauf 7,4:1 */
  --night: #141414;
  --night-2: #2A2A28;

  --water: #9DD1EA;
  --park: #CDE2BF;
  --tree: #A9CC97;
  --build: #55554F;

  --font-display: "Big Shoulders", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: clamp(0.8125rem, 0.8rem + 0.05vw, 0.875rem);
  --step-body: clamp(1rem, 0.96rem + 0.15vw, 1.125rem);
  --step-lead: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  --step-head: clamp(2rem, 1.4rem + 1.6vw, 3.125rem);
  --step-display: clamp(2.5rem, 1.4rem + 2.6vw, 3.75rem);

  --head-h: 76px;
  --maxw: 1320px;
  --margin: clamp(1rem, 2.4vw, 2rem);
  --pad-x: max(var(--margin), calc((100% - var(--maxw)) / 2));
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(4rem, 7vw, 6.5rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 1rem); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.55; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Fokus: immer sichtbar, auf dunklen und roten Flächen weiß */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.movie :focus-visible, .lightbox :focus-visible { outline-color: var(--paper); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.005em; line-height: 0.92; text-wrap: balance; }

/* Oben bündig: Überschriften und daneben stehende Absätze beginnen genau an der Oberkante von Bild oder Nachbarspalte
   (der Zeilenabstand über der ersten Zeile wird weggeschnitten; Browser ohne text-box ignorieren das einfach). */
.hosts__title, .captains__body h2, .onsite__head h2, .onsite__head p, .shirts__body h2, .route__intro h2, .route__intro p,
.plan__side h2, .faq__side h2, .media-head__title, .media-head__text, .partners__lead h2, .partners__lead p, .foot__brand > p {
  text-box: trim-start cap alphabetic;
}
p { max-width: 64ch; text-wrap: pretty; }
.small { font-size: var(--step-small); line-height: 1.45; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 60; background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; font-weight: 700; text-decoration: none; }
.skip:focus { top: 0.5rem; outline-color: var(--accent); }

/* ---------- Bedienelemente ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.875rem; padding: 0 1.25rem; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; white-space: nowrap; border-radius: var(--radius); transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button--large { min-height: 3.25rem; padding: 0 1.6rem; font-size: var(--step-lead); }
.button--ink { background: var(--accent); color: var(--accent-ink); } /* früher schwarz, jetzt wie alle Buttons rot */
.link-plain { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 2px; font-weight: 700; }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 2px; transition: text-decoration-color var(--t-hover) ease; }
.link:focus-visible { text-decoration-color: currentColor; }
.field { width: 100%; min-height: 3.25rem; padding: 0.7rem 1rem; background: var(--surface); border: 0; border-radius: var(--radius); font-size: max(1rem, var(--step-body)); }
.field::placeholder { color: #57574F; opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .button:hover, .button--ink:hover { background: var(--accent-dark); color: var(--accent-ink); }
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { text-decoration-thickness: 4px; }
}

/* ---------- Banner-Ösen: vier ausgestanzte Löcher in den Ecken (Startnummer, Keyfact-Karten) ----------
   Die Löcher sind echt durchsichtig: Eine Maske schneidet sie aus der weißen Fläche, dahinter scheint
   das Foto bzw. die rote Fläche durch. Inhalte liegen nie in den Ecken, die Maske schneidet also nichts ab. */
.eyelets {
  --es: 16px; /* Ösengröße */
  --ei: 18px; /* Abstand zum Rand */
  --hole: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Ccircle cx='5' cy='5' r='5'/%3E%3C/svg%3E");
  --full: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' preserveAspectRatio='none'%3E%3Crect width='10' height='10'/%3E%3C/svg%3E");
  background-color: var(--paper);
  -webkit-mask-image: var(--hole), var(--hole), var(--hole), var(--hole), var(--full);
  mask-image: var(--hole), var(--hole), var(--hole), var(--hole), var(--full);
  -webkit-mask-size: var(--es) var(--es), var(--es) var(--es), var(--es) var(--es), var(--es) var(--es), 100% 100%;
  mask-size: var(--es) var(--es), var(--es) var(--es), var(--es) var(--es), var(--es) var(--es), 100% 100%;
  -webkit-mask-position: left var(--ei) top var(--ei), right var(--ei) top var(--ei), left var(--ei) bottom var(--ei), right var(--ei) bottom var(--ei), 0 0;
  mask-position: left var(--ei) top var(--ei), right var(--ei) top var(--ei), left var(--ei) bottom var(--ei), right var(--ei) bottom var(--ei), 0 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* =========================================================
   Kopfzeile mit Logo
   ========================================================= */
.masthead { position: sticky; top: 0; z-index: 30; height: var(--head-h); display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.5rem); padding: 0 var(--pad-x); background: var(--paper); }
.logo { display: block; margin-right: auto; padding: 4px 0; }
.logo img { height: 42px; width: auto; }
.nav ul { display: flex; gap: clamp(1rem, 2vw, 1.75rem); font-weight: 600; }
.nav a { display: inline-block; padding: 0.5rem 0; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.35em; text-decoration-thickness: 3px; transition: text-decoration-color var(--t-hover) ease; }
.nav a:hover, .nav a:focus-visible { text-decoration-color: var(--accent); }
.nav a[aria-current="page"] { text-decoration-color: var(--accent); }
.nav__cta { display: none; }
.menu-toggle { display: none; place-items: center; width: 44px; height: 44px; margin-right: -10px; color: var(--ink); transition: color var(--t-hover) ease; }
.menu-toggle:hover { color: var(--accent); }
/* Burger-Icon: drei Striche, wird beim Öffnen zum X (nur transform/opacity) */
.menu-toggle__icon { position: relative; display: block; width: 24px; height: 16px; }
.menu-toggle__icon span { position: absolute; right: 0; width: 100%; height: 2.5px; background: currentColor; transition: transform 380ms var(--ease-in-out), opacity 200ms ease, width 240ms var(--ease-out); }
.menu-toggle__icon span:nth-child(1) { top: 0; }
.menu-toggle__icon span:nth-child(2) { top: calc(50% - 1.25px); width: 66%; }
.menu-toggle__icon span:nth-child(3) { bottom: 0; }
.menu-toggle:hover .menu-toggle__icon span:nth-child(2) { width: 100%; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) { transform: translateY(6.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(3) { transform: translateY(-6.75px) rotate(-45deg); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); }
.nav .social { gap: 0.25rem; }
.nav .social a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; color: var(--ink); text-decoration: none; transition: color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.nav .social a:hover { color: var(--accent); }
.nav .social a:active { transform: scale(0.94); }

/* =========================================================
   Hero: Aftermovie bildfüllend, Einladung, drei Keyfact-Karten
   ========================================================= */
.hero { position: relative; min-height: calc(100svh - var(--head-h)); overflow: hidden; background: var(--night); color: var(--paper); }
.hero__media { position: absolute; inset: 0; }
/* Neutrale Abdunklung unter dem Text, damit Weiß auf jedem Bild mindestens 4,5:1 erreicht */
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.55) 40%, rgba(10, 10, 10, 0.15) 75%, rgba(10, 10, 10, 0.04) 100%); } /* taste-skill-ignore: neutrale Abdunklung unter Text auf Foto */
.reel, .reel img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.reel img, .hero__video { object-fit: cover; object-position: var(--pos, 50% 50%); }
/* Bewegung im Hero höchstens 5 Sekunden (WCAG 2.2.2), danach steht das Bild */
.js .reel img { animation: hero-zoom 5s var(--ease-out) both; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero.has-video .reel { display: none; }

.hero__inner { position: relative; z-index: 2; min-height: inherit; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 1.5rem; padding: 1.5rem var(--pad-x) 2rem; }
.hero__content { grid-column: 1 / -1; grid-row: 1; align-self: center; max-width: 42rem; }
.hero__title { font-size: var(--step-display); }
.hero__when { font-size: var(--step-lead); font-weight: 700; line-height: 1.35; margin-top: 1rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin-top: 1.75rem; }
/* Zweiter Button: rotes Quadrat mit Play-Symbol (Ring + abgerundetes Dreieck) + weiße Fläche, gleiche Höhe wie „Jetzt Team anmelden“ */
.play { display: inline-flex; align-items: stretch; min-height: 3.25rem; background: var(--paper); color: var(--ink); font-size: var(--step-lead); font-weight: 700; text-align: left; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.play__icon { display: grid; place-items: center; flex: none; width: 3.25rem; background: var(--accent); color: var(--paper); }
.play__icon svg { transition: transform var(--t-ui) var(--ease-out); }
.play__ring { fill: transparent; stroke: currentColor; stroke-width: 2; transition: fill var(--t-hover) ease; }
.play__tri { fill: currentColor; stroke: currentColor; stroke-width: 2.6; stroke-linejoin: round; transition: fill var(--t-hover) ease, stroke var(--t-hover) ease; }
.play__label { display: flex; align-items: center; padding: 0 1.4rem; }
.play:hover { background: var(--surface); }
.play:hover .play__icon svg { transform: scale(1.1); }
.play:hover .play__ring { fill: var(--paper); }
.play:hover .play__tri { fill: var(--accent); stroke: var(--accent); }
.play:active { transform: scale(0.97); }
.hero__content :focus-visible { outline-color: var(--paper); }

/* Titelsponsor und Veranstalter: vierte Karte im weißen Sockel neben den Keyfacts, damit das Bild oben frei bleibt */

.keycards { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.keycard { --es: 12px; --ei: 12px; display: grid; grid-template-rows: auto 1fr auto; row-gap: 0.5rem; padding: clamp(1.75rem, 2.4vw, 2.1rem) clamp(1.75rem, 2.4vw, 2.25rem); color: var(--ink); }
.keycard__fig { font-family: var(--font-display); font-weight: 800; font-size: var(--step-head); line-height: 0.9; text-transform: uppercase; white-space: nowrap; color: var(--accent); }
.keycard__text { line-height: 1.45; max-width: 36ch; }
.keycard__link { font-size: var(--step-small); }

/* =========================================================
   Titelsponsor und Veranstalter (eigenes Modul unter dem Hero)
   ========================================================= */
.hosts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding: clamp(1.75rem, 3.5vw, 2.75rem) var(--pad-x); background: var(--bg); }
.hosts__title { grid-column: 1 / 5; font-size: var(--step-head); }
.hosts__list { grid-column: 5 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.host { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.5rem; height: 100%; padding: 1.25rem 1.5rem; background: var(--paper); color: var(--ink); text-decoration: none; transition: background-color var(--t-hover) ease; }
.host:hover { background: var(--surface); }
.host:hover strong { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
.host__logo { display: block; }
.host__logo img { height: 48px; width: auto; mix-blend-mode: multiply; } /* weißer Logo-Hintergrund verschwindet auf der grauen Hover-Fläche */
.host__logo--contact img { height: 40px; } /* fette Wortmarke: so optisch gleich groß wie das Sparkassen-Logo */
.host__role { display: block; font-size: var(--step-small); line-height: 1.45; color: var(--muted); }
.host__role strong { display: block; font-size: var(--step-body); color: var(--ink); }

/* =========================================================
   Team-Captains
   ========================================================= */
.captains { padding: var(--section) var(--pad-x); background: var(--paper); }
.captains__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.captains__photo { grid-column: 1 / 7; }
.captains__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); }
.captains__body { grid-column: 8 / 13; }
.captains__body h2 { font-size: var(--step-head); margin-bottom: 1rem; }
.captains__intro { font-size: var(--step-lead); line-height: 1.4; }
.captains__steps { display: grid; gap: 1rem; margin-top: 1.75rem; counter-reset: step; }
.captains__steps li { display: grid; grid-template-columns: 2rem 1fr; column-gap: 0.75rem; counter-increment: step; }
.captains__steps li::before { content: counter(step); grid-row: 1 / span 2; display: grid; place-items: center; width: 2rem; height: 2rem; background: var(--accent); color: var(--paper); font-weight: 700; font-size: var(--step-small); }
.captains__steps strong { display: block; font-weight: 700; }
.captains__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin-top: 2rem; max-width: none; }

/* =========================================================
   Vorab buchen: Wertmarken und Teamzelte
   ========================================================= */
.onsite { padding: var(--section) var(--pad-x); background: var(--bg); }
.onsite__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.onsite__head h2 { grid-column: 1 / 6; font-size: var(--step-head); }
.onsite__head p { grid-column: 7 / 13; }
.onsite__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.offer { display: grid; grid-template-rows: auto 1fr; background: var(--paper); }
.offer__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }
.offer__body { display: flex; flex-direction: column; gap: 0.9rem; padding: clamp(1.25rem, 2.5vw, 2rem); }
.offer__body h3 { font-size: var(--step-head); }
.offer__facts { display: grid; gap: 0.5rem; }
.offer__facts li { position: relative; padding-left: 1.25rem; }
.offer__facts li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.5rem; height: 0.5rem; background: var(--accent); }
.offer__link { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.25rem 1rem; min-height: 3.25rem; padding: 0.6rem 1.25rem; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.offer__link span { font-size: var(--step-small); font-weight: 600; color: var(--accent-ink); }
.offer__link:hover { background: var(--accent-dark); }
.offer__link:active { transform: scale(0.98); }

/* =========================================================
   Teamshirts: Farbe wählen (funktioniert auch ohne JS), per Mail bestellen
   ========================================================= */
.shirts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding: var(--section) var(--pad-x); background: var(--paper); }
.shirts__stage { grid-column: 1 / 8; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); padding: clamp(1.25rem, 3vw, 2.25rem); background: #F4F4F2; }
.shirt { display: grid; justify-items: center; gap: 0.5rem; }
.shirt figcaption { font-weight: 700; }
.shirt__media { position: relative; width: 100%; max-width: 320px; aspect-ratio: 1; }
/* Fotos liegen übereinander; die gewählte Farbe blendet über. multiply lässt den weißen Fotogrund im Bühnengrau verschwinden. */
.shirt-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; opacity: 0; transition: opacity 450ms var(--ease-out); }
.shirts:has(input[value="weiss"]:checked) .shirt-photo[data-color="weiss"],
.shirts:has(input[value="sportrot"]:checked) .shirt-photo[data-color="sportrot"],
.shirts:has(input[value="neongelb"]:checked) .shirt-photo[data-color="neongelb"],
.shirts:has(input[value="royal"]:checked) .shirt-photo[data-color="royal"],
.shirts:has(input[value="schwarz"]:checked) .shirt-photo[data-color="schwarz"],
.shirts:has(input[value="neonorange"]:checked) .shirt-photo[data-color="neonorange"],
.shirts:has(input[value="neongruen"]:checked) .shirt-photo[data-color="neongruen"],
.shirts:has(input[value="steingrau"]:checked) .shirt-photo[data-color="steingrau"],
.shirts:has(input[value="pink"]:checked) .shirt-photo[data-color="pink"],
.shirts:has(input[value="jakoblau"]:checked) .shirt-photo[data-color="jakoblau"] { opacity: 1; }
.shirts__body { grid-column: 9 / 13; }
.shirts__body h2 { font-size: var(--step-head); margin-bottom: 1rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin: 1.5rem 0 0; padding: 0; border: 0; }
.swatches legend { padding: 0; margin-bottom: 0.6rem; font-weight: 700; }
.swatch { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 0.9rem 0 0.6rem; background: var(--bg); font-weight: 600; cursor: pointer; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch__dot { width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--dot); border: 2px solid rgba(20, 20, 20, 0.35); }
.swatch:hover { background: var(--surface); }
.swatch:has(input:checked) { background: var(--ink); color: var(--paper); }
.swatch:has(input:checked) .swatch__dot { border-color: var(--paper); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.shirts__actions { margin-top: 1.5rem; max-width: none; }
.shirts__note { color: var(--muted); margin-top: 0.75rem; }

/* =========================================================
   Strecke (aus Entwurf 1)
   ========================================================= */
.route { padding: var(--section) var(--pad-x) calc(var(--section) * 0.6); background: var(--bg); color: var(--ink); }
.route__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.route__intro h2 { grid-column: 1 / 8; font-size: var(--step-head); }
.route__intro p { grid-column: 8 / 13; }
/* Karte links, rechts das Detailfeld der gewählten Station, darunter die Stationsleiste als Fortschritt */
.route__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 8px; row-gap: 8px; align-items: stretch; }
.route__map { grid-column: 1 / 9; grid-row: 1; }
.route__panel { grid-column: 9 / 13; grid-row: 1; display: flex; flex-direction: column; background: var(--paper); }
.route__steps { grid-column: 1 / -1; grid-row: 2; }

.map { width: 100%; height: auto; background: #E3E3DE; }
.map__ground { fill: #E3E3DE; }
.map__park { fill: var(--park); }
.map__trees circle { fill: var(--tree); }
.map__water { fill: var(--water); }
.map__emscher { fill: none; stroke: var(--water); stroke-width: 16; }
.map__road { fill: none; stroke: var(--paper); stroke-width: 12; stroke-linejoin: round; }
.map__motorway { fill: none; stroke: #A3A39D; stroke-width: 18; stroke-linejoin: round; }
.map__badge rect { fill: var(--ink); }
.map__badge text { fill: var(--paper); font-family: var(--font-display); font-weight: 800; font-size: 30px; text-anchor: middle; }
.map__build { fill: var(--build); }
.map__dome { fill: #8C8C86; }
.map__label text { font-family: var(--font-display); font-weight: 800; font-size: 40px; text-transform: uppercase; fill: var(--ink); }
.map__label .map__label--soft { fill: #8C8C86; font-size: 34px; }
.map__water-label { font-family: var(--font-display); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: 0.06em; fill: var(--paper); }
.map__route-case { fill: none; stroke: var(--paper); stroke-width: 26; stroke-linejoin: round; stroke-linecap: round; }
.map__route { fill: none; stroke: #F1A2A7; stroke-width: 12; stroke-linejoin: round; stroke-linecap: round; }
.map__route-done { fill: none; stroke: var(--accent); stroke-width: 12; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 590 590; stroke-dashoffset: 590; transition: stroke-dashoffset 1100ms var(--ease-in-out); }
.no-js-map .map__route-done, html:not(.js) .map__route-done { stroke-dashoffset: 0; }
.marker { cursor: pointer; }
.marker circle { fill: var(--paper); stroke: var(--accent); stroke-width: 9; transition: fill var(--t-ui) ease, stroke var(--t-ui) ease; }
.marker text { font-family: var(--font-display); font-weight: 800; font-size: 28px; text-anchor: middle; fill: var(--accent); pointer-events: none; transition: fill var(--t-ui) ease; }
.marker:hover circle, .marker:focus-visible circle { fill: var(--accent); }
.marker:hover text, .marker:focus-visible text { fill: var(--paper); }
.marker.is-active circle { fill: var(--accent); stroke: var(--ink); }
.marker.is-active text { fill: var(--paper); }
.marker:focus-visible { outline: none; }
.marker:focus-visible circle { stroke: var(--ink); stroke-width: 12; }
.runner circle { fill: var(--ink); stroke: var(--paper); stroke-width: 7; }

.map { display: block; }
.stations { flex: 1; }
.station { display: flex; flex-direction: column; }
/* Alle Stationen liegen übereinander in derselben Zelle, nur die gewählte ist sichtbar.
   So ist das Feld immer so hoch wie die längste Station und beim Wechsel springt nichts. */
.js .stations { display: grid; }
.js .station { grid-area: 1 / 1; visibility: hidden; }
.js .station.is-active { visibility: visible; }
/* Desktop: Die Karte bestimmt die Höhe. Das Feld zählt bei der Zeilenhöhe nicht mit (contain: size)
   und das Foto gibt nach, wenn der Text länger ist. */
@media (min-width: 1101px) {
  .route__panel { contain: size; }
  .stations, .station { min-height: 0; }
  .station img { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
}
.station img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: var(--pos, 50% 50%); background: var(--surface); }
.station__text { padding: 1.25rem 1.5rem 0; }
.station__km { font-family: var(--font-display); font-weight: 800; font-size: var(--step-lead); text-transform: uppercase; line-height: 1; margin-bottom: 0.5rem; color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.station h3 { font-size: var(--step-lead); line-height: 1; margin-bottom: 0.6rem; }
.js .station.is-active .station__text, .js .station.is-active img { animation: station-in 420ms var(--ease-out); }
@keyframes station-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.route__pager { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; padding: 1.25rem 1.5rem 1.5rem; }
.route__count { margin-right: auto; font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.route__pager button { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.75rem; font-weight: 700; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, opacity var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.route__prev { order: -1; width: 2.75rem; background: var(--bg); color: var(--ink); }
.route__next { padding: 0 0.9rem 0 1.1rem; background: var(--accent); color: var(--accent-ink); }
.route__prev:hover { background: var(--surface); }
.route__next:hover { background: var(--accent-dark); }
.route__pager button:active { transform: scale(0.97); }
.route__pager button:disabled { opacity: 0.35; cursor: default; transform: none; }
html:not(.js) .route__pager, html:not(.js) .route__steps { display: none; }
html:not(.js) .route__panel { grid-column: 1 / -1; grid-row: 2; background: none; }
html:not(.js) .stations { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 8px; }
html:not(.js) .station { background: var(--paper); padding-bottom: 1.25rem; }

/* Stationsleiste: ein Feld je Station, der Balken oben zeigt den Fortschritt auf der Strecke */
.route__steps ol { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.route__step button { position: relative; display: grid; gap: 0.15rem; width: 100%; min-height: 4.25rem; padding: 1rem 1rem 0.85rem; background: var(--paper); color: var(--ink); text-align: left; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.route__step button::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: #D6D6D1; transition: background-color var(--t-ui) ease; }
.route__step-km { font-family: var(--font-display); font-weight: 800; font-size: var(--step-lead); line-height: 1; text-transform: uppercase; font-variant-numeric: tabular-nums; color: var(--accent-dark); }
.route__step-name { font-size: var(--step-small); font-weight: 700; }
.route__step button:hover { background: var(--surface); }
.route__step.is-done button::before { background: var(--accent); }
.route__step button[aria-current="step"] { background: var(--accent); color: var(--accent-ink); }
.route__step button[aria-current="step"]::before { background: var(--accent-dark); }
.route__step button[aria-current="step"] .route__step-km { color: var(--accent-ink); }


/* =========================================================
   Lageplan
   ========================================================= */
.plan { padding: var(--section) var(--pad-x); background: var(--paper); color: var(--ink); }
.plan__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.plan__side { grid-column: 1 / 5; display: grid; gap: 1.5rem; }
.plan__side h2 { font-size: var(--step-head); }
.plan__map { grid-column: 5 / 13; }
.site { width: 100%; height: auto; background: var(--bg); }
.site__ground { fill: var(--bg); }
.site__green { fill: var(--park); }
.site__build { fill: var(--build); }
.site__dome { fill: #8C8C86; }
.site__name { font-family: var(--font-display); font-weight: 800; font-size: 34px; text-transform: uppercase; fill: var(--paper); }
.site__track { fill: #D6D6D1; }
.site__start-zone { fill: #F09096; }
.site__finish { fill: var(--accent); }
.site__arrow { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: square; }
.site__box, .site__bus { fill: var(--build); }
.site__stage { fill: var(--build); }
.site__park { fill: #858580; }
.site__road { fill: #D6D6D1; }
.site__keys circle { fill: var(--accent); stroke: var(--paper); stroke-width: 3; }
.site__keys text { font-family: var(--font-text); font-weight: 700; font-size: 16px; text-anchor: middle; fill: var(--paper); }
.site__rows text { font-family: var(--font-display); font-weight: 800; font-size: 34px; fill: var(--ink); text-anchor: middle; }
.tent { cursor: pointer; }
.tent rect { fill: var(--build); transition: fill var(--t-ui) ease; }
.tent text { font-family: var(--font-text); font-weight: 700; font-size: 14px; text-anchor: middle; fill: var(--paper); pointer-events: none; }
.tent.is-free rect { fill: #858580; }
.tent.is-free text { fill: var(--ink); }
.tent:hover rect { fill: var(--ink); }
.tent:focus-visible { outline: none; }
.tent:focus-visible rect { stroke: var(--accent); stroke-width: 5; }
.tent.is-hit rect { fill: var(--accent); }
.tent.is-hit text { fill: var(--paper); }
.tent__pulse { fill: none; stroke: var(--accent); stroke-width: 4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.tent.is-hit .tent__pulse { animation: pulse 1.4s var(--ease-out) 3; }
@keyframes pulse { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.2); } }

.finder__label { display: block; font-weight: 700; margin-bottom: 0.5rem; }
.finder__input { background: var(--bg); color: var(--ink); }
.finder__hint { color: var(--muted); margin-top: 0.5rem; }
.finder__results { margin-top: 0.75rem; display: grid; gap: 4px; }
.finder__results:empty { display: none; }
.finder__results button { width: 100%; display: flex; justify-content: space-between; gap: 1rem; min-height: 2.75rem; padding: 0.5rem 0.9rem; background: var(--bg); color: var(--ink); text-align: left; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.finder__results button:hover { background: var(--surface); }
.finder__results button[aria-pressed="true"] { background: var(--accent); color: var(--paper); }
.finder__id { font-weight: 700; font-variant-numeric: tabular-nums; }
.finder__card { background: var(--accent); color: var(--paper); padding: 1.25rem 1.5rem; }
.finder__tent { font-family: var(--font-display); font-weight: 800; font-size: var(--step-head); line-height: 0.9; text-transform: uppercase; margin-bottom: 0.5rem; }
.finder__team { font-weight: 700; }
.legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem var(--gutter); margin-top: 1.25rem; font-size: var(--step-small); }
.legend li { display: grid; grid-template-columns: 1.75rem 1fr; align-items: center; gap: 0.6rem; }
.legend__key { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--accent); color: var(--paper); font-weight: 700; font-variant-numeric: tabular-nums; }
.legend__key--free { border-radius: 0; background: #858580; }
.plan__noscript { margin-top: 1rem; }

/* =========================================================
   Mediathek-Seite: Raster mit Aufmacher und Lightbox
   ========================================================= */
.gallery--page { padding: clamp(2.5rem, 5vw, 4rem) var(--pad-x) var(--section); background: var(--paper); }
.media-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.media-head__title { grid-column: 1 / 7; font-size: var(--step-display); }
.media-head__text { grid-column: 8 / 13; font-size: var(--step-lead); line-height: 1.4; }
.gallery__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 6px; }
.gallery__item.is-feature { grid-column: span 3; grid-row: span 2; }
.gallery__tile { position: relative; display: block; height: 100%; overflow: hidden; background: var(--surface); }
.gallery__tile img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 600ms var(--ease-out); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item.is-feature img, .gallery__item--tall img { aspect-ratio: auto; }
.gallery__tile:hover img { transform: scale(1.04); }
.gallery__tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.lightbox { width: min(1200px, calc(100vw - 2 * var(--margin))); max-width: none; max-height: calc(100svh - 2rem); padding: 0; border: 0; overflow: hidden; background: var(--night); color: var(--paper); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); } /* taste-skill-ignore: echter Dialog über der Seite */
.lightbox::backdrop { background: rgba(10, 10, 10, 0.88); }
.lightbox__figure { display: grid; }
.lightbox__img { width: 100%; max-height: calc(100svh - 9rem); object-fit: contain; background: #000; transition: opacity 250ms ease; }
.lightbox__img.is-loading { opacity: 0.2; }
.lightbox__caption { padding: 0.9rem 1.25rem 0; font-weight: 600; }
.lightbox__bar { display: flex; align-items: center; gap: 6px; padding: 0.75rem 1.25rem 1rem; }
.lightbox__count { margin-right: auto; color: #C9C9C4; font-size: var(--step-small); }
.lightbox__download { margin-right: 1rem; font-size: var(--step-small); }
.lightbox__nav { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; background: var(--night-2); color: var(--paper); transition: background-color var(--t-hover) ease; }
.lightbox__nav:hover { background: var(--accent); }

.credits { width: min(640px, calc(100vw - 2 * var(--margin))); padding: clamp(1.5rem, 4vw, 2.25rem); border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); } /* taste-skill-ignore: echter Dialog über der Seite */
.credits::backdrop { background: rgba(10, 10, 10, 0.7); }
.credits__title { font-size: var(--step-head); margin-bottom: 1rem; }
.credits p + p { margin-top: 0.75rem; }
.credits form { margin-top: 1.5rem; }
.foot__credits-link { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding: var(--section) var(--pad-x); background: var(--bg); }
.faq__side { grid-column: 1 / 5; position: sticky; top: calc(var(--head-h) + 1.5rem); }
.faq__side h2 { font-size: var(--step-head); margin-bottom: 1rem; }
.faq__contact { margin-top: 1rem; line-height: 2.1; }
.faq__list { grid-column: 5 / 13; display: grid; gap: 6px; }
.qa { background: var(--paper); }
.qa summary { position: relative; display: flex; align-items: center; min-height: 3.5rem; padding: 0.85rem 4.5rem 0.85rem 1.25rem; font-weight: 700; cursor: pointer; list-style: none; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; text-decoration-thickness: 2px; transition: text-decoration-color var(--t-hover) ease; }
.qa summary::-webkit-details-marker { display: none; }
/* absolut positioniert = außerhalb des Textflusses, deshalb wird das Symbol beim Hover nicht mitunterstrichen */
.qa summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 2rem; height: 2rem; background: var(--accent); color: var(--paper); font-size: 1.375rem; font-weight: 400; line-height: 1; }
.qa[open] summary::after { content: "−"; }
.qa summary:hover { text-decoration-color: currentColor; }
.qa > :not(summary) { padding: 0 1.25rem; max-width: 68ch; }
.qa > :last-child { padding-bottom: 1.25rem; }
.qa ul { display: grid; gap: 0.35rem; margin-bottom: 0.75rem; }
.js .qa[open] > :not(summary) { animation: qa-in 320ms var(--ease-out); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Partner
   ========================================================= */
.partners { padding: calc(var(--section) * 0.8) var(--pad-x); background: var(--paper); }
.partners__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.partners__lead { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem 2rem; margin-bottom: 1.5rem; }
.partners__lead h2 { font-size: var(--step-head); }
.partners__grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.partners__grid a { display: grid; place-items: center; height: 104px; padding: 1rem; transition: background-color var(--t-hover) ease; }
.partners__grid img { max-height: 52px; max-width: 100%; width: auto; height: auto; mix-blend-mode: multiply; }
.partners__grid a:hover { background: var(--bg); }

/* =========================================================
   Newsletter als Startnummer
   ========================================================= */
.news { padding: var(--section) var(--pad-x); background: var(--accent); display: grid; place-items: center; border-top-right-radius: clamp(3rem, 7vw, 6.5rem); } /* zum Testen: Rundung oben rechts wie im Print-Banner */
.bib { position: relative; width: min(100%, 62rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 4rem); align-items: start; padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem); color: var(--ink); }
.bib__title { grid-column: 1 / -1; font-size: var(--step-head); }
.bib__text { font-size: var(--step-lead); line-height: 1.4; max-width: 28ch; }
.bib__form { display: grid; gap: 8px; }
.bib__input[aria-invalid="true"] { background: #FBE3E4; outline: 3px solid var(--accent); outline-offset: 0; }
.bib__error { color: #B0000C; font-weight: 700; max-width: none; }
.bib__submit { min-height: 3.25rem; background: var(--accent); color: var(--accent-ink); font-weight: 700; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.bib__submit:hover { background: var(--accent-dark); }
.bib__submit:active { transform: scale(0.98); }
.bib__fine { color: var(--muted); margin-top: 0.25rem; }
.bib__done { font-weight: 700; color: #B0000C; max-width: none; }

/* =========================================================
   Footer
   ========================================================= */
.foot { padding: calc(var(--section) * 0.8) var(--pad-x) 2rem; background: var(--bg); color: var(--ink); }
.foot__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.foot__brand { grid-column: 1 / 6; }
.foot__logo { height: 48px; width: auto; margin-bottom: 1.25rem; }
.foot__nav { grid-column: 8 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.foot__nav ul { display: grid; gap: 0.5rem; align-content: start; font-weight: 600; }
.foot__nav a { display: inline-block; padding: 0.15rem 0; }
.foot__legal { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-top: clamp(3rem, 6vw, 4.5rem); color: var(--muted); }
.foot__credits { max-width: 72ch; }
.foot__credits a, .foot__meta a { color: var(--ink); }
.foot__meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem 1.25rem; }

/* Aftermovie-Dialog */
.movie { width: min(1100px, calc(100vw - 2 * var(--margin))); max-width: none; padding: 0; border: 0; background: var(--night); color: var(--paper); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); } /* taste-skill-ignore: echter Dialog über der Seite */
.movie::backdrop { background: rgba(10, 10, 10, 0.82); }
.movie__frame { aspect-ratio: 16 / 9; background: #000; }
.movie__frame iframe { width: 100%; height: 100%; border: 0; }
.movie__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
.movie__bar a { color: var(--paper); }

/* =========================================================
   Bewegung (Inhalt bleibt ohne JS sichtbar)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .hero__content > :not(.hero__title), .js .keycards { animation: rise 700ms var(--ease-out) both; } /* Titel steht sofort */
  .js .hero__content > :nth-child(2) { animation-delay: 70ms; }
  .js .hero__content > :nth-child(3) { animation-delay: 140ms; }
  .js .hero__content > :nth-child(4) { animation-delay: 210ms; }
  .js .keycards { animation-delay: 280ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .map__route-done { transition: none; }
  .js .station.is-active .station__text, .js .station.is-active img { animation: none; }
  .shirt-photo { transition: none; }
  .nav, .nav.is-open, .nav li, .nav.is-open li, .menu-toggle__icon span { transition: none !important; }
  .js .reel img { animation: none; }
  .js .reel img:first-child { opacity: 1; }
  .tent.is-hit .tent__pulse { animation: none; }
}

/* =========================================================
   Tablet
   ========================================================= */
/* Navigation klappt früher ein als das restliche Tablet-Layout */
@media (max-width: 1240px) {
  .menu-toggle { display: grid; }
  /* Menü-Fläche: klappt unter der Kopfzeile nach unten auf; geschlossen unsichtbar und nicht fokussierbar */
  .nav { display: block; position: fixed; inset: var(--head-h) 0 0; z-index: 40; overflow-y: auto; padding: 1.25rem var(--pad-x) 2.5rem; background: var(--paper); visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path 360ms var(--ease-in-out), visibility 0s linear 360ms; }
  .nav.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path 520ms var(--ease-out), visibility 0s; }
  .nav ul:not(.social) { flex-direction: column; gap: 0; font-family: var(--font-display); font-size: var(--step-head); text-transform: uppercase; line-height: 1.15; }
  .nav ul:not(.social) a { padding: 0.35rem 0; }
  .nav .nav__cta { display: block; margin-top: 0.5rem; }
  .nav .nav__cta a { color: var(--accent-dark); }
  .nav .social { flex-direction: row; margin-top: 1.75rem; }
  .nav .social a { width: 3rem; height: 3rem; }
  /* Menüpunkte gleiten nacheinander herein (--i setzt main.js) */
  .nav li { opacity: 0; transform: translateY(14px); transition: opacity 180ms ease, transform 220ms var(--ease-out); }
  .nav.is-open li { opacity: 1; transform: none; transition: opacity 360ms ease, transform 480ms var(--ease-out); transition-delay: calc(120ms + var(--i, 0) * 45ms); }
  html.menu-open { overflow: hidden; }
  .nav:focus { outline: none; }
}

@media (max-width: 1100px) {
  .route__map { grid-column: 1 / -1; grid-row: 1; }
  .route__steps { grid-row: 2; }
  .route__panel { grid-column: 1 / -1; grid-row: 3; }
  .js .station { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .station img { aspect-ratio: 4 / 3; height: 100%; }
  .station__text { padding: 1.5rem 1.5rem 0; }
  .route__step button { padding: 0.9rem 0.7rem 0.75rem; }
  .hosts__title { grid-column: 1 / -1; margin-bottom: 1rem; }
  .onsite__head h2, .onsite__head p { grid-column: 1 / -1; }
  .onsite__head p { margin-top: 1rem; }
  .shirts__stage, .shirts__body { grid-column: 1 / -1; }
  .shirts__body { margin-top: 2rem; }
  .faq__side { grid-column: 1 / -1; position: static; }
  .media-head__title, .media-head__text { grid-column: 1 / -1; }
  .media-head__text { margin-top: 1rem; }
  .gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery__item.is-feature { grid-column: span 2; }
  .faq__list { grid-column: 1 / -1; margin-top: 1.5rem; }
  .hosts__list { grid-column: 1 / -1; }
  .partners__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .plan__side { grid-column: 1 / 13; grid-template-columns: 1fr 1fr; align-items: start; margin-bottom: 2rem; }
  .plan__side h2, .plan__intro { grid-column: 1; }
  .finder { grid-column: 2; grid-row: 1 / span 2; }
  .finder__card { grid-column: 1 / -1; }
  .plan__map { grid-column: 1 / 13; }
}

@media (max-width: 900px) {
  .keycard__text { max-width: none; }
  .captains__photo, .captains__body { grid-column: 1 / -1; }
  .captains__body { margin-top: 2rem; }
  .route__intro { grid-template-columns: 1fr; row-gap: 1rem; }
  .route__intro h2, .route__intro p { grid-column: 1; }
  .bib { grid-template-columns: 1fr; }
  .foot__brand, .foot__nav { grid-column: 1 / -1; }
  .foot__nav { margin-top: 2rem; }
  .foot__legal { flex-direction: column; align-items: flex-start; }
  .foot__meta { justify-content: flex-start; }
}

/* =========================================================
   Telefon
   ========================================================= */
@media (max-width: 760px) {
  :root {
    --head-h: 64px;
    --section: 3.5rem;
    --step-head: 2rem;
    --step-display: 2.125rem;
    --step-lead: 1.125rem;
  }
  .logo img { height: 30px; }
  .masthead { gap: 0.75rem; }
  .masthead__cta { min-height: 2.75rem; padding: 0 0.85rem; }
  .hero__media::after { background: rgba(10, 10, 10, 0.55); }
  .hero__inner { grid-template-columns: 1fr; grid-template-rows: none; gap: 0.75rem; padding: 3.75rem var(--margin) 1rem; }
  .hero__content { grid-column: 1; grid-row: auto; margin-bottom: 0.5rem; }
  .keycards { grid-row: auto; grid-template-columns: 1fr; gap: 6px; }
  .keycard { --es: 9px; --ei: 9px; grid-template-columns: 5.25rem 1fr; grid-template-rows: none; column-gap: 0.75rem; row-gap: 0.15rem; align-items: baseline; padding: 1.3rem 1.5rem; }
  .keycard__fig { grid-row: 1 / span 2; font-size: 1.875rem; }
  .keycard__text { font-size: 0.9375rem; line-height: 1.35; }
  .keycard__link { display: none; } /* auf dem Telefon führen Button und nächster Abschnitt direkt weiter */
  .hero__when { margin-top: 0.75rem; }
  .hero__actions { margin-top: 1rem; gap: 0.25rem 1.5rem; }
  .hero__actions .button, .hero__actions .play { width: 100%; }
  .partners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hosts__list { grid-template-columns: 1fr; }
  .onsite__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
    .lightbox { width: 100vw; max-height: 100svh; }
  .lightbox__bar { padding: 0.6rem var(--margin) 0.9rem; flex-wrap: wrap; }
  .lightbox__download { order: 5; width: 100%; margin: 0.5rem 0 0; }
  .shirts__stage { padding: 1rem; gap: 0.5rem; }
  .shirts__order { width: 100%; }
  .qa summary { padding: 0.75rem 3.75rem 0.75rem 1rem; }
  .qa summary::after { right: 1rem; }
  .qa > :not(summary) { padding: 0 1rem; }
  .qa > :last-child { padding-bottom: 1rem; }
  .host { grid-template-columns: 1fr; gap: 0.75rem; }
  .host__logo img { height: 40px; }
  .host__logo--contact img { height: 33px; }
  .partners__grid a { height: 96px; padding: 1rem; }
  .route__steps ol { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .route__step button { min-height: 3.75rem; padding: 0.8rem 0.6rem 0.65rem; }
  .route__body { row-gap: 6px; }
  .js .station { display: flex; }
  .station img { aspect-ratio: 16 / 9; height: auto; }
  .station__text { padding: 1.1rem 1.1rem 0; }
  .route__pager { padding: 1rem 1.1rem 1.1rem; }
  .plan__side { grid-template-columns: 1fr; }
  .finder { grid-column: 1; grid-row: auto; }
  .legend { grid-template-columns: 1fr 1fr; }
  .tent text { display: none; }
  .site__rows text { font-size: 44px; }
  .news { padding-left: 12px; padding-right: 12px; }
  .bib { padding: 2.75rem 1.25rem 2.5rem; }
  .bib { --es: 12px; --ei: 12px; }
  .news { border-top-right-radius: 2.75rem; }
  .foot__logo { height: 38px; }
}
