/* LAST LEGS ULTRA · gemeinsames Stylesheet
   Markenfarben 1:1 aus dem Elementor-Kit der Live-Seite (post-15.css).
   Radius überall 0, wie live. Animiert werden nur transform, opacity und filter.
   Ein Signature-Moment: die Rennuhr im Hero (Countdown mit Stundenloop und Glockenpuls).
   Rollen: Himneu = Display und Labels, Behind The Nineties = Stimmung und Rennuhr, DM Sans = Text.
   Keine der Markenschriften hat Tabellenziffern (tnum), deshalb setzt die Rennuhr jede Ziffer in eine feste Zelle. */

/* ---------- Schriften (lokal, WOFF2, nur genutzte Schnitte) ---------- */
@font-face { font-family: "Himneu"; src: url("/assets/fonts/Himneu-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Himneu"; src: url("/assets/fonts/Himneu-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Himneu"; src: url("/assets/fonts/Himneu-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Behind The Nineties"; src: url("/assets/fonts/Behind-The-Nineties-Rg.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Behind The Nineties"; src: url("/assets/fonts/Behind-The-Nineties-It.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Behind The Nineties"; src: url("/assets/fonts/Behind-The-Nineties-Md.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dm-sans-normal-latin.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dm-sans-italic-latin.woff2") format("woff2"); font-weight: 100 1000; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Markenfarben (exakt) */
  --c-accent: #E6FF00;
  --c-primary: #FFFFFF;
  --c-secondary: #0E0E0E;
  --c-text: #DEDEDE;
  --c-surface-1: #141414;
  --c-surface-2: #080808;
  --c-surface-3: #000000;
  --c-surface-4: #202020;
  --c-footer: #1C1C1C;
  --c-line-24: #FFFFFF3D;
  --c-line-12: #FFFFFF1F;
  --c-line-9: #FFFFFF17;
  --c-line-39: #FFFFFF63;
  /* abgeleitet */
  --c-muted: rgba(222, 222, 222, 0.72);

  --f-display: "Himneu", "Arial Narrow", Arial, sans-serif;
  --f-serif: "Behind The Nineties", Georgia, "Times New Roman", serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Bewegungssprache wie odinbayer.de: zwei Kurven für alles */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-card: cubic-bezier(0.4, 0, 0.15, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --gutter-l: max(var(--gutter), env(safe-area-inset-left));
  --gutter-r: max(var(--gutter), env(safe-area-inset-right));
  --regbar-h: 0px;
  --maxw: 1360px;
  --section-y: clamp(96px, 13vw, 176px);
  --nav-h: 76px;

  color-scheme: dark;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--c-secondary);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  hyphens: none;
  -webkit-hyphens: none;
}
h1, h2, h3, .display, .h2, .h3, .band-question { text-wrap: balance; }
p, li { text-wrap: pretty; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; }
strong { color: var(--c-primary); font-weight: 700; }
::selection { background: var(--c-accent); color: var(--c-secondary); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 12px 18px; background: var(--c-accent); color: var(--c-secondary);
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase; text-decoration: none;
  transform: translateY(-160%); transition: transform 200ms var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); outline-color: var(--c-primary); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--c-surface-1); }
.section--deep { background: var(--c-surface-2); }
.flush { margin: 0; }
.gap-top { margin-top: 1em; }
.rr-error { margin-top: 12px; }

/* ---------- Typografie ---------- */
.display, .h2, .h3 { font-family: var(--f-display); text-transform: uppercase; color: var(--c-primary); }
.display { font-size: clamp(2.6rem, 7.2vw, 6.6rem); line-height: 0.95; letter-spacing: -0.01em; font-weight: 800; }
.h2 { font-size: clamp(2.3rem, 5.6vw, 4.9rem); line-height: 0.98; letter-spacing: -0.005em; font-weight: 800; color: var(--c-accent); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.1; font-weight: 700; }
/* Label-Rolle: präzise Daten (Datum, Uhrzeit, Phase, Einheit). Ersetzt die Mono-Labels der Messlatte
   ohne vierte Schriftfamilie. Ziffern stehen hier nie animiert, feste Breite braucht es deshalb nur in der Rennuhr. */
.label, .overline {
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.78rem; line-height: 1.35; color: var(--c-primary);
}
.overline { color: var(--c-muted); }
.serif-italic { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.6; color: var(--c-primary); }
.muted { color: var(--c-muted); }
.accent { color: var(--c-accent); }
.prose { max-width: 66ch; }
.prose a, .text-link {
  color: var(--c-primary); text-decoration: underline; text-decoration-color: var(--c-accent);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
  transition: color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .prose a:hover, .text-link:hover { color: var(--c-accent); }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--c-primary); --btn-bd: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd); border-radius: 0;
  font-family: var(--f-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-accent { --btn-bg: var(--c-accent); --btn-fg: var(--c-secondary); --btn-bd: var(--c-accent); }
.btn-white { --btn-bg: var(--c-primary); --btn-fg: var(--c-secondary); --btn-bd: var(--c-primary); }
.btn-ghost { --btn-bd: var(--c-primary); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 0.85rem; }
.btn .ico { width: 14px; height: 14px; flex: none; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-accent:hover { --btn-bg: var(--c-primary); --btn-bd: var(--c-primary); }
  .btn-white:hover { --btn-bg: var(--c-accent); --btn-bd: var(--c-accent); }
  .btn-ghost:hover { --btn-bg: var(--c-primary); --btn-fg: var(--c-secondary); }
  .btn:hover .ico { transform: translate(2px, -2px); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  view-transition-name: site-nav;
}
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(14, 14, 14, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--c-line-12);
  opacity: 0;
  transition: opacity 240ms var(--ease-out);
}
.nav-inner {
  position: relative; height: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
}
.nav.is-scrolled::before { opacity: 1; }
.nav-city, .nav-date {
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase; color: var(--c-primary);
  letter-spacing: 0.14em; font-size: 0.82rem; line-height: 1; white-space: nowrap;
}
.nav-city { justify-self: start; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.nav-date { justify-self: center; }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.nav-menu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  background: transparent; border: 1px solid var(--c-line-39); color: var(--c-primary);
  font-family: var(--f-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer; transition: transform 160ms var(--ease-out), border-color 200ms ease;
}
.nav-menu-btn:active { transform: scale(0.97); }
.burger { width: 18px; height: 10px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; }
.burger::before { top: 0; } .burger::after { bottom: 0; }
@media (hover: hover) and (pointer: fine) { .nav-menu-btn:hover { border-color: var(--c-primary); } }
@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  .nav-city, .nav-date { font-size: 0.72rem; letter-spacing: 0.12em; }
  .nav-sponsor, .nav-menu-label { display: none; }
  .nav-menu-btn { padding: 0; width: 44px; }
}
@media (max-width: 379px) { .nav-city, .nav-date { letter-spacing: 0.08em; } }

/* Menü (Dialog) */
.menu {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100svh; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--c-secondary); color: var(--c-text);
  opacity: 0; transform: translateY(-12px);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out), overlay 240ms allow-discrete, display 240ms allow-discrete;
}
.menu[open] { opacity: 1; transform: translateY(0); }
@starting-style { .menu[open] { opacity: 0; transform: translateY(-12px); } }
.menu::backdrop { background: rgba(0, 0, 0, 0.6); }
.menu-inner { min-height: 100%; display: flex; flex-direction: column; }
.menu-head { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.menu-list { list-style: none; margin: clamp(24px, 6vh, 64px) 0 32px; display: grid; gap: 2px; }
.menu-list a {
  display: flex; align-items: baseline; gap: 16px; min-height: 48px; padding: 4px 0;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; text-decoration: none;
  font-size: clamp(1.9rem, 6vw, 3.6rem); line-height: 1.05; color: var(--c-primary);
  opacity: 0; transform: translateY(16px);
  transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out), color 200ms ease;
  transition-delay: calc(var(--i, 0) * 45ms + 60ms);
}
.menu[open] .menu-list a { opacity: 1; transform: none; }
@starting-style { .menu[open] .menu-list a { opacity: 0; transform: translateY(16px); } }
@media (hover: hover) and (pointer: fine) { .menu-list a:hover { color: var(--c-accent); } }
.menu-foot { margin-top: auto; padding-block: 24px 32px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; border-top: 1px solid var(--c-line-12); }
.menu-foot a:not(.btn) { color: var(--c-muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Hero (Startseite) ---------- */
.hero {
  /* exakt ein Bildschirm: svh springt nicht, wenn die mobile Adressleiste ein- und ausfährt */
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  padding-top: calc(var(--nav-h) + 24px); padding-bottom: max(clamp(32px, 6svh, 80px), env(safe-area-inset-bottom));
  overflow: clip; isolation: isolate; background: var(--c-surface-3);
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media .hero-frame { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%;
}
.js .hero-media img { animation: fade 900ms var(--ease-out) both; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14,14,14,0.55) 0%, rgba(14,14,14,0) 26%),
    linear-gradient(90deg, rgba(14,14,14,0.82) 0%, rgba(14,14,14,0.35) 55%, rgba(14,14,14,0.1) 100%),
    linear-gradient(0deg, rgba(14,14,14,0.92) 0%, rgba(14,14,14,0) 55%);
}
.hero-content { display: grid; gap: clamp(16px, 2.4svh, 26px); }
.hero-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(0.8rem, 1.1vw, 0.95rem); letter-spacing: 0.3em; text-transform: uppercase; color: var(--c-primary); }
/* Logo nie höher als der Bildschirm erlaubt, damit Anmeldung und Fakten im ersten Viewport bleiben */
.hero-logo { width: clamp(270px, min(50vw, 88svh), 780px); margin-left: -0.6%; }
.hero-logo img { width: 100%; height: auto; }

/* ---------- Rennuhr (Signature-Moment) ----------
   Backyard-Logik: jede volle Stunde startet eine Runde. Die Uhr zählt zum Start,
   die Loop-Linie darunter füllt sich über die laufende Stunde, zur vollen Stunde schlägt die Glocke. */
.clock { display: grid; gap: 14px; justify-items: start; }
.clock[hidden] { display: none; }
.countdown { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; margin: 0; }
.cd-unit { padding: 0 clamp(14px, 2.4vw, 32px); border-left: 1px solid var(--c-line-24); display: grid; gap: 6px; }
.cd-unit:first-child { padding-left: 0; border-left: 0; }
.cd-num { font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1; color: var(--c-primary); margin: 0; display: flex; white-space: nowrap; }
/* feste Ziffernzelle: breiteste Ziffer der Serif ist 0,562 em */
.dg { display: inline-block; width: 0.6em; text-align: center; }
.cd-label { margin: 0; font-size: 0.7rem; color: var(--c-muted); }
.loop { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; max-width: 520px; }
.loop-track { position: relative; height: 2px; background: var(--c-line-24); overflow: hidden; }
.loop-fill, .loop-bell { position: absolute; inset: 0; background: var(--c-accent); transform-origin: left center; }
.loop-fill { transform: scaleX(0); }
.loop-bell { opacity: 0; }
.loop-label { margin: 0; font-size: 0.7rem; color: var(--c-muted); white-space: nowrap; }

/* Fakten im ersten Viewport: wann, wo, Format, Stand der Anmeldung */
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 0; margin: 0; max-width: 62rem; }
.facts li { padding: 0 16px; border-left: 1px solid var(--c-line-24); }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts .is-status { color: var(--c-accent); }
.hero .btn-row { margin-top: 4px; align-items: center; }
.only-mobile { display: none !important; }
@media (max-width: 767px) {
  .only-mobile { display: inline-flex !important; }
  /* Mobil: Bild nur oben, damit Läufer, Beine und Schuhe sichtbar bleiben, Inhalt darunter auf Tinte */
  .hero-media { bottom: 34%; }
  .hero-media img { object-position: 47% 50%; }
  .hero::after {
    background: linear-gradient(180deg, rgba(14,14,14,0.5) 0%, rgba(14,14,14,0) 22%, rgba(14,14,14,0) 38%, rgba(14,14,14,1) 66%);
  }
  .hero .btn-row { display: grid; grid-template-columns: 1fr 1fr; }
  .hero .btn-row .btn { width: 100%; }
  .hero .btn-row .btn-accent { grid-column: 1 / -1; }
  .hero-logo { width: min(100%, 460px); }
  .cd-num { font-size: clamp(2.1rem, 10vw, 3rem); }
  .cd-unit { padding: 0 clamp(10px, 3.4vw, 18px); }
  /* Mobil: Rennuhr mittig unter dem Logo, Einheiten symmetrisch */
  .clock { justify-items: center; }
  .countdown { justify-content: center; }
  .cd-unit { justify-items: center; text-align: center; }
  .cd-unit:last-child { padding-right: 0; }
  .facts { gap: 6px 14px; }
  .facts li { padding: 0; border: 0; }
}

