/* Säckelmeister – klickbarer Prototyp (Phase 1, ohne Backend)
   Layout: eine Handy-Spalte (max. 440 px). Darüber ein schwarzes Prototyp-Band zum Umschalten der Rollen,
   darunter der weiße App-Kopf mit der Maske und dem Fahnenband in Rot-Weiß-Blau-Gelb.
   Unten eine Tab-Leiste je Rolle. Bewusst nur ein helles Thema: Weiß ist die Hauptfarbe. */
:root {
  /* Farbe: Weiß als Grund, Logo-Rot für die Hauptaktion, Blau und Gelb aus der Fastnachtsfahne als Akzente */
  --weiss: #ffffff;
  --papier: #eef3f6;      /* Fläche außerhalb der App, leicht ins Fahnenblau gezogen */
  --flaeche: #f5f8fa;     /* ruhige Kästen innerhalb der App */
  --tinte: #141414;       /* Schrift, wie die schwarzen Konturen der Maske */
  --grau: #56616b;
  --linie: #d9e1e7;
  --rot: #e00018;         /* Logo-Rot */
  --rot-tief: #b00013;
  --blau: #0087c3;        /* Fahnenblau */
  --blau-tief: #00618d;
  --gelb: #eed900;        /* Fahnengelb */
  --gruen: #1d7a4a;

  /* Statusfarben: Grund und Schrift je Status, Form zusätzlich über die Schrittleiste */
  --s-beantragt-bg: #fff6b8; --s-beantragt-fg: #5a4b00;
  --s-genehmigt-bg: #dff0f9; --s-genehmigt-fg: #00557d;
  --s-ausgezahlt-bg: #0087c3; --s-ausgezahlt-fg: #ffffff;
  --s-abrechnung-bg: #ffe2c2; --s-abrechnung-fg: #7a3a00;
  --s-abgeschlossen-bg: #dcf1e4; --s-abgeschlossen-fg: #135a35;
  --s-abgelehnt-bg: #e6e8ea; --s-abgelehnt-fg: #33393f;

  --chat-bg: #efe9e1;
  --chat-bubble: #ffffff;
  --chat-eigen: #dcf6c8;

  /* Schrift: Kapitälchen wie im Schriftzug des Vereinslogos, dazu eine besonders gut lesbare Grundschrift */
  --f-titel: "Alegreya Sans SC", "Alegreya Sans", "Trebuchet MS", sans-serif;
  --f-text: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  --f-zahl: "Atkinson Hyperlegible Mono", "Consolas", "Courier New", monospace;

  --t-s: 0.875rem; --t-m: 1.125rem; --t-l: 1.375rem; --t-xl: 1.75rem; --t-xxl: 2.5rem;
  --radius: 14px;
  --tipp: 56px;           /* Mindesthöhe aller Bedienelemente */
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font-family: var(--f-text); font-size: 18px; line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--tinte); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-titel); font-weight: 800; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: .01em; }
p { margin: 0; }
.zahl, .nr { font-family: var(--f-zahl); font-variant-numeric: tabular-nums; }
.leise { color: var(--grau); }
.klein { font-size: var(--t-s); }

/* Prototyp-Band (gehört nicht zur App) */
.proto {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--tinte); color: var(--weiss);
  padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px));
  padding-block: 8px;
}
.proto-innen { max-width: 440px; margin: 0 auto; display: flex; gap: 8px; align-items: center; }
.proto-marke { font-family: var(--f-zahl); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gelb); writing-mode: vertical-rl; transform: rotate(180deg); }
.proto select {
  flex: 1; min-width: 0; min-height: 44px; border-radius: 10px; border: 1px solid #444; background: #262626; color: var(--weiss);
  padding: 0 10px; font-size: 16px;
}
.proto button {
  min-height: 44px; border-radius: 10px; border: 1px solid #444; background: #262626; color: var(--weiss); padding: 0 12px; font-size: 15px; cursor: pointer;
}

