/* ===== Voizoo Eltern-Bereich – sachlich, gleiche Farbfamilie ===== */
.ic { fill: none; }
:root {
  --ink: #14324A; --ink-soft: #7B93A8; --white: #FFFFFF;
  --sea: #12B5C4; --sea-deep: #0A8A99; --sea-light: #D9F6F5; --sun: #FFC531; --sun-edge: #E0A000; --berry: #FF5A45; --tile: #1F4FA0;
  --good: #3ECF6E; --good-edge: #22A24E; --good-bg: #E0F9E8; --bad: #D63A28; --bad-bg: #FFE9E4; --warn-bg: #FFF3D1;
  --primary: #14324A; --primary-edge: #000; --bg: #EAF4F8; --surface: #FFFFFF; --line: #DCE9EF; --text: var(--ink); --text-soft: var(--ink-soft);
  --font-display: "Bricolage Grotesque", Georgia, sans-serif; --font-body: "Figtree", system-ui, sans-serif;
  --fs-xs: .78rem; --fs-s: .88rem; --fs-m: 1rem; --fs-l: 1.15rem; --fs-xl: 2rem;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  --r-s: 12px; --r-m: 14px; --r-l: 22px; --r-round: 999px; --edge: 0px;
  --shadow-1: 0 1px 2px rgba(15,34,51,.05), 0 4px 14px -6px rgba(15,34,51,.12);
  --safe-b: env(safe-area-inset-bottom, 0px); --tabbar-h: 66px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); background: var(--bg); color: var(--text); font-size: var(--fs-m); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.15; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.is-hidden { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: var(--r-m); padding: 10px 16px; font-weight: 800; background: var(--primary); color: var(--white); box-shadow: 0 var(--edge) 0 var(--primary-edge); }
.btn:active { transform: translateY(var(--edge)); box-shadow: none; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: 0 var(--edge) 0 var(--line); }
.btn-good { background: var(--good); box-shadow: 0 var(--edge) 0 var(--good-edge); }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 var(--edge) 0 var(--sun-edge); }
.btn-small { padding: 6px 10px; font-size: var(--fs-s); }
.icon-btn { width: 34px; height: 34px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); display: inline-grid; place-items: center; }

.parent-shell { min-height: 100vh; }
.parent-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--surface); border-bottom: 1px solid var(--line); }
.parent-top img { height: 34px; width: auto; }
.parent-top h1 { font-size: var(--fs-l); flex: 1; }
.parent-top h1 small { display: block; font-family: var(--font-body); font-size: var(--fs-xs); color: var(--text-soft); font-weight: 700; }
.parent-top a { font-weight: 800; color: var(--primary); text-decoration: none; font-size: var(--fs-s); }
.parent-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex; overflow-x: auto; gap: 2px; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + var(--safe-b)); }
.nav-btn { flex: 1 0 70px; border: 0; background: none; border-radius: var(--r-m); padding: 6px 4px; display: flex; flex-direction: column; align-items: center; font-size: .68rem; font-weight: 800; color: var(--text-soft); }
.nav-btn span { font-size: 1.3rem; }
.nav-btn.is-active { background: var(--sea-light); color: var(--primary); }
.parent-main { padding: var(--sp-4) var(--sp-4) calc(var(--tabbar-h) + 60px); max-width: 1040px; margin: 0 auto; }
.page-title { font-size: var(--fs-xl); margin-bottom: var(--sp-4); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: var(--sp-4); margin-bottom: var(--sp-4); }
.card h2 { font-size: var(--fs-l); margin-bottom: var(--sp-3); display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); }
.grid-2 { display: grid; gap: var(--sp-4); }
.wish-row, .list-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.wish-row:last-child, .list-row:last-child { border-bottom: 0; }
.wish-row .grow, .list-row .grow { flex: 1; min-width: 0; }
.muted { color: var(--text-soft); font-size: var(--fs-s); }
.emoji-lg { font-size: 1.8rem; }
.avatar { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink); background: var(--sea-light); flex: none; }
.kid-card-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.kid-card-head h3 { font-size: var(--fs-l); }
.kv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.kv { background: var(--bg); border-radius: var(--r-m); padding: var(--sp-2) var(--sp-3); }
.kv small { display: block; color: var(--text-soft); font-weight: 700; font-size: var(--fs-xs); }
.kv strong { font-family: var(--font-display); font-size: var(--fs-l); }
.bar { height: 10px; border-radius: var(--r-round); background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--sea); border-radius: inherit; }
.bar.is-sun > span { background: var(--sun); }
.pill { font-size: var(--fs-xs); font-weight: 900; padding: 3px 9px; border-radius: var(--r-round); white-space: nowrap; }
.pill-good { background: var(--good-bg); color: #1F6B3A; } .pill-bad { background: var(--bad-bg); color: #9A3A16; } .pill-warn { background: var(--warn-bg); color: #8A6400; }
.amount-plus { color: var(--good-edge); font-weight: 900; } .amount-minus { color: var(--bad); font-weight: 900; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
th { text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--text-soft); padding: 8px; border-bottom: 1px solid var(--line); }
td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td input[type=text], td input[type=number], .input, select { width: 100%; border: 1px solid var(--line); border-radius: var(--r-s); padding: 8px 10px; background: var(--white); min-width: 70px; }
td input[type=text]:focus, .input:focus { outline: none; border-color: var(--primary); }
.form-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; margin-bottom: var(--sp-3); }
.form-row > * { flex: 1 1 140px; }

