/* #ichglaubandich – Comic-Look (Übung) und Klar-Look (Probetest)
   Layout: eine Spalte, Comic-Panels mit harter Kontur und Versatzschatten, Halbton-Raster im Hintergrund. */
:root {
  --paper: #fbfbf8;
  --panel: #ffffff;
  --ink: #141414;
  --muted: #55555c;
  --red: #e3262b;
  --yellow: #ffd60a;
  --blue: #1d6fd8;
  --green: #1f9d48;
  --dot: rgba(227, 38, 43, 0.13);
  --line: #141414;
  --soft: #f1f1ee;
  --ok-bg: #e3f6e8;
  --nok-bg: #fde6e6;
  --display: "Bangers", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 5px 5px 0 var(--ink);
  --head: #e3262b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131316; --panel: #1e1e23; --ink: #f2f2f2; --muted: #a9a9b3; --red: #ff4a4f; --yellow: #ffd60a;
    --blue: #5aa2ff; --green: #4cc36e; --dot: rgba(255, 74, 79, 0.16); --line: #f2f2f2; --soft: #26262c;
    --ok-bg: #173a24; --nok-bg: #43191b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131316; --panel: #1e1e23; --ink: #f2f2f2; --muted: #a9a9b3; --red: #ff4a4f; --yellow: #ffd60a;
  --blue: #5aa2ff; --green: #4cc36e; --dot: rgba(255, 74, 79, 0.16); --line: #f2f2f2; --soft: #26262c;
  --ok-bg: #173a24; --nok-bg: #43191b; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1.3px, transparent 1.5px);
  background-size: 11px 11px;
  color: var(--ink);
  font: 17px/1.5 var(--body);
  min-height: 100vh;
  overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; line-height: 1.05; text-wrap: balance; margin: 0 0 0.4em; }
h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 0.8em; }
small, .klein { font-size: 0.86rem; color: var(--muted); }
.mitte { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.wrap {
  max-width: 940px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 18px 48px;
  display: grid; gap: 18px;
}
.wrap > * { min-width: 0; }

/* ---------- Kopf ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--head); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--head); border-bottom: 3px solid #141414; }
.top-in {
  max-width: 940px; margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 8px;
}
.logo { font-family: var(--display); font-size: 1.7rem; color: #fff; background: none; border: 0; cursor: pointer; padding: 0; text-shadow: 2px 2px 0 #141414; letter-spacing: 0.02em; }
.hash { color: var(--yellow); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.tab {
  font-family: var(--display); font-size: 1.1rem; letter-spacing: 0.04em; background: #fff; color: #141414;
  border: 2.5px solid #141414; border-radius: 4px; padding: 4px 12px; cursor: pointer; box-shadow: 2px 2px 0 #141414;
}
.tab[aria-current="page"] { background: var(--yellow); }
.tab:active { transform: translate(2px, 2px); box-shadow: none; }
.demo-hinweis { margin: 0; font-size: 0.85rem; background: var(--yellow); color: #141414; border: 2px solid #141414; padding: 4px 10px; border-radius: 4px; justify-self: start; }

/* ---------- Panels ---------- */
.panel { background: var(--panel); border: 3px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: clamp(16px, 3vw, 26px); }
.halbton { background-image: radial-gradient(rgba(255, 214, 10, 0.55) 1.6px, transparent 1.8px); background-size: 9px 9px; background-color: var(--panel); }
.seitentitel { margin: 6px 0 0; font-size: clamp(2.2rem, 7vw, 3rem); }
.eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: var(--red); margin: 0 0 4px; }
.riesig { font-size: clamp(2.4rem, 8vw, 3.6rem); margin: 0 0 12px; }

