/* Winterlaufserie digital, gemeinsames Design */
/* Es werden nur die Schriften des Geraets benutzt, es wird nichts geladen. */

:root {
  --navy: #14233A;
  --orange: #F59B00;
  --bg: #E9F0F5;
  --muted: #56637A;
  --text2: #3C4A5C;
  --line: #9AA6B4;
  --line-soft: #C5D0DA;
  --err: #B42318;
  --err-bg: #FDECEA;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: var(--font);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.45;
}
a { color: var(--navy); }
a:hover { color: #000; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopfbereich */
.kopf { background: var(--orange); position: relative; overflow: hidden; padding: 20px 20px 56px; }
.kopf-innen { max-width: 480px; margin: 0 auto; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; }
.kopf img.logo { width: 168px; height: auto; display: block; }
.kopf.kompakt img.logo { width: 140px; }
.kicker { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.kopf h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 40px; line-height: 1; text-transform: uppercase; letter-spacing: 0; -webkit-text-stroke: 1.2px currentColor; paint-order: stroke fill; }
.titelblock { display: flex; flex-direction: column; gap: 4px; }
.pillen { display: flex; flex-wrap: wrap; gap: 8px; }
.pille { font-weight: 600; font-size: 16px; padding: 6px 12px; border-radius: 999px; }
.pille.dunkel { background: var(--navy); color: #fff; }
.pille.hell { background: rgba(255,255,255,0.9); color: var(--navy); }
.flocke { position: absolute; pointer-events: none; }

/* Hauptbereich und Karte */
main { max-width: 480px; margin: -36px auto 0; padding: 0 12px 40px; position: relative; }
.karte {
  background: #fff;
  border-radius: 18px;
  border: 2px solid var(--navy);
  box-shadow: 0 2px 0 var(--navy), 0 12px 28px rgba(20,35,58,0.12);
  padding: 28px 20px 24px;
  position: relative;
  display: flex; flex-direction: column; gap: 22px;
}
.loch { position: absolute; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-soft); }
.loch.l { left: 12px; } .loch.r { right: 12px; }
.intro { display: flex; flex-direction: column; gap: 6px; padding: 0 8px; }
.intro h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.05; text-transform: uppercase; }
.intro p { margin: 0; font-size: 17px; color: var(--text2); }

