/* Finanzen Leuschner · Spielraum
   Eine Zahl am Tag. Ruhig, hell, ehrliche Farben: Blau = Spielraum, Grün = gespart, Gelb/Rot nur wenn es stimmt. */

@font-face {
  font-family: "Plex";
  src: url("/fonts/plex.woff2") format("woff2");
  font-weight: 400 650;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --tinte: #172033;
  --tinte-2: #4f5a6e;
  --leise: #6b7586;
  --linie: #e3e7ee;
  --flaeche: #f3f5f8;
  --grund: #ffffff;
  --blau: #2470cc;           /* 4,9:1 auf Weiß, auch als Knopf mit weißer Schrift */
  --auf-blau: #ffffff;
  --blau-hell: #d6e7fb;
  --gruen: #0f7f55;          /* Text-Grün: 5,0:1 auf Weiß, 4,6:1 auf Fläche */
  --gruen-fuell: #1baf7a;
  --gruen-hell: #d7f0e6;
  --gut: #0c8f0c;
  --knapp: #8a5a00;          /* Text-Gelb, dunkel genug für Schrift (5,9:1) */
  --knapp-fuell: #f5a915;
  --drueber: #c62f2f;
  --orange: #eb6834;
  --leiste: rgba(255, 255, 255, 0.78);
  --chip-gruen: #0b6343;
  --chip-blau: #1b5aa8;

  --r-gross: 18px;
  --r: 14px;
  --r-klein: 10px;
  --seite: 20px;
  --unten: calc(64px + env(safe-area-inset-bottom));

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --tinte: #eef1f6;
    --tinte-2: #b7c0cf;
    --leise: #8f99aa;
    --linie: #263043;
    --flaeche: #172031;
    --grund: #0c121d;
    --blau: #5a9cf0;
    --auf-blau: #0c121d;
    --blau-hell: #1b3152;
    --gruen: #3fcf97;
    --gruen-fuell: #2bbf86;
    --gruen-hell: #12352a;
    --gut: #3fc23f;
    --knapp: #f2b84b;
    --knapp-fuell: #f2b84b;
    --drueber: #ff6b6b;
    --leiste: rgba(12, 18, 29, 0.78);
    --chip-gruen: #3fcf97;
    --chip-blau: #8cbcf6;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font: 100%/1.45 "Plex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; border-radius: 6px; }

.seite {
  max-width: 480px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 18px) var(--seite) calc(var(--unten) + 28px);
}

/* ---------- Kopf ---------- */
.kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.kopf .datum { font-size: .95rem; font-weight: 600; color: var(--tinte-2); }
.kopf .stand { font-size: .8rem; color: var(--leise); white-space: nowrap; }
/* Stand als Knopf: kleine Schrift, aber 44 px Fläche zum Tippen (Polster nach außen, Lage bleibt). */
.kopf button.stand {
  appearance: none; border: 0; background: none; font: inherit; font-size: .8rem; color: var(--leise);
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; margin: -14px -10px;
  border-radius: var(--r-klein); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .15s;
}
.kopf button.stand svg { width: 14px; height: 14px; flex: none; }
.kopf button.stand:active { background: var(--flaeche); color: var(--tinte-2); }
.kopf button.stand:focus-visible { outline: 2px solid var(--blau); outline-offset: -2px; }
.kopf button.stand[aria-busy="true"] { color: var(--tinte-2); }
.kopf button.stand[aria-busy="true"] svg { animation: drehen .9s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }

/* ---------- Die Zahl ---------- */
.held-titel { font-size: 1rem; font-weight: 500; color: var(--tinte-2); }
.held-zahl {
  font-family: "Bricolage", system-ui, sans-serif;
  font-weight: 650;
  font-size: clamp(4.4rem, 22vw, 5.6rem);
  line-height: .92;
  letter-spacing: -.035em;
  margin: .12em 0 .2em;
  display: flex; align-items: baseline; gap: .08em;
}
.held-zahl .eur { font-size: .42em; font-weight: 550; letter-spacing: -.01em; color: var(--tinte-2); }
.held-zahl[data-zustand="rot"] { color: var(--drueber); }

