/* RunKlub Wizard. Baut auf landing.css auf (Farben, Schriften, Knöpfe) */
.wiz { min-height: 100svh; display: flex; flex-direction: column; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wiz-kopf { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 20px var(--rand); position: sticky; top: 0; background: var(--bg); z-index: 3; }
.wiz-kopf .wortmarke { font-size: 24px; }
.wiz-kopf .wortmarke img { width: 30px; height: 30px; }
.wiz-weg { font-size: var(--s5); color: var(--muted); text-decoration: none; }
.wiz-weg:hover { color: var(--ink); }
.wiz-fortschritt { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; max-width: 520px; width: 100%; justify-self: center; }
.wiz-fortschritt i { height: 6px; background: var(--raised); transition: background-color .3s; }
.wiz-fortschritt i.fertig { background: var(--volt); }
.ohne-js .wiz-fortschritt { visibility: hidden; }
.wiz-main { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 32px var(--rand) 140px; }
.schritt { padding-block: 24px 48px; }
.mit-js .schritt { display: none; }
.mit-js .schritt.aktiv { display: block; animation: rein .45s var(--ease); }
@keyframes rein { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.schritt h2 { font-size: clamp(44px, 7vw, 96px); line-height: .88; letter-spacing: -0.035em; max-width: 14ch; }
.wiz-hilfe { margin-top: 16px; color: var(--muted); font-size: var(--s4); max-width: 48ch; }
.wiz-hilfe a { color: var(--ink); }
.kacheln-wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 36px; }
.kacheln-wahl.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kachel-wahl { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 120px; padding: 22px; background: var(--surface); cursor: pointer; transition: background-color .2s, transform .15s var(--ease); }
.kachel-wahl:hover { background: var(--raised); }
.kachel-wahl:active { transform: scale(.98); }
.kachel-wahl input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.kachel-wahl b { font: 800 clamp(28px, 3vw, 40px)/1 var(--display); letter-spacing: -0.02em; }
.kachel-wahl span { font-size: var(--s5); color: var(--muted); line-height: 1.4; }
.kachel-wahl:has(input:checked) { background: var(--volt); color: #000; }
.kachel-wahl:has(input:checked) span { color: #000; }
.kachel-wahl:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.wiz-feld { display: grid; gap: 8px; margin-top: 28px; font-size: var(--s4); }
.wiz-feld > span { color: var(--muted); }
.wiz-feld small { color: var(--muted); font-size: var(--s5); }
.wiz-feld input:not([type="range"]), .wiz-feld select { min-height: 60px; padding: 0 16px; background: var(--surface); color: var(--ink); border: 2px solid var(--surface); font: 500 20px var(--text); width: 100%; border-radius: 0; color-scheme: dark; }
.wiz-feld input:focus, .wiz-feld select:focus { border-color: var(--volt); outline: none; }
.wiz-regler output { font: 800 clamp(56px, 7vw, 96px)/1 var(--display); letter-spacing: -0.03em; }
.wiz-regler output b { font-weight: 800; }
.wiz-regler input { width: 100%; accent-color: var(--volt); height: 40px; }
.wiz-link { margin-top: 18px; background: none; border: 0; padding: 8px 0; color: var(--ink); font: 500 var(--s4) var(--text); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.tage-chips { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 36px; }
.chip { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--surface); cursor: pointer; font: 800 clamp(22px, 3vw, 36px)/1 var(--display); transition: background-color .2s, transform .15s var(--ease); }
.chip:hover { background: var(--raised); }
.chip:active { transform: scale(.95); }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip:has(input:checked) { background: var(--volt); color: #000; }
.chip:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.haken-liste { display: grid; gap: 8px; margin-top: 32px; }
.haken { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); cursor: pointer; font-size: var(--s4); line-height: 1.45; }
.haken input { width: 24px; height: 24px; margin-top: 1px; flex: none; accent-color: var(--volt); }
.haken:has(input:checked) { background: var(--raised); }
.wiz-stopp, .wiz-fehler { margin-top: 20px; padding: 18px; background: var(--pink); color: #000; font-size: var(--s4); }
.wiz-fehler p + p { margin-top: 6px; }
.knopf-gross { margin-top: 32px; min-height: 64px; width: 100%; font-size: 20px; background: var(--volt); color: #000; }
.knopf-gross:hover { background: #d6fb6e; }
.knopf-still { background: var(--raised); color: var(--ink); }
.knopf-still:hover { background: #363636; }
.wiz-fuss { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 16px var(--rand) calc(16px + env(safe-area-inset-bottom)); background: var(--bg); z-index: 3; }
.wiz-fuss .knopf { min-width: 140px; }
.ohne-js .wiz-fuss { display: none; }
.wiz-fuss [hidden] { visibility: hidden; display: inline-flex; }

/* Vorschau */
.vorschau { margin-top: 28px; }
.vorschau .art { display: inline-block; padding: 6px 12px; font-weight: 600; font-size: var(--s5); background: var(--volt); color: #000; }
.vorschau .art.not { background: var(--amber); }
.vorschau .text { margin-top: 18px; font-size: var(--s3); line-height: 1.4; max-width: 34ch; }
.zeitstrahl { display: flex; gap: 4px; margin-top: 32px; }
.zeitstrahl div { min-width: 0; background: var(--surface); padding: 14px 12px; }
.zeitstrahl div:last-child { background: var(--volt); color: #000; }
.zeitstrahl b { display: block; font: 800 28px/1 var(--display); }
.zeitstrahl span { display: block; margin-top: 6px; font-size: var(--s5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wochenvorschau { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 28px; }
.wochenvorschau div { background: var(--surface); padding: 12px 8px; min-height: 96px; }
.wochenvorschau div.lauf { background: var(--raised); }
.wochenvorschau div.lang { background: var(--ink); color: #000; }
.wochenvorschau b { display: block; font: 800 22px/1 var(--display); }
.wochenvorschau span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.3; }
.alternativen { margin-top: 32px; display: grid; gap: 8px; }
.alternativen h3 { font-size: var(--s3); font-family: var(--text); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.alternativen button { text-align: left; padding: 18px; background: var(--surface); color: var(--ink); border: 0; cursor: pointer; font: 400 var(--s4)/1.4 var(--text); transition: background-color .2s; }
.alternativen button:hover { background: var(--raised); }
.alternativen button b { display: block; font: 800 26px/1.1 var(--display); margin-bottom: 4px; }
.laedt { color: var(--muted); }

@media (max-width: 760px) {
  .wiz-kopf { grid-template-columns: auto 1fr; }
  .wiz-fortschritt { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .wiz-weg { justify-self: end; }
  .kacheln-wahl, .kacheln-wahl.drei { grid-template-columns: minmax(0, 1fr); }
  .kachel-wahl { min-height: 88px; }
  .schritt h2 { font-size: 13vw; }
  .tage-chips { gap: 4px; }
  .wochenvorschau { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
  .wochenvorschau div { padding: 10px 4px; min-height: 84px; }
  .wochenvorschau span { font-size: 12px; overflow-wrap: anywhere; hyphens: auto; }
  .wiz-fuss .knopf { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .mit-js .schritt.aktiv { animation: none; } }
.schritt h2:focus { outline: none; }

.wochenvorschau .kurz-text { display: none; }
@media (max-width: 600px) {
  .wochenvorschau .lang-text { display: none; }
  .wochenvorschau .kurz-text { display: block; overflow-wrap: normal; hyphens: none; }
  .zeitstrahl { flex-direction: column; gap: 4px; }
  .zeitstrahl div { position: relative; flex: none !important; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; padding: 10px 14px 14px; background: var(--surface); }
  .zeitstrahl div::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--anteil) * 100%); background: var(--ink); }
  .zeitstrahl div:last-child { background: var(--surface); color: var(--ink); }
  .zeitstrahl div:last-child::after { background: var(--volt); }
  .zeitstrahl div:last-child b { color: var(--volt); }
  .zeitstrahl span { margin-top: 0; white-space: normal; }
}

/* Fassung 1: anderer Sport im Wizard, Text-Chips ohne Quadrat */
.wiz-sport { margin-top: 36px; border-top: 2px solid var(--surface); padding-top: 8px; }
.wiz-sport > summary { display: flex; align-items: center; min-height: 56px; font: 600 var(--s4)/1.3 var(--text); cursor: pointer; }
.wiz-sport .tage-chips { margin-top: 20px; }
.tage-chips:has(input[name="sport_belastung"]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tage-chips:has(input[name="sport_belastung"]) .chip { aspect-ratio: auto; min-height: 56px; font-size: 18px; }
.tage-chips.wiz-strecken { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wiz-strecken .chip { aspect-ratio: auto; min-height: 56px; font-size: 18px; }
@media (min-width: 700px) { .tage-chips.wiz-strecken { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vorschau .prognose { margin-top: 16px; font-size: var(--s4); }
.vorschau .prognose b { font: 800 clamp(28px, 4vw, 44px)/1 var(--display); display: block; }

/* Einladung (Beta): kleine Startnummer, ein Satz, ein Feld */
.einladung { max-width: 560px; }
.einladung h1 { margin-top: 36px; font: 800 clamp(40px, 7vw, 64px)/.95 var(--display); text-transform: uppercase; }
.einladung-nummer { position: relative; display: inline-block; min-width: 260px; padding: 18px 24px 16px; background: var(--volt); color: #000; transform: rotate(-2deg); border-radius: 14px; }
.einladung-nummer i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); }
.einladung-nummer i:nth-child(1) { top: 9px; left: 9px; } .einladung-nummer i:nth-child(2) { top: 9px; right: 9px; }
.einladung-nummer i:nth-child(3) { bottom: 9px; left: 9px; } .einladung-nummer i:nth-child(4) { bottom: 9px; right: 9px; }
.einladung-zeile { display: flex; justify-content: space-between; font: 600 13px var(--text); }
.einladung-nummer b { display: block; margin-top: 6px; font: 800 34px/.9 var(--display); text-transform: uppercase; }
.einladung-form .knopf-gross { margin-top: 20px; }
.einladung .wiz-fehler { margin-top: 12px; }
.wiz-kopf.einladung-kopf { grid-template-columns: 1fr auto; }