.switch { position: relative; display: inline-block; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #C3CDD4; border-radius: 28px; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: var(--white); transition: .2s; }
.switch input:checked + span { background: var(--good); }
.switch input:checked + span::before { transform: translateX(20px); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row label { font-weight: 700; }
.setting-row select, .setting-row .input { width: auto; }

.steps { list-style: none; padding: 0; margin: var(--sp-3) 0; display: grid; gap: var(--sp-2); }
.steps li { display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-3); border-radius: var(--r-m); background: var(--bg); font-weight: 700; }
.steps li .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-weight: 900; }
.steps li.is-done .dot { background: var(--good); color: var(--white); }
.steps li.is-running .dot { background: var(--sun); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-box { background: var(--sea-light); border-radius: var(--r-l); padding: var(--sp-4); display: grid; grid-template-columns: 70px 1fr; gap: var(--sp-3); align-items: center; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 24px); transform: translateX(-50%); z-index: 300; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-m); font-weight: 800; }
.demo-toggle { position: fixed; right: 12px; bottom: calc(var(--tabbar-h) + 14px + var(--safe-b)); z-index: 400; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); opacity: .85; box-shadow: var(--shadow-1); }
.demo-panel { position: fixed; right: 12px; bottom: calc(var(--tabbar-h) + 66px + var(--safe-b)); z-index: 400; width: min(300px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); padding: var(--sp-4); box-shadow: 0 30px 60px -20px rgba(15,34,51,.4); }
.demo-panel h4 { margin: 8px 0 4px; font-size: var(--fs-xs); text-transform: uppercase; color: var(--text-soft); }
.demo-panel div { display: flex; flex-wrap: wrap; gap: 4px; }
.demo-panel button, .demo-panel a { border: 1px solid #C9D4DC; background: #F4F8FA; border-radius: 8px; padding: 5px 8px; font-size: .78rem; font-weight: 700; color: var(--ink); text-decoration: none; }

@media (min-width: 900px) {
  .parent-shell { display: grid; grid-template-columns: 230px 1fr; }
  .parent-top { grid-column: 1 / -1; }
  .parent-nav { position: sticky; top: 64px; height: calc(100vh - 64px); flex-direction: column; border-top: 0; border-right: 2px solid var(--line); padding: var(--sp-4); }
  .nav-btn { flex: none; flex-direction: row; gap: 10px; font-size: var(--fs-m); padding: 10px 12px; justify-content: flex-start; }
  .parent-main { padding-bottom: var(--sp-6); width: 100%; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .demo-toggle { bottom: 16px; } .demo-panel { bottom: 70px; } .toast { bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Feinschliff */
body { -webkit-font-smoothing: antialiased; line-height: 1.45; }
h1, h2, h3 { letter-spacing: -.02em; font-weight: 700; }
.ic { width: 18px; height: 18px; flex: none; }
.btn { font-weight: 700; padding: 11px 18px; transition: background .2s, transform .1s; }
.btn:hover { filter: brightness(1.12); }
.btn-ghost:hover { filter: none; background: var(--bg); }
.btn-good { color: #fff; }
.card { box-shadow: var(--shadow-1); padding: var(--sp-5); }
.page-title { font-size: var(--fs-xl); margin-bottom: var(--sp-5); }
.nav-btn { gap: 4px; font-weight: 700; } .nav-btn .ic { width: 22px; height: 22px; }
.nav-btn.is-active { background: var(--ink); color: #fff; }
.avatar { border: 0; object-fit: cover; object-position: top; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.icon-btn { color: var(--ink-soft); } .icon-btn:hover { color: var(--ink); background: var(--bg); }
.list-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #FFE6DF; color: #D94A2E; flex: none; }
.word-art { --s: 40px; width: var(--s); height: var(--s); border-radius: 12px; display: inline-grid; place-items: center; background: var(--sea-light); color: var(--sea-deep); }
.word-art .ic { width: 50%; height: 50%; }
.word-art.tint-coral { background: #FFE6DF; color: #D94A2E; } .word-art.tint-saffron { background: #FFF1D3; color: #B07700; } .word-art.tint-leaf { background: #DDF5E9; color: #178A55; } .word-art.tint-ink { background: #E6ECF3; color: #33475A; }
.word-art.is-number { background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 800; }
.word-art.is-color i { width: 60%; height: 60%; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.kv { background: #FBF8F3; }
th { font-weight: 700; letter-spacing: .08em; }
.parent-top { backdrop-filter: blur(12px); background: color-mix(in srgb, var(--surface) 90%, transparent); }
.parent-top a { color: var(--ink); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; }
.demo-toggle { display: grid !important; place-items: center; }

/* Belohnungen mit Foto & Lernzeit */
.reward-maker {display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:start;}
.drop-zone {aspect-ratio:1;border:3px dashed #9cc9c6;border-radius:20px;display:grid;place-items:center;align-content:center;gap:6px;text-align:center;padding:14px;cursor:pointer;background:#f3fbfa;overflow:hidden;}
.drop-zone.is-over {border-color:#12b8c6;background:#e2f8f6;} .drop-zone img {width:100%;height:100%;object-fit:contain;} .drop-zone .ic {width:38px;height:38px;}
.reward-form {display:grid;gap:10px;} .form-row {display:flex;flex-wrap:wrap;gap:10px;align-items:end;}
.mini-label {display:grid;gap:4px;font-size:.78rem;font-weight:700;flex:1;min-width:140px;} .mini-label select,.mini-label input {width:100%;}
.reward-thumb {width:44px;height:44px;object-fit:contain;border-radius:10px;}
.spinner {width:20px;height:20px;border:3px solid #cfe;border-top-color:#12b8c6;border-radius:50%;display:inline-block;animation:spin .8s linear infinite;vertical-align:middle;}
@keyframes spin {to {transform:rotate(360deg);}}
.setting-row {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #e3eeee;}
.setting-row > label:first-child {flex:1;} .setting-row input[type=time] {width:120px;}
.day-picks {display:flex;gap:4px;flex-wrap:wrap;} .day-pick input {display:none;}
.day-pick span {display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;border:2px solid #c4dedc;font-weight:800;font-size:.75rem;cursor:pointer;}
.day-pick input:checked + span {background:#12b8c6;border-color:#12b8c6;color:#fff;}
.game-row {display:flex;gap:10px;align-items:center;} .game-row img {width:44px;height:44px;object-fit:contain;flex:none;} .game-row small {display:block;}
@media (max-width:700px) {.reward-maker {grid-template-columns:1fr;} .drop-zone {max-width:240px;}}

/* ===================== Eltern-Bereich: ruhig, modern, klar ===================== */
:root {--bg:#F4F6F8;--line:#E3E8EE;--ink:#0F2233;--ink-soft:#64778A;--brand:#0E9AA7;--brand-soft:#E3F5F6;}
body {background:var(--bg);}
.parent-top {padding:12px 24px;box-shadow:0 1px 0 var(--line);}
.parent-top h1 {font-size:1.05rem;}
.parent-main {padding-top:28px;}
.page-head {display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:22px;}
.page-head .page-title {margin:0;}
.page-title {font-size:1.7rem!important;font-weight:700;}
.page-sub {margin:6px 0 0;color:var(--ink-soft);}
.kpi-row {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px;}
.kpi-tile {background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px 18px;box-shadow:var(--shadow-1);}
.kpi-tile small {display:block;color:var(--ink-soft);font-weight:700;font-size:.78rem;margin-bottom:6px;}
.kpi-tile strong {font:700 1.7rem var(--font-display);} .kpi-tile strong span {font:600 .85rem var(--font-body);color:var(--ink-soft);}
.kpi-tile .bar {margin-top:10px;height:6px;} .kpi-tile .bar>span {background:var(--brand);}
.kpi-tile.is-warn {border-color:#F3D27A;background:#FFFBEF;}
.card {border-radius:16px!important;}
.card h2 {font-size:1.05rem!important;}
@media (min-width:900px) {
  .parent-shell {grid-template-columns:240px 1fr!important;}
  .parent-nav {background:#fff;border-right:1px solid var(--line)!important;gap:2px;padding:20px 14px!important;}
  .nav-btn {color:var(--ink-soft);font-size:.92rem!important;border-radius:10px;padding:10px 12px!important;}
  .nav-btn:hover {background:var(--bg);color:var(--ink);}
  .nav-btn.is-active {background:var(--brand-soft)!important;color:var(--ink)!important;box-shadow:inset 3px 0 0 var(--brand);}
  .nav-btn.is-active .ic {color:var(--brand);}
}
@media (max-width:899px) {.kpi-row {grid-template-columns:1fr 1fr;} .nav-btn.is-active {background:var(--brand-soft)!important;color:var(--ink)!important;}}
.mode-pick {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:6px 0 10px;}
.mode-opt {position:relative;display:grid;gap:4px;padding:14px 14px 14px 42px;border:1.5px solid var(--line);border-radius:14px;cursor:pointer;background:#fff;transition:border-color .2s,background .2s;}
.mode-opt input {position:absolute;left:14px;top:16px;accent-color:var(--brand);width:18px;height:18px;}
.mode-opt small {color:var(--ink-soft);font-weight:600;line-height:1.35;}
.mode-opt.is-on {border-color:var(--brand);background:var(--brand-soft);}
@media (max-width:560px) {.mode-pick {grid-template-columns:1fr;}}
.switch input:checked + span {background:var(--brand)!important;}
.btn:not(.btn-ghost):not(.btn-good):not(.btn-sun) {background:var(--ink);}
