/* Tobi Lernt. Blau als Leitfarbe, Papier-Weiß für die Karten, Sonnengelb für Belohnungen. */
/* Schriften werden mitgeliefert, damit die App auch ohne Internet gleich aussieht. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/nunito-latin.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/baloo2-latin.woff2") format("woff2"); }

:root {
  --blue-50: #eef5ff; --blue-100: #dbe9ff; --blue-200: #bcd5ff; --blue-300: #8fb8ff; --blue-400: #5b95ff;
  --blue-500: #2f6bff; --blue-600: #1f52e0; --blue-700: #1a42b4; --blue-800: #152f80; --blue-900: #0f2159;
  --ink: #14233f; --ink-soft: #5b6b88; --line: #e2e9f6; --paper: #fffdf7;
  --mint: #20c997; --coral: #ff6b5e; --sun: #ffc93c;
  --b1: #ff6b5e; --b2: #ff9f1c; --b3: #7bc950; --b4: #3aa0ff; --b5: #f2c300;
  --display: "Baloo 2", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --text: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; font-family: var(--text); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ffb020; outline-offset: 2px; }
[hidden] { display: none !important; }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.fill { fill: currentColor; stroke: none; }

/* ---------- Wurzel der App ---------- */
.device { position: fixed; inset: 0; overflow: hidden; background: #fff; container: dev / inline-size; }
.app { position: absolute; inset: 0; display: flex; flex-direction: column; }
#confetti { position: absolute; inset: 0; z-index: 40; width: 100%; height: 100%; pointer-events: none; }
.toasts { position: absolute; left: 0; right: 0; bottom: 84px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; z-index: 50; padding: 0 12px; }
.toast { background: #12286b; color: #fff; border-radius: 99px; padding: 10px 18px; font-weight: 700; font-size: 14px; text-align: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); animation: toastIn .3s cubic-bezier(.2, 1.2, .4, 1); }
.toast.weg { opacity: 0; transition: opacity .4s; }
#blazor-error-ui { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding: 10px 16px; background: #fff3c4; color: #5a3d00; font-weight: 700; box-shadow: 0 -4px 16px rgba(0, 0, 0, .2); }
#blazor-error-ui .dismiss { cursor: pointer; float: right; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ---------- Bausteine ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 16px; padding: 12px 20px; background: var(--blue-500); color: #fff; font-weight: 700; font-size: 16px; line-height: 1.1; cursor: pointer; box-shadow: 0 4px 0 var(--blue-700); transition: transform .08s, box-shadow .08s, filter .15s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--blue-700); }
.btn.big { min-height: 60px; padding: 16px 28px; border-radius: 20px; font-family: var(--display); font-weight: 800; font-size: 21px; }
.btn.ghost { background: #fff; color: var(--blue-600); border: 2px solid #cfdcf5; box-shadow: 0 4px 0 #cfdcf5; }
.btn.small { padding: 9px 14px; border-radius: 12px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn.danger { color: #c2410c; }
.btn:disabled { background: #c3cde3; color: #fff; box-shadow: 0 4px 0 #a9b6d2; cursor: not-allowed; filter: none; transform: none; }
.btn.ghost:disabled { background: #f1f4fa; color: #98a6c4; border-color: #e0e7f5; box-shadow: 0 4px 0 #e0e7f5; }
.btn.pulse { animation: pulseBtn 1.1s infinite; }
.icon-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .85); color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: #fff; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: inherit; opacity: .85; font-weight: 700; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 6px 0; }
.bar { height: 10px; border-radius: 99px; background: rgba(20, 40, 110, .1); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--blue-500), var(--blue-400)); transform-origin: left; }
.bar.gold i { background: linear-gradient(90deg, #ffb020, #ffd23f); }
.anim .bar i, .anim .fc-bar i, .anim .stack i, .anim .wb i { animation: grow .9s cubic-bezier(.2, .8, .2, 1) both; }
.anim .wb i { transform-origin: bottom; animation-name: growY; }
.h1 { font: 800 30px/1.1 var(--display); margin: 8px 0 12px; }
.h2 { font: 800 22px/1.1 var(--display); margin: 24px 0 10px; }
.lead { color: var(--ink-soft); font-size: 17px; line-height: 1.45; margin-bottom: 8px; }
.hint { color: var(--ink-soft); font-size: 14px; margin-top: 12px; }
.leer { color: var(--ink-soft); text-align: center; padding: 18px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chips-row.small .fchip { font-size: 14px; padding: 7px 12px; }
.fchip { border: 2px solid transparent; background: #fff; border-radius: 99px; padding: 9px 15px; font-weight: 700; font-size: 15px; box-shadow: 0 2px 0 #d7e3fb; cursor: pointer; }
.fchip.on { background: var(--ft, var(--blue-100)); border-color: var(--fc, var(--blue-500)); }
.seg { display: flex; gap: 4px; padding: 5px; background: #fff; border-radius: 18px; box-shadow: 0 2px 0 #d7e3fb; }
.seg button { flex: 1; border: 0; background: none; border-radius: 14px; padding: 12px 10px; font-weight: 700; font-size: 16px; cursor: pointer; }
.seg button.on { background: var(--blue-500); color: #fff; }
.seg.small button { padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 99px; background: #eef2fa; color: #41567f; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.tag.ok { background: #dcf6ea; color: #0b7a53; } .tag.bad { background: #ffe6dd; color: #b2410e; } .tag.arbeit { background: #fff2c9; color: #8a6200; } .tag.neu { background: #e3edff; color: var(--blue-600); }
.k0 { --kc: #c4cfe4; } .k1 { --kc: var(--b1); } .k2 { --kc: var(--b2); } .k3 { --kc: var(--b3); } .k4 { --kc: var(--b4); } .k5 { --kc: var(--b5); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: #f0f4fb; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--kc); }
.pill-fach { padding: 4px 10px; border-radius: 99px; background: var(--ft); color: var(--ink); font-size: 13px; font-weight: 700; border: 1.5px solid var(--fc); white-space: nowrap; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
input[type=text], input[type=password], input[type=number], input[type=search], input:not([type]), select { width: 100%; border: 2px solid #d4def2; border-radius: 12px; padding: 11px 13px; background: #fff; font-size: 16px; font-weight: 400; outline: none; }
input:focus, select:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 107, 255, .15); }

/* ---------- Maskottchen ---------- */
.lumi { display: block; width: 100%; height: auto; overflow: visible; }
.lumi-body { transform-origin: 60px 120px; animation: bob 3.4s ease-in-out infinite; }
.lumi-eyes { transform-box: fill-box; transform-origin: center; animation: blink 5.5s infinite; }
.lumi.jubel .wing-l, .lumi.jubel .wing-r { transform-box: fill-box; }
.lumi.jubel .wing-l { transform-origin: 100% 15%; animation: flapL .45s ease-in-out infinite alternate; }
.lumi.jubel .wing-r { transform-origin: 0 15%; animation: flapR .45s ease-in-out infinite alternate; }
.lumi.jubel .lumi-body { animation: jump .9s ease-in-out infinite; }

/* ---------- Anmeldung ---------- */
.login { position: absolute; inset: 0; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(120% 80% at 50% -10%, #6ea2ff 0%, var(--blue-500) 42%, var(--blue-700) 100%); }
.login-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fc { position: absolute; width: 132px; height: 84px; display: grid; place-items: center; padding-top: 12px; overflow: hidden; border-radius: 12px; background: var(--paper); transform: rotate(var(--r)); box-shadow: 0 16px 30px -12px rgba(5, 15, 60, .6); font: 800 17px var(--display); color: var(--ink); animation: drift 6s var(--d) ease-in-out infinite alternate; opacity: .95; }
.fc i { position: absolute; top: 0; left: 0; right: 0; height: 14px; background: var(--c); }
.login-in { position: relative; z-index: 1; width: 100%; max-width: 400px; text-align: center; color: #fff; }
.login-lumi { width: 120px; margin: 0 auto -6px; }
.login-title { font: 800 46px/1 var(--display); }
.login-sub { margin: 4px 0 18px; opacity: .9; font-size: 18px; }
.login-form { display: grid; gap: 12px; padding: 20px; border-radius: 28px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 24px 50px -20px rgba(5, 15, 70, .75); }
.login-form .check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.login-form .check input { width: 20px; height: 20px; accent-color: var(--blue-500); }
.form-err { color: #b2410e; background: #ffe6dd; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.login-demo { margin-top: 18px; font-size: 14px; }
.login-demo p { opacity: .85; margin-bottom: 8px; }
.login-demo > div { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.login-demo .btn.ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 2px solid rgba(255, 255, 255, .45); box-shadow: none; }

/* ---------- Rahmen mit Navigation ---------- */
.shell { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.shell.kid { background: linear-gradient(180deg, #d3e5ff 0, #e8f1ff 240px, #f6f9ff 100%); --maxw: 760px; }
.shell.eltern { background: #f2f5fb; --maxw: 1100px; }
.main { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding: 14px 16px 24px; }
.main > * { width: 100%; max-width: var(--maxw); flex: none; }
.nav { order: 2; display: flex; align-items: center; gap: 6px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -14px rgba(18, 40, 107, .35); }
.nav ul { flex: 1; display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav li { flex: 1; }
.nav-brand, .nav-out { display: none; }
.nav-btn { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 2px; border: 0; background: none; border-radius: 16px; font-weight: 700; font-size: 12px; color: #6b7da3; cursor: pointer; }
.nav-btn .ico { width: 36px; height: 36px; padding: 7px; border-radius: 13px; transition: background .2s, transform .2s; }
.nav-btn.on { color: var(--blue-600); }
.nav-btn.on .ico { background: var(--blue-500); color: #fff; transform: translateY(-2px); }
.eltern .nav-btn .ico { border-radius: 10px; }
.topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.tl-brand { display: flex; align-items: center; gap: 8px; font: 800 20px var(--display); color: var(--blue-800); }
.tl-brand small { font: 700 12px var(--text); color: var(--ink-soft); background: #e3ebf8; padding: 3px 8px; border-radius: 99px; }
.tl-lumi { width: 36px; }
.tl-right { display: flex; align-items: center; gap: 8px; }
.serie-chip { background: #fff; border-radius: 99px; padding: 6px 13px; font: 800 17px var(--display); box-shadow: 0 2px 0 #d7e3fb; }
.nb-logo { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--blue-500); color: #fff; font: 800 20px var(--display); }

/* ---------- Kinder: Start ---------- */
.hero { display: flex; align-items: center; gap: 6px; margin: 4px 0 14px; }
.hero-text h1 { font: 800 clamp(28px, 7.5cqw, 40px)/1.05 var(--display); color: var(--blue-900); }
.hero-text p { margin-top: 8px; font-size: 17px; line-height: 1.4; color: #31466e; }
.hero-lumi { width: 108px; flex: none; }
.hero.small .hero-lumi { width: 88px; }
.cta { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%; border: 0; border-radius: 28px; padding: 20px 22px; color: #fff; text-align: left; background: linear-gradient(135deg, #3b78ff, var(--blue-700)); box-shadow: 0 14px 28px -12px rgba(31, 82, 224, .7), inset 0 -5px 0 rgba(0, 0, 0, .2); cursor: pointer; transition: transform .1s; }
.cta:active { transform: translateY(3px); }
.cta:disabled { background: linear-gradient(135deg, #a9b8d6, #8c9dc2); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .12); cursor: default; }
.cta-glow { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); transform: translateX(-120%); animation: shine 5.5s 1.2s infinite; }
.cta:disabled .cta-glow { display: none; }
.cta-text { position: relative; flex: 1; display: grid; gap: 2px; }
.cta-text b { font: 800 28px/1.1 var(--display); }
.cta-text small { font-size: 15px; opacity: .9; }
.cta-go { position: relative; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); color: #5a3d00; box-shadow: 0 4px 0 #e0a800; }
.cta-go .ico { width: 26px; height: 26px; }
.bonus-ping { width: 100%; margin-top: 12px; border: 0; border-radius: 18px; padding: 12px 16px; background: linear-gradient(135deg, #fff3c4, #ffd966); font-weight: 700; font-size: 15px; text-align: left; cursor: pointer; }
.fach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fach-card { display: flex; flex-direction: column; gap: 8px; border: 0; border-radius: 24px; padding: 14px; background: #fff; text-align: left; box-shadow: 0 5px 0 var(--ft), 0 14px 22px -14px rgba(20, 40, 110, .4); cursor: pointer; transition: transform .15s; }
.fach-card:hover:not(:disabled) { transform: translateY(-3px); }
.fach-card:active:not(:disabled) { transform: translateY(2px); }
.fach-card:disabled { opacity: .6; cursor: default; }
.fc-emoji { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; background: var(--ft); font-size: 27px; }
.fc-name { font: 800 21px/1 var(--display); }
.fc-bar { height: 8px; border-radius: 99px; background: var(--ft); overflow: hidden; }
.fc-bar i { display: block; height: 100%; width: var(--w); background: var(--fc); border-radius: 99px; transform-origin: left; }
.fc-info { font-size: 14px; color: var(--ink-soft); }
.fc-info b { color: var(--ink); }
.kasten-wrap { padding: 16px 12px 14px; border-radius: 28px; background: #fff; box-shadow: 0 5px 0 #d4e2fb; }
.kasten { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; align-items: end; }
.k-col { text-align: center; min-width: 0; }
.k-zahl { font: 800 21px/1 var(--display); margin-bottom: 4px; }
.k-jar { position: relative; height: 96px; display: flex; align-items: flex-end; overflow: hidden; border: 3px solid #cadcfb; border-radius: 12px 12px 15px 15px; background: #edf3ff; }
.k0 .k-jar { border-style: dashed; background: #f6f8fc; }
.k-jar i { display: block; width: 100%; height: var(--h); background: var(--kc); border-radius: 7px 7px 0 0; transform-origin: bottom; animation: fillUp 1s cubic-bezier(.2, .9, .3, 1.1) both; }
.k-star { position: absolute; top: 4px; left: 0; right: 0; font-size: 20px; color: var(--b5); text-shadow: 0 1px 0 #b58d00; animation: twinkle 2.4s ease-in-out infinite; }
.k-name { margin-top: 6px; font-weight: 800; font-size: 12.5px; }
.k-sub { font-size: 10.5px; line-height: 1.2; color: var(--ink-soft); }
.kasten-note { margin-top: 12px; padding: 0 4px; font-size: 14px; line-height: 1.45; color: #4a5d82; }
.next-reward { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px; border-radius: 24px; background: linear-gradient(135deg, #fff7d6, #ffe9a0); }
.nr-emoji, .ms-emoji { font-size: 40px; width: 62px; height: 62px; flex: none; display: grid; place-items: center; border-radius: 20px; background: rgba(255, 255, 255, .75); }
.nr-body, .ms-body { flex: 1; display: grid; gap: 6px; min-width: 0; }
.nr-body span, .ms-body span, .nr-body small, .ms-body small { font-size: 14px; color: #5a4a14; }

/* ---------- Kinder: Lernen, Fotos, Belohnungen ---------- */
.setup-box { display: flex; align-items: center; gap: 14px; margin: 16px 0; padding: 16px; border-radius: 22px; background: #fff; }
.sb-num { min-width: 64px; text-align: center; font: 800 46px/1 var(--display); color: var(--blue-500); }
.setup-box b { display: block; font-size: 18px; }
.setup-box span { color: var(--ink-soft); font-size: 15px; }
.merk-fach { margin-bottom: 10px; border-radius: 20px; background: #fff; overflow: hidden; box-shadow: 0 3px 0 var(--ft); }
.merk-fach summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; list-style: none; cursor: pointer; font-size: 18px; }
.merk-fach summary::-webkit-details-marker { display: none; }
.merk-fach summary b { flex: 1; font-family: var(--display); font-size: 20px; }
.merk-fach summary em { font-style: normal; font-weight: 700; font-size: 13px; padding: 2px 9px; border-radius: 99px; background: var(--ft); }
.merk-fach summary .ico { transition: transform .2s; }
.merk-fach[open] summary .ico { transform: rotate(90deg); }
.merk-fach ul { margin: 0; padding: 0 16px 14px; list-style: none; display: grid; gap: 10px; }
.merk-fach li { padding: 12px 14px; border-radius: 14px; background: var(--ft); border-left: 5px solid var(--fc); }
.merk-fach li p { margin-top: 4px; line-height: 1.45; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 12px 0 4px; padding: 30px 16px; border: 3px dashed var(--blue-300); border-radius: 28px; background: rgba(255, 255, 255, .75); text-align: center; cursor: pointer; transition: background .2s, transform .2s; }
.drop:hover { background: #fff; transform: scale(1.01); }
.drop b { font: 800 24px var(--display); }
.drop span:last-child { color: var(--ink-soft); font-size: 15px; }
.drop-ico { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-500); color: #fff; box-shadow: 0 6px 0 var(--blue-700); animation: bob 3s ease-in-out infinite; }
.drop-ico .ico { width: 36px; height: 36px; }
.foto-prev { display: flex; gap: 14px; align-items: flex-start; margin: 12px 0; padding: 14px; border-radius: 22px; background: #fff; }
.foto-prev img { width: 112px; height: 112px; object-fit: cover; border-radius: 14px; flex: none; }
.btn-row { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }
.btn-row .btn { flex: 1; }
.foto-liste { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fl { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: #fff; }
.fl > div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.fl > div span { font-size: 14px; color: var(--ink-soft); }
.fl small { color: var(--ink-soft); font-size: 13px; }
.fl.Fehler { box-shadow: 0 0 0 2px #ffb89c; }
.fl-thumb, .up-thumb { width: 52px; height: 52px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: var(--blue-50); color: var(--blue-500); }
.fl-thumb img, .up-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ms-liste { display: grid; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.ms { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; background: #fff; }
.ms.ok { background: linear-gradient(135deg, #fff7d6, #ffe9a0); box-shadow: 0 0 0 3px #ffd23f; }
.ms.done { opacity: .75; }
.ms-ribbon { position: absolute; top: 12px; right: -30px; transform: rotate(35deg); padding: 3px 36px; background: var(--coral); color: #fff; font: 800 12px var(--display); }

.h2.tight { margin-top: 8px; }
.foto-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; padding: 10px 14px; border: 2px solid var(--fc); border-radius: 18px; background: var(--ft); font-size: 18px; }
.foto-kopf .link-btn { color: var(--ink); }
label.galerie { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding: 10px; color: var(--blue-600); font-size: 15px; cursor: pointer; }
.foto-reihe { display: flex; gap: 12px; margin: 0 0 14px; padding: 8px 4px 8px; overflow-x: auto; list-style: none; }
.foto-reihe li { position: relative; flex: none; width: 92px; text-align: center; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.foto-reihe img { display: block; width: 92px; height: 120px; margin-bottom: 4px; object-fit: cover; border: 3px solid #fff; border-radius: 14px; background: var(--blue-100); box-shadow: 0 6px 14px -8px rgba(18, 40, 107, .6); animation: pop .3s; }
.thumb-x { position: absolute; top: -6px; right: -6px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; }
.thumb-x .ico { width: 14px; height: 14px; }
.foto-frage { display: grid; gap: 10px; padding: 18px; border-radius: 24px; background: #fff; box-shadow: 0 5px 0 #d4e2fb; text-align: center; animation: pop .35s; }
.foto-frage h3 { font: 800 25px/1.1 var(--display); }
.foto-frage p { color: var(--ink-soft); font-size: 16px; }
label.btn { cursor: pointer; }

/* ---------- Quiz ---------- */
.quiz { position: absolute; inset: 0; display: flex; flex-direction: column; background: linear-gradient(180deg, #d3e5ff, #f1f7ff 60%); overflow: hidden; }
.q-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px 6px; }
.q-progress { flex: 1; height: 16px; border-radius: 99px; background: rgba(20, 40, 110, .13); overflow: hidden; }
.q-progress i { display: block; width: 0; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--mint), #7be0b8); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .08); transition: width .6s cubic-bezier(.3, 1.3, .5, 1); }
.q-meta { display: flex; align-items: center; justify-content: space-between; padding: 6px 20px 2px; min-height: 36px; }
.box-chip { display: inline-block; padding: 4px 12px; border-radius: 99px; background: var(--kc, var(--blue-500)); color: #fff; font: 800 14px var(--display); text-shadow: 0 1px 0 rgba(0, 0, 0, .18); }
.box-chip.b1 { --kc: var(--b1); } .box-chip.b2 { --kc: var(--b2); } .box-chip.b3 { --kc: #5eb23a; } .box-chip.b4 { --kc: var(--b4); } .box-chip.b5 { --kc: #d9a900; }
.q-count { font-weight: 700; color: #4a5d82; font-size: 14px; }
.q-stage { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 16px 16px; }
.q-card { position: relative; width: 100%; max-width: 640px; margin: 0 auto; overflow: hidden; border-radius: 28px; background: var(--paper); box-shadow: 0 22px 40px -22px rgba(18, 40, 107, .6), 0 3px 0 rgba(18, 40, 107, .08); }
.card-in { animation: cardIn .45s cubic-bezier(.2, 1, .3, 1) both; }
.q-band { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 18px; background: var(--fc); color: #fff; font-weight: 700; font-size: 14px; }
.q-typ { opacity: .92; text-align: right; }
.q-body { padding: 18px 20px 24px; }
.q-frage { margin: 4px 0 16px; font: 800 clamp(23px, 5.4cqw, 31px)/1.2 var(--display); }
.mc { display: grid; gap: 10px; }
.mc-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px; border: 3px solid #d7e3fb; border-radius: 18px; background: #fff; text-align: left; font-weight: 700; font-size: clamp(17px, 3.6cqw, 21px); line-height: 1.25; box-shadow: 0 4px 0 #d7e3fb; cursor: pointer; transition: transform .1s, border-color .15s; }
.mc-opt:hover:not(:disabled) { border-color: var(--blue-400); }
.mc-opt:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #d7e3fb; }
.mc-key { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--blue-100); color: var(--blue-700); font: 800 17px var(--display); }
.mc-opt:disabled { color: var(--ink); opacity: 1; }
.mc-opt:disabled:not(.ist-richtig):not(.ist-falsch) { opacity: .5; }
.ist-richtig { border-color: var(--mint) !important; background: #e1faf0 !important; box-shadow: 0 4px 0 #17a37c !important; }
.ist-falsch { border-color: #ff8a5c !important; background: #fff0e8 !important; box-shadow: 0 4px 0 #e0683a !important; animation: shake .45s; }
.q-text { font-weight: 700; font-size: clamp(21px, 4.8cqw, 28px); line-height: 2.1; }
.q-text .gap-input { display: inline-block; width: auto; margin: 0 4px; padding: 0 8px; border: 0; border-bottom: 3px solid var(--blue-500); border-radius: 8px 8px 0 0; background: rgba(47, 107, 255, .09); text-align: center; font: 800 1em var(--text); color: var(--blue-700); }
.q-text .gap-input:focus { box-shadow: none; background: rgba(47, 107, 255, .16); }
.gap { display: inline-block; min-width: 96px; height: 1.5em; margin: 0 4px; vertical-align: middle; border: 0; border-bottom: 3px dashed var(--blue-400); border-radius: 8px 8px 0 0; background: rgba(47, 107, 255, .08); font: 800 1em var(--text); color: var(--blue-700); cursor: pointer; }
.gap.voll { border-bottom-style: solid; }
.gap.ist-richtig, .q-text .gap-input.ist-richtig { background: #cdf5e6 !important; border-color: var(--mint) !important; box-shadow: none !important; }
.gap.ist-falsch, .q-text .gap-input.ist-falsch { background: #ffe3d6 !important; border-color: #ff8a5c !important; box-shadow: none !important; }
.bank, .tray { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 16px; }
.chip { padding: 10px 16px; border: 3px solid #d7e3fb; border-radius: 14px; background: #fff; font-weight: 700; font-size: 18px; box-shadow: 0 3px 0 #d7e3fb; cursor: pointer; transition: opacity .15s, transform .1s; }
.chip:active:not(:disabled) { transform: translateY(2px); }
.chip.benutzt { opacity: .22; pointer-events: none; }
.chip.big { font-size: 17px; }
.vok-rich { margin: 0; color: var(--ink-soft); font-weight: 700; }
.vok-wort { margin: 4px 0 18px; font: 800 clamp(36px, 9.5cqw, 54px)/1.1 var(--display); color: var(--fc); }
.vok-input { font-size: 24px !important; font-weight: 700 !important; padding: 13px 15px !important; border-width: 3px !important; border-radius: 16px !important; }
.vok-input.ist-richtig { box-shadow: none !important; }
.merk-badge { display: inline-block; padding: 5px 12px; border-radius: 99px; background: #ffe9a0; font-weight: 800; font-size: 14px; }
.merk h2 { margin: 12px 0 10px; font: 800 clamp(26px, 6cqw, 34px)/1.15 var(--display); }
.merk p { font-size: clamp(19px, 4cqw, 23px); line-height: 1.6; }
.zu { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.zu-col { display: grid; gap: 10px; align-content: start; }
.zu-it { min-height: 58px; padding: 10px; border: 3px solid #d7e3fb; border-radius: 16px; background: #fff; font-weight: 700; font-size: clamp(15px, 3.2cqw, 19px); line-height: 1.2; box-shadow: 0 3px 0 #d7e3fb; cursor: pointer; transition: transform .1s, border-color .15s; }
.zu-it.sel { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 107, 255, .22); transform: scale(1.03); }
.zu-it.verbunden { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, #fff); box-shadow: 0 3px 0 var(--pc); }
.zu-it:disabled { color: var(--ink); }
.slots { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.slot { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 8px 12px; border: 3px dashed #c3d3f2; border-radius: 16px; background: rgba(255, 255, 255, .6); text-align: left; font-weight: 700; font-size: 18px; cursor: pointer; }
.slot.voll { border-style: solid; border-color: var(--blue-400); background: #fff; animation: pop .25s; }
.slot:disabled { color: var(--ink); }
.slot-nr { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); font: 800 16px var(--display); }
.bild-wrap { position: relative; max-width: 360px; margin: 0 auto; }
.bild-svg { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 10px 22px -12px rgba(18, 40, 107, .6); cursor: crosshair; }
.treffer { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 4px solid #fff; border-radius: 50%; background: var(--blue-500); box-shadow: 0 3px 10px rgba(0, 0, 0, .35); pointer-events: none; animation: pop .3s; }
.treffer.ist-richtig { background: var(--mint) !important; border-color: #fff !important; box-shadow: 0 3px 10px rgba(0, 0, 0, .35) !important; }
.treffer.ist-falsch { background: var(--coral) !important; border-color: #fff !important; box-shadow: 0 3px 10px rgba(0, 0, 0, .35) !important; animation: none; }
.bild-ziel { position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); border: 4px dashed var(--mint); border-radius: 50%; pointer-events: none; animation: pulseRing 1.2s ease-in-out infinite; }
.q-foot { display: flex; justify-content: center; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
.q-foot.versteckt { visibility: hidden; }
.q-foot .btn { width: 100%; max-width: 640px; }
.q-foot .btn:disabled { background: #8eaff0; box-shadow: 0 4px 0 #6d92e0; }
.timer-fill { position: absolute; inset: 0; background: rgba(255, 255, 255, .3); transform-origin: left; animation: timer linear forwards; }
.timer-txt { position: relative; }
.q-pop { position: absolute; top: 78px; left: 50%; z-index: 6; padding: 8px 18px; border-radius: 99px; background: #fff; box-shadow: 0 10px 24px -8px rgba(18, 40, 107, .5); font: 800 19px var(--display); opacity: 0; pointer-events: none; }
.q-pop.go { animation: popUp 1.9s both; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; box-shadow: 0 -16px 40px -12px rgba(18, 40, 107, .5); transform: translateY(106%); transition: transform .4s cubic-bezier(.2, 1.1, .3, 1); }
.sheet.show { transform: none; }
.sheet.ok { background: #dcf8ec; color: #0b6a4b; } .sheet.nah { background: #e1eeff; color: #123f8f; } .sheet.bad { background: #ffe9dd; color: #93390f; }
.sheet-in { max-width: 640px; margin: 0 auto; }
.sheet-head { display: flex; gap: 12px; align-items: flex-start; }
.sheet-ico { font-size: 36px; line-height: 1; }
.sheet h3 { font: 800 27px/1.1 var(--display); }
.sheet-head p { margin-top: 4px; font-size: 16px; line-height: 1.4; }
.hop { margin-top: 14px; }
.hop-track { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding-top: 12px; }
.hop-slot { height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .65); font: 800 14px var(--display); }
.hop-slot.ziel { background: #fff; box-shadow: 0 0 0 3px currentColor; }
.hop-dot { position: absolute; top: 0; width: 18px; height: 24px; margin-left: -9px; left: calc((var(--from) + .5) * (100% - 30px) / 6 + var(--from) * 6px); border: 2px solid #fff; border-radius: 4px; background: var(--blue-500); box-shadow: 0 3px 8px rgba(0, 0, 0, .3); transition: left .85s cubic-bezier(.3, 1.2, .5, 1); z-index: 2; }
.hop.go .hop-dot { left: calc((var(--to) + .5) * (100% - 30px) / 6 + var(--to) * 6px); animation: hopArc .85s ease-in-out; }
.hop-text { margin-top: 8px; font-weight: 700; font-size: 15px; }
.sheet-act { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.sheet .btn { min-width: 160px; }
.sheet.ok .btn { background: var(--mint); box-shadow: 0 4px 0 #139b73; } .sheet.bad .btn { background: #ff7a45; box-shadow: 0 4px 0 #cf5724; }
.dg-end, .ergebnis { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding-top: 6px; }
.dg-end .lumi { width: 150px; }
.ergebnis .lumi { width: 92px; }
.dg-end h2, .ergebnis h2 { font: 800 clamp(30px, 8cqw, 40px)/1.1 var(--display); color: var(--blue-900); }
.dg-end p { font-size: 18px; color: #31466e; }
.dg-end .btn, .ergebnis .btn { width: 100%; }
.sterne { display: flex; gap: 6px; }
.stern { font-size: 48px; line-height: 1; color: #cfd9ee; }
.stern.an { color: var(--sun); text-shadow: 0 3px 0 #d39a00; animation: starIn .7s var(--d) both cubic-bezier(.3, 1.8, .5, 1); }
.erg-liste { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin: 4px 0; padding: 0; list-style: none; }
.erg-liste li { display: grid; gap: 2px; padding: 10px 10px; border-radius: 18px; background: #fff; }
.erg-liste b { font: 800 32px/1 var(--display); color: var(--blue-500); }
.erg-liste span { font-size: 14px; color: var(--ink-soft); }
.serie-note { font: 800 20px var(--display); }
.gold-banner { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 20px; background: linear-gradient(135deg, #fff3c4, #ffd966); text-align: left; animation: pop .5s .6s both; }
.gold-banner > span { font-size: 38px; }
.erg-act { display: grid; gap: 10px; width: 100%; margin-top: 6px; }

/* ---------- Fenster ---------- */
.overlay { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 22, 60, .5); backdrop-filter: blur(3px); animation: fadeIn .2s; }
.modal { width: 100%; max-width: 460px; max-height: 100%; overflow: auto; padding: 20px; border-radius: 24px; background: #fff; animation: modalIn .3s cubic-bezier(.2, 1.2, .4, 1); }
.modal.gross { max-width: 640px; } .modal.klein { max-width: 380px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.modal-head h2 { font: 800 24px var(--display); }
.modal-head .icon-btn { background: #eef2fa; }
.modal-act { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.pause { text-align: center; display: grid; gap: 10px; justify-items: center; }
.pause .lumi { width: 110px; }
.pause h2 { font: 800 28px var(--display); }
.pause p { color: var(--ink-soft); }
.pause .btn-row { width: 100%; }
.melde-liste { display: grid; gap: 8px; margin-top: 10px; }
.form { display: grid; gap: 12px; }
.vorschau .q-card { box-shadow: 0 0 0 1px var(--line); }
.vorschau .q-body { min-height: 120px; }
.v-res { margin: 10px 0 0; }
.v-loesung { padding: 10px 12px; border-radius: 12px; background: #e1faf0; color: #0b6a4b; font-size: 14.5px; margin-bottom: 10px; }
.v-facts { display: grid; gap: 8px; margin: 14px 0 0; }
.v-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.v-facts dt { color: var(--ink-soft); } .v-facts dd { margin: 0; font-weight: 700; text-align: right; }
.v-fehler { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #fff0e8; color: #8b3a12; font-size: 14px; }

/* ---------- Eltern ---------- */
.eltern .main { padding: 16px 16px 28px; }
.eltern .btn { box-shadow: none; border-radius: 12px; font-size: 15px; }
.eltern .btn:active { transform: none; filter: brightness(.95); }
.eltern .btn.ghost { box-shadow: none; border: 1.5px solid #cfdcf5; }
.eltern .btn:disabled { box-shadow: none; }
.eltern .icon-btn { background: #e9eff9; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 10px 0 16px; flex-wrap: wrap; }
.page-head h1 { font: 800 30px/1.1 var(--display); }
.page-head p { margin-top: 2px; color: var(--ink-soft); }
.band { display: grid; gap: 18px; margin-bottom: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.band-donut { display: flex; align-items: center; gap: 14px; }
.band-donut span { max-width: 170px; font-size: 14px; color: var(--ink-soft); line-height: 1.35; }
.donut { width: 104px; flex: none; transform: rotate(-90deg); }
.donut .d-bg { fill: none; stroke: #e8eef9; stroke-width: 11; }
.donut .d-fg { fill: none; stroke: var(--b5); stroke-width: 11; stroke-linecap: round; stroke-dasharray: calc(var(--p) * 2.639) 264; animation: donutIn 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.donut text { transform: rotate(90deg); transform-origin: 50px 50px; font: 800 20px var(--display); fill: var(--ink); }
.band-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0; }
.band-stats dt { font-size: 13px; color: var(--ink-soft); }
.band-stats dd { margin: 2px 0 0; font: 800 30px/1 var(--display); }
.band-stats small { font: 700 14px var(--text); color: var(--ink-soft); white-space: nowrap; }
.cols { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
.panel { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.panel h2 { font: 800 21px var(--display); margin-bottom: 10px; }
.panel-note { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.panel-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.panel-row h2 { margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 16px; font-size: 13px; color: var(--ink-soft); }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; background: var(--kc); }
.fach-zeilen { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.fz-name { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.fz-name span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--ft); font-size: 18px; }
.fz-name b { font-size: 17px; }
.stack { display: flex; gap: 2px; height: 16px; overflow: hidden; border-radius: 99px; background: #e8eef9; }
.stack i { width: var(--w); background: var(--kc); transform-origin: left; }
.fz-zahlen { display: flex; gap: 18px; margin-top: 8px; font-size: 14px; color: var(--ink-soft); }
.fz-zahlen b { color: var(--ink); }
.wochen { display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: 100%; gap: 8px; height: 180px; }
.wb { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.wb i { display: block; width: 100%; max-width: 34px; height: calc((100% - 46px) * var(--h) / 100); min-height: 3px; border-radius: 8px 8px 4px 4px; background: #bcd5ff; }
.wb.heute i { background: var(--blue-500); }
.wb-v { font: 800 14px var(--display); min-height: 20px; }
.wb-l { font-size: 12px; color: var(--ink-soft); }
.wb.heute .wb-l { color: var(--blue-600); font-weight: 700; }
.attn { margin: 0; padding: 0; list-style: none; }
.attn button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.attn li:last-child button { border-bottom: 0; }
.attn b { display: block; font-size: 15px; }
.attn small { color: var(--ink-soft); font-size: 13px; }
.toolbar { display: grid; gap: 8px; margin-bottom: 14px; }
.toolbar-2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.eltern .fchip { box-shadow: none; border: 1.5px solid var(--line); }
.eltern .fchip.on { background: var(--blue-50); border-color: var(--blue-500); }
.eltern .seg { box-shadow: none; border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.suche { position: relative; flex: 1; min-width: 180px; max-width: 320px; }
.suche .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); width: 18px; height: 18px; }
.suche input { padding-left: 38px; border-radius: 12px; }
.kgruppe { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.kgruppe h3 { padding: 12px 14px; background: #f7f9fd; font: 800 17px var(--display); }
.kgruppe ul { margin: 0; padding: 0; list-style: none; }
.krow { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; width: 100%; padding: 11px 14px; border: 0; border-top: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; }
.krow:hover { background: #f4f8ff; }
.krow.fehler { background: #fff8f4; }
.krow-main { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.krow-main b { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chip-typ { padding: 2px 8px; border-radius: 6px; background: #eef2fa; color: #41567f; font-size: 12px; font-weight: 700; }
.krow-q { min-width: 44px; text-align: right; font-weight: 700; color: var(--ink-soft); font-size: 14px; }
.upload-panel { display: grid; gap: 14px; margin-bottom: 14px; }
.upload-panel p { color: var(--ink-soft); font-size: 14px; }
.up-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.up-form label:first-child { min-width: 160px; }
.uplist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.up { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.up-main { flex: 1; min-width: 190px; display: grid; gap: 2px; }
.up-main span { font-size: 13.5px; color: var(--ink-soft); }
.up-main small { font-size: 13px; color: #8a5a00; }
.ms-eltern { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.mse { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.mse.wartet { border-color: #ffd23f; background: #fffbea; }
.mse-emoji { font-size: 28px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: #f1f5fc; }
.mse-main { flex: 1; min-width: 200px; display: grid; gap: 5px; }
.mse-main span, .mse-main small { font-size: 13.5px; color: var(--ink-soft); }
.mse-act { display: flex; align-items: center; gap: 8px; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.setting p { color: var(--ink-soft); font-size: 14px; max-width: 420px; }
.setting h2 { margin-bottom: 4px; }
.range { display: flex; align-items: center; gap: 12px; }
.range input { width: 190px; accent-color: var(--blue-500); }
.range output { min-width: 32px; font: 800 24px var(--display); text-align: right; }
.intervalle { display: flex; gap: 10px; flex-wrap: wrap; }
.intervalle label { width: 78px; font-size: 13px; }
.intervalle small { color: var(--ink-soft); font-weight: 400; }
.toggle { position: relative; width: 54px; height: 30px; flex: none; }
.toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.toggle span { position: absolute; inset: 0; border-radius: 99px; background: #c3cde3; transition: background .2s; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.toggle input:checked + span { background: var(--blue-500); }
.toggle input:checked + span::after { transform: translateX(24px); }
.toggle input:focus-visible + span { outline: 3px solid #ffb020; outline-offset: 2px; }
.userliste { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.userliste li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.userliste li:last-child { border-bottom: 0; }
.userliste li div { flex: 1; display: grid; }
.userliste small { color: var(--ink-soft); }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); font: 800 18px var(--display); }

/* ---------- Breite Ansicht (Tablet, Laptop) ---------- */
@container dev (min-width: 720px) {
  .shell { flex-direction: row; }
  .nav { order: 0; flex-direction: column; align-items: stretch; gap: 4px; width: 220px; padding: 22px 14px; border: 0; box-shadow: none; }
  .nav ul { flex: none; flex-direction: column; gap: 4px; }
  .nav-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 0 8px; color: #fff; font: 800 22px var(--display); flex-wrap: wrap; }
  .nav-brand small { width: 100%; margin-top: -4px; font: 700 12px var(--text); opacity: .65; }
  .nb-lumi { width: 46px; }
  .nav-btn { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 10px 12px; border-radius: 14px; color: rgba(255, 255, 255, .82); font-size: 16px; }
  .nav-btn .ico { width: 26px; height: 26px; padding: 0; background: none !important; transform: none !important; color: inherit !important; }
  .nav-btn.on { background: rgba(255, 255, 255, .2); color: #fff; }
  .nav-btn:hover:not(.on) { background: rgba(255, 255, 255, .1); }
  .nav-out { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 10px 12px; border: 0; border-radius: 14px; background: none; color: rgba(255, 255, 255, .75); font-weight: 700; font-size: 15px; cursor: pointer; }
  .nav-out:hover { background: rgba(255, 255, 255, .1); color: #fff; }
  .shell.kid .nav { background: linear-gradient(180deg, #3b78ff, #1a3fb0); }
  .shell.eltern .nav { background: #0f1c3d; }
  .shell.eltern .nav-btn.on { background: rgba(91, 149, 255, .22); }
  .main { padding: 28px 40px 40px; }
  .eltern .main { padding: 24px 36px 40px; }
  .tl-brand, .tl-right .icon-btn { display: none; }
  .topline { justify-content: flex-end; min-height: 40px; }
  .eltern .topline { display: none; }
  .hero-lumi { width: 150px; }
  .hero.small .hero-lumi { width: 110px; }
  .fach-grid { grid-template-columns: repeat(4, 1fr); }
  .kasten-wrap { padding: 22px 20px 18px; }
  .k-jar { height: 130px; }
  .k-name { font-size: 14px; } .k-sub { font-size: 12px; }
  .toasts { bottom: 24px; }
  .q-top { padding: 22px 28px 8px; }
  .q-stage { padding: 14px 28px 20px; }
  .q-body { padding: 26px 32px 32px; }
  .band { grid-template-columns: auto 1fr; align-items: center; padding: 22px 26px; }
  .band-stats { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .band-stats div { padding: 0 18px; border-left: 1px solid var(--line); }
  .cols { grid-template-columns: 1.55fr 1fr; }
  .wide-2 { grid-row: span 2; }
  .kasten { gap: 10px; }
  .overlay { padding: 28px; }
}
@container dev (min-width: 1000px) {
  .fach-grid { gap: 16px; }
  .hero-text h1 { font-size: 46px; }
}

/* ---------- Bewegung ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes jump { 0%, 100% { transform: translateY(0) scale(1, 1); } 40% { transform: translateY(-14px) scale(.98, 1.03); } 60% { transform: translateY(-14px) scale(.98, 1.03); } 85% { transform: translateY(0) scale(1.03, .96); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.08); } }
@keyframes flapL { from { transform: rotate(0); } to { transform: rotate(32deg); } }
@keyframes flapR { from { transform: rotate(0); } to { transform: rotate(-32deg); } }
@keyframes drift { from { transform: translate(0, 0) rotate(var(--r)); } to { transform: translate(8px, -16px) rotate(calc(var(--r) * -.6)); } }
@keyframes shine { 0% { transform: translateX(-120%); } 22%, 100% { transform: translateX(120%); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fillUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(8deg); } }
@keyframes cardIn { from { opacity: 0; transform: translateX(44px) rotate(4deg) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulseRing { 0%, 100% { opacity: .5; box-shadow: 0 0 0 0 rgba(32, 201, 151, .5); } 50% { opacity: 1; box-shadow: 0 0 0 10px rgba(32, 201, 151, 0); } }
@keyframes pulseBtn { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes popUp { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.8); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 20% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -14px); } }
@keyframes starIn { 0% { opacity: 0; transform: scale(0) rotate(-90deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hopArc { 0%, 100% { margin-top: 0; } 40% { margin-top: -26px; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes donutIn { from { stroke-dasharray: 0 264; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ---------- Ergänzungen für die echte App ---------- */
a.nav-btn { text-decoration: none; }
.nav-form { display: contents; }
.page { display: flex; flex-direction: column; }
.page > * { flex: none; }
.laden { display: grid; justify-items: center; gap: 10px; padding: 48px 20px; text-align: center; }
.laden-lumi { width: 120px; }
.laden p { color: var(--ink-soft); }
.offline-chip { padding: 6px 12px; border-radius: 99px; background: #fff3c4; color: #5a3d00; font-weight: 800; font-size: 13px; }
a.bonus-ping { display: block; text-decoration: none; color: inherit; }
.tl-right form { display: contents; }
.form-fehler { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: #ffe6dd; color: #b2410e; font-size: 14px; }
.hinweis-box { margin-bottom: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink-soft); }
.hinweis-box a { color: var(--blue-600); font-weight: 700; }
.kind-wahl { display: flex; align-items: center; gap: 8px; }
.kind-wahl select { width: auto; min-width: 140px; }
.demo-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fach-verwaltung { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fach-verwaltung li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fach-verwaltung li:last-child { border-bottom: 0; }
.fach-verwaltung .fz-sym { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--ft); font-size: 18px; }
.fach-verwaltung small { color: var(--ink-soft); }
.fach-verwaltung div { flex: 1; display: grid; }
.neues-fach { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 12px; }
.neues-fach label { min-width: 150px; }
.neues-fach label.kurz { min-width: 80px; max-width: 100px; }
.attn a.attn-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.attn li:last-child a.attn-link { border-bottom: 0; }
h1:focus, h1[tabindex="-1"]:focus { outline: none; }
.page > .panel { margin-bottom: 14px; }

/* Hauptfach / Nebenfach, Ex-Themen */
.fchip.fertig { opacity: .6; }
.tag-haupt { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--blue-100); font-size: 12px; font-weight: 800; }
.ex-haken { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.thema-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.haupt-schalter { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; white-space: nowrap; }
