/* Vokazoo – Markenwelt „6B First Round“: Aubergine, Limette, Cyan, Coral auf hellen Flächen. */
:root {
  --aubergine: #2a1040;
  --lime: #cbf000;
  --cyan: #00d9ff;
  --coral: #ff6b62;
  --page: #f3f5f9;
  --surface: #e9edf3;

  /* Farbband oben + Akzent: Standard = Marke, im Kinder-Bereich die selbst gewählte Farbe (applyTheme). */
  --bg1: #2a1040;
  --bg2: #46206a;
  --primary: #2a1040;
  --primary-dark: #170824;

  --card: #ffffff;
  --soft: color-mix(in srgb, var(--primary) 9%, #fff);
  --line: color-mix(in srgb, var(--primary) 14%, #e6e9ef);
  --ink: #2a1040;
  --muted: #6a6478;
  --good: #15803d;
  --good-bg: #e3f9d0;
  --bad: #c8322b;
  --bad-bg: #ffe3e0;
  --gold: #f59e0b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(42, 16, 64, .06), 0 8px 24px rgba(42, 16, 64, .08);
  --band: 380px;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg1); /* füllt auf iOS den Statusbalken */
}
body {
  /* Hier (nicht in :root) definiert, damit der Verlauf die pro Ansicht überschriebene Seitenfarbe trifft. */
  --page-tint: var(--page);
  /* Helle Seite, die oben das Farbband freilässt: bis 55 % der Bandhöhe durchsichtig, dann weich in die Seitenfarbe. */
  --page-layer: linear-gradient(to bottom, transparent calc(var(--band) * .55), var(--page-tint) var(--band));
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: Inter, "SF Pro Text", -apple-system, "Segoe UI", system-ui, Roboto, sans-serif;
  position: relative;
  color: var(--ink);
  /* WICHTIG: einfarbig in der Bandfarbe lassen. Neuere iOS-Versionen färben Statusleiste und Werkzeugleiste nach der
     Hintergrundfarbe des body (theme-color wird ignoriert); Verläufe und Pseudo-Elemente kann Safari nicht auslesen.
     Die helle Seite malt deshalb body::before darüber. */
  background-color: var(--bg1);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
/* Seitenhintergrund über die ganze Höhe: oben das Farbband (Verlauf), darunter die helle Seite. Scrollt mit.
   Auf Login-/Start-Bildschirmen gibt es keine helle Seite – dort füllt der Verlauf alles. */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--page-layer), linear-gradient(135deg, var(--bg1), var(--bg2)) top / 100% var(--band) no-repeat, var(--page-tint);
  pointer-events: none;
}
body[data-view=loading], body[data-view=login], body[data-view=locked], body[data-view=setup], body[data-view=admin-login] { --band: 100%; --page-layer: none; }
/* Schmaler fester Streifen am unteren Rand in der Seitenfarbe: daran orientiert sich iOS für die untere Leiste,
   damit sie auf hellen Seiten nicht dunkel wird. Auf den vollflächig farbigen Bildschirmen entfällt er. */
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: max(env(safe-area-inset-bottom, 0px), 4px);
  z-index: 0;
  background-color: var(--page-tint);
  pointer-events: none;
}
body[data-view=loading]::after, body[data-view=login]::after, body[data-view=locked]::after, body[data-view=setup]::after, body[data-view=admin-login]::after { display: none; }
/* Im Kinder-Bereich färbt die gewählte Farbe auch die Seite ganz leicht ein – so gehört alles zusammen. */
body[data-view=kid], body[data-view=test], body[data-view=result] { --page-tint: color-mix(in srgb, var(--bg1) 9%, #f7f8fb); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

#app {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(48px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.center-screen { min-height: 90vh; display: grid; place-items: center; }
.loader { animation: bounce 1s infinite; border-radius: 22px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
@keyframes bounce { 50% { transform: translateY(-16px); } }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}
.card.narrow { max-width: 440px; width: 100%; margin: 0 auto; }

/* Buttons & Formulare */
.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 700;
  background: var(--soft);
  color: var(--primary-dark);
  transition: transform .08s, box-shadow .08s, background .15s;
}
.btn:hover { background: color-mix(in srgb, var(--primary) 22%, #fff); }
.btn:active { transform: translateY(2px); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--bg2); }
.btn.big { font-size: 1.2rem; padding: 16px 28px; width: 100%; }
/* Die Hauptaktion eines Bildschirms: Limette mit Aubergine-Schrift */
.btn.primary.big { background: var(--lime); color: var(--aubergine); box-shadow: 0 3px 0 #9fbd00; }
.btn.primary.big:hover { background: #d6f72e; }
.btn.primary.big:active { box-shadow: 0 1px 0 #9fbd00; }
.btn.danger { background: var(--bad-bg); color: var(--bad); }
.btn.ghost { background: rgba(255, 255, 255, .18); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .3); }
.btn.sm { padding: 7px 12px; border-radius: 10px; font-size: .9rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
a.btn { display: inline-block; text-decoration: none; }

label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 35%, transparent); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.row > .grow { flex: 1 1 160px; }

/* Kopfzeile */
.topbar { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 16px; flex-wrap: wrap; }
.topbar .who { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 200px; }
.topbar .avatar { font-size: 2.6rem; background: rgba(255, 255, 255, .16); border-radius: 18px; width: 64px; height: 64px; display: grid; place-items: center; cursor: pointer; }
.topbar .avatar:hover { background: rgba(255, 255, 255, .35); }
.topbar h1 { margin: 0; font-size: 1.4rem; }
.topbar .sub { opacity: .9; font-size: .95rem; }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 2px; }
.tab { border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; background: rgba(255, 255, 255, .14); color: #fff; white-space: nowrap; }
.tab:hover { background: rgba(255, 255, 255, .24); }
.tab.active { background: var(--lime); color: var(--aubergine); }

/* Login */
.login-title { color: #fff; text-align: center; margin: 5vh 0 24px; }
.login-title h1 { font-size: 2.6rem; letter-spacing: -.04em; margin-bottom: .15em; }
.login-title p { opacity: .85; }
.login-title .logo { display: block; margin: 0 auto 12px; border-radius: 24px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .22); }
.notice { background: #fff4d6; color: #5c3b00; margin-bottom: 16px !important; }
.kid-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; max-width: 700px; margin: 0 auto 24px; }
.kid-tile { border: 0; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 22px 12px; box-shadow: var(--shadow); font-weight: 800; font-size: 1.15rem; transition: transform .12s; }
.kid-tile:hover { transform: translateY(-4px) scale(1.03); }
.kid-tile .emoji { display: block; font-size: 3.6rem; margin-bottom: 6px; }
.login-foot { text-align: center; }
.linkish { border: 0; background: none; color: rgba(255, 255, 255, .75); text-decoration: underline; font-size: .85rem; margin-top: 18px; padding: 6px; }
.linkish:hover { color: #fff; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 18px 0; }
.pin-dots span { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--primary); }
.pin-dots span.on { background: var(--primary); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 280px; margin: 0 auto; }
.pinpad button { font-size: 1.6rem; padding: 14px 0; }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-5px); } }

/* Kinder-Home */
.xpbar { height: 16px; background: rgba(255, 255, 255, .25); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.xpbar > div { height: 100%; background: var(--lime); border-radius: 999px; transition: width .6s; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border-radius: var(--radius); padding: 14px; text-align: center; box-shadow: var(--shadow); }
.stat .big { font-size: 1.6rem; font-weight: 800; display: block; }
.stat .lbl { font-size: .82rem; color: var(--muted); }
.goal-done { background: var(--good-bg); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; }
.chip.on { border-color: var(--primary); background: var(--soft); color: var(--primary-dark); }
.chip .pct { font-weight: 600; color: var(--muted); font-size: .8rem; margin-left: 4px; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.mode { border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 12px; text-align: left; }
.mode.on { border-color: var(--primary); background: var(--soft); }
.mode .icon { font-size: 1.5rem; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px; background: var(--surface); }
/* Lernmodi in den Markenfarben: Mix = Limette, Hören = Cyan, Auswahl = Coral-Ton, Schreiben = Hellgrau */
.mode[data-id^=mix] .icon { background: var(--lime); }
.mode[data-id=listen] .icon { background: var(--cyan); }
.mode[data-id^=mc] .icon { background: #ffd5d1; }
.mode b { display: block; }
.mode span.d { font-size: .8rem; color: var(--muted); }
.mode:disabled { opacity: .45; }

.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.award { border-radius: 16px; padding: 14px 10px; text-align: center; background: var(--soft); }
.award .emoji { font-size: 2.6rem; display: block; }
.award b { display: block; font-size: .95rem; }
.award .d { font-size: .78rem; color: var(--muted); }
.award.locked { filter: grayscale(1); opacity: .45; }
.award.earned { background: color-mix(in srgb, var(--lime) 45%, #fff); }

/* Test */
.test-head { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 14px; }
.test-head .bar { flex: 1; height: 14px; background: rgba(255, 255, 255, .25); border-radius: 999px; overflow: hidden; }
.test-head .bar > div { height: 100%; background: var(--lime); border-radius: 999px; transition: width .3s; }
.combo { font-weight: 800; min-width: 56px; text-align: right; }
.question { text-align: center; padding: 28px 20px; }
.question .hint { color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.question .word { font-size: clamp(1.8rem, 6vw, 2.8rem); font-weight: 800; margin-bottom: 8px; word-break: break-word; }
.speak { border: 0; background: var(--cyan); color: var(--aubergine); border-radius: 50%; width: 48px; height: 48px; font-size: 1.4rem; }
.speak-row { display: flex; justify-content: center; align-items: center; gap: 14px; }
.speak.slow { width: 60px; height: 60px; font-size: 1.8rem; }
.speak.huge { width: 110px; height: 110px; font-size: 3.2rem; margin: 6px 0 12px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
@media (max-width: 560px) { .options { grid-template-columns: 1fr; } }
.option { border: 3px solid var(--line); background: #fff; border-radius: 16px; padding: 18px 12px; font-size: 1.15rem; font-weight: 700; }
.option:hover:not(:disabled) { border-color: var(--primary); }
.option.correct { border-color: var(--good); background: var(--good-bg); }
.option.wrong { border-color: var(--coral); background: var(--bad-bg); }
.answer-form { display: flex; gap: 10px; margin-top: 20px; }
.answer-form input { font-size: 1.3rem; text-align: center; }
.feedback { margin-top: 18px; border-radius: 16px; padding: 14px; font-weight: 700; }
.feedback.ok { background: var(--good-bg); color: #14532d; }
.feedback.no { background: var(--bad-bg); color: #7f1d1d; }
.feedback .sol { font-size: 1.3rem; display: block; }

/* Ergebnis */
.result { text-align: center; }
.stars { font-size: 3.4rem; letter-spacing: 6px; }
.stars .off { filter: grayscale(1); opacity: .3; }
.score { font-size: 2.4rem; font-weight: 800; }
.banner { background: color-mix(in srgb, var(--lime) 50%, #fff); border-radius: 16px; padding: 14px; margin: 14px 0; font-weight: 700; animation: pop .5s; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); } }
.review { text-align: left; margin: 16px 0; }
.review li { padding: 6px 0; border-bottom: 1px solid var(--line); list-style: none; }
.review ul { padding: 0; margin: 0; }
.ok-t { color: var(--good); font-weight: 700; }
.no-t { color: var(--bad); font-weight: 700; }

/* Eltern */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .8rem; color: var(--muted); padding: 6px 8px; }
td { padding: 6px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
td input[type=text] { padding: 7px 10px; border-color: transparent; background: transparent; }
td input[type=text]:hover { border-color: var(--line); }
td input[type=text]:focus { border-color: var(--primary); background: #fff; }
tr.inactive input[type=text] { text-decoration: line-through; color: var(--muted); }
td.added { white-space: nowrap; color: var(--muted); font-size: .85rem; }
.kid-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.kid-head .emoji { font-size: 2.8rem; }
.kid-head h2 { margin: 0; }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 16px; }
.mini { background: var(--soft); border-radius: 14px; padding: 10px; text-align: center; }
.mini b { display: block; font-size: 1.3rem; }
.mini span { font-size: .78rem; color: var(--muted); }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 90px; margin: 6px 0 4px; }
.chart .col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 6px 6px 0 0; overflow: hidden; background: var(--soft); }
.chart .wrongpart { background: var(--coral); }
.chart .okpart { background: #9bd400; }
.chart-labels { display: flex; gap: 4px; font-size: .65rem; color: var(--muted); text-align: center; }
.chart-labels span { flex: 1; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }
details { border-top: 1px solid var(--line); padding: 8px 0; }
summary { cursor: pointer; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
summary .pill { margin-left: auto; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; background: var(--soft); }
.pill.good { background: var(--good-bg); color: #14532d; }
.pill.mid { background: #fef3c7; color: #78350f; }
.pill.bad { background: var(--bad-bg); color: #7f1d1d; }
.avatar-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.avatar-pick button { border: 2px solid var(--line); background: #fff; border-radius: 12px; font-size: 1.5rem; width: 46px; height: 46px; }
.avatar-pick button.on { border-color: var(--primary); background: var(--soft); }
.color-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.color-pick button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--line);
  padding: 0;
}
.color-pick button.on { box-shadow: 0 0 0 3px var(--ink); }
.checks { display: flex; flex-wrap: wrap; gap: 12px; }
.checks label { display: flex; align-items: center; gap: 6px; font-weight: 600; margin: 0; }
.switch { width: 20px; height: 20px; accent-color: var(--primary); }
code { background: var(--surface); border-radius: 6px; padding: 2px 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.codebox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.codebox code { font-size: 1.15rem; font-weight: 700; padding: 8px 12px; letter-spacing: .02em; }
/* Icon-Library (Font Awesome) statt Emojis – data-icons="fa" setzt icons.js */
[data-icons=fa] .stat .big .fa, [data-icons=fa] .mini b .fa, [data-icons=fa] .kpi .fa { color: var(--primary); font-size: .85em; margin-right: 2px; }
[data-icons=fa] h2 .fa, [data-icons=fa] h3 .fa, [data-icons=fa] summary .fa { color: var(--primary); margin-right: 4px; font-size: .9em; }
[data-icons=fa] .tab .fa, [data-icons=fa] .btn .fa, [data-icons=fa] .chip .fa { margin-right: 3px; }
[data-icons=fa] .btn .fa:only-child, [data-icons=fa] .speak .fa { margin: 0; }
[data-icons=fa] .topbar .avatar .fa { font-size: 1.9rem; }
[data-icons=fa] .award .emoji { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; background: var(--aubergine); color: var(--lime); }
[data-icons=fa] .award.locked .emoji { background: var(--surface); color: #a9a4b5; }
[data-icons=fa] .banner .fa { color: var(--aubergine); }
[data-icons=fa] .stars .fa { color: var(--gold); width: 1.1em; }
[data-icons=fa] .stars .off .fa { color: var(--surface); }
[data-icons=fa] .sugg .emoji .fa { color: var(--primary); }
[data-icons=fa] .ok-t .fa, [data-icons=fa] .no-t .fa { width: 1em; font-size: .85em; }
.style-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.style-option { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: var(--radius); padding: 16px; display: grid; gap: 6px; }
.style-option.on { border-color: var(--aubergine); box-shadow: 0 0 0 3px var(--lime); }
.style-preview { font-size: 1.5rem; letter-spacing: 4px; margin-top: 6px; color: var(--aubergine); }

/* Verdiente Awards im Eltern-Dashboard: Symbol + Name, Beschreibung als Tooltip */
.award-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.award-chip { display: inline-flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--lime) 40%, #fff); border-radius: 999px; padding: 4px 12px 4px 6px; font-size: .85rem; font-weight: 600; }
.award-chip .sym { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; }
[data-icons=fa] .award-chip .sym { background: var(--aubergine); color: var(--lime); font-size: .7rem; }

/* Import-Assistent */
.source-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 16px; }
.ocr-progress { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--muted); }
.ocr-progress .bar { flex: 1; height: 10px; background: var(--surface); border-radius: 99px; overflow: hidden; }
.ocr-progress .bar i { display: block; height: 100%; background: var(--lime); border-radius: 99px; transition: width .2s; }
.assist-row.unsure { outline: 2px dashed var(--gold); outline-offset: -2px; }
.assist-launch { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.assist-launch .grow { flex: 1 1 260px; }
.assist-launch h2 { margin-bottom: 4px; }
.assist-launch p { margin: 0; }
.how { border: 0; background: var(--soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.how ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.notice-inline { background: #fff4d6; color: #5c3b00; border-radius: 12px; padding: 10px 14px; margin: 12px 0; }
.assist-rows { display: grid; gap: 6px; margin-top: 12px; }
.assist-target { background: var(--soft); border-radius: 12px; padding: 12px; margin-top: 12px; }
.assist-row { display: grid; grid-template-columns: auto 1fr 1fr minmax(120px, 190px) auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 12px; background: var(--soft); }
.assist-row.incomplete { background: var(--bad-bg); }
.assist-row.duplicate { background: #fef3c7; }
.assist-row .pill { min-width: 96px; text-align: center; }
.assist-cell { display: flex; gap: 4px; align-items: center; min-width: 0; }
.assist-cell input[type=text] { padding: 8px 10px; min-width: 0; }
.row-list { padding: 8px 10px; min-width: 0; font-size: .9rem; }
.row-list.changed { border-color: var(--primary); background: color-mix(in srgb, var(--lime) 35%, #fff); font-weight: 600; }
.mini-btn { border: 0; background: #fff; color: var(--muted); border-radius: 8px; width: 30px; height: 34px; flex: none; box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; }
.mini-btn:hover { color: var(--ink); box-shadow: inset 0 0 0 2px var(--primary); }
@media (max-width: 760px) {
  .assist-row { grid-template-columns: auto 1fr; }
  .assist-row .assist-cell, .assist-row .row-list { grid-column: 2; }
  .assist-row .pill { grid-column: 2; justify-self: start; }
}

/* Wort-Vorschläge */
.sugg-list { display: grid; gap: 8px; }
.sugg { display: flex; align-items: center; gap: 12px; background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.sugg.new { background: color-mix(in srgb, var(--lime) 40%, #fff); }
.sugg .emoji { font-size: 1.5rem; }
.sugg .grow { flex: 1; min-width: 0; word-break: break-word; }
.banner.news { display: block; width: 100%; border: 0; cursor: pointer; text-align: center; margin: 0 0 14px; color: var(--ink); }
.suggestions { border: 2px solid var(--lime); }
.sugg-row { display: grid; grid-template-columns: minmax(90px, auto) 1fr 1fr minmax(150px, 1fr) auto auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.sugg-row .who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg-row input[type=text], .sugg-row select { padding: 8px 10px; }
@media (max-width: 760px) { .sugg-row { grid-template-columns: 1fr 1fr; } .sugg-row .who, .sugg-row select { grid-column: 1 / -1; } }
.version { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 8px; }
.catalog { display: grid; gap: 8px; }
.cat-item { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 10px 12px; }
.cat-item .emoji { font-size: 1.6rem; }
.cat-item .grow { flex: 1; min-width: 0; }

/* Super-Admin */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.kpi b { display: block; font-size: 1.9rem; letter-spacing: -.03em; }
.kpi span { color: var(--muted); font-size: .85rem; }
.fam-table td, .fam-table th { padding: 10px 8px; }
.fam-table tr.suspended td { opacity: .55; }
.fam-table td[colspan] .btn:not(.primary):not(.danger), .cat-item .btn:not(.primary), .codebox .btn { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.fam-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.secret { background: color-mix(in srgb, var(--lime) 40%, #fff); border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-weight: 600; }
.chart.tall { height: 130px; }
.chart .bar1 { background: var(--primary); border-radius: 4px 4px 0 0; }
.month-row { display: flex; gap: 8px; align-items: flex-end; height: 70px; }
.month-row div { flex: 1; text-align: center; font-size: .75rem; color: var(--muted); display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.month-row i { display: block; background: var(--cyan); border-radius: 4px 4px 0 0; min-height: 2px; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 80px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 14px; font-weight: 700; transition: transform .3s; z-index: 50; max-width: 90vw; text-align: center; }
#toast.show { transform: translate(-50%, 0); }
#toast.err { background: var(--bad); }

#confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 40; }
#confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* Arbeitsblatt drucken */
#sheet { display: none; }
@media print {
  html, body { background: #fff; }
  body::before, body::after { display: none; }
  #app > *:not(#sheet), #toast, #confetti { display: none !important; }
  #app { max-width: none; padding: 0; }
  #sheet { display: block; font-family: Georgia, serif; color: #000; }
  #sheet h1 { font-size: 1.5rem; }
  #sheet .meta { display: flex; justify-content: space-between; margin: 12px 0 18px; }
  #sheet td { border: 0; border-bottom: 1px solid #999; padding: 12px 6px; font-size: 1.05rem; }
  #sheet td.n { width: 36px; color: #555; }
  #sheet td.p { width: 45%; }
  #sheet .solutions { page-break-before: always; }
}
