/* Alle Welten, ein Stylesheet, eine Schrift (Inter). Alles, was sich unterscheidet, steht in den Variablen der Welt. */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --schrift: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --radius-klein: 12px;
  --breite: 860px;
}

/* ---------- Welt: Konto (hell, ruhig) ---------- */
.welt-konto, .welt-papa {
  --bg: #faf5ef;
  --bg2: #f3e9e0;
  --flaeche: #ffffff;
  --flaeche2: #fbf6f1;
  --rand: #eadfd4;
  --text: #2b1f2e;
  --leise: #7d6f7c;
  --akzent: #b23c69;
  --akzent-dunkel: #8f2c52;
  --akzent-text: #ffffff;
  --akzent-zart: #fbe9f0;
  --zweit: #c39a4e;
  --gut: #21875c;
  --gut-zart: #e4f4ec;
  --schlecht: #c24238;
  --schlecht-zart: #fbeae8;
  --hinweis-zart: #fdf3dc;
  --schatten: 0 1px 2px rgba(70, 40, 60, .06), 0 8px 28px rgba(70, 40, 60, .07);
  --schrift-kopf: var(--schrift);
  --kopf-gewicht: 750;
  --kopf-abstand: -0.025em;
  --konfetti: #b23c69, #c39a4e, #f2c6d6, #21875c, #2b1f2e;
  --kurve1: #b23c69;
  --kurve2: #2f7f9e;
}
/* Eltern und alle Seiten vor der Anmeldung: die Marke (Violett wie Logo und Startseite), kuehles Weiss statt Beige */
.welt-papa {
  --bg: #f6f6fa;
  --bg2: #ecebf7;
  --flaeche2: #f6f6fa;
  --rand: #e4e3ee;
  --text: #16161d;
  --leise: #5d5d6b;
  --akzent: #5b4bdb;
  --akzent-dunkel: #4536b8;
  --akzent-zart: #efedfd;
  --zweit: #5b4bdb;
  --kurve1: #5b4bdb;
  --kurve2: #21875c;
  --konfetti: #5b4bdb, #ff8fb8, #5fd3b0, #ffc94d, #16161d;
}

/* ---------- Welt: Arena (dunkel, Spieloptik) ---------- */
.welt-arena {
  --bg: #0c1030;
  --bg2: #151a4a;
  --flaeche: #1b2158;
  --flaeche2: #232a6b;
  --rand: #343d8f;
  --text: #f3f5ff;
  --leise: #a7b0e3;
  --akzent: #ffc83d;
  --akzent-dunkel: #d99a00;
  --akzent-text: #1a1440;
  --akzent-zart: rgba(255, 200, 61, .14);
  --zweit: #38d4ff;
  --gut: #45e08c;
  --gut-zart: rgba(69, 224, 140, .14);
  --schlecht: #ff6b81;
  --schlecht-zart: rgba(255, 107, 129, .14);
  --hinweis-zart: rgba(56, 212, 255, .13);
  --schatten: 0 6px 0 rgba(5, 8, 30, .55);
  --schrift-kopf: var(--schrift);
  --kopf-gewicht: 800;
  --kopf-abstand: -0.025em;
  --konfetti: #ffc83d, #38d4ff, #ff6b81, #45e08c, #b98cff;
  --kurve1: #ffc83d;
  --kurve2: #38d4ff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}
.welt-arena { background: radial-gradient(1200px 600px at 80% -10%, #2a2f86 0%, transparent 60%), radial-gradient(900px 500px at -10% 10%, #3a1f6e 0%, transparent 55%), var(--bg); background-attachment: fixed; }
.welt-konto, .welt-papa { background: linear-gradient(180deg, var(--bg2) 0, var(--bg) 320px); background-attachment: fixed; }

h1, h2, h3 { font-family: var(--schrift-kopf); font-weight: var(--kopf-gewicht); letter-spacing: var(--kopf-abstand); line-height: 1.15; margin: 0 0 .4em; overflow-wrap: break-word; hyphens: auto; min-width: 0; }
h1 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.55rem); }
h3 { font-size: 1.05rem; margin-top: 1.4em; }
p { margin: 0 0 .8em; }
a { color: inherit; }
small { font-size: .82em; color: var(--leise); }
.leise { color: var(--leise); font-weight: 400; }
.mitte { text-align: center; }
.schmal { max-width: 560px; margin-inline: auto; }
[hidden] { display: none !important; }

.haupt { max-width: var(--breite); margin: 0 auto; padding: 18px 16px 90px; }

/* ---------- Kopfzeile ---------- */
.kopf { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rand); }
.kopf-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--schrift-kopf); font-size: 1.25rem; }
.logo-zeichen { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--akzent); color: var(--akzent-text); font-family: var(--schrift); font-weight: 800; font-size: 1.15rem; }
.welt-arena .logo-zeichen { box-shadow: 0 3px 0 var(--akzent-dunkel); }
.kopf-rechts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.kopf-ab { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--flaeche); border: 1px solid var(--rand); text-decoration: none; font-size: .9rem; line-height: 1.2; }
.chip-knopf { cursor: pointer; font: inherit; color: inherit; }
.chip-knopf:hover { border-color: var(--akzent); }
.chip-text { display: grid; gap: 3px; min-width: 74px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips form { margin: 0; }
.link { background: none; border: 0; padding: 4px 6px; font: inherit; color: var(--leise); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--text); }
.kopf-ab .link { text-decoration: none; font-size: .9rem; }
.kopf-ab .link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.zeichen { flex: none; display: block; }

