@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader.woff2') format('woff2'); font-style: normal; font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader-italic.woff2') format('woff2'); font-style: italic; font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('fonts/ibm-plex-sans.woff2') format('woff2'); font-style: normal; font-weight: 100 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/ibm-plex-mono-500.woff2') format('woff2'); font-style: normal; font-weight: 500; font-display: swap; }

:root {
  --petrol: #246b6f; --petrol-dunkel: #17313a; --salbei: #7fb3a8; --salbei-hell: #d9eae6;
  --flaeche: #eef3f2; --karte: #fbfdfd; --linie: #d6e2e0;
  --text: #17262a; --leise: #5b6b6e;
  --rot: #b4435a; --orange: #c47a1c; --sonne: #f2c94c;
  --titel: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --r: 14px;
  --unten: env(safe-area-inset-bottom, 0px);
  --feld: #ffffff; --gelb-flaeche: #fff6d8; --gelb-linie: #ecd58a; --gruen-flaeche: #f1f8f6;
  --kind-verlauf: linear-gradient(180deg, #d9eee9 0%, #eef3f2 40%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="hell"]) {
    --petrol: #5fb3ad; --petrol-dunkel: #0b1b20; --salbei: #7fb3a8; --salbei-hell: #1c3a3c;
    --flaeche: #0f1f24; --karte: #152a30; --linie: #26434b; --text: #e2eeec; --leise: #93abaa; --feld: #10252b;
    --rot: #e07a8f; --gelb-flaeche: #1c3a3e; --gelb-linie: #5f6f3a; --gruen-flaeche: #17352f;
    --kind-verlauf: linear-gradient(180deg, #16343a 0%, #0f1f24 45%);
    color-scheme: dark;
  }
}
:root[data-theme="dunkel"] {
  --petrol: #5fb3ad; --petrol-dunkel: #0b1b20; --salbei: #7fb3a8; --salbei-hell: #1c3a3c;
  --flaeche: #0f1f24; --karte: #152a30; --linie: #26434b; --text: #e2eeec; --leise: #93abaa; --feld: #10252b;
  --rot: #e07a8f; --gelb-flaeche: #1c3a3e; --gelb-linie: #5f6f3a; --gruen-flaeche: #17352f;
  --kind-verlauf: linear-gradient(180deg, #16343a 0%, #0f1f24 45%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--flaeche); color: var(--text); font: 16px/1.45 var(--sans); -webkit-tap-highlight-color: transparent; min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--petrol); }
em { font-style: italic; }
[hidden] { display: none !important; }

/* Kopf */
.kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: calc(env(safe-area-inset-top, 0px) + 28px) 20px 18px; max-width: 760px; margin: 0 auto; border-bottom: 1px solid var(--linie); }
.kopf h1 { font: 500 2.1rem/1.05 var(--titel); margin: 2px 0 0; letter-spacing: -.01em; }
.kopf h1 em { color: var(--petrol); }
.kicker { font: 500 .72rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--leise); margin: 0; }
.kicker a { text-decoration: none; }
.ich { display: flex; align-items: center; gap: 8px; border: 1px solid var(--linie); background: var(--karte); border-radius: 999px; padding: 4px 12px 4px 4px; font-size: .9rem; }

.seite { max-width: 760px; margin: 0 auto; padding: 8px 20px calc(110px + var(--unten)); }
.schmal { max-width: 480px; }
section { margin-top: 26px; }
h2 { font: 500 1.3rem/1.2 var(--titel); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
h2 .rechts { margin-left: auto; font: 500 .85rem var(--sans); }
.zwischen { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--leise); margin: 22px 0 8px; }
.zahl { font: 500 .75rem var(--mono); background: var(--petrol); color: #fff; border-radius: 999px; padding: 2px 8px; }
.leer { color: var(--leise); font-style: italic; font-family: var(--titel); font-size: 1.05rem; margin: 6px 0; }
.leise { color: var(--leise); }
.klein { font-size: .82rem; }
.mitte { text-align: center; }
.link { background: none; border: 0; color: var(--petrol); padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.hinweis { background: var(--gelb-flaeche); border: 1px solid var(--gelb-linie); padding: 10px 14px; border-radius: var(--r); margin-top: 16px; font-size: .92rem; }

/* Listen */
.liste { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden; }
.liste:empty { display: none; }
.zeile { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--linie); background: none; text-align: left; min-height: 60px; }
.zeile:last-child { border-bottom: 0; }
.zeile-haupt { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; border: 0; background: none; padding: 0; text-align: left; }
button.zeile:active, .zeile-haupt:active { background: var(--salbei-hell); }
.ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; font-size: 1.35rem; background: var(--flaeche); border-radius: 12px; }
.zt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.zt b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zt small { color: var(--leise); font-size: .8rem; }
.due { font-family: var(--mono); font-size: .74rem; }
.due.ueber { color: var(--rot); font-weight: 500; }
.due.heute { color: var(--petrol); font-weight: 500; }
.haken { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--petrol); background: var(--karte); color: var(--petrol); font-size: 1.2rem; font-weight: 700; }
.haken:active { background: var(--petrol); color: #fff; transform: scale(.94); }
.gedimmt { opacity: .55; }
.bestaetigen { background: var(--gruen-flaeche); }
.avas { display: flex; }
.avas .ava + .ava { margin-left: -8px; }

.ava { --pf: var(--petrol); width: 40px; height: 40px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; font-size: 1.25rem; background: color-mix(in srgb, var(--pf) 18%, var(--feld)); box-shadow: inset 0 0 0 2px var(--pf); }
.ava.klein { width: 30px; height: 30px; font-size: .95rem; box-shadow: inset 0 0 0 1.5px var(--pf), 0 0 0 2px var(--karte); }
.ava-leer { background: var(--flaeche); color: var(--leise); }

/* Knöpfe */
.btn { border: 0; background: var(--petrol); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 500; min-height: 46px; }
.btn:active { filter: brightness(.9); }
.btn.leise { background: transparent; color: var(--petrol); box-shadow: inset 0 0 0 1.5px var(--linie); }
.btn.gefahr { background: var(--rot); }
.btn.gefahr.leise { background: transparent; color: var(--rot); }
.btn.mini { padding: 7px 12px; min-height: 36px; font-size: .85rem; border-radius: 10px; }
.btn.klein { padding: 8px 14px; min-height: 38px; font-size: .9rem; }
.btn.breit { width: 100%; }
.knoepfe { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.knoepfe .breit { flex: 1; width: auto; }

/* Reiter */
.reiter { display: flex; gap: 4px; background: var(--salbei-hell); padding: 4px; border-radius: 12px; margin-top: 18px; }
.reiter button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 9px; font-size: .9rem; color: var(--leise); }
.reiter .aktiv { background: var(--karte); color: var(--text); font-weight: 500; box-shadow: 0 1px 3px #17313a1f; }

/* Karten, Statistik */
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--r); padding: 16px; margin-top: 18px; }
.karte h2 { margin-top: 0; }
.statistik .stat { display: grid; grid-template-columns: 30px 1fr auto; column-gap: 10px; row-gap: 5px; align-items: center; width: 100%; border: 0; background: none; padding: 8px 4px; border-radius: 10px; text-align: left; }
.statistik .stat.aktiv { background: var(--salbei-hell); }
.stat .ava { grid-row: span 2; }
.stat-name { font-weight: 500; }
.stat-zahl { font: .76rem var(--mono); color: var(--leise); text-align: right; }
.stat-balken { grid-column: 2 / 4; height: 8px; background: var(--flaeche); border-radius: 4px; overflow: hidden; }
.stat-balken i { display: block; height: 100%; border-radius: 4px; transition: width .4s; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--karte); border: 1px solid var(--linie); border-radius: 999px; padding: 5px 12px; font-size: .85rem; }
.chip b { font-family: var(--mono); color: var(--petrol); margin-left: 4px; }

