/* Hohe Schrecke Waldlauf – Stylesheet Version 3
   Moderner Aufbau angelehnt an mw-diagnose.de, Farben aus dem Vereinslogo:
   dunkles Waldgrün als Grund, Gelb als Akzent. Helles Thema über html[data-thema="hell"]. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/interdisplay-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/interdisplay-extrabold.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/interdisplay-black.woff") format("woff"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0a140e;
  --bg2: #0e1a13;
  --card: #12211a;
  --card2: #172a20;
  --line: #233a2c;
  --line2: #2f4c3a;
  --ink: #f2f5ef;
  --txt: #bfcbc2;
  --mut: #8fa096;
  --g: #f2e12b;          /* Akzentfläche: Knöpfe, Bänder */
  --g2: #fff06a;         /* Akzent beim Drüberfahren */
  --gd: #f2e12b;         /* Akzent als Schrift und Rand */
  --gelb: #f2e12b;
  --btnfg: #15201a;
  --linie: #f2e12b;      /* Höhenprofile und Streckenverlauf */
  --flaeche: rgba(242, 225, 43, 0.13);
  --marke: #ffffff;      /* Punkt Hängeseilbrücke */
  --fokus: #f2e12b;
  --kopf: rgba(10, 20, 14, 0.86);
  --stein: var(--mut);

  --display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --breite: 76rem;
  --lese: 40rem;
  --rand: clamp(1.1rem, 4vw, 2.5rem);
  --r: 14px;
  --r-s: 10px;
  --kopfhoehe: 4.25rem;
}
html[data-thema="hell"] {
  color-scheme: light;
  --bg: #f3f5ef;
  --bg2: #e9eee4;
  --card: #ffffff;
  --card2: #f8faf5;
  --line: #d5dccf;
  --line2: #bfcab8;
  --ink: #15201a;
  --txt: #34423a;
  --mut: #55635a;
  --gd: #2f6b3f;
  --linie: #2f6b3f;
  --flaeche: rgba(47, 107, 63, 0.16);
  --marke: #f2e12b;
  --fokus: #1e3b2c;
  --kopf: rgba(243, 245, 239, 0.9);
}
html[data-thema="hell"] .abschnitt .akzent { background: linear-gradient(transparent 64%, rgba(242, 225, 43, 0.9) 64%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.06em; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--txt);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
b, strong { color: var(--ink); font-weight: 700; }
::selection { background: rgba(242, 225, 43, 0.35); }

a { color: var(--gd); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--fokus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.8rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1.1em; max-width: var(--lese); }
.akzent, .punkt { color: var(--gd); }

.kicker {
  display: block; margin: 0 0 1rem; max-width: none;
  font-family: var(--text); font-weight: 700; font-size: 0.75rem; line-height: 1.4;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gd);
}

.skip { position: absolute; left: -999px; top: 0; background: var(--g); color: var(--btnfg); padding: 0.6rem 1rem; z-index: 100; border-radius: 8px; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: var(--kopf);
  -webkit-backdrop-filter: saturate(150%) blur(12px); backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 2px solid var(--g);
}
.kopf .wrap { display: flex; align-items: center; gap: 0.9rem; min-height: var(--kopfhoehe); }
.kopf .marke {
  display: flex; align-items: center; gap: 0.7rem; margin-right: auto;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  font-family: var(--display); font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1.05;
}
.kopf .marke img { width: 44px; height: 44px; }
.kopf .marke small { display: block; font-family: var(--text); font-weight: 400; font-size: 0.72rem; letter-spacing: 0; color: var(--mut); margin-top: 0.2rem; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.1rem; }
.nav a {
  display: block; padding: 0.45rem 0.6rem; color: var(--ink); text-decoration: none;
  font-size: 0.9rem; border-radius: 8px; white-space: nowrap;
}
.nav a:hover { background: var(--card2); }
.nav a[aria-current="page"] { color: var(--gd); font-weight: 600; }
.nav a.knopf { margin-left: 0.5rem; padding: 0.55rem 1rem; color: var(--btnfg); }
.nav a.knopf:hover { background: var(--g2); }