.meter { height: 10px; border-radius: 5px; background: var(--blau-hell); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--blau); border-radius: 5px; }
.meter[data-zustand="gelb"] > i { background: var(--knapp-fuell); }
.meter[data-zustand="rot"] { background: color-mix(in srgb, var(--drueber) 22%, var(--grund)); }
.meter[data-zustand="rot"] > i { background: var(--drueber); }
.meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: .84rem; color: var(--tinte-2); }

.ausblick {
  margin-top: 16px; padding: 12px 14px; border-radius: var(--r);
  background: var(--flaeche); color: var(--tinte-2); font-size: .92rem; line-height: 1.45;
}
.ausblick b { color: var(--tinte); font-weight: 650; }

/* ---------- Kacheln ---------- */
.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.kachel { border: 1px solid var(--linie); border-radius: var(--r); padding: 12px 14px; min-width: 0; }
.kachel .l { font-size: .8rem; color: var(--tinte-2); }
.kachel .w { font-family: "Bricolage", system-ui, sans-serif; font-size: 1.75rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; margin-top: 2px; }
.kachel .s { font-size: .8rem; color: var(--tinte-2); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.punkt { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--leise); }
.punkt[data-stufe="Stark"], .punkt[data-stufe="Im Plan"] { background: var(--gut); }
.punkt[data-stufe="Knapp"] { background: var(--knapp-fuell); }
.punkt[data-stufe="Drüber"] { background: var(--drueber); }

/* ---------- Abschnitte ---------- */
.abschnitt { margin-top: 26px; }
.abschnitt > h2 {
  font-family: "Bricolage", system-ui, sans-serif; font-size: 1.12rem; font-weight: 650; letter-spacing: -.01em;
  margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline;
}
.abschnitt > h2 a, .abschnitt > h2 .neben { font-family: "Plex", system-ui, sans-serif; font-size: .84rem; font-weight: 500; color: var(--blau); text-decoration: none; }

/* Woche als sieben Tage */
.woche { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.woche li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .74rem; color: var(--leise); }
.kreis { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--flaeche); }
.kreis svg { width: 14px; height: 14px; }
.kreis[data-zustand="gruen"] { background: var(--gut); color: #fff; }
.kreis[data-zustand="gelb"] { background: var(--knapp-fuell); color: #3d2a00; }
.kreis[data-zustand="rot"] { background: var(--drueber); color: #fff; }
.kreis[data-zustand="heute"] { background: transparent; box-shadow: inset 0 0 0 2px var(--blau); color: var(--blau); }
.woche li[aria-current] { color: var(--blau); font-weight: 650; }

/* Töpfe */
.topf + .topf { margin-top: 12px; }
.topf .zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .92rem; }
.topf .zeile b { font-weight: 650; white-space: nowrap; }
.topf .zeile .klein { display: block; color: var(--leise); font-size: .8rem; }
.balken { height: 6px; border-radius: 3px; background: var(--gruen-hell); margin-top: 6px; overflow: hidden; }
.balken > i { display: block; height: 100%; background: var(--gruen-fuell); border-radius: 3px; }

/* Umsätze */
.liste li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linie); font-size: .92rem; }
.liste li:last-child { border-bottom: 0; }
.liste .wer { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste .klein { color: var(--leise); font-size: .8rem; margin-left: 6px; }
.liste .betrag { white-space: nowrap; font-weight: 550; }
.liste .betrag.plus { color: var(--gruen); }
.leer { color: var(--leise); font-size: .92rem; padding: 6px 0; }

.hinweis { border-radius: var(--r); padding: 12px 14px; font-size: .92rem; background: color-mix(in srgb, var(--knapp-fuell) 16%, var(--grund)); }
.hinweis b { font-weight: 650; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border-radius: 999px; border: 0; background: var(--blau); color: var(--auf-blau); font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 120ms ease-out;
}
.knopf:active { transform: scale(.97); }
.knopf.zweit { background: var(--flaeche); color: var(--tinte); }
.knopf.breit { width: 100%; }

/* ---------- Leiste unten ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: var(--leiste);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid color-mix(in srgb, var(--linie) 70%, transparent);
}
.tabs ul { max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.tabs a {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 2px; min-height: 48px;
  font-size: .7rem; font-weight: 550; color: var(--leise); text-decoration: none; border-radius: 10px;
}
.tabs a svg { width: 24px; height: 24px; }
.tabs a[aria-current="page"] { color: var(--blau); }
.tabs a:active { background: var(--flaeche); }

@media (prefers-reduced-transparency: reduce) {
  .tabs { background: var(--grund); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .knopf { transition: none; }
  .kopf button.stand[aria-busy="true"] svg { animation: none; opacity: .45; }
}

/* Größere Bildschirme: dieselbe Spalte, ruhig zentriert */
@media (min-width: 720px) {
  body { background: var(--flaeche); }
  .seite { background: var(--grund); min-height: 100vh; box-shadow: 0 0 0 1px var(--linie); }
}

/* ---------- Anmelden / Einladung ---------- */
.anmelden { min-height: calc(100vh - 80px); display: flex; flex-direction: column; justify-content: center; gap: 14px; max-width: 360px; margin: 0 auto; }
.anmelden .marke { font-family: "Bricolage", system-ui, sans-serif; font-weight: 650; font-size: 1.05rem; color: var(--blau); letter-spacing: -.01em; }
.anmelden h1 { font-family: "Bricolage", system-ui, sans-serif; font-size: 2rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.1; }
.anmelden .leise { color: var(--tinte-2); }
.anmelden .mini { color: var(--leise); font-size: .84rem; }
.schritte { counter-reset: s; display: grid; gap: 8px; margin: 4px 0 6px; }
.schritte li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: baseline; color: var(--tinte-2); }
.schritte li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blau-hell); color: var(--blau); font-weight: 650; font-size: .85rem; }
.meldung { border-radius: var(--r-klein); padding: 10px 12px; background: var(--flaeche); font-size: .92rem; }
.meldung[data-art="warn"] { background: color-mix(in srgb, var(--drueber) 12%, var(--grund)); color: var(--drueber); }
.meldung[data-art="gut"] { background: var(--gruen-hell); color: var(--chip-gruen); }
.knopf[disabled] { opacity: .6; }