/* Formular */
.feld { display: flex; flex-direction: column; gap: 8px; }
.feld > label, legend { font-weight: 700; font-size: 18px; padding: 0; }
.frei { font-weight: 500; color: var(--muted); }
input[type=text], input[type=email] {
  height: 58px; width: 100%;
  border: 2px solid var(--line); border-radius: 12px;
  padding: 0 16px;
  font-family: inherit; font-size: 20px; color: var(--navy); background: #fff;
}
input::placeholder { color: #7A8594; }
input:focus { outline: 3px solid var(--orange); outline-offset: 2px; border-color: var(--navy); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
legend { margin-bottom: 8px; }
.datum { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 10px; }
.datum .feld { gap: 4px; }
.datum label { font-size: 15px; font-weight: 600; color: var(--text2); }
.datum input { padding: 0 8px; font-size: 22px; font-weight: 600; text-align: center; }
.hinweis { margin: 0; font-size: 15px; color: var(--muted); }

.wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wahl label {
  display: flex; align-items: center; justify-content: center;
  height: 58px; border-radius: 12px; border: 2px solid var(--line);
  background: #fff; color: var(--navy);
  font-size: 17px; font-weight: 700; cursor: pointer; padding: 0 4px;
}
.wahl input:checked + label { background: var(--navy); color: #fff; border-color: var(--navy); }
.wahl input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; }

.zustimmung {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; border-radius: 14px; cursor: pointer;
  background: #F2F6F9; border: 2px solid var(--line-soft);
}
.zustimmung:has(input:checked) { background: #FFF3DC; border-color: var(--orange); }
.zustimmung input { width: 30px; height: 30px; margin: 0; flex-shrink: 0; accent-color: var(--navy); }
.zustimmung span { font-size: 17px; line-height: 1.4; }

.knopf {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 64px; border-radius: 14px;
  background: var(--orange); color: var(--navy);
  border: 2px solid var(--navy); box-shadow: 0 4px 0 var(--navy);
  font-family: var(--display); font-weight: 800; font-size: 19px;
  text-transform: uppercase; letter-spacing: 0.01em; text-align: center; padding: 0 12px; text-decoration: none;
  cursor: pointer;
}
.knopf:hover { color: var(--navy); filter: brightness(1.04); }
.knopf:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--navy); }
.knopf.hell { background: #fff; box-shadow: none; height: 60px; font-size: 20px; }
.klein { margin: 0; text-align: center; font-size: 15px; color: var(--muted); }
.klein a { font-weight: 700; }
.fuss { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 16px; }
.fuss-zeile { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; }
.fuss a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-weight: 600; text-decoration: underline; }

.fehler { background: var(--err-bg); border-left: 6px solid var(--err); border-radius: 6px; padding: 12px 16px; color: #7F1D14; }
.fehler p { margin: 0 0 4px; font-weight: 700; }
.fehler ul { margin: 0; padding-left: 20px; }
.fehler:focus { outline: none; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Bestaetigung */
.stapel { display: flex; flex-direction: column; gap: 20px; }
.karte.mitte { align-items: center; text-align: center; gap: 14px; padding: 32px 20px 28px; }
.haken { width: 84px; height: 84px; border-radius: 50%; background: var(--orange); border: 3px solid var(--navy); display: flex; align-items: center; justify-content: center; }
.karte.mitte h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; }
.karte.mitte p { margin: 0; color: var(--text2); }
.startnummer {
  background: #fff; border-radius: 16px; border: 2px dashed var(--line);
  padding: 18px 20px; position: relative; display: flex; flex-direction: column; gap: 10px;
}
.startnummer .loch { top: 10px; width: 10px; height: 10px; background: transparent; }
.startnummer .loch.l { left: 10px; } .startnummer .loch.r { right: 10px; }
.startnummer .ueber { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.startnummer .name { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; text-align: center; text-transform: uppercase; overflow-wrap: anywhere; }
.startnummer .pillen { justify-content: center; }
.startnummer .pille { background: var(--bg); padding: 5px 12px; }
.startnummer .pille.dunkel { background: var(--navy); font-weight: 700; }
.termin { background: var(--navy); color: #fff; border-radius: 16px; padding: 20px; display: flex; gap: 16px; align-items: center; }
.termin svg { flex-shrink: 0; }
.termin .klein-hell { font-size: 16px; color: var(--line-soft); }
.termin .gross { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.15; }

@media (max-width: 380px) {
  .kopf h1 { font-size: 34px; }
  .datum { gap: 8px; }
}

/* ===== Kilometer eintragen ===== */
[hidden] { display: none !important; }
.kopf.schmal { padding: 16px 20px 52px; }
.kopf.schmal .kopf-innen { gap: 14px; }
.kopf.schmal img.logo { width: 128px; }
.kopf.schmal h1 { font-size: 32px; letter-spacing: -0.02em; }
main.eng { margin-top: -34px; }
.testhinweis { font-size: 14px; background: #FFF6DA; border: 1px dashed #7A5B00; border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; }

.karte.lauf { padding: 24px 20px; gap: 24px; }
.schritte { display: flex; flex-direction: column; gap: 8px; }
.schritte .bez { font-size: 15px; font-weight: 700; color: var(--muted); }
.balken { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.balken span { height: 6px; border-radius: 3px; background: #D6DEE6; }
.balken span.an { background: var(--orange); }

.block { display: flex; flex-direction: column; gap: 10px; }
.block.weit { gap: 14px; }
.frage { margin: 0; font-size: 22px; font-weight: 800; }
.suchbox { display: flex; flex-direction: column; gap: 8px; }
.suchbox > label { font-size: 16px; color: var(--text2); }
.sucheingabe { position: relative; }
.sucheingabe svg { position: absolute; left: 16px; top: 17px; }
.sucheingabe input { padding: 0 16px 0 50px; }
.vorschlaege { list-style: none; margin: 0; padding: 0; border: 2px solid var(--navy); border-radius: 12px; overflow: hidden; }
.vorschlaege li { border-bottom: 1px solid #D6DEE6; }
.vorschlaege li:last-child { border-bottom: 0; }
.vorschlaege button {
  width: 100%; min-height: 64px; padding: 10px 16px; border: 0; background: #fff;
  text-align: left; font: inherit; color: var(--navy); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.vorschlaege button:hover, .vorschlaege button:focus-visible { background: #FFF3DC; }
.vorschlaege .n { display: flex; flex-direction: column; }
.vorschlaege .n b { font-size: 19px; font-weight: 700; }
.vorschlaege .n small { font-size: 15px; color: var(--muted); }
.leerhinweis { margin: 0; padding: 14px 16px; background: #F2F6F9; border-radius: 12px; font-size: 16px; }
.leerhinweis a { font-weight: 700; }

.gewaehlt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #FFF3DC; border: 2px solid var(--orange); border-radius: 14px; }
.initialen { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gewaehlt .text { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.gewaehlt .text b { font-size: 19px; font-weight: 800; overflow-wrap: anywhere; }
.gewaehlt .text small { font-size: 15px; color: var(--text2); }
.klein-knopf { min-height: 44px; padding: 0 12px; border: 2px solid var(--navy); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; font-weight: 700; color: var(--navy); cursor: pointer; }

/* Kilometerzaehler */
.zaehlerzeile { display: flex; align-items: center; justify-content: center; gap: 14px; }
.rund {
  width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: #fff; color: var(--navy); border: 2px solid var(--navy); box-shadow: 0 3px 0 var(--navy); cursor: pointer; padding: 0;
}
.rund:disabled { background: var(--bg); color: var(--line); border-color: var(--line-soft); box-shadow: none; cursor: default; }
.zaehler { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--navy); border-radius: 16px; box-shadow: inset 0 0 0 3px var(--orange), 0 4px 0 #0A1320; }
.ziffern { display: flex; gap: 4px; padding: 4px; background: #05090F; border-radius: 8px; }
.fenster { position: relative; width: 60px; height: 116px; overflow: hidden; border-radius: 5px; background: #F4F1EA; }
.band { display: flex; flex-direction: column; }
.band.animiert { transition: transform 750ms cubic-bezier(0.25, 1.3, 0.4, 1); }
.band span { height: 92px; display: flex; align-items: center; justify-content: center; font-size: 74px; font-weight: 800; color: #111A26; font-variant-numeric: tabular-nums; line-height: 1; }
.schatten { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,9,15,0.75) 0%, rgba(5,9,15,0) 26%, rgba(5,9,15,0) 74%, rgba(5,9,15,0.75) 100%); pointer-events: none; }
.einheit { font-size: 24px; font-weight: 800; color: var(--orange); letter-spacing: 0.04em; }
.schnell { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.schnell button { height: 52px; border-radius: 10px; font: inherit; font-size: 19px; font-weight: 800; cursor: pointer; font-variant-numeric: tabular-nums; background: #fff; color: var(--navy); border: 2px solid var(--line); padding: 0; }
.schnell button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.knopf:disabled { background: var(--bg); color: #7A8594; border-color: var(--line-soft); box-shadow: none; cursor: not-allowed; filter: none; }
.textknopf { min-height: 48px; border: 0; background: transparent; font: inherit; font-size: 17px; font-weight: 700; color: var(--navy); text-decoration: underline; cursor: pointer; display: flex; align-items: center; justify-content: center; text-align: center; }

/* Schritt 2 */
.schritt2 { display: flex; flex-direction: column; gap: 18px; }
.zusammen { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #F2F6F9; border-radius: 14px; }
.zusammen .t { display: flex; flex-direction: column; min-width: 0; }
.zusammen .t b { font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.zusammen .t small { font-size: 15px; color: var(--text2); }
.kmplakette { background: var(--navy); color: #fff; font-weight: 800; font-size: 22px; padding: 6px 14px; border-radius: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pruefung { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pruefung legend { font-size: 22px; font-weight: 800; padding: 0; margin-bottom: 6px; }
.pruefung p { margin: 0; font-size: 17px; color: var(--text2); }
.geb { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin-top: 6px; }
.geb .g { display: flex; flex-direction: column; gap: 4px; width: 110px; }
.geb label { font-size: 15px; font-weight: 600; color: var(--text2); text-align: center; }
.geb input { height: 76px; border-radius: 14px; font-size: 34px; font-weight: 800; text-align: center; padding: 0; }
.geb .punkt { font-size: 40px; font-weight: 800; line-height: 76px; }

/* Schritt 3 */
.fertig { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding-top: 8px; }
.fertig h2 { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.05; text-transform: uppercase; letter-spacing: -0.02em; }
.fertig p { margin: 0; font-size: 18px; color: var(--text2); }
.zahlen2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
.zahlen2 div { background: var(--navy); color: #fff; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.zahlen2 small { font-size: 14px; color: var(--line-soft); }
.zahlen2 b { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Kein Lauftag */
.schnee { width: 88px; height: 88px; border-radius: 50%; background: var(--bg); border: 3px solid var(--navy); display: flex; align-items: center; justify-content: center; }
.karte.mitte h2 { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.05; text-transform: uppercase; letter-spacing: -0.02em; }

@media (max-width: 380px) {
  .fenster { width: 52px; }
  .band span { font-size: 64px; }
  .rund { width: 52px; height: 52px; }
  .zaehlerzeile { gap: 8px; }
}

/* ===== Bestenliste ===== */
.kopf.breit .kopf-innen { max-width: 560px; gap: 12px; }
.kopf.breit h1 { font-size: 36px; letter-spacing: -0.02em; }
.kopf.breit .pille { font-size: 15px; }
main.breit { max-width: 560px; margin-top: -34px; display: flex; flex-direction: column; gap: 16px; }

.uebersicht { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.uebersicht div { background: var(--navy); color: #fff; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 4px 0 #0A1320; }
.uebersicht small { font-size: 14px; color: var(--line-soft); }
.uebersicht b { font-size: 34px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.uebersicht .orange { color: var(--orange); }

.filterbox { background: #fff; border-radius: 16px; border: 2px solid var(--navy); padding: 16px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 12px; }
.filtergruppe { display: flex; flex-direction: column; gap: 8px; }
.filtergruppe .bez { font-size: 15px; font-weight: 700; color: var(--text2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips.gleich { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.chip {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 0 14px; border-radius: 10px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  background: #fff; color: var(--navy); border: 2px solid var(--line);
}
.chips.gleich .chip { padding: 0 4px; }
.chip[aria-current="true"], .chip[aria-current="true"]:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.ranglistenkopf { display: flex; justify-content: space-between; padding: 0 14px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.rangliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.zeile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 2px solid transparent; }
.zeile.leer { opacity: 0.75; }
.zeile.gold   { background: #FFF6DA; border-color: #E0B43A; }
.zeile.silber { background: #F3F6F9; border-color: #AEB9C5; }
.zeile.bronze { background: #FBEDE2; border-color: #D39A6C; }
.platzfeld { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.platzfeld .nr { font-size: 20px; font-weight: 800; color: var(--text2); font-variant-numeric: tabular-nums; }
.zeile .wer { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.zeile .wer b { font-size: 18px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.zeile .wer small { font-size: 14px; color: var(--text2); }
.zeile .rechts { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; gap: 2px; }
.zeile .km { font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.zeile .km small { font-size: 14px; font-weight: 700; color: var(--muted); }
.bewegung { display: flex; align-items: center; gap: 3px; font-size: 14px; font-weight: 800; padding: 1px 8px 1px 5px; border-radius: 999px; }
.bewegung.auf { color: #1B7A3A; background: #E3F4E8; }
.bewegung.ab  { color: #B3261E; background: #FBE7E5; }
.gehalten { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); padding: 1px 6px; }
.neu { font-size: 13px; font-weight: 800; color: var(--navy); background: #FFE2A8; padding: 1px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.leerliste { margin: 0; padding: 24px 16px; background: #fff; border-radius: 14px; text-align: center; font-size: 17px; color: var(--text2); }

.erklaerung { background: #fff; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--text2); }
.erklaerung b { font-weight: 800; color: var(--navy); }
.erklaerung span { display: flex; align-items: center; gap: 8px; }
.fuss.links { margin-top: 0; }

/* Live Aktualisierung */
.live { margin: 8px 0 0; text-align: center; font-size: 14px; color: var(--muted); display: flex; flex-direction: column; align-items: center; }
.live .klein-link { min-height: 40px; font-size: 14px; font-weight: 700; }
@keyframes puls { 0% { transform: scale(1.35); } 60% { transform: scale(0.95); } 100% { transform: scale(1); } }
.frisch .bewegung, .frisch .neu { animation: puls 700ms ease-out; }

/* Datenschutzhinweis in der Anmeldung */
.datenschutz { background: #F2F6F9; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.datenschutz h3 { margin: 0; font-size: 17px; font-weight: 800; }
.datenschutz p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--text2); }

/* Urheberzeile in der Fusszeile */
.fuss-copy { margin: 8px 0 0; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); text-align: center; }