.kacheln { display: grid; gap: 10px; }
.kachel-kind { display: flex; gap: 12px; align-items: center; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--r); padding: 12px; }
.kachel-kind > div { flex: 1; display: flex; flex-direction: column; }
.kachel-kind small { color: var(--leise); }
.kachel-kind.ok { border-color: var(--salbei); background: var(--gruen-flaeche); }
.balken { height: 6px; background: var(--flaeche); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.balken i { display: block; height: 100%; background: var(--salbei); border-radius: 3px; }
.kachel-kind.ok .balken i { background: var(--petrol); }

/* Menü */
.menue { display: grid; gap: 1px; background: var(--linie); border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden; margin-top: 18px; }
.menue > * { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; background: var(--karte); border: 0; text-align: left; text-decoration: none; color: var(--text); }
.menue span { grid-row: span 2; font-size: 1.4rem; }
.menue b { font-weight: 500; }
.menue small { color: var(--leise); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schalter { display: flex; gap: 12px; align-items: flex-start; }
.schalter input { width: 22px; height: 22px; accent-color: var(--petrol); margin-top: 2px; flex: none; }
.schalter span { display: flex; flex-direction: column; }
.schalter small { color: var(--leise); font-size: .82rem; }
.gefahrzone { border-color: #e6c3cb; }
.fehler { white-space: pre-wrap; background: var(--feld); border: 1px solid var(--linie); padding: 10px; border-radius: 8px; font-size: .8rem; }

/* Navigation */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: space-around; align-items: center; background: color-mix(in srgb, var(--karte) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--linie); padding: 6px 8px calc(6px + var(--unten)); }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; text-decoration: none; color: var(--leise); font-size: .7rem; padding: 4px 0; }
.nav .ni { font-size: 1.25rem; line-height: 1.2; }
.nav a.aktiv { color: var(--petrol); font-weight: 500; }
.nav-plus { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--petrol-dunkel); border: 1px solid var(--linie); color: #fff; font-size: 2rem; line-height: 1; margin-top: -26px; box-shadow: 0 6px 18px #17313a55, 0 0 0 5px var(--flaeche); flex: none; }
.nav-plus:active { transform: scale(.94); }

/* Sheet */
.sheet { border: 0; padding: 0; margin: auto auto var(--tastatur, 0px); width: 100%; max-width: 640px; max-height: min(92vh, calc(var(--sichtbar, 100vh) - 10px)); border-radius: 22px 22px 0 0; background: var(--karte); color: var(--text); box-shadow: 0 -10px 40px #17313a33; }
.sheet::backdrop { background: #17313a73; backdrop-filter: blur(2px); }
.sheet[open] { animation: hoch .22s ease-out; }
@keyframes hoch { from { transform: translateY(40px); opacity: .4; } }
@media (min-width: 700px) { .sheet { margin: auto; border-radius: 22px; } }
#sheetBody { padding: 18px 20px calc(24px + var(--unten)); overflow-y: auto; max-height: min(92vh, calc(var(--sichtbar, 100vh) - 10px)); }
.tastatur-offen #sheetBody { padding-bottom: 16px; }
.tastatur-offen .nav { display: none; }
.vorschlag-kachel { border-style: dashed; }
.sheet-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; position: sticky; top: -18px; background: var(--karte); padding-top: 4px; z-index: 1; }
.sheet-kopf h2 { margin: 0; }
.x { border: 0; background: var(--flaeche); width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; line-height: 1; flex: none; }

form label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: var(--leise); margin-top: 12px; }
form label > input, form label > select, form label > textarea, .suche, .sp input, .sp select { font-size: 1rem; color: var(--text); padding: 11px 12px; border: 1.5px solid var(--linie); border-radius: 11px; background: var(--feld); width: 100%; min-height: 46px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--petrol); }
.suche { margin-top: 14px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.icon-name { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: end; }
.emoji { font-size: 1.6rem; text-align: center; padding: 6px; border: 1.5px solid var(--linie); border-radius: 11px; height: 50px; width: 64px; background: var(--feld); }
fieldset.rhythmus { border: 1px solid var(--linie); border-radius: 12px; padding: 4px 14px 14px; margin: 16px 0 0; }
fieldset legend { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--leise); padding: 0 6px; }
fieldset .schalter { flex-direction: row; color: var(--text); font-size: 1rem; }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pchip { margin: 0 !important; }
.pchip input { position: absolute; opacity: 0; pointer-events: none; }
.pchip span { --pf: var(--petrol); display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--linie); color: var(--text); font-size: .95rem; background: var(--feld); }
.pchip input:checked + span { border-color: var(--pf); background: color-mix(in srgb, var(--pf) 16%, var(--feld)); font-weight: 500; }
.pchip input:focus-visible + span { outline: 2px solid var(--petrol); }
.avatarwahl, .farbwahl { display: flex; flex-wrap: wrap; gap: 6px; }
.avatarwahl label, .farbwahl label { margin: 0; }
.avatarwahl input, .farbwahl input { position: absolute; opacity: 0; }
.avatarwahl span { display: grid; place-items: center; width: 44px; height: 44px; font-size: 1.4rem; border-radius: 12px; border: 1.5px solid var(--linie); background: var(--feld); }
.avatarwahl input:checked + span { border-color: var(--petrol); background: var(--salbei-hell); }
.farbwahl span { display: block; width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--linie); }
.farbwahl input:checked + span { box-shadow: 0 0 0 2.5px var(--text); }
.pin { text-align: center; font: 500 1.8rem var(--mono) !important; letter-spacing: .4em; margin-top: 14px; }
.wackeln { animation: wackeln .35s; border-color: var(--rot) !important; }
@keyframes wackeln { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.schritte { padding-left: 20px; } .schritte li { margin: 8px 0; }

.kachelgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.kachel { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 1px solid var(--linie); border-radius: 12px; background: var(--feld); font-size: .8rem; line-height: 1.2; text-align: center; min-height: 92px; justify-content: center; }
.kachel span { font-size: 1.7rem; }
.kachel:active { background: var(--salbei-hell); border-color: var(--salbei); }
#erfassenListe > .btn { margin-top: 18px; }

/* Start */
.willkommen { padding-top: calc(env(safe-area-inset-top, 0px) + 40px); text-align: left; }
.logo-gross { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 10px 30px #17313a33; margin-bottom: 18px; }
.gross { font: 500 3rem/1 var(--titel); margin: 4px 0 12px; letter-spacing: -.02em; }
.gross em { color: var(--petrol); }
.lead { font-size: 1.05rem; color: var(--leise); }
.sp { display: grid; grid-template-columns: 1fr 130px; gap: 8px; margin-top: 8px; }
.start-personen { margin: 12px 0 8px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(90px + var(--unten)); transform: translateX(-50%); z-index: 50; background: var(--petrol-dunkel); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: .9rem; box-shadow: 0 8px 24px #17313a55; max-width: calc(100vw - 32px); width: max-content; animation: hoch .2s; }
.toast button { background: none; border: 0; color: var(--sonne); font-weight: 600; margin-left: 8px; padding: 0; }

/* ---------- Kindermodus ---------- */
body.kindermodus { background: var(--kind-verlauf); }
.kind { max-width: 600px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 24px) 18px calc(40px + var(--unten)); }
.kind-kopf { display: flex; align-items: center; gap: 14px; }
.kind-kopf .ava { width: 64px; height: 64px; font-size: 2.1rem; background: var(--feld); }
.kind-kopf p { margin: 0; font: italic 1.1rem var(--titel); color: var(--petrol); }
.kind-kopf h1 { margin: 0; font: 600 2.2rem/1 var(--titel); }
.punkte { margin-left: auto; text-align: center; background: var(--petrol-dunkel); color: #fff; border-radius: 16px; padding: 8px 12px; }
.punkte b { display: block; font: 500 1.7rem/1 var(--mono); color: var(--sonne); }
.punkte small { font-size: .65rem; line-height: 1.1; display: block; opacity: .85; }
.kind h2 { font: 600 1.35rem var(--titel); margin: 26px 0 10px; }
.ziel { display: flex; align-items: center; gap: 16px; margin-top: 22px; background: var(--petrol-dunkel); color: #fff; border-radius: 22px; padding: 18px; }
.ziel-ring { --a: 0; width: 84px; height: 84px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--sonne) calc(var(--a) * 1%), #ffffff26 0); }
.ziel-ring span { width: 66px; height: 66px; border-radius: 50%; background: var(--petrol-dunkel); display: grid; place-items: center; font-size: 2.1rem; }
.ziel-titel { margin: 0; font: 500 .75rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--salbei); }
.ziel-text { margin: 2px 0 0; font: 600 1.45rem/1.15 var(--titel); }
.ziel-liste { margin: 6px 0 0; font-size: .85rem; opacity: .8; }
.ziel.erreicht { background: linear-gradient(135deg, var(--petrol), #2f9aa8); }
.ziel.erreicht .ziel-ring { animation: puls 1.6s infinite; }
.ziel.erreicht .ziel-ring span { background: #246b6f; }
@keyframes puls { 50% { transform: scale(1.07); } }
.kind-karte { display: flex; align-items: center; gap: 14px; width: 100%; background: var(--feld); border: 0; border-radius: 18px; padding: 14px; margin-bottom: 10px; text-align: left; box-shadow: 0 2px 0 var(--linie), 0 6px 18px #17313a12; transition: transform .3s, opacity .3s; }
.kk-haupt { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; border: 0; background: none; padding: 0; text-align: left; }
.kk-haupt:active { transform: scale(.98); }
.kk-foto { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--linie); background: var(--feld); font-size: 1.2rem; flex: none; }
button.kk-haken { background: var(--feld); }
.kind-karte.weg { transform: translateX(60px) scale(.95); opacity: 0; }
.kk-ic { width: 56px; height: 56px; display: grid; place-items: center; font-size: 2rem; background: var(--salbei-hell); border-radius: 16px; flex: none; }
.kk-t { flex: 1; display: flex; flex-direction: column; }
.kk-t b { font-size: 1.1rem; font-weight: 600; }
.kk-t small { color: var(--leise); }
.kk-haken { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 2.5px solid var(--petrol); color: var(--petrol); font-size: 1.4rem; font-weight: 700; flex: none; }
.kind-karte.wartet { opacity: .75; }
.kind-karte.fertig .kk-haken { background: var(--sonne); border-color: var(--sonne); color: var(--petrol-dunkel); }
.kind-karte.fertig .kk-ic { background: var(--gelb-flaeche); }
.kind-karte.spaeter { opacity: .6; box-shadow: none; }
.kind-leer { font: italic 1.3rem var(--titel); color: var(--petrol); text-align: center; padding: 20px; background: var(--feld); border-radius: 18px; }
.kind-extra { width: 100%; margin-top: 24px; padding: 16px; border: 2px dashed var(--salbei); background: transparent; border-radius: 18px; color: var(--petrol); font-weight: 500; font-size: 1rem; }
.kind-raus { display: block; margin: 30px auto 0; border: 0; background: none; color: var(--leise); font-size: .85rem; }
.konfetti { position: fixed; top: -10px; width: 9px; height: 14px; z-index: 100; border-radius: 2px; pointer-events: none; animation: fallen 1.4s ease-in forwards; }
@keyframes fallen { to { transform: translate(var(--dx), 105vh) rotate(var(--rot)); opacity: .3; } }

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

/* ---------- Ergänzungen Version .2 ---------- */
.schnell h2 small { font: 400 .8rem var(--sans); }
.schnell-reihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.schnell-kachel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 78px; padding: 8px 4px; border: 1px solid var(--linie); background: var(--karte); border-radius: 14px; font-size: .74rem; line-height: 1.15; text-align: center; }
.schnell-kachel span { font-size: 1.5rem; }
.schnell-kachel:active { background: var(--petrol); color: #fff; transform: scale(.96); }
.einkauf-karte { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; background: var(--gelb-flaeche); border: 1px solid var(--gelb-linie); border-radius: var(--r); text-decoration: none; color: var(--text); }
.einkauf-karte > span:first-child { font-size: 1.5rem; }
.einkauf-karte > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.einkauf-karte small { color: var(--leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kachel-kind small { display: block; }
.kachel-kind .btn { align-self: flex-start; }
.serie { font: 500 .78rem var(--mono); color: var(--orange); }
.geld { font: 500 .78rem var(--mono); color: var(--petrol); }
.mini-foto { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; flex: none; background: var(--flaeche); }
.karte-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.karte-kopf h2 { margin: 0; }
.mini-reiter { display: inline-flex; background: var(--flaeche); border-radius: 9px; padding: 3px; gap: 2px; }
.mini-reiter button { border: 0; background: none; padding: 6px 10px; border-radius: 7px; font-size: .8rem; color: var(--leise); }
.mini-reiter .aktiv { background: var(--karte); color: var(--text); font-weight: 500; box-shadow: 0 1px 2px #0002; }
.mini-reiter.breit { display: flex; margin-top: 10px; } .mini-reiter.breit button { flex: 1; }
.anteil-balken { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; margin: 4px 0 10px; background: var(--flaeche); }
.anteil-balken i { display: block; }
.prozent { font: 500 .8rem var(--mono); color: var(--petrol); margin-left: 4px; }
.kosten { margin: 10px 0 0; font-size: .9rem; } .kosten b { font-family: var(--mono); }
.kosten-karte { display: flex; gap: 28px; } .kosten-karte div { display: flex; flex-direction: column; } .kosten-karte b { font: 500 1.6rem var(--mono); }
.hinzu { display: flex; gap: 8px; margin-top: 18px; }
.hinzu input { flex: 1; font-size: 1rem; padding: 11px 12px; border: 1.5px solid var(--linie); border-radius: 11px; background: var(--feld); color: var(--text); min-height: 46px; }
.hinzu .btn { font-size: 1.4rem; padding: 0 18px; }
.zeile.check { cursor: pointer; }
.zeile.check input { width: 24px; height: 24px; accent-color: var(--petrol); flex: none; }
.zeile.check.fertig b { text-decoration: line-through; color: var(--leise); }
details.erledigt { margin-top: 12px; } details.erledigt summary { color: var(--leise); font-size: .9rem; padding: 6px 0; cursor: pointer; }
details.erledigt .btn { margin-top: 10px; }
.knapp { color: var(--rot) !important; font-weight: 500; }
.rund { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--linie); background: var(--feld); font-size: 1.2rem; display: grid; place-items: center; flex: none; text-decoration: none; color: var(--text); padding: 0; }
.rund:active { background: var(--salbei-hell); }
.tage { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tage label { margin: 0 !important; } .tage input { position: absolute; opacity: 0; }
.tage span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--linie); background: var(--feld); color: var(--text); font-size: .85rem; }
.tage input:checked + span { background: var(--petrol); border-color: var(--petrol); color: #fff; font-weight: 500; }
.abzeichen { display: flex; flex-wrap: wrap; gap: 8px; }
.abzeichen span { display: inline-flex; align-items: center; gap: 6px; background: var(--karte); border: 1px solid var(--linie); border-radius: 999px; padding: 5px 12px 5px 6px; font-size: .85rem; }
.abzeichen i { font-style: normal; font-size: 1.2rem; width: 28px; height: 28px; display: grid; place-items: center; background: var(--gelb-flaeche); border-radius: 50%; }
.abzeichen.gross { display: grid; grid-template-columns: 1fr 1fr; margin: 10px 0; }
.abzeichen.gross span { flex-direction: column; border-radius: 16px; padding: 12px; text-align: center; }
.abzeichen.gross i { width: 52px; height: 52px; font-size: 1.8rem; }
.zeile-form { display: flex; align-items: flex-end; gap: 10px; margin: 6px 0 12px; } .zeile-form label { flex: 1; }
.mehr-details { margin-top: 14px; border: 1px solid var(--linie); border-radius: 12px; padding: 0 14px 12px; }
.mehr-details summary { padding: 12px 0 2px; color: var(--petrol); font-weight: 500; cursor: pointer; }
.foto-feld { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.foto-feld .foto-knopf { margin: 0; flex-direction: row; display: inline-flex; color: var(--petrol); }
.foto-feld .schalter { margin: 0; flex-direction: row; align-items: center; }
.foto-vorschau { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.foto-gross { position: fixed; inset: 0; z-index: 200; background: #000d; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; }
.foto-gross img { max-width: 100%; max-height: 85vh; border-radius: 12px; }
.foto-gross span { color: #fffa; font-size: .85rem; }
.service-info p { margin: 6px 0; }
.kind-leiste { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.kind-leiste:empty { display: none; }
.pille { border: 0; background: var(--karte); border-radius: 999px; padding: 7px 14px; font-weight: 500; font-size: .9rem; box-shadow: 0 2px 8px #17313a14; color: var(--text); }
.pille.geld { color: var(--petrol); font-family: var(--mono); }
.zeile[disabled] { opacity: .45; }
.bestaetigen { flex-wrap: wrap; }
.best-unten { flex-basis: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-left: 52px; }
.best-unten .mini-foto { width: 56px; height: 56px; margin-right: auto; cursor: zoom-in; }

/* ---------- Version .3: Icons, Battle, Personenwahl, Abgleich ---------- */
.mono { font-family: var(--mono); }
.ic img, .kk-ic img, .kachel span img, .schnell-kachel span img, .chip-ic img, .kopf-ic img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.ic:has(img) { background: none; overflow: hidden; }
.ic.gross { width: 50px; height: 50px; border-radius: 12px; }
.kk-ic:has(img) { background: none; overflow: hidden; }
.kachel span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; overflow: hidden; }
.schnell-kachel span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; overflow: hidden; }
.chip-ic { display: inline-block; width: 20px; height: 20px; border-radius: 5px; overflow: hidden; vertical-align: -5px; margin-right: 6px; font-size: .9rem; line-height: 20px; text-align: center; }
.kopf-ic { display: inline-block; width: 34px; height: 34px; border-radius: 9px; overflow: hidden; vertical-align: -8px; margin-right: 10px; font-size: 1.4rem; line-height: 34px; text-align: center; }
.icon-name:has(.ic.gross) { grid-template-columns: 50px 64px 1fr; }

.wer-bin-ich { margin-top: 18px; }
.wer-reihe { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 4px; scrollbar-width: none; }
.wer { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1.5px solid var(--linie); background: var(--karte); border-radius: 16px; padding: 10px 14px 8px; min-width: 76px; font-size: .85rem; color: var(--leise); flex: none; }
.wer .ava { width: 44px; height: 44px; font-size: 1.4rem; }
.wer.aktiv { border-color: var(--pf); background: color-mix(in srgb, var(--pf) 14%, var(--karte)); color: var(--text); font-weight: 600; box-shadow: 0 4px 14px color-mix(in srgb, var(--pf) 30%, transparent); }

.battle-karte { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 14px 10px 10px; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--r); text-decoration: none; color: var(--text); position: relative; overflow: hidden; }
.battle-karte img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.battle-karte > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.battle-karte small { color: var(--leise); }
.battle-mini { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; display: flex; }
.battle-mini i { display: block; }
.kopf-bild { width: 54px; height: 54px; border-radius: 14px; }
.battle-optionen { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.battle-optionen .schalter { font-size: .9rem; align-items: center; }
.battle-leer { text-align: center; margin-top: 40px; color: var(--leise); }
.battle-leer img { width: 120px; border-radius: 28px; }
.podest { display: flex; justify-content: center; align-items: flex-end; gap: 8px; margin-top: 30px; }
.stufe { flex: 1; max-width: 140px; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.stufe .ava { width: 54px; height: 54px; font-size: 1.7rem; }
.stufe.p1 .ava { width: 70px; height: 70px; font-size: 2.2rem; box-shadow: inset 0 0 0 3px var(--pf), 0 0 0 4px var(--sonne); }
.stufe b { font-size: .95rem; }
.prozent-gross { font: 500 1.5rem/1 var(--mono); color: var(--pf); }
.stufe.p1 .prozent-gross { font-size: 2rem; }
.sockel { width: 100%; background: color-mix(in srgb, var(--pf) 75%, var(--petrol-dunkel)); color: #fff; border-radius: 12px 12px 4px 4px; display: grid; place-items: center; font: 600 1.6rem var(--titel); margin-top: 6px; }
.p1 .sockel { height: 96px; } .p2 .sockel { height: 66px; } .p3 .sockel { height: 44px; }
.pokal { width: 58px; height: 58px; border-radius: 14px; margin-bottom: 4px; animation: puls 2.4s infinite; }
.anteil-balken.gross { height: 30px; border-radius: 10px; margin: 18px 0 8px; }
.anteil-balken.gross i { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; }
.anteil-balken.gross span { color: #fff; font: 500 .75rem var(--mono); white-space: nowrap; }
.battle-abstand { text-align: center; margin: 6px 0 16px; }
.titel-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.titel { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--karte); border: 1px solid var(--linie); border-left: 4px solid var(--pf); }
.titel span { display: flex; flex-direction: column; min-width: 0; }
.titel small { color: var(--leise); font-size: .78rem; }

.sync-ok { color: var(--petrol); text-transform: none; letter-spacing: 0; }
.sync-fehler { color: var(--rot); text-transform: none; letter-spacing: 0; }
.fehler-hinweis { background: color-mix(in srgb, var(--rot) 12%, var(--karte)); border-color: color-mix(in srgb, var(--rot) 40%, var(--linie)); }
.sync-status { display: flex; align-items: center; gap: 12px; }
.sync-status div { display: flex; flex-direction: column; }
.sync-status small { color: var(--leise); }
.sync-punkt { width: 14px; height: 14px; border-radius: 50%; background: #3fae7a; box-shadow: 0 0 0 5px color-mix(in srgb, #3fae7a 25%, transparent); flex: none; }
.sync-karte.fehler .sync-punkt { background: var(--rot); box-shadow: 0 0 0 5px color-mix(in srgb, var(--rot) 25%, transparent); }
.fehler-text { color: var(--rot); font-size: .9rem; }
.sync-daten { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 14px 0 4px; font-size: .9rem; }
.sync-daten dt { color: var(--leise); } .sync-daten dd { margin: 0; }
.familien-code { font-size: 1.15rem; letter-spacing: .06em; text-align: center; background: var(--flaeche); border: 1.5px dashed var(--salbei); border-radius: 12px; padding: 14px 8px; word-break: break-all; }
.code-feld { width: 100%; font-size: 1.1rem !important; letter-spacing: .06em; text-align: center; margin-top: 12px; padding: 14px 10px; border: 1.5px solid var(--linie); border-radius: 12px; background: var(--feld); color: var(--text); }
#verbindenFrage .liste { margin-top: 10px; }
#verbindenFrage .hinweis { margin-top: 12px; }
.kind-sync { text-align: center; font-size: .78rem; color: var(--leise); margin: 8px 0 0; }
.schalter.modul { margin-top: 10px; align-items: center; }

/* Kinder-App: Battle-Podest */
.kind-battle { margin-top: 26px; background: var(--karte); border-radius: 22px; padding: 16px 14px 6px; box-shadow: 0 2px 0 var(--linie), 0 6px 18px #17313a12; }
.kind-battle-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kind-battle-kopf h2 { margin: 0 !important; }
.kind-battle .podest { margin-top: 18px; }
.stufe.selbst b { color: var(--petrol); }
.stufe.selbst .sockel { box-shadow: 0 0 0 3px var(--sonne); }

/* Wünsche (Kinder-App) */
.wuensche { margin-top: 22px; background: var(--karte); border-radius: 22px; padding: 16px 14px; box-shadow: 0 2px 0 var(--linie), 0 6px 18px #17313a12; }
.wuensche .leise { margin: 10px 0 0; }
.wunsch { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.wunsch-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--gelb-flaeche); display: grid; place-items: center; font-size: 1.8rem; flex: none; }
.wunsch-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wunsch-text b { font-size: 1.05rem; }
.wunsch-text small { color: var(--leise); }
.wunsch .balken { height: 10px; border-radius: 5px; margin: 4px 0 2px; }
.wunsch .balken i { background: linear-gradient(90deg, var(--salbei), var(--petrol)); }
.wunsch.erreicht .balken i { background: var(--sonne); }
.wunsch.erreicht .wunsch-ic { animation: puls 1.6s infinite; }

/* Einkaufsliste mit Warengruppen und Geschäften */
.nav .ni { position: relative; }
.nav-zahl { position: absolute; top: -4px; right: -12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rot); color: #fff; font: 600 .65rem/18px var(--sans); font-style: normal; text-align: center; }
.gruppe-vorschau { min-height: 1.2em; margin: 6px 2px 0; }
.vorschlaege { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 4px; scrollbar-width: none; }
.vorschlag { flex: none; border: 1px solid var(--linie); background: var(--karte); border-radius: 999px; padding: 7px 12px; font-size: .88rem; color: var(--text); display: flex; gap: 6px; align-items: center; }
.vorschlag:active { background: var(--salbei-hell); }
.geschaefte { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 14px 0 4px; }
.chip-wahl { border: 1.5px solid var(--linie); background: var(--karte); border-radius: 999px; padding: 6px 12px; font-size: .85rem; color: var(--text); }
.chip-wahl.aktiv { border-color: var(--petrol); background: var(--salbei-hell); font-weight: 600; }
.chip-wahl.leise { color: var(--petrol); border-style: dashed; }
.warengruppe { display: flex; align-items: center; gap: 8px; font: 600 .95rem var(--sans); margin: 20px 2px 8px; color: var(--text); }
.warengruppe span { font-size: 1.2rem; }
.warengruppe small { margin-left: auto; font: 500 .75rem var(--mono); color: var(--leise); }
.warengruppe.wagen { color: var(--leise); }
.zeile.check .zeile-haupt { padding: 2px 0; }
.zeile.check input { width: 26px; height: 26px; }
.gruppen-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.gruppen-wahl label { margin: 0 !important; }
.gruppen-wahl input { position: absolute; opacity: 0; }
.gruppen-wahl span { display: block; padding: 9px 10px; border: 1.5px solid var(--linie); border-radius: 10px; background: var(--feld); color: var(--text); font-size: .85rem; }
.gruppen-wahl input:checked + span { border-color: var(--petrol); background: var(--salbei-hell); font-weight: 600; }
.reihenfolge { list-style: none; padding: 0; margin: 8px 0 0; counter-reset: gang; }
.reihenfolge li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--linie); border-radius: 12px; margin-bottom: 6px; background: var(--feld); counter-increment: gang; }
.reihenfolge li::before { content: counter(gang); font: 500 .8rem var(--mono); color: var(--leise); width: 18px; }
.reihenfolge li span { flex: 1; }
.reihenfolge .rund { width: 36px; height: 36px; font-size: .8rem; }
.kind-extra.einkauf { border-color: var(--gelb-linie); color: var(--text); }

/* Jobbörse, Rückblick, Wunsch-Mini */
.jobboerse h2 small, .wuensche h2 small { font: 400 .8rem var(--sans); color: var(--leise); margin-left: 6px; }
.kind-karte.job { border-left: 4px solid var(--sonne); }
.job-marke { font: 600 .65rem var(--mono); background: var(--sonne); color: var(--petrol-dunkel); border-radius: 6px; padding: 1px 6px; vertical-align: 2px; }
.klein-x { width: 32px; height: 32px; font-size: .9rem; }
.wunsch-mini { display: block; height: 5px; margin-top: 3px; }
.rueckblick { background: linear-gradient(135deg, var(--petrol-dunkel), var(--petrol)); color: #fff; border-radius: 18px; padding: 14px 16px 10px; }
.rueckblick-kopf { display: flex; justify-content: space-between; align-items: center; }
.rueckblick .kicker { color: #ffffffb3; }
.rueckblick .x { background: #ffffff22; color: #fff; }
.rueckblick-gross { font: 600 1.6rem var(--titel); margin: 6px 0 8px; }
.rueckblick-gross small { font: 500 .9rem var(--mono); opacity: .8; }
.rueckblick p { margin: 4px 0; font-size: .92rem; }

.live-hinweis { display: block; margin-top: 14px; padding: 11px 14px; border-radius: 14px; background: color-mix(in srgb, #3fae7a 16%, var(--karte)); border: 1px solid color-mix(in srgb, #3fae7a 45%, var(--linie)); color: var(--text); text-decoration: none; font-size: .92rem; animation: hoch .3s; }
.hinweis-karte { border-color: var(--gelb-linie); background: var(--gelb-flaeche); }
.klein-code { font-size: .72rem !important; letter-spacing: 0; }

/* Profilfotos */
.ava { overflow: hidden; }
.ava.mit-foto { background: var(--feld); }
.ava.mit-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; padding: 2px; }
.ava.klein.mit-foto img { padding: 1.5px; }
.mini-ava { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; vertical-align: -5px; }
.profilfoto-feld { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.profilfoto-feld.mitte-feld { justify-content: center; margin: 10px 0 16px; }
.gross-ava { width: 88px !important; height: 88px !important; font-size: 2.6rem !important; flex: none; }
.profilfoto-knoepfe { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.profilfoto-knoepfe .foto-knopf { margin: 0; flex-direction: row; display: inline-flex; color: var(--petrol); }
.profilfoto-knoepfe .schalter { margin: 0; flex-direction: row; align-items: center; font-size: .85rem; color: var(--text); }
.ava-knopf { border: 0; background: none; padding: 0; position: relative; }
.ava-kamera { position: absolute; right: -4px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--karte); display: grid; place-items: center; font-size: .8rem; box-shadow: 0 1px 4px #0003; }

.tipp-vorschlaege { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tipp-vorschlaege:empty { display: none; }
.tipp-vorschlaege .vorschlag { border-color: var(--salbei); background: var(--salbei-hell); }

/* Errungenschaften */
.kopf-knoepfe { display: flex; gap: 6px; }
.feier { margin-top: 18px; border-radius: 18px; padding: 14px 16px; background: linear-gradient(135deg, #f2c94c, #f6dc85); color: var(--petrol-dunkel); box-shadow: 0 8px 24px #f2c94c55; animation: hoch .4s; }
.feier-kopf { display: flex; justify-content: space-between; align-items: center; }
.feier .kicker { color: #17313acc; }
.feier .x { background: #ffffff66; color: #17313a; }
.feier-zeile { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.feier-zeile div { display: flex; flex-direction: column; }
.feier-zeile b { font: 600 1.15rem var(--titel); }
.feier-zeile small { opacity: .8; }
.btn.hell { background: #17313a; color: #fff; margin-top: 12px; }
.erfolg-ic { position: relative; width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--flaeche); font-size: 1.5rem; }
.erfolg-ic img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
.erfolg-ic i { font-style: normal; }
.erfolg-orden { position: absolute; right: -6px; bottom: -6px; font-size: 1.05rem; background: var(--karte); border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; box-shadow: 0 1px 4px #0003; }
.erfolg-kopf { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.erfolg-kopf div { display: flex; flex-direction: column; } .erfolg-kopf b { font: 600 1.3rem var(--titel); } .erfolg-kopf small { color: var(--leise); }
.erfolg-satz { background: var(--gruen-flaeche); border-radius: 14px; padding: 12px 14px; margin-top: 14px; line-height: 1.5; }
.erfolg-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.erfolg-karte { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 10px; background: var(--karte); border: 1px solid var(--linie); border-radius: 16px; }
.erfolg-karte .erfolg-ic { width: 58px; height: 58px; }
.erfolg-karte b { font-size: .88rem; line-height: 1.25; }
.erfolg-karte small { color: var(--leise); font-size: .74rem; line-height: 1.3; }
.erfolg-karte.zeit { border-color: color-mix(in srgb, var(--petrol) 40%, var(--linie)); }
.zeile .zt .balken { margin-top: 5px; }

.einladung-feld { display: flex; gap: 8px; }
.einladung-feld input { flex: 1; font-size: 1rem; color: var(--text); padding: 11px 12px; border: 1.5px solid var(--linie); border-radius: 11px; background: var(--feld); letter-spacing: .05em; }

/* Einladungskarte */
.einladung-vorschau { display: grid; place-items: center; min-height: 200px; margin: 6px 0 14px; }
.einladung-vorschau img { width: 100%; max-width: 360px; border-radius: 18px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.karte.notfall-offen { border: 2px solid var(--rot); }
.ueber a.btn { text-decoration: none; }

/* ---------- Kopfbereich mit Maskottchen ---------- */
.held { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 22px) 16px 20px 20px; color: #fff;
  background: radial-gradient(circle at 88% 18%, var(--kopf-1) 0, var(--kopf-2) 38%, var(--kopf-3) 100%); border-radius: 0 0 28px 28px; }
.held-text { position: relative; z-index: 2; min-width: 0; flex: 1; }
.held .kicker { color: var(--zart); }
.held .kicker .sync-ok { color: var(--zart); }
.held h1 { font: 500 2rem/1.08 var(--titel); margin: 4px 0 6px; letter-spacing: -.01em; }
.held h1 em { color: #f2c94c; }
.held-spruch { margin: 0; font-size: .95rem; color: var(--zart); min-height: 1.3em; animation: einblenden .6s ease both; }
.maskottchen { position: relative; z-index: 2; flex: none; width: 128px; height: 128px; border: 0; padding: 0; background: none; cursor: pointer;
  animation: wippen 2.8s ease-in-out infinite; transform-origin: 50% 92%; -webkit-tap-highlight-color: transparent; }
.maskottchen img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); pointer-events: none; user-select: none; }
.tagesring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tagesring circle { fill: none; stroke-width: 5; }
.ring-grund { stroke: rgba(255,255,255,.14); }
.ring-wert { stroke-linecap: round; transition: stroke-dasharray .8s ease; }
.ring-zahl { position: absolute; right: -2px; bottom: 2px; background: #f2c94c; color: #17313a; font: 600 .72rem var(--mono); border-radius: 999px; padding: 2px 7px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.maskottchen.pose-schlaeft { animation: atmen 3.6s ease-in-out infinite; }
.maskottchen.pose-schlaeft::after { content: 'z'; position: absolute; right: 14px; top: 4px; font: 700 18px var(--titel); color: var(--zart); animation: zzz 2.6s ease-out infinite; }
.maskottchen.pose-schlaeft::before { content: 'Z'; position: absolute; right: 2px; top: -8px; font: 700 24px var(--titel); color: var(--zart); animation: zzz 2.6s 1.3s ease-out infinite; }
.maskottchen.pose-schwitzt { animation: zittern .5s ease-in-out infinite alternate; }
.maskottchen.pose-jubel, .maskottchen.pose-tanzt, .maskottchen.pose-controller { animation: huepfen 1.1s ease-in-out infinite; }
.maskottchen.hopst { animation: hops .6s cubic-bezier(.3,1.6,.5,1) !important; }
.sprechblase { position: absolute; z-index: 3; right: 126px; top: calc(env(safe-area-inset-top, 0px) + 14px); max-width: 58%; background: #fff; color: #17262a;
  font-size: .85rem; line-height: 1.3; padding: 8px 12px; border-radius: 16px 16px 4px 16px; box-shadow: 0 6px 18px rgba(0,0,0,.2);
  opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .2s, transform .25s cubic-bezier(.3,1.5,.5,1); pointer-events: none; }
.sprechblase.zeigt { opacity: 1; transform: none; }
.held-deko i { position: absolute; bottom: -20px; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.28); background: rgba(255,255,255,.05); animation: blase 9s linear infinite; }
.held-deko i:nth-child(1) { left: 8%; animation-delay: 0s; }
.held-deko i:nth-child(2) { left: 26%; width: 9px; height: 9px; animation-delay: 2.5s; animation-duration: 11s; }
.held-deko i:nth-child(3) { left: 47%; width: 18px; height: 18px; animation-delay: 5s; }
.held-deko i:nth-child(4) { left: 63%; width: 8px; height: 8px; animation-delay: 1.2s; animation-duration: 7s; }
.held-deko i:nth-child(5) { left: 36%; width: 11px; height: 11px; animation-delay: 6.5s; animation-duration: 10s; }
.held-deko span { position: absolute; font-size: 15px; opacity: .45; animation: schweben 6s ease-in-out infinite; }
.held-deko span:nth-of-type(1) { left: 56%; top: 30%; }
.held-deko span:nth-of-type(2) { left: 72%; top: 62%; animation-delay: 2s; }
@keyframes wippen { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg) translateY(-2px); } }
@keyframes atmen { 0%,100% { transform: scale(1); } 50% { transform: scale(1.035, .98); } }
@keyframes zittern { from { transform: rotate(-3deg); } to { transform: rotate(3deg) translateX(1px); } }
@keyframes huepfen { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-10px) rotate(-3deg); } 60% { transform: translateY(-10px) rotate(3deg); } }
@keyframes hops { 0% { transform: scale(1); } 30% { transform: scale(.88, 1.1) translateY(-14px); } 60% { transform: scale(1.08, .92); } 100% { transform: scale(1); } }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 6px) scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -22px) scale(1.2); } }
@keyframes blase { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(-240px) translateX(12px); opacity: 0; } }
@keyframes schweben { 0%,100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-8px) rotate(8deg); } }
@keyframes einblenden { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Kinder */
.kind .kind-held { margin: calc(-1 * (env(safe-area-inset-top, 0px) + 24px)) -18px 14px; background: radial-gradient(circle at 85% 15%, #4fd1c5 0, #1fa7a0 40%, #13707a 100%); }
.kind-held .maskottchen { width: 138px; height: 138px; }
.kind-held .maskottchen img { inset: 0; width: 100%; height: 100%; }
.kind-held .held-text .ava-knopf.mini { border: 0; background: none; padding: 0; margin-bottom: 6px; }
.kind-held .held-text .ava { width: 48px; height: 48px; font-size: 1.6rem; border: 2px solid rgba(255,255,255,.7); }
.kind-held .kicker { font: italic 1.05rem var(--titel); text-transform: none; letter-spacing: 0; color: #e6fffb; }
.kind-held h1 { font: 600 2.3rem/1 var(--titel); color: #fff; }
.konsole { background: var(--karte); border: 2px solid var(--sonne); border-radius: 20px; padding: 14px 16px; margin: 0 0 12px; }
.konsole-kopf { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.konsole-kopf span { font-size: 1.8rem; }
.konsole-balken { height: 18px; border-radius: 999px; background: var(--salbei-hell); overflow: hidden; margin: 10px 0 6px; }
.konsole-balken i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f2c94c, #f59e0b); transition: width .8s ease; box-shadow: inset 0 -3px 0 rgba(0,0,0,.08); }
.konsole small { color: var(--leise); }
.konsole.frei { background: linear-gradient(135deg, #fff6d8, #ffe9a8); animation: leuchten 1.6s ease-in-out infinite alternate; }
@keyframes leuchten { from { box-shadow: 0 0 0 rgba(242,201,76,0); } to { box-shadow: 0 0 22px rgba(242,201,76,.7); } }
.junior-stufe { display: flex; align-items: center; gap: 12px; background: var(--karte); border: 1px solid var(--linie); border-radius: 18px; padding: 10px 14px; margin-bottom: 12px; }
.junior-stufe > span { font-size: 1.7rem; }
.junior-stufe > div { flex: 1; min-width: 0; }
.junior-stufe small { color: var(--leise); font-size: .8rem; }
.sticker-neu { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #fde2f3, #e0f2fe); border-radius: 18px; padding: 12px 16px; margin-bottom: 12px; color: #17262a; }
.sticker-neu small { display: block; color: #3b4a4d; }
.sticker { display: inline-grid; place-items: center; width: 52px; height: 52px; font-size: 2rem; background: #fff; border-radius: 50%; box-shadow: 0 3px 0 rgba(0,0,0,.08), 0 0 0 3px #fff, 0 0 0 5px rgba(0,0,0,.06); transform: rotate(-6deg); }
.sticker.gross { width: 64px; height: 64px; font-size: 2.5rem; animation: hops .7s cubic-bezier(.3,1.6,.5,1); }
.stickerheft { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 14px; padding: 6px 0 14px; }
.stickerheft > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stickerheft > div:nth-child(odd) .sticker { transform: rotate(5deg); }
.stickerheft small { font-size: .7rem; color: var(--leise); text-align: center; }
.muenzregen { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.muenzregen span { position: absolute; top: -40px; animation: muenzfall 1.8s cubic-bezier(.4,0,.8,.6) forwards; }
@keyframes muenzfall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(105vh) rotate(540deg); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .maskottchen, .maskottchen::before, .maskottchen::after, .held-deko i, .held-deko span, .konsole.frei, .held-spruch { animation: none !important; }
}

/* Einrichtungs-Tour & Battle-Einsatz */
.tour-liste { display: grid; gap: 10px; margin: 12px 0; }
.tour-wahl { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; text-align: left; align-items: center; background: var(--karte); border: 2px solid var(--linie); border-radius: 16px; padding: 12px 14px; color: var(--text); font: inherit; cursor: pointer; }
.tour-wahl span { grid-row: span 2; font-size: 1.9rem; text-align: center; }
.tour-wahl small { color: var(--leise); }
.tour-wahl.aktiv { border-color: var(--petrol); background: var(--gruen-flaeche); box-shadow: 0 0 0 3px rgba(36,107,111,.15); }
.tour-frage { font-weight: 600; margin: 16px 0 8px; }
.chip-reihe { display: flex; gap: 8px; flex-wrap: wrap; }
.einsatz-gitter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.einsatz { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; border: 2px solid var(--linie); background: var(--karte); color: var(--text); font: 500 .8rem var(--sans); cursor: pointer; }
.einsatz span { font-size: 1.7rem; }
.einsatz.aktiv { border-color: var(--petrol); background: var(--gruen-flaeche); }
.tour-hinweis { text-align: left; width: 100%; cursor: pointer; font: inherit; color: inherit; }
.einsatz-ergebnis { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(135deg, #fff6d8, #ffe2c2); color: #17262a; border-radius: 18px; padding: 14px 16px; margin: 10px 0; box-shadow: 0 6px 18px rgba(242,201,76,.25); }
.einsatz-ergebnis small { display: block; color: #3b4a4d; margin: 2px 0 8px; }
.einsatz-pokal { font-size: 2.4rem; animation: hops 1s cubic-bezier(.3,1.6,.5,1); }
.einsatz-aktuell { display: flex; align-items: center; gap: 10px; padding: 8px 14px; margin: -4px 0 12px; border-radius: 0 0 14px 14px; background: var(--gruen-flaeche); font-size: .85rem; }
.einsatz-aktuell span { font-size: 1.3rem; }

/* Navigation & Übersicht */
.nav .ni svg { width: 25px; height: 25px; display: block; }
.nav a.aktiv .ni svg { stroke-width: 2.2; }
.menue-titel { font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--leise); margin: 22px 4px 8px; }
.mi-ic { width: 40px; height: 40px; border-radius: 11px; overflow: hidden; flex: none; display: inline-grid; place-items: center; background: var(--salbei-hell); }
.mi-ic img { width: 100%; height: 100%; object-fit: cover; }
.bereich-reiter { display: flex; gap: 4px; max-width: 720px; margin: 12px auto 4px; padding: 4px; background: var(--salbei-hell); border-radius: 14px; width: calc(100% - 40px); }
.bereich-reiter a { flex: 1; text-align: center; padding: 8px 4px; border-radius: 10px; text-decoration: none; color: var(--leise); font-weight: 500; font-size: .9rem; }
.bereich-reiter a.aktiv { background: var(--karte); color: var(--petrol); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.wer-kurz summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--leise); padding: 4px 0; }
.wer-kurz summary::-webkit-details-marker { display: none; }
.wer-kurz summary .ava { width: 26px; height: 26px; font-size: .9rem; }
.wer-kurz summary u { color: var(--petrol); text-decoration: none; font-weight: 500; }
.menue-titel + .menue { margin-top: 0; }
.kat-ic { width: 26px; height: 26px; border-radius: 7px; vertical-align: -7px; margin-right: 4px; }
.waren-ic { width: 26px; height: 26px; border-radius: 7px; vertical-align: middle; }
.warengruppe span .waren-ic { width: 30px; height: 30px; }
.gruppen-wahl .waren-ic { width: 22px; height: 22px; vertical-align: -6px; }

/* ===== A: Heute als Bento-Cockpit ===== */
.heute-a { background: none; }
:root[data-theme="dunkel"] .heute-a { background: linear-gradient(180deg, #122a30 0, var(--flaeche) 320px); }
.bento-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; max-width: 760px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 22px) 20px 4px; }
.bento-kopf h1 { font: 500 1.9rem/1.06 var(--titel); margin: 4px 0 0; } .bento-kopf h1 em { color: var(--petrol); }
.ich-chip { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--karte); border-radius: 999px; padding: 4px 12px 4px 4px; box-shadow: 0 2px 10px rgba(0,0,0,.07); font: 500 .85rem var(--sans); color: var(--text); flex: none; }
.ich-chip .ava { width: 28px; height: 28px; font-size: .95rem; }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 760px; margin: 0 auto; padding: 14px 16px 4px; }
.bento .b { position: relative; overflow: hidden; display: block; background: var(--karte); border-radius: 22px; padding: 14px; box-shadow: 0 4px 16px rgba(23,49,58,.07); text-decoration: none; color: var(--text); min-height: 128px; transition: transform .15s; }
.bento .b:active { transform: scale(.97); }
.bento .b.breit { grid-column: span 2; min-height: 0; }
.bento .b h4 { margin: 0; font: 600 .85rem var(--sans); display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.bento .b h4 span { font: 500 .66rem var(--mono); color: var(--leise); letter-spacing: .06em; }
.bento .b small { display: block; color: var(--leise); font-size: .78rem; margin-top: 6px; }
.bento .gross { font: 600 2.4rem/1 var(--titel); margin-top: 8px; }
.b-ic { width: 26px; height: 26px; border-radius: 8px; }
.held-b { display: flex; align-items: center; gap: 8px; min-height: 150px !important; color: #fff !important; background: radial-gradient(circle at 85% 20%, var(--kopf-1), var(--kopf-2) 45%, var(--kopf-3)) !important; }
.held-b .txt { flex: 1; position: relative; z-index: 2; } .held-b .kicker { color: var(--zart); }
.held-b .gross { font-size: 2.8rem; color: #fff; } .held-b .held-spruch { margin-top: 6px; }
.held-b .maskottchen { width: 124px; height: 124px; }
.held-b + .sprechblase, .held-b .sprechblase { right: 128px; top: 10px; max-width: 52%; }
.podest-mini { display: flex; align-items: flex-end; gap: 6px; height: 74px; margin-top: 8px; }
.podest-mini div { flex: 1; border-radius: 10px 10px 4px 4px; background: color-mix(in srgb, var(--pf) 70%, var(--salbei)); display: flex; justify-content: center; padding-top: 4px; animation: schweben 3.2s ease-in-out infinite; }
.podest-mini div.eins { background: var(--petrol); animation-delay: .4s; }
.podest-mini .ava { width: 24px; height: 24px; font-size: .8rem; border: 2px solid #fff; }
.b.serie { background: linear-gradient(135deg, #fff6d8, #ffe2b5) !important; color: #17262a !important; } .b.serie small { color: #6b5a24; }
.mini-liste { display: grid; gap: 5px; margin-top: 8px; font-size: .82rem; } .mini-liste span { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-liste .waren-ic { width: 22px; height: 22px; border-radius: 6px; }
.einsatz-ic { width: 48px; height: 48px; border-radius: 12px; margin-top: 8px; }
.schnell-b { padding-right: 0 !important; }
.wisch { display: flex; gap: 10px; overflow-x: auto; margin-top: 10px; padding: 2px 14px 4px 0; scroll-snap-type: x mandatory; scrollbar-width: none; }
.wisch::-webkit-scrollbar { display: none; }
.wisch button { flex: none; width: 92px; scroll-snap-align: start; border: 0; border-radius: 16px; background: var(--flaeche); padding: 8px 6px; font: 500 .72rem/1.2 var(--sans); color: var(--text); text-align: center; }
.wisch .w-ic { display: block; width: 62px; height: 62px; margin: 0 auto 6px; border-radius: 14px; overflow: hidden; font-size: 2rem; line-height: 62px; }
.wisch .w-ic img { width: 100%; height: 100%; }
.wisch button:active { transform: scale(.94); }

/* schwebende Leiste mit gelbem + */
.nav { left: 14px; right: 14px; bottom: calc(10px + var(--unten)); border-radius: 26px; padding: 6px 8px; background: color-mix(in srgb, var(--petrol-dunkel) 92%, transparent); border: 0; box-shadow: 0 10px 30px rgba(23,49,58,.3); }
.nav a { color: var(--zart); } .nav a.aktiv { color: #fff; }
.nav-plus { background: var(--sonne); color: #17313a; border: 0; border-radius: 20px; width: 56px; height: 56px; margin-top: -18px; box-shadow: 0 8px 20px rgba(242,201,76,.45); animation: puls 2.6s infinite; }
@keyframes puls { 0%,100% { box-shadow: 0 8px 20px rgba(242,201,76,.45), 0 0 0 0 rgba(242,201,76,.5); } 50% { box-shadow: 0 8px 20px rgba(242,201,76,.45), 0 0 0 10px rgba(242,201,76,0); } }
.nav-zahl { box-shadow: 0 0 0 2px #17313a; }
.seite { padding-bottom: calc(120px + var(--unten)); }

/* Spende */
.spende-kopf { display: flex; gap: 14px; align-items: center; } .spende-ic { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.spende-betraege { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 10px; }
.spende-btn { display: grid; place-items: center; height: 64px; border-radius: 18px; background: var(--petrol); color: #fff; font: 600 1.4rem var(--titel); text-decoration: none; }
.spende-moment { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(135deg, #e8f5f1, #fff6d8); border-radius: 18px; padding: 14px; margin: 12px 0; color: #17262a; }
.spende-moment small { display: block; color: #3b4a4d; margin: 4px 0 8px; } .spende-moment .spende-ic { width: 52px; height: 52px; }

/* ===== B: Kinder-Stapel ===== */
.kind-held { flex-wrap: wrap; border-radius: 0 0 34px 34px; }
.kind-fortschritt { flex-basis: 100%; position: relative; z-index: 2; margin-top: 6px; }
.kind-fortschritt .fb { height: 12px; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; }
.kind-fortschritt .fb i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f2c94c, #ffe39a, #f2c94c); background-size: 200% 100%; animation: glanz 3s linear infinite; transition: width .8s ease; }
@keyframes glanz { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.kind-fortschritt .fb-txt { display: flex; justify-content: space-between; color: #e6fffb; font-size: .8rem; margin-top: 6px; }
.fb-ic { width: 18px; height: 18px; border-radius: 5px; display: inline-block; vertical-align: -4px; }
.stapel { position: relative; height: 330px; margin: 8px 8px 0; }
.stapel-karte { position: absolute; inset: 0; border-radius: 30px; background: var(--karte); box-shadow: 0 18px 40px rgba(23,49,58,.16); }
.stapel-karte.hinten.h0 { transform: translateY(14px) scale(.94); opacity: .75; } .stapel-karte.hinten.h1 { transform: translateY(26px) scale(.88); opacity: .45; }
.stapel-karte.vorne { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px; touch-action: pan-y; cursor: grab; transition: transform .25s ease; user-select: none; -webkit-user-select: none; }
.stapel-karte.vorne.zieht { transition: none; }
.stapel-karte.vorne[data-richtung="rechts"] { box-shadow: 0 18px 40px rgba(36,107,111,.35), inset 0 0 0 3px var(--petrol); }
.stapel-karte.vorne[data-richtung="links"] { box-shadow: 0 18px 40px rgba(180,67,90,.25), inset 0 0 0 3px var(--rot); }
.stapel .pkt { background: #fff6d8; color: #8a6500; border-radius: 99px; padding: 4px 12px; font: 600 .75rem var(--mono); }
.sk-ic { width: 140px; height: 140px; border-radius: 32px; overflow: hidden; margin: 12px 0; font-size: 5rem; line-height: 140px; pointer-events: none; }
.sk-ic img { width: 100%; height: 100%; }
.stapel-karte h3 { font: 600 1.45rem/1.15 var(--titel); margin: 0; } .stapel-karte p { color: var(--leise); margin: 6px 0 0; }
.wischhinweis { display: flex; justify-content: space-between; width: 100%; margin-top: auto; font: 600 .8rem var(--sans); } .wischhinweis span:first-child { color: var(--rot); } .wischhinweis span:last-child { color: var(--petrol); }
.knopfreihe { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 26px 0 6px; }
.rund { width: 60px; height: 60px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 1.5rem; background: var(--karte); box-shadow: 0 8px 20px rgba(0,0,0,.1); color: var(--text); }
.rund.gross { width: 76px; height: 76px; background: var(--petrol); color: #fff; font-size: 2rem; }
.rund:active { transform: scale(.92); }
.stapel-zahl { text-align: center; color: var(--leise); font-size: .85rem; }
.kind { padding-bottom: calc(110px + var(--unten)); }
.kind-nav { position: fixed; left: 14px; right: 14px; bottom: calc(10px + var(--unten)); z-index: 10; display: flex; justify-content: space-around; background: var(--karte); border-radius: 24px; padding: 8px; box-shadow: 0 10px 30px rgba(23,49,58,.18); }
.kind-nav button { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font: 500 .7rem var(--sans); color: var(--leise); }
.kn-ic { width: 30px; height: 30px; border-radius: 9px; }

/* ===== C: Battle-Arena (dunkel) ===== */
body.arena-modus { background: radial-gradient(circle at 50% -10%, var(--arena-1) 0, var(--arena-2) 55%) fixed; color: #e2eeec; }
body.arena-modus .seite { color: #e2eeec; }
.arena-kopf { display: flex; justify-content: space-between; align-items: flex-end; max-width: 760px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 24px) 20px 4px; }
.arena-kopf h1 { font: 500 2rem var(--titel); margin: 2px 0 0; color: #fff; } .arena-kopf h1 em { color: var(--sonne); }
body.arena-modus .kicker { color: var(--arena-leise); }
.xp { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; max-width: 720px; margin: 6px auto 0; padding: 0 20px; }
.xp-ic { width: 34px; height: 34px; border-radius: 10px; grid-row: span 2; }
.xp-txt { display: flex; justify-content: space-between; font-size: .75rem; color: var(--arena-leise); }
.xp-bar { height: 8px; border-radius: 99px; background: var(--arena-linie); overflow: hidden; margin-top: 4px; }
.xp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--arena-akzent), var(--sonne)); box-shadow: 0 0 12px var(--sonne); }
body.arena-modus .bereich-reiter, body.arena-modus .reiter, body.arena-modus .mini-reiter { background: var(--arena-karte); }
body.arena-modus .bereich-reiter a.aktiv, body.arena-modus .reiter button.aktiv, body.arena-modus .mini-reiter button.aktiv { background: var(--arena-linie); color: #fff; }
body.arena-modus .reiter button, body.arena-modus .mini-reiter button, body.arena-modus .bereich-reiter a { color: var(--arena-leise); }
.arena { position: relative; display: flex; justify-content: space-between; align-items: flex-end; height: 250px; margin: 14px 0; border-radius: 26px; padding: 0 10px 14px; background: linear-gradient(180deg, rgba(79,209,197,.12), rgba(242,201,76,.05)); border: 1px solid rgba(127,179,168,.25); overflow: hidden; }
.arena .vs { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); font: 700 2.6rem var(--titel); color: var(--sonne); text-shadow: 0 0 20px rgba(242,201,76,.8); animation: schweben 2.4s ease-in-out infinite; }
.kaempfer { width: 46%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.kaempfer img { width: 118px; animation: wippen 2s ease-in-out infinite; filter: drop-shadow(0 0 16px rgba(79,209,197,.45)); }
.kaempfer.r img { transform: scaleX(-1); animation: none; }
.kaempfer .ava { width: 26px; height: 26px; font-size: .85rem; margin-top: -10px; border: 2px solid var(--arena-2); }
.kaempfer b { font: 600 1.3rem var(--titel); color: #fff; } .kaempfer .pz { font: 500 .8rem var(--mono); color: var(--sonne); } .kaempfer small { color: var(--arena-leise); font-size: .72rem; }
.kaempfer.leer { justify-content: center; height: 100%; } .kaempfer.leer b { font-size: 3rem; color: #3b5a60; }
body.arena-modus .einsatz-ergebnis { background: linear-gradient(135deg, #3a1d2a, #5a2433); color: #fbe4e0; border: 1px solid rgba(255,122,107,.35); box-shadow: none; }
body.arena-modus .einsatz-ergebnis small { color: #f3c6bf; }
body.arena-modus .einsatz-aktuell { background: var(--arena-karte); border-radius: 14px; margin: 0 0 12px; color: #e2eeec; }
.einsatz-aktuell .einsatz-ic { width: 34px; height: 34px; margin: 0; }
.einsatz-pokal img { width: 52px; height: 52px; border-radius: 14px; }
body.arena-modus .liste { background: transparent; border: 0; gap: 8px; }
body.arena-modus .liste .zeile { background: var(--arena-karte); border-radius: 14px; color: #e2eeec; }
body.arena-modus .liste .zeile small, body.arena-modus .battle-abstand { color: var(--arena-leise); }
body.arena-modus .prozent { color: var(--arena-akzent); }
body.arena-modus section h2, body.arena-modus h2 { color: #fff; }
body.arena-modus .titel { background: var(--arena-karte); color: #e2eeec; border-color: var(--arena-linie); }
body.arena-modus .karte, body.arena-modus .battle-leer { background: var(--arena-karte); color: #e2eeec; }
@media (prefers-reduced-motion: reduce) { .podest-mini div, .arena .vs, .kaempfer img, .nav-plus, .kind-fortschritt .fb i { animation: none !important; } }
.bento .held-b { display: flex; }
.bento .b small { font-family: var(--sans); }


/* Farbschemen (Gerät): Petrol (Standard), Nachtblau, Beere */
:root { --g-hell: #3b8f8d; }
:root[data-farbe="nachtblau"] { --petrol: #2b4c8c; --petrol-dunkel: #142445; --salbei: #8fb0d9; --salbei-hell: #dbe6f5; --flaeche: #eef2f8; --linie: #d5deeb; --gruen-flaeche: #eef3fb; --g-hell: #4a74b8; }
:root[data-farbe="beere"] { --petrol: #8a3a68; --petrol-dunkel: #3a1830; --salbei: #c99bb7; --salbei-hell: #f3e3ec; --flaeche: #f7f1f4; --linie: #ead7e1; --gruen-flaeche: #fbf1f6; --g-hell: #b05a8a; }
:root[data-theme="dunkel"][data-farbe="nachtblau"] { --petrol: #7fa3e0; --petrol-dunkel: #0b1530; --flaeche: #0e1626; --karte: #15203a; --linie: #253456; --salbei-hell: #1c2a4a; --gruen-flaeche: #17223d; }
:root[data-theme="dunkel"][data-farbe="beere"] { --petrol: #e08ab9; --petrol-dunkel: #1f0c19; --flaeche: #1a0f17; --karte: #261521; --linie: #3d2335; --salbei-hell: #3a1f31; --gruen-flaeche: #2c1826; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="hell"])[data-farbe="nachtblau"] { --petrol: #7fa3e0; --petrol-dunkel: #0b1530; --flaeche: #0e1626; --karte: #15203a; --linie: #253456; --salbei-hell: #1c2a4a; --gruen-flaeche: #17223d; }
  :root:not([data-theme="hell"])[data-farbe="beere"] { --petrol: #e08ab9; --petrol-dunkel: #1f0c19; --flaeche: #1a0f17; --karte: #261521; --linie: #3d2335; --salbei-hell: #3a1f31; --gruen-flaeche: #2c1826; }
}


.farbschema { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.farbschema button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; border: 2px solid var(--linie); background: var(--karte); color: var(--text); font: 500 .8rem var(--sans); }
.farbschema button span { width: 36px; height: 36px; border-radius: 50%; }
.farbschema button.aktiv { border-color: var(--petrol); }
.figurwahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.figurwahl label { cursor: pointer; } .figurwahl input { position: absolute; opacity: 0; }
.figurwahl span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 16px; border: 2px solid var(--linie); background: var(--karte); font-weight: 500; }
.figurwahl img { width: 72px; height: 72px; object-fit: contain; }
.figurwahl input:checked + span { border-color: var(--petrol); background: var(--gruen-flaeche); }
.profilbilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; max-height: 260px; overflow-y: auto; padding: 4px; margin-bottom: 8px; }
.profilbilder label { cursor: pointer; } .profilbilder input { position: absolute; opacity: 0; }
.profilbilder img { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 3px solid transparent; }
.profilbilder input:checked + img { border-color: var(--petrol); box-shadow: 0 0 0 2px var(--karte); }

/* App-Rundgang */
#rundgang { position: fixed; inset: 0; z-index: 80; }
.rg-spot { position: fixed; border-radius: 20px; box-shadow: 0 0 0 9999px rgba(10,22,26,.68); transition: all .35s cubic-bezier(.3,1.2,.5,1); pointer-events: none; animation: rgPuls 1.8s ease-in-out infinite; }
@keyframes rgPuls { 0%,100% { outline: 3px solid rgba(242,201,76,.9); outline-offset: 2px; } 50% { outline: 3px solid rgba(242,201,76,.3); outline-offset: 8px; } }
.rg-blase { position: fixed; left: 14px; right: 14px; display: flex; gap: 12px; align-items: flex-start; background: var(--karte); color: var(--text); border-radius: 22px; padding: 14px 16px; box-shadow: 0 18px 40px rgba(0,0,0,.3); animation: einblenden .35s ease both; }
.rg-blase::after { content: ''; position: absolute; left: var(--pfeil); width: 0; height: 0; border: 14px solid transparent; }
.rg-blase.unten::after { top: -26px; border-bottom-color: var(--karte); }
.rg-blase.oben::after { bottom: -26px; border-top-color: var(--karte); }
.rg-blase img { width: 64px; height: 64px; object-fit: contain; flex: none; animation: wippen 2.4s ease-in-out infinite; }
.rg-blase b { font: 600 1.15rem var(--titel); } .rg-blase p { margin: 4px 0 10px; color: var(--leise); font-size: .9rem; }
.rg-fuss { display: flex; align-items: center; gap: 12px; } .rg-fuss .link { margin-left: auto; }
.rg-punkte { display: flex; gap: 4px; } .rg-punkte i { width: 6px; height: 6px; border-radius: 50%; background: var(--linie); } .rg-punkte i.an { background: var(--petrol); width: 16px; border-radius: 3px; }

/* Feedback-Bubble */
#feedback { position: fixed; z-index: 70; left: 14px; right: 14px; bottom: calc(92px + var(--unten)); max-width: 460px; margin: 0 auto; background: var(--karte); color: var(--text); border-radius: 24px; padding: 16px 16px 14px 92px; box-shadow: 0 18px 44px rgba(23,49,58,.28); animation: hops .6s cubic-bezier(.3,1.6,.5,1); min-height: 96px; }
.fb-haeusl { position: absolute; left: 10px; bottom: 8px; width: 74px; height: 74px; object-fit: contain; animation: wippen 2.4s ease-in-out infinite; }
.fb-x { position: absolute; right: 8px; top: 6px; border: 0; background: none; font-size: 1.4rem; color: var(--leise); }
.fb-sterne { display: flex; gap: 4px; margin: 6px 0 2px; }
.fb-sterne button { border: 0; background: none; font-size: 2rem; line-height: 1; color: var(--linie); padding: 0 2px; transition: transform .15s, color .15s; }
.fb-sterne button.an { color: var(--sonne); transform: scale(1.1); }
#feedbackForm textarea { width: 100%; margin: 8px 0; border-radius: 12px; border: 1px solid var(--linie); padding: 8px; font: inherit; background: var(--feld); color: var(--text); }
#feedbackForm small { display: block; margin-top: 6px; }
.rg-blase > div { flex: 1; min-width: 0; }
.rg-fuss { gap: 8px; } .rg-fuss .btn { flex: none; }

/* Vorher/Nachher */
.vn-start { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 2px dashed var(--salbei); background: var(--gruen-flaeche); border-radius: 16px; padding: 10px 14px; margin-bottom: 12px; color: var(--text); font: inherit; }
.vn-start > span:first-child { font-size: 1.8rem; } .vn-start small { display: block; color: var(--leise); font-size: .8rem; }
.vn-link { display: block; margin: 0 auto 6px; border: 0; background: none; color: var(--petrol); font: 600 .9rem var(--sans); }
.vn-laufend { display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg, #fff6d8, #e8f5f1); color: #17262a; border-radius: 18px; padding: 12px 14px; margin: 12px 0; animation: hops .6s cubic-bezier(.3,1.6,.5,1); }
.vn-laufend small { display: block; color: #3b4a4d; margin: 2px 0 8px; }
.vn-mini { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; background: #fff; }
.vn { position: relative; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: #000; user-select: none; -webkit-user-select: none; }
.vn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vn .vn-vorher { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.vn-griff { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #f2c94c; box-shadow: 0 0 10px rgba(0,0,0,.4); pointer-events: none; }
.vn-griff::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #f2c94c; color: #17313a; display: grid; place-items: center; font: 700 1rem var(--sans); box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.vn-l, .vn-r { position: absolute; top: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(23,49,58,.75); color: #fff; font: 600 .7rem var(--mono); letter-spacing: .08em; pointer-events: none; }
.vn-l { left: 12px; } .vn-r { right: 12px; }
.vn input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; touch-action: pan-y; }

.ich-chip.dunkel { margin-top: 10px; background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.heute-a .held { margin-bottom: 2px; }
.heute-a .bento { padding-top: 14px; }

/* Dunkelmodus: Hinweis- und Feierkarten einheitlich petrol mit Sonnen-Rand statt heller Flächen */
:root[data-theme="dunkel"] .feier, :root[data-theme="dunkel"] .spende-moment, :root[data-theme="dunkel"] .vn-laufend, :root[data-theme="dunkel"] .sticker-neu, :root[data-theme="dunkel"] .einsatz-ergebnis { background: linear-gradient(135deg, var(--dk1), var(--dk2)) !important; color: var(--text) !important; border: 1px solid rgba(242,201,76,.45); box-shadow: 0 8px 24px rgba(0,0,0,.25) !important; }
:root[data-theme="dunkel"] .feier .kicker, :root[data-theme="dunkel"] .feier-zeile small, :root[data-theme="dunkel"] .spende-moment small, :root[data-theme="dunkel"] .vn-laufend small, :root[data-theme="dunkel"] .sticker-neu small, :root[data-theme="dunkel"] .einsatz-ergebnis small { color: var(--zart) !important; }
:root[data-theme="dunkel"] .feier .x { background: rgba(255,255,255,.12); color: #fff; }
:root[data-theme="dunkel"] .feier .btn, :root[data-theme="dunkel"] .spende-moment .btn:not(.leise), :root[data-theme="dunkel"] .vn-laufend .btn:not(.leise) { background: #f2c94c; color: #17313a; }
:root[data-theme="dunkel"] .bento .b.serie { background: linear-gradient(135deg, var(--dk1), var(--dk1)) !important; color: #fff !important; border: 1px solid rgba(242,201,76,.45); }
:root[data-theme="dunkel"] .bento .b.serie small { color: #f2c94c !important; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="hell"]) .feier, :root:not([data-theme="hell"]) .spende-moment, :root:not([data-theme="hell"]) .vn-laufend, :root:not([data-theme="hell"]) .sticker-neu, :root:not([data-theme="hell"]) .einsatz-ergebnis { background: linear-gradient(135deg, var(--dk1), var(--dk2)) !important; color: var(--text) !important; border: 1px solid rgba(242,201,76,.45); box-shadow: 0 8px 24px rgba(0,0,0,.25) !important; }
:root:not([data-theme="hell"]) .feier .kicker, :root:not([data-theme="hell"]) .feier-zeile small, :root:not([data-theme="hell"]) .spende-moment small, :root:not([data-theme="hell"]) .vn-laufend small, :root:not([data-theme="hell"]) .sticker-neu small, :root:not([data-theme="hell"]) .einsatz-ergebnis small { color: var(--zart) !important; }
:root:not([data-theme="hell"]) .feier .x { background: rgba(255,255,255,.12); color: #fff; }
:root:not([data-theme="hell"]) .feier .btn, :root:not([data-theme="hell"]) .spende-moment .btn:not(.leise), :root:not([data-theme="hell"]) .vn-laufend .btn:not(.leise) { background: #f2c94c; color: #17313a; }
:root:not([data-theme="hell"]) .bento .b.serie { background: linear-gradient(135deg, var(--dk1), var(--dk1)) !important; color: #fff !important; border: 1px solid rgba(242,201,76,.45); }
:root:not([data-theme="hell"]) .bento .b.serie small { color: #f2c94c !important; }
}

/* Kopf kompakt: oben Datum + Profil, darunter Begrüßung links, Häusl rechts */
.held.held-kompakt { display: block; padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 16px 20px; }
.held-oben { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.held-oben .kicker { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.held-oben .ich-chip.dunkel { margin-top: 0; flex: none; padding: 3px 10px 3px 3px; font-size: .8rem; }
.held-oben .ich-chip .ava { width: 24px; height: 24px; }
.held-mitte { position: relative; display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.held-kompakt h1 { font-size: 1.75rem; margin: 0 0 4px; }
.held-kompakt .held-spruch { font-size: .9rem; }
.held-kompakt .maskottchen { width: 112px; height: 112px; }
.held-kompakt .sprechblase { right: 118px; top: calc(env(safe-area-inset-top, 0px) + 44px); }

/* Leiste unten angedockt: volle Breite, Unschärfe, Verlauf darüber */
.nav { left: 0; right: 0; bottom: 0; border-radius: 24px 24px 0 0; padding: 8px 10px calc(8px + var(--unten));
  background: color-mix(in srgb, var(--petrol-dunkel) 78%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 -6px 24px rgba(0,0,0,.18); }
.nav::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 56px; pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--flaeche) 92%, transparent), transparent); }
.nav-plus { margin-top: -26px; }
.kind-nav { left: 0; right: 0; bottom: 0; border-radius: 24px 24px 0 0; padding: 8px 8px calc(8px + var(--unten));
  background: color-mix(in srgb, var(--karte) 82%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.kind-nav::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 48px; pointer-events: none; background: linear-gradient(to top, color-mix(in srgb, var(--flaeche) 90%, transparent), transparent); }
body.arena-modus .nav::before { background: linear-gradient(to top, color-mix(in srgb, var(--arena-2) 92%, transparent), transparent); }

/* Farbschema-Variablen, die im Hell- und Dunkelmodus gleich bleiben */
:root { --kopf-1: #3b8f8d; --kopf-2: #246b6f; --kopf-3: #17313a; --zart: #cfe7e2; --arena-1: #1f5257; --arena-2: #0d1d22; --arena-karte: #132a30; --arena-linie: #1f4249; --arena-leise: #93abaa; --arena-akzent: #4fd1c5; --dk1: #1d3d42; --dk2: #173136; }
:root[data-farbe="nachtblau"] { --kopf-1: #4a74b8; --kopf-2: #2b4c8c; --kopf-3: #142445; --zart: #d6e2f5; --arena-1: #22396b; --arena-2: #0b1326; --arena-karte: #142140; --arena-linie: #22345e; --arena-leise: #93a6c8; --arena-akzent: #6fa8ff; --dk1: #1f2f52; --dk2: #172440; }
:root[data-farbe="beere"] { --kopf-1: #b05a8a; --kopf-2: #8a3a68; --kopf-3: #3a1830; --zart: #f3d9e7; --arena-1: #5a2447; --arena-2: #1a0b15; --arena-karte: #2a1424; --arena-linie: #4a2340; --arena-leise: #c9a3b8; --arena-akzent: #ff8ac4; --dk1: #3d1f35; --dk2: #2a1626; }
:root[data-theme="dunkel"] { --gelb-flaeche: var(--dk1); --gruen-flaeche: var(--dk2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="hell"]) { --gelb-flaeche: var(--dk1); --gruen-flaeche: var(--dk2); } }

/* Schlicht-Modus: ohne Maskottchen, Deko und Bewegung */
body.schlicht .maskottchen img, body.schlicht .held-deko, body.schlicht .sprechblase, body.schlicht .fb-haeusl, body.schlicht .einsatz-pokal img { display: none; }
body.schlicht .maskottchen { cursor: default; animation: none !important; width: 96px; height: 96px; }
body.schlicht .maskottchen .ring-zahl { right: auto; bottom: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); background: none; color: #fff; box-shadow: none; font: 600 1.5rem var(--titel); padding: 0; }
body.schlicht *, body.schlicht *::before, body.schlicht *::after { animation: none !important; }
body.schlicht #feedback { padding-left: 16px; }
body.schlicht .arena .kaempfer img { display: none; }
body.schlicht .arena { height: auto; padding: 22px 10px; }
/* Plus sauber in der Leiste, ohne Lichthof */
.nav-plus { margin-top: 0 !important; width: 54px; height: 50px; border-radius: 16px; animation: none !important; box-shadow: 0 4px 12px rgba(0,0,0,.22) !important; border: 0 !important; }
.nav-plus:active { transform: scale(.92); }
/* Unsichtbare Auswahlfelder dürfen das Fenster nicht verbreitern */
.figurwahl label, .profilbilder label { position: relative; }
.figurwahl input, .profilbilder input { position: absolute; left: 0; top: 0; width: 1px !important; height: 1px; opacity: 0; pointer-events: none; margin: 0; }
.sheet { overflow-x: hidden; } #sheetBody { max-width: 100%; overflow-x: hidden; }
input[type=radio], input[type=checkbox] { width: auto; max-width: 100%; }
.avatarwahl label, .farbwahl label, .gruppen-wahl label, .pchip { position: relative; }
.avatarwahl input, .farbwahl input, .gruppen-wahl input, .pchip input { left: 0; top: 0; width: 1px !important; height: 1px; }
/* VS genau mittig: Zentrierung über left/right statt transform (die Animation überschreibt transform) */
.arena .vs { left: 0 !important; right: 0; transform: none !important; top: 36%; text-align: center; pointer-events: none; animation: vsPuls 2.4s ease-in-out infinite; }
@keyframes vsPuls { 0%,100% { opacity: 1; } 50% { opacity: .75; } }
/* Leiste: fünf gleich breite Spalten, Plus leicht erhöht mit Ring in Leistenfarbe */
.nav { display: grid !important; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: center; justify-items: center; }
.nav > [hidden] { display: none !important; }
.nav a { width: 100%; }
.nav-plus { margin-top: -22px !important; width: 58px; height: 58px; border-radius: 20px;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--petrol-dunkel) 92%, transparent), 0 8px 18px rgba(0,0,0,.28) !important; }
/* iOS: Tipp auf Bild in einem label muss die Auswahl auslösen */
.profilbilder img, .figurwahl img, .figurwahl span, .avatarwahl span, .farbwahl span { pointer-events: none; }
.profilbilder label, .figurwahl label { cursor: pointer; -webkit-tap-highlight-color: transparent; display: block; }
.profilbilder { max-height: none !important; overflow: visible !important; }
/* Häusls Spruch als Blase in der Spruchzeile */
.held-spruch.blase { display: inline-block; position: relative; background: #fff; color: #17262a; border-radius: 16px 16px 4px 16px; padding: 6px 12px; margin-top: 2px; font-size: .88rem; box-shadow: 0 6px 16px rgba(0,0,0,.2); animation: hops .5s cubic-bezier(.3,1.6,.5,1); }
.held-spruch.blase::after { content: ''; position: absolute; right: -8px; bottom: 6px; border: 7px solid transparent; border-left-color: #fff; }
/* iOS schneidet Inhalte ab, die aus einem Element mit backdrop-filter ragen → Unschärfe auf eigene Ebene */
.nav { background: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; overflow: visible; }
.nav::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 24px 24px 0 0;
  background: color-mix(in srgb, var(--petrol-dunkel) 80%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 -6px 24px rgba(0,0,0,.18); }
.nav-plus { position: relative; z-index: 1; }
/* Erfolge: einheitliche Kacheln (die Klasse „serie“ erbte sonst Mono-Schrift in Orange) */
.erfolg-karte.serie { font: inherit; color: inherit; }
.erfolg-ic:has(> i) { background: #dfe9e6; }
.spende-karte p { margin: 6px 0 12px; }
.rg-dunkel { position: fixed; inset: 0; background: rgba(10,22,26,.68); animation: einblenden .3s ease both; }
.rg-blase.mitte { top: 22%; }
.rg-blase.mitte::after { display: none; }
.rg-blase.mitte img { width: 84px; height: 84px; }
.rg-blase { text-align: left; }
.rg-fuss { flex-wrap: wrap; }
.rg-punkte { flex-basis: 100%; margin-bottom: 8px; flex-wrap: wrap; }
.rg-fuss .link { margin-left: 0; margin-right: auto; }
/* Ausgeblendete Leiste bleibt ausgeblendet (Kindermodus!) */
.nav[hidden] { display: none !important; }
.stapel-karte h3 { color: var(--text); }

/* Demo-Modus: gelbes Band oben (Familie Berger, nichts wird gespeichert) */
.demo-band { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 7px) 12px 7px 16px; background: var(--sonne); color: #17313a; font: 500 .85rem/1.25 var(--sans);
  box-shadow: 0 4px 14px rgba(23,49,58,.18); }
.demo-band b { font-weight: 700; }
.demo-band .demo-text { min-width: 0; }
.demo-band .demo-knoepfe { display: flex; gap: 6px; flex: none; }
.demo-band .btn.mini { min-height: 32px; padding: 6px 10px; font-size: .8rem; text-decoration: none; display: inline-flex; align-items: center; }
.demo-band .btn.mini:not(.leise) { background: #17313a; color: #fff; }
.demo-band .btn.leise { color: #17313a; box-shadow: inset 0 0 0 1.5px rgba(23,49,58,.35); }
body.mit-demo { padding-top: calc(env(safe-area-inset-top, 0px) + 48px); }
@media (max-width: 420px) {
  .demo-band { flex-wrap: wrap; row-gap: 5px; padding-left: 12px; }
  .demo-band .demo-text { flex-basis: 100%; }
  body.mit-demo { padding-top: calc(env(safe-area-inset-top, 0px) + 84px); }
}

/* Jahresbilanz */
.bilanz-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.bilanz-zahlen div { display: flex; flex-direction: column; }
.bilanz-zahlen b { font: 500 1.6rem var(--mono); color: var(--petrol); }
.bilanz-zahlen small { color: var(--leise); font-size: .8rem; }
.stat-fav { grid-column: 2 / 4; font-size: .78rem; color: var(--leise); }
.monats-balken { display: flex; gap: 4px; height: 130px; align-items: stretch; margin-top: 6px; }
.monats-balken .mb { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.monats-balken .mb-saeule { width: 100%; display: flex; flex-direction: column-reverse; border-radius: 5px 5px 2px 2px; overflow: hidden; background: var(--flaeche); min-height: 2px; }
.monats-balken .mb-saeule i { display: block; }
.monats-balken small { font: .68rem var(--mono); color: var(--leise); }
.tabelle-rahmen { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.bilanz-tabelle { width: 100%; border-collapse: collapse; font-size: .85rem; }
.bilanz-tabelle th, .bilanz-tabelle td { padding: 7px 4px; border-bottom: 1px solid var(--linie); text-align: center; white-space: nowrap; }
.bilanz-tabelle td { font-family: var(--mono); }
.bilanz-tabelle th:first-child, .bilanz-tabelle td:first-child { text-align: left; font-family: inherit; white-space: normal; min-width: 110px; }
.bilanz-tabelle th:last-child, .bilanz-tabelle td:last-child { text-align: right; color: var(--leise); }
.bilanz-tabelle thead th { font-weight: 500; }

/* Power-Modus */
.power-start { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--r); text-decoration: none; color: inherit; }
.power-start span:nth-child(2) { flex: 1; display: flex; flex-direction: column; } .power-start small { color: var(--leise); font-size: .82rem; } .power-start .pfeil { color: var(--leise); font-size: 1.3rem; }
.power-blitz { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gelb-flaeche); font-size: 1.3rem; flex: none; }
.power-schritte { margin: 0; padding-left: 20px; line-height: 1.5; } .power-schritte li + li { margin-top: 6px; }
.power-los { margin-top: 18px; min-height: 60px; font-size: 1.15rem; }
.power-uhr { text-align: center; padding: 28px 0 10px; } .power-uhr p { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }
.power-zeit { font: 500 4.6rem/1 var(--mono); letter-spacing: -.02em; color: var(--petrol); font-variant-numeric: tabular-nums; }
.power-zeit.countdown { font-size: 8rem; animation: puls .9s ease-in-out infinite; }
.power-uhr.fertig .power-zeit { color: var(--text); }
.power-stopp { margin-top: 20px; min-height: 56px; padding: 0 36px; font-size: 1.1rem; border-radius: 999px; }
.power-kacheln { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.power-verwerfen { display: block; margin: 18px auto 0; color: var(--leise); }
.mono { font-family: var(--mono); }
body.power-modus .nav { transform: translateY(calc(100% + 40px)) !important; visibility: hidden; pointer-events: none; }
body.power-modus .seite { padding-bottom: 40px; }