/* Auftritt: kurze Opacity- und Translate-Fades, das Logo per Blur-Fade. Höchstens 900 ms inklusive Stagger. */
.hero-in { opacity: 0; transform: translateY(12px); animation: rise 700ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms + 120ms); }
.hero-logo.hero-in { transform: translateY(8px); filter: blur(10px); animation: blur-in 700ms var(--ease-out) both; animation-delay: 160ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes blur-in { from { opacity: 0; transform: translateY(8px); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* Unterseiten-Kopf */
.page-hero {
  position: relative; isolation: isolate; overflow: clip;
  padding-top: calc(var(--nav-h) + clamp(56px, 10vw, 128px)); padding-bottom: clamp(56px, 8vw, 104px);
  border-bottom: 1px solid var(--c-line-12);
}
.page-hero .display { max-width: 16ch; }
.page-hero .overline { margin-bottom: 18px; }

/* ---------- powered by (statisch, ruhig) ---------- */
.powered { border-block: 1px solid var(--c-line-12); }
.powered-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px clamp(28px, 5vw, 72px); padding-block: clamp(22px, 3vw, 36px); }
.powered-label { margin: 0; color: var(--c-muted); }
.powered-logos { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px clamp(28px, 5vw, 64px); }
.powered-logo { display: inline-flex; align-items: center; min-height: 44px; opacity: 0.72; transition: opacity 200ms ease; }
/* beide Logos gleiche optische Größe: LIFESTYLE ist flacher, bekommt mehr Höhe */
.powered-logo img { width: auto; height: 58px; }
.powered-logo--lifestyle img { height: 80px; }
@media (hover: hover) and (pointer: fine) { .powered-logo:hover { opacity: 1; } }
.powered-logo:focus-visible { opacity: 1; }

/* ---------- Intro ---------- */
.intro-head { max-width: 18ch; }
.intro-head .line2 { color: var(--c-accent); display: block; }
.intro-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; margin-top: clamp(48px, 7vw, 96px); }
.intro-grid .lead { grid-column: 1 / span 6; }
.intro-body { grid-column: 8 / span 5; }
.intro-body p { color: var(--c-text); }
.intro-body .stmt { font-family: var(--f-display); text-transform: uppercase; font-weight: 700; color: var(--c-primary); font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.25; }
@media (max-width: 899px) {
  .intro-grid { grid-template-columns: 1fr; gap: 8px; }
  .intro-grid .lead, .intro-body { grid-column: 1 / -1; }
}

/* Bildband mit Frage */
.band { position: relative; isolation: isolate; min-height: clamp(460px, 78vh, 820px); display: flex; align-items: flex-end; overflow: clip; background: var(--c-surface-3); }
.band-media { position: absolute; inset: 0; z-index: -2; }
.band-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14,14,14,0.95) 0%, rgba(14,14,14,0.25) 55%, rgba(14,14,14,0.5) 100%); }
@media (max-width: 767px) { .band-media img { object-position: 64% 50%; } }
.band-content { padding-block: clamp(56px, 9vw, 120px); display: grid; gap: 28px; justify-items: start; }
.cta-with-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cta-status { margin: 0; color: var(--c-muted); }
.band-question { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--c-primary); font-size: clamp(2.6rem, 8vw, 7.4rem); line-height: 1.08; padding-bottom: 0.08em; max-width: 14ch; margin: 0; }
.band-question em { font-style: italic; color: var(--c-accent); }

