/* Kundenpost — Melanies App. Werte aus dem Design, Abschnitt 6 (siehe DESIGN.md).
   Nur heller Modus. Gebaut fuer 390 px, steht von 360 px bis Tablet. */

:root {
  --grund: #F4F3EF;
  --karte: #FFFFFF;
  --text: #16181D;
  --text-2: #4A4E59;
  --text-3: #5B5F6B;
  --linie: #E2E0D8;
  --linie-2: #CFCCC1;
  --griff: #D6D3CA;
  --feld: #FAFAF8;
  --ton: #EAE8E1;
  --balken: #D9D5CB;

  --rot: #800000;
  --rot-hell: #F3E6E6;
  --antwort: #1D4ED8;
  --antwort-hell: #E8EEFD;
  --packen: #B45309;
  --packen-hell: #FDF1E3;
  --rueck: #0F766E;
  --rueck-hell: #E3F4F1;
  --entscheiden: #7C3AED;
  --entscheiden-hell: #F0EAFD;
  --gut: #17803D;
  --gut-hell: #E3F4EA;
  --warn: #B42318;
  --warn-hell: #FDECEA;

  --schrift: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --spalte: 600px;
  --leiste-hoehe: 84px;
  --unten: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 400 15px/1.45 var(--schrift);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  /* Falle 1: vh ist am Telefon zu gross — dvh mit vh als Rueckfall. */
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--rot); outline-offset: 2px; }