/* ---------- Unterseiten: Woche, Töpfe, Umsätze, Nachtragen, Einstellungen ---------- */
.seitentitel { font-family: "Bricolage", system-ui, sans-serif; font-size: 2rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.1; }
.kopf a, .kopf a.datum, .kopf a.stand { color: var(--blau); text-decoration: none; }
.gut { color: var(--gruen); }
.schlecht { color: var(--drueber); }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.leise-text { color: var(--tinte-2); font-size: .95rem; margin-top: 8px; }

/* Diagramm: Balken = ausgegeben, gestrichelt = Spielraum des Tages */
.diagramm { display: block; width: 100%; height: auto; }
.diagramm .achse { stroke: var(--linie); stroke-width: 1; }
.diagramm .spielraum { stroke: var(--tinte); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 3; opacity: .5; }
.diagramm .balken-gruen { fill: var(--blau); }
.diagramm .balken-gelb { fill: var(--knapp-fuell); }
.diagramm .balken-rot { fill: var(--drueber); }
.diagramm .laeuft { fill-opacity: .5; }
.diagramm text { font-family: "Plex", system-ui, sans-serif; font-size: 11px; text-anchor: middle; fill: var(--leise); }
.diagramm .wert { fill: var(--tinte-2); font-weight: 600; }
.diagramm .tag.jetzt { fill: var(--blau); font-weight: 650; }
.legende { margin-top: 8px; font-size: .8rem; color: var(--leise); }
.l-balken, .l-strich { display: inline-block; vertical-align: middle; margin: 0 6px 2px 0; }
.l-balken { width: 10px; height: 10px; border-radius: 3px; background: var(--blau); }
.l-strich { width: 18px; border-top: 2px dashed var(--tinte); opacity: .5; margin-left: 12px; }
.blaettern { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; }

/* Listen mit zweiter Zeile */
.liste.zweizeilig .wer { white-space: normal; }
.liste.zweizeilig .wer > .klein { display: block; margin: 1px 0 0; }
.liste .betrag .klein { margin-left: 4px; }
.liste .betrag.minus { color: var(--drueber); }
.liste li:has(> .zeile-link) { padding: 0; }
.zeile-link { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; min-width: 0; padding: 10px 0; text-decoration: none; }
.zeile-link:active { background: var(--flaeche); }
.chip {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; vertical-align: 1px;
  font-size: .72rem; font-weight: 600; background: var(--flaeche); color: var(--tinte-2);
}
.chip-offen { background: color-mix(in srgb, var(--knapp-fuell) 22%, var(--grund)); color: var(--knapp); }
.chip-topf { background: var(--gruen-hell); color: var(--chip-gruen); }
.chip-strecken { background: var(--blau-hell); color: var(--chip-blau); }
.abschnitt.kompakt { margin-top: 18px; }
.abschnitt.kompakt > h2 { font-family: "Plex", system-ui, sans-serif; font-size: .84rem; font-weight: 600; color: var(--leise); margin-bottom: 0; }
.topf .zeile + .zeile { margin-top: 10px; }
.topf .zeile + .klein-zeile { margin-top: 4px; }
.topf .klein-zeile { font-size: .8rem; color: var(--leise); margin-top: 4px; }