.thema-knopf, .menu-knopf {
  flex: none; height: 2.45rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: transparent; color: var(--ink); border: 1px solid var(--line2); border-radius: var(--r-s);
  font: 600 0.9rem var(--text); cursor: pointer;
}
.thema-knopf { width: 2.45rem; padding: 0; }
.thema-knopf svg { width: 1.1rem; height: 1.1rem; }
.thema-knopf:hover, .menu-knopf:hover { border-color: var(--gd); color: var(--gd); }
.thema-knopf .mond { display: none; }
html[data-thema="hell"] .thema-knopf .sonne { display: none; }
html[data-thema="hell"] .thema-knopf .mond { display: block; }
.menu-knopf { display: none; padding: 0 0.9rem; }

@media (max-width: 1260px) {
  .menu-knopf { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg2); border-bottom: 2px solid var(--g); }
  .nav.offen { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 0.5rem var(--rand) 1.1rem; }
  .nav a { padding: 0.8rem 0.5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a.knopf { margin: 0.9rem 0 0; justify-content: center; border-radius: var(--r-s); }
}
@media (max-width: 420px) {
  .kopf .marke { font-size: 1rem; }
  .kopf .marke img { width: 38px; height: 38px; }
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none;
  font-family: var(--text); font-weight: 600; font-size: 0.98rem; line-height: 1.2;
  padding: 0.8rem 1.3rem; border-radius: var(--r-s);
  background: var(--g); color: var(--btnfg); border: 1px solid var(--g);
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.knopf:hover { background: var(--g2); border-color: var(--g2); color: var(--btnfg); box-shadow: 0 10px 28px -10px rgba(242, 225, 43, 0.75); }
.knopf.hell, .knopf.dunkel { background: transparent; color: var(--ink); border-color: var(--line2); }
.knopf.hell:hover, .knopf.dunkel:hover { background: rgba(242, 225, 43, 0.08); border-color: var(--gd); color: var(--ink); box-shadow: none; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }

/* ---------- Startseite: Bühne (immer dunkel) ---------- */
.buehne {
  --ink: #f2f5ef; --txt: #d3dcd5; --mut: #a8b5ac; --gd: #f2e12b; --line2: rgba(242, 245, 239, 0.32);
  position: relative; color: var(--txt); overflow: hidden; background: #0a140e;
}
.buehne-medien { position: absolute; inset: 0; }
.buehne-medien img, .buehne-medien video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.buehne::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(95deg, rgba(10, 20, 14, 0.93) 0%, rgba(10, 20, 14, 0.72) 46%, rgba(10, 20, 14, 0.28) 100%),
    linear-gradient(0deg, rgba(10, 20, 14, 0.6) 0%, rgba(10, 20, 14, 0) 45%);
}
.buehne .wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.45fr 1fr; align-items: center; gap: 2.5rem;
  min-height: min(92vh, 50rem); padding-top: 4rem; padding-bottom: calc(clamp(70px, 11vw, 130px) + 2.5rem);
}
@media (prefers-reduced-motion: reduce) { .buehne-film { display: none; } }
.buehne h1 { font-size: clamp(3.4rem, 9.4vw, 7.9rem); font-weight: 800; letter-spacing: -0.048em; line-height: 0.94; margin-bottom: 0.32em; }
.buehne .unterzeile { font-size: clamp(1.06rem, 1.8vw, 1.22rem); max-width: 34rem; margin-bottom: 0; }
.buehne .knopf.hell { background: rgba(10, 20, 14, 0.35); }
.punkte { list-style: none; margin: 1.7rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; font-size: 0.9rem; color: var(--mut); }
.punkte li { display: flex; align-items: center; gap: 0.55rem; }
.punkte li::before { content: ""; flex: none; width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 3px rgba(242, 225, 43, 0.22); }