.nur-vorleser {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.ohne-skript { padding: 24px; }

/* Solange ein Blatt offen ist, rollt die Seite darunter nicht mit. */
.kein-rollen, .kein-rollen body { overflow: hidden; }

/* --- Art-Farben: jede Art traegt Farbe UND eigenes Symbol ------------------ */

[data-art='antwort'] { --art: var(--antwort); --art-hell: var(--antwort-hell); --art-knopf: var(--antwort); }
[data-art='packen'] { --art: var(--packen); --art-hell: var(--packen-hell); --art-knopf: var(--text); }
[data-art='ruecksendung'] { --art: var(--rueck); --art-hell: var(--rueck-hell); --art-knopf: var(--rueck); }
[data-art='entscheiden'] { --art: var(--entscheiden); --art-hell: var(--entscheiden-hell); --art-knopf: var(--entscheiden); }
[data-art='rot'] { --art: var(--rot); --art-hell: var(--rot-hell); --art-knopf: var(--rot); }
[data-art='gut'] { --art: var(--gut); --art-hell: var(--gut-hell); --art-knopf: var(--gut); }

/* --- Seite ---------------------------------------------------------------- */

.seite {
  width: 100%;
  max-width: var(--spalte);
  margin: 0 auto;
  padding: 0 16px calc(var(--leiste-hoehe) + 36px + var(--unten));
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.seite.ohne-leiste { padding-bottom: calc(24px + var(--unten)); }

.kopf { padding: 28px 4px 4px; display: flex; align-items: center; gap: 16px; }
.kopf-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kopf-klein { font-size: 14px; color: var(--text-3); }
.kopf-gross { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }

.ring { position: relative; width: 64px; height: 64px; flex: none; }
.ring svg { display: block; }
.ring-spur { fill: none; stroke: var(--linie); stroke-width: 7; }
.ring-wert { fill: none; stroke: var(--rot); stroke-width: 7; stroke-linecap: round; transition: stroke-dasharray 0.4s ease; }
.ring-zahl { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }

/* Falle 3 und 8: eine Zeile, waagerecht wischbar, mit Verlauf am Rand. */
.gruppen {
  display: flex; flex-wrap: nowrap; gap: 8px; padding: 4px 4px 4px; margin: 0 -16px; padding-inline: 20px;
  overflow-x: auto; scrollbar-width: none;
  mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
}
.gruppen::-webkit-scrollbar { display: none; }
.gruppe {
  display: flex; align-items: center; gap: 6px; padding: 7px 12px 7px 8px; flex: none;
  border-radius: 999px; background: var(--karte); border: 1px solid var(--linie); white-space: nowrap;
  font-size: 13px; font-weight: 500;
}
.gruppe-zahl {
  width: 22px; height: 22px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: var(--art-hell); color: var(--art); font-size: 12px; font-weight: 700;
}

/* --- Karte ---------------------------------------------------------------- */

.karte {
  background: var(--karte); border-radius: 20px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 1px 2px rgba(22, 24, 29, 0.06);
}
.karte-oben { display: flex; gap: 12px; align-items: flex-start; }
.zeichen {
  width: 44px; height: 44px; flex: none; border-radius: 14px;
  background: var(--art-hell); color: var(--art);
  display: flex; align-items: center; justify-content: center;
}
.zeichen.klein { width: 36px; height: 36px; border-radius: 12px; }
.zeichen.rund { border-radius: 999px; }
.karte-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.karte-marke { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 2px; font-size: 12px; color: var(--text-3); }
.karte-art { font-weight: 600; color: var(--art); text-transform: uppercase; letter-spacing: 0.04em; }
.karte-titel { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; }
.karte-zeile { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.4; overflow-wrap: anywhere; hyphens: auto; }

.info-knopf {
  height: 44px; padding: 0 10px; flex: none; border: none; border-radius: 12px;
  background: var(--grund); color: var(--text-2); font-size: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 5px;
}
.info-knopf.hell { background: var(--karte); padding: 0 12px; }

.sperre {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; background: var(--ton); color: var(--text-2);
  font-size: 12px; font-weight: 600;
}

.knoepfe { display: flex; gap: 8px; }
.knoepfe.senkrecht { flex-direction: column; }

.knopf {
  flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--linie); background: var(--karte); color: var(--text);
  font-size: 14px; font-weight: 500; line-height: 1.2; text-decoration: none; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.knopf.haupt { flex-grow: 1.4; border-color: transparent; background: var(--art-knopf, var(--rot)); color: #FFFFFF; font-weight: 600; }
.knopf.dunkel { border-color: transparent; background: var(--text); color: #FFFFFF; font-weight: 600; }
.knopf.rot { border-color: transparent; background: var(--rot); color: #FFFFFF; font-weight: 600; }
.knopf.leise { border-color: transparent; background: var(--grund); }
.knopf.still { flex: none; align-self: flex-start; border: none; background: transparent; color: var(--text-2); padding: 0 4px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.knopf.gross { min-height: 52px; border-radius: 14px; font-size: 15px; }
.knopf.riesig { min-height: 54px; border-radius: 14px; font-size: 16px; }
/* Falle 6: In einem senkrechten Kasten wuerde `flex: 1` den Knopf in die Hoehe ziehen. */
.anmeldung > .knopf, .blatt-inhalt > .knopf, .karte > .knopf, .seite > .knopf { flex: none; }
.knopf:disabled, .knopf[aria-disabled='true'] { opacity: 0.45; }
.knopf:active:not(:disabled) { transform: scale(0.985); }

.kreisel {
  width: 16px; height: 16px; flex: none; border-radius: 999px;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: drehen 0.7s linear infinite;
}
@keyframes drehen { to { transform: rotate(360deg); } }

.trenner { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; padding: 10px 4px 0; color: var(--text-3); }
.trenner-titel { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.trenner-zusatz { font-size: 12px; }

.abschnitt { margin: 0; padding: 4px 4px 0; font-size: 13px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }

.auto {
  margin-top: 4px; padding: 14px 16px; border-radius: 16px; border: 1px dashed var(--linie-2);
  display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); line-height: 1.4;
}
.auto strong { color: var(--text); }

.zeile-knopf {
  width: 100%; min-height: 52px; padding: 8px 12px; border: none; border-radius: 16px; background: transparent;
  display: flex; align-items: center; gap: 12px; text-align: left; font-size: 14px; color: var(--text-2);
}
.zeile-knopf .weiter { margin-left: auto; color: var(--text-3); flex: none; }

.leer { margin: 40px 0 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.leer-kreis { width: 96px; height: 96px; border-radius: 999px; background: var(--gut-hell); color: var(--gut); display: flex; align-items: center; justify-content: center; }
.leer-titel { margin: 0; font-size: 22px; font-weight: 700; }
.leer-text { margin: 0; font-size: 15px; color: var(--text-3); max-width: 260px; }

.meldung {
  padding: 12px 14px; border-radius: 14px; background: var(--warn-hell); color: var(--text);
  display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.4;
}
.meldung .knopf { flex: none; }
.meldung-text { flex: 1; min-width: 0; }

.laden { padding: 48px 0; display: flex; justify-content: center; color: var(--text-3); }
.laden .kreisel { width: 28px; height: 28px; border-width: 3px; }

/* --- Leiste unten --------------------------------------------------------- */

.leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: var(--karte); border-top: 1px solid var(--linie);
  padding-bottom: var(--unten);
}
.leiste-innen {
  max-width: var(--spalte); margin: 0 auto; height: var(--leiste-hoehe);
  display: flex; align-items: center; justify-content: space-around; padding: 0 8px 8px;
}
.reiter {
  position: relative; width: 72px; height: 56px; border: none; background: transparent; color: var(--text-3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 12px; font-weight: 600; border-radius: 14px;
}
.reiter[aria-current='page'] { color: var(--rot); }
.reiter-zahl {
  position: absolute; top: 2px; right: 14px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: var(--rot); color: #FFFFFF; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.plus {
  width: 56px; height: 56px; flex: none; margin-top: -28px; border: none; border-radius: 18px;
  background: var(--rot); color: #FFFFFF; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(128, 0, 0, 0.3);
}

/* --- Blatt von unten ------------------------------------------------------ */

.blatt-grund {
  position: fixed; inset: 0; z-index: 30; background: rgba(22, 24, 29, 0.45);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  animation: einblenden 0.18s ease;
}
.blatt {
  width: 100%; max-width: var(--spalte); max-height: 88vh; max-height: 88dvh;
  background: var(--karte); border-radius: 28px 28px 0 0;
  display: flex; flex-direction: column;
  animation: hochfahren 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.blatt-kopf { padding: 12px 20px 8px; display: flex; flex-direction: column; gap: 10px; flex: none; }
.blatt-griff { align-self: center; width: 40px; height: 5px; border-radius: 999px; background: var(--griff); }
.blatt-titelzeile { display: flex; align-items: center; gap: 8px; }
.blatt-titelblock { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.blatt-ueber { font-size: 12px; font-weight: 600; color: var(--art, var(--text-3)); text-transform: uppercase; letter-spacing: 0.04em; }
.blatt-titel { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.blatt-inhalt {
  overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px calc(28px + var(--unten));
  display: flex; flex-direction: column; gap: 14px;
}
.rund-knopf {
  width: 44px; height: 44px; flex: none; border: none; border-radius: 999px;
  background: var(--grund); color: var(--text); display: flex; align-items: center; justify-content: center;
}
.rund-knopf.hell { background: var(--karte); }

@keyframes einblenden { from { opacity: 0; } }
@keyframes hochfahren { from { transform: translateY(24px); opacity: 0; } }

.wahl {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px; text-align: left;
  border-radius: 16px; border: 1px solid var(--linie); background: var(--karte);
}
.wahl:disabled { opacity: 0.45; }
.wahl-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wahl-titel { font-size: 15px; font-weight: 600; color: var(--text); }
.wahl-unter { font-size: 13px; color: var(--text-3); overflow-wrap: anywhere; }

.frage-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.frage-betrag { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }

/* --- Felder --------------------------------------------------------------- */

.feld-block { display: flex; flex-direction: column; gap: 8px; }
.feld-name { font-size: 14px; font-weight: 600; }
.feld-hinweis { margin: 0; font-size: 13px; color: var(--text-3); line-height: 1.4; }
.feld {
  width: 100%; min-width: 0; min-height: 52px; padding: 0 14px; border-radius: 14px;
  border: 1px solid var(--linie); background: var(--feld); font-size: 16px; color: var(--text);
}
textarea.feld { padding: 12px 14px; line-height: 1.45; resize: none; min-height: 96px; }
.feld::placeholder { color: var(--text-3); opacity: 1; }
.feld:focus-visible { outline-offset: 0; border-color: var(--rot); }
.feld-fehler { margin: 0; font-size: 13px; color: var(--warn); font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linie);
  background: var(--karte); color: var(--text); font-size: 14px; font-weight: 500;
}
.chip[aria-pressed='true'], .chip[aria-checked='true'] { background: var(--text); border-color: var(--text); color: #FFFFFF; }

.umschalter {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left;
  border-radius: 14px; border: 1px solid var(--linie); background: var(--feld);
}
.umschalter-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.umschalter-titel { font-size: 14px; font-weight: 600; }
.umschalter-unter { font-size: 13px; color: var(--text-3); }
.schiene { position: relative; width: 44px; height: 26px; flex: none; border-radius: 999px; background: var(--griff); transition: background 0.15s ease; }
.schiene::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px; background: #FFFFFF; transition: transform 0.15s ease; }
[aria-checked='true'] > .schiene, [aria-pressed='true'] > .schiene { background: var(--rot); }
[aria-checked='true'] > .schiene::after, [aria-pressed='true'] > .schiene::after { transform: translateX(18px); }

/* --- Antwort pruefen ------------------------------------------------------ */

.oben-leiste { padding: 20px 0 8px; display: flex; align-items: center; gap: 8px; }
.oben-titel { flex: 1; min-width: 0; margin: 0; font-size: 17px; font-weight: 600; }

.kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kachel { background: var(--karte); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.kachel-zeichen { color: var(--text-3); display: flex; }
.kachel-zeichen.gut { color: var(--gut); }
.kachel-titel { font-size: 13px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.kachel-unter { font-size: 12px; color: var(--text-3); overflow-wrap: anywhere; }

.zahl-kachel { background: var(--karte); border-radius: 16px; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.zahl-kachel .zahl { font-size: 24px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; }
.zahl-kachel .unter { font-size: 12px; color: var(--text-3); line-height: 1.3; hyphens: manual; overflow-wrap: anywhere; }
.zahl-kachel .bild { color: var(--art); display: flex; }

.rede { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.rede.wir { align-items: flex-end; }
.rede-kopf { display: flex; align-items: center; gap: 6px; padding: 0 4px; }
.rede-name { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
.marke-neu { font-size: 11px; font-weight: 600; color: #FFFFFF; background: var(--rot); border-radius: 6px; padding: 3px 7px; }
.blase {
  max-width: 92%; padding: 12px 14px; background: var(--karte); border-radius: 4px 18px 18px 18px;
  font-size: 15px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere;
}
.rede.wir .blase { background: var(--rot-hell); border-radius: 18px 4px 18px 18px; }
.betreff { font-size: 12px; color: var(--text-3); padding: 0 4px; overflow-wrap: anywhere; text-align: right; }
.text-knopf {
  min-height: 44px; padding: 6px 4px; border: none; background: transparent; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500;
}
.bearbeiten { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.bearbeiten textarea { min-height: 220px; background: var(--karte); }

.hinweis { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--ton); font-size: 13px; color: var(--text-2); line-height: 1.45; }
.hinweis .bild { color: var(--text-3); flex: none; margin-top: 1px; display: flex; }
.hinweis.rot { background: var(--rot-hell); font-size: 14px; color: var(--text); }
.hinweis.rot .bild { color: var(--rot); }

.aktionen {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--karte); border-top: 1px solid var(--linie);
  padding: 12px 16px calc(24px + var(--unten));
}
.aktionen-innen { max-width: calc(var(--spalte) - 32px); margin: 0 auto; display: flex; gap: 8px; }
.aktionen .knopf.gross { flex: 1 1 auto; padding: 0 8px; white-space: nowrap; }
.bild-zeile { display: flex; }
.aktionen .eckig { width: 52px; min-height: 52px; flex: none; padding: 0; border-radius: 14px; color: var(--text-2); }
.seite.mit-aktionen { padding-bottom: calc(120px + var(--unten)); }

/* --- Kurzfassung und Verlauf ---------------------------------------------- */

.kurz { margin: 0; font-size: 15px; line-height: 1.5; }
.zaehler { display: flex; gap: 6px; flex-wrap: wrap; }
.zaehler span { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 5px 10px; }
.zaehler .kunde { color: var(--antwort); background: var(--antwort-hell); }
.zaehler .wir { color: var(--rot); background: var(--rot-hell); }
.zaehler .tage { color: var(--text-2); background: var(--grund); }

.zeitleiste { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.schritt { display: flex; gap: 12px; }
.schritt-spur { display: flex; flex-direction: column; align-items: center; flex: none; }
.schritt-punkt { width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--grund); color: var(--text-2); }
.schritt[data-wer='kunde'] .schritt-punkt { background: var(--antwort-hell); color: var(--antwort); }
.schritt[data-wer='wir'] .schritt-punkt { background: var(--rot-hell); color: var(--rot); }
.schritt-linie { width: 2px; flex: 1; min-height: 14px; background: var(--linie); }
.schritt:last-child .schritt-linie { background: transparent; }
.schritt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; }
.schritt-kopf { display: flex; gap: 6px; align-items: baseline; font-size: 12px; color: var(--text-3); }
.schritt-wer { font-weight: 600; color: var(--text-2); }
.schritt[data-wer='kunde'] .schritt-wer { color: var(--antwort); }
.schritt[data-wer='wir'] .schritt-wer { color: var(--rot); }
.schritt-was { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }

/* --- Erledigt ------------------------------------------------------------- */

.dreier { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.woche-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.woche-titel { margin: 0; font-size: 15px; font-weight: 600; }
.woche-unter { font-size: 12px; color: var(--text-3); }
.saeulen { display: flex; align-items: flex-end; gap: 10px; height: 96px; }
.saeule { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.saeule-balken { width: 100%; min-height: 3px; border-radius: 6px; background: var(--balken); }
.saeule.heute .saeule-balken { background: var(--rot); }
.saeule-tag { font-size: 11px; color: var(--text-3); }
.saeule.heute .saeule-tag { color: var(--text); font-weight: 600; }

.fertig { background: var(--karte); border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.fertig-haken { width: 32px; height: 32px; flex: none; border-radius: 999px; background: var(--gut-hell); color: var(--gut); display: flex; align-items: center; justify-content: center; }
.fertig-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fertig-titel { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.fertig-unter { font-size: 13px; color: var(--text-3); overflow-wrap: anywhere; }
.fertig-nummer { font-size: 12px; color: var(--text-3); flex: none; }
.still-text { margin: 0; padding: 0 4px; font-size: 14px; color: var(--text-3); }

/* --- Regeln --------------------------------------------------------------- */

.vorschlag { background: var(--text); color: #FFFFFF; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.vorschlag-marke { display: flex; gap: 10px; align-items: center; color: #F5C26B; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.vorschlag-text { margin: 0; font-size: 16px; line-height: 1.45; }
.vorschlag .knopf { border-color: #4A4E59; background: transparent; color: #FFFFFF; }
.vorschlag .knopf.haupt { border-color: transparent; background: #FFFFFF; color: var(--text); }

.regel { background: var(--karte); border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 12px; }
.regel-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.regel-satz { font-size: 15px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.regel-unter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--text-3); }
.regel-bereich { font-size: 11px; font-weight: 600; color: var(--text-2); background: var(--grund); border-radius: 6px; padding: 3px 7px; }
.regel.aus .regel-satz { color: var(--text-3); text-decoration: line-through; }
.regel.aus .zeichen { background: var(--grund); color: var(--text-3); }
.regel-schalter { flex: none; min-width: 52px; min-height: 44px; padding: 0 4px; border: none; background: transparent; display: flex; align-items: center; justify-content: center; }

.feld-reihe { display: flex; gap: 8px; align-items: stretch; }
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feld:disabled { opacity: 0.45; }
.umschalter:disabled { opacity: 0.6; }

/* --- Anmeldung ------------------------------------------------------------ */

.anmeldung { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 32px 4px; }
.anmeldung-marke { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.anmeldung-zeichen { width: 72px; height: 72px; border-radius: 22px; background: var(--rot); color: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(128, 0, 0, 0.25); }
.anmeldung-titel { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.konten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.konto {
  min-height: 56px; border-radius: 14px; border: 1px solid var(--linie); background: var(--karte);
  font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.konto[aria-checked='true'] { background: var(--text); border-color: var(--text); color: #FFFFFF; }

/* --- Rueckmeldung --------------------------------------------------------- */

.toast-bereich {
  position: fixed; left: 0; right: 0; bottom: calc(var(--leiste-hoehe) + 16px + var(--unten)); z-index: 40;
  display: flex; justify-content: center; padding: 0 16px; pointer-events: none;
}
.toast-bereich.tief { bottom: calc(112px + var(--unten)); }
.toast {
  position: relative; overflow: hidden; pointer-events: auto;
  width: 100%; max-width: calc(var(--spalte) - 32px); min-height: 48px; padding: 12px 16px;
  background: var(--text); color: #FFFFFF; border-radius: 14px;
  display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; line-height: 1.35;
  box-shadow: 0 8px 24px rgba(22, 24, 29, 0.25);
  animation: hochfahren 0.2s ease;
}
.toast-bild { flex: none; display: flex; color: #6EE7A0; }
.toast.fehler .toast-bild { color: #FCA5A5; }
.toast-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast-knopf {
  flex: none; min-height: 44px; margin: -8px -8px -8px 0; padding: 0 14px; border: none; border-radius: 10px;
  background: rgba(255, 255, 255, 0.14); color: #FFFFFF; font-size: 14px; font-weight: 600;
}
.toast-frist { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #6EE7A0; transform-origin: left; animation: ablaufen linear forwards; }
@keyframes ablaufen { to { transform: scaleX(0); } }

/* --- Breit (Tablet) ------------------------------------------------------- */

@media (min-width: 720px) {
  .seite { padding-inline: 24px; }
  .kopf { padding-top: 40px; }
  .gruppen { margin: 0; padding-inline: 4px; mask-image: none; -webkit-mask-image: none; }
}

@media (max-width: 379px) {
  .aktionen .knopf.gross { font-size: 14px; gap: 5px; }
  .aktionen .eckig { width: 48px; }
  .kopf-gross { font-size: 26px; }
  .zahl-kachel .zahl { font-size: 21px; }
  .knopf { padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .kreisel { animation-duration: 1.2s !important; }
  .toast-frist { animation: none; }
}