/* ---------- Strecke ---------- */
.route-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); }
/* Karte gerahmt statt als harter heller Block in der dunklen Welt */
.map-frame { position: relative; margin: 0; border: 1px solid var(--c-line-24); padding: clamp(10px, 1.4vw, 18px); background: var(--c-surface-1); }
.map-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin: 0 0 clamp(10px, 1.4vw, 16px); }
.map-meta p { margin: 0; }
.map-meta .muted { color: var(--c-muted); }
.map-scroll { position: relative; background: #EDEDED; }
.map-canvas { position: relative; }
.map-canvas img { width: 100%; height: auto; }
.spot {
  position: absolute; left: clamp(20px, var(--x), calc(100% - 20px)); top: clamp(20px, var(--y), calc(100% - 20px));
  transform: translate(-50%, -50%);
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.spot-dot {
  width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--c-secondary); color: var(--c-accent); border: 2px solid var(--c-accent);
  font-family: var(--f-display); font-weight: 800; font-size: 0.9rem; line-height: 1;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.spot:active .spot-dot { transform: scale(0.94); }
.spot-tip {
  position: absolute; bottom: calc(100% + 4px); left: 50%;
  transform: translate(-50%, 6px); opacity: 0; pointer-events: none;
  background: var(--c-secondary); color: var(--c-primary); border: 1px solid var(--c-line-24);
  padding: 8px 12px; white-space: nowrap; font-size: 0.85rem; font-weight: 600; line-height: 1.3;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
  z-index: 2;
}
.spot[data-align="start"] .spot-tip { left: 0; transform: translate(0, 6px); }
.spot[data-align="end"] .spot-tip { left: auto; right: 0; transform: translate(0, 6px); }
.spot.is-open .spot-tip, .spot:focus-visible .spot-tip { opacity: 1; transform: translate(-50%, 0); }
.spot[data-align="start"].is-open .spot-tip, .spot[data-align="start"]:focus-visible .spot-tip,
.spot[data-align="end"].is-open .spot-tip, .spot[data-align="end"]:focus-visible .spot-tip { transform: translate(0, 0); }
.spot.is-open .spot-dot, .spot:focus-visible .spot-dot { background: var(--c-accent); color: var(--c-secondary); }
.spot:focus-visible { outline-offset: -4px; }
@media (hover: hover) and (pointer: fine) {
  .spot:hover .spot-tip { opacity: 1; transform: translate(-50%, 0); }
  .spot[data-align="start"]:hover .spot-tip, .spot[data-align="end"]:hover .spot-tip { transform: translate(0, 0); }
  .spot:hover .spot-dot { background: var(--c-accent); color: var(--c-secondary); }
}
.map-hint { display: none; margin: 12px 0 0; color: var(--c-muted); }
.legend { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 24px; margin-top: 20px; }
.legend li { display: flex; align-items: center; gap: 10px; color: var(--c-text); }
.legend .num { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border: 1px solid var(--c-line-39); color: var(--c-accent); font-family: var(--f-display); font-weight: 800; font-size: 0.68rem; letter-spacing: 0; }
@media (max-width: 999px) { .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 379px) { .legend { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .map-scroll { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .map-frame { padding: 8px; margin-inline: calc(var(--gutter-l) * -0.5) calc(var(--gutter-r) * -0.5); }
  .map-canvas { width: 820px; }
  .map-hint { display: block; }
}

.route-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; margin-top: clamp(48px, 7vw, 88px); align-items: start; }
.route-text { grid-column: 1 / span 6; }
.route-text h3 { font-family: var(--f-display); text-transform: uppercase; color: var(--c-primary); font-size: 1.15rem; margin: 28px 0 8px; font-weight: 700; }
.stats { grid-column: 8 / span 5; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--c-line-24); }
.stat { display: flex; align-items: baseline; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--c-line-12); }
.stat-num { font-family: var(--f-display); font-weight: 800; color: var(--c-accent); font-size: clamp(2.8rem, 5.4vw, 4.6rem); line-height: 1; }
.stat-unit { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; color: var(--c-primary); font-size: clamp(1.1rem, 1.8vw, 1.5rem); }
.stat-text { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; color: var(--c-primary); font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.05; }
.stat-text .eq { color: var(--c-accent); }
@media (max-width: 899px) {
  .route-grid { grid-template-columns: 1fr; }
  .route-text, .stats { grid-column: 1 / -1; }
}

/* ---------- Anmeldephasen ---------- */
.phases { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--c-line-24); }
.phase { position: relative; }
.phase-inner { display: grid; gap: 14px; padding: clamp(24px, 3vw, 40px) clamp(0px, 2vw, 32px) clamp(24px, 3vw, 40px) 0; height: 100%; text-decoration: none; color: inherit; }
.phase + .phase .phase-inner { padding-left: clamp(20px, 2.4vw, 36px); border-left: 1px solid var(--c-line-12); }
.phase::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--c-accent); opacity: 0; }
.phase.is-current::before { opacity: 1; }
.phase-price { white-space: nowrap; font-family: var(--f-display); font-weight: 800; color: var(--c-primary); font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1; margin: 0; }
.phase.is-current .phase-price { color: var(--c-accent); }
.phase-rule { width: 40px; height: 1px; background: var(--c-line-39); border: 0; margin: 0; }
.phase-date { margin: 0; color: var(--c-text); font-size: 0.86rem; }
a.phase-inner { transition: background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { a.phase-inner:hover { background: var(--c-line-9); } }
@media (max-width: 767px) {
  .phases { grid-template-columns: 1fr; }
  .phase + .phase .phase-inner { padding-left: 0; border-left: 0; border-top: 1px solid var(--c-line-12); }
  .phase-inner { gap: 8px; padding-right: 0; }
  .phase-rule { display: none; }
}

.soldout { margin-top: clamp(40px, 5vw, 64px); }
/* Status statt Animation: voll ist voll */
.bar { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 16px; }
.bar-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c-accent); }
.bar-label, .bar-pct { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; color: var(--c-primary); font-size: clamp(1rem, 1.8vw, 1.35rem); letter-spacing: 0.02em; line-height: 1.1; }
.bar-pct { color: var(--c-accent); }
.donate { position: relative; padding-left: 26px; margin-top: 28px; max-width: 70ch; }
.donate::before { content: ""; position: absolute; left: 1px; top: 0.62em; width: 9px; height: 9px; background: var(--c-accent); transform: rotate(45deg); }
.phases-cta { margin-top: 36px; }