/* Hinweise, Großkauf-Entscheidung, Meldungen */
.hinweis.entscheiden, .hinweis.neu { margin-top: 14px; }
.hinweis p + p { margin-top: 6px; }
.entscheiden .wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.entscheiden .knopf { min-height: 40px; padding: 0 14px; font-size: .88rem; background: var(--grund); }
.hinweis.neu { background: var(--blau-hell); }
.code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .8rem; word-break: break-all;
  background: var(--grund); padding: 8px 10px; border-radius: 8px; -webkit-user-select: all; user-select: all;
}
.meldung-zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--blau-hell); margin-bottom: 18px; }

/* Ein Umsatz */
.gross-betrag { font-family: "Bricolage", system-ui, sans-serif; font-size: 2.6rem; font-weight: 650; letter-spacing: -.03em; margin: 6px 0 14px; }
.gross-betrag.plus { color: var(--gruen); }
.fakten { margin: 0; border-top: 1px solid var(--linie); }
.fakten div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--linie); font-size: .92rem; }
.fakten dt { color: var(--leise); flex: none; }
.fakten dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* Formulare (16 px und mehr, sonst zoomt iOS beim Antippen) */
.formular { display: grid; gap: 8px; }
.formular label { font-size: .86rem; font-weight: 600; color: var(--tinte-2); margin-top: 6px; }
.formular input:not([type="radio"]), .formular select {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r-klein);
  border: 1px solid var(--linie); background: var(--grund); font-size: 1.05rem;
}
.formular input::placeholder { color: var(--leise); }
.formular .knopf { margin-top: 14px; }
.art { border: 0; margin: 6px 0 0; padding: 0; min-width: 0; }
.art legend { padding: 0; margin-bottom: 8px; font-size: .86rem; font-weight: 600; color: var(--tinte-2); }
.umschalter { padding: 3px; display: grid; grid-template-columns: 1fr 1fr; background: var(--flaeche); border-radius: 12px; }
.umschalter label { position: relative; margin: 0; display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 9px; color: var(--tinte-2); cursor: pointer; }
.umschalter input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.umschalter label:has(input:checked) { background: var(--grund); color: var(--tinte); box-shadow: 0 1px 3px rgb(0 0 0 / .14); }
.umschalter label:has(input:focus-visible) { outline: 3px solid var(--blau); outline-offset: 1px; }

/* Einstellungen */
.klein-knopf { min-height: 36px; padding: 0 14px; font-size: .84rem; }
.stapel { display: grid; gap: 8px; margin-top: 10px; }
.abschnitt .liste + form, .abschnitt .leer + form { margin-top: 10px; }
.liste li > form { flex: none; }

