/* SchlauPause Lern-App: Stil wie das Serien-Dashboard (cremefarben, runde Karten, kräftige Umrisse, Grandstander),
   für Kinderfinger auf dem iPad: große Flächen, mindestens 44 px hohe Knöpfe. --ich ist die Farbe der gewählten Person. */
@font-face { font-family: "Grandstander"; font-weight: 800; font-display: swap; src: url("fonts/grandstander-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Grandstander"; font-weight: 600; font-display: swap; src: url("fonts/grandstander-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg: #FFF8EC; --karte: #FFFFFF; --ink: #1B2B48; --ink-soft: #4E5F7A; --line: #E6DCCB; --outline: #1E3550; --sand: #F1EADD;
  --orange: #E8691F; --orange-soft: #FCE2D0; --blau: #2E83DC; --blau-soft: #DCEBFA; --gruen: #35A866; --gruen-soft: #DDF2E5;
  --rot: #D9483B; --rot-soft: #FBE1DE; --gold: #F2B300; --gold-soft: #FFF1C7; --leer: #C9D6E6;
  --ich: #E8691F; --ich-soft: color-mix(in srgb, var(--ich) 14%, #FFFFFF);
  --display: "Grandstander", "Comic Sans MS", cursive; --text: "Atkinson Hyperlegible", system-ui, sans-serif;
  --unten: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.4 var(--text); touch-action: manipulation; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0; }
.laden { display: grid; place-items: center; min-height: 80vh; font: 800 26px var(--display); color: var(--ink-soft); }
.versteckt { display: none !important; }

/* ---------- Kopf und Reiter ---------- */
.kopf { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); padding: calc(env(safe-area-inset-top, 0px) + 10px) 24px 10px; border-bottom: 2px solid var(--line); }
.kopf-innen { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.kopf .logo { width: 48px; height: 48px; border-radius: 50%; }
.kopf h1 { font-size: 28px; }
.kopf h1 b { color: var(--orange); font-weight: 800; }
.ich-knopf { margin-left: auto; display: flex; align-items: center; gap: 10px; background: var(--karte); border: 2px solid var(--ich);
  border-radius: 999px; padding: 4px 16px 4px 4px; font: 800 18px var(--display); user-select: none; -webkit-user-select: none;
  text-decoration: none; color: var(--ink); line-height: 1.1; }
.ich-knopf img { width: 42px; height: 42px; border-radius: 50%; background: var(--ich-soft); }
.ich-knopf small { font: 700 13px var(--text); color: var(--ink-soft); }

.reiter { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--karte); border-top: 2px solid var(--line);
  padding: 6px 12px calc(6px + var(--unten)); display: flex; justify-content: center; gap: 6px; box-shadow: 0 -10px 30px -24px rgba(0,0,0,.4); }
.reiter a { flex: 0 1 170px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px; border-radius: 16px;
  text-decoration: none; color: var(--ink-soft); font: 700 14px var(--text); user-select: none; -webkit-user-select: none; }
.reiter a span { font-size: 26px; line-height: 1.1; filter: grayscale(.5); opacity: .8; }
.reiter a.an { color: var(--ink); background: var(--ich-soft); }
.reiter a.an span { filter: none; opacity: 1; }

main { max-width: 1240px; margin: 0 auto; padding: 18px 24px calc(110px + var(--unten)); }
.abschnitt { margin: 30px 0 14px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.abschnitt h2 { font-size: 27px; }
.abschnitt .mehr { margin-left: auto; color: var(--ink-soft); font-weight: 700; text-decoration: none; padding: 8px 4px; }
.abschnitt p { margin: 0; color: var(--ink-soft); width: 100%; }

/* ---------- Knöpfe und Pillen ---------- */
.knopf { font: 700 16px var(--text); border: 2px solid var(--outline); background: var(--karte); color: var(--ink); border-radius: 999px;
  padding: 10px 18px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  user-select: none; -webkit-user-select: none; transition: transform .1s; }
.knopf:active { transform: scale(.96); }
.knopf.haupt { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.knopf.ich { background: var(--ich); border-color: var(--ich); color: #FFFFFF; }
.knopf.gross { font-size: 19px; padding: 14px 26px; min-height: 56px; }
.knopf.klein { font-size: 14px; padding: 6px 12px; min-height: 36px; }
.knopf:disabled { opacity: .38; pointer-events: none; }
.zurueck { display: inline-flex; align-items: center; gap: 6px; font: 700 17px var(--text); color: var(--ink-soft); text-decoration: none;
  background: none; border: 0; padding: 8px 0; margin-bottom: 6px; }
.pille { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 11px; font-weight: 700; font-size: 14px;
  background: #FAF5EC; border: 2px solid transparent; white-space: nowrap; }
.pille.gesehen { background: var(--blau-soft); border-color: var(--blau); }
.pille.bestanden { background: var(--gold-soft); border-color: var(--gold); }
.pille.offen { background: var(--orange-soft); border-color: var(--orange); }
.pille.neu { background: var(--rot); color: #FFFFFF; }
.sterne { color: var(--gold); letter-spacing: 1px; font-size: 17px; white-space: nowrap; }
.sterne i { font-style: normal; color: var(--leer); }

/* ---------- Begrüßung und Zahlen ---------- */
.hallo { background: var(--karte); border: 2px solid var(--line); border-radius: 26px; padding: 18px 22px; display: grid;
  grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center; box-shadow: 0 10px 26px -18px rgba(0,0,0,.35); }
.hallo .kopfbild { width: 96px; height: 96px; border-radius: 50%; background: var(--ich-soft); border: 4px solid var(--ich); grid-row: span 2; }
.hallo h2 { font-size: 34px; }
.hallo p { margin: 2px 0 0; color: var(--ink-soft); font-weight: 700; }
.zahlen { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.zahl { border-radius: 18px; padding: 10px 14px; background: #FAF5EC; display: flex; align-items: center; gap: 12px; }
.zahl span { font-size: 30px; }
.zahl b { display: block; font: 800 26px var(--display); line-height: 1; }
.zahl small { color: var(--ink-soft); font-weight: 700; }
.gesamt { grid-column: 1 / -1; height: 14px; background: var(--sand); border-radius: 999px; overflow: hidden; margin-top: 4px; }
.gesamt div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blau), var(--gruen)); }
.suche { position: relative; margin-top: 18px; }
.suche input { width: 100%; font-size: 18px; border: 2px solid var(--line); border-radius: 999px; padding: 13px 20px 13px 52px; background: var(--karte); outline: none; }
.suche input:focus { border-color: var(--ich); }
.suche::before { content: "🔍"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; }

/* ---------- Videokarten ---------- */
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.reihe { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(255px, 300px); gap: 18px; overflow-x: auto; padding: 4px 4px 14px;
  margin: 0 -4px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.reihe > * { scroll-snap-align: start; }
.karte { background: var(--karte); border-radius: 22px; border: 2px solid var(--line); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 10px 26px -18px rgba(0,0,0,.35); text-decoration: none; color: inherit; transition: transform .12s; }
.karte:active { transform: scale(.98); }
.karte .bild { position: relative; aspect-ratio: 16 / 9; background: var(--sand); border-bottom: 6px solid var(--farbe, var(--outline)); }
.karte .bild.bunt { border-image: linear-gradient(90deg, #F2B300, #E8691F, #35A866, #8C55D4, #2E83DC) 1; }
.karte .bild img { width: 100%; height: 100%; object-fit: cover; }
.karte .marken { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.karte .marken .pille { box-shadow: 0 4px 12px -4px rgba(0,0,0,.4); }
.karte .marken .pille.gesehen { background: var(--blau); color: #FFFFFF; }
.karte .marken .pille.bestanden { background: var(--gold); color: var(--ink); }
.karte .lauf { position: absolute; left: 0; bottom: 0; height: 6px; background: var(--ich); }
.karte .grund { position: absolute; right: 10px; bottom: 12px; background: var(--ink); color: #FFFFFF; border-radius: 999px; padding: 4px 11px;
  font-weight: 700; font-size: 13px; }
.karte .inhalt { padding: 12px 15px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.karte .titel { font: 800 20px/1.1 var(--display); }
.karte .untertitel { color: var(--ink-soft); font-size: 14.5px; line-height: 1.3; }
.karte .fuss { margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.karte .fuss .rechts { margin-left: auto; }
.leer-hinweis { background: var(--karte); border: 2px dashed var(--line); border-radius: 22px; padding: 26px; text-align: center; color: var(--ink-soft); font-weight: 700; }

/* ---------- Fächer ---------- */
.faecher { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.fach { --f: var(--outline); position: relative; border-radius: 24px; padding: 16px 18px 16px; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--f) 13%, #FFFFFF); border: 3px solid var(--f); display: flex; flex-direction: column; gap: 4px; min-height: 150px;
  box-shadow: 0 10px 24px -18px var(--f); transition: transform .12s; }
.fach:active { transform: scale(.97); }
.fach .icon { font-size: 44px; line-height: 1; }
.fach b { font: 800 23px var(--display); margin-top: 6px; }
.fach small { color: var(--ink-soft); font-weight: 700; font-size: 14px; }
.fach .mini { height: 8px; background: rgba(255,255,255,.8); border-radius: 999px; overflow: hidden; margin-top: auto; }
.fach .mini div { height: 100%; background: var(--f); border-radius: 999px; }
.fach.leer { background: var(--karte); border-style: dashed; border-color: color-mix(in srgb, var(--f) 45%, #FFFFFF); box-shadow: none; }
.fach.leer .icon { filter: grayscale(.6); opacity: .7; }
.band { --f: var(--outline); border-radius: 26px; padding: 18px 22px; background: color-mix(in srgb, var(--f) 14%, #FFFFFF); border: 3px solid var(--f);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.band .icon { font-size: 58px; line-height: 1; }
.band h2 { font-size: 36px; }
.band p { margin: 4px 0 0; font-weight: 700; color: var(--ink-soft); }
.band .rechts { margin-left: auto; }
.filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 4px; }
.filter button { border: 2px solid var(--line); background: var(--karte); border-radius: 999px; padding: 8px 16px; font-weight: 700; min-height: 42px; }
.filter button.an { border-color: var(--ich); background: var(--ich-soft); }

/* ---------- Serien ---------- */
.serien { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.serie { background: var(--karte); border: 2px solid var(--line); border-radius: 24px; overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; box-shadow: 0 10px 26px -18px rgba(0,0,0,.35); transition: transform .12s; }
.serie:active { transform: scale(.98); }
.serie .mosaik { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); }
.serie .mosaik img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.serie .inhalt { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.serie h3 { font-size: 24px; }
.punkte { display: flex; gap: 6px; flex-wrap: wrap; }
.punkte i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--leer); background: #FFFFFF; display: grid; place-items: center;
  font: 800 12px var(--display); font-style: normal; color: var(--ink-soft); }
.punkte i.gesehen { background: var(--blau); border-color: var(--blau); color: #FFFFFF; }
.punkte i.bestanden { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.balken { height: 12px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.balken div { height: 100%; border-radius: 999px; background: var(--ich); }
.pfad { display: flex; flex-direction: column; gap: 0; margin-top: 18px; }
.schritt { display: grid; grid-template-columns: 64px 1fr; gap: 14px; position: relative; padding-bottom: 18px; }
.schritt::before { content: ""; position: absolute; left: 30px; top: 58px; bottom: -4px; width: 4px; background: var(--line); border-radius: 4px; }
.schritt:last-child::before { display: none; }
.schritt .nr { width: 60px; height: 60px; border-radius: 50%; background: var(--karte); border: 4px solid var(--leer); display: grid; place-items: center;
  font: 800 26px var(--display); color: var(--ink-soft); z-index: 1; }
.schritt.gesehen .nr { background: var(--blau); border-color: var(--blau); color: #FFFFFF; }
.schritt.bestanden .nr { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.schritt.dran .nr { border-color: var(--ich); color: var(--ich); box-shadow: 0 0 0 6px var(--ich-soft); }
.schritt .zeile { background: var(--karte); border: 2px solid var(--line); border-radius: 22px; display: grid; grid-template-columns: 220px 1fr;
  overflow: hidden; box-shadow: 0 10px 26px -18px rgba(0,0,0,.35); }
.schritt.dran .zeile { border-color: var(--ich); }
.schritt .zeile .bild { position: relative; background: var(--sand); }
.schritt .zeile .bild img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.schritt .zeile .text { padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.schritt .zeile .titel { font: 800 21px var(--display); }
.schritt .zeile .untertitel { color: var(--ink-soft); font-size: 14.5px; }
.schritt .knoepfe { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.schritt.bald .nr { border-style: dashed; }
.schritt.bald .zeile { border-style: dashed; grid-template-columns: 1fr; color: var(--ink-soft); }

/* ---------- Videoseite ---------- */
.video-seite { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.spieler { position: relative; aspect-ratio: 16 / 9; background: #0F1828; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(0,0,0,.6); }
.spieler iframe, .spieler > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.spieler .hinweis { color: #FFFFFF; display: grid; place-items: center; text-align: center; padding: 30px; font-weight: 700; }
.video-info h2 { font-size: 32px; margin-top: 16px; }
.video-info .untertitel { color: var(--ink-soft); font-size: 18px; margin-top: 4px; }
.video-info .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.seitenleiste { display: flex; flex-direction: column; gap: 14px; }
.kasten { background: var(--karte); border: 2px solid var(--line); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.kasten h3 { font-size: 21px; }
.kasten p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.kasten .knopf { width: 100%; }
.kapitel { display: flex; flex-direction: column; gap: 4px; }
.kapitel button { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; text-align: left; border: 0; background: transparent;
  border-radius: 12px; padding: 8px 10px; min-height: 44px; font-weight: 700; font-size: 15.5px; }
.kapitel button span { font: 700 14px var(--text); color: var(--ink-soft); background: #FAF5EC; border-radius: 8px; padding: 2px 6px; text-align: center; }
.kapitel button.an { background: var(--ich-soft); }
.kapitel button.an span { background: var(--ich); color: #FFFFFF; }
.kapitel .haken { font-style: normal; font-size: 13px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.kapitel .haken.ok { width: 28px; height: 28px; border-radius: 50%; background: var(--gruen); color: #FFFFFF; display: grid; place-items: center; font-size: 16px; }
.kapitel .haken.weiter { background: var(--orange); color: #FFFFFF; border-radius: 999px; padding: 3px 10px; }
.kapitel button.fertig { color: var(--ink-soft); }
.fortschritt { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.fortschritt .balken { flex: 1; }

/* ---------- Fenster (Arbeitsblatt, Foto) ---------- */
.fenster { position: fixed; inset: 0; z-index: 20; background: rgba(15,24,40,.78); display: flex; align-items: center; justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px calc(12px + var(--unten)); }
.fenster .rahmen { background: #0F1828; border-radius: 20px; overflow: hidden; width: min(100%, 1100px); max-height: 100%; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); }
.fenster .fkopf { display: flex; align-items: center; gap: 8px; color: #FFFFFF; padding: 10px 12px 10px 18px; flex-wrap: wrap; }
.fenster .fkopf b { font: 800 20px var(--display); margin-right: auto; }
.fenster .fkopf .knopf { background: transparent; color: #FFFFFF; border-color: #FFFFFF; min-height: 42px; padding: 7px 14px; }
.fenster .fkopf .knopf.ich { background: var(--ich); border-color: var(--ich); }
.fenster .buehne { overflow-y: auto; background: #5A6577; padding: 16px; -webkit-overflow-scrolling: touch; }
.fenster .buehne img { width: min(100%, 860px); margin: 0 auto 16px; background: #FFFFFF; box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); }
.fenster .buehne.foto { background: #0F1828; display: grid; place-items: center; }
.fenster .buehne.foto img { max-height: 78vh; width: auto; box-shadow: none; }

/* ---------- Test ---------- */
.test-kopf { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.test-kopf h2 { font-size: 34px; }
.test-kopf p { margin: 4px 0 0; color: var(--ink-soft); font-weight: 700; }
.aufgabe { background: var(--karte); border: 2px solid var(--line); border-radius: 24px; padding: 18px 20px; margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.aufgabe .ah { display: flex; align-items: center; gap: 12px; }
.aufgabe .nr { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--orange); display: grid; place-items: center; font: 800 20px var(--display); flex: none; }
.aufgabe h3 { font-size: 23px; }
.aufgabe .anl { margin: -4px 0 0 52px; color: var(--ink-soft); }
.frage { background: #FAF5EC; border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.frage .q { font-weight: 700; font-size: 18px; }
.frage .q b { font-family: var(--display); color: var(--orange); margin-right: 6px; }
.optionen { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { border: 2px solid var(--line); background: var(--karte); border-radius: 14px; padding: 11px 16px; min-height: 50px; font-size: 17px; text-align: left;
  display: inline-flex; align-items: center; gap: 10px; user-select: none; -webkit-user-select: none; transition: transform .1s; }
.opt:active { transform: scale(.97); }
.opt::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink-soft); flex: none; background: #FFFFFF; }
.opt.kasten-opt::before { border-radius: 5px; }
.opt.gewaehlt { border-color: var(--ich); background: var(--ich-soft); }
.opt.gewaehlt::before { background: var(--ich); border-color: var(--ich); box-shadow: inset 0 0 0 3px #FFFFFF; }
.opt.richtig { border-color: var(--gruen); background: var(--gruen-soft); }
.opt.richtig::before { background: var(--gruen); border-color: var(--gruen); box-shadow: inset 0 0 0 3px #FFFFFF; }
.opt.falsch { border-color: var(--rot); background: var(--rot-soft); }
.opt.falsch::before { background: var(--rot); border-color: var(--rot); box-shadow: inset 0 0 0 3px #FFFFFF; }
.opt.vergessen { border-color: var(--gruen); border-style: dashed; }
.gesperrt .opt { pointer-events: none; }
.rueck { font-weight: 700; min-height: 1.4em; margin: 0; }
.rueck.ok { color: var(--gruen); }
.rueck.no { color: var(--rot); }
.aufgabe .svg { background: #FFFFFF; border: 2px solid var(--line); border-radius: 16px; padding: 10px; }
.aufgabe .svg svg { display: block; width: 100%; height: auto; max-height: 520px; }
.beschriften { display: grid; gap: 14px; }
.beschriften .rechts { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 980px) {
  .beschriften { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
  .beschriften .svg { position: sticky; top: 90px; }
  .beschriften .felder { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .beschriften.ohne-bild { grid-template-columns: 1fr; }
}
/* Zuordnen: Wörter ziehen oder antippen */
.woerter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; border: 2px dashed var(--line); border-radius: 16px; padding: 12px; }
.wort { border: 2px solid var(--outline); background: var(--karte); border-radius: 999px; padding: 8px 16px; min-height: 44px; font: 600 18px var(--display);
  user-select: none; -webkit-user-select: none; touch-action: none; cursor: grab; }
.wort.benutzt { opacity: .3; }
.wort.gewaehlt { background: var(--ich); border-color: var(--ich); color: #FFFFFF; }
.wort.zieht { opacity: .35; }
.wort.geist { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; box-shadow: 0 14px 28px -8px rgba(0,0,0,.5); cursor: grabbing; }
.felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.beschriften .felder.mit-text, .felder.mit-text { grid-template-columns: 1fr; }
.feld { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); background: var(--karte); border-radius: 16px; padding: 6px 8px 6px 6px;
  min-height: 56px; text-align: left; flex-wrap: wrap; cursor: pointer; transition: box-shadow .1s; }
.feld .bu { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--orange); display: grid; place-items: center; font: 800 18px var(--display); flex: none; }
.feld .ftext { flex: 1 1 180px; font-size: 16px; }
.feld .ablage { margin-left: auto; flex: 1 1 140px; min-height: 42px; border: 2px dashed var(--leer); border-radius: 12px; display: grid; place-items: center;
  padding: 4px 10px; font: 600 15px var(--text); color: var(--ink-soft); text-align: center; }
.feld .ablage.voll { border-style: solid; border-color: var(--outline); color: var(--ink); background: #FAF5EC; font: 600 17px var(--display); }
.feld.bereit .ablage:not(.voll) { border-color: var(--ich); color: var(--ich); }
.feld.ueber { border-color: var(--ich); box-shadow: 0 0 0 5px var(--ich-soft); }
.feld.richtig { border-color: var(--gruen); background: var(--gruen-soft); }
.feld.falsch { border-color: var(--rot); background: var(--rot-soft); }
.feld small { font: 700 14px var(--text); color: var(--gruen); margin-left: auto; }
/* Entscheiden: je Bild oder Satz eine Möglichkeit */
.entscheiden { display: flex; flex-direction: column; gap: 10px; }
.entscheiden.bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.eintrag { border: 2px solid var(--line); background: var(--karte); border-radius: 18px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.entscheiden:not(.bilder) .eintrag { flex-direction: row; flex-wrap: wrap; align-items: center; }
.entscheiden:not(.bilder) .etext { flex: 1 1 260px; }
.eintrag.richtig { border-color: var(--gruen); background: var(--gruen-soft); }
.eintrag.falsch { border-color: var(--rot); background: var(--rot-soft); }
.eintrag small { color: var(--gruen); font-weight: 700; }
.ausschnitt { background: #FFFFFF; border-radius: 12px; padding: 4px; }
.ausschnitt svg { display: block; width: 100%; height: auto; max-height: 160px; }
.etext { font-size: 16px; }
.etext b { font-family: var(--display); color: var(--orange); margin-right: 4px; }
.wahl { display: flex; gap: 6px; flex-wrap: wrap; }
.wahl button { flex: 1 1 0; min-width: 0; border: 2px solid var(--line); background: var(--karte); border-radius: 12px; padding: 8px 12px; min-height: 44px; font-weight: 700; font-size: 15px; }
.wahl.kurz button { flex: 1 0 40px; font: 800 18px var(--display); padding: 6px; }
.wahl button.an { border-color: var(--ich); background: var(--ich); color: #FFFFFF; }
/* Tabelle ankreuzen und Fehler finden */
.tabelle-aufgabe { overflow-x: auto; }
.tabelle-aufgabe table { border-collapse: collapse; width: 100%; background: var(--karte); border-radius: 14px; overflow: hidden; }
.tabelle-aufgabe th, .tabelle-aufgabe td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: center; }
.tabelle-aufgabe thead th { font: 800 15px var(--display); background: #FAF5EC; }
.tabelle-aufgabe tbody th { text-align: left; font-weight: 700; font-size: 15px; }
.kreuz { width: 44px; height: 44px; border: 2px solid var(--ink-soft); border-radius: 10px; background: #FFFFFF; font: 800 24px var(--display); color: #FFFFFF; }
.kreuz.an { background: var(--ich); border-color: var(--ich); }
.kreuz.richtig { background: var(--gruen); border-color: var(--gruen); }
.kreuz.falsch { background: var(--rot); border-color: var(--rot); }
.kreuz.vergessen { border: 3px dashed var(--gruen); }
.legende { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 8px; font-weight: 700; color: var(--ink-soft); }
.legende b { font: 800 18px var(--display); color: var(--ink); }
.zelle-fehler { min-width: 48px; min-height: 44px; border: 2px solid transparent; border-radius: 50%; background: transparent; font: 800 22px var(--display);
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 8px; }
.zelle-fehler.markiert { border: 3px solid var(--orange); border-radius: 999px; }
.zelle-fehler.richtig { border-color: var(--gruen); background: var(--gruen-soft); }
.zelle-fehler.falsch { border-color: var(--rot); background: var(--rot-soft); }
.zelle-fehler.vergessen { border: 3px dashed var(--rot); border-radius: 999px; }
.zelle-fehler small { font-size: 14px; color: var(--gruen); display: inline-flex; align-items: center; gap: 2px; }
.box { display: inline-block; width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 5px; position: relative; }
.box.an::after { content: "✓"; position: absolute; inset: -6px 0 0 3px; font-size: 22px; line-height: 1; }
/* Markieren: Satzteile unterstreichen, Sätze streichen */
.stifte { display: flex; gap: 8px; flex-wrap: wrap; position: sticky; top: 76px; z-index: 2; background: var(--karte); padding: 6px 0; }
.stift { border: 2px solid var(--line); background: var(--karte); border-radius: 999px; padding: 8px 16px; min-height: 44px; font-weight: 700; font-size: 16px; }
.stift.an { border-color: var(--ich); box-shadow: 0 0 0 4px var(--ich-soft); }
.saetze { display: flex; flex-direction: column; gap: 8px; }
.satz { display: flex; align-items: flex-start; gap: 10px; border: 2px solid var(--line); border-radius: 16px; padding: 10px 12px; background: var(--karte); flex-wrap: wrap; }
.satz .bu { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--orange); display: grid; place-items: center; font: 800 16px var(--display); flex: none; }
.satz .stext { flex: 1 1 240px; font-size: 18px; line-height: 2.1; }
.satz.gestrichen .stext, .satz.gestrichen .stext > * { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--rot); }
.satz.gestrichen .stext { opacity: .75; }
.satz.richtig { border-color: var(--gruen); background: var(--gruen-soft); }
.satz.falsch { border-color: var(--rot); background: var(--rot-soft); }
.satz small { width: 100%; color: var(--gruen); font-weight: 700; padding-left: 42px; }
.teil { border: 0; background: #FAF5EC; border-radius: 8px; padding: 2px 6px; margin: 0 1px; font: inherit; color: inherit; line-height: 1.6;
  border-bottom: 2px dotted var(--leer); }
.m-welle { text-decoration: underline wavy var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.m-linie { text-decoration: underline solid var(--blau); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.teil.m-welle { background: var(--orange-soft); border-bottom-color: transparent; }
.teil.m-linie { background: var(--blau-soft); border-bottom-color: transparent; }
.gestrichen { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--rot); }
.beispiel { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; background: #FAF5EC; border-radius: 14px; padding: 10px 14px; font-size: 17px; line-height: 2; }
.beispiel b { color: var(--ink-soft); }
.luecken { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px 22px; }
.luecke { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; }
.luecke .l { min-width: 120px; text-align: right; }
.luecke input { width: 110px; font-size: 20px; font-weight: 700; text-align: center; border: 2px solid var(--line); border-radius: 12px; padding: 8px; background: var(--karte); outline: none; }
.luecke input:focus { border-color: var(--ich); }
.luecke input.richtig { border-color: var(--gruen); background: var(--gruen-soft); }
.luecke input.falsch { border-color: var(--rot); background: var(--rot-soft); }
.luecke small { color: var(--gruen); font-size: 15px; }
.aufgabe textarea, .wunsch textarea { width: 100%; min-height: 130px; font-size: 18px; border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px;
  background: var(--karte); resize: vertical; outline: none; }
.aufgabe textarea:focus, .wunsch textarea:focus { border-color: var(--ich); }
.loesung { background: var(--gruen-soft); border: 2px solid var(--gruen); border-radius: 16px; padding: 12px 14px; }
.loesung b { display: block; color: var(--gruen); margin-bottom: 4px; }
.papier { background: #FAF5EC; border: 2px dashed var(--line); }
.stand-leiste { position: sticky; bottom: calc(82px + var(--unten)); z-index: 4; margin-top: 18px; background: var(--ink); color: #FFFFFF; border-radius: 999px;
  padding: 10px 12px 10px 22px; display: flex; align-items: center; gap: 14px; box-shadow: 0 14px 30px -16px rgba(0,0,0,.7); }
.stand-leiste b { font: 800 20px var(--display); }
.stand-leiste .balken { flex: 1; background: rgba(255,255,255,.18); }
.stand-leiste .balken div { background: var(--gruen); }
.ergebnis { margin-top: 22px; background: var(--karte); border: 3px solid var(--gold); border-radius: 26px; padding: 22px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ergebnis.knapp { border-color: var(--orange); }
.ergebnis .gross-sterne { font-size: 54px; letter-spacing: 6px; color: var(--gold); line-height: 1; }
.ergebnis .gross-sterne i { font-style: normal; color: var(--leer); }
.ergebnis h3 { font-size: 32px; }
.ergebnis p { margin: 0; color: var(--ink-soft); font-weight: 700; max-width: 52ch; }
.ergebnis .knoepfe { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* ---------- Personen wählen ---------- */
.wer { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  padding: calc(env(safe-area-inset-top, 0px) + 24px) 20px calc(24px + var(--unten)); background: radial-gradient(circle at 50% 0%, #FFFFFF 0, var(--bg) 60%); }
.wer header { display: flex; align-items: center; gap: 16px; }
.wer header img { width: 86px; height: 86px; border-radius: 50%; }
.wer h1 { font-size: clamp(38px, 6vw, 58px); text-align: center; }
.personen { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; width: min(100%, 1180px); }
.person { --p: var(--outline); border: 3px solid var(--p); background: color-mix(in srgb, var(--p) 12%, #FFFFFF); border-radius: 28px; padding: 16px 10px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); transition: transform .15s;
  box-shadow: 0 16px 30px -22px var(--p); user-select: none; -webkit-user-select: none; }
.person:active { transform: scale(.95) rotate(-1deg); }
.person img { height: clamp(170px, 30vh, 300px); width: auto; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.15)); }
.person b { font: 800 clamp(24px, 3vw, 32px) var(--display); }
.person small { color: var(--ink-soft); font-weight: 700; font-size: 14px; text-align: center; min-height: 2.6em; }
.person.zuletzt { box-shadow: 0 0 0 5px color-mix(in srgb, var(--p) 30%, transparent), 0 16px 30px -22px var(--p); }

/* ---------- Wünsche ---------- */
.wunsch-start { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: var(--karte); border: 3px solid var(--ich);
  border-radius: 28px; padding: 18px 24px; text-decoration: none; color: inherit; box-shadow: 0 14px 30px -22px var(--ich); }
.wunsch-start img { height: 150px; width: auto; }
.wunsch-start h2 { font-size: 32px; }
.wunsch-start p { margin: 6px 0 12px; color: var(--ink-soft); font-weight: 700; }
.wunsch { display: flex; flex-direction: column; gap: 18px; max-width: 900px; }
.wunsch .kasten h3 { display: flex; align-items: center; gap: 10px; }
.wunsch .kasten h3 i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; background: var(--ich); color: #FFFFFF; display: grid; place-items: center; font-size: 18px; }
.faecher.klein { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 10px; }
.faecher.klein .fach { min-height: 0; padding: 12px; flex-direction: row; align-items: center; gap: 10px; box-shadow: none; border-width: 2px; background: var(--karte); }
.faecher.klein .fach .icon { font-size: 30px; }
.faecher.klein .fach b { font-size: 18px; margin: 0; }
.faecher.klein .fach.an { background: color-mix(in srgb, var(--f) 18%, #FFFFFF); border-width: 3px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--f) 25%, transparent); }
.fotos { display: flex; gap: 10px; flex-wrap: wrap; }
.fotos .foto { position: relative; width: 120px; height: 120px; border-radius: 14px; overflow: hidden; border: 2px solid var(--line); background: var(--sand); }
.fotos .foto img { width: 100%; height: 100%; object-fit: cover; }
.fotos .foto button { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(15,24,40,.75); color: #FFFFFF; font-weight: 700; }
.foto-knopf { position: relative; overflow: hidden; }
.foto-knopf input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 200px; }
.wuensche { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.wunschkarte { background: var(--karte); border: 2px solid var(--line); border-radius: 22px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 10px 26px -18px rgba(0,0,0,.35); }
.wunschkarte .wer-zeile { display: flex; align-items: center; gap: 10px; }
.wunschkarte .wer-zeile img { width: 44px; height: 44px; border-radius: 50%; background: var(--sand); }
.wunschkarte .wer-zeile b { font: 800 19px var(--display); }
.wunschkarte .wer-zeile small { display: block; color: var(--ink-soft); font-weight: 700; font-size: 13px; }
.wunschkarte .wer-zeile .pille { margin-left: auto; }
.wunschkarte .text { font-size: 17px; white-space: pre-wrap; overflow-wrap: anywhere; }
.wunschkarte .fotos .foto { width: 84px; height: 84px; }
.wunschkarte .unten { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status-wahl { display: flex; gap: 6px; flex-wrap: wrap; }
.status-wahl button { border: 2px solid var(--line); background: var(--karte); border-radius: 999px; padding: 5px 11px; font-size: 13.5px; font-weight: 700; min-height: 36px; }
.status-wahl button.an { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }
.pille.st-neu { background: var(--orange-soft); border-color: var(--orange); }
.pille.st-angeschaut { background: var(--blau-soft); border-color: var(--blau); }
.pille.st-in-arbeit { background: #EDE3FA; border-color: #8C55D4; }
.pille.st-fertig { background: var(--gruen-soft); border-color: var(--gruen); }
.pille.st-abgelehnt { background: #EEF1F5; border-color: var(--leer); }
.danke { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 10px; }
.danke img { height: 260px; width: auto; }
.danke h2 { font-size: 40px; }
.danke p { margin: 0; color: var(--ink-soft); font-weight: 700; font-size: 19px; max-width: 46ch; }
.gross-icon { font-size: 92px; line-height: 1; text-align: center; }
.banner-paar { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; }
.idee-start { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; background: var(--karte); border: 3px dashed var(--outline);
  border-radius: 28px; padding: 18px 20px; text-decoration: none; color: inherit; }
.idee-start .gross-icon { font-size: 64px; }
.idee-start h2 { font-size: 26px; }
.idee-start p { margin: 6px 0 12px; color: var(--ink-soft); font-weight: 700; }
.idee-knopf { margin-left: auto; display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink-soft); border: 2px solid var(--line);
  background: var(--karte); border-radius: 999px; padding: 6px 14px 6px 10px; font-weight: 700; min-height: 44px; }
.idee-knopf span { font-size: 22px; line-height: 1; }
.idee-knopf + .ich-knopf { margin-left: 0; }
.reiter a { position: relative; }
.reiter .neu-zahl { position: absolute; top: 2px; left: calc(50% + 10px); min-width: 24px; height: 24px; border-radius: 12px; padding: 0 6px; background: var(--rot);
  color: #FFFFFF; font: 800 13px/24px var(--text); text-align: center; }
.reiter .neu-zahl.gruen { background: var(--gruen); }
.umschalter { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 18px; }
.umschalter a { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; border: 3px solid var(--line); background: var(--karte);
  border-radius: 22px; padding: 12px; text-decoration: none; color: var(--ink-soft); font: 800 22px var(--display); }
.umschalter a span { font-size: 28px; }
.umschalter a small { font: 700 14px var(--text); background: var(--orange-soft); border-radius: 999px; padding: 2px 10px; color: var(--ink); }
.umschalter a.an { border-color: var(--ich); background: var(--ich-soft); color: var(--ink); }
.wunschkarte { position: relative; }
.wunschkarte.fertig { border: 3px solid var(--gruen); background: linear-gradient(var(--gruen-soft), #FFFFFF 70px); }
.haken-ecke { position: absolute; top: -12px; right: -10px; width: 40px; height: 40px; border-radius: 50%; background: var(--gruen); color: #FFFFFF;
  display: grid; place-items: center; font: 800 24px var(--display); box-shadow: 0 4px 10px -4px rgba(0,0,0,.4); }
.wunschkarte.fertig .wer-zeile .pille { margin-right: 26px; }
.papa-antwort { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; }
.papa-antwort img { width: 40px; height: 40px; border-radius: 50%; background: var(--sand); }
.papa-antwort p { margin: 0; background: #FAF5EC; border-radius: 4px 16px 16px 16px; padding: 8px 12px; white-space: pre-wrap; }
.erledigt-am { color: var(--gruen); font-weight: 700; }
.erledigt-meldungen { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.erledigt-meldung { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; background: var(--gruen-soft); border: 3px solid var(--gruen);
  border-radius: 24px; padding: 16px 20px; }
.haken-gross { width: 64px; height: 64px; border-radius: 50%; background: var(--gruen); color: #FFFFFF; display: grid; place-items: center; font: 800 38px var(--display); }
.erledigt-meldung h3 { font-size: 25px; }
.erledigt-meldung p { margin: 4px 0 0; }
.erledigt-meldung .zitat { font-weight: 700; color: var(--ink-soft); }
.erledigt-meldung .knoepfe { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mehr-erledigt { color: var(--gruen); font-weight: 700; text-decoration: none; padding: 4px 8px; }
/* Admin */
.filterleiste { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { border: 2px solid var(--line); background: var(--karte); border-radius: 999px; padding: 6px 14px; font-weight: 700; min-height: 40px; }
.chips button.an { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }
.adminliste { display: flex; flex-direction: column; gap: 14px; }
.adminkarte { background: var(--karte); border: 2px solid var(--line); border-left: 8px solid var(--orange); border-radius: 18px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px; }
.adminkarte.st-rand-angeschaut { border-left-color: var(--blau); }
.adminkarte.st-rand-in-arbeit { border-left-color: #8C55D4; }
.adminkarte.st-rand-fertig { border-left-color: var(--gruen); }
.adminkarte.st-rand-abgelehnt { border-left-color: var(--leer); }
.adminkarte .wer-zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adminkarte .wer-zeile img { width: 40px; height: 40px; border-radius: 50%; background: var(--sand); }
.adminkarte .wer-zeile b { font: 800 18px var(--display); }
.adminkarte .wer-zeile small { display: block; color: var(--ink-soft); font-weight: 700; font-size: 13px; }
.adminkarte .wer-zeile > div { margin-right: auto; }
.adminkarte .text { font-size: 17px; white-space: pre-wrap; overflow-wrap: anywhere; }
.adminkarte .fotos .foto { width: 84px; height: 84px; }
.adminkarte .unten { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feldzeile { display: flex; flex-direction: column; gap: 4px; }
.feldzeile span { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.feldzeile textarea, .feldzeile select { width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; font-size: 16px; background: #FFFFFF; resize: vertical; }
.feldzeile textarea:focus, .feldzeile select:focus { outline: none; border-color: var(--ich); }
.feldzeile select { min-height: 44px; }
.knopf.gruen { background: var(--gruen); border-color: var(--gruen); color: #FFFFFF; }
.verlauf-klein summary { font-weight: 700; color: var(--ink-soft); cursor: pointer; padding: 6px 0; }
.verlauf-klein ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; }
.verlauf-klein li small { color: var(--ink-soft); font-weight: 700; }
small.block { display: block; color: var(--ink-soft); font-weight: 400; white-space: normal !important; }

/* ---------- Meldung, Konfetti ---------- */
.meldung { position: fixed; left: 50%; bottom: calc(96px + var(--unten)); transform: translate(-50%, 20px); opacity: 0; z-index: 30; background: var(--ink);
  color: #FFFFFF; border-radius: 999px; padding: 12px 22px; font-weight: 700; transition: .25s; pointer-events: none; max-width: 92vw; text-align: center; }
.meldung.an { opacity: 1; transform: translate(-50%, 0); }
.konfetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.konfetti i { position: absolute; top: -20px; width: 12px; height: 18px; border-radius: 3px; animation: fallen linear forwards; }
@keyframes fallen { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- Elterndashboard ---------- */
.kinder { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.kindkarte { --p: var(--outline); background: var(--karte); border: 3px solid var(--p); border-radius: 24px; padding: 16px 18px; display: flex; flex-direction: column;
  gap: 12px; text-decoration: none; color: inherit; box-shadow: 0 14px 30px -24px var(--p); transition: transform .12s; }
.kindkarte:active { transform: scale(.98); }
.kk-kopf { display: flex; align-items: center; gap: 14px; }
.kk-kopf img { width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--p) 14%, #FFFFFF); border: 3px solid var(--p); }
.kk-kopf b { display: block; font: 800 26px var(--display); }
.kk-kopf small { color: var(--ink-soft); font-weight: 700; }
.kk-kopf .mehr { margin-left: auto; font: 800 30px var(--display); color: var(--p); }
.kk-zahlen { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.kk-zahlen span { background: #FAF5EC; border-radius: 12px; padding: 6px 4px; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-soft); line-height: 1.15; }
.kk-zahlen b { display: block; font: 800 22px var(--display); color: var(--ink); }
.kk-balken small { display: block; font-weight: 700; color: var(--ink-soft); font-size: 13px; margin-bottom: 3px; }
.verlauf { background: var(--karte); border: 2px solid var(--line); border-radius: 22px; overflow: hidden; }
.verlauf .eintrag { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; min-height: 52px; }
.verlauf .eintrag:last-child { border-bottom: 0; }
.verlauf .eintrag img { width: 38px; height: 38px; border-radius: 50%; background: var(--sand); }
.verlauf .eintrag .icon { font-size: 22px; text-align: center; }
.verlauf .eintrag small { color: var(--ink-soft); font-weight: 700; white-space: nowrap; }
.tabelle-box { overflow-x: auto; background: var(--karte); border: 2px solid var(--line); border-radius: 22px; -webkit-overflow-scrolling: touch; }
.matrix { border-collapse: collapse; width: 100%; min-width: 640px; }
.matrix th, .matrix td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.matrix thead th { background: #FAF5EC; font: 800 18px var(--display); white-space: nowrap; }
.matrix thead th:first-child, .matrix th.video { text-align: left; }
.matrix thead a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.matrix thead img { width: 36px; height: 36px; border-radius: 50%; background: var(--sand); }
.matrix th.video { font: 700 15px var(--text); min-width: 190px; position: sticky; left: 0; z-index: 1; background: #FFFFFF; }
.matrix thead th:first-child { position: sticky; left: 0; z-index: 2; }
.matrix th.video a { color: inherit; text-decoration: none; }
.matrix tr.fachzeile th { text-align: left; font: 800 17px var(--display); background: color-mix(in srgb, var(--f) 13%, #FFFFFF); }
.matrix tr.fachzeile th span { position: sticky; left: 10px; }
.zelle { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; border-radius: 12px; padding: 4px 10px; min-width: 104px;
  font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.zelle .sterne { font-size: 14px; }
.zelle.bestanden { background: var(--gold-soft); }
.zelle.gesehen { background: var(--blau-soft); }
.zelle.angefangen { background: var(--sand); }
.zelle.leer { color: var(--leer); }
.zahlen.fuenf { grid-template-columns: repeat(5, 1fr); margin-top: 16px; }
.fachstaende { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.fachstand { --f: var(--outline); background: var(--karte); border: 2px solid color-mix(in srgb, var(--f) 45%, #FFFFFF); border-radius: 18px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px; }
.fachstand b { font: 800 19px var(--display); }
.fachstand small { display: block; color: var(--ink-soft); font-weight: 700; font-size: 13px; margin-bottom: 3px; }
.testliste { display: flex; flex-direction: column; gap: 12px; }
.testzeile { background: var(--karte); border: 2px solid var(--line); border-radius: 20px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.testzeile > small { color: var(--ink-soft); font-weight: 700; }
.tz-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tz-kopf a { font: 800 20px var(--display); color: inherit; text-decoration: none; margin-right: auto; }
.tz-werte { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; font-weight: 700; color: var(--ink-soft); font-size: 14.5px; }
small.alles-ok { color: var(--gruen); font-weight: 700; }
details summary { cursor: pointer; font-weight: 700; padding: 6px 0; min-height: 36px; }
details.fehler summary { color: var(--rot); }
details.fehler ul { margin: 4px 0 4px; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
details.fehler li { font-size: 15px; }
details.texte summary { color: var(--blau); }
.antwort { background: #FAF5EC; border-radius: 14px; padding: 10px 12px; margin-top: 6px; }
.antwort p { margin: 4px 0; white-space: pre-wrap; }
.antwort small { color: var(--ink-soft); font-weight: 700; }
details.noch { margin-top: 18px; }
details.noch summary { font: 800 22px var(--display); }

/* ---------- iPad hochkant und kleiner ---------- */
@media (max-width: 1060px) {
  .video-seite { grid-template-columns: 1fr; }
  .personen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zahlen.fuenf { grid-template-columns: repeat(3, 1fr); }
}
/* iPhone: dieselben Seiten, kompakter und einspaltig */
@media (max-width: 700px) {
  body { font-size: 16px; }
  main { padding: 12px 16px calc(100px + var(--unten)); }
  .kopf { padding-left: 16px; padding-right: 16px; }
  .kopf .logo { width: 38px; height: 38px; }
  .kopf h1 { font-size: 22px; }
  .ich-knopf { padding: 3px 12px 3px 3px; font-size: 16px; gap: 8px; }
  .ich-knopf img { width: 34px; height: 34px; }
  .ich-knopf small, .ich-knopf br { display: none; }
  .reiter { padding: 4px 4px calc(4px + var(--unten)); gap: 2px; }
  .reiter a { font-size: 12px; padding: 4px 2px; }
  .reiter a span { font-size: 23px; }
  .abschnitt { margin: 24px 0 12px; }
  .abschnitt h2 { font-size: 23px; }
  .wer { gap: 18px; }
  .wer header img { width: 56px; height: 56px; }
  .personen { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .person { width: calc((100% - 20px) / 3); padding: 10px 4px; border-radius: 20px; gap: 4px; }
  .person img { height: 150px; }
  .person b { font-size: 20px; }
  .person small { font-size: 11px; min-height: 0; }
  .hallo { padding: 14px; grid-template-columns: auto 1fr; gap: 4px 12px; border-radius: 22px; }
  .hallo .kopfbild { width: 62px; height: 62px; border-width: 3px; }
  .hallo h2 { font-size: 25px; }
  .hallo p { font-size: 14px; }
  .zahlen, .zahlen.fuenf { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .zahl { flex-direction: column; text-align: center; gap: 2px; padding: 8px 4px; border-radius: 14px; }
  .zahl span { font-size: 20px; }
  .zahl b { font-size: 19px; }
  .zahl small { font-size: 11.5px; line-height: 1.15; display: block; }
  .suche input { font-size: 16px; padding: 11px 16px 11px 46px; }
  .raster { grid-template-columns: 1fr; gap: 14px; }
  .reihe { grid-auto-columns: 78%; gap: 12px; }
  .faecher { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fach { min-height: 120px; padding: 12px; border-radius: 20px; }
  .fach .icon { font-size: 34px; }
  .fach b { font-size: 19px; }
  .fach small { font-size: 12.5px; }
  .band { padding: 14px; gap: 12px; }
  .band .icon { font-size: 40px; }
  .band h2 { font-size: 27px; }
  .band .rechts { margin-left: 0; }
  .video-info h2 { font-size: 26px; }
  .spieler { border-radius: 14px; margin: 0 -6px; }
  .test-kopf h2 { font-size: 26px; }
  .aufgabe { padding: 14px; border-radius: 20px; }
  .aufgabe h3 { font-size: 20px; }
  .aufgabe .anl { margin-left: 0; }
  .opt { width: 100%; }
  .beschriften .svg { position: sticky; top: 64px; z-index: 3; padding: 4px; }
  .beschriften .svg svg { max-height: 30vh; }
  .felder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .feld { font-size: 15px; min-height: 46px; padding: 4px 8px 4px 4px; gap: 6px; }
  .feld .bu { width: 30px; height: 30px; font-size: 15px; }
  .wort { font-size: 16px; padding: 6px 12px; min-height: 40px; }
  .entscheiden.bilder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .eintrag { padding: 8px; border-radius: 14px; }
  .wahl button { font-size: 13.5px; padding: 6px 8px; min-height: 40px; }
  .wahl.kurz button { flex-basis: 30px; font-size: 16px; }
  .stifte { top: 62px; }
  .satz .stext { font-size: 16px; }
  .kreuz { width: 38px; height: 38px; }
  .tabelle-aufgabe th, .tabelle-aufgabe td { padding: 4px 4px; }
  .tabelle-aufgabe thead th { font-size: 12.5px; }
  .tabelle-aufgabe tbody th { font-size: 13.5px; }
  .zelle-fehler { min-width: 40px; font-size: 18px; padding: 0 4px; }
  .luecke { font-size: 16px; }
  .luecke .l { min-width: 96px; }
  .stand-leiste { bottom: calc(70px + var(--unten)); padding: 8px 10px 8px 16px; gap: 10px; }
  .stand-leiste b { font-size: 16px; }
  .stand-leiste span { font-size: 13px; }
  .kinder { grid-template-columns: 1fr; }
  .kk-zahlen { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .kk-zahlen span { font-size: 10.5px; padding: 5px 2px; }
  .kk-zahlen b { font-size: 18px; }
  .matrix { min-width: 0; }
  .matrix th.video { min-width: 130px; font-size: 13.5px; }
  .matrix thead th { font-size: 14px; }
  .matrix thead img { width: 28px; height: 28px; }
  .zelle { min-width: 84px; font-size: 12px; padding: 3px 6px; }
  .verlauf .eintrag { grid-template-columns: 32px 1fr; gap: 4px 10px; }
  .verlauf .eintrag img { width: 32px; height: 32px; }
  .verlauf .eintrag small { grid-column: 2; white-space: normal; font-size: 12.5px; }
  .wuensche { grid-template-columns: 1fr; }
  .wunsch-start h2 { font-size: 25px; }
  .faecher.klein { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .danke img { height: 190px; }
  .danke h2 { font-size: 30px; }
  .schritt { grid-template-columns: 44px 1fr; }
  .schritt .nr { width: 42px; height: 42px; font-size: 19px; }
  .schritt::before { left: 19px; top: 42px; }
  .schritt .zeile { grid-template-columns: 1fr; }
  .wunsch-start { grid-template-columns: 1fr; }
  .wunsch-start img { height: 110px; }
  .serien { grid-template-columns: 1fr; }
  .banner-paar { grid-template-columns: 1fr; }
  .idee-start { padding: 14px; }
  .idee-start .gross-icon { font-size: 44px; }
  .idee-start h2 { font-size: 22px; }
  .kopf-innen { gap: 8px; }
  .kopf h1 { font-size: 19px; }
  .idee-knopf { padding: 4px 8px; min-height: 40px; }
  .idee-knopf small { display: none; }
  .faecher.klein .fach { padding: 10px 8px; gap: 6px; }
  .faecher.klein .fach .icon { font-size: 24px; }
  .faecher.klein .fach b { font-size: 15px; min-width: 0; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
  .umschalter a { font-size: 17px; padding: 10px 6px; gap: 4px 8px; }
  .umschalter a span { font-size: 22px; }
  .umschalter a small { font-size: 12px; }
  .erledigt-meldung { grid-template-columns: 1fr; padding: 14px; gap: 8px; }
  .haken-gross { width: 48px; height: 48px; font-size: 28px; }
  .erledigt-meldung h3 { font-size: 21px; }
  .admin-felder { grid-template-columns: 1fr; }
  .reiter .neu-zahl { left: calc(50% + 6px); min-width: 20px; height: 20px; font-size: 11.5px; line-height: 20px; }
}
@media (max-width: 1060px) and (min-width: 701px) {
  .banner-paar { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation-duration: .01s !important; } }

/* ---------- Drucken: nur das Arbeitsblatt, eine Seite pro Blatt ---------- */
#druck { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  body { background: #FFFFFF; }
  body > *:not(#druck) { display: none !important; }
  #druck { display: block; }
  #druck img { width: 210mm; height: 296mm; object-fit: contain; page-break-after: always; break-after: page; }
  #druck img:last-child { page-break-after: auto; break-after: auto; }
}

/* ---------- Online: Anmelden, Einrichten, Familie und Konto, Admin-Familien ---------- */
.anmelden, .einrichten-seite, .verwaltung { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: calc(env(safe-area-inset-top, 0px) + 28px) 18px calc(var(--unten) + 28px); }
.anmelden { justify-content: center; }
.anmelden header, .einrichten-kopf { display: flex; align-items: center; gap: 14px; }
.anmelden header img, .einrichten-kopf img { width: 76px; height: 76px; border-radius: 50%; }
.anmelden header h1 { font-size: clamp(36px, 6vw, 52px); }
.anmelden header h1 b { color: var(--orange); font-weight: 800; }
.anmelde-karte { width: min(100%, 520px); background: var(--karte); border: 2px solid var(--line); border-radius: 26px; padding: 22px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 40px -30px rgba(27,43,72,.5); }
.anmelde-karte h2 { font-size: 26px; margin-bottom: 6px; }
.anmelde-karte p { margin: 0; }
.einladung-ok h2 { color: var(--gruen); }
.anmelde-form { display: flex; flex-direction: column; gap: 12px; }
.feld { width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 18px; background: #FFFFFF; outline: none; min-height: 50px; }
.feld:focus { border-color: var(--ich); }
.feld.code, .feld.pin { font-size: 28px; letter-spacing: .25em; text-align: center; font-weight: 700; }
.formfehler { color: var(--rot); font-weight: 700; margin: 0; }
.formfehler:empty { display: none; }
.link-knopf { background: none; border: 0; color: var(--blau); font-weight: 700; text-decoration: underline; padding: 6px; align-self: center; cursor: pointer; }
.oder { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-weight: 700; }
.oder::before, .oder::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.knopf.google { justify-content: center; }
.knopf.google b { font: 800 20px var(--text); color: var(--blau); }
.recht { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-size: 14px; }
.recht a { color: var(--ink-soft); font-weight: 700; }
.einrichten-kopf { width: min(100%, 720px); flex-wrap: wrap; }
.einrichten-kopf h1 { font-size: clamp(26px, 4vw, 36px); }
.einrichten-kopf p { margin: 2px 0 0; color: var(--ink-soft); }
.schritte { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; width: 100%; flex-wrap: wrap; }
.schritte li { flex: 1; min-width: 150px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--sand);
  font-weight: 700; color: var(--ink-soft); }
.schritte li i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #FFFFFF; flex: none; }
.schritte li.an { background: var(--orange-soft); color: var(--ink); }
.schritte li.fertig i { background: var(--gruen); color: #FFFFFF; }
.einrichten-seite .kasten, .verwaltung .kasten { width: min(100%, 720px); }
.einrichten-seite .kasten h2, .verwaltung .kasten h2 { font-size: 24px; }
.einrichten-seite .kasten p, .verwaltung .kasten p { margin: 0; }
.haken-zeile { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; cursor: pointer; }
.haken-zeile input { width: 26px; height: 26px; flex: none; margin-top: 2px; accent-color: var(--orange); }
.zwei-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.leise { color: var(--ink-soft); font-size: 14px; margin: 0; }
.profilliste { display: flex; flex-direction: column; gap: 10px; }
.profilzeile { display: flex; align-items: center; gap: 12px; border: 2px solid color-mix(in srgb, var(--p) 40%, var(--line)); border-radius: 18px;
  padding: 8px 12px; background: color-mix(in srgb, var(--p) 6%, #FFFFFF); }
.profilzeile img { width: 54px; height: 54px; flex: none; }
.profilzeile div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.profilzeile b { font: 800 20px var(--display); }
.profilzeile small { color: var(--ink-soft); font-weight: 700; }
.profilzeile .knopf, .kasten .profilzeile .knopf { width: auto; }
.profilzeile .gross-icon { font-size: 32px; width: 54px; flex: none; }
.profilzeile b { overflow-wrap: anywhere; }
.fenster .buehne.formular { background: var(--bg); }
.profil-form, .pin-form { width: min(100%, 560px); margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.profil-form .vorschau { width: 110px; height: 110px; align-self: center; margin: 0; box-shadow: none; background: transparent; }
.tierwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.tierwahl button { font-size: 30px; min-height: 52px; border: 2px solid var(--line); border-radius: 14px; background: #FFFFFF; }
.tierwahl button.an { border-color: var(--ink); background: var(--orange-soft); }
.farbwahl { display: flex; gap: 8px; flex-wrap: wrap; }
.farbwahl button { width: 44px; height: 44px; border-radius: 50%; background: var(--f); border: 4px solid #FFFFFF; box-shadow: 0 0 0 2px var(--line); }
.farbwahl button.an { box-shadow: 0 0 0 3px var(--ink); }
.knopfreihe { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.knopfreihe.warnung p { flex-basis: 100%; margin: 0; font-weight: 700; color: var(--rot); }
.kasten .knopfreihe .knopf { width: auto; }
.knopf.rot { border-color: var(--rot); color: var(--rot); }
.kasten.gefahr { border-color: var(--rot-soft); }
.verwaltung-kopf { width: min(100%, 720px); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.verwaltung-kopf h1 { font-size: clamp(28px, 4vw, 40px); }
.verwaltung-kopf p { margin: 0; color: var(--ink-soft); }
.verwaltung-kopf .zurueck { text-decoration: none; }
.wer-familie { color: var(--ink-soft); font-weight: 700; text-decoration: none; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--karte); }
.linkzeile { display: flex; gap: 8px; align-items: center; }
.linkzeile .feld { font-size: 14px; min-height: 42px; padding: 8px 10px; }
.einladungen, .familienliste { display: flex; flex-direction: column; gap: 8px; }
.einladung-zeile, .familie-zeile { background: var(--karte); border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.einladung-zeile.neu { border-color: var(--gruen); background: var(--gruen-soft); }
.einladung-zeile .oben, .familie-zeile .oben { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.einladung-zeile small, .familie-zeile small { color: var(--ink-soft); font-weight: 700; }
.wunsch .leise { margin-top: 4px; }
.fenster .buehne .profil-form img.vorschau { width: 110px; height: 110px; margin: 0 auto; box-shadow: none; background: transparent; }
.zahlen.vier { grid-template-columns: repeat(4, 1fr); margin-top: 16px; }
@media (min-width: 700px) {
  .personen { display: flex; flex-wrap: wrap; justify-content: center; }
  .person { flex: 0 1 220px; }
}
.code-kasten { background: var(--gruen-soft); border: 2px dashed var(--gruen); border-radius: 16px; padding: 12px 14px; margin: 10px 0;
  display: flex; flex-direction: column; gap: 8px; }
.code-kasten p { margin: 0; }
.code-gross { font: 800 30px var(--display); letter-spacing: 3px; }
.code-mittel { font: 800 20px var(--display); letter-spacing: 2px; }
.eltern-zeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.eltern-zeile > span { flex: 1; font-weight: 700; overflow-wrap: anywhere; }
.eltern-zeile > div { flex-basis: 100%; }
.eltern-zeile .knopf { width: auto; }
.feldzeile .leise { margin-top: 2px; }
.verbinden { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 24px; align-items: center; width: min(100%, 860px); margin: 0 auto; }
.verbinden .qr svg { display: block; width: 100%; height: auto; border-radius: 16px; border: 2px solid var(--line); }
.verbinden-text { display: flex; flex-direction: column; gap: 10px; }
.verbinden-text p { margin: 0; }
.verbinden-text .knopf { width: auto; align-self: flex-start; }
.neu-verbunden .verbunden { font-weight: 800; color: var(--gruen); margin: 2px 0; }
.home-hinweis { width: min(100%, 560px); background: var(--karte); border: 2px dashed var(--line); border-radius: 18px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px; margin: 6px auto 0; }
.home-hinweis p { margin: 0; color: var(--ink-soft); }
.home-hinweis .knopf { width: auto; }
@media (max-width: 640px) {
  .verbinden { grid-template-columns: 1fr; gap: 14px; }
  .verbinden .qr { width: min(100%, 280px); margin: 0 auto; }
}
@media (max-width: 520px) {
  .linkzeile { flex-wrap: wrap; }
  .linkzeile .feld { flex: 1 1 100%; }
}
@media (max-width: 700px) { .zahlen.vier { grid-template-columns: repeat(2, 1fr); } }