/* ---------- Akkordeon ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.faq-side { grid-column: 1 / span 4; }
.faq-side-inner { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 28px; justify-items: start; }
.faq-list { grid-column: 6 / span 7; border-top: 1px solid var(--c-line-24); }
.acc { border-bottom: 1px solid var(--c-line-24); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 18px 0; -webkit-tap-highlight-color: transparent; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary h3 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; color: var(--c-primary); font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.15; transition: color 200ms ease; }
.acc-icon { position: relative; width: 20px; height: 20px; flex: none; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--c-accent); transition: transform 240ms var(--ease-out); }
.acc-icon::after { transform: rotate(90deg); }
.acc[open] .acc-icon::after { transform: rotate(0deg); }
.acc[open] summary h3 { color: var(--c-accent); }
@media (hover: hover) and (pointer: fine) { .acc summary:hover h3 { color: var(--c-accent); } }
.acc-body { padding: 0 0 32px; max-width: 70ch; }
.acc[open] .acc-body { animation: accIn 280ms var(--ease-out); }
@keyframes accIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.acc-body ul { list-style: none; display: grid; gap: 10px; }
.acc-body li { position: relative; padding-left: 22px; }
.acc-body li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 2px; background: var(--c-accent); }
.acc-body .hotels li { padding-bottom: 6px; }
.faq-cta { margin-top: 40px; }
@media (max-width: 899px) {
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .faq-side, .faq-list { grid-column: 1 / -1; }
  .faq-side-inner { position: static; }
  .faq-side .btn { display: none; }
}
@media (min-width: 900px) { .faq-cta--mobile { display: none; } }

/* ---------- Race Result ---------- */
.rr-section { background: var(--c-surface-2); }
.tabs { display: flex; flex-wrap: wrap; gap: 0; margin-top: clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--c-line-24); }
.tab {
  position: relative; min-height: 52px; padding: 0 22px; background: transparent; border: 0; cursor: pointer;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.95rem; color: var(--c-muted);
  transition: color 200ms ease;
}
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-out); }
.tab[aria-selected="true"] { color: var(--c-primary); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .tab:hover { color: var(--c-primary); } }
.tab-panel { padding-top: 32px; }
.tab-panel[hidden] { display: none; }
/* Liste scrollt in sich, sonst wird die Startseite mit 180 Teilnehmern über 6000 px lang */
.rr-widget { background: #FFFFFF; color: #111111; padding: clamp(12px, 2vw, 24px); overflow: auto; max-height: min(78vh, 880px); scrollbar-gutter: stable; }
.rr-widget:empty { display: none; }
/* Widget sitzt auf Weiß: helle Formularfelder statt der dunklen aus color-scheme, globale Weiß-Fettung und gelber Fokusring wären hier unsichtbar */
.rr-widget { color-scheme: light; }
.rr-widget strong, .rr-widget b { color: inherit; }
.rr-widget :focus-visible { outline-color: #111111; }

/* Platzhalter für externe Inhalte */
.embed { position: relative; background: var(--c-surface-1); border: 1px solid var(--c-line-12); }
.embed-ph { display: grid; gap: 14px; align-content: center; justify-items: start; padding: clamp(24px, 4vw, 48px); min-height: 100%; }
.embed-ph .embed-title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; color: var(--c-primary); font-size: 1.3rem; margin: 0; }
.embed-ph p { margin: 0; max-width: 52ch; font-size: 0.95rem; }
.embed-ph .btn-row { margin-top: 6px; }
.embed.is-loaded .embed-ph { display: none; }
.embed-map { aspect-ratio: 16 / 11; }
.embed-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(0.9); }
.embed-rr { min-height: 280px; }
.embed-rr.is-loaded { background: transparent; border: 0; }