/* ---------- Spielebene: Rückblick, Level, Challenge, Erfolge ---------- */
.rueckblick {
  margin: -6px 0 20px; padding: 12px 14px; border-radius: var(--r);
  background: var(--flaeche); font-size: .92rem; color: var(--tinte-2);
}
.rueckblick[data-art="plus"] { background: var(--gruen-hell); }
.rueckblick[data-art="minus"] { background: color-mix(in srgb, var(--drueber) 9%, var(--grund)); }
.rueckblick b { color: var(--tinte); font-weight: 650; }
.rueckblick[data-art="plus"] #rb { color: var(--chip-gruen); }
.rb-zeile { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.rb-symbol {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; line-height: 1;
  background: var(--grund); color: var(--drueber); font-weight: 700;
}
.rb-text { display: block; margin-top: 1px; }
.rb-neu { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0 44px; }
.rb-neu a {
  display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--grund); color: var(--tinte); font-size: .82rem; font-weight: 600; text-decoration: none;
}
/* Ein kurzer Auftritt beim Öffnen, nur bei guten Nachrichten. */
.rueckblick[data-art="plus"] .rb-symbol, .rb-neu li { animation: aufpoppen .5s cubic-bezier(.34, 1.56, .64, 1) both; }
.rb-neu li:nth-child(2) { animation-delay: .08s; }
.rb-neu li:nth-child(3) { animation-delay: .16s; }
@keyframes aufpoppen { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

.level {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; margin-top: 10px;
  border: 1px solid var(--linie); border-radius: var(--r); padding: 12px 14px; text-decoration: none; color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.level:active { background: var(--flaeche); }
.lv-nr {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blau); color: var(--auf-blau); font-family: "Bricolage", system-ui, sans-serif; font-weight: 700; font-size: 1.2rem;
}
.lv-text { min-width: 0; font-size: .92rem; }
.lv-text b { font-weight: 650; }
.lv-text .klein { display: block; color: var(--tinte-2); font-size: .8rem; margin-top: 1px; }
.lv-text .balken { display: block; background: var(--blau-hell); }
.lv-text .balken > i { background: var(--blau); }
.lv-pfeil { color: var(--leise); font-size: 1.4rem; line-height: 1; }

.challenge { border: 1px solid var(--linie); border-radius: var(--r); padding: 12px 14px; }
.challenge .zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .92rem; }
.challenge .zeile b { font-weight: 650; }
.challenge .zeile .klein { display: block; color: var(--tinte-2); font-size: .8rem; }
.ch-stand { text-align: right; font-weight: 650; white-space: nowrap; }
.ch-stand .klein { font-weight: 500; }
.challenge[data-status="geschafft"] { border-color: var(--gruen-fuell); background: var(--gruen-hell); }
.challenge[data-status="geschafft"] .ch-stand { color: var(--chip-gruen); }
.challenge[data-status="verpasst"] .ch-stand { color: var(--leise); }
.ch-punkte { display: flex; gap: 6px; margin-top: 10px; }
.ch-punkte li { flex: 1; height: 8px; border-radius: 4px; background: var(--blau-hell); }
.ch-punkte li[data-voll] { background: var(--blau); }
.challenge[data-status="geschafft"] .ch-punkte li { background: var(--gruen-fuell); }

.abzeichen { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.abzeichen li {
  display: grid; gap: 2px; justify-items: start; padding: 12px; border-radius: var(--r);
  background: var(--flaeche); color: var(--tinte-2); font-size: .8rem;
}
.abzeichen li[data-erreicht] { background: var(--grund); border: 1px solid var(--linie); color: var(--tinte-2); }
.az-symbol { font-size: 1.6rem; line-height: 1.2; filter: grayscale(1); opacity: .45; }
.abzeichen li[data-erreicht] .az-symbol { filter: none; opacity: 1; }
.az-name { font-weight: 650; font-size: .88rem; color: var(--tinte-2); }
.abzeichen li[data-erreicht] .az-name { color: var(--tinte); }
.az-mal { color: var(--blau); font-weight: 650; }
.stufen li[aria-current] { color: var(--blau); font-weight: 650; }

/* Mitteilungen: Schalter */
.push-hinweis { display: grid; gap: 10px; justify-items: start; margin: -6px 0 20px; background: var(--blau-hell); }
.push-hinweis[hidden] { display: none; }
.push-geraet { display: grid; gap: 10px; margin-bottom: 14px; }
.push-geraet [hidden] { display: none; }
.schalter-liste fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.schalter {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 0;
  border-bottom: 1px solid var(--linie); font-size: .92rem; cursor: pointer;
}
.schalter b { font-weight: 600; }
.schalter .klein { display: block; color: var(--leise); font-size: .8rem; }
.schalter input {
  appearance: none; -webkit-appearance: none; flex: none; width: 51px; height: 31px; margin: 0; border-radius: 999px;
  background: var(--linie); position: relative; cursor: pointer; transition: background .2s ease-out;
}
.schalter input::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 4px rgb(0 0 0 / .2); transition: transform .25s cubic-bezier(.34, 1.4, .64, 1);
}
.schalter input:checked { background: var(--gut); }
.schalter input:checked::after { transform: translateX(20px); }
.schalter input:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
.schalter-liste .knopf { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .rueckblick[data-art="plus"] .rb-symbol, .rb-neu li { animation: none; }
  .schalter input, .schalter input::after { transition: none; }
}