/* ---------- Knöpfe ---------- */
.btn {
  font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.05em; border: 3px solid #141414; border-radius: 5px;
  padding: 8px 18px; cursor: pointer; box-shadow: 3px 3px 0 #141414; color: #141414; background: #fff; transition: transform 0.06s;
}
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.gross { font-size: 1.5rem; padding: 10px 24px; }
.btn-gelb { background: var(--yellow); }
.btn-weiss { background: #fff; }
.btn-rot { background: #e3262b; color: #fff; }
.link { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; padding: 4px; font-weight: 600; }
.aktionen { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; margin-top: 16px; }
.aktionen.mitte { justify-content: center; }

/* ---------- Trainer & Sprechblase ---------- */
.trainer { display: flex; align-items: flex-end; gap: 6px; }
.trainer-bild { width: 120px; flex: none; }
.trainer.klein .trainer-bild { width: 74px; }
.bubble {
  position: relative; background: #fff; color: #141414; border: 3px solid #141414; border-radius: 18px;
  padding: 10px 14px; font-weight: 600; max-width: 260px; margin-bottom: 70px; box-shadow: 3px 3px 0 #141414;
}
.bubble::after { content: ""; position: absolute; left: -14px; bottom: 14px; border: 8px solid transparent; border-right: 14px solid #141414; }

/* ---------- Login ---------- */
.login { display: grid; gap: 18px; grid-template-columns: 1.1fr 1fr; align-items: start; margin-top: 18px; }
.login-held .unter { font-size: 1.1rem; max-width: 36ch; }
.trio { display: flex; gap: 10px; flex-wrap: wrap; }
.segment { display: flex; border: 3px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 14px; }
.segment button { flex: 1; font-family: var(--display); font-size: 1.2rem; letter-spacing: 0.04em; background: var(--panel); border: 0; padding: 8px; cursor: pointer; }
.segment button[aria-selected="true"] { background: var(--yellow); color: #141414; }
.schmal { max-width: 460px; margin: 24px auto; width: 100%; }
.formular { display: grid; gap: 12px; }
.formular.zwei { grid-template-columns: 1fr 1fr; }
.formular.zwei .voll, .formular.zwei .btn { grid-column: 1 / -1; justify-self: start; }
.feld { display: grid; gap: 4px; font-weight: 600; }
.feld.inline { display: flex; align-items: center; gap: 8px; }
.feld input, .feld select {
  border: 2.5px solid var(--line); border-radius: 5px; padding: 9px 11px; background: var(--panel); min-width: 0; width: 100%;
}
.feld.inline select { width: auto; }
.fehler { background: var(--nok-bg); border: 2px solid var(--red); border-radius: 5px; padding: 8px 12px; font-weight: 600; }
.ok { background: var(--ok-bg); border: 2px solid var(--green); border-radius: 5px; padding: 8px 12px; font-weight: 600; }
.inline-form { grid-template-columns: 1fr auto; align-items: end; margin: 8px 0 14px; }

/* ---------- Laden ---------- */
.laden { text-align: center; margin-top: 40px; }
.spinner { width: 54px; height: 54px; margin: 0 auto 16px; border: 6px solid var(--soft); border-top-color: var(--red); border-radius: 50%; animation: dreh 0.9s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }

/* ---------- Start ---------- */
.held { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.held-text { min-width: 0; flex: 1 1 320px; }
.cta-reihe { display: flex; gap: 12px; flex-wrap: wrap; }
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kachel { display: grid; gap: 4px; align-content: start; }
.kachel .zahl { font-family: var(--display); font-size: 2.8rem; font-weight: 400; line-height: 1; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.kachel .zahl small { font-size: 1.2rem; color: var(--muted); font-family: var(--body); }
.kachel span { font-weight: 600; }
.countdown { background: var(--head); color: #fff; }
.countdown .zahl { color: var(--yellow); text-shadow: 2px 2px 0 #141414; }
.balken { height: 12px; border: 2.5px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--soft); margin-top: 6px; }
.balken i { display: block; height: 100%; background: var(--green); }
.stufen { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.stufen-gruppe { display: flex; flex-wrap: wrap; gap: 6px; align-content: start; }
.stufen-gruppe h3 { flex-basis: 100%; margin: 0; }
.stufe { display: inline-flex; gap: 6px; align-items: center; border: 2px solid var(--line); border-radius: 999px; padding: 2px 10px; font-weight: 600; font-size: 0.92rem; background: var(--panel); }
.stufe em { font-style: normal; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 1px 7px; border-radius: 999px; color: #141414; }
.stufe.s1 em { background: #bfe8c9; } .stufe.s2 em { background: var(--yellow); } .stufe.s3 em { background: #ff9a9d; }
.sitzung-zeile {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; text-align: left;
  background: var(--panel); border: 2.5px solid var(--line); border-radius: 5px; padding: 10px 12px; cursor: pointer;
}
.sitzung-zeile:hover { background: var(--soft); }
.sitzung-zeile b { font-variant-numeric: tabular-nums; }

/* ---------- Übung einrichten ---------- */
.setup { display: grid; gap: 18px; }
fieldset { border: 2.5px dashed var(--line); border-radius: 6px; padding: 12px 14px 14px; margin: 0; min-width: 0; }
legend { font-family: var(--display); font-size: 1.4rem; letter-spacing: 0.03em; padding: 0 6px; }
.dauer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dauer-wahl input { position: absolute; opacity: 0; }
.dauer-wahl span {
  display: block; text-align: center; border: 3px solid var(--line); border-radius: 6px; padding: 10px; cursor: pointer;
  font-weight: 600; background: var(--panel); box-shadow: 3px 3px 0 var(--line);
}
.dauer-wahl b { font-family: var(--display); font-size: 2.2rem; font-weight: 400; display: block; line-height: 1; }
.dauer-wahl input:checked + span { background: var(--yellow); color: #141414; }
.dauer-wahl input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.themen { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 10px; }
.themen-gruppe { display: grid; gap: 6px; align-content: start; }
.themen-gruppe h3 { margin: 0; }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--red); flex: none; }
.check em { font-style: normal; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.check.alle { font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.03em; }
.abl-detail { display: grid; gap: 8px; margin: 10px 0 0 6px; }
.schalter { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; position: relative; }
.schalter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.schalter .knopf { width: 50px; height: 28px; border: 2.5px solid var(--line); border-radius: 999px; background: var(--soft); position: relative; flex: none; transition: background 0.15s; }
.schalter .knopf::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--ink); transition: transform 0.15s; }
.schalter input:checked + .knopf { background: var(--green); }
.schalter input:checked + .knopf::after { transform: translateX(22px); background: #fff; }
.schalter input:focus-visible + .knopf { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Übung läuft ---------- */
.runbar { display: flex; align-items: center; gap: 10px; }
.runbar .chip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { font-weight: 800; border: 2.5px solid var(--line); background: var(--panel); border-radius: 999px; padding: 4px 12px; }
.chip em { font-style: normal; color: var(--red); margin-left: 4px; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; }
.uhr { margin-left: auto; font-family: var(--display); font-size: 2rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; background: var(--ink); color: var(--paper); padding: 0 12px; border-radius: 5px; }
.richtzeit { height: 8px; border: 2px solid var(--line); border-radius: 6px; background: var(--soft); overflow: hidden; }
.richtzeit i { display: block; height: 100%; width: 0; background: var(--blue); transition: width 0.25s linear; }
.richtzeit.ueber i { background: var(--red); }
.zaehler { margin: -6px 0 0; font-weight: 600; color: var(--muted); }
.aufgabe .hinweis { font-weight: 600; color: var(--muted); }
.frage { font-size: clamp(1.25rem, 3.6vw, 1.6rem); font-weight: 600; white-space: pre-line; line-height: 1.35; }
.figur { background: #fff; border: 2.5px solid var(--line); border-radius: 6px; padding: 10px; margin: 0 0 16px; display: flex; justify-content: center; overflow-x: auto; }
.figur svg { width: 100%; max-width: 440px; height: auto; display: block; }
.lz .figur svg { max-width: 300px; }
.lz .opts.bilder, .lz .opts.bilder.sechs { grid-template-columns: repeat(auto-fill, minmax(96px, 128px)); }
.lz .frage { font-size: 1.15rem; }
.opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.opts.bilder { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.opts.bilder.sechs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.opt {
  display: flex; align-items: center; gap: 10px; text-align: left; background: var(--panel); border: 2.5px solid var(--line);
  border-radius: 6px; padding: 10px 12px; cursor: pointer; font-weight: 600; min-width: 0; position: relative;
}
.opt:hover { background: var(--soft); }
.opt.sel { background: var(--yellow); color: #141414; box-shadow: 3px 3px 0 var(--line); }
.opt .bu { font-family: var(--display); font-size: 1.1rem; width: 28px; height: 28px; flex: none; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; }
.opt .txt { min-width: 0; overflow-wrap: anywhere; }
.opts.bilder .opt { flex-direction: column; padding: 8px 6px; }
.kachel-bild { display: block; width: 100%; background: #fff; border: 1.5px solid #c9c9c9; border-radius: 4px; padding: 4px; }
.kachel-bild svg { display: block; width: 100%; height: auto; }
.merken .merk-inhalt, .merk-inhalt {
  font-size: clamp(1.2rem, 3.4vw, 1.5rem); font-weight: 600; white-space: pre-line; line-height: 1.6; background: var(--soft);
  border: 2.5px dashed var(--line); border-radius: 6px; padding: 16px; margin: 6px 0 12px; text-align: center; letter-spacing: 0.02em;
}
.merk-inhalt.klein { font-size: 1rem; text-align: left; }
.uhr-klein { font-family: var(--display); font-size: 2rem; letter-spacing: 0.05em; font-variant-numeric: tabular-nums; }
.bestaetigen { border-color: var(--red); }

/* ---------- Ergebnis ---------- */
.held-ergebnis { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.held-ergebnis > div:first-child { min-width: 0; flex: 1 1 300px; }
.score { font-size: 1.35rem; }
.score b { font-family: var(--display); font-size: 2.2rem; font-weight: 400; letter-spacing: 0.02em; }
.tabelle-rahmen { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 520px; }
.tabelle th, .tabelle td { text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--soft); vertical-align: middle; }
.tabelle thead th { font-family: var(--display); font-weight: 400; font-size: 1.1rem; letter-spacing: 0.04em; border-bottom: 3px solid var(--line); }
.tabelle tbody th small { display: block; font-weight: 400; }
.stufe-wechsel { font-weight: 800; font-size: 0.85rem; padding: 2px 8px; border-radius: 999px; border: 2px solid var(--line); }
.stufe-wechsel.auf { background: #bfe8c9; color: #141414; }
.stufe-wechsel.ab { background: #ffd0d1; color: #141414; }
.loesungen { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.lz { border: 2.5px solid var(--line); border-left-width: 10px; border-radius: 6px; padding: 12px 14px; }
.lz.ok { border-left-color: var(--green); }
.lz.nok { border-left-color: var(--red); }
.lz-kopf { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.lz-kopf em { font-style: normal; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.lz-status { margin-left: auto; font-weight: 800; }
.lz.ok .lz-status { color: var(--green); }
.lz.nok .lz-status { color: var(--red); }
.opt.statisch { cursor: default; }
.opt.statisch:hover { background: var(--panel); }
.opt.richtig { background: var(--ok-bg); border-color: var(--green); }
.opt.falsch { background: var(--nok-bg); border-color: var(--red); }
.marke { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin-left: auto; }
.opts.bilder .marke { margin: 0; }
.opt.richtig .marke { color: var(--green); }
.opt.falsch .marke { color: var(--red); }
.erklaerung { margin: 10px 0 0; background: var(--soft); border-radius: 5px; padding: 8px 12px; }

/* ---------- Verlauf ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip-btn { border: 2px solid var(--line); background: var(--panel); border-radius: 999px; padding: 3px 12px; cursor: pointer; font-weight: 600; font-size: 0.92rem; }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chart-rahmen { overflow-x: auto; }
.chart { width: 100%; min-width: 420px; height: auto; display: block; margin-top: 8px; }
.chart .gitter { stroke: var(--muted); stroke-opacity: 0.25; stroke-width: 1; }
.chart .achse { fill: var(--muted); font: 12px var(--body); }
.chart .linie { fill: none; stroke: var(--red); stroke-width: 3; stroke-linejoin: round; }
.chart .flaeche { fill: var(--red); fill-opacity: 0.12; }
.chart .pkt { fill: var(--panel); stroke: var(--red); stroke-width: 2.5; }
.chart .pkt.probe { fill: var(--blue); stroke: var(--ink); }
.chart .pkt.letzt { fill: var(--red); stroke: var(--ink); }
.chart .wert { fill: var(--ink); font: 700 14px var(--body); }
.legende { display: flex; gap: 14px; align-items: center; font-size: 0.86rem; color: var(--muted); margin: 6px 0 0; }
.pkt-l { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--red); background: var(--panel); margin-right: -8px; }
.pkt-l.probe { background: var(--blue); border-color: var(--ink); }
.sitzungen { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sitzung { display: flex; gap: 10px; align-items: center; }
.sitzung .sitzung-zeile { flex: 1; min-width: 0; }
.mini { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; width: 58px; }
.mini i { display: block; width: 9px; border: 1.5px solid var(--line); border-radius: 2px; }
.m-sprache { background: var(--red); } .m-zahlen { background: var(--blue); } .m-logik { background: var(--yellow); } .m-raum { background: var(--green); } .m-gedaechtnis { background: #b06bdb; }
.leer { padding: 6px 0; }
.liste { margin: 0 0 10px; padding-left: 20px; columns: 2; }
.probe-karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.probe-karte { display: grid; gap: 4px; align-content: start; }
.freigaben { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.freigaben li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 2px solid var(--soft); border-radius: 5px; padding: 6px 10px; }
.freigaben li span { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50;
  background: var(--ink); color: var(--paper); font-weight: 600; padding: 10px 18px; border-radius: 6px; max-width: calc(100% - 32px);
  transition: opacity 0.4s;
}
.toast.weg { opacity: 0; }

/* ---------- Ablenkung ---------- */
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 20; overflow: hidden; }
.tier { position: absolute; width: 64px; height: 64px; animation-timing-function: linear; animation-fill-mode: forwards; }
.tier svg { width: 100%; height: 100%; animation: hops 0.7s ease-in-out infinite; transform-origin: 50% 100%; }
.tier.unten { bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
.tier.oben { top: calc(70px + env(safe-area-inset-top, 0px)); }
.tier.nach-rechts { left: -80px; animation-name: nachRechts; }
.tier.nach-links { right: -80px; animation-name: nachLinks; }
.tier.nach-links svg { scale: -1 1; }
@keyframes nachRechts { to { transform: translateX(calc(100vw + 160px)); } }
@keyframes nachLinks { to { transform: translateX(calc(-100vw - 160px)); } }
@keyframes hops { 0%, 100% { translate: 0 0; } 50% { translate: 0 -26px; } }
.burst { position: absolute; width: 120px; height: 120px; display: grid; place-items: center; animation: knall 1.6s ease-out forwards; }
.burst svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.burst span { position: relative; font-family: var(--display); font-size: 1.4rem; color: #141414; text-align: center; line-height: 1; transform: rotate(-8deg); max-width: 80px; }
@keyframes knall { 0% { scale: 0.2; opacity: 0; } 15% { scale: 1.15; opacity: 1; } 30% { scale: 1; } 80% { opacity: 1; } 100% { opacity: 0; scale: 0.9; } }
body.wackeln .run { animation: wackeln 0.45s; }
@keyframes wackeln { 0%, 100% { translate: 0 0; } 20% { translate: -6px 2px; } 40% { translate: 5px -3px; } 60% { translate: -4px 1px; } 80% { translate: 3px 0; } }
@media (prefers-reduced-motion: reduce) {
  .tier svg { animation: none; }
  .burst { animation-duration: 2.2s; }
  .spinner { animation-duration: 2s; }
}

/* ---------- Probetest: klar, ohne Comic ---------- */
body.clean {
  --paper: #ffffff; --panel: #ffffff; --ink: #1a1a1a; --muted: #5d5d5d; --line: #c8c8c8; --soft: #f3f3f3;
  background-image: none; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1a1a1a; background-color: #fff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.clean { --paper: #161616; --panel: #161616; --ink: #e9e9e9; --muted: #a5a5a5; --line: #3c3c3c; --soft: #222; background-color: #161616; color: #e9e9e9; }
}
:root[data-theme="dark"] body.clean { --paper: #161616; --panel: #161616; --ink: #e9e9e9; --muted: #a5a5a5; --line: #3c3c3c; --soft: #222; background-color: #161616; color: #e9e9e9; }
body.clean::before { background: var(--paper); }
.probe-run { max-width: 820px; }
.probe-kopf { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.probe-uhr { margin-left: auto; font-variant-numeric: tabular-nums; }
.probe-uhr b { font-size: 1.5rem; font-weight: 600; }
.fortschritt { height: 4px; background: var(--soft); border-radius: 2px; overflow: hidden; }
.fortschritt i { display: block; height: 100%; background: var(--muted); }
.karte { border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: var(--panel); }
.karte .nr { font-size: 0.85rem; color: var(--muted); margin: 0 0 4px; }
body.clean .frage { font-weight: 500; }
body.clean .opt { border-width: 1px; border-radius: 6px; font-weight: 500; box-shadow: none; }
body.clean .opt.sel { background: var(--ink); color: var(--paper); box-shadow: none; }
body.clean .opt .bu { font-family: inherit; font-size: 0.85rem; border-width: 1px; }
body.clean .figur { border-width: 1px; border-color: #c8c8c8; }
body.clean .merk-inhalt { border-width: 1px; border-style: solid; }
.btn-clean { font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 6px; padding: 10px 22px; cursor: pointer; }
.btn-clean.primaer { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-clean.warn { border-color: #c0392b; color: #c0392b; }
.aktionen.rechts { justify-content: flex-end; }

/* ---------- schmal ---------- */
@media (max-width: 760px) {
  .login { grid-template-columns: 1fr; }
  .kacheln { grid-template-columns: 1fr 1fr; }
  .kacheln .countdown { grid-column: 1 / -1; }
  .probe-karten { grid-template-columns: 1fr; }
  .formular.zwei { grid-template-columns: 1fr; }
  .opts.bilder, .opts.bilder.sechs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trainer-bild { width: 92px; }
  .bubble { margin-bottom: 50px; max-width: 200px; font-size: 0.95rem; }
  .liste { columns: 1; }
  .sitzung-zeile { grid-template-columns: 1fr auto; }
  .sitzung-zeile .mini { display: none; }
  .tabs { margin-left: 0; width: 100%; }
  .tab { flex: 1 1 auto; font-size: 1rem; padding: 4px 8px; }
}
@media (max-width: 420px) {
  .kacheln { grid-template-columns: 1fr; }
  .opts { grid-template-columns: 1fr; }
  .opts.bilder, .opts.bilder.sechs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inline-form { grid-template-columns: 1fr; }
  .tier { width: 46px; height: 46px; }
  .burst { width: 90px; height: 90px; }
}

/* ---------- Punkte ---------- */
body[data-skin="nacht"] { --head: #2b2b8f; --dot: rgba(90, 162, 255, 0.18); }
body[data-skin="gift"] { --head: #12804a; --dot: rgba(76, 195, 91, 0.2); }
body[data-skin="retro"] { --head: #d4570f; --dot: rgba(255, 140, 26, 0.2); }
.muenze { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #141414; border: 2.5px solid #141414; border-radius: 999px; padding: 2px 12px 2px 4px; cursor: pointer; box-shadow: 2px 2px 0 #141414; font-family: var(--display); font-size: 1.2rem; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; }
.muenze svg, .punkte-plus svg, .kosten svg, .btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-joker { background: #fff; margin-right: auto; }
.opt.weg { opacity: 0.25; text-decoration: line-through; cursor: not-allowed; }
.punkte-box { margin: 4px 0 12px; }
.punkte-plus { display: inline-flex; align-items: center; gap: 8px; font-size: 1.2rem; margin: 0 0 6px; }
.punkte-plus b { font-family: var(--display); font-weight: 400; font-size: 1.9rem; letter-spacing: 0.02em; }
.posten { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-width: 420px; font-size: 0.95rem; }
.posten li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--soft); padding: 2px 0; }
.posten li b { font-variant-numeric: tabular-nums; }
.posten.lang { max-width: none; }
.posten b.minus { color: var(--red); }
.zwei-k { grid-template-columns: 1fr 1fr; }
.belohnungen { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 12px; }
.belohnung { border: 2.5px solid var(--line); border-radius: 6px; padding: 12px; display: grid; gap: 8px; background: var(--panel); }
.belohnung .aktionen { margin-top: 0; align-items: center; }
.belohnung .aktionen .klein { margin-right: auto; }
.bel-kopf { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.bel-kopf b { min-width: 0; overflow-wrap: anywhere; }
.kosten { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; white-space: nowrap; }
.bel-form { grid-template-columns: 2fr 1fr auto; align-items: end; margin: 6px 0 12px; }
.einloesungen { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.einloesungen li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 2px solid var(--soft); border-radius: 5px; padding: 8px 10px; }
.einloesungen li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.status { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 9px; border-radius: 999px; border: 2px solid var(--line); white-space: nowrap; }
.status.offen { background: var(--yellow); color: #141414; }
.status.erledigt { background: #bfe8c9; color: #141414; }
.extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.extra { border: 2.5px solid var(--line); border-radius: 6px; padding: 10px; display: grid; gap: 8px; justify-items: center; text-align: center; background: var(--panel); align-content: start; }
.extra-bild { width: 70px; height: 70px; display: block; }
.extra-bild svg { width: 100%; height: 100%; }
.extra-bild.farbe { display: flex; border: 2.5px solid #141414; border-radius: 6px; overflow: hidden; height: 46px; margin: 12px 0; }
.extra-bild.farbe i { flex: 1; }
.f-standard i:nth-child(1) { background: #e3262b; } .f-standard i:nth-child(2) { background: #ffd60a; } .f-standard i:nth-child(3) { background: #fff; }
.f-nacht i:nth-child(1) { background: #2b2b8f; } .f-nacht i:nth-child(2) { background: #5aa2ff; } .f-nacht i:nth-child(3) { background: #ffd60a; }
.f-gift i:nth-child(1) { background: #12804a; } .f-gift i:nth-child(2) { background: #b8f04a; } .f-gift i:nth-child(3) { background: #fff; }
.f-retro i:nth-child(1) { background: #d4570f; } .f-retro i:nth-child(2) { background: #1a9c9c; } .f-retro i:nth-child(3) { background: #ffe8b0; }
h3 { margin-top: 12px; }
@media (max-width: 760px) {
  .bel-form { grid-template-columns: 1fr 1fr; }
  .bel-form .btn { grid-column: 1 / -1; justify-self: start; }
  .muenze { margin-left: auto; }
}
@media (max-width: 420px) { .zwei-k { grid-template-columns: 1fr; } }

.anmelde-karte { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.anmelde-karte > div:first-child { flex: 1 1 280px; min-width: 0; }
.anmelde-karte p { margin: 0; }
.anmelde-karte .aktionen { margin-top: 0; }