/* ---------- Kontakt ---------- */
.contact { background: var(--c-surface-1); }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: stretch; }
.contact-map { grid-column: 1 / span 7; }
.contact-card { grid-column: 9 / span 4; display: grid; align-content: start; gap: 22px; }
.contact-card .overline { margin: 0; }
.contact-card .h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
.contact-box { border-top: 1px solid var(--c-line-24); padding-top: 24px; display: grid; gap: 14px; }
.contact-box h3 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; color: var(--c-primary); font-size: 1.25rem; }
.contact-list { list-style: none; display: grid; gap: 10px; font-style: normal; }
.contact-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.contact-list li::before { content: ""; width: 8px; height: 8px; margin: 0.65em 0 0 4px; background: var(--c-accent); }
.contact-list a { min-height: 44px; display: inline-flex; align-items: center; margin-block: -10px; }
.social { display: flex; align-items: center; gap: 16px; padding-top: 8px; }
.social .overline { font-size: 0.75rem; }
@media (max-width: 899px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map, .contact-card { grid-column: 1 / -1; }
  .contact-card { order: -1; }
}

/* ---------- mehr events / Footer ---------- */
.events { background: var(--c-footer); }
/* ruhige Zeilenliste statt vier gleicher Karten. Die ganze Zeile ist klickbar (gestreckter Link). */
.events-list { list-style: none; margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--c-line-24); }
.event-row {
  position: relative; border-bottom: 1px solid var(--c-line-12);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; align-items: baseline; gap: 10px clamp(24px, 4vw, 64px);
  padding: clamp(20px, 2.4vw, 30px) 0;
}
.event-name { margin: 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; color: var(--c-primary); font-size: clamp(1.35rem, 2.6vw, 2.2rem); line-height: 1.02; transition: color 200ms ease; }
.event-text { margin: 0; font-size: 0.93rem; line-height: 1.6; color: var(--c-muted); max-width: 60ch; }
.event-go { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; white-space: nowrap; color: var(--c-primary); text-decoration: none; }
.event-go::after { content: ""; position: absolute; inset: 0; }
.event-go .ico { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .event-row:hover .event-name { color: var(--c-accent); }
  .event-row:hover .event-go .ico { transform: translate(2px, -2px); }
}
.event-row:active .event-go .ico { transform: translate(1px, -1px); }
@media (max-width: 899px) {
  .event-row { grid-template-columns: minmax(0, 1fr) auto; }
  .event-text { grid-column: 1 / -1; grid-row: 2; }
}
/* Rechtsseiten: kompakt, nur Name und Link. Die Beschreibung bleibt für Screenreader und Suche im Dokument. */
.events--compact .event-row { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 0; }
.events--compact .event-name { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
.events--compact .event-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.events--compact .h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.events--compact.section { padding-block: clamp(56px, 7vw, 96px); }

.footer { background: var(--c-surface-3); border-top: 1px solid var(--c-line-12); padding-block: 28px; font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer a, .footer button.linkish { color: var(--c-text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; transition: color 200ms ease; }
.footer .made a { text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .footer a:hover, .footer button.linkish:hover { color: var(--c-accent); } }
button.linkish { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* ---------- Sponsoring ---------- */
.packages { list-style: none; display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 2px; align-items: stretch; }
.package { background: var(--c-surface-1); padding: clamp(28px, 3vw, 44px); display: grid; align-content: start; gap: 20px; position: relative; }
.package--premium { background: var(--c-surface-4); }
.package--premium::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c-accent); }
.package-name { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; color: var(--c-primary); font-size: 1.2rem; letter-spacing: 0.02em; margin: 0; }
.package-price { font-family: var(--f-display); font-weight: 800; color: var(--c-accent); font-size: clamp(3rem, 5.4vw, 4.8rem); line-height: 1; margin: 0; }
.package-tax { font-family: var(--f-serif); font-style: italic; color: var(--c-text); margin: -8px 0 0; }
.package hr { border: 0; height: 1px; background: var(--c-line-24); margin: 4px 0; }
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--c-primary); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.38em; width: 12px; height: 7px; border-left: 2px solid var(--c-accent); border-bottom: 2px solid var(--c-accent); transform: rotate(-45deg); }
.pkg-cta { margin-top: 40px; }
@media (max-width: 999px) { .packages { grid-template-columns: 1fr; } }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--c-line-24); }
.step { padding: 32px clamp(16px, 2vw, 28px) 32px 0; display: grid; gap: 14px; align-content: start; }
.step + .step { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--c-line-12); }
.step h3 { display: grid; gap: 14px; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; color: var(--c-primary); font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.15; }
.step h3 .n { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--c-accent); font-size: clamp(3rem, 5vw, 4.4rem); line-height: 1; text-transform: none; }
.step p { margin: 0; }
@media (max-width: 999px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--c-line-12); }
}
@media (max-width: 599px) {
  .steps { grid-template-columns: 1fr; }
  .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--c-line-12); }
}