.muenze { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe89a, #f0b429 60%, #c78a0a); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); flex: none; }
.muenze.gross { width: 38px; height: 38px; }
.xpbalken, .balken { display: block; height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--text) 14%, transparent); overflow: hidden; }
.xpbalken i, .balken i { display: block; height: 100%; border-radius: 99px; background: var(--zweit); transition: width .5s ease; }
.balken i { background: var(--akzent); }
.rang-abz { width: 22px; height: 24px; flex: none; clip-path: polygon(50% 0, 100% 22%, 100% 68%, 50% 100%, 0 68%, 0 22%); background: #c98a4b; }
.rang-abz.gross { width: 44px; height: 48px; }
.rang-1 { background: linear-gradient(160deg, #eef2f7, #9aa7b8); }
.rang-2 { background: linear-gradient(160deg, #ffe58a, #e3a008); }
.rang-3 { background: linear-gradient(160deg, #c7f5ee, #3fb5a3); }
.rang-4 { background: linear-gradient(160deg, #b8e4ff, #2f8fff); }
.rang-5 { background: linear-gradient(160deg, #e6c4ff, #9b4dff); }
.rang-6 { background: linear-gradient(160deg, #ffd1dc, #ff3d71 55%, #ffc83d); }
.flamme { width: 30px; height: 38px; flex: none; background: color-mix(in srgb, var(--text) 22%, transparent); clip-path: path("M15 0 C17 8 27 13 27 24 A12 12 0 0 1 3 24 C3 18 7 15 9 10 C11 14 12 15 13 15 C15 11 14 5 15 0 Z"); }
.flamme.an { background: linear-gradient(180deg, #ffc83d, #ff6b3d); }

/* ---------- Knoepfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 14px; border: 0; background: var(--akzent); color: var(--akzent-text); font: 600 1rem var(--schrift); text-decoration: none; cursor: pointer; transition: transform .08s ease, filter .15s ease; }
.knopf:hover { filter: brightness(1.06); }
.knopf:active { transform: translateY(2px); }
.knopf:disabled { opacity: .6; cursor: default; }
.knopf-gross { padding: 14px 26px; font-size: 1.1rem; border-radius: 16px; }
.knopf-klein { padding: 6px 12px; font-size: .88rem; border-radius: 10px; }
.knopf-leise { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--rand); }
.knopf-leise:hover { box-shadow: inset 0 0 0 2px var(--akzent); }
.pfeil { display: inline-block; transition: transform .2s; }
.knopf:hover .pfeil { transform: translateX(4px); }
.welt-arena .knopf { font-weight: 800; letter-spacing: .03em; text-transform: uppercase; box-shadow: 0 5px 0 var(--akzent-dunkel); }
.welt-arena .knopf:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--akzent-dunkel); }
.welt-arena .knopf-leise { box-shadow: inset 0 0 0 2px var(--rand), 0 5px 0 rgba(5, 8, 30, .5); background: var(--flaeche2); }
:focus-visible { outline: 3px solid var(--zweit); outline-offset: 2px; }

/* ---------- Startseite ---------- */
.held { display: grid; gap: 20px; padding: 26px 22px; border-radius: 26px; background: var(--flaeche); border: 1px solid var(--rand); box-shadow: var(--schatten); margin-bottom: 26px; }
.held-gruss { color: var(--leise); margin-bottom: 4px; }
.held h1 { margin-bottom: 18px; max-width: 18ch; }
.held form { margin: 0; }
.held-werte { display: flex; flex-wrap: wrap; gap: 12px; }
.wert { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--flaeche2); border: 1px solid var(--rand); text-decoration: none; min-width: 170px; flex: 1; }
.wert b { display: block; font-size: 1.15rem; line-height: 1.2; font-family: var(--schrift-kopf); font-weight: var(--kopf-gewicht); }
.wert small { display: block; }
.wert .xpbalken { margin: 5px 0 3px; width: 130px; }
.welt-arena .held { background: linear-gradient(135deg, #252d7a, #1b2158 60%); border: 2px solid #4450b8; }
@media (min-width: 760px) { .held { grid-template-columns: 1.3fr 1fr; align-items: center; padding: 34px; } .held-werte { flex-direction: column; } }

.block { margin: 0 0 30px; }
.block > h2, .block summary h2 { margin-bottom: 12px; }
.vorarbeiten summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.vorarbeiten summary::-webkit-details-marker { display: none; }
.vorarbeiten summary::before { content: "+"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--flaeche); border: 1px solid var(--rand); font-weight: 700; }
.vorarbeiten[open] summary::before { content: "−"; }
.vorarbeiten summary h2 { margin: 0; }
.vorarbeiten .kacheln { margin-top: 12px; }

.auftraege { display: grid; gap: 10px; }
@media (min-width: 700px) { .auftraege { grid-template-columns: repeat(3, 1fr); } }
.auftrag { padding: 14px; border-radius: 16px; background: var(--flaeche); border: 1px solid var(--rand); }
.auftrag-kopf { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 8px; font-size: .95rem; }
.auftrag-kopf b { color: var(--zweit); white-space: nowrap; }
.auftrag.fertig { border-color: var(--gut); }
.auftrag.fertig .balken i { background: var(--gut); }
.auftrag.fertig small { color: var(--gut); font-weight: 600; }

.kacheln { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .kacheln { grid-template-columns: 1fr 1fr; } }
.kachel { display: grid; grid-template-columns: auto minmax(0, 1fr); overflow-wrap: break-word; hyphens: auto; gap: 4px 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--flaeche); border: 1px solid var(--rand); text-decoration: none; transition: transform .12s ease, border-color .15s; }
.kachel:hover { transform: translateY(-2px); border-color: var(--akzent); }
.kachel-nr { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--akzent-zart); color: var(--akzent); font-family: var(--schrift-kopf); font-size: 1.3rem; grid-row: span 2; }
.kachel-nr.gross { width: 62px; height: 62px; font-size: 2rem; border-radius: 18px; }
.kachel-text b { display: block; line-height: 1.25; }
.kachel-text small { display: block; }
.kachel-stand { grid-column: 2; display: grid; gap: 4px; }
.kachel.kommt { opacity: .55; }
.kachel.kommt .kachel-nr { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--leise); }
.kachel.fertig { border-color: var(--gut); }
.kachel.fertig .kachel-nr { background: var(--gut-zart); color: var(--gut); }
.kachel.fertig .balken i { background: var(--gut); }
.welt-arena .kachel { border-width: 2px; box-shadow: var(--schatten); }

.pfad { font-size: .88rem; color: var(--leise); margin-bottom: 14px; }
.pfad a { color: var(--leise); }
.meldung { padding: 12px 16px; border-radius: 14px; background: var(--hinweis-zart); border: 1px solid var(--rand); margin-bottom: 16px; }

/* ---------- Lernbereich ---------- */
.bereich-kopf { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.bereich-kopf > div { min-width: 0; }
.bereich-kopf h1 { margin: 0 0 2px; }
.bereich-kopf p { margin: 0; }
.einleitung { font-size: 1.08rem; max-width: 62ch; margin-bottom: 22px; }
.weg-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
.weg-liste::before { content: ""; position: absolute; left: 21px; top: 20px; bottom: 20px; width: 3px; background: var(--rand); border-radius: 3px; }
.station-zeile { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; position: relative; }
/* Auffrischen steht in der Karte, nicht daneben: sonst sind gemeisterte Karten schmaler als die anderen */
@media (min-width: 561px) {
  .station-extra { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
  .station-zeile:has(.station-extra) .station-karte { padding-right: 140px; }
}
.knoten { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--flaeche); border: 3px solid var(--rand); font-weight: 700; z-index: 1; font-family: var(--schrift-kopf); }
.station-zeile.laeuft .knoten { border-color: var(--akzent); color: var(--akzent); }
.station-zeile.gemeistert .knoten { background: var(--gut); border-color: var(--gut); color: #fff; }
.station-zeile.boss .knoten { border-radius: 14px; }
.station-zeile.boss.laeuft .knoten { background: var(--akzent); color: var(--akzent-text); }
.station-karte { display: grid; gap: 3px; padding: 14px 16px; border-radius: var(--radius); background: var(--flaeche); border: 1px solid var(--rand); text-decoration: none; transition: transform .12s, border-color .15s; }
a.station-karte:hover { transform: translateX(3px); border-color: var(--akzent); }
.station-karte b { font-size: 1.05rem; }
.station-karte form { margin: 6px 0 0; }
.station-zeile.zu .station-karte { opacity: .6; }
.station-extra { margin: 0; }
.marke { display: inline-block; justify-self: start; margin-top: 5px; padding: 2px 10px; border-radius: 99px; background: color-mix(in srgb, var(--text) 9%, transparent); font-size: .8rem; color: var(--leise); }
.marke-ok { background: var(--gut-zart); color: var(--gut); font-weight: 600; }
.marke-warn { background: var(--schlecht-zart); color: var(--schlecht); font-weight: 600; margin-top: 0; }
.pips { display: inline-flex; gap: 5px; margin-top: 6px; }
.pips i { width: 16px; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--text) 16%, transparent); transition: background .25s, transform .25s; }
.pips i.an { background: var(--gut); }
.pips.gross i { width: 30px; height: 12px; border-radius: 6px; }
.pips.gross i.an { transform: scaleY(1.15); }
.pips.reset { animation: wackel .4s; }

/* ---------- Lernseite ---------- */
.skill-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.skill-kopf h1 { margin: 0; }
.schritte { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px 10px; scrollbar-width: none; }
.schritte::-webkit-scrollbar { display: none; }
.schritt { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 7px; border-radius: 99px; border: 1px solid var(--rand); background: var(--flaeche); color: var(--leise); font: 500 .9rem var(--schrift); cursor: pointer; white-space: nowrap; }
.schritt span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--text) 10%, transparent); font-size: .8rem; font-weight: 700; }
.schritt.vorbei span { background: var(--gut-zart); color: var(--gut); }
.schritt.aktiv { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }
.schritt.aktiv span { background: rgba(255, 255, 255, .28); color: inherit; }
.welt-arena .schritt.aktiv span { background: rgba(0, 0, 0, .16); }

.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 18px; box-shadow: var(--schatten); }
.karte-gross { padding: 22px 20px; border-radius: 24px; }
@media (min-width: 700px) { .karte-gross { padding: 32px 34px; } }
.welt-arena .karte { border-width: 2px; }
.ueberzeile { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--akzent); font-weight: 700; margin-bottom: 8px; }
.welt-arena .ueberzeile { color: var(--zweit); }
.wozu { font-size: clamp(1.15rem, 3vw, 1.4rem); line-height: 1.45; }
.ziel { padding: 12px 14px; border-radius: 14px; background: var(--akzent-zart); margin: 16px 0 0; }
.station-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.station-hinweis { color: var(--leise); font-size: .95rem; margin-bottom: 12px; }
.karten-text { font-size: 1.06rem; }
.karten-text p:last-child { margin-bottom: 0; }
.karten-text ol, .karten-text ul { padding-left: 1.3em; margin: 0 0 .8em; }
.karten-text li { margin-bottom: .35em; }
.formel { margin: 14px 0; padding: 12px; border-radius: 14px; background: var(--flaeche2); overflow-x: auto; font-size: 1.12rem; }
.formel .katex-display { margin: 0; }
.formel-reihe { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 1.5em; }
.formel-reihe > span { white-space: nowrap; }
.katex { font-size: 1.12em; }

.frage { font-size: clamp(1.1rem, 2.8vw, 1.3rem); line-height: 1.5; margin-bottom: 14px; }
.bsp { list-style: none; counter-reset: bsp; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.bsp li { counter-increment: bsp; display: grid; gap: 6px; padding: 14px 14px 14px 52px; border-radius: 16px; background: var(--flaeche2); position: relative; }
.bsp li::before { content: counter(bsp); position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--akzent); color: var(--akzent-text); font-weight: 700; font-size: .85rem; }
.bsp li.neu { animation: rein .35s ease; }
.bsp-warum { font-size: .95rem; color: var(--leise); }
.bsp-warum b { color: var(--akzent); }
.welt-arena .bsp-warum b { color: var(--zweit); }

/* ---------- Aufgabenspieler ---------- */
.spieler { min-height: 220px; transition: opacity .15s; }
.spieler.laedt { opacity: .5; }
.spieler-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: .9rem; color: var(--leise); }
.spieler-kopf .balken { flex: 1; }
.aufgabe-bild { margin: 0 0 14px; }
.felder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 6px 0 4px; }
.feld { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
/* Eingabe, Vorzeichen-Taste und Einheit bleiben zusammen: Das Feld gibt nach, bevor die Taste umbricht. */
.feld-gruppe { display: flex; align-items: center; gap: 8px; flex: 1 1 15em; min-width: min(100%, 13em); max-width: 100%; }
.feld-gruppe .eingabe:not(.breit) { flex: 0 1 9.5em; min-width: 4.5em; }
.feld-gruppe .eingabe.breit { flex: 1 1 auto; min-width: 0; }
.feld-gruppe .nach { flex: 0 1 auto; min-width: 0; }
.feld .vor { font-weight: 600; min-width: 4.2em; }
.feld .nach { color: var(--leise); font-weight: 500; }
.feld-vor-zeile { font-weight: 600; }
.eingabe { width: 9.5em; max-width: 100%; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--rand); background: var(--flaeche2); color: var(--text); font: 600 1.25rem var(--schrift); font-variant-numeric: tabular-nums; }
.eingabe.breit { width: min(100%, 20em); }
.eingabe:focus { outline: none; border-color: var(--akzent); }
.eingabe.richtig { border-color: var(--gut); background: var(--gut-zart); }
.eingabe.falsch { border-color: var(--schlecht); background: var(--schlecht-zart); }
.vz-taste { min-width: 52px; height: 52px; padding: 0 10px; border-radius: 14px; border-width: 2px; font-size: 1.05rem; white-space: nowrap; }
.tasten { display: flex; gap: 6px; flex-wrap: wrap; }
.taste { padding: 6px 12px; border-radius: 10px; border: 1px solid var(--rand); background: var(--flaeche2); color: var(--text); font: 600 1rem var(--schrift); cursor: pointer; }
.auswahl { display: grid; gap: 8px; border-radius: 16px; }
@media (min-width: 640px) { .auswahl { grid-template-columns: 1fr 1fr; } }
.option { text-align: left; padding: 13px 16px; border-radius: 14px; border: 2px solid var(--rand); background: var(--flaeche2); color: var(--text); font: 500 1.02rem var(--schrift); cursor: pointer; transition: border-color .12s, transform .08s; }
.option:hover:not(:disabled) { border-color: var(--akzent); }
.option.gewaehlt { border-color: var(--akzent); background: var(--akzent-zart); }
.auswahl.richtig .option.gewaehlt { border-color: var(--gut); background: var(--gut-zart); }
.auswahl.falsch .option.gewaehlt { border-color: var(--schlecht); background: var(--schlecht-zart); }
.aufgabe-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.rueck { margin-top: 14px; border-radius: 14px; }
.rueck:not(:empty) { padding: 12px 14px; }
.rueck.gut { background: var(--gut-zart); color: var(--text); }
.rueck.gut > b { color: var(--gut); font-size: 1.1rem; }
.rueck.schlecht { background: var(--schlecht-zart); }
.rueck.schlecht > b { color: var(--schlecht); }
.rueck.hinweis { background: var(--hinweis-zart); }
.rueck.neutral { background: var(--flaeche2); }
.richtig-waere { margin: 8px 0 0; font-weight: 600; }
.tippbox { display: grid; gap: 8px; margin-top: 14px; }
.tipp { padding: 12px 14px; border-radius: 14px; background: var(--hinweis-zart); animation: rein .3s ease; }
.weg { margin-top: 10px; }
.weg summary { cursor: pointer; font-weight: 600; color: var(--leise); }
.weg ol { margin: 10px 0 0; padding-left: 1.3em; display: grid; gap: 8px; }
.aufgabe.ok { border-color: var(--gut); }
.aufgabe.nein { border-color: var(--schlecht); }
.wackel { animation: wackel .35s; }
@keyframes wackel { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes rein { from { opacity: 0; transform: translateY(8px); } }

.ergebnis { text-align: center; }
.ergebnis-zahl { font-family: var(--schrift-kopf); font-size: 2rem; margin: 6px 0; }
.ergebnis.gut { border-color: var(--gut); }

/* ---------- Dreisatz, Merktabelle ---------- */
.dreisatz { border-collapse: collapse; margin: 12px 0; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.dreisatz td { padding: 7px 10px; border-bottom: 1px dashed var(--rand); text-align: right; white-space: nowrap; }
.dreisatz tr:last-child td { border-bottom: 0; }
.dreisatz .ds-gleich { color: var(--leise); padding-inline: 2px; }
.dreisatz .ds-op { text-align: left; border-bottom: 0; position: relative; }
.dreisatz .ds-op span { position: relative; top: 1.05em; display: inline-block; padding: 1px 9px; border-radius: 99px; background: var(--akzent-zart); color: var(--akzent); font-size: .88rem; font-weight: 600; }
.welt-arena .dreisatz .ds-op span { color: var(--akzent); }
.umform { border-collapse: collapse; margin: 10px 0; font-size: 1.08rem; }
.umform td { padding: 6px 12px 6px 0; white-space: nowrap; }
.umform .um-op span { display: inline-block; padding: 1px 10px; border-radius: 99px; background: var(--akzent-zart); color: var(--akzent); font-size: .9rem; font-weight: 600; }
.waage { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; padding: 14px; border-radius: 16px; background: var(--flaeche2); }
.waage-schale { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; align-content: flex-end; min-height: 92px; padding: 10px 8px; border-bottom: 5px solid var(--text); border-radius: 0 0 14px 14px; }
.waage-mitte { font-size: 1.6rem; font-weight: 700; padding-bottom: 10px; }
.waage-x { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--akzent); color: var(--akzent-text); font-weight: 700; font-style: italic; }
.waage-1 { width: 15px; height: 15px; border-radius: 50%; background: var(--kurve2); }
.widget-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.wtab { border-collapse: collapse; margin: 8px 0; font-size: 1rem; font-variant-numeric: tabular-nums; }
.wtab th, .wtab td { padding: 7px 12px; border: 1px solid var(--rand); text-align: center; }
.wtab th { text-align: left; background: var(--flaeche2); font-weight: 600; }
.option .wtab { margin: 0; font-size: .95rem; }
.option .wtab th, .option .wtab td { padding: 5px 8px; }
.termin-hinweis { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 0 0 26px; border-radius: var(--radius); background: var(--flaeche); border: 1px solid var(--rand); text-decoration: none; transition: border-color .15s; }
.termin-hinweis:hover { border-color: var(--akzent); }
.termin-hinweis b, .termin-hinweis small { display: block; }
.termin-tage { display: grid; place-items: center; min-width: 58px; height: 58px; padding: 4px; border-radius: 16px; background: var(--akzent-zart); color: var(--akzent); line-height: 1; flex: none; }
.termin-tage b { font-family: var(--schrift-kopf); font-weight: var(--kopf-gewicht); font-size: 1.5rem; }
.termin-tage small { color: inherit; font-size: .7rem; }
.termin-karte { padding: 18px; border-radius: 22px; background: var(--flaeche); border: 1px solid var(--rand); display: grid; gap: 12px; }
.termin-karte .kind-kopf { margin: 0; }
.termin-karte h2, .termin-karte p { margin: 0; }
.termin-karte .station-fuss { margin-top: 0; }
.termin-karte form { margin: 0; }
.termin-form { display: grid; gap: 12px; justify-items: start; }
.wahl-liste { display: grid; gap: 6px; width: 100%; }
@media (min-width: 640px) { .wahl-liste { grid-template-columns: 1fr 1fr; } }
.wahl { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--rand); background: var(--flaeche); font-weight: 500; cursor: pointer; }
.wahl input { width: 20px; height: 20px; accent-color: var(--akzent); padding: 0; }
.wahl.kommt { opacity: .55; }
.wahl:has(input:checked) { border-color: var(--akzent); background: var(--akzent-zart); }
.rollbar { overflow-x: auto; margin: 10px 0; }
.vztab { border-collapse: collapse; font-size: .92em; white-space: nowrap; }
.vztab th, .vztab td { padding: 6px 10px; border: 1px solid var(--rand); text-align: center; }
.vztab th { font-weight: 500; background: var(--flaeche2); }
.vztab td:first-child { text-align: left; background: var(--flaeche2); }
.vztab .summe td { background: var(--akzent-zart); }
.vierfeld { border-collapse: collapse; white-space: nowrap; }
.vierfeld th, .vierfeld td { padding: 8px 14px; border: 1px solid var(--rand); text-align: center; min-width: 52px; }
.vierfeld th { font-weight: 600; background: var(--flaeche2); }
.vierfeld tr:last-child td, .vierfeld td:last-child { background: var(--flaeche2); }
.vierfeld td.gefragt { color: var(--kurve2); font-weight: 800; font-size: 1.1em; }
.bild-baum { max-width: 380px; background: var(--flaeche2); border-radius: 14px; }
.baum-ast { stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; }
.baum-p { font: 700 14px var(--schrift); fill: var(--text); paint-order: stroke; stroke: var(--flaeche2); stroke-width: 4px; stroke-linejoin: round; }
.baum-p.gefragt { fill: var(--kurve2); font-size: 17px; }
.baum-knoten { font: 800 17px var(--schrift); fill: var(--text); }
.baum-strich { stroke: var(--text); stroke-width: 1.6; }
.baum-wurzel { fill: var(--text); }
.merk { border-collapse: collapse; margin: 6px 0 12px; }
.merk td { padding: 6px 14px 6px 0; border-bottom: 1px solid var(--rand); }
.merk td:first-child { font-weight: 700; }

/* ---------- Zeichnungen ---------- */
.bild { display: block; width: 100%; max-width: 380px; height: auto; margin: 10px 0; }
.bild-koord { max-width: 340px; background: var(--flaeche2); border-radius: 14px; }
.bild-gitter { stroke: color-mix(in srgb, var(--text) 11%, transparent); stroke-width: 1; }
.bild-achse { stroke: var(--text); stroke-width: 1.6; }
.bild-zahl { font: 500 10.5px var(--schrift); fill: var(--leise); }
.bild-name { font: 600 12px var(--schrift); fill: var(--text); font-style: italic; }
.bild-kurve { fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.bild-kurve.k1 { stroke: var(--kurve1); }
.bild-kurve.k2 { stroke: var(--kurve2); }
.bild-punkt { fill: var(--kurve1); stroke: var(--flaeche); stroke-width: 2; }
.bild-zielpunkt { fill: var(--kurve2); stroke: var(--flaeche); stroke-width: 2; }
.bild-marke { font: 700 12px var(--schrift); fill: var(--text); }
.bild-dreieck { fill: none; stroke: var(--kurve2); stroke-width: 2; stroke-dasharray: 4 3; }
.gerade-sprung { fill: none; stroke: var(--kurve2); stroke-width: 2.2; stroke-dasharray: 5 4; }
.gerade-pfeil { fill: var(--kurve2); }
.gy-asymptote { stroke: var(--leise); stroke-width: 1.4; stroke-dasharray: 6 4; }
.bild-zahl.null { fill: var(--text); font-weight: 700; }
.streifen-ganz { fill: color-mix(in srgb, var(--text) 12%, transparent); }
.streifen-teil { fill: var(--akzent); }
.streifen-strich { stroke: var(--flaeche); stroke-width: 1; opacity: .5; }
.streifen-text { font: 600 12.5px var(--schrift); fill: var(--text); }
.streifen-text.oben { fill: var(--leise); }
.kreis-teil { stroke: var(--flaeche); stroke-width: 2; }
.kreis-teil.t1 { fill: var(--kurve1); }
.kreis-teil.t2 { fill: var(--kurve2); }
.kreis-teil.t3 { fill: #8b7fe8; }
.kreis-teil.t4 { fill: #5cc489; }
.kreis-text { font: 500 13px var(--schrift); fill: var(--text); }
.bild-saeulen { max-width: 380px; background: var(--flaeche2); border-radius: 14px; }
.saeule { fill: var(--kurve1); }
.saeule.t2, .saeule.t5 { fill: var(--kurve2); }
.saeule.t3, .saeule.t6 { fill: #8b7fe8; }
.saeule-name { font: 600 11.5px var(--schrift); fill: var(--text); }
.bild-geo { max-width: 380px; background: var(--flaeche2); border-radius: 14px; }
.geo-linie { stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.geo-linie.parallel { stroke: var(--kurve2); stroke-width: 2.4; }
.geo-dreieck { fill: color-mix(in srgb, var(--kurve2) 12%, transparent); stroke: var(--text); stroke-width: 2; stroke-linejoin: round; }
.geo-bogen { fill: color-mix(in srgb, var(--kurve1) 22%, transparent); stroke: var(--kurve1); stroke-width: 1.5; }
.geo-bogen.gefragt { fill: color-mix(in srgb, var(--kurve2) 26%, transparent); stroke: var(--kurve2); }
.geo-text { font: 700 14px var(--schrift); fill: var(--text); paint-order: stroke; stroke: var(--flaeche2); stroke-width: 4px; stroke-linejoin: round; }
.geo-text.gefragt { fill: var(--kurve2); font-size: 17px; }
.geo-name { font: 600 12px var(--schrift); fill: var(--leise); }
.geo-laenge { font: 700 14px var(--schrift); fill: var(--text); paint-order: stroke; stroke: var(--flaeche2); stroke-width: 4px; stroke-linejoin: round; }
.geo-gleich { stroke: var(--kurve2); stroke-width: 5; stroke-linecap: round; }
.tipp .bild-geo { display: block; max-width: 300px; margin: 8px auto 0; }
.geo-punkt { fill: var(--text); }
.geo-flaeche { fill: color-mix(in srgb, var(--kurve2) 14%, transparent); stroke: var(--text); stroke-width: 2; stroke-linejoin: round; }
.geo-hoehe { stroke: var(--kurve1); stroke-width: 2; stroke-dasharray: 5 4; }
.geo-mass { font: 700 13px var(--schrift); fill: var(--text); paint-order: stroke; stroke: var(--flaeche2); stroke-width: 4px; stroke-linejoin: round; }
.geo-mass.hoehe { fill: var(--kurve1); }
.geo-front { fill: color-mix(in srgb, var(--kurve2) 16%, transparent); stroke: var(--text); stroke-width: 2; stroke-linejoin: round; }
.geo-seite { fill: color-mix(in srgb, var(--kurve2) 8%, transparent); stroke: none; }
.geo-kante { stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.geo-kante.verdeckt { stroke: var(--leise); stroke-width: 1.5; stroke-dasharray: 5 4; }
.geo-mass.tiefe { fill: var(--text); }
.geo-netz-feld { fill: color-mix(in srgb, var(--kurve2) 14%, var(--flaeche2)); stroke: var(--text); stroke-width: 2; stroke-linejoin: round; }
.geo-netz-zahl { font: 700 22px var(--schrift); fill: var(--text); }
.urliste { display: block; margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: var(--flaeche2); font-variant-numeric: tabular-nums; letter-spacing: .02em; line-height: 1.8; word-spacing: .25em; }

/* ---------- Widgets ---------- */
.widget { display: grid; gap: 12px; }
.widget .bild-koord { margin-inline: auto; }
.regler { display: grid; grid-template-columns: minmax(7em, auto) 1fr 5.5em; gap: 12px; align-items: center; font-size: .95rem; }
.regler output { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--akzent); height: 28px; }
.widget-formel { text-align: center; font-size: 1.2rem; padding: 10px; border-radius: 14px; background: var(--flaeche2); min-height: 2.6em; }
.widget-formel small { color: var(--leise); }
.widget-info { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: .95rem; color: var(--leise); }
.widget-info b { color: var(--text); }
.widget-ziel { padding: 12px 14px; border-radius: 14px; background: var(--hinweis-zart); }
.widget-ziel.erreicht { background: var(--gut-zart); }
.ziel-ok { color: var(--gut); font-weight: 700; }
.hfeld { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; max-width: 300px; margin-inline: auto; width: 100%; }
.hfeld i { aspect-ratio: 1; border-radius: 4px; background: color-mix(in srgb, var(--text) 12%, transparent); cursor: pointer; transition: background .12s; }
.hfeld i.an { background: var(--akzent); }
.pbalken { position: relative; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--text) 12%, transparent); margin: 26px 0 30px; }
.pbalken i { position: absolute; inset: 0 auto 0 0; border-radius: 12px; background: var(--akzent); transition: width .1s; }
.pbalken span { position: absolute; font-size: .88rem; font-weight: 600; white-space: nowrap; transform: translateX(-50%); }
.pbalken-oben { top: -24px; color: var(--leise); }
.pbalken-unten { bottom: -26px; }
.pbalken-ganz { right: 0; top: -24px; transform: none !important; color: var(--leise); }

/* ---------- Jubel, Toasts ---------- */
.jubel { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; overflow-y: auto; background: rgba(10, 8, 30, .62); backdrop-filter: blur(4px); }
.jubel-karte { width: min(100%, 440px); text-align: center; padding: 30px 26px; border-radius: 28px; background: var(--flaeche); border: 2px solid var(--akzent); animation: plopp .45s cubic-bezier(.2, 1.4, .4, 1); }
.jubel-stern { width: 76px; height: 76px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: var(--akzent); color: var(--akzent-text); font-size: 2.4rem; }
.jubel-beute { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.beute { padding: 6px 14px; border-radius: 99px; background: var(--akzent-zart); color: var(--akzent); font-weight: 700; }
.jubel-knoepfe { display: grid; gap: 10px; margin-top: 16px; justify-items: center; }
.jubel-extra { display: grid; gap: 8px; }
.jubel-extra:empty { display: none; }
.jubel-extra .toast { padding: 9px 12px; font-size: .92rem; background: var(--akzent-zart); color: var(--text); border: 0; box-shadow: none; }
.jubel-extra .toast-abz { border: 2px solid var(--selten, var(--akzent)); }
@keyframes plopp { from { transform: scale(.7); opacity: 0; } }
.konfetti { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { padding: 12px 16px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 600; text-align: center; animation: rein .3s ease; transition: opacity .5s; }
.toast.weg { opacity: 0; }
.xpflug { position: absolute; z-index: 50; transform: translate(-50%, -100%); font-weight: 800; color: var(--zweit); pointer-events: none; animation: flug 1.1s ease-out forwards; }
@keyframes flug { to { transform: translate(-50%, -260%); opacity: 0; } }

/* ---------- Konto, Tabellen, Eltern ---------- */
.konto-kopf { display: grid; gap: 14px; margin-bottom: 26px; }
@media (min-width: 700px) { .konto-kopf { grid-template-columns: 1.1fr 1fr; } }
.konto-stand { padding: 26px; border-radius: 26px; background: var(--akzent); color: var(--akzent-text); display: grid; gap: 2px; }
.konto-stand small { color: inherit; opacity: .8; text-transform: uppercase; letter-spacing: .08em; }
.konto-stand b { font-family: var(--schrift-kopf); font-weight: var(--kopf-gewicht); font-size: clamp(2.4rem, 8vw, 3.4rem); line-height: 1.1; }
.konto-stand span { opacity: .85; font-size: .92rem; }
.konto-neben { display: grid; gap: 8px; }
.konto-neben div, .kennzahlen div { padding: 12px 16px; border-radius: 16px; background: var(--flaeche); border: 1px solid var(--rand); display: grid; }
.konto-neben b, .kennzahlen b { font-size: 1.05rem; }
.kennzahlen b small { display: block; font-size: .8rem; font-weight: 500; color: var(--leise); }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 8px; }
.auszahl-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 8px; }
label { display: grid; gap: 4px; font-size: .9rem; font-weight: 600; }
input:not([type="range"]):not(.eingabe), select { padding: 10px 12px; border-radius: 12px; border: 2px solid var(--rand); background: var(--flaeche); color: var(--text); font: 500 1rem var(--schrift); }
input:focus, select:focus { outline: none; border-color: var(--akzent); }
.liste { width: 100%; border-collapse: collapse; font-size: .95rem; }
.liste td, .liste th { padding: 9px 8px; border-bottom: 1px solid var(--rand); text-align: left; vertical-align: middle; }
.liste th { font-size: .8rem; color: var(--leise); font-weight: 600; }
.liste .r { text-align: right; font-variant-numeric: tabular-nums; }
.reihe { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.regeln { margin-top: 14px; color: var(--leise); }
.regeln summary { cursor: pointer; }
.kind { padding: 20px; border-radius: 22px; background: var(--flaeche); border: 1px solid var(--rand); }
.kind-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.kind-kopf h2 { margin: 0; }
.hervor { padding: 18px; border-radius: 20px; background: var(--hinweis-zart); border: 1px solid var(--zweit); }
.fehlertext { color: var(--schlecht); font-weight: 600; }
.login-hinweis { padding: 12px 14px; border-radius: 14px; background: var(--akzent-zart); font-weight: 600; }

/* ---------- Login ---------- */
.login { min-height: 82vh; display: grid; place-items: center; }
.login-karte { width: min(100%, 380px); padding: 34px 28px; border-radius: 28px; background: var(--flaeche); border: 1px solid var(--rand); box-shadow: var(--schatten); text-align: center; }
.login-karte .reg-code-wert { font-size: 20px; font-weight: 700; letter-spacing: .04em; overflow-wrap: normal; word-break: normal; margin: 8px 0; }
.login-logo { display: grid; place-items: center; margin-bottom: 10px; }
.login-logo .logo-zeichen { width: 58px; height: 58px; border-radius: 18px; font-size: 2rem; }
.login form { display: grid; gap: 14px; text-align: left; margin-top: 18px; }
.login input { width: 100%; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Schmale Bildschirme ---------- */
.weg li, .bsp-tu, .karten-text, .tipp { min-width: 0; overflow-wrap: anywhere; }
.weg li { overflow-x: auto; }
.welt-arena .ziel { background: var(--hinweis-zart); }
@media (max-width: 560px) {
  body { font-size: 16px; }
  .station-zeile { grid-template-columns: 44px 1fr; }
  .station-extra { grid-column: 2; margin-top: -6px; }
  .kopf .chip-rang, .kopf-name { display: none; }
  .widget .bild-koord { max-width: 270px; }
  .widget { gap: 8px; }
  .dreisatz { font-size: .92rem; }
  .dreisatz td { padding: 6px 4px; }
  .dreisatz td:nth-child(3) { white-space: normal; }
  .dreisatz .ds-op span { padding: 1px 6px; font-size: .78rem; }
  /* Am Handy zaehlt jeder Pixel: Schritte ohne Einzug, Formeln etwas kleiner, Karten mit weniger Rand */
  .weg ol { list-style: none; padding-left: 0; gap: 0; }
  .weg li { padding: 9px 0; border-top: 1px dashed var(--rand); }
  .karte-gross { padding: 18px 16px; }
  .formel { font-size: .95rem; padding: 10px 6px; margin: 10px 0; }
  .bsp li { padding: 12px 12px 12px 44px; }
  .bsp li::before { left: 10px; top: 12px; }
  .umform { font-size: .98rem; }
  .umform td { padding: 5px 8px 5px 0; }
  .vztab { font-size: .82em; }
  .vztab th, .vztab td { padding: 5px 6px; }
  .wtab th, .wtab td { padding: 6px 8px; }
  /* Tippflaechen am Handy: mindestens rund 44 px hoch */
  .knopf-klein { min-height: 44px; padding: 8px 14px; }
  .taste { min-width: 46px; min-height: 44px; }
  .tasten { gap: 8px; }
  summary { min-height: 44px; display: flex; align-items: center; }
  .weg summary, .regeln summary { display: list-item; min-height: 0; padding: 10px 0; }
  input[type=range] { min-height: 40px; }
  .regler { grid-template-columns: 1fr 4.6em; }
  .regler .regler-name { grid-column: 1 / -1; margin-bottom: -8px; font-weight: 600; }
  .eingabe { width: 8em; }
  .feld-gruppe .eingabe:not(.breit) { flex-basis: 8em; }
  .feld { gap: 8px; }
}

/* Sehr schmale Handys (320 bis 350 px) */
@media (max-width: 350px) {
  .karte-gross { padding: 16px 12px; }
  .option { padding: 10px 8px; }
  .option .wtab { font-size: .84rem; }
  .option .wtab th, .option .wtab td { padding: 4px 5px; }
  .umform { font-size: .88rem; }
  .umform td { padding: 4px 6px 4px 0; }
  .umform .um-op span { padding: 1px 6px; font-size: .78rem; }
  .feld-gruppe { flex-basis: 100%; }
}

/* ---------------------------------------------------------------- Auszeichnungen */
/* Seltenheit: dieselbe Leiter wie die Sticker (Farbe, Silber, Gold, Lila, Regenbogen) */
.selten-1 { --selten: #8a99ad; }
.selten-2 { --selten: #7d8ca3; }
.selten-3 { --selten: #c98a00; }
.selten-4 { --selten: #8a3dff; }
.selten-5 { --selten: #ff4f9a; }
.abz-zeichen { flex: none; display: grid; place-items: center; width: 52px; height: 58px; clip-path: polygon(50% 0, 100% 22%, 100% 78%, 50% 100%, 0 78%, 0 22%); background: linear-gradient(160deg, color-mix(in srgb, var(--selten) 70%, #fff), var(--selten)); color: #14122b; font: 800 .95rem var(--schrift); letter-spacing: -.02em; }
.abz-liste { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .abz-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1050px) { .abz-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.abz { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: var(--flaeche); border: 1px solid var(--rand); border-left: 5px solid var(--selten); }
.abz-text { display: grid; gap: 3px; min-width: 0; flex: 1; }
.abz-text small { color: var(--leise); }
.abz-fuss { font-size: .8rem; color: var(--leise); }
.abz-selten { color: var(--selten); font-weight: 700; }
.abz .balken { margin: 4px 0 1px; }
.abz .balken i { background: var(--selten); }
.abz.zu { border-left-color: var(--rand); }
.abz.zu .abz-zeichen { filter: grayscale(1); opacity: .45; }
.abz.zu b { color: var(--leise); }
.abz-reihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.abz-reihe .abz-zeichen { width: 44px; height: 49px; font-size: .82rem; }
.abz-reihe a.mehr { margin-left: 4px; font-weight: 600; }

.toast-abz, .toast-rang { display: flex; align-items: center; gap: 12px; text-align: left; text-decoration: none; background: var(--flaeche); color: var(--text); border: 2px solid var(--selten, var(--akzent)); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.toast-abz small { display: block; font-weight: 500; color: var(--leise); }
.toast-abz .abz-zeichen { width: 44px; height: 49px; font-size: .82rem; }
.toast-rang .rang-abz { width: 32px; height: 35px; }

/* ---------------------------------------------------------------- Belohnungsstufe und Minispiel */
.stufe-karte { padding: 16px; border-radius: 16px; background: var(--flaeche); border: 1px solid var(--rand); display: grid; gap: 8px; }
.stufen { display: flex; flex-wrap: wrap; gap: 6px; }
.stufen span { padding: 3px 10px; border-radius: 99px; border: 1px solid var(--rand); font-size: .82rem; color: var(--leise); font-variant-numeric: tabular-nums; }
.stufen span.da { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); font-weight: 700; }
.stufen span.durch { opacity: .55; }
.spiel-teaser { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--flaeche); border: 1px solid var(--rand); text-decoration: none; color: var(--text); }
.spiel-teaser.frei { border-color: var(--gut); background: color-mix(in srgb, var(--gut) 12%, var(--flaeche)); }
.spiel-teaser > div { flex: 1; min-width: 0; display: grid; gap: 5px; }
.spiel-teaser small { color: var(--leise); }
.sammel-teaser { margin-top: 12px; }
.sammel-bilder { flex: none; display: flex; align-items: center; }
.sammel-bilder .sticker { width: 56px; height: 56px; margin-right: -18px; }
.sammel-bilder .sticker:last-child { margin-right: 0; }
.sammel-teaser .pfeil, .thema-teaser .pfeil { flex: none; font-size: 1rem; font-weight: 600; color: var(--leise); }
.thema-teaser .spiel-knolle svg { width: 26px; height: 26px; }
body[data-thema] .thema-teaser .spiel-knolle { background: var(--th-jubel); color: var(--th-jubel-text); }
.spiel-knolle { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--akzent); color: var(--akzent-text); font: 800 1.3rem var(--schrift); }
.spiel-fortschritt { display: grid; gap: 14px; margin: 14px 0; }
.spiel { position: relative; max-width: 520px; margin-inline: auto; border-radius: 20px; overflow: hidden; background: var(--flaeche2); border: 2px solid var(--rand); }
.spiel canvas { display: block; width: 100%; height: min(64vh, 540px); touch-action: none; }
.spiel-decke { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(10, 8, 30, .55); }
.spiel-decke[hidden] { display: none; }
.spiel-karte { text-align: center; padding: 22px 20px; border-radius: 20px; background: var(--flaeche); border: 2px solid var(--akzent); width: min(100%, 320px); }
.spiel-karte p { margin: 6px 0 14px; }
.welt-glitzer .spiel-decke { background: rgba(255, 236, 246, .55); backdrop-filter: blur(2px); }
.welt-glitzer .spiel { border-color: var(--rand); box-shadow: 0 6px 0 #f0c3d8; }
.formular-stapel { display: grid; gap: 14px; }
.formular-stapel label:not(.wahlzeile) { display: grid; gap: 6px; font-weight: 600; }
.link-gefahr { color: var(--schlecht); font-weight: 600; }
.knopf.knopf-gefahr { background: var(--schlecht); color: #fff; box-shadow: none; }
.wahlzeile { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.wahlzeile input { width: 22px; height: 22px; accent-color: var(--akzent); flex: none; }

/* ---- Klasse 6 Realschule plus: Bruchteile, Zahlenstrahl, Stellenwerttafel (inhalt/rsp6/_helfer.php) ---- */
.r6-bild { max-width: 360px; }
.r6-teil, .r6-sektor { fill: var(--flaeche); stroke: var(--text); stroke-width: 1.6; stroke-linejoin: round; }
.r6-teil.voll, .r6-sektor.voll { fill: var(--kurve2); }
.r6-stellen th, .r6-stellen td { min-width: 30px; padding: 7px 4px; text-align: center; }
.r6-stellen th { background: var(--flaeche2); }
.r6-stellen .r6-komma { border-left: 3px solid var(--text); }
.r6-stellen td.r6-gesucht { background: var(--akzent-zart); color: var(--akzent); font-weight: 800; }
.r6-pfeil { fill: var(--text); }
.taste.taste-leer { min-width: 72px; font-size: .9rem; }

/* ---- Grundschule: Plaettchen, Stangen, Felder, Saeulen, Muster, Kalender ---- */
.gs-bild { max-width: 360px; }
.gs-p1 { fill: var(--akzent); }
.gs-p2 { fill: var(--zweit); }
.gs-p0 { fill: none; stroke: var(--rand); stroke-width: 2; }
.gs-zehner { fill: var(--akzent); }
.gs-kerbe { stroke: var(--flaeche); stroke-width: 1.5; }
.gs-einer { fill: var(--zweit); }
.gs-feld td { min-width: 44px; font-size: 1.1rem; font-weight: 600; padding: 9px 8px; }
.gs-feld td.gs-leer { background: var(--flaeche2); }
.gs-feld td.gs-gesucht { background: var(--akzent-zart); color: var(--akzent); font-size: 1.3rem; }
.gs-feld th { text-align: center; }
.gs-gesucht-kopf { color: var(--akzent); font-size: 1.2rem; }
.gs-kalender caption { font-weight: 700; padding: 4px 0 6px; text-align: left; }
.gs-kalender td { min-width: 36px; padding: 6px 4px; font-weight: 600; }
.gs-kalender td.gs-leer { background: var(--flaeche2); }
.gs-kalender td.gs-gesucht { background: var(--akzent-zart); color: var(--akzent); }
.gs-text { font: 600 13px var(--schrift); fill: var(--text); }
.gs-fett { font-size: 20px; font-weight: 800; }
.gs-kasten.k1 { fill: var(--akzent); }
.gs-uhr-blatt { fill: var(--flaeche); stroke: var(--text); stroke-width: 4; }
.gs-uhr-strich { stroke: var(--leise); stroke-width: 1.5; }
.gs-uhr-strich.gs-uhr-grob { stroke: var(--text); stroke-width: 3; }
.gs-uhr-zahl { font: 700 16px "Inter", sans-serif; fill: var(--text); }
.gs-zeiger-h { stroke: var(--akzent); stroke-width: 7; stroke-linecap: round; }
.gs-zeiger-m { stroke: var(--text); stroke-width: 4; stroke-linecap: round; }
.gs-uhr-mitte { fill: var(--text); }
.gs-dr-linie { fill: var(--akzent-zart); stroke: var(--akzent); stroke-width: 3; stroke-linejoin: round; }
.gs-dr-feld { fill: var(--flaeche); stroke: var(--rand); stroke-width: 2; }
.gs-dr-feld.gs-dr-leer { fill: var(--flaeche2); stroke-dasharray: 4 3; }
.gs-dr-feld.gs-dr-gesucht { fill: var(--akzent-zart); stroke: var(--akzent); }
.gs-dr-zahl { font: 800 17px "Inter", sans-serif; fill: var(--text); }
.gs-dr-zahl.gs-dr-gesucht { fill: var(--akzent); }
.gs-muenze.gs-kupfer { fill: #c9814f; }
.gs-muenze.gs-gold { fill: #e6b84a; }
.gs-muenze.gs-euro { fill: #d5d9e0; stroke: #e6b84a; stroke-width: 5; }
.gs-schein { fill: #dcebf6; stroke: #8db3d1; stroke-width: 2; }
.gs-schein.gs-s500 { fill: #e3ece3; stroke: #9fb79f; }
.gs-schein.gs-s1000 { fill: #f6dede; stroke: #d39a9a; }
.gs-schein.gs-s2000 { fill: #dde4f6; stroke: #94a5d3; }
.gs-geldtext { font: 800 12px "Inter", sans-serif; fill: #1f1a24; }
.gs-mauer { display: grid; justify-items: center; gap: 4px; margin: 12px 0; }
.gs-mauer-reihe { display: flex; gap: 4px; }
.gs-stein { display: grid; place-items: center; min-width: 54px; height: 42px; padding: 0 6px; border-radius: 8px; background: var(--flaeche); border: 2px solid var(--rand); font-weight: 700; font-size: 1.15rem; }
.gs-stein.gs-leer { background: var(--flaeche2); border-style: dashed; }
.gs-stein.gs-gesucht { background: var(--akzent-zart); border-color: var(--akzent); color: var(--akzent); font-size: 1.3rem; }
.gs-kasten.k2 { fill: var(--zweit); }
.gs-kasten.k3 { fill: var(--gut); }
.gs-kasten.k4 { fill: var(--schlecht); }
.gs-striche { display: block; margin: 8px 0; max-width: 100%; height: auto; }
.gs-strich { stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; }
.gs-rot { fill: #e4484f; }
.gs-blau { fill: #3b7ddd; }
.gs-gelb { fill: #f2c53d; }
.gs-gruen { fill: #3fb36b; }
.gs-form { stroke: rgba(0, 0, 0, .18); stroke-width: 1.5; }
.gs-fragekasten { fill: var(--akzent-zart); stroke: var(--akzent); stroke-width: 2; stroke-dasharray: 4 3; }
.gs-form-klein { display: block; margin: 0 auto; }
.gs-koerper { max-width: 200px; display: inline-block; vertical-align: top; }
.gs-k-front { fill: var(--akzent-zart); stroke: var(--akzent); stroke-width: 3; stroke-linejoin: round; }
.gs-k-seite { fill: color-mix(in srgb, var(--akzent) 30%, var(--akzent-zart)); stroke: var(--akzent); stroke-width: 3; stroke-linejoin: round; }
.gs-k-oben { fill: color-mix(in srgb, var(--akzent) 14%, var(--flaeche)); stroke: var(--akzent); stroke-width: 3; stroke-linejoin: round; }
.gs-k-linie { fill: none; stroke: var(--akzent); stroke-width: 2; stroke-dasharray: 5 4; }
.gs-k-glanz { fill: #fff; opacity: .55; }
.gs-lineal { max-width: 380px; }
.gs-lineal-holz { fill: #f3dfa8; stroke: #c9a24e; stroke-width: 2; }
.gs-lineal-strich { stroke: #5a4317; stroke-width: 2; }
.gs-lineal-halb { stroke: #5a4317; stroke-width: 1.2; }
.gs-lineal-zahl { font: 700 13px "Inter", sans-serif; fill: #3d2e10; }
.gs-lineal-hilfe { stroke: var(--leise); stroke-width: 1.2; stroke-dasharray: 3 3; }
.gs-stift { fill: var(--akzent); }
.gs-stift-spitze { fill: #e9c48f; }
.gs-band { fill: var(--zweit); }
.gs-geobrett { max-width: 340px; }
.gs-brett { fill: #f2e3c4; stroke: #c9a24e; stroke-width: 2; }
.gs-nagel { fill: #6b5a3a; }
.gs-gummi { fill: color-mix(in srgb, var(--akzent) 22%, transparent); stroke: var(--akzent); stroke-width: 4; stroke-linejoin: round; }
.gs-wuerfelbild { max-width: 300px; }
.gs-wuerfel-flaeche { fill: #fff; stroke: var(--text); stroke-width: 2.5; }
.gs-auge { fill: var(--text); }
.option .gs-form-klein { width: 44px; height: 44px; }

/* ---------- Welt: Glitzer (hell, rosa, Spieloptik fuer die Grundschule) ---------- */
.welt-glitzer {
  --bg: #fff6fa;
  --bg2: #ffe6f1;
  --flaeche: #ffffff;
  --flaeche2: #fff1f7;
  --rand: #f3c9dd;
  --text: #3b2238;
  --leise: #9b6f8c;
  --akzent: #e3509b;
  --akzent-dunkel: #c0357d;
  --akzent-text: #ffffff;
  --akzent-zart: #fde1ee;
  --zweit: #9b5de5;
  --gut: #22a06b;
  --gut-zart: #e1f6ec;
  --schlecht: #e2495a;
  --schlecht-zart: #fde6ea;
  --hinweis-zart: #fff2d9;
  --schatten: 0 5px 0 #f0c3d8;
  --schrift-kopf: var(--schrift);
  --kopf-gewicht: 800;
  --kopf-abstand: -0.025em;
  --konfetti: #e3509b, #ffc83d, #9b5de5, #5ec8e6, #22a06b;
  --kurve1: #e3509b;
  --kurve2: #9b5de5;
}
.welt-glitzer { background: radial-gradient(900px 500px at 85% -10%, #ffd3e6 0%, transparent 60%), radial-gradient(700px 420px at -10% 15%, #eadcff 0%, transparent 55%), var(--bg); background-attachment: fixed; }
.welt-glitzer .logo-zeichen { box-shadow: 0 3px 0 var(--akzent-dunkel); }
.welt-glitzer .knopf { font-weight: 750; box-shadow: 0 5px 0 var(--akzent-dunkel); }
.welt-glitzer .knopf:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--akzent-dunkel); }
.welt-glitzer .knopf-leise { box-shadow: inset 0 0 0 2px var(--rand), 0 5px 0 #f0c3d8; background: var(--flaeche2); }
.welt-glitzer .held { background: linear-gradient(135deg, #fff0f6, #ffffff 60%); border: 2px solid #f3c9dd; }
.welt-glitzer .kachel, .welt-glitzer .karte { border-width: 2px; }
.welt-glitzer .schritt.aktiv span { background: rgba(255, 255, 255, .35); }
.welt-glitzer .ueberzeile, .welt-glitzer .bsp-warum b { color: var(--zweit); }
.welt-glitzer .dreisatz .ds-op span { color: var(--akzent); }
.welt-glitzer .ziel { background: var(--hinweis-zart); }
.welt-glitzer .abz-zeichen { color: #3b2238; }
.welt-glitzer .gs-p0 { stroke: #e9b9d1; }

.einwilligung { margin: 1.2rem 0 1rem; padding: 14px 16px; border-radius: 14px; background: var(--flaeche2); border: 1px solid var(--rand); font-size: .9rem; line-height: 1.5; }
.einwilligung h2 { font-size: 1rem; margin: 0 0 .5rem; }
.einwilligung p { margin: 0 0 .55rem; }
.einwilligung p:last-child { margin-bottom: 0; }

/* ---------- Aussen: Startseite, Impressum, Datenschutz (fuer alle gleich, ruhig) ---------- */
.welt-aussen {
  --bg: #ffffff;
  --bg2: #f6f6f9;
  --flaeche: #ffffff;
  --flaeche2: #f6f6f9;
  --rand: #e6e6ee;
  --text: #16161d;
  --leise: #5d5d6b;
  --akzent: #5b4bdb;
  --akzent-dunkel: #4536b8;
  --akzent-text: #ffffff;
  --akzent-zart: #efedfd;
  --zweit: #5b4bdb;
  --gut: #21875c;
  --gut-zart: #e4f4ec;
  --schlecht: #c24238;
  --schlecht-zart: #fbeae8;
  --hinweis-zart: #fdf3dc;
  --schatten: 0 1px 2px rgba(20, 20, 40, .05), 0 6px 24px rgba(20, 20, 40, .06);
  --schrift-kopf: var(--schrift);
  --kopf-gewicht: 750;
  --kopf-abstand: -0.02em;
  --konfetti: #5b4bdb, #ff8fb8, #5fd3b0, #ffc94d, #16161d;
  --kurve1: #5b4bdb;
  --kurve2: #21875c;
  background: var(--bg);
}
.kopf-aussen { justify-content: space-between; }
.kopf-aussen .logo-wort { font-family: var(--schrift); font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.logo-plus { flex: none; display: block; }
.kopf-aussen .kopf-logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kopf-aussen .logo-wort { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kopf-aussen .knopf { flex: none; }
@media (max-width: 380px) { .kopf-aussen .logo-wort { font-size: 14px; } .kopf-aussen .logo-plus { width: 26px; height: 26px; } }
.aussen-held { padding: 28px 0 8px; max-width: 640px; }
.aussen-held h1 { font-size: clamp(30px, 7vw, 46px); line-height: 1.08; margin: 10px 0 14px; }
.aussen-marke { display: inline-block; font-size: 13px; font-weight: 600; color: var(--akzent-dunkel); background: var(--akzent-zart); border-radius: 999px; padding: 6px 12px; margin: 0; }
.aussen-lead { font-size: 18px; line-height: 1.55; color: var(--leise); margin: 0 0 22px; }
.aussen-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.aussen-block { margin-top: 44px; }
.aussen-block h2 { font-size: 22px; margin: 0 0 14px; }
.aussen-text { font-size: 17px; line-height: 1.65; max-width: 640px; }
.aussen-text p { margin: 0 0 14px; }
.aussen-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.aussen-karte { background: var(--bg2); border-radius: var(--radius); padding: 18px; }
.aussen-karte b { display: block; font-size: 17px; margin-bottom: 6px; }
.aussen-karte p { margin: 0; color: var(--leise); line-height: 1.55; }
.aussen-liste { margin: 0; padding-left: 20px; font-size: 17px; line-height: 1.65; }
.aussen-frage { border-top: 1px solid var(--rand); padding: 14px 0; }
.aussen-frage:last-of-type { border-bottom: 1px solid var(--rand); }
.aussen-frage summary { cursor: pointer; font-weight: 600; font-size: 17px; min-height: 44px; display: flex; align-items: center; }
.aussen-frage p { margin: 10px 0 0; color: var(--leise); line-height: 1.6; }
.aussen-schluss { text-align: center; padding: 10px 0 20px; }
.aussen-recht { max-width: 680px; margin-top: 18px; }
.aussen-recht h1 { font-size: 32px; margin-bottom: 8px; }
.aussen-recht h2 { font-size: 18px; margin: 26px 0 6px; }
.aussen-recht p { line-height: 1.65; margin: 0 0 10px; }
.fuss { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 4px 16px 40px; font-size: 14px; }
.fuss a { color: var(--leise); }

/* ---------- Welt: Klar (ruhig, schlicht, wie eine gute App) ---------- */
.welt-klar {
  --bg: #f6f7f9;
  --bg2: #eceef3;
  --flaeche: #ffffff;
  --flaeche2: #f7f8fa;
  --rand: #e2e5ec;
  --text: #15171c;
  --leise: #5f6472;
  --akzent: #5b3df5;
  --akzent-dunkel: #4026d0;
  --akzent-text: #ffffff;
  --akzent-zart: #efecff;
  --zweit: #14a37f;
  --gut: #1a8a5c;
  --gut-zart: #e5f5ed;
  --schlecht: #c2413a;
  --schlecht-zart: #fbeae8;
  --hinweis-zart: #fdf4de;
  --schatten: 0 1px 2px rgba(20, 24, 40, .05), 0 8px 24px rgba(20, 24, 40, .06);
  --schrift-kopf: "Inter", system-ui, sans-serif;
  --kopf-gewicht: 750;
  --kopf-abstand: -0.03em;
  --konfetti: #5b3df5, #ff5fa2, #2fe0b0, #ffb84d, #15171c;
  --kurve1: #5b3df5;
  --kurve2: #14a37f;
  background: linear-gradient(180deg, var(--bg2) 0, var(--bg) 320px);
  background-attachment: fixed;
}

/* Welt aussuchen: Begruessung und Einstellungen */
.weltwahl { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.weltwahl form { margin: 0; }
.weltkarte { width: 100%; display: grid; gap: 10px; text-align: left; padding: 14px; border-radius: 22px; border: 2px solid var(--rand); background: var(--flaeche); color: var(--text); cursor: pointer; font: inherit; box-shadow: var(--schatten); transition: transform .15s ease; }
.weltkarte:hover { transform: translateY(-2px); }
.weltkarte.an { border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-zart), var(--schatten); }
.weltkarte b { font-size: 1.2rem; }
.weltkarte small { color: var(--leise); font-size: .95rem; }
.weltbild { height: 120px; border-radius: 16px; padding: 12px; display: grid; align-content: space-between; overflow: hidden; }
.weltbild i { display: block; height: 12px; border-radius: 99px; }
.weltbild span { justify-self: start; padding: 8px 14px; border-radius: 12px; font-weight: 800; font-size: 14px; }
.weltbild-glitzer { background: linear-gradient(160deg, #fff5fa, #ffd9ea); }
.weltbild-glitzer i { background: #f7b6d2; width: 70%; } .weltbild-glitzer span { background: #d63384; color: #fff; }
.weltbild-arena { background: radial-gradient(160px 100px at 80% 0, #2a2f86, transparent 70%), #0c1030; }
.weltbild-arena i { background: #343d8f; width: 75%; } .weltbild-arena span { background: #ffc83d; color: #1b1300; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; box-shadow: 0 4px 0 #d99a00; }
.weltbild-klar { background: linear-gradient(180deg, #eceef3, #f9fafb); }
.weltbild-klar i { background: #dfe2ea; width: 65%; } .weltbild-klar span { background: #5b3df5; color: #fff; }
.weltbild-konto { background: linear-gradient(180deg, #f3e9e0, #faf5ef); }
.weltbild-konto i { background: #eadfd4; width: 65%; } .weltbild-konto span { background: #b23c69; color: #fff; }
.begruessung { max-width: 760px; margin: 10px auto 0; }
.begruessung h1 { font-size: clamp(2rem, 7vw, 3rem); margin: 6px 0 8px; }
.begruessung .lead { font-size: 1.15rem; color: var(--leise); margin: 0 0 22px; }
.einst-titel { margin: 34px 0 4px; }
.farbwahl { display: flex; flex-wrap: wrap; gap: 10px; }
.farbpunkt { display: grid; justify-items: center; gap: 6px; min-width: 72px; padding: 10px 6px; border: 2px solid transparent; border-radius: 18px; background: var(--flaeche); color: var(--text); cursor: pointer; font: inherit; box-shadow: var(--schatten); }
.farbpunkt span { width: 40px; height: 40px; border-radius: 50%; background: var(--punkt); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35); }
.farbpunkt small { font-size: .85rem; color: var(--leise); }
.farbpunkt.an { border-color: var(--akzent); }
.farbpunkt-weg span { background: conic-gradient(#ff5fa2, #ffb84d, #2fe0b0, #6a4bf5, #ff5fa2); }
.kopf-einst { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--leise); }
.antraege { display: grid; gap: 12px; }
.antrag { padding: 14px; border-radius: var(--radius-klein); background: var(--flaeche2); border: 1px solid var(--rand); min-width: 0; overflow-wrap: anywhere; }
.antrag .reihe { flex-wrap: wrap; gap: 8px 12px; }
.antrag-offen { border-color: var(--akzent); }
.antrag-kopf { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.antrag-kinder { margin: 8px 0; padding-left: 18px; }
.antrag .marke { margin-top: 0; }
.marke-gut { background: var(--gut-zart); color: var(--gut); font-weight: 600; }

/* Logo: Gleichheitszeichen, das laechelt */
.logo-marke { display: block; flex: none; border-radius: 30%; }
.kopf-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.logo-wort { font-family: "Inter", system-ui, sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -0.045em; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-wort span { opacity: .45; font-weight: 700; }
.login-logo { display: inline-grid; place-items: center; margin-bottom: 10px; }
.login-logo .logo-marke { box-shadow: 0 10px 30px rgba(74, 43, 240, .35); }
.welt-arena .kopf .logo-marke, .welt-glitzer .kopf .logo-marke { box-shadow: 0 3px 0 rgba(0, 0, 0, .18); }

/* Rueckmeldung nach jeder fuenften Aufgabe */
.spass { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-klein); background: var(--akzent-zart); }
.spass-frage { margin: 0 0 8px; font-weight: 600; }
.spass-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.spass-danke { margin: 0; font-weight: 600; }

/* Demo-Leiste: in allen Welten gleich, damit man sie sofort als Demo erkennt */
.demo-leiste { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; padding: 6px 10px; background: #0b0920; color: #fff; font: 600 13px "Inter", sans-serif; }
.demo-leiste button small { font-weight: 500; opacity: .7; font-size: 11px; }
@media (max-width: 400px) { .demo-leiste button small { display: none; } .demo-leiste .demo-wahl button { padding: 0 7px; } }
.demo-marke { flex: none; padding: 4px 8px; border-radius: 999px; background: linear-gradient(90deg, #ff5fa2, #ffb84d); color: #0b0920; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
.demo-wahl { display: flex; flex-wrap: nowrap; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.demo-leiste button { flex: none; white-space: nowrap; min-height: 34px; padding: 0 11px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font: inherit; cursor: pointer; }
.demo-leiste button.an { background: #fff; color: #0b0920; }
.demo-leiste .demo-ende { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.demo-hinweis { margin: 0; padding: 8px 16px; font-size: 13px; line-height: 1.45; background: #f3f1fe; color: #3b2bb0; }
/* Sieben Rollen passen am Handy nicht neben Marke und Beenden: dann zweite Zeile, die bei Bedarf seitlich rollt */
@media (max-width: 640px) { .demo-leiste { flex-wrap: wrap; } .demo-wahl { order: 3; flex: 1 0 100%; } .demo-leiste .demo-marke { margin-right: auto; } .demo-leiste button { padding: 0 10px; } }

/* Offene Auszahlung im Elternbereich: bricht am Handy um statt die Seite zu verbreitern */
.anfrage { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 0; border-bottom: 1px solid var(--rand); }
.anfrage-text { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; min-width: 0; }
.anfrage-text span { color: var(--leise); font-size: .92rem; }
.anfrage-betrag { font-variant-numeric: tabular-nums; }

/* Glitzer: Stufe als Stern statt Fortnite-Wappen */
/* Glitzer: Kroenchen statt Stern als Rangzeichen, Farbe je Rang bleibt an .rang-N haengen (JS tauscht nur die Klasse) */
.welt-glitzer .rang-abz { clip-path: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M7 35 5 15l10 8 9-14 9 14 10-8-2 20z'/%3E%3Crect x='7' y='37' width='34' height='6' rx='2'/%3E%3Ccircle cx='5' cy='13' r='4'/%3E%3Ccircle cx='24' cy='7' r='4.5'/%3E%3Ccircle cx='43' cy='13' r='4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M7 35 5 15l10 8 9-14 9 14 10-8-2 20z'/%3E%3Crect x='7' y='37' width='34' height='6' rx='2'/%3E%3Ccircle cx='5' cy='13' r='4'/%3E%3Ccircle cx='24' cy='7' r='4.5'/%3E%3Ccircle cx='43' cy='13' r='4'/%3E%3C/svg%3E") center / contain no-repeat; height: 22px; }
.welt-glitzer .rang-abz.gross { width: 46px; height: 46px; }
.welt-glitzer .rang-1 { background: linear-gradient(160deg, #ffe3ef, #f39cc3); }
.welt-glitzer .rang-2 { background: linear-gradient(160deg, #ffd6ea, #ff6fae); }
.welt-glitzer .rang-3 { background: linear-gradient(160deg, #eadcff, #a07cff); }
.welt-glitzer .rang-4 { background: linear-gradient(160deg, #fff1b0, #f2b300); }
.welt-glitzer .rang-5 { background: linear-gradient(160deg, #c9f5e1, #3fc495); }
.welt-glitzer .rang-6 { background: linear-gradient(120deg, #ff8fbf, #ffd166, #7be0b0, #7fb4ff, #b48bff); }
/* Glitzer: Bluete statt Flamme fuer die Tagesserie */
.bluete { flex: none; }
.bluete-blatt { fill: color-mix(in srgb, var(--text) 14%, transparent); }
.bluete-mitte { fill: color-mix(in srgb, var(--text) 24%, transparent); }
.bluete.an .bluete-blatt { fill: #ff8fbf; }
.bluete.an .bluete-mitte { fill: #ffd166; }

/* ---------- Elternbereich: Uebersicht, Kindseite, Einstellungen (seit 14.10.2026) ---------- */
.eltern-titel { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.eltern-titel h1 { margin: 0; }
.eltern-unterzeile { margin: -4px 0 18px; }
.eltern-zwischen { margin: 26px 0 12px; font-size: 1.15rem; }
.karte-eltern { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 18px 18px 14px; margin-bottom: 14px; }
.karte-eltern.hervor { background: var(--hinweis-zart); border-color: var(--zweit); }
.karte-eltern > h2, .karte-eltern > h3 { margin-top: 0; }
.termin-neu { margin-top: 10px; }
.termin-neu > summary { cursor: pointer; font-weight: 600; color: var(--akzent); padding: 6px 0; }
.termin-neu[open] > summary { margin-bottom: 8px; }
.termin-neu form > .knopf { margin-top: 12px; }
details.karte-eltern > summary { cursor: pointer; list-style: none; }
details.karte-eltern > summary::-webkit-details-marker { display: none; }
details.karte-eltern > summary h2 { display: inline; margin: 0; }
details.karte-eltern[open] > summary { margin-bottom: 12px; }
.kinder-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.kind-karte { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--flaeche); border: 1px solid var(--rand); box-shadow: var(--schatten); color: inherit; text-decoration: none; transition: border-color .15s, transform .08s; min-width: 0; }
.kind-karte:hover { border-color: var(--akzent); }
.kind-karte:active { transform: translateY(1px); }
.kind-karte-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.kind-karte-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.kind-karte-kopf .leise { font-size: .88rem; }
.tage { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.tag { display: grid; gap: 4px; justify-items: center; }
.tag small { font-size: .75rem; color: var(--leise); }
.tag-heute small { color: var(--text); font-weight: 700; }
.tag-saeule { display: flex; align-items: flex-end; width: 100%; height: 56px; border-radius: 8px; background: var(--flaeche2); overflow: hidden; }
.tag-saeule i { display: block; width: 100%; background: var(--akzent); border-radius: 8px 8px 0 0; }
.tag:not(.tag-an) .tag-saeule { background: repeating-linear-gradient(-45deg, var(--flaeche2), var(--flaeche2) 4px, var(--bg) 4px, var(--bg) 8px); }
.kind-karte-zahlen { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .95rem; color: var(--leise); }
.kind-karte-zahlen b { color: var(--text); font-variant-numeric: tabular-nums; }
.kind-karte-lob { font-size: .95rem; }
.kind-karte-hinweis { font-size: .9rem; padding: 8px 12px; border-radius: 12px; background: var(--schlecht-zart); color: var(--schlecht); font-weight: 600; }
.kind-karte-info { display: block; font-size: .9rem; padding: 8px 12px; border-radius: 12px; background: var(--akzent-zart); color: var(--text); font-weight: 600; }
.kind-karte-ziel { font-size: .9rem; padding: 8px 12px; border-radius: 12px; background: var(--akzent-zart); color: var(--akzent); }
.kind-karte-fuss { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .9rem; padding-top: 10px; border-top: 1px solid var(--rand); }
.kind-karte-mehr { font-weight: 700; color: var(--akzent); }
.eltern-weiteres { margin: 16px 0 0; }
.zeilen { list-style: none; margin: 0; padding: 0; }
.zeilen li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rand); }
.zeilen li:last-child { border-bottom: 0; }
.zeile-haupt { min-width: 0; overflow-wrap: anywhere; }
.zeile-wert { flex: none; text-align: right; font-variant-numeric: tabular-nums; max-width: 55%; }
.zeile-haupt small, .zeile-wert small { display: block; color: var(--leise); font-size: .85rem; }
.zeile-wert .marke { margin-top: 0; }
.aufklapp { margin-top: 10px; }
.aufklapp summary { cursor: pointer; font-weight: 600; color: var(--akzent); padding: 6px 0; }
.unsichtbar-label { font-size: 0; }
.unsichtbar-label select { font-size: 1rem; }
.login-neu { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--rand); font-size: .95rem; color: var(--leise); }
.login-neu a { color: var(--akzent); font-weight: 600; }
.login .elternmail { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rand); }
.login .elternmail p { margin: 0; }
.login .elternmail + .leise { margin-top: 16px; }

/* ---------- Stickeralbum und Sticker (seit 14.10.2026, Zeichnungen in app/sticker.php) ---------- */
.sticker { display: block; overflow: visible; }
.sticker-da { filter: drop-shadow(0 3px 4px rgba(60, 20, 50, .18)); }
.welt-arena .sticker-da { filter: drop-shadow(0 4px 0 rgba(5, 8, 30, .6)); }
.sticker-zu { color: var(--text); }
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (max-width: 380px) { .album { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.album-platz { display: grid; justify-items: center; align-content: start; gap: 4px; text-align: center; padding: 16px 10px 14px; border-radius: 20px; background: var(--flaeche); border: 1px solid var(--rand); min-width: 0; }
.album-platz.zu { background: transparent; border-style: dashed; }
.album-bild { display: grid; place-items: center; height: 88px; margin-bottom: 4px; }
.album-bild .sticker { width: 84px; height: 84px; }
.album-platz.da .album-bild .sticker { animation: sticker-rein .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.album-titel { font-size: .98rem; line-height: 1.25; overflow-wrap: anywhere; }
.album-text { color: var(--leise); font-size: .82rem; line-height: 1.35; }
.album-fuss { font-size: .78rem; color: var(--leise); }
.album-platz .balken { width: 80%; margin: 4px 0 0; }
.album-platz .balken i { background: var(--selten); }
.album-platz.zu .album-titel { color: var(--leise); }
.album-glitzer .album-platz.da { border: 2px solid #f6c9dc; background: linear-gradient(180deg, #fff, #fff6fa); }
.album-glitzer .album-platz.da.selten-5 { border-color: transparent; background: linear-gradient(#fff, #fff7fb) padding-box, linear-gradient(120deg, #ff8fbf, #ffd166, #7be0b0, #7fb4ff, #b48bff) border-box; }
@keyframes sticker-rein { from { transform: scale(.6) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .album-platz.da .album-bild .sticker { animation: none; } }
.abz-mini { display: inline-grid; }
.abz-mini .sticker { width: 52px; height: 52px; }
.toast-sticker { flex: none; display: grid; }
.toast-sticker .sticker { width: 56px; height: 56px; }

/* Vorlesen (Grundschule): runder Knopf vor Frage und Tipp */
.vorlesen { float: left; display: inline-grid; place-items: center; width: 40px; height: 40px; margin: 0 10px 4px 0; border: 0; border-radius: 50%; background: var(--akzent-zart); color: var(--akzent); cursor: pointer; }
.vorlesen.spricht { background: var(--akzent); color: #fff; }
.tipp .vorlesen { width: 34px; height: 34px; }

/* Interessen-Fragebogen: Chips zum Antippen, eine Frage pro Bildschirm (JS) */
.knopf.zweit { background: var(--flaeche2); color: var(--text); }
.fragebogen fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.fragebogen legend { font-size: 1.35rem; font-weight: 700; margin-bottom: 14px; padding: 0; }
.schritt-nr { display: block; font-size: .85rem; font-weight: 600; color: var(--leise); margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
label.chip > input { position: absolute; opacity: 0; pointer-events: none; }
/* Nur Chips zum Antippen (label), sonst greift das auf Rang und Guthaben im Kopf (14.10.2026 gefunden) */
label.chip > span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--rand); background: var(--flaeche); font-weight: 600; }
label.chip > input:checked + span { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
label.chip > input:focus-visible + span { outline: 3px solid var(--akzent); outline-offset: 2px; }
.chips-welt { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
label.chip-gross > span { display: grid; gap: 2px; border-radius: 16px; padding: 12px 16px; height: 100%; box-sizing: border-box; }
.chip-gross small { font-weight: 400; opacity: .85; }
.wunsch-feld { display: grid; gap: 6px; margin-top: 14px; font-weight: 600; }
.wunsch-feld input, .fragebogen textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--rand); background: var(--flaeche); color: var(--text); font: 1rem var(--schrift); }
.fragebogen-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.interessen-hinweis { display: flex; gap: 14px; align-items: center; }

.fragebogen .chip { border: 0; padding: 0; background: none; box-shadow: none; display: block; }
.fragebogen .chips:not(.chips-welt) .chip { display: inline-block; }
.chip-gross span { width: 100%; }
.chip input:checked + span small { opacity: 1; }
.chip input:checked + span small { color: inherit; }

/* Ziel der Eltern (app/ziel.php): Karte auf der Startseite des Kindes, Formular im Elternbereich */
.ziel-karte { display: grid; gap: 10px; padding: 16px 18px; margin: 0 0 26px; border-radius: var(--radius); background: var(--flaeche); border: 2px solid var(--akzent); text-decoration: none; color: var(--text); }
.ziel-karte:hover { border-color: var(--zweit, var(--akzent)); }
.ziel-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; min-width: 0; }
.ziel-kopf > span:first-child { min-width: 0; }
.ziel-kopf small, .ziel-kopf b { display: block; }
.ziel-kopf small { color: var(--leise); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.ziel-preis { flex: none; max-width: 50%; padding: 6px 12px; border-radius: 99px; background: var(--akzent-zart); color: var(--akzent); font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.ziel-balken { position: relative; display: block; height: 12px; border-radius: 99px; background: color-mix(in srgb, var(--text) 14%, transparent); }
.ziel-balken i { display: block; height: 100%; border-radius: 99px; background: var(--akzent); transition: width .5s ease; }
.ziel-marke { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--flaeche); border: 2px solid color-mix(in srgb, var(--text) 30%, transparent); }
.ziel-marke.an { background: var(--akzent); border-color: var(--flaeche); }
.ziel-karte > small { color: var(--leise); }
.toast-ziel { background: var(--flaeche); color: var(--text); border: 2px solid var(--akzent); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.karte-eltern fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.karte-eltern legend { padding: 0; margin-bottom: 6px; font-weight: 600; }
[data-nur][hidden] { display: none; }
/* Ein select mit langer Option sprengt sonst die Karte (Mindestbreite auto im Grid) */
[data-ziel-form], [data-ziel-form] label { min-width: 0; }
[data-ziel-form] select, [data-ziel-form] input:not([type="radio"]) { width: 100%; max-width: 100%; min-width: 0; }

/* Als App installieren (Leiste unter dem Kopf, app.js entscheidet, ob sie erscheint) */
/* Unten schwebend: oben kollidiert sie mit festen Koepfen (oeffentliche Startseite, 14.10.2026 von Daniel gefunden) */
.installieren { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 12px; width: min(calc(100% - 32px), 460px); padding: 10px 12px 10px 14px; border-radius: 18px; background: var(--flaeche, #fff); border: 1px solid var(--rand, rgba(0,0,0,.1)); color: var(--text, #17142b); box-sizing: border-box; box-shadow: 0 12px 36px rgba(10, 8, 30, .35); }
.installieren[hidden] { display: none; }
.installieren .logo-marke { flex: none; }
.installieren p { margin: 0; flex: 1; min-width: 0; line-height: 1.35; }
.installieren p b, .installieren p small { display: block; }
.installieren p small { color: var(--leise); }
.installieren .knopf { flex: none; }
.installieren-weg { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--leise); cursor: pointer; }
.installieren-weg:hover { color: var(--text); }
.teilen-zeichen { vertical-align: -3px; }
@media (max-width: 440px) {
    .installieren { gap: 8px; padding: 10px 6px 10px 14px; }
    .installieren .logo-marke { display: none; }
}
@media (min-width: 561px) { body:has(.installieren:not([hidden])) .toasts { bottom: 110px; } }

/* Am Handy kommen Meldungen oben unter dem Kopf. Unten verdeckten sie Pruefen, Weiter und Ergebnis ansehen. */
@keyframes rein-oben { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 560px) {
  .toasts { top: 68px; bottom: auto; }
  .toasts .toast { animation-name: rein-oben; }
  /* In der Demo liegt unter dem Kopf noch die zweizeilige Leiste: Meldung darunter, sonst verdeckt sie das Umschalten */
  body:has(.demo-leiste) .toasts { top: 164px; }
}

/* Lieblingsthema: Motive je Kind (Ball, Note, Pfote, Edelstein, Controller, Handball). Farben kommen aus der Welt. */
body[data-thema="fussball"] { --thema-bild: url("/assets/thema/fussball.svg"); }
body[data-thema="tanzen"] { --thema-bild: url("/assets/thema/tanzen.svg"); }
body[data-thema="tiere"] { --thema-bild: url("/assets/thema/tiere.svg"); }
body[data-thema="beauty"] { --thema-bild: url("/assets/thema/beauty.svg"); }
body[data-thema="gaming"] { --thema-bild: url("/assets/thema/gaming.svg"); }
body[data-thema="handball"] { --thema-bild: url("/assets/thema/handball.svg"); }
.jubel-thema svg { width: 46px; height: 46px; display: block; }
/* Plakette oben rechts auf jeder Aufgabe: Kreis in Akzentfarbe, Motiv darin */
body[data-thema] .aufgabe.karte { position: relative; }
body[data-thema] .aufgabe.karte::before,
body[data-thema] .aufgabe.karte::after { content: ""; position: absolute; top: -17px; right: 20px; width: 34px; height: 34px; pointer-events: none; }
body[data-thema] .aufgabe.karte::before { border-radius: 50%; background: var(--akzent); box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
body[data-thema] .aufgabe.karte::after { top: -10px; right: 27px; width: 20px; height: 20px; background: var(--akzent-text); -webkit-mask: var(--thema-bild) center / contain no-repeat; mask: var(--thema-bild) center / contain no-repeat; }
/* Startseite: die Szene je Thema steht in thema.css */

/* ---------- Sticker: je seltener, desto mehr Bewegung, Groesse und Glanz ---------- */
.sticker .st-strahlen { transform-box: view-box; transform-origin: 50px 50px; opacity: .5; }
.sticker-s5 .st-strahlen { opacity: .85; }
.sticker .st-wisch { transform-box: view-box; transform-origin: 50px 50px; transform: rotate(20deg) translateX(-60px); }
@media (prefers-reduced-motion: no-preference) {
  .sticker-da .st-strahlen { animation: st-drehen 26s linear infinite; }
  .sticker-s5.sticker-da .st-strahlen { animation-duration: 12s; }
  .sticker-da .st-wisch { animation: st-wisch 5.5s ease-in-out infinite; }
  .sticker-s4 .st-wisch { animation-duration: 3.8s; }
  .sticker-s5 .st-wisch { animation-duration: 2.6s; }
  .sticker .st-funke { transform-box: fill-box; transform-origin: center; animation: st-funkeln 1.8s ease-in-out infinite; }
  .sticker .st-funke-1 { animation-delay: .6s; }
  .sticker .st-funke-2 { animation-delay: 1.2s; }
  .album-platz.da.selten-5 .sticker, .enthuellung .sticker-s5 { animation: st-schweben 3.2s ease-in-out infinite; }
}
@keyframes st-drehen { to { transform: rotate(360deg); } }
@keyframes st-wisch { 0%, 50% { transform: rotate(20deg) translateX(-60px); } 100% { transform: rotate(20deg) translateX(200px); } }
@keyframes st-funkeln { 50% { transform: scale(.35); opacity: .4; } }
@keyframes st-schweben { 50% { transform: translateY(-5px) rotate(-2deg); } }
.sticker-s4.sticker-da { filter: drop-shadow(0 0 10px rgba(138, 61, 255, .45)) drop-shadow(0 4px 6px rgba(0, 0, 0, .2)); }
.sticker-s5.sticker-da { filter: drop-shadow(0 0 14px rgba(255, 207, 63, .65)) drop-shadow(0 4px 8px rgba(0, 0, 0, .22)); }

/* Album: Groesse waechst mit der Seltenheit, Legendaeres nimmt die ganze Breite einer Doppelspalte */
.album { grid-auto-flow: dense; }
.album-platz .album-bild { height: auto; min-height: 96px; }
.album-platz.selten-1 .album-bild .sticker { width: 84px; height: 84px; }
.album-platz.selten-2 .album-bild .sticker { width: 92px; height: 92px; }
.album-platz.selten-3 .album-bild .sticker { width: 104px; height: 104px; }
.album-platz.selten-4 .album-bild .sticker { width: 118px; height: 118px; }
.album-platz.selten-5 .album-bild .sticker { width: 140px; height: 140px; }
.album-platz.da.selten-4 { border: 2px solid transparent; background: linear-gradient(var(--flaeche), var(--flaeche)) padding-box, linear-gradient(135deg, #c79bff, #8a3dff, #ff7ac0) border-box; }
.album-platz.da.selten-5 { grid-column: span 2; border: 3px solid transparent; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, #ffd23d 18%, var(--flaeche)), var(--flaeche) 70%) padding-box, linear-gradient(120deg, #ff8fbf, #ffd166, #7be0b0, #7fb4ff, #b48bff, #ff8fbf) border-box; }
.album-platz.da.selten-5 .album-titel { font-size: 1.2rem; }
.abz-selten { display: inline-block; }
.album-platz.da.selten-4 .abz-selten, .album-platz.da.selten-5 .abz-selten, .enthuellung .abz-selten { padding: 1px 8px; border-radius: 99px; color: #fff; background: var(--selten); }
.album-platz.da.selten-5 .abz-selten, .enthuellung.selten-5 .abz-selten { background: linear-gradient(90deg, #ff5fa8, #ffb52e, #2fc98a, #4f8dff, #a66bff); }

/* Grosse Enthuellung fuer epische und legendaere Sticker */
.enthuellung { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 50% 40%, rgba(60, 20, 90, .78), rgba(8, 6, 24, .92)); backdrop-filter: blur(4px); text-align: center; color: #fff; }
.enthuellung-karte { display: grid; justify-items: center; gap: 10px; max-width: 420px; }
.enth-bild { display: block; }
.enthuellung-karte .sticker { width: min(64vw, 240px); height: min(64vw, 240px); }
.enthuellung-karte small { color: rgba(255, 255, 255, .8); }
.enthuellung-karte h2 { color: #fff; font-size: 1.7rem; margin: 0; }
.enthuellung-kopf { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: #ffd23d; }
@media (prefers-reduced-motion: no-preference) {
  .enthuellung-karte .enth-bild { animation: enth-rein .9s cubic-bezier(.2, 1.5, .4, 1) both; }
  .enthuellung-karte > :not(.enth-bild) { animation: enth-text .5s .55s ease both; }
}
@keyframes enth-rein { from { transform: scale(.2) rotate(-200deg); opacity: 0; } }
@keyframes enth-text { from { transform: translateY(10px); opacity: 0; } }

/* ---------- Weiterempfehlen (Startseite, Beta, Elternbereich, eigene Seite) ---------- */
.teilen { display: grid; gap: 16px; margin: 28px 0 0; padding: 24px 22px; border-radius: 24px; color: var(--text, #14112b); background: radial-gradient(420px 220px at 100% 0, rgba(255, 95, 162, .14), transparent 70%), radial-gradient(420px 240px at 0 100%, rgba(47, 224, 176, .14), transparent 70%), var(--flaeche, #f7f6fb); border: 1px solid var(--rand, #e8e7f0); }
.teilen h2 { margin: 0 0 6px; font-size: clamp(22px, 3.4vw, 30px); letter-spacing: -0.03em; line-height: 1.1; }
.teilen p { margin: 0; line-height: 1.6; }
.teilen-text p:not(.teilen-ueber) { color: var(--leise, #5f5c75); max-width: 60ch; }
.teilen-ueber { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #5b3df5; margin-bottom: 6px !important; }
.teilen-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.teilen-knoepfe .knopf { min-height: 46px; }
.teilen-haupt { background: linear-gradient(135deg, #7b5cff, #4a2bf0); color: #fff; }
.teilen-rueck { min-height: 1.4em; font-weight: 600; color: var(--gut, #1d8a4b); overflow-wrap: anywhere; }
.teilen-knapp { padding: 18px; }
.teilen-knapp h2 { font-size: 20px; }
.teilen-zahlen { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--flaeche2, #f7f6fb); font-size: .92rem; }
.knopf-teilen { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) { .knopf-teilen span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .knopf-teilen { padding-left: 11px; padding-right: 11px; } }


/* Hilfe in Stufen beim Ueben: Angebot unter „Noch nicht.“, der passende Knopf pulsiert sanft */
.hilfe-angebot { margin: 8px 0 0; font-weight: 600; }
.knopf.lockt { box-shadow: 0 0 0 0 color-mix(in srgb, var(--akzent) 55%, transparent); animation: lockt 1.6s ease-out 3; border-color: var(--akzent); }
@keyframes lockt { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .knopf.lockt { animation: none; } }

/* ---------- Schmierzettel: Karoblock ueber der Aufgabe (block() in app.js) ---------- */
.block-zeile { display: flex; justify-content: flex-end; margin: -4px 0 12px; }
.block-knopf { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; position: relative; }
.block-knopf.hat-notizen::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--akzent); border: 2px solid var(--flaeche); }
html.block-offen, html.block-offen body { overflow: hidden; }
.schmierblock { position: fixed; inset: 0; height: 100vh; height: 100dvh; z-index: 90; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; display: flex; flex-direction: column; background: var(--bg); color: var(--text); }
.block-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); background: var(--flaeche); border-bottom: 1px solid var(--rand); }
.block-leiste { flex-wrap: nowrap; gap: 5px; padding-left: 10px; padding-right: 10px; }
.block-leiste > * { flex-shrink: 0; }
.block-leiste .taste { padding: 7px 10px; font-size: .9rem; white-space: nowrap; }
.block-leiste .block-werkzeug { display: inline-grid; place-items: center; box-sizing: border-box; width: 40px; height: 40px; padding: 0; }
.block-leiste .taste[aria-pressed="true"] { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.block-leiste .knopf { margin-left: auto; padding: 8px 14px; }
.block-aufgabe { max-height: 28vh; overflow: auto; padding: 10px 16px; background: var(--flaeche); border-bottom: 1px solid var(--rand); font-size: .95rem; line-height: 1.45; }
.block-aufgabe .aufgabe-bild { margin: 8px 0 0; }
.block-aufgabe .aufgabe-bild svg { display: block; width: auto; max-width: 100%; max-height: 19vh; }
.block-flaeche { position: relative; flex: 1; min-height: 0; display: flex; overflow: hidden; padding: 10px 22px 14px; background: var(--bg2); }
.block-blatt { display: block; flex: 1 1 0; min-width: 0; height: 100%; border-radius: 6px; box-shadow: 0 2px 10px rgba(20, 20, 40, .18); touch-action: none; cursor: crosshair; background-color: #fffdf7; background-image: linear-gradient(rgba(60, 90, 160, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(60, 90, 160, .2) 1px, transparent 1px); background-size: 20px 20px; }
.block-zoom { position: absolute; right: 30px; bottom: 22px; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(20, 20, 40, .2); }
.block-zoom .taste { min-width: 40px; height: 36px; padding: 0 8px; border-radius: 999px; color: #1f2a5a; background: #fff; border-color: #d9dcea; }
.block-zoom .block-zoom-wert { min-width: 62px; font-size: .85rem; font-variant-numeric: tabular-nums; }
.block-zoom.verschoben .block-zoom-wert { background: #1f2a5a; color: #fff; border-color: #1f2a5a; }
.block-hinweis { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: rgba(31, 42, 90, .82); color: #fff; font-size: .85rem; pointer-events: none; white-space: nowrap; }
/* Werkzeuge mit Druck, Farben, zwei Radierern und Textmarker (seit 15.10.2026 spaet). Am Handy gilt sonst .taste mit 46 px Mindestbreite, das sprengt die Zeile */
.block-leiste { gap: 4px; padding-left: 8px; padding-right: 8px; }
.block-leiste .block-werkzeug { position: relative; min-width: 0; min-height: 0; width: 40px; height: 40px; }
.block-leiste .knopf { padding: 8px 12px; font-size: .95rem; letter-spacing: 0; }
.block-werkzeug.hat-menue::after { content: ""; position: absolute; right: 3px; bottom: 3px; border: 3px solid transparent; border-right-color: currentColor; border-bottom-color: currentColor; border-radius: 0 0 2px 0; opacity: .6; }
.block-farbpunkt { position: absolute; right: 3px; top: 3px; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.block-werkzeug.punkt svg { stroke-dasharray: 3 1.6; }
/* Menue hell wie das Papier, in jeder Welt gleich, damit Blau auch in der dunklen Arena zu sehen ist */
.block-menue { position: absolute; z-index: 5; display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: #fff; color: #1f2a5a; border: 1px solid #d9dcea; box-shadow: 0 12px 34px rgba(10, 10, 30, .3); }
.block-menue[hidden] { display: none; }
.block-menue-zeile { display: flex; gap: 8px; align-items: center; }
.block-menue button { cursor: pointer; font: 600 .9rem var(--schrift); color: #1f2a5a; text-transform: none; letter-spacing: 0; box-shadow: none; }
.block-farbe { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 2px solid transparent; background: none; }
.block-farbe span { display: block; width: 30px; height: 30px; border-radius: 50%; }
.block-farbe[aria-pressed="true"] { border-color: #1f2a5a; }
.block-dicke { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 12px; border: 1px solid #d9dcea; background: #fffdf7; }
.block-dicke span { display: block; border-radius: 50%; background: #1f2a5a; }
.block-dicke span.ring { background: none; border: 1.5px solid #1f2a5a; }
.block-menue .block-dicke[aria-pressed="true"], .block-menue .block-art[aria-pressed="true"] { border-color: #1f2a5a; box-shadow: inset 0 0 0 1.5px #1f2a5a; }
.block-art { flex: 1; height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid #d9dcea; background: #f3f4fa; white-space: nowrap; }
.block-menue .block-alles-weg { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #f3f4fa; border-color: #d9dcea; color: #c8322b; }
.block-alles-weg span { display: inline-flex; }
.block-menue-tipp { margin: 0; font-size: .8rem; color: #5b6385; }
/* Aufgabe ein- und ausblenden am Aufgabenfeld selbst */
.block-aufgabe { position: relative; padding-right: 52px; }
.block-aufgabe[hidden] { display: none; }
.block-aufgabe-weg { position: absolute; top: 6px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 10px; border: 1px solid var(--rand); background: var(--flaeche2); color: var(--text); cursor: pointer; }
.block-aufgabe-zeigen { position: absolute; left: 30px; bottom: 22px; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid #d9dcea; background: rgba(255, 255, 255, .94); color: #1f2a5a; font: 600 .88rem var(--schrift); box-shadow: 0 2px 10px rgba(20, 20, 40, .2); cursor: pointer; }
.block-aufgabe-zeigen[hidden] { display: none; }
/* Geteilte Ansicht: Fenster am unteren Rand nur zum Ansehen der Notiz. Hoehe und Abstand zur Tastatur setzt app.js.
   Ebene unter Jubel-Karte (60), Enthuellung (70) und Meldungen (80), damit deren Knoepfe nie verdeckt sind */
.block-klein-kopf { display: none; }
.schmierblock.klein { top: auto; bottom: 0; z-index: 55; border-radius: 18px 18px 0 0; box-shadow: 0 -8px 28px rgba(10, 10, 30, .28); overflow: visible; }
.schmierblock.klein .block-leiste, .schmierblock.klein .block-menue, .schmierblock.klein .block-aufgabe, .schmierblock.klein .block-aufgabe-zeigen, .schmierblock.klein .block-hinweis { display: none; }
.schmierblock.klein .block-klein-kopf { display: block; flex: none; border-radius: 18px 18px 0 0; background: var(--flaeche); border-bottom: 1px solid var(--rand); touch-action: none; cursor: ns-resize; }
.block-griff { display: flex; justify-content: center; align-items: center; height: 16px; padding-top: 4px; }
.block-griff span { width: 44px; height: 5px; border-radius: 3px; background: var(--leise); opacity: .6; }
.block-griff:focus-visible { outline: none; }
.block-griff:focus-visible span { opacity: 1; background: var(--akzent); }
.block-klein-zeile { display: flex; align-items: center; gap: 8px; padding: 2px 10px 8px 16px; }
.block-klein-titel { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.block-klein-titel b { font-size: .95rem; }
.block-klein-titel small { font-size: .78rem; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-klein-zeile .taste { display: inline-flex; align-items: center; gap: 6px; min-width: 0; min-height: 0; height: 40px; padding: 0 12px; font-size: .9rem; cursor: pointer; }
.block-klein-zeile .knopf { padding: 8px 14px; font-size: .95rem; letter-spacing: 0; }
.schmierblock.klein .block-flaeche { padding-top: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.schmierblock.klein .block-zoom { bottom: 14px; transform: scale(.88); transform-origin: right bottom; }
.block-blatt[data-werkzeug="ansehen"] { cursor: grab; }
html.block-klein body { padding-bottom: calc(var(--block-klein, 0px) + 24px); }

/* Mathebuch (Elternbereich, app/seiten/eltern-buch.php) und Liste fuer den Betreiber */
.buch-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.buch-reihe > label { min-width: 0; }
.buch-datei input[type="file"] { width: 100%; min-width: 0; padding: 14px; border: 2px dashed var(--rand); border-radius: var(--radius-klein); background: var(--flaeche2); font: inherit; box-sizing: border-box; }
.buch-hinweis { margin: -6px 0 0; }
.buch-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.buch-fotos-klein { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 8px; }
.buch-foto { margin: 0; display: grid; gap: 4px; min-width: 0; }
.buch-foto img, .buch-vorschau-bild img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-klein); border: 1px solid var(--rand); background: var(--flaeche2); }
.buch-foto figcaption { text-align: center; }
.buch-foto-heic, .buch-vorschau-bild { display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: var(--radius-klein); border: 1px solid var(--rand); background: var(--flaeche2); font-weight: 700; text-align: center; padding: 6px; overflow: hidden; }
.buch-vorschau { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.buch-vorschau-bild { padding: 0; }
.buch-vorschau-text { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.buch-offen { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 10px; }
.buch-offen li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.buch-offen .marke { margin-top: 0; }
.buch-karte .kind-karte-info { margin: 10px 0 0; }
.kind-neu-fehlt { margin: 4px 0 0; display: inline; }
.buch-weg { margin: 8px 0 0; text-align: center; }
.buch-ansicht .buch-angaben { padding-left: 18px; }
.buch-ansicht-fotos { display: grid; gap: 16px; margin: 20px 0; }
.buch-ansicht-fotos img { display: block; width: 100%; height: auto; border-radius: 12px; }

.kind-neu-vorbelegt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }

/* Grundschule 3. Klasse (inhalt/gs3/_helfer.php): Hunderterplatten und schriftliches Rechnen im Karokaestchen */
.gs3-bloecke { max-width: 100%; }
.gs3-platte { fill: var(--akzent-zart); stroke: var(--akzent); stroke-width: 2; }
.gs3-raster { stroke: var(--akzent); stroke-width: .6; opacity: .5; }
.gs3-schriftlich { border-collapse: collapse; margin: 12px 0; font: 700 1.35rem var(--schrift); font-variant-numeric: tabular-nums; }
.gs3-schriftlich td { width: 1.7em; height: 1.75em; padding: 0; text-align: center; vertical-align: middle; }
.gs3-schriftlich td.gs3-z { border: 1px solid var(--rand); background: var(--flaeche); }
.gs3-schriftlich td.gs3-leer { border: 1px dashed var(--rand); }
.gs3-schriftlich td.gs3-frei { background: var(--flaeche2); }
.gs3-schriftlich td.gs-gesucht { background: var(--akzent-zart); color: var(--akzent); }
.gs3-schriftlich td.gs3-op { color: var(--akzent); font-size: 1.5rem; width: 1.3em; }
.gs3-schriftlich tr.gs3-ergebnis td:not(.gs3-op) { border-top: 3px solid var(--text); }
.gs3-schriftlich tr.gs3-ueber td { height: 1.1em; font-size: .8rem; color: var(--akzent); }

/* ---- Grundschule 3. Klasse, Lernbereich 7 Geometrie (inhalt/gs3/lb7-geometrie.php) ----
   Kaestchengitter, Spiegelachse, Plan mit Planquadraten, Wuerfelnetz, Bauplan mit Schraegbild.
   Die Texte der Aufgaben sprechen von der „roten Achse“ und den „grauen Feldern“: Farben dafuer nicht aendern. */
.gs3-l7-bild { width: 100%; }
.gs3-l7-grund { fill: var(--flaeche); stroke: none; }
.gs3-l7-zelle { fill: var(--akzent); }
.gs3-l7-linie { stroke: color-mix(in srgb, var(--text) 30%, transparent); stroke-width: 1; }
.gs3-l7-sperre { fill: color-mix(in srgb, var(--leise) 70%, var(--flaeche)); }
.gs3-l7-kopf { font: 700 14px var(--schrift); fill: var(--leise); }
.gs3-l7-achse { stroke: var(--schlecht); stroke-width: 4; stroke-dasharray: none; stroke-linecap: round; }
.gs3-l7-punkt { fill: var(--zweit); stroke: var(--flaeche); stroke-width: 2.5; }
.gs3-l7-frage { fill: var(--akzent); }
.gs3-l7-planfeld.gs3-l7-null { fill: var(--flaeche2); stroke: var(--rand); stroke-width: 2; }
.gs3-l7-planzahl { font-size: 20px; }
.gs3-l7-boden { fill: var(--flaeche2); stroke: var(--rand); stroke-width: 1.5; }
.gs3-l7-w .gs-k-front, .gs3-l7-w .gs-k-oben, .gs3-l7-w .gs-k-seite { stroke-width: 1.6; }
/* Deckende Flaechen: In Arena ist --akzent-zart durchsichtig, dann scheinen verdeckte Wuerfel durch. */
.gs3-l7-w .gs-k-front { fill: color-mix(in srgb, var(--akzent) 24%, var(--flaeche)); }
.gs3-l7-w .gs-k-oben { fill: color-mix(in srgb, var(--akzent) 12%, var(--flaeche)); }
.gs3-l7-w .gs-k-seite { fill: color-mix(in srgb, var(--akzent) 42%, var(--flaeche)); }
.gs3-l7-titel { font-weight: 700; }
.gs3-l7-vorne { fill: var(--leise); font-weight: 700; }
.gs3-l7-name { font-weight: 800; font-size: 14px; }
.gs3-l7-legtext { font-size: 13px; }

/* Lernbereich 8 (Daten und Zufall), Klasse 3. Nur Groessen und Abstaende, keine festen Farben. */
.gs3-l8-sack { max-width: 230px; }
.gs3-l8-rad { max-width: 190px; }
.gs3-l8-paarbild { max-width: 240px; }
.gs3-l8-paar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.gs3-l8-paar .gs3-l8-sack { flex: 1 1 140px; max-width: 200px; }
.gs3-l8-tab td, .gs3-l8-tab th { min-width: 2.6em; }
@media (max-width: 420px) { .gs3-l8-tab td, .gs3-l8-tab th { padding: 6px 6px; } }
.gs3-l8-striche th { white-space: nowrap; }
.gs3-l8-striche td { vertical-align: middle; }
.gs3-l8-striche .gs-striche { margin: 2px 0; }

/* Hobbys auf der Buchseite (17.10.2026) */
.hobby-wahl { border: 0; padding: 0; margin: 0; min-width: 0; }
.hobby-wahl legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.formular-stapel .hobby-wahl label.chip { display: inline-block; border: 0; padding: 0; background: none; font-weight: 500; }
.hobby-wahl label.chip > span { padding: 8px 14px; font-weight: 500; }

/* Geraet ans Kind geben (ein Geraet fuer die ganze Familie) */
.geraet-geben .chips { margin-top: 10px; }
.geraet-geben-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 18px; }
.wechseln-weiter { margin: 16px 0 0; text-align: center; }
.wechseln-ab { margin-top: 12px; text-align: center; }

/* Rueckmeldung der Eltern in der Beta: Knopf rechts unten, Fenster als <dialog> */
.ticket-knopf { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 45; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; background: var(--akzent); color: var(--akzent-text); font-weight: 700; font-size: .92rem; text-decoration: none; box-shadow: 0 8px 24px rgba(10, 8, 30, .28); }
.ticket-knopf:hover { filter: brightness(1.06); }
body:has(.installieren:not([hidden])) .ticket-knopf { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 84px); }
body:has(.ticket-knopf) .fuss { padding-bottom: 76px; }
@media (max-width: 600px) {
  .ticket-knopf { padding: 13px; }
  .ticket-knopf span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.ticket-fenster { width: min(calc(100% - 32px), 460px); max-height: calc(100dvh - 32px); padding: 18px; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); color: var(--text); box-shadow: 0 24px 60px rgba(10, 8, 30, .35); box-sizing: border-box; }
.ticket-fenster::backdrop { background: rgba(10, 8, 30, .45); }
.ticket-fenster-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ticket-fenster-kopf h2 { margin: 0; font-size: 1.2rem; }
.ticket-zu { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin: -6px -6px 0 0; border: 0; border-radius: 10px; background: none; color: var(--leise); cursor: pointer; }
.ticket-form { display: grid; gap: 12px; }
.ticket-form textarea { width: 100%; box-sizing: border-box; min-height: 120px; resize: vertical; font: inherit; font-weight: 400; }
.ticket-arten { display: flex; flex-wrap: wrap; gap: 8px; }
.ticket-art { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--rand); font-weight: 600; cursor: pointer; }
.ticket-art:has(input:checked) { border-color: var(--akzent); background: var(--akzent-zart); }
.ticket-art input { accent-color: var(--akzent); margin: 0; }
.ticket-hinweis { margin: 0; font-size: .85rem; }
/* Betreiber-Uebersicht /eltern/admin */
.ticket { padding: 12px 0; border-top: 1px solid var(--rand); }
.ticket:first-of-type { border-top: 0; }
.ticket-kopf { margin: 0 0 6px; font-size: .92rem; overflow-wrap: anywhere; }
.ticket-text { margin: 0 0 10px; white-space: normal; overflow-wrap: anywhere; }
.ticket form { margin: 0; }
.admin-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.admin-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 14px; }
.admin-balken { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.admin-balken li { display: grid; grid-template-columns: minmax(0, 1fr) 2.5em; grid-template-rows: auto 6px; gap: 3px 8px; font-size: .92rem; }
.admin-balken span { min-width: 0; overflow-wrap: anywhere; }
.admin-balken b { grid-row: 1; grid-column: 2; text-align: right; font-variant-numeric: tabular-nums; }
.admin-balken i { grid-row: 2; grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--akzent) var(--anteil), var(--rand) var(--anteil)); }
.eltern-titel .chips { align-items: center; }
