/* Crissibox Web-App 0.5.0 - Design nach D20 (UI13 A Profilauswahl, UI14 B kompakte Liste, UI15 A Verwaltung mit Tabs,
   UI06 A Haken/NEU/Restzeit, UI07 Farbstil nach Alter). Farben nur ueber die Variablen; zwei Stile:
   data-stil="kind" (bis 14 Jahre: hell, bunt, freundlich) und "erwachsen" (dunkel, aus der Profilfarbe getoent).
   --ton = Profilfarbe (setzt app.js). Keine externen Bibliotheken, keine Markenzeichen. */
:root {
  --ton: #5b8def;
  --bg: #0d0f13;
  --bg-verlauf: radial-gradient(130% 70% at 50% -12%, color-mix(in srgb, var(--ton) 38%, transparent) 0%, transparent 62%);
  --flaeche: rgba(255, 255, 255, .06);
  --flaeche2: rgba(255, 255, 255, .10);
  --flaeche3: rgba(255, 255, 255, .17);
  --kopf-bg: rgba(13, 15, 19, .82);
  --blatt: #191c22;
  --linie: rgba(255, 255, 255, .09);
  --text: #f2f3f6;
  --text2: #a7adb9;
  --text3: #6f7684;
  --akzent: color-mix(in srgb, var(--ton) 55%, #ffffff);
  --akzent-text: #0d0f13;
  --spielen: #ffffff;
  --spielen-text: #0d0f13;
  --neu: #2f6fe0;
  --herz: #ff4d6d;
  --gut: #3fbf6a;
  --gut-text: #4fd17d;
  --warn: #ffb547;
  --schatten: 0 8px 24px rgba(0, 0, 0, .45);
  --radius: 16px;
  --radius-klein: 10px;
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tabs-hoehe: 58px;
  --mini-hoehe: 60px;
  --oben: env(safe-area-inset-top, 0px);
  --unten: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
/* Kinder-Stil (UI07 B): heller Verlauf Himmelblau -> Sonnengelb, weisse Karten, dicke bunte Knoepfe */
:root[data-stil="kind"] {
  --bg: #7fcff2;
  --bg-verlauf: linear-gradient(180deg, #55c3f0 0%, #9fdcf3 46%, #ffe7a3 100%);
  --flaeche: #ffffff;
  --flaeche2: #eef5fb;
  --flaeche3: #dbe8f3;
  --kopf-bg: rgba(85, 195, 240, .88);
  --blatt: #ffffff;
  --linie: #e3ecf4;
  --text: #123056;
  --text2: #47648a;
  --text3: #7d93b0;
  --akzent: #ff7a2f;
  --akzent-text: #ffffff;
  --spielen: #ff7a2f;
  --spielen-text: #ffffff;
  --gut: #1e9e54;
  --gut-text: #178a48;
  --schatten: 0 6px 18px rgba(18, 48, 86, .16);
  --radius: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--schrift);
  font-size: 15px; line-height: 1.35; -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body { overscroll-behavior-y: none; background: var(--bg-verlauf), var(--bg); background-attachment: fixed; min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-size: 16px; } /* iOS zoomt sonst hinein */
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg.i { width: 22px; height: 22px; display: block; flex: none; }
[hidden] { display: none !important; }

.app { min-height: 100%; display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; }

/* Kopf: grosser Titel links, Profil-Pille rechts (WHEAD im Fragebogen) */
.kopf { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  padding: calc(var(--oben) + 10px) 16px 8px; background: var(--kopf-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); min-height: 56px; }
.kopf h1 { font-size: 26px; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 800;
  letter-spacing: -.01em; }
.kopf.unter h1 { font-size: 19px; font-weight: 700; }
.kopf .knopf-rund { width: 38px; height: 38px; background: var(--flaeche2); color: var(--text); }
.pille { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px 0 4px; border-radius: 18px;
  background: var(--flaeche2); font-weight: 600; font-size: 13.5px; max-width: 46%; flex: none; }
.pille .avatar-klein { width: 28px; height: 28px; font-size: 15px; }
.pille span.n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pille svg.i { width: 14px; height: 14px; color: var(--text2); }
.inhalt { flex: 1; padding: 4px 16px calc(var(--tabs-hoehe) + var(--mini-hoehe) + var(--unten) + 24px); outline: none; }

/* Knoepfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 18px;
  border-radius: 22px; background: var(--flaeche2); font-weight: 600; white-space: nowrap; }
.knopf svg.i { width: 20px; height: 20px; }
.knopf.haupt { background: var(--akzent); color: var(--akzent-text); }
.knopf.gefahr { color: var(--herz); }
.knopf.rand { background: none; border: 1.5px solid var(--text3); color: var(--text2); }
.knopf.klein { height: 34px; padding: 0 12px; font-size: 14px; border-radius: 17px; }
.knopf.breit { width: 100%; }
.knopf:disabled { opacity: .45; }
.knopf-rund { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text2); flex: none; }
.knopf-rund.an { color: var(--herz); }
.knopf-rund.an-gut { color: var(--akzent); }
.knopf-rund:active, .knopf:active, .zeile:active, .srow:active, .profil:active { transform: scale(.97); }
.avatar-klein { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; color: #fff; flex: none; }

/* Allgemeine Bausteine */
.abschnitt { margin: 16px 0 8px; display: flex; align-items: center; gap: 8px; }
.abschnitt h2 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--text2); margin: 0; flex: 1; font-weight: 700; }
.karte { background: var(--flaeche); border-radius: var(--radius); padding: 12px; }
:root[data-stil="kind"] .karte, :root[data-stil="kind"] .liste, :root[data-stil="kind"] .srows { box-shadow: var(--schatten); }
.leer { color: var(--text2); text-align: center; padding: 28px 12px; }
.hinweis { color: var(--text2); font-size: 13px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 32px; padding: 0 13px; border-radius: 16px; background: var(--flaeche2); color: var(--text2);
  font-size: 13.5px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; flex: none; }
.chip svg.i { width: 15px; height: 15px; }
.chip.an { background: var(--text); color: var(--bg); }
:root[data-stil="kind"] .chip { background: rgba(255, 255, 255, .7); color: var(--text); }
:root[data-stil="kind"] .chip.an { background: var(--text); color: #fff; }
.reihe { display: flex; align-items: center; gap: 10px; }
.reihe.luft { justify-content: space-between; }
.spalte { display: flex; flex-direction: column; gap: 10px; }
.wachsen { flex: 1; min-width: 0; }
.abgeschnitten { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.klein { font-size: 13px; color: var(--text2); }
.gruen { color: var(--gut-text); font-weight: 600; }

/* Markierungen UI06 A: Haken (gehoert), NEU, Restzeit */
.mk-haken { width: 24px; height: 24px; border-radius: 50%; background: var(--gut); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; flex: none; }
.mk-haken svg.i { width: 16px; height: 16px; }
.mk-neu { height: 20px; padding: 0 8px; border-radius: 10px; background: var(--neu); color: #fff; font-size: 10.5px; font-weight: 800;
  letter-spacing: .04em; display: inline-flex; align-items: center; flex: none; }
.mk-weiter { color: var(--gut-text); flex: none; }
.mk-weiter svg.i { width: 22px; height: 22px; }
.mk-merk { color: var(--akzent); flex: none; }
.mk-merk svg.i { width: 15px; height: 15px; }
svg.i.klein-i { width: 15px; height: 15px; }

/* Startseite UI13 A: "Wer hoert zu?" wie bei Streamingdiensten */
.start { min-height: calc(100vh - var(--oben) - 40px); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 26px; padding: calc(var(--oben) + 24px) 4px 24px; text-align: center; }
.start h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.profile { display: grid; grid-template-columns: repeat(3, 96px); justify-content: center; gap: 22px 14px; width: 100%; }
.profil { display: flex; flex-direction: column; align-items: center; gap: 9px; font-weight: 600; position: relative; color: var(--text2); }
.profil .avatar { width: 88px; height: 88px; border-radius: 24px; display: flex; align-items: center; justify-content: center;
  font-size: 42px; color: #fff; font-weight: 800; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.profil .schloss { position: absolute; top: -6px; right: -2px; width: 26px; height: 26px; background: #0e0f12; border-radius: 50%;
  color: #fff; display: flex; align-items: center; justify-content: center; }
.profil .schloss svg { width: 14px; height: 14px; }
.profil.neu .avatar { background: var(--flaeche2); color: var(--text2); box-shadow: none; border: 2px dashed var(--text3); }
.pin-punkte { display: flex; gap: 16px; margin: 6px 0; }
.pin-punkte span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--text2); }
.pin-punkte span.voll { background: var(--text); border-color: var(--text); }
.pin-punkte.falsch { animation: wackeln .35s; }
@keyframes wackeln { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.tastatur { display: grid; grid-template-columns: repeat(3, 72px); gap: 12px; }
.tastatur button { height: 72px; border-radius: 50%; background: var(--flaeche2); font-size: 28px; font-weight: 600; }
.tastatur button.leer-taste { background: none; }
.mitte { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 20px 4px; }
.mitte h2, .mitte h3 { margin: 0; }
.logo { width: 84px; height: 84px; border-radius: 22px; }

/* Formulare */
.formular { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.feld { display: flex; flex-direction: column; gap: 5px; }
.feld > span { font-size: 13px; color: var(--text2); font-weight: 600; }
.eingabe { height: 46px; border-radius: var(--radius-klein); border: 1px solid var(--linie); background: var(--flaeche);
  padding: 0 12px; outline: none; width: 100%; min-width: 0; }
:root[data-stil="kind"] .eingabe { background: #f4f8fc; }
.eingabe:focus { border-color: var(--akzent); }
.eingabe.code { font-size: 26px; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
select.eingabe { appearance: none; -webkit-appearance: none; }
input[type=date].eingabe { -webkit-appearance: none; appearance: none; display: flex; align-items: center; }
.markiert { border-color: var(--warn) !important; }
.warnung { display: flex; gap: 8px; align-items: center; background: color-mix(in srgb, var(--warn) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 55%, transparent); color: var(--text); border-radius: var(--radius-klein);
  padding: 8px 10px; font-size: 13px; }
:root[data-stil="kind"] .warnung { background: #fff3d1; border-color: #f2c14e; color: #4a3500; }
.abzeichen-warn { font-size: 11px; font-weight: 700; color: #3a2400; background: var(--warn); border-radius: 9px; padding: 2px 7px; flex: none; }

/* Bibliothek UI14 B: kompakte Liste */
.weiter { display: flex; gap: 12px; align-items: center; background: var(--flaeche); border-radius: var(--radius);
  padding: 10px; margin: 4px 0 6px; width: 100%; text-align: left; }
:root[data-stil="kind"] .weiter { box-shadow: var(--schatten); }
.weiter .cover { width: 60px; height: 60px; }
.weiter .titel { font-weight: 700; }
.weiter .vorzeile { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text2); }
.spielknopf { width: 46px; height: 46px; border-radius: 50%; background: var(--spielen); color: var(--spielen-text);
  display: flex; align-items: center; justify-content: center; flex: none; }
.spielknopf svg { width: 24px; height: 24px; margin-left: 2px; }
.srows { display: flex; flex-direction: column; background: var(--flaeche); border-radius: var(--radius); overflow: hidden; }
.srow { display: flex; align-items: center; gap: 12px; padding: 7px 6px 7px 8px; min-height: 64px; width: 100%; text-align: left;
  border-bottom: 1px solid var(--linie); }
.srow:last-child { border-bottom: 0; }
.srow .cover { width: 50px; height: 50px; border-radius: 9px; font-size: 22px; }
.srow .titel { font-weight: 600; font-size: 15px; }
.srow .rechts { display: flex; align-items: center; gap: 2px; flex: none; }
.srow .knopf-rund { width: 36px; height: 36px; }
.srow .knopf-rund svg.i { width: 20px; height: 20px; }
.cover { width: 56px; height: 56px; border-radius: var(--radius-klein); flex: none; object-fit: cover; display: flex;
  align-items: center; justify-content: center; font-weight: 800; color: rgba(255, 255, 255, .95); font-size: 24px;
  background: var(--flaeche3); }
.balken { height: 4px; border-radius: 2px; background: var(--flaeche3); overflow: hidden; }
.balken > i { display: block; height: 100%; background: var(--akzent); border-radius: 2px; }
.balken.gut > i { background: var(--gut); }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.kachel { background: var(--flaeche); border-radius: var(--radius); overflow: hidden; text-align: left; display: flex;
  flex-direction: column; position: relative; }
.kachel .cover { width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; font-size: 44px; }
.kachel .text { padding: 7px 8px 9px; display: flex; flex-direction: column; gap: 4px; }
.kachel .titel { font-weight: 700; font-size: 13.5px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; overflow-wrap: break-word; hyphens: auto; }

/* Serie (Folgen mit UI06 A) */
.serienkopf { display: flex; gap: 14px; align-items: center; margin: 4px 0 12px; }
.serienkopf .cover { width: 92px; height: 92px; font-size: 40px; border-radius: 14px; box-shadow: var(--schatten); }
.serienkopf h2 { margin: 0 0 3px; font-size: 19px; line-height: 1.2; }
.folgen { display: flex; flex-direction: column; background: var(--flaeche); border-radius: var(--radius); overflow: hidden; }
:root[data-stil="kind"] .folgen { box-shadow: var(--schatten); }
.zeile { display: flex; align-items: center; gap: 10px; padding: 7px 4px 7px 10px; min-height: 56px; text-align: left; width: 100%;
  border-bottom: 1px solid var(--linie); }
.zeile:last-child { border-bottom: 0; }
.zeile.aktiv { background: color-mix(in srgb, var(--akzent) 16%, transparent); }
.zeile .nr { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--text2); background: var(--flaeche2); flex: none; }
.zeile .titel { font-weight: 600; }
.zeile.neu-zeile .titel { font-weight: 700; }
.zeile.gehoert-zeile .titel { color: var(--text2); font-weight: 500; }
.zeile .knopf-rund { width: 36px; height: 36px; }

/* Mini-Player und Tabs */
.mini { position: fixed; left: 0; right: 0; bottom: calc(var(--tabs-hoehe) + var(--unten)); z-index: 25; margin: 0 auto;
  max-width: 760px; padding: 0 8px 4px; }
.mini-innen { display: flex; align-items: center; gap: 10px; background: var(--blatt); border-radius: var(--radius);
  padding: 6px; height: var(--mini-hoehe); position: relative; overflow: hidden; box-shadow: var(--schatten);
  border: 1px solid var(--linie); }
.mini-innen .cover { width: 46px; height: 46px; font-size: 20px; }
.mini-innen .fortschritt { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--akzent); }
.mini-innen .knopf-rund { color: var(--text); width: 44px; height: 44px; }
.mini-innen .knopf-rund svg { width: 28px; height: 28px; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 26; max-width: 760px; margin: 0 auto; display: flex;
  justify-content: space-around; background: var(--blatt); border-top: 1px solid var(--linie); padding-bottom: var(--unten); }
.tabs button { flex: 1; height: var(--tabs-hoehe); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--text3); }
.tabs button.an { color: var(--akzent); font-weight: 700; }
:root[data-stil="kind"] .tabs button.an { color: var(--neu); }

/* Schicht (Vollbild-Player, Dialoge) */
.schicht { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .5); display: flex; align-items: flex-end;
  justify-content: center; }
.blatt { background: var(--blatt); width: 100%; max-width: 560px; border-radius: 24px 24px 0 0; max-height: 92vh; overflow-y: auto;
  padding: 10px 18px calc(var(--unten) + 18px); animation: hoch .22s ease-out; }
.blatt.spieler { background: linear-gradient(180deg, color-mix(in srgb, var(--cover, var(--ton)) 55%, #000) 0%, #07090c 78%); color: #fff; }
:root[data-stil="kind"] .blatt.spieler { background: linear-gradient(180deg, #55c3f0 0%, #ffd76a 100%); color: #123056; }
@keyframes hoch { from { transform: translateY(40px); } }
.griff { width: 40px; height: 5px; border-radius: 3px; background: var(--flaeche3); margin: 0 auto 10px; }
.blatt h3 { margin: 4px 0 12px; font-size: 18px; }
.player { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 4px; }
.player .cover { width: min(62vw, 270px); height: min(62vw, 270px); font-size: 90px; border-radius: 22px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .45); }
:root[data-stil="kind"] .player .cover { border: 8px solid #fff; border-radius: 30px; box-shadow: var(--schatten); }
.player .titel { font-size: 19px; font-weight: 800; text-align: center; }
.player .klein { color: inherit; opacity: .72; }
.regler { width: 100%; }
.regler input[type=range] { width: 100%; accent-color: var(--akzent); height: 28px; margin: 0; }
.blatt.spieler .regler input[type=range] { accent-color: #fff; }
:root[data-stil="kind"] .blatt.spieler .regler input[type=range] { accent-color: #ff7a2f; }
.regler .zeiten { display: flex; justify-content: space-between; font-size: 12px; opacity: .75; font-variant-numeric: tabular-nums; }
.steuerung { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 360px; }
.steuerung .knopf-rund { color: inherit; width: 52px; height: 52px; }
.steuerung .knopf-rund svg { width: 30px; height: 30px; }
.steuerung .gross { width: 76px; height: 76px; background: #fff; color: #0d0f13; }
:root[data-stil="kind"] .steuerung .knopf-rund { background: #fff; color: #2f6fe0; }
:root[data-stil="kind"] .steuerung .gross { background: #ff7a2f; color: #fff; }
.steuerung .gross svg { width: 38px; height: 38px; }
.bewerten { display: flex; gap: 18px; }
.bewerten .knopf-rund { width: 56px; height: 56px; background: rgba(255, 255, 255, .12); color: inherit; }
:root[data-stil="kind"] .bewerten .knopf-rund { background: #fff; color: #2f6fe0; }
.bewerten .knopf-rund.an { color: var(--herz); }
.bewerten .knopf-rund svg { width: 28px; height: 28px; }

/* Verwaltung UI15 A: eigener Bereich mit Tabs */
.reiter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 10px; }
.reiter button { height: 36px; border-radius: 18px; background: var(--flaeche2); font-size: 13.5px; font-weight: 600; color: var(--text2);
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.reiter button svg.i { width: 16px; height: 16px; }
.reiter button.an { background: var(--text); color: var(--bg); }
:root[data-stil="kind"] .reiter button { background: rgba(255, 255, 255, .7); color: var(--text); }
:root[data-stil="kind"] .reiter button.an { background: var(--text); color: #fff; }
.liste { display: flex; flex-direction: column; background: var(--flaeche); border-radius: var(--radius); overflow: hidden; }
.liste > .eintrag { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; min-height: 52px;
  border-bottom: 1px solid var(--linie); text-align: left; width: 100%; }
.liste > .eintrag:last-child { border-bottom: 0; }
.liste > .eintrag .cover { width: 44px; height: 44px; border-radius: 8px; font-size: 19px; }
.unbekannt { background: color-mix(in srgb, var(--warn) 16%, var(--flaeche)); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; }
.farben { display: flex; gap: 10px; flex-wrap: wrap; }
.farben button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; }
.farben button.an { border-color: var(--text); }
.avatare { display: flex; gap: 6px; flex-wrap: wrap; }
.avatare button { width: 40px; height: 40px; border-radius: 12px; background: var(--flaeche2); font-size: 21px; }
.avatare button.an { outline: 3px solid var(--text); outline-offset: 1px; }
.hochladen { border: 2px dashed var(--text3); border-radius: var(--radius); padding: 14px; text-align: center; color: var(--text2);
  display: flex; flex-direction: column; align-items: center; gap: 8px; }
:root[data-stil="kind"] .hochladen { background: rgba(255, 255, 255, .75); border-color: #8fb3d6; }
.hochladen .gross { color: var(--neu); }
.hochladen .gross svg.i { width: 32px; height: 32px; }
.hochladen.ziehen { border-color: var(--akzent); color: var(--text); }
.hochladen .ziel { display: flex; gap: 8px; width: 100%; }
.upload-zeile { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 4px 0; }
.upload-zeile .ok { color: var(--gut-text); }
.upload-zeile .fehler { color: var(--herz); }
.schalter { position: relative; width: 50px; height: 30px; flex: none; }
.schalter input { opacity: 0; width: 0; height: 0; position: absolute; }
.schalter span { position: absolute; inset: 0; border-radius: 15px; background: var(--flaeche3); transition: background .15s; }
.schalter span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.schalter input:checked + span { background: var(--gut); }
.schalter input:checked + span::after { transform: translateX(20px); }
.code-gross { font-size: 40px; font-weight: 800; letter-spacing: .2em; text-align: center; font-variant-numeric: tabular-nums; padding: 8px 0; }

.meldung { position: fixed; left: 50%; transform: translateX(-50%) translateY(20px); bottom: calc(var(--tabs-hoehe) + var(--mini-hoehe) + var(--unten) + 22px);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 22px; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: 90vw; text-align: center; }
:root[data-stil="kind"] .meldung { color: #fff; }
.meldung.zeigen { opacity: 1; transform: translateX(-50%) translateY(0); }
.meldung.fehler { background: var(--herz); color: #fff; }

@media (min-width: 700px) {
  .raster { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .profile { grid-template-columns: repeat(3, 120px); }
  .profil .avatar { width: 110px; height: 110px; font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