/* ---------- Rechtstexte ---------- */
.legal-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.legal-toc { grid-column: 1 / span 3; }
.legal-toc-inner { position: sticky; top: calc(var(--nav-h) + 32px); }
.legal-toc p { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; color: var(--c-primary); margin-bottom: 12px; }
.legal-toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--c-line-24); }
.legal-toc a { display: block; padding: 8px 0 8px 16px; color: var(--c-muted); text-decoration: none; font-size: 0.92rem; line-height: 1.4; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .legal-toc a:hover { color: var(--c-accent); } }
.legal-body { grid-column: 5 / span 8; max-width: 76ch; overflow-wrap: anywhere; }
.legal-body--full { grid-column: 1 / -1; max-width: none; columns: 2 360px; column-gap: clamp(32px, 5vw, 80px); }
.legal-body--full > section { break-inside: avoid; }
.legal-body h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; color: var(--c-accent); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; margin: 56px 0 18px; }
.legal-body h3 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; color: var(--c-primary); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.2; margin: 36px 0 12px; }
.legal-body h4 { font-family: var(--f-body); font-weight: 700; color: var(--c-primary); font-size: 1.02rem; margin: 26px 0 8px; }
.legal-body > :first-child, .legal-body > section:first-child > :first-child { margin-top: 0; }
.legal-body ul { list-style: none; display: grid; gap: 8px; margin: 0 0 1em; }
.legal-body li { position: relative; padding-left: 22px; }
.legal-body li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 2px; background: var(--c-accent); }
.legal-body a { color: var(--c-primary); text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: 3px; }
.legal-body--full h2 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); color: var(--c-primary); margin: 0 0 10px; }
.legal-body--full section { margin-bottom: 36px; }
@media (max-width: 899px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc, .legal-body { grid-column: 1 / -1; }
  .legal-toc-inner { position: static; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); }