/* Das Erkennungszeichen: die Startnummer */
.startnummer {
  justify-self: center; position: relative;
  width: min(100%, 21rem); padding: 0 0 1.2rem;
  background: #ffffff; color: #15201a; border-radius: 6px; text-align: center;
  transform: rotate(-3deg);
  box-shadow: 0 1.6rem 3rem rgba(0, 0, 0, 0.55), 0 0 60px -10px rgba(242, 225, 43, 0.35);
  animation: anheften 0.9s cubic-bezier(.2, .8, .25, 1) both 0.15s;
}
.startnummer::before, .startnummer::after {
  content: ""; position: absolute; top: 0.75rem; left: 0.8rem; right: 0.8rem; height: 0.7rem;
  background:
    radial-gradient(circle at 0.35rem 0.35rem, #0a140e 0.3rem, transparent 0.32rem) left / 0.7rem 0.7rem no-repeat,
    radial-gradient(circle at 0.35rem 0.35rem, #0a140e 0.3rem, transparent 0.32rem) right / 0.7rem 0.7rem no-repeat;
}
.startnummer::after { top: auto; bottom: 0.75rem; }
.startnummer .band {
  display: block; background: var(--gelb); color: #15201a; border-radius: 6px 6px 0 0;
  padding: 1.6rem 1rem 0.6rem;
  font-family: var(--display); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.2;
}
.startnummer .datum {
  display: block; margin: 0.8rem 0 0; color: #15201a;
  font-family: var(--display); font-weight: 900; font-size: clamp(4.6rem, 12vw, 6.6rem); letter-spacing: -0.055em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.startnummer .jahr { display: block; font-family: var(--display); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.03em; color: #2f6b3f; line-height: 1; }
.startnummer .ort { display: block; font-size: 0.86rem; color: #55635a; margin: 0.8rem 1.6rem 0.7rem; line-height: 1.4; }
.startnummer .countdown {
  display: inline-block; background: #15201a; color: #f2e12b; border-radius: 999px;
  font-weight: 700; font-size: 0.88rem; padding: 0.3rem 0.85rem; margin-bottom: 0.5rem; font-variant-numeric: tabular-nums;
}
.startnummer .countdown:empty { display: none; }
@keyframes anheften {
  from { transform: rotate(-11deg) translateY(-1.2rem); opacity: 0; }
  to   { transform: rotate(-3deg) translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .startnummer { animation: none; } }
@media (max-width: 820px) {
  .buehne .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 3rem; gap: 2.5rem; }
  .startnummer { justify-self: start; width: min(100%, 18.5rem); }
}

.film-knopf {
  position: absolute; z-index: 4; right: var(--rand); bottom: calc(clamp(70px, 11vw, 130px) + 0.8rem);
  background: rgba(10, 20, 14, 0.55); color: #f2f5ef; border: 1px solid rgba(238, 243, 237, 0.32); border-radius: 8px;
  font: 600 0.8rem var(--text); padding: 0.4rem 0.75rem; cursor: pointer;
}
.film-knopf:hover { border-color: var(--gd); }

/* Höhenprofil als Unterkante der Bühne: die grüne Linie zeichnet sich beim Laden einmal ein */
.hoehenband { position: absolute; z-index: 3; left: 0; right: 0; bottom: -1px; height: clamp(70px, 11vw, 130px); pointer-events: none; }
.hoehenband svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.band-f { fill: var(--bg); }
.band-l { fill: none; stroke: #f2e12b; stroke-width: 3; }
.band-linie { filter: drop-shadow(0 0 6px rgba(242, 225, 43, 0.8)); animation: zeichnen 1.9s cubic-bezier(.45, 0, .2, 1) 0.25s both; }
@keyframes zeichnen { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.band-marke {
  position: absolute; width: 14px; height: 14px; margin-left: -7px; margin-bottom: -7px; border-radius: 50%;
  background: #ffffff; box-shadow: 0 0 0 4px rgba(242, 225, 43, 0.45), 0 0 18px rgba(242, 225, 43, 0.7);
  animation: auftauchen 0.45s ease-out 1.45s both;
}
.band-marke span {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); white-space: nowrap;
  color: #fff; font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
.band-marke span::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 0.9rem; background: rgba(255, 255, 255, 0.8); }
@keyframes auftauchen { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: none; } }
.band-label { position: absolute; left: 22%; bottom: 0.45rem; font-size: 0.76rem; color: #6f7d73; }
@media (max-width: 600px) { .band-label { display: none; } .band-marke span { font-size: 0.82rem; } }
@media (prefers-reduced-motion: reduce) { .band-linie, .band-marke { animation: none; } }

.cupleiste { background: var(--bg); }
.cupleiste p { margin: 0 auto; padding: 0.3rem 0 1.2rem; text-align: center; font-size: 0.92rem; color: var(--mut); max-width: none; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(4rem, 9vw, 7rem) 0; }
.abschnitt.weiss, .abschnitt.dunkel { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.abschnitt.weiss + .abschnitt.weiss, .abschnitt.dunkel + .abschnitt.weiss { border-top: 0; }
.abschnitt h2 + p { font-size: 1.1rem; }

.zweispaltig { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.zweispaltig figure { margin: 0; }
.zweispaltig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.zweispaltig figcaption, .film figcaption { font-size: 0.84rem; color: var(--mut); margin-top: 0.6rem; }
@media (max-width: 820px) { .zweispaltig { grid-template-columns: 1fr; } .zweispaltig img { aspect-ratio: 4 / 3; } }

.seitenkopf { background: var(--bg2); border-bottom: 1px solid var(--line); padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.75rem); }
.seitenkopf h1 { font-size: clamp(2.9rem, 7.6vw, 5.8rem); letter-spacing: -0.045em; line-height: 0.98; margin-bottom: 0.25em; }
.seitenkopf p:not(.kicker) { font-size: 1.15rem; margin: 0; }
.seitenkopf.mit-bild {
  --ink: #f2f5ef; --txt: #d3dcd5; --gd: #f2e12b;
  color: var(--txt);
  background: linear-gradient(95deg, rgba(10, 20, 14, 0.93), rgba(10, 20, 14, 0.62)), var(--kopfbild) center / cover;
  padding-top: clamp(4rem, 9vw, 7rem);
}

/* Bildstreifen */
.streifen { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.6rem; margin-top: 2.2rem; }
.streifen a { display: block; overflow: hidden; background: var(--card); border-radius: var(--r-s); }
.streifen img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.streifen a:hover img { transform: scale(1.03); }
.streifen a:first-child { grid-row: span 2; }
@media (max-width: 700px) { .streifen { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } .streifen a:first-child { grid-column: span 2; grid-row: auto; } .streifen img { aspect-ratio: 4 / 3; } }

/* ---------- Tabellen: Startplan & Rekorde ---------- */
.tabelle, .rekorde { width: 100%; border-collapse: collapse; margin: 1.5rem 0 0.5rem; }
.tabelle th, .rekorde th { text-align: left; font-size: 0.8rem; font-weight: 600; color: var(--mut); padding: 0.5rem 1rem 0.6rem 0; border-bottom: 1px solid var(--line2); }
.tabelle td, .rekorde td { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabelle .zeit { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--gd); line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabelle .name { font-weight: 700; color: var(--ink); }
.tabelle .klein { display: block; font-size: 0.86rem; color: var(--mut); line-height: 1.45; margin-top: 0.15rem; }
.tabelle .rechts { text-align: right; white-space: nowrap; }
.tabelle a { white-space: nowrap; }
@media (max-width: 760px) {
  .tabelle thead { position: absolute; left: -9999px; }
  .tabelle, .tabelle tbody, .tabelle tr, .tabelle td { display: block; width: 100%; }
  .tabelle tr { border-bottom: 1px solid var(--line); padding: 0.9rem 0; display: grid; grid-template-columns: 5.2rem 1fr; column-gap: 0.8rem; }
  .tabelle td { border: 0; padding: 0.1rem 0; }
  .tabelle td.zeit { grid-row: span 4; }
  .tabelle .rechts { text-align: left; }
  .tabelle td[data-label]::before { content: attr(data-label) ": "; color: var(--mut); font-size: 0.86rem; }
}
.rekorde .disziplin { font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--ink); line-height: 1.15; }
.rekorde .zeit { font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--gd); font-variant-numeric: tabular-nums; }
.rekorde .wer { display: block; font-weight: 700; color: var(--ink); }
.rekorde .wo { display: block; font-size: 0.86rem; color: var(--mut); line-height: 1.45; }
.neu {
  display: inline-block; background: var(--gelb); color: #15201a; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; padding: 0.12rem 0.55rem; margin-left: 0.5rem; vertical-align: 0.25em;
}
@media (max-width: 760px) {
  .rekorde thead { position: absolute; left: -9999px; }
  .rekorde, .rekorde tbody, .rekorde tr, .rekorde td { display: block; width: 100%; }
  .rekorde tr { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .rekorde td { border: 0; padding: 0.3rem 0; }
  .rekorde td[data-label]::before { content: attr(data-label); display: block; font-size: 0.8rem; color: var(--mut); }
}

.hinweisbox { border: 1px solid var(--line); border-left: 3px solid var(--gelb); background: var(--card); border-radius: var(--r-s); padding: 1rem 1.2rem; margin: 1.5rem 0; max-width: var(--lese); }
.hinweisbox p:last-child { margin-bottom: 0; }

.liste { padding-left: 1.2rem; max-width: var(--lese); }
.liste li { margin-bottom: 0.35rem; }
.liste li::marker { color: var(--gd); }

/* ---------- Galerie ---------- */
.galerie { columns: 3 18rem; column-gap: 0.7rem; margin-top: 2rem; }
.galerie button { display: block; width: 100%; padding: 0; margin: 0 0 0.7rem; border: 0; background: var(--card); border-radius: var(--r-s); overflow: hidden; cursor: zoom-in; break-inside: avoid; }
.galerie img { width: 100%; height: auto; transition: transform 0.4s; }
.galerie button:hover img { transform: scale(1.03); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 20, 14, 0.94); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem 4rem 1.5rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: #d3dcd5; font-size: 0.92rem; margin-top: 0.8rem; text-align: center; }
.lightbox .lb-knopf { position: absolute; background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); cursor: pointer; font: 600 0.95rem var(--text); padding: 0.65rem 1rem; border-radius: var(--r-s); }
.lightbox .lb-knopf:hover { border-color: var(--gd); }
.lightbox .lb-zu { top: 1rem; right: 1rem; }
.lightbox .lb-zurueck { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-weiter { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lightbox figure { padding: 3.5rem 0.5rem 4.5rem; }
  .lightbox .lb-zurueck, .lightbox .lb-weiter { top: auto; bottom: 1rem; transform: none; }
}

/* ---------- Sponsoren: Logos stehen auf weißen Kacheln ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 0.8rem; margin-top: 2.2rem; }
.logo { background: #ffffff; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; min-height: 10rem; color: #15201a; }
.logo img { max-height: 5.5rem; width: auto; object-fit: contain; margin: auto 0; }
.logo .text { font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.15; color: #1e3b2c; margin: auto 0; }
.logo small { display: block; font-size: 0.78rem; line-height: 1.35; color: #55635a; margin-top: 0.7rem; }
.logos.kompakt { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); }
.logos.kompakt .logo { min-height: 6rem; padding: 0.7rem; border-radius: var(--r-s); }
.logos.kompakt .logo img { max-height: 3.6rem; }

/* ---------- Kontakt ---------- */
.kontaktkarte { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.kontaktkarte > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem 1.4rem 0.6rem; }
.kontaktkarte h3 { font-size: 1.05rem; color: var(--mut); font-family: var(--text); font-weight: 600; letter-spacing: 0; }
.gross { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); text-decoration: none; }
.gross:hover { color: var(--gd); }

/* ---------- Rechtstexte ---------- */
.rechtstext h2 { font-size: 1.5rem; margin-top: 2.4rem; }
.rechtstext h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.rechtstext address { font-style: normal; margin-bottom: 1.1em; }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--bg2); border-top: 1px solid var(--line); color: var(--mut); padding: 4rem 0 2rem; font-size: 0.95rem; }
.fuss a { color: var(--txt); text-decoration: none; }
.fuss a:hover { color: var(--gd); text-decoration: underline; }
.fuss .spalten { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.fuss h2 { font-family: var(--text); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gd); margin-bottom: 0.9rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { padding: 0.18rem 0; }
.fuss .veranstalter { display: flex; gap: 1rem; align-items: flex-start; }
.fuss .veranstalter img { width: 92px; background: #fff; padding: 0.35rem; border-radius: 8px; }
.fuss .unten { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.2rem; font-size: 0.84rem; max-width: none; }
@media (max-width: 760px) { .fuss .spalten { grid-template-columns: 1fr; } }

/* Schwebender Knopf unten rechts (heute Instagram, später "Jetzt anmelden") */
.schwebe {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--g); color: var(--btnfg); text-decoration: none; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem; padding: 0.7rem 1.1rem;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.schwebe:hover { background: var(--g2); color: var(--btnfg); }
.schwebe svg { width: 1.15rem; height: 1.15rem; flex: none; }
@media (max-width: 600px) {
  .schwebe { padding: 0.8rem; }
  .schwebe span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Streckenkarten Startseite ---------- */
.karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.4rem; }
.karte {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink); text-decoration: none; padding: 1.5rem 1.4rem 1.3rem;
  display: flex; flex-direction: column; gap: 0.3rem;
  transition: border-color 0.15s, background-color 0.15s;
}
.karte:hover { border-color: var(--gd); background: var(--card2); color: var(--ink); }
.karte-name { font-weight: 700; font-size: 1rem; color: var(--ink); }
.karte:hover .karte-name { color: var(--gd); }
.karte-zahlen { font-family: var(--display); font-weight: 800; font-size: 2.7rem; letter-spacing: -0.04em; line-height: 1; margin-top: 0.2rem; }
.karte-zahlen span { font-family: var(--text); font-weight: 400; font-size: 0.92rem; letter-spacing: 0; color: var(--mut); margin-left: 0.55rem; }
.spark { width: 100%; height: 64px; margin: 0.8rem 0 0.4rem; }
.spark-f { fill: var(--flaeche); }
.spark-l { fill: none; stroke: var(--linie); stroke-width: 2; vector-effect: non-scaling-stroke; }
.karte-text { font-size: 0.92rem; color: var(--txt); margin: 0.8rem 0 0.4rem; min-height: 64px; }
.karte-fuss { font-size: 0.86rem; color: var(--mut); margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: center; }
.karte-tag { border: 1px solid rgba(242, 225, 43, 0.55); color: var(--gelb); border-radius: 999px; padding: 0.05rem 0.55rem; font-size: 0.76rem; }
html[data-thema="hell"] .karte-tag { color: #5f5500; border-color: #d9c81f; background: #fdf8c9; }
.klein-hell { font-size: 0.88rem; color: var(--mut); margin-top: 1.2rem; }
@media (max-width: 960px) { .karten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .karten { grid-template-columns: 1fr; } }

/* Zahlen 2026: eine Karte, drei Felder */
.zahlen { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.zahlen li { padding: 1.6rem 1.6rem 1.5rem; border-left: 1px solid var(--line); color: var(--mut); font-size: 0.9rem; line-height: 1.45; }
.zahlen li:first-child { border-left: 0; }
.zahlen b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.5rem, 4.8vw, 3.5rem); letter-spacing: -0.04em; line-height: 1.05; color: var(--gd); margin-bottom: 0.45rem; font-variant-numeric: tabular-nums; }
.zahlen strong { display: block; font-size: 0.98rem; }
@media (max-width: 700px) {
  .zahlen { grid-template-columns: 1fr; }
  .zahlen li { border-left: 0; border-top: 1px solid var(--line); }
  .zahlen li:first-child { border-top: 0; }
}

/* Video */
.film { margin: 0; }
.film video { width: 100%; height: auto; aspect-ratio: 720 / 400; background: #000; display: block; border-radius: var(--r); border: 1px solid var(--line); }
.film-breit { max-width: 52rem; margin-bottom: 2.5rem; }

/* Helfer-Aufruf: grünes Band */
.helfer { --ink: #15201a; --txt: #2b3a30; --gd: #15201a; background: var(--gelb); color: var(--txt); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.helfer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.helfer h2 { margin-bottom: 0.3em; }
.helfer p { margin: 0; max-width: 42rem; }
.helfer .knopf, .helfer .knopf.dunkel { background: #15201a; border-color: #15201a; color: #f2f5ef; }
.helfer .knopf:hover { background: #1e3b2c; border-color: #1e3b2c; color: #f2f5ef; box-shadow: none; }
.helfer-innen { margin-top: 3rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.5rem, 4vw, 2.5rem); }

/* ---------- Streckenseite ---------- */
.tableiste { position: sticky; top: calc(var(--kopfhoehe) + 2px); z-index: 40; background: var(--kopf); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.tableiste .wrap { display: flex; gap: 0.2rem; overflow-x: auto; scrollbar-width: none; }
.tableiste button {
  background: none; border: 0; cursor: pointer; padding: 0.9rem 1.1rem 0.8rem; text-align: left; white-space: nowrap;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--mut); line-height: 1.1;
}
.tableiste button small { display: block; font-family: var(--text); font-weight: 400; font-size: 0.78rem; letter-spacing: 0; color: var(--mut); }
.tableiste button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--g); }
.tableiste button:hover { color: var(--ink); }
.strecken-wrap { padding-bottom: 4rem; }
.strecke { padding-top: 2.5rem; }
.strecke-oben { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.strecke-karte { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 0.4rem; }
.umriss { width: 100%; height: auto; display: block; }
.umriss-schatten { fill: none; stroke: var(--flaeche); stroke-width: 12; stroke-linejoin: round; stroke-linecap: round; }
.umriss-linie { fill: none; stroke: var(--linie); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.umriss .start { fill: var(--card); stroke: var(--ink); stroke-width: 3; }
.umriss .marke { fill: var(--marke); stroke: var(--ink); stroke-width: 2.5; }
.umriss-text { fill: var(--ink); font-family: var(--text); font-size: 14px; font-weight: 600; paint-order: stroke; stroke: var(--card); stroke-width: 4px; }
.umriss .hover-dot { fill: var(--card); stroke: var(--gd); stroke-width: 3; }
.strecke-info h2 { margin-bottom: 0.3em; }
.werte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin: 1.5rem 0; }
.werte div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); padding: 0.75rem 1rem; }
.werte dt { font-size: 0.82rem; color: var(--mut); }
.werte dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.8rem; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.strecke-info h3 { font-size: 1.1rem; margin-top: 1.2rem; }
.starts { list-style: none; padding: 0; margin: 0 0 1rem; }
.starts li { padding: 0.15rem 0; }
.starts b { font-family: var(--display); font-weight: 800; color: var(--gd); font-size: 1.1rem; margin-right: 0.5rem; font-variant-numeric: tabular-nums; }
.strecke-info .links a { display: inline-block; margin: 0 1.2rem 0.4rem 0; }
.strecke-info .klein { font-size: 0.9rem; color: var(--mut); }
.profil-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.1rem 0.5rem; margin-top: 2rem; }
.profil-wert { margin: 0 0 0.4rem; font-weight: 600; color: var(--ink); min-height: 1.6em; max-width: none; font-variant-numeric: tabular-nums; }
.profil { width: 100%; height: auto; display: block; touch-action: pan-y; }
.profil .gitter { stroke: var(--line); stroke-width: 1; }
.profil .tick { stroke: var(--mut); stroke-width: 1; }
.profil .achse { fill: var(--mut); font-family: var(--text); }
.profil .flaeche { fill: var(--flaeche); }
.profil .linie { fill: none; stroke: var(--linie); stroke-width: 2.5; stroke-linejoin: round; }
.profil .marke-linie { stroke: var(--mut); stroke-width: 1; stroke-dasharray: 4 4; }
.profil .marke { fill: var(--marke); stroke: var(--ink); stroke-width: 2; }
.profil .marke-text { fill: var(--ink); font-family: var(--text); font-weight: 700; paint-order: stroke; stroke: var(--card); stroke-width: 4px; }
.profil-mobil { display: none; }
@media (max-width: 700px) { .profil-desktop { display: none; } .profil-mobil { display: block; } }
.profil .hover-x { stroke: var(--ink); stroke-width: 1; opacity: 0; }
.profil .hover-dot { fill: var(--card); stroke: var(--gd); stroke-width: 3; opacity: 0; }
.profil.aktiv .hover-x, .profil.aktiv .hover-dot { opacity: 1; }
.profil .hit { fill: transparent; cursor: crosshair; }
.quelle { font-size: 0.88rem; color: var(--mut); margin-top: 2.5rem; }
@media (max-width: 860px) { .strecke-oben { grid-template-columns: 1fr; } }

/* ---------- Event ---------- */
.eckdaten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: 1.5rem; }
.eckdaten div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); padding: 1rem 1.1rem; }
.eckdaten span { display: block; font-size: 0.82rem; color: var(--mut); }
.eckdaten b { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.25; }
@media (max-width: 860px) { .eckdaten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .eckdaten { grid-template-columns: 1fr; } }
.strecken-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.2rem 2.5rem; margin-top: 2rem; }

/* ---------- Ergebnisse ---------- */
.jahre { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.jahr-karte { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.2rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--txt); padding: 1.5rem; text-decoration: none; line-height: 1.45; transition: border-color 0.15s; }
.jahr-karte:hover { border-color: var(--gd); color: var(--txt); }
.jahr-zahl { font-family: var(--display); font-weight: 900; font-size: 3.4rem; letter-spacing: -0.05em; color: var(--gd); line-height: 1; grid-row: span 2; }
.jahr-link { color: var(--gd); font-weight: 600; font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq > * { max-width: 48rem; }
.faq-gruppe { margin-bottom: 2.8rem; }
.faq-gruppe h2 { font-size: 1.8rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 0.55rem; font-weight: 400; font-size: 1.7rem; line-height: 1; color: var(--gd); }
.faq summary:hover { color: var(--gd); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1.2rem; }
