/* Vereins-Demo „Kulturverein Miteinander“ – eigene Farbwelt: Abendviolett, Türkis, Koralle.
   Rahmen (Kopf, Demo-Leiste, Erklärkästen, Dialoge, Hinweis) wie die Gastro-Demo. Systemschriften, nichts wird nachgeladen.
   Hell/Dunkel/Gerät: feste helle Werte als Rückfall, dann light-dark() mit color-scheme am <html> (thema.js). */
:root {
  --nacht: #241f45; --nacht2: #1a1636; --koralle: #f4a874; --tuerkis: #0f6e6e; --tuerkis-hell: #4fc3bd; --violett: #6a5acd;
  --titel: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --text-f: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --auf-koralle: #2a160a;
  --grund: #f5f3fb; --flaeche: #ffffff; --flaeche-2: #ebe7f6; --text: #1e1b33; --leise: #5b5770;
  --linie: rgba(30,27,51,.14); --akzent-t: #0d6464; --violett-t: #4d3fae; --rot: #b3261e; --rot-flaeche: #fbe3e0;
  --gruen: #1f7a43; --gruen-flaeche: #def3e5; --gelb-flaeche: #fff1e4; --lila-flaeche: #ece8fb; --tuerkis-flaeche: #dcf3f1;
  --schatten: 0 12px 30px -18px rgba(36,31,69,.5); --hinterlegt: rgba(26,22,54,.55);
  --erkl: #ecf6f5; --erkl-rand: #0f6e6e;
  color-scheme: light;
}
:root[data-thema="dunkel"] { color-scheme: dark; }
:root[data-thema="geraet"] { color-scheme: light dark; }
@supports (color: light-dark(#000, #fff)) {
  :root {
    --grund: light-dark(#f5f3fb, #13111f); --flaeche: light-dark(#ffffff, #1d1a2e); --flaeche-2: light-dark(#ebe7f6, #2c2843);
    --text: light-dark(#1e1b33, #eeebf8); --leise: light-dark(#5b5770, #b1abc8); --linie: light-dark(rgba(30,27,51,.14), rgba(238,235,248,.16));
    --akzent-t: light-dark(#0d6464, #6fd6cf); --violett-t: light-dark(#4d3fae, #b9adff); --rot: light-dark(#b3261e, #ff8a7a); --rot-flaeche: light-dark(#fbe3e0, #45201c);
    --gruen: light-dark(#1f7a43, #7ddc9c); --gruen-flaeche: light-dark(#def3e5, #17361f); --gelb-flaeche: light-dark(#fff1e4, #3d2a19);
    --lila-flaeche: light-dark(#ece8fb, #2e2852); --tuerkis-flaeche: light-dark(#dcf3f1, #143534);
    --schatten: light-dark(0 12px 30px -18px rgba(36,31,69,.5), 0 12px 30px -14px rgba(0,0,0,.8)); --hinterlegt: light-dark(rgba(26,22,54,.55), rgba(0,0,0,.7));
    --erkl: light-dark(#ecf6f5, #172b2b); --erkl-rand: light-dark(#0f6e6e, #4fc3bd);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.45 var(--text-f); color: var(--text); background: var(--grund); -webkit-tap-highlight-color: transparent; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; }
input, textarea, button { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; touch-action: manipulation; }
button:disabled { opacity: .45; cursor: default; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--titel); font-weight: 800; margin: 0; line-height: 1.15; }
a { color: var(--akzent-t); }
.leise { color: var(--leise); }
.stand { opacity: .7; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--koralle); outline-offset: 2px; }

.zum-inhalt { position: absolute; left: -10000px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--koralle); color: var(--auf-koralle); font-weight: 800; }
.zum-inhalt:focus { left: 8px; }
main:focus { outline: none; }

/* ---------- Kopf ---------- */
.kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; min-height: 64px; color: #f1eefb; background: var(--nacht2); border-bottom: 4px solid var(--tuerkis-hell); position: sticky; top: 0; z-index: 30; }
.marke { display: flex; align-items: center; gap: 10px; color: var(--koralle); text-decoration: none; font-family: var(--titel); font-weight: 800; font-size: 23px; line-height: 1; }
.marke img { border-radius: 10px; }
.marke small { display: block; font-family: var(--text-f); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #d4cfea; margin-top: 3px; }
.ansichten { display: flex; gap: 2px; flex-wrap: wrap; margin-left: 6px; }
.ansichten button { color: #f1eefb; font-weight: 700; font-size: 14px; padding: 10px 11px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.ansichten button:hover { background: rgba(255,255,255,.07); }
.ansichten button[aria-pressed="true"] { background: rgba(79,195,189,.2); color: #8fe6e0; box-shadow: inset 0 -3px 0 var(--tuerkis-hell); }
.zahl-punkt { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--koralle); color: var(--auf-koralle); font-size: 13px; font-weight: 800; display: inline-grid; place-items: center; }
.zahl-punkt.ruhig { background: rgba(255,255,255,.2); color: #fff; }
.raum { flex: 1; }
.monat { font-family: var(--titel); font-weight: 800; color: var(--koralle); white-space: nowrap; }
.pille { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 999px; font-size: 18px; background: rgba(255,255,255,.1); color: #f1eefb; }

/* ---------- Demo-Leiste ---------- */
.demo-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 16px; background: repeating-linear-gradient(135deg, #2f2957 0 14px, #2a2450 14px 28px); color: #f1eefb; }
.demo-text { margin: 0; flex: 1 1 280px; }
.demo-text b { display: inline-block; margin-right: 8px; padding: 2px 9px; border-radius: 6px; background: var(--koralle); color: var(--auf-koralle); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.demo-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Knöpfe, Chips, Pillen ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 9px 16px; border-radius: 12px; font-weight: 800; font-size: 15px; background: var(--flaeche-2); color: var(--text); border: 2px solid transparent; text-decoration: none; text-align: center; }
.knopf:active:not(:disabled) { transform: translateY(1px); }
.knopf.koralle { background: var(--koralle); color: var(--auf-koralle); }
.knopf.tuerkis { background: var(--tuerkis); color: #fff; }
.knopf.gruen { background: #1f7a43; color: #fff; }
.knopf.rand { background: transparent; border-color: var(--linie); }
.knopf.rand.hell { border-color: rgba(241,238,251,.4); color: #f1eefb; }
.knopf.rand.hell[aria-pressed="false"] { opacity: .8; }
.knopf.gross { min-height: 56px; font-size: 17px; padding: 12px 22px; border-radius: 16px; }
.knopf.klein { min-height: 40px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-width: 70px; min-height: 52px; padding: 8px 14px; border-radius: 14px; background: var(--flaeche-2); color: var(--text); font-family: var(--titel); font-weight: 800; font-size: 20px; border: 3px solid transparent; }
.chip[aria-pressed="true"] { background: var(--tuerkis); color: #fff; border-color: var(--nacht); }
.chip.text { font-family: var(--text-f); font-size: 15px; font-weight: 700; min-height: 44px; }
.chips.klein .chip { min-height: 40px; padding: 6px 12px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; background: var(--flaeche-2); color: var(--text); }
.pill.gruen { background: var(--gruen-flaeche); color: var(--gruen); }
.pill.grau { background: var(--flaeche-2); color: var(--leise); }
.pill.rot { background: var(--rot-flaeche); color: var(--rot); }
.pill.tuerkis { background: var(--tuerkis-flaeche); color: var(--akzent-t); }
.pill.lila { background: var(--lila-flaeche); color: var(--violett-t); }
.pill.koralle { background: var(--koralle); color: var(--auf-koralle); }
.pill.rand { background: transparent; border: 1px solid var(--linie); font-weight: 700; }

/* ---------- Bühne ---------- */
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 16px 16px 48px; }
.bereich-titel { font-size: 26px; margin: 20px 0 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.bereich-titel.klein { font-size: 19px; margin-top: 28px; }
.zaehler { font-size: 15px; padding: 3px 10px; border-radius: 999px; background: var(--flaeche-2); font-family: var(--text-f); font-weight: 700; }
.bereich-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bereich-kopf .bereich-titel { margin-right: auto; }
.bereich-kopf .knopf-reihe { margin-top: 0; }
.erkl { margin: 4px 0 8px; padding: 12px 16px; border-left: 5px solid var(--erkl-rand); border-radius: 0 12px 12px 0; background: var(--erkl); max-width: 900px; }
.erkl b { display: block; margin-bottom: 2px; }
body.erkl-aus .erkl { display: none; }
.ruhe { padding: 26px 20px; text-align: center; color: var(--leise); border: 2px dashed var(--linie); border-radius: 16px; margin: 0; }
.ruhe .knopf { margin-top: 12px; }
.ruhe-klein { color: var(--leise); margin: 6px 0; }
.karte { background: var(--flaeche); border-radius: 18px; padding: 16px; box-shadow: var(--schatten); border: 1px solid var(--linie); margin-top: 16px; min-width: 0; }
.karte-titel { font-size: 18px; margin-bottom: 10px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.zwei > .karte { margin-top: 16px; }
.zwei.breit-links { grid-template-columns: 1.15fr 1fr; align-items: start; }

/* Balken: Breite setzt app.js über CSSOM (data-breite). */
.balken { display: block; height: 10px; border-radius: 999px; background: var(--flaeche-2); overflow: hidden; }
.balken i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--violett); transition: width .6s ease; }
.balken.t i { background: linear-gradient(90deg, #0f6e6e, #4fc3bd); }
.balken.k i { background: linear-gradient(90deg, #e07a4f, #f4a874); }
.balken.v i { background: linear-gradient(90deg, #4d3fae, #8f7ff0); }
.balken.g i { background: linear-gradient(90deg, #1f7a43, #5cc483); }

/* ---------- Kennzahlen ---------- */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.kennzahl { display: grid; gap: 4px; align-content: start; text-align: left; padding: 14px 16px; border-radius: 16px; background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten); position: relative; overflow: hidden; }
button.kennzahl:hover { border-color: var(--tuerkis-hell); }
.kennzahl svg { color: var(--akzent-t); }
.kennzahl.k-k svg { color: #c4602f; }
.kennzahl.k-v svg { color: var(--violett-t); }
.kennzahl.k-g svg { color: var(--gruen); }
.kennzahl b { font-family: var(--titel); font-weight: 800; font-size: 30px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kennzahl span { font-size: 13.5px; color: var(--leise); }
.kennzahl .balken { margin-top: 6px; }
.kennzahl.wichtig { border: 2px solid var(--koralle); }
.kennzahl::after { content: ""; position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; border-radius: 50%; background: var(--tuerkis-flaeche); opacity: .6; }
.kennzahl.k-k::after { background: var(--gelb-flaeche); }
.kennzahl.k-v::after { background: var(--lila-flaeche); }
.kennzahl.k-g::after { background: var(--gruen-flaeche); }
.kennzahl > * { position: relative; z-index: 1; }

/* ---------- Übersicht ---------- */
.anstehend { display: grid; gap: 8px; }
.anst { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; text-align: left; padding: 11px 13px; border-radius: 12px; background: var(--grund); border: 1px solid var(--linie); min-height: 52px; }
.anst:hover { border-color: var(--tuerkis-hell); }
.anst b { display: block; font-size: 15px; }
.anst small { color: var(--leise); }
.anst .punkt { width: 12px; height: 12px; border-radius: 50%; background: var(--violett); }
.anst.koralle .punkt { background: #e07a4f; }
.anst.tuerkis .punkt { background: var(--tuerkis-hell); }
.anst.gruen .punkt { background: #3fae6b; }
.anst .pfeil { color: var(--leise); font-weight: 800; }
.gruppen-balken { display: grid; gap: 10px; }
.gb { display: grid; grid-template-columns: minmax(96px, 130px) 1fr 28px; gap: 10px; align-items: center; font-size: 14px; }
.gb b { text-align: right; font-variant-numeric: tabular-nums; }
.aktivitaet { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.aktivitaet li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 8px 0 8px 14px; border-left: 3px solid var(--flaeche-2); position: relative; font-size: 15px; }
.aktivitaet li::before { content: ""; position: absolute; left: -7px; top: 13px; width: 11px; height: 11px; border-radius: 50%; background: var(--tuerkis-hell); }
.aktivitaet time { color: var(--leise); font-variant-numeric: tabular-nums; font-size: 13.5px; }

/* ---------- Avatare ---------- */
.avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; }
.av0 { background: #4d3fae; } .av1 { background: #0f6e6e; } .av2 { background: #b4532a; } .av3 { background: #1f7a43; } .av4 { background: #8a3a8a; } .av5 { background: #2d5b9c; }

/* ---------- Anträge ---------- */
.antrag-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.antrag { background: var(--flaeche); border-radius: 18px; padding: 14px 16px; border: 3px solid var(--koralle); box-shadow: var(--schatten); }
.antrag.wartet { border-color: var(--violett); border-style: dashed; }
.antrag-kopf { display: flex; align-items: center; gap: 12px; }
.antrag-kopf > div { flex: 1; min-width: 0; }
.antrag-kopf b { display: block; font-size: 18px; }
.antrag-kopf small { color: var(--leise); }
.antrag-daten { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.zitat { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--grund); font-style: italic; }

/* ---------- Mitgliederliste ---------- */
.werkzeug { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.suche { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; padding: 0 12px; min-height: 48px; border-radius: 12px; background: var(--flaeche); border: 2px solid var(--linie); color: var(--leise); }
.suche:focus-within { border-color: var(--tuerkis-hell); }
.suche input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 10px 0; color: var(--text); }
.mg-liste { display: grid; gap: 8px; }
.mg { display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; padding: 10px 14px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--linie); min-height: 62px; }
.mg:hover { border-color: var(--tuerkis-hell); }
.mg.ruhend { opacity: .75; }
.mg-name b { display: block; }
.mg-name small, .mg-art { color: var(--leise); font-size: 14px; }
.mg-pillen { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }

/* ---------- Beiträge ---------- */
.legende { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 8px; font-size: 13px; }
.bt-liste { display: grid; gap: 8px; }
.bt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--linie); }
.bt.ruhend { opacity: .7; }
.bt-wer { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.bt-wer > span:not(.avatar):not(.pill) { flex: 1 1 160px; min-width: 0; }
.bt-wer b { display: block; }
.bt-wer small { color: var(--leise); font-size: 13.5px; }
.bt-monate { display: flex; flex-wrap: wrap; gap: 6px; }
.mp { display: inline-grid; place-items: center; min-width: 52px; min-height: 40px; padding: 4px 10px; border-radius: 10px; font-weight: 800; font-size: 13.5px; border: 2px solid transparent; }
.legende .mp { min-width: 0; min-height: 28px; font-size: 12.5px; }
.mp.bezahlt { background: var(--gruen-flaeche); color: var(--gruen); }
.mp.offen { background: var(--gelb-flaeche); color: #8a3d12; border-color: #e07a4f; }
.mp.rueck { background: var(--rot-flaeche); color: var(--rot); border-color: var(--rot); }
.mp.frei { background: transparent; color: var(--leise); border: 2px dashed var(--linie); font-weight: 600; }
button.mp:hover { filter: brightness(.96); }
@supports (color: light-dark(#000, #fff)) { .mp.offen { color: light-dark(#8a3d12, #ffc89f); } }

/* ---------- Spenden ---------- */
.projekte { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.projekt { padding: 16px; border-radius: 18px; background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten); display: grid; gap: 8px; border-top: 6px solid var(--violett); }
.projekt.p-t { border-top-color: var(--tuerkis-hell); }
.projekt.p-k { border-top-color: #e07a4f; }
.projekt.p-g { border-top-color: #3fae6b; }
.projekt-kopf { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.projekt-kopf b { font-size: 16px; }
.barometer { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.barometer .summe { font-family: var(--titel); font-weight: 800; font-size: 28px; }
.barometer .ziel { color: var(--leise); }
.projekt .balken { height: 14px; }
.projekt small { color: var(--leise); }
.sp-liste { display: grid; gap: 8px; }
.sp { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--linie); }
.sp-betrag { font-family: var(--titel); font-weight: 800; font-size: 19px; color: var(--akzent-t); }
.sp b { display: block; }
.sp small { color: var(--leise); }

/* Muster-Bescheinigung: deutlich als Muster gekennzeichnet. */
.muster { position: relative; overflow: hidden; margin-top: 14px; padding: 18px; border-radius: 12px; background: #fffdf8; color: #1e1b33; border: 1px solid #d8d2c2; }
.muster::after { content: "MUSTER"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-22deg); font: 800 76px/1 var(--titel); letter-spacing: .12em; color: rgba(179,38,30,.16); pointer-events: none; }
.muster-kopf { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 2px solid #241f45; }
.muster-kopf b { display: block; }
.muster-kopf small { color: #5b5770; }
.muster h3 { margin: 14px 0 6px; font-size: 19px; }
.muster .daten dt { color: #5b5770; }
.muster-unterschrift { margin: 18px 0 0; padding-top: 22px; border-top: 1px dashed #b8b2a2; color: #5b5770; font-size: 14px; }
.warnung { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--rot-flaeche); color: var(--text); border-left: 5px solid var(--rot); }

/* ---------- Termine ---------- */
.tm-liste { display: grid; gap: 14px; }
.termin { display: grid; grid-template-columns: 86px 1fr; gap: 16px; padding: 14px 16px; border-radius: 18px; background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten); }
.kal { display: grid; place-items: center; align-content: center; gap: 0; border-radius: 14px; background: var(--lila-flaeche); color: var(--violett-t); padding: 8px 4px; text-transform: uppercase; min-height: 86px; }
.p-t .kal { background: var(--tuerkis-flaeche); color: var(--akzent-t); }
.p-k .kal { background: var(--gelb-flaeche); color: #a0461c; }
.p-g .kal { background: var(--gruen-flaeche); color: var(--gruen); }
@supports (color: light-dark(#000, #fff)) { .p-k .kal { color: light-dark(#a0461c, #ffc89f); } }
.kal b { font-family: var(--titel); font-size: 32px; line-height: 1; }
.kal small { font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.termin h3 { font-size: 19px; }
.termin p { margin: 4px 0 10px; }
.belegung { display: grid; gap: 6px; font-size: 14px; }
.belegung .balken { height: 12px; }
.rot-text { color: var(--rot); }
.anm-liste { margin: 10px 0 0; padding-left: 24px; columns: 2 220px; }
.anm-liste li { padding: 3px 0; break-inside: avoid; }

/* ---------- Rundbrief ---------- */
.abschnitt { margin-top: 14px; }
.abschnitt:first-child { margin-top: 0; }
.abschnitt > b { display: block; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--akzent-t); margin-bottom: 8px; }
.feld { display: grid; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 14px; }
.feld small { font-weight: 500; color: var(--leise); }
.feld input, .feld textarea { width: 100%; padding: 11px 12px; border-radius: 12px; border: 2px solid var(--linie); background: var(--grund); font-weight: 400; font-size: 16px; resize: vertical; }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--tuerkis-hell); }
.brief { border-radius: 14px; border: 1px solid var(--linie); overflow: hidden; background: var(--grund); }
.brief-kopf { display: grid; gap: 4px; padding: 12px 14px; border-bottom: 1px solid var(--linie); font-size: 14px; background: var(--flaeche-2); overflow-wrap: anywhere; }
.brief-kopf i { display: inline-block; min-width: 62px; font-style: normal; color: var(--leise); }
.brief-text { padding: 16px 14px; min-height: 170px; overflow-wrap: anywhere; }
.brief-fuss { padding: 10px 14px; font-size: 12.5px; color: var(--leise); border-top: 1px dashed var(--linie); }
.rb-liste { display: grid; gap: 8px; }
.rb { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px 12px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--linie); }
.rb-icon { color: var(--violett-t); }
.rb b { display: block; }
.rb small { color: var(--leise); }

/* ---------- So funktioniert's ---------- */
.hilfe { max-width: 880px; }
.gross-text { font-size: 19px; }
.schritte { padding-left: 22px; display: grid; gap: 10px; }
.schritte.kompakt { gap: 6px; }
.zeitleiste { list-style: none; padding-left: 0; counter-reset: s; }
.zeitleiste li { counter-increment: s; position: relative; padding: 4px 0 12px 54px; border-left: 3px solid var(--flaeche-2); margin-left: 18px; }
.zeitleiste li::before { content: counter(s); position: absolute; left: -20px; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--tuerkis); color: #fff; font-weight: 800; }
.zeitleiste li:last-child { border-left-color: transparent; }
.haken { padding-left: 20px; display: grid; gap: 6px; }
.hilfe h3 { margin-top: 24px; font-size: 21px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- Dialoge ---------- */
dialog { border: 0; border-radius: 20px; padding: 0; width: min(660px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--flaeche); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); overflow-x: hidden; overflow-y: auto; }
dialog::backdrop { background: var(--hinterlegt); }
dialog .inhalt { padding: 22px; }
dialog h2 { font-size: 26px; }
dialog .unter { margin: 4px 0 0; color: var(--leise); }
dialog .abschnitt { margin-top: 18px; }
dialog .fuss { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--linie); background: var(--grund); position: sticky; bottom: 0; }
dialog .fuss .knopf.gross { flex: 1 1 220px; }
.willkommen-bild { color: var(--violett-t); margin-bottom: 8px; }
.willkommen-bild svg { max-width: 100%; height: auto; }
.an-inhalt { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--grund); }
.daten { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 0; }
.daten dt { color: var(--leise); font-size: 14px; }
.daten dd { margin: 0; overflow-wrap: anywhere; }
.pruefliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pruefliste li { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--gruen-flaeche); }
.pruefliste li > span { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #1f7a43; color: #fff; font-weight: 800; font-size: 14px; }
.pruefliste li.fehlt { background: var(--rot-flaeche); }
.pruefliste li.fehlt > span { background: var(--rot); }
.pruefliste li.weich { background: var(--gelb-flaeche); }
.pruefliste li.weich > span { background: #c4602f; }
.vorschau { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--gelb-flaeche); }
.vorschau .mail { display: block; margin-top: 8px; padding: 12px 14px; border-radius: 10px; background: var(--flaeche); border: 1px dashed var(--linie); font-size: 15px; overflow-wrap: anywhere; }
.vorschau .mail i { display: block; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); margin-bottom: 6px; }
.profil-kopf { display: flex; gap: 12px; align-items: center; margin: 14px 0; }
.profil-kopf > div { display: flex; flex-wrap: wrap; gap: 6px; }
.profil-kopf .avatar { width: 56px; height: 56px; font-size: 19px; }
.schlicht { margin: 0; padding-left: 20px; }
.tabelle { display: grid; gap: 0; margin-top: 14px; border-radius: 12px; overflow: hidden; border: 1px solid var(--linie); }
.zeile { display: grid; grid-template-columns: 1.2fr 1.4fr 90px; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--linie); font-size: 14.5px; align-items: center; }
.zeile:first-child { border-top: 0; }
.kopfzeile { background: var(--flaeche-2); font-weight: 800; font-size: 13px; }
.summenzeile { background: var(--tuerkis-flaeche); }
.betrag { text-align: right; font-variant-numeric: tabular-nums; }

/* Hinweis unten */
.hinweis { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 220px); display: flex; gap: 14px; align-items: center; width: max-content; max-width: calc(100vw - 32px); padding: 12px 14px 12px 18px; border-radius: 14px; background: var(--nacht2); color: #f1eefb; font-weight: 700; z-index: 80; transition: transform .2s; box-shadow: var(--schatten); border-left: 5px solid var(--tuerkis-hell); }
.hinweis.sichtbar { transform: translate(-50%, 0); }
.hinweis button { background: var(--koralle); color: var(--auf-koralle); padding: 9px 14px; border-radius: 10px; font-weight: 800; font-size: 14px; white-space: nowrap; }

.fuss { padding: 16px; text-align: center; font-size: 13px; color: var(--leise); border-top: 1px solid var(--linie); }

@media (max-width: 900px) {
  .zwei, .zwei.breit-links { grid-template-columns: 1fr; }
  .zwei > .karte + .karte { margin-top: 0; }
}
@media (max-width: 760px) {
  .kopf { padding: 8px 10px; position: static; gap: 6px; }
  .marke small { display: none; }
  .marke { font-size: 19px; gap: 8px; }
  .marke img { width: 34px; height: 34px; }
  .monat { font-size: 13px; }
  .pille { min-height: 38px; padding: 4px 10px; }
  .ansichten { order: 3; width: 100%; margin-left: 0; }
  .ansichten button { padding: 8px 8px; font-size: 13px; min-height: 40px; }
  .demo-leiste { padding: 8px 10px; gap: 8px; }
  .demo-text { font-size: 14px; }
  .demo-knoepfe .knopf { flex: 1 1 auto; min-height: 40px; padding: 6px 10px; font-size: 13px; }
  .demo-knoepfe #simKnopf { flex-basis: 100%; }
  .kennzahlen { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kennzahl { padding: 12px; }
  .kennzahl b { font-size: 23px; }
  .antrag-liste { grid-template-columns: 1fr; }
  .mg { grid-template-columns: auto minmax(0, 1fr); }
  .mg-art { display: none; }
  .mg-pillen { grid-column: 2; justify-content: flex-start; }
  .bt { grid-template-columns: 1fr; }
  .sp { grid-template-columns: 1fr; gap: 4px; }
  .sp .knopf { justify-self: start; }
  .termin { grid-template-columns: 64px 1fr; gap: 12px; padding: 12px; }
  .kal { min-height: 70px; }
  .kal b { font-size: 26px; }
  .rb { grid-template-columns: auto 1fr; }
  .rb .pill, .rb .knopf { grid-column: 2; justify-self: start; white-space: normal; }
  .daten { grid-template-columns: 1fr; gap: 0 0; }
  .daten dd { margin-bottom: 8px; }
  .zeile { grid-template-columns: 1fr 70px; }
  .zeile > span:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--leise); font-size: 13px; }
  .zeile > .betrag { grid-row: 1 / span 2; grid-column: 2; }
  .erkl { font-size: 14px; padding: 10px 12px; }
  .hinweis { width: calc(100vw - 24px); }
  .aktivitaet li { grid-template-columns: 1fr; gap: 0; }
  .gb { grid-template-columns: 96px 1fr 24px; }
  main { padding: 10px 10px 30px; }
  .muster::after { font-size: 52px; }
  .mp { min-width: 46px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition: none !important; } }