.notfound .display { max-width: 12ch; margin: 18px 0 28px; }

/* ---------- Consent ---------- */
.cc-banner {
  position: fixed; left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 80; margin: 0;
  width: auto; max-width: 420px; padding: 22px; border: 1px solid var(--c-line-24);
  background: var(--c-surface-1); color: var(--c-text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0; transform: translateY(16px);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out), display 240ms allow-discrete;
}
.cc-banner[open] { opacity: 1; transform: none; }
@starting-style { .cc-banner[open] { opacity: 0; transform: translateY(16px); } }
.cc-title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; color: var(--c-primary); font-size: 1.2rem; margin: 0 0 10px; }
.cc-text { font-size: 0.92rem; line-height: 1.6; margin: 0 0 18px; }
.cc-text a { color: var(--c-primary); text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: 3px; }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-actions .btn { width: 100%; padding: 0 12px; }
.cc-actions .linkish { grid-column: 1 / -1; justify-self: center; min-height: 44px; color: var(--c-primary); text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: 3px; font-weight: 600; }

.cc-modal {
  width: min(640px, calc(100% - 32px)); max-height: min(88dvh, 880px); padding: 0; margin: auto;
  border: 1px solid var(--c-line-24); background: var(--c-surface-1); color: var(--c-text);
  opacity: 0; transform: scale(0.97);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), overlay 220ms allow-discrete, display 220ms allow-discrete;
}
.cc-modal[open] { opacity: 1; transform: none; }
@starting-style { .cc-modal[open] { opacity: 0; transform: scale(0.97); } }
.cc-modal::backdrop { background: rgba(0, 0, 0, 0); transition: background-color 220ms ease, overlay 220ms allow-discrete, display 220ms allow-discrete; }
.cc-modal[open]::backdrop { background: rgba(0, 0, 0, 0.66); }
@starting-style { .cc-modal[open]::backdrop { background: rgba(0, 0, 0, 0); } }
.cc-modal-inner { display: flex; flex-direction: column; max-height: inherit; }
.cc-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px 14px; border-bottom: 1px solid var(--c-line-12); }
.cc-modal-head .cc-title { margin: 0; }
.cc-close { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 1px solid var(--c-line-24); color: var(--c-primary); cursor: pointer; transition: transform 160ms var(--ease-out); }
.cc-close:active { transform: scale(0.97); }
.cc-close span { position: relative; width: 16px; height: 16px; }
.cc-close span::before, .cc-close span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; transform: rotate(45deg); }
.cc-close span::after { transform: rotate(-45deg); }
.cc-modal-body { padding: 18px 24px; overflow-y: auto; }
.cc-modal-body > p { font-size: 0.92rem; }
.cc-cats { list-style: none; display: grid; gap: 2px; margin-top: 12px; }
.cc-cat { background: var(--c-surface-2); padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: start; }
.cc-cat label { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; color: var(--c-primary); font-size: 1rem; cursor: pointer; }
.cc-cat p { grid-column: 1 / -1; margin: 0; font-size: 0.86rem; line-height: 1.55; color: var(--c-muted); }
.cc-cat .always { font-size: 0.8rem; color: var(--c-accent); font-weight: 600; }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { position: absolute; inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; background: var(--c-surface-4); border: 1px solid var(--c-line-39); transition: background-color 200ms ease, border-color 200ms ease; }
.switch .thumb { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; background: var(--c-primary); transition: transform 200ms var(--ease-out), background-color 200ms ease; }
.switch input:checked ~ .track { background: var(--c-accent); border-color: var(--c-accent); }
.switch input:checked ~ .thumb { transform: translateX(22px); background: var(--c-secondary); }
.switch input:focus-visible ~ .track { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled ~ .track { opacity: 0.7; }
.cc-modal-foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 24px 22px; border-top: 1px solid var(--c-line-12); }
.cc-modal-foot .btn { flex: 1 1 120px; padding: 0 12px; }
.cc-modal-foot .btn:first-child { flex-basis: 100%; }