/* App-Rahmen */
.app {
  max-width: 440px; margin: 0 auto; min-height: calc(100% - 60px); background: var(--weiss);
  display: flex; flex-direction: column; position: relative;
}
@media (min-width: 600px) {
  .app { margin-block: 20px; border-radius: 28px; box-shadow: 0 1px 0 var(--linie), 0 20px 50px rgba(0, 60, 90, .14); overflow: hidden; min-height: 760px; }
}
.kopf { padding: 14px 16px 0; display: flex; align-items: center; gap: 12px; }
.kopf img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.kopf-text { min-width: 0; flex: 1; }
.kopf h1 { font-size: 1.6rem; }
.kopf-wer { font-size: var(--t-s); color: var(--grau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fahne { display: block; width: 100%; height: 16px; margin-top: 10px; }

.inhalt { flex: 1; padding: 18px 16px 28px; display: flex; flex-direction: column; gap: 18px; }
.inhalt > h2 { font-size: var(--t-xl); }

/* Tab-Leiste */
.tabs {
  position: sticky; bottom: 0; z-index: 5; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--weiss); border-top: 1px solid var(--linie); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabs button {
  min-height: 64px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 13px; color: var(--grau); cursor: pointer; position: relative;
}
.tabs button svg { width: 26px; height: 26px; }
.tabs button[aria-current="page"] { color: var(--rot); font-weight: 700; }
.tabs button[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; border-radius: 0 0 3px 3px; background: var(--rot); }
.punkt { position: absolute; top: 8px; left: calc(50% + 8px); min-width: 20px; height: 20px; border-radius: 10px; background: var(--rot); color: var(--weiss); font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }

/* Knöpfe */
.knopf {
  min-height: var(--tipp); border-radius: var(--radius); border: 2px solid transparent; padding: 0 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: var(--t-m);
  cursor: pointer; text-decoration: none; width: 100%;
}
.knopf svg { width: 24px; height: 24px; flex: none; }
.knopf-haupt { background: var(--rot); color: var(--weiss); }
.knopf-haupt:active { background: var(--rot-tief); }
.knopf-blau { background: var(--blau); color: var(--weiss); }
.knopf-rand { background: var(--weiss); border-color: var(--tinte); color: var(--tinte); }
.knopf-leise { background: var(--flaeche); color: var(--tinte); }
.knopf:disabled { opacity: .45; cursor: not-allowed; }
.knopfreihe { display: flex; gap: 10px; }
.knopfreihe > * { flex: 1; }
.link { background: none; border: 0; color: var(--blau-tief); text-decoration: underline; padding: 6px 0; cursor: pointer; font-size: var(--t-s); text-align: left; }

/* Status */
.status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st-beantragt { background: var(--s-beantragt-bg); color: var(--s-beantragt-fg); }
.st-genehmigt { background: var(--s-genehmigt-bg); color: var(--s-genehmigt-fg); }
.st-ausgezahlt { background: var(--s-ausgezahlt-bg); color: var(--s-ausgezahlt-fg); }
.st-abrechnung { background: var(--s-abrechnung-bg); color: var(--s-abrechnung-fg); }
.st-abgeschlossen { background: var(--s-abgeschlossen-bg); color: var(--s-abgeschlossen-fg); }
.st-abgelehnt { background: var(--s-abgelehnt-bg); color: var(--s-abgelehnt-fg); }

.schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.schritte li { display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 1.2; color: var(--grau); }
.schritte li::before { content: ""; height: 8px; border-radius: 4px; background: var(--linie); }
.schritte li.erledigt::before { background: var(--blau); }
.schritte li.jetzt { color: var(--tinte); font-weight: 700; }
.schritte li.jetzt::before { background: var(--rot); }

/* Karten und Listen */
.liste { display: flex; flex-direction: column; gap: 10px; }
.karte {
  border: 1px solid var(--linie); border-radius: var(--radius); background: var(--weiss); padding: 14px;
  display: flex; flex-direction: column; gap: 10px; text-align: left; width: 100%;
}
button.karte { cursor: pointer; }
button.karte:active { background: var(--flaeche); }
.karte-zeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.karte-titel { font-weight: 700; font-size: var(--t-m); line-height: 1.25; }
.betrag { font-family: var(--f-zahl); font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.zweck { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--grau); font-weight: 700; }

.abschnitt { display: flex; flex-direction: column; gap: 10px; }
.abschnitt > h3 { font-size: var(--t-l); }
.abschnitt-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.leer { border: 2px dashed var(--linie); border-radius: var(--radius); padding: 18px; color: var(--grau); text-align: center; }

.kasten { background: var(--flaeche); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.kasten-gelb { background: #fff9d1; }
.kasten-blau { background: #e3f2fa; }
.kasten-gruen { background: #e2f3e8; }

.paare { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.paare dt { color: var(--grau); font-size: var(--t-s); padding-top: 2px; }
.paare dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* Große Zahl (Saldo) */
.saldo { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: var(--radius); background: var(--flaeche); }
.saldo-zahl { font-family: var(--f-zahl); font-size: var(--t-xxl); line-height: 1.05; font-variant-numeric: tabular-nums; }
.saldo-plus .saldo-zahl { color: var(--blau-tief); }
.saldo-minus .saldo-zahl { color: var(--rot-tief); }
.saldo-null .saldo-zahl { color: var(--gruen); }
.balken { height: 12px; border-radius: 6px; background: var(--linie); overflow: hidden; margin-top: 8px; }
.balken > span { display: block; height: 100%; background: var(--blau); border-radius: 6px; }
.balken.ueber > span { background: var(--rot); }

/* Abstimmung */
.stimmen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stimme {
  min-height: 72px; border-radius: var(--radius); border: 2px solid var(--linie); background: var(--weiss); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 700; font-size: 15px;
}
.stimme .emo { font-size: 28px; line-height: 1; }
.stimme[aria-pressed="true"] { border-color: var(--tinte); background: var(--flaeche); box-shadow: inset 0 0 0 2px var(--tinte); }
.zaehler { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--t-s); }
.zaehler b { font-family: var(--f-zahl); font-size: var(--t-m); }
.mehrheit { height: 14px; border-radius: 7px; background: var(--linie); position: relative; overflow: hidden; display: flex; }
.mehrheit .ja { background: var(--blau); }
.mehrheit .nein { background: var(--rot); }
.mehrheit .enth { background: #b9c3cb; }
.mehrheit-marke { position: absolute; top: -2px; bottom: -2px; width: 3px; background: var(--tinte); }
.stimmliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.stimmliste li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--linie); font-size: var(--t-s); }
.stimmliste li:last-child { border-bottom: 0; }

/* Formular */
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld > label, .feld > .feldname { font-weight: 700; }
.feld input, .feld textarea, .feld select {
  min-height: var(--tipp); border-radius: 12px; border: 2px solid var(--linie); background: var(--weiss); padding: 10px 14px; font-size: 20px; width: 100%;
}
.feld textarea { min-height: 96px; resize: vertical; }
.feld input.zahl { font-size: 17px; }
.feld select { font-size: 18px; color: var(--tinte); }
.feld input:focus, .feld textarea:focus, .feld select:focus { border-color: var(--blau); outline: none; }
.feld .hilfe { font-size: var(--t-s); color: var(--grau); }
.feld .fehler { font-size: var(--t-s); color: var(--rot-tief); font-weight: 700; }
.feld.hat-fehler input, .feld.hat-fehler textarea, .feld.hat-fehler select { border-color: var(--rot); }
.euro { position: relative; }
.euro input { padding-right: 44px; font-family: var(--f-zahl); }
.euro::after { content: "€"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--grau); }
  border: 2px solid var(--linie); border-radius: var(--radius); padding: 14px 12px; min-height: 110px; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; justify-content: flex-end; position: relative; overflow: hidden;
}
.proto-hilfe { border: 2px dashed #9aa6b0; border-radius: 12px; background: none; color: var(--grau); min-height: 44px; cursor: pointer; font-size: 15px; }

/* Erfolg */
.erfolg { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; padding-top: 10px; }
.erfolg img { width: 120px; }
.erfolg .nr { font-size: var(--t-xxl); }
.helau { font-family: var(--f-titel); font-weight: 800; font-size: 2.2rem; color: var(--rot); }

/* Belege */
.beleg { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.beleg:last-child { border-bottom: 0; }
.beleg-bild {
  width: 56px; height: 72px; flex: none; border-radius: 6px; background: var(--flaeche); display: grid; place-items: center; color: var(--grau);
  border: 1px solid var(--linie); overflow: hidden; cursor: pointer; padding: 0;
}
.beleg-bild img { width: 100%; height: 100%; object-fit: cover; }
.beleg-bild svg { width: 22px; height: 22px; }
.beleg-text { flex: 1; min-width: 0; }
.beleg-text b { display: block; }
.bon {
  font-family: var(--f-zahl); font-size: 13px; background: #fffdf6; color: #222; padding: 18px 16px; border-radius: 4px; width: 100%; max-width: 260px; margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0,0,0,.12); line-height: 1.5;
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100%;
          mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100%;
}
.bon .z { display: flex; justify-content: space-between; gap: 8px; }
.bon .summe { border-top: 1px dashed #999; margin-top: 6px; padding-top: 6px; font-weight: 700; }
.mini-bon { font-family: var(--f-zahl); font-size: 6px; line-height: 1.3; padding: 4px; background: #fffdf6; color: #333; width: 100%; height: 100%; text-align: left; overflow: hidden; }

/* GiroCode */
.giro { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr { width: 220px; height: 220px; padding: 10px; background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; display: grid; place-items: center; }
.qr img, .qr canvas { width: 200px !important; height: 200px !important; image-rendering: pixelated; }
.giro .paare { width: 100%; }

/* Unterseite (Sheet) */
.sheet-grund { position: fixed; inset: 0; background: rgba(10, 20, 30, .45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  background: var(--weiss); width: 100%; max-width: 440px; max-height: 92%; overflow-y: auto; border-radius: 22px 22px 0 0;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 16px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.sheet-griff { width: 44px; height: 5px; border-radius: 3px; background: var(--linie); margin: 0 auto; flex: none; }
.sheet-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sheet-kopf h2 { font-size: var(--t-xl); }
.zu { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--flaeche); cursor: pointer; display: grid; place-items: center; flex: none; }
.zu svg { width: 22px; height: 22px; }

/* Protokoll als Dokument */
.dokument { border: 1px solid var(--linie); border-radius: 6px; padding: 18px 16px; font-size: 14px; display: flex; flex-direction: column; gap: 12px; background: var(--weiss); box-shadow: 0 3px 14px rgba(0,0,0,.08); }
.dokument header { display: flex; gap: 10px; align-items: center; border-bottom: 2px solid var(--tinte); padding-bottom: 10px; }
.dokument header img { width: 36px; }
.dokument h3 { font-size: 1.2rem; }
.dokument table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dokument th, .dokument td { text-align: left; padding: 5px 4px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.dokument th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--grau); }
.pruefwert { font-family: var(--f-zahl); font-size: 12px; overflow-wrap: anywhere; background: var(--flaeche); padding: 8px; border-radius: 6px; }

/* WhatsApp-Simulation */
.chat { background: var(--chat-bg); flex: 1; padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 10px; }
.chat-kopf { background: #1f5f57; color: var(--weiss); padding: 10px 16px; display: flex; gap: 10px; align-items: center; }
.chat-kopf .rund { width: 40px; height: 40px; border-radius: 50%; background: var(--weiss); display: grid; place-items: center; overflow: hidden; flex: none; }
.chat-kopf .rund img { width: 34px; }
.chat-kopf b { display: block; }
.chat-kopf span { font-size: 13px; opacity: .85; }
.blase { background: var(--chat-bubble); border-radius: 4px 14px 14px 14px; padding: 8px 12px 6px; max-width: 92%; font-size: 16px; box-shadow: 0 1px 1px rgba(0,0,0,.08); position: relative; }
.blase.eigen { align-self: flex-end; background: var(--chat-eigen); border-radius: 14px 4px 14px 14px; }
.blase .von { font-size: 13px; font-weight: 700; color: #b0336f; }
.blase .von.bot { color: #1f7a6d; }
.blase .zeit { font-size: 11px; color: var(--grau); text-align: right; }
.blase pre { font: inherit; white-space: pre-wrap; margin: 0; }
.reaktionen { display: flex; gap: 4px; margin-top: -4px; padding-left: 8px; flex-wrap: wrap; }
.reaktionen button { background: var(--weiss); border: 1px solid var(--linie); border-radius: 999px; padding: 2px 10px; font-size: 15px; cursor: pointer; min-height: 32px; }
.datum-chip { align-self: center; background: #fff8dc; border-radius: 8px; padding: 3px 10px; font-size: 13px; color: var(--grau); }
.chat-steuer { background: var(--weiss); border-top: 1px solid var(--linie); padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-steuer select { min-height: 48px; border-radius: 10px; border: 2px solid var(--linie); padding: 0 10px; background: var(--weiss); width: 100%; }

/* Postfach-Simulation */
.mail { border-bottom: 1px solid var(--linie); padding: 12px 0; display: flex; flex-direction: column; gap: 2px; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; cursor: pointer; width: 100%; }
.mail .betreff { font-weight: 700; }
.mail-text { white-space: pre-wrap; background: var(--flaeche); border-radius: var(--radius); padding: 14px; font-size: 16px; }

/* Rollen-Chips */
.rollen { display: flex; gap: 6px; flex-wrap: wrap; }
.rolle { border: 2px solid var(--linie); border-radius: 999px; padding: 4px 12px; font-size: 14px; background: var(--weiss); cursor: pointer; min-height: 36px; }
.rolle[aria-pressed="true"] { background: var(--tinte); color: var(--weiss); border-color: var(--tinte); }

/* Kontoabgleich */
.buchung { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.buchung:last-child { border-bottom: 0; }
.buchung .vz { grid-column: 1 / -1; font-family: var(--f-zahl); font-size: 13px; color: var(--grau); overflow-wrap: anywhere; }
.buchung .treffer { grid-column: 1 / -1; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.buchung .treffer svg { width: 18px; height: 18px; }
.ok { color: var(--gruen); }
.offen { color: var(--s-abrechnung-fg); }
.plus { color: var(--gruen); }
.minus { color: var(--rot-tief); }
.datei { position: relative; }
.datei input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.csv { font-family: var(--f-zahl); font-size: 12px; background: var(--flaeche); padding: 10px; border-radius: 8px; overflow-x: auto; white-space: pre; }
.foto-vorschau { width: 100%; max-height: 260px; object-fit: contain; border-radius: 12px; background: var(--flaeche); }
.check { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.check input { width: 26px; height: 26px; accent-color: var(--blau); }

.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50;
  background: var(--tinte); color: var(--weiss); padding: 12px 18px; border-radius: 12px; max-width: min(400px, calc(100% - 32px)); font-size: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* Startbildschirm */
.start { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; padding-top: 6px; }
.start img { width: 132px; height: auto; }
.start h2 { font-size: var(--t-xl); }
.start p { max-width: 32ch; }
.demo-knopf {
  width: 100%; min-height: 104px; border: 0; border-radius: 20px; background: var(--rot); color: var(--weiss); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px 18px;
  box-shadow: 0 6px 0 var(--rot-tief); margin-bottom: 6px;
}
.demo-knopf:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--rot-tief); }
.demo-knopf b { font-family: var(--f-titel); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.demo-knopf span { font-size: 15px; }
.ausprobieren { display: flex; flex-direction: column; gap: 8px; }
.ausprobieren h3 { font-size: var(--t-l); }
.ausprobieren h4 { margin: 8px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grau); }
.probe {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; width: 100%; text-align: left; cursor: pointer;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 12px 14px; min-height: var(--tipp);
}
.probe:active { background: var(--flaeche); }
.probe b { font-size: var(--t-m); }
.probe span { grid-column: 1; font-size: var(--t-s); color: var(--grau); }
.probe svg { grid-row: 1 / span 2; grid-column: 2; width: 22px; height: 22px; color: var(--grau); transform: scaleX(-1); }

/* Demo-Leiste: führt durch den Ablauf; Rollenwechsel nur über ihren Knopf */
.demo {
  position: sticky; bottom: 0; z-index: 6; background: var(--gelb); color: var(--tinte);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, .14);
}
.demo-schritt { font-family: var(--f-zahl); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.demo-schritt .punkte { display: flex; gap: 4px; }
.demo-schritt .punkte i { width: 18px; height: 6px; border-radius: 3px; background: rgba(20, 20, 20, .22); }
.demo-schritt .punkte i.an { background: var(--tinte); }
.demo p { font-size: 16px; line-height: 1.35; }
.demo .knopf { min-height: 64px; font-size: var(--t-m); }
.demo .link { color: var(--tinte); align-self: center; padding: 2px 0; }

/* Drehbuch */
.szene { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--linie); border-radius: var(--radius); padding: 14px; }
.szene ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; font-size: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: hoch .22s ease-out; }
  @keyframes hoch { from { transform: translateY(40px); opacity: .6; } }
}