/* ---------- Scroll-Reveals: kurze Fades, Stagger 60 ms, höchstens 5 Stufen ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--d, 0) * 60ms); }
.js .reveal.in-view { opacity: 1; transform: none; }

/* ---------- Mobile Anmeldeleiste ----------
   Erscheint unter 768 px, sobald der Kopf der Seite aus dem Bild ist. Weicht dem Cookie-Banner. */
.regbar { display: none; }
@media (max-width: 767px) {
  :root { --regbar-h: 64px; }
  .regbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    align-items: center; justify-content: space-between; gap: 12px;
    min-height: calc(var(--regbar-h) + env(safe-area-inset-bottom));
    padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom)) var(--gutter-l);
    background: rgba(20, 20, 20, 0.94); border-top: 1px solid var(--c-line-12);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transform: translateY(100%); opacity: 0; visibility: hidden;
    transition: transform 240ms var(--ease-out), opacity 240ms var(--ease-out), visibility 0s linear 240ms;
  }
  .regbar.is-visible { transform: none; opacity: 1; visibility: visible; transition: transform 240ms var(--ease-out), opacity 240ms var(--ease-out), visibility 0s; }
  .regbar-status { display: grid; gap: 2px; margin: 0; line-height: 1; }
  .regbar-status strong { font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; color: var(--c-primary); letter-spacing: 0; }
  .regbar-status span { font-size: 0.64rem; color: var(--c-muted); }
  .regbar .btn { min-height: 44px; padding: 0 14px; font-size: 0.8rem; }
  body.has-regbar .footer { padding-bottom: calc(28px + var(--regbar-h) + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-transparency: reduce) { .regbar { background: var(--c-surface-1); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ---------- View Transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms var(--ease-out) both vt-out; }
::view-transition-new(root) { animation: 260ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Reduced Motion: Bewegung raus, Fades bleiben ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-media img { animation: fade 400ms ease both; }
  .hero-in { animation: fade 400ms ease both; transform: none; }
  .hero-logo.hero-in { animation: fade 400ms ease both; transform: none; filter: none; }
  .js .reveal { transform: none; transition: opacity 400ms ease; }
  .loop-fill { transition: none !important; }
  .regbar, .regbar.is-visible { transform: none; }
  .menu, .menu[open], .cc-banner, .cc-banner[open], .cc-modal, .cc-modal[open] { transform: none; }
  .menu-list a, .menu[open] .menu-list a { transform: none; }
  .acc[open] .acc-body { animation: fade 200ms ease; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-transparency: reduce) {
  .nav::before { background: var(--c-secondary); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Credit Odin Bayer (dezent, nimmt die Textfarbe des Footers an) ---------- */
.st-credit { margin: 0; font-size: 14px; letter-spacing: 0.01em; }
.st-credit a { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; color: inherit; text-decoration: none; opacity: 0.6; transition: opacity 200ms ease; }
@media (hover: hover) and (pointer: fine) { .st-credit a:hover { opacity: 1; text-decoration: none; } }
.st-credit a:focus-visible { opacity: 1; }

/* Sponsoring: Hauptsponsor und Partner-Titel unter den Paketen */
.pkg-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; margin-top: clamp(40px, 5vw, 64px); }
.pkg-extra-h { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.05rem; letter-spacing: 0.02em; margin: 0 0 6px; color: var(--c-text); }
.pkg-extra p { margin: 0; color: var(--c-muted); }
.pkg-note { margin-top: 28px; color: var(--c-muted); }
@media (max-width: 767px) { .pkg-extra { grid-template-columns: 1fr; } }
