/* App des Assistenten. Farben kommen zur Laufzeit aus dem Erscheinungsbild (--haupt, --akzent). */
:root {
  --haupt: #1F3A5F;
  --akzent: #2E7D5B;
  --hinter: #F5F6F8;
  --flaeche: #FFFFFF;
  --text: #1B1D21;
  --leise: #5B6270;
  --linie: #D9DDE3;
  --gelb: #8A5A00;
  --gelb-hinter: #FFF4D6;
  --gruen-hinter: #E6F4EC;
  --rot: #A3262A;
  --rund: 12px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --hinter: #121418;
    --flaeche: #1C1F25;
    --text: #E9EBEF;
    --leise: #A3A9B5;
    --linie: #333842;
    --gelb: #F2C14E;
    --gelb-hinter: #3A3016;
    --gruen-hinter: #18322A;
    --rot: #F2797D;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--hinter);
  color: var(--text);
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
}
[hidden] { display: none !important; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.kopf {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--haupt); color: #fff;
}
.kopf h1 { font-size: 18px; line-height: 1.2; margin: 0; flex: 1; min-width: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kopf .logo { width: 32px; height: 32px; border-radius: 8px; background: #fff; object-fit: contain; }
.kopf .leise { color: #fff; border-color: rgba(255, 255, 255, .5); }

.reiter {
  position: sticky; top: calc(52px + env(safe-area-inset-top)); z-index: 1;
  display: flex; background: var(--flaeche); border-bottom: 1px solid var(--linie);
  overflow-x: auto; scrollbar-width: none;
}
.reiter button {
  flex: 1 0 auto; min-height: 48px; padding: 0 10px; white-space: nowrap; border: 0; background: none; color: var(--leise);
  font: inherit; font-size: 15px; border-bottom: 3px solid transparent;
}
.reiter button[aria-current="page"] { color: var(--text); border-bottom-color: var(--akzent); font-weight: 600; }
.zahl { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--gelb); color: #fff; font-size: 13px; }

.seite { max-width: 760px; margin: 0 auto; padding: 16px; }
h2 { font-size: 19px; margin: 4px 0 12px; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 16px; display: grid; gap: 10px; }
label { font-weight: 600; font-size: 15px; }
input, textarea, select {
  font: inherit; color: inherit; background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: 10px; padding: 12px; width: 100%;
}
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
button { font: inherit; cursor: pointer; border-radius: 10px; min-height: 44px; padding: 0 16px; }
button.haupt, label.haupt { background: var(--akzent); color: #fff; border: 0; font-weight: 600; }
button.leise { background: none; color: var(--text); border: 1px solid var(--linie); }
button.gefahr { background: none; color: var(--rot); border: 1px solid var(--rot); }
button:disabled { opacity: .55; cursor: default; }
.hinweis { color: var(--leise); font-size: 14px; margin: 0; }
.meldung { color: var(--rot); min-height: 1.4em; }
.leer { color: var(--leise); text-align: center; margin: 24px 8px; }

.verlauf { list-style: none; margin: 0 0 140px; padding: 0; display: grid; gap: 12px; }
/* Die Eingabe liegt fest am unteren Rand: Beim Hinrollen bleibt die letzte Antwort darüber sichtbar. */
.verlauf li { scroll-margin-bottom: calc(var(--eingabe-unten, 140px) + 12px); max-width: 92%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.verlauf .nutzer { justify-self: end; background: var(--haupt); color: #fff; border-bottom-right-radius: 4px; }
.verlauf .assistent { justify-self: start; background: var(--flaeche); border: 1px solid var(--linie); border-bottom-left-radius: 4px; }
.verlauf .denkt { color: var(--leise); font-style: italic; }

.eingabe {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; gap: 8px; align-items: flex-end;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--flaeche); border-top: 1px solid var(--linie);
}
.eingabe textarea { resize: none; max-height: 40dvh; }

.aktion { margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--linie); background: var(--gruen-hinter); white-space: normal; }
.aktion.gelb { background: var(--gelb-hinter); border-color: var(--gelb); }
.aktion.fehler { border-color: var(--rot); background: none; }
.aktion-titel { margin: 0 0 6px; font-weight: 600; font-size: 15px; }
.vorschau { white-space: pre-wrap; font: 15px/1.4 ui-monospace, Menlo, monospace; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; padding: 10px; margin: 0 0 8px; max-height: 50dvh; overflow: auto; }
.knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }

.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.liste > li { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 12px 14px; }
.zeile { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.zeile .zeit { font-variant-numeric: tabular-nums; color: var(--leise); }
.marke { font-size: 13px; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--linie); }
.marke.gruen { background: var(--gruen-hinter); }
.marke.gelb { background: var(--gelb-hinter); }
.klein { font-size: 14px; color: var(--leise); }
.filter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.filter input[type="date"] { width: auto; }
.haken { font-weight: 400; display: flex; gap: 6px; align-items: center; }
.haken input { width: auto; }

/* Überblick */
.ueberblick { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.5; margin: 0 0 12px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 12px 14px; min-height: 120px; }
.wahl { min-height: 44px; padding: 0 14px; border: 1px solid var(--linie); border-radius: var(--rund); background: var(--flaeche); color: inherit; font: inherit; }
.wahl[aria-pressed="true"] { border-color: var(--haupt, currentColor); font-weight: 600; }

/* Listen prüfen */
#liste-spalten:not([hidden]), #liste-umfrage:not([hidden]) { display: grid; gap: 10px; }
#liste-ablegen { margin-top: 12px; }

/* Wiedervorlagen im Überblick */
#wiedervorlagen { margin-top: 20px; display: grid; gap: 12px; }
#wiedervorlagen .knoepfe { align-items: center; margin-top: 8px; }
#wiedervorlagen .knoepfe button { margin-left: auto; }

/* Empfängerliste */
#listen h2 { margin-top: 24px; }
.knopf-link { display: inline-block; margin-top: 12px; padding: 11px 16px; border: 1px solid var(--linie); border-radius: 10px; color: var(--text); text-decoration: none; }
.knopf-link:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }

/* Kundenliste */
.eingabe-zeile { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.eingabe-zeile input { flex: 1; min-width: 0; }
.kunde-knopf { width: 100%; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; display: grid; gap: 2px; }
.kunde-knopf .klein { color: var(--leise); font-size: 14px; }
.reiter { overflow-x: auto; }

/* ---------- Erscheinung 15.11.: Navigation mit Zeichen, unten am Handy, links am Laptop ---------- */
:root { --schatten: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08); --nav-h: 64px; }
.reiter svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.reiter button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; position: relative; }
.karte, .liste > li, .ueberblick, .abschnitt { box-shadow: var(--schatten); }
.liste > li { border-radius: 14px; }

/* Handy: Leiste unten, Zeichen über dem Namen */
@media (max-width: 899px) {
  .reiter {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 3;
    border-bottom: 0; border-top: 1px solid var(--linie);
    padding-bottom: env(safe-area-inset-bottom); overflow-x: auto;
  }
  .reiter button {
    flex: 1 0 64px; flex-direction: column; gap: 2px; min-height: var(--nav-h); padding: 6px 4px;
    font-size: 11.5px; border-bottom: 0; border-top: 3px solid transparent;
  }
  .reiter button[aria-current="page"] { border-top-color: var(--akzent); color: var(--akzent-schrift); }
  .reiter .zahl { position: absolute; top: 4px; left: calc(50% + 6px); font-size: 11px; min-width: 18px; padding: 0 5px; line-height: 18px; }
  body { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
  .eingabe { bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
  .verlauf { margin-bottom: 160px; }
}

/* Laptop: Leiste links, Inhalt breiter */
@media (min-width: 900px) {
  #innen:not([hidden]) { display: grid; grid-template-columns: 232px 1fr; min-height: calc(100dvh - 60px); }
  .reiter {
    position: sticky; top: 60px; align-self: start; height: calc(100dvh - 60px);
    flex-direction: column; gap: 2px; padding: 16px 10px; overflow: auto;
    border-bottom: 0; border-right: 1px solid var(--linie);
  }
  .reiter button {
    flex: none; justify-content: flex-start; gap: 12px; min-height: 44px; padding: 0 12px;
    border-radius: 10px; border-bottom: 0; font-size: 15px;
  }
  .reiter button:hover { background: var(--hinter); }
  .reiter button[aria-current="page"] { background: color-mix(in srgb, var(--akzent) 12%, transparent); color: var(--text); }
  .reiter .zahl { margin-left: auto; }
  .seite { max-width: 980px; padding: 24px 32px; width: 100%; }
  .eingabe { left: 232px; }
  .eingabe textarea, .eingabe button { max-width: 916px; }
}

/* Heute: Datum, Kacheln, Abschnitte */
.datum-zeile { margin: 4px 0 12px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kachel {
  display: grid; gap: 2px; text-align: left; padding: 14px; min-height: 92px;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; box-shadow: var(--schatten); color: inherit; font: inherit;
}
button.kachel:hover { border-color: var(--akzent); }
.kachel-zahl { font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--haupt-schrift); }
.kachel-titel { font-weight: 600; font-size: 15px; }
.kachel-zusatz { font-size: 13px; color: var(--leise); }
.kachel.warn .kachel-zusatz { color: var(--gelb); font-weight: 600; }
.abschnitte { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 12px; }
@media (min-width: 1200px) { .abschnitte { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.abschnitt { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 14px 16px; scroll-margin-top: 80px; min-width: 0; overflow-wrap: anywhere; }
.abschnitt h2 { font-size: 16px; margin: 0 0 8px; }
.eintraege { list-style: none; margin: 0; padding: 0; }
.eintraege li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--linie); }
.eintraege li:first-child { border-top: 0; }
.eintrag-text { display: grid; min-width: 0; }
.eintrag-text strong { font-weight: 600; overflow-wrap: anywhere; }
.chip { flex: none; font-size: 13px; padding: 2px 9px; border-radius: 999px; background: var(--hinter); border: 1px solid var(--linie); font-variant-numeric: tabular-nums; }
.chip.warn { background: var(--gelb-hinter); border-color: var(--gelb); color: var(--gelb); font-weight: 600; }
.leise-zeile { color: var(--leise); }
.als-text { margin: 4px 0 8px; }
.als-text summary { cursor: pointer; color: var(--leise); font-size: 14px; }
.als-text .ueberblick { margin-top: 8px; }

/* Freigabe: Empfehlung des Assistenten */
.empfehlung {
  margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; font-size: 15px;
  background: color-mix(in srgb, var(--akzent) 10%, var(--flaeche)); border-left: 4px solid var(--akzent);
}
.empfehlung.ohne { background: var(--hinter); border-left-color: var(--linie); color: var(--leise); }
#liste-freigaben > li { border-left: 4px solid var(--gelb); }
.kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.kopfzeile h2 { margin: 0; }
.neue-kontakte { margin-top: 28px; }
@media (min-width: 900px) { .liste.firmen { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.liste.firmen > li:hover { border-color: var(--akzent); }
@media (max-width: 899px) { .reiter button { border-radius: 0; } }

/* Aufgaben in der App */
.aufgabe-neu { gap: 8px; margin-bottom: 14px; }
.aufgabe-felder { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.aufgabe-felder label { display: grid; gap: 4px; font-size: 14px; flex: 1 1 140px; }
.aufgabe-felder button { flex: 0 0 auto; }
.aufgaben-liste > li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 12px; }
.aufgaben-liste > li.warn { border-left: 4px solid var(--gelb); }
.aufgaben-liste .eintrag-text { flex: 1; }
.aufgabe-oeffnen { display: grid; gap: 2px; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; min-width: 0; }
.aufgabe-oeffnen:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.aufgabe-oeffnen:focus-visible { outline: 2px solid var(--akzent); outline-offset: 4px; border-radius: 6px; }
.aufgabe-details { flex: 1 0 100%; display: grid; gap: 10px; padding: 6px 0 4px 48px; }
.aufgabe-dorthin { justify-self: start; }
.aufgabe-form { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.aufgabe-form label { display: grid; gap: 4px; font-size: 14px; }
.aufgabe-form label:first-child, .aufgabe-form label:has(textarea), .aufgabe-form .aufgabe-knoepfe, .aufgabe-form .meldung { grid-column: 1 / -1; }
.aufgabe-form textarea { resize: vertical; font: inherit; }
.aufgabe-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
.aufgabe-notiz { white-space: pre-wrap; margin: 0; }
@media (max-width: 600px) { .aufgabe-details { padding-left: 0; } }
.aufgaben-liste li.warn .klein { color: var(--gelb); font-weight: 600; }
.haken-knopf {
  flex: none; width: 30px; height: 30px; min-height: 30px; padding: 0; border-radius: 50%;
  border: 2px solid var(--leise); background: var(--flaeche); color: var(--akzent-schrift); font-size: 16px; line-height: 1;
}
.haken-knopf:hover { border-color: var(--akzent); background: var(--gruen-hinter); }
.haken-knopf:hover::after { content: "✓"; }
.haken-knopf.zurueck { border-color: var(--linie); color: var(--leise); }
.haken-knopf.zurueck:hover::after { content: ""; }
.aufgaben-liste li.erledigt strong { text-decoration: line-through; color: var(--leise); font-weight: 400; }
.wer-wahl { width: auto; max-width: 42%; padding: 6px 8px; font-size: 14px; border-radius: 999px; }
#aufgaben .kopfzeile .filter { margin: 0; }
.aufgabe-neu { align-content: start; }
.aufgabe-neu .meldung:empty { display: none; }
#aufgaben > .hinweis { margin-top: 12px; }

/* ---------- Erscheinung 15.11. (2): wie die Skizzen in der Projektmappe ---------- */
.wer { font-size: 13px; opacity: .85; }
@media (max-width: 899px) { .kopf .wer { display: none; } }
/* Laptop: kein Balken oben; Logo und Name oben in der Leiste links, Angemeldet und Abmelden unten */
@media (min-width: 900px) {
  body.drin .kopf {
    position: fixed; top: 0; left: 0; width: 232px; z-index: 4;
    background: var(--flaeche); color: var(--text); border-right: 1px solid var(--linie);
    padding: 18px 16px 12px; gap: 10px;
  }
  body.drin .kopf h1 { font-size: 16px; font-weight: 700; }
  body.drin .kopf .logo { border: 1px solid var(--linie); }
  body.drin .kopf .wer { position: fixed; left: 16px; bottom: 64px; width: 200px; color: var(--leise); overflow-wrap: anywhere; }
  body.drin .kopf #abmelden { position: fixed; left: 16px; bottom: 14px; width: 200px; color: var(--text); border-color: var(--linie); }
  body.drin #innen:not([hidden]) { min-height: 100dvh; }
  body.drin .reiter { top: 0; height: 100dvh; padding-top: 76px; padding-bottom: 120px; }
  .reiter button[aria-current="page"] { box-shadow: inset 4px 0 0 var(--haupt); border-radius: 0 10px 10px 0; }
}
.hinweis-knopf {
  min-height: 36px; padding: 0 14px; border: 0; border-radius: 6px; font-size: 14px; font-weight: 600;
  background: var(--gelb-hinter); color: var(--text); box-shadow: inset 0 0 0 1px var(--gelb);
}
.reiter .zahl { background: #D9481F; }

/* Kundenliste als Tabelle (Laptop), als Karten untereinander (Handy) */
.tabelle-rahmen { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; box-shadow: var(--schatten); overflow: hidden; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabelle th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); padding: 12px 14px; border-bottom: 2px solid var(--text); }
.tabelle td { padding: 12px 14px; border-top: 1px solid var(--linie); vertical-align: top; }
.tabelle tbody tr { cursor: pointer; }
.tabelle tbody tr:hover { background: var(--hinter); }
.tabelle .kunde-knopf { min-height: 0; }
.status { display: inline-block; font-size: 13px; padding: 2px 9px; border-radius: 4px; background: var(--hinter); border: 1px solid var(--linie); white-space: nowrap; }
.status.s-gruen { background: #7AAE9A; border-color: #7AAE9A; color: #10261E; }
.status.s-gelb { background: #F2CF66; border-color: #F2CF66; color: #2B2200; }
.status.s-blau { background: #93C1D6; border-color: #93C1D6; color: #0E2733; }
.status.s-grau { color: var(--leise); }
.warn-text { color: var(--gelb); font-weight: 600; font-size: 14px; }
@media (min-width: 700px) { .tabelle td:empty::after { content: "–"; color: var(--leise); } }
@media (max-width: 699px) {
  .tabelle-rahmen { background: none; border: 0; box-shadow: none; overflow: visible; }
  .tabelle thead { display: none; }
  .tabelle, .tabelle tbody { display: grid; gap: 10px; }
  .tabelle tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 12px 14px; box-shadow: var(--schatten); }
  .tabelle td { padding: 0; border: 0; }
  .tabelle td[data-art="firma"] { grid-column: 1; }
  .tabelle td[data-art="status"] { grid-column: 2; grid-row: 1; text-align: right; }
  .tabelle td[data-art="person"], .tabelle td[data-art="vorgaenge"], .tabelle td[data-art="ansteht"] { grid-column: 1 / -1; font-size: 14px; color: var(--leise); }
  .tabelle td:empty { display: none; }
}

/* Freigaben: Karte mit Titel, Herkunft, Empfehlung im grauen Feld, Vorschau zum Aufklappen */
#liste-freigaben > li { display: grid; gap: 6px; border-left: 4px solid #F2CF66; }
#liste-freigaben .freigabe-titel { font-size: 16px; }
#liste-freigaben .klein { margin: 0; }
#liste-freigaben .empfehlung { background: var(--hinter); border-left: 0; margin: 4px 0; }
#liste-freigaben .vorschau-auf summary { cursor: pointer; color: var(--leise); font-size: 14px; }
#liste-freigaben .vorschau-auf .vorschau { margin-top: 6px; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#freigaben-titel { text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }

/* Freigabe ändern: Felder direkt in der Karte */
#liste-freigaben .aendern { display: grid; gap: 6px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--linie); }
#liste-freigaben .aendern label { font-size: 14px; }
#liste-freigaben .aendern .meldung:empty { display: none; }
#liste-freigaben .knoepfe { flex-wrap: nowrap; }
#liste-freigaben .knoepfe button { flex: 1 1 0; min-width: 0; padding: 0 8px; }

/* Protokoll: Fläche für die Unterschrift (Finger oder Maus), Punkte zum Abhaken */
.unterschrift { width: 100%; max-width: 600px; aspect-ratio: 3 / 1; background: #fff; border: 1px dashed var(--linie); border-radius: var(--rund); touch-action: none; display: block; }
.punkte { border: 0; padding: 0; margin: 0 0 8px; }
.punkte label { display: flex; gap: 8px; align-items: flex-start; font-weight: normal; margin: 6px 0; }

.foto-knopf { cursor: pointer; padding: 10px; font-size: 1.2rem; line-height: 1; }
.knopf-label { display: inline-block; cursor: pointer; padding: 8px 14px; border: 1px solid var(--linie); border-radius: 8px; }
.gespraech-kopf { display: flex; justify-content: flex-end; margin-bottom: 8px; }

/* Abrechnung und Rücklauf */
.liste > li.warn { border-left: 4px solid var(--gelb); }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.knopf-reihe .knopf-link { margin-top: 0; }
#abrechnung section { margin-top: 20px; }
#abrechnung .liste > li .hinweis { margin: 4px 0 0; }
#abrechnung .liste > li button { margin-top: 8px; }

/* Wissen: Antwort zu einer Wissenslücke */
.luecke-antwort { display: grid; gap: 8px; margin: 8px 0; }
.luecke-antwort input, .luecke-antwort textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 8px; border: 1px solid var(--linie); border-radius: var(--rund); background: var(--flaeche); color: inherit; }
.luecke-antwort button { justify-self: start; }
.assistent .luecke-hinweis { display: block; margin-top: 6px; }
#wissensseite section { margin-top: 24px; }
#form-wissen-suche input { flex: 1; min-width: 0; }
/* Lange Dateinamen und Fragen ohne Leerzeichen dürfen umbrechen (sonst wird die Seite am Handy breiter) */
#wissensseite li, #wissensseite li strong, #wissensseite li p { overflow-wrap: anywhere; min-width: 0; }
#wissensseite .zeile > * { min-width: 0; }

/* Vorlesen (2a.5) */
button.vorlesen { font-size: .8rem; padding: .1rem .5rem; margin-left: .3rem; vertical-align: middle; }

/* Foto einordnen (3a.8) */
.foto-ein-kopf { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.foto-ein-kopf img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--linie); flex: none; }
.foto-ein select, .foto-ein input, .foto-ein textarea { width: 100%; }

/* Gesprächsmodus (3a.9): ganzer Bildschirm, große Schrift, ein großer Knopf; lesbar aus Armlänge */
.gespraech-kopf { display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.gespraech { position: fixed; inset: 0; z-index: 50; background: var(--hinter); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); text-align: center; }
.gespraech[hidden] { display: none; }
.gs-kreis { width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center; background: var(--akzent); color: #fff; font-size: 1.25rem; font-weight: 600; transition: transform .3s; }
.gs-kreis[data-stand="hoert"] { animation: gs-atmen 1.8s ease-in-out infinite; }
.gs-kreis[data-stand="denkt"] { opacity: .75; }
.gs-kreis[data-stand="spricht"] { transform: scale(1.06); }
@keyframes gs-atmen { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .gs-kreis { animation: none !important; } }
.gs-du { font-size: 1.15rem; color: var(--leise); min-height: 1.4em; max-width: 34rem; }
.gs-er { font-size: 1.5rem; line-height: 1.35; max-width: 34rem; min-height: 1.4em; }
.gs-hinweis { font-size: .9rem; color: var(--leise); max-width: 30rem; margin: 0; }
.gs-ende { font-size: 1.2rem; padding: 18px 28px; border-radius: 14px; border: 0; background: var(--rot); color: #fff; font-weight: 700; min-width: 60%; }
.foto-knopf.aktiv { background: var(--rot); color: #fff; border-radius: 50%; }

/* Firma als Karte (Kundenliste) */
.firma-ansicht { display: grid; gap: 14px; }
.fa-kopf { border-bottom: 1px solid var(--linie); padding-bottom: 10px; }
.fa-name { font-size: 21px; margin: 0 0 2px; overflow-wrap: anywhere; }
.fa-block h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--leise); margin: 0 0 6px; font-weight: 600; }
.fa-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fa-liste li { background: var(--hinter); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; }
.fa-kontakt { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; font-size: 15px; }
.fa-kontakt a, .fa-kopf a { color: var(--akzent-schrift); text-decoration: none; }
.fa-zeile { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.fa-offen { margin-top: 4px; }
.fa-offen.ueberfaellig { color: var(--rot); }
.fa-notiz { white-space: pre-wrap; }

/* „Mehr“: seltene Knöpfe aufgeräumt hinter einem Menü */
.mehr { position: relative; }
.mehr > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche); font-size: 15px; }
.mehr > summary::-webkit-details-marker { display: none; }
.mehr > summary::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.mehr[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.mehr-menue { position: absolute; right: 0; top: calc(100% + 6px); z-index: 4; min-width: 230px; display: grid; gap: 4px; padding: 6px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.mehr-menue button { justify-content: flex-start; text-align: left; border: 0; width: 100%; }

/* Kopf ruhiger: Abmelden klein; Leiste unten zeigt mit einem Verlauf, dass es rechts weitergeht */
.kopf .leise { min-height: 36px; padding: 0 12px; font-size: 14px; background: transparent; }
@media (max-width: 899px) {
  .reiter { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .reiter.am-ende { -webkit-mask-image: none; mask-image: none; }
}

/* Handy, 19.11.: höchstens fünf Felder unten (vier Bereiche + „Mehr“); der Rest öffnet sich als Blatt von unten */
#reiter-mehr { display: none; }
.mehr-blatt { display: none; }
@media (max-width: 899px) {
  .reiter.mit-mehr { overflow-x: hidden; -webkit-mask-image: none; mask-image: none; }
  .reiter.mit-mehr .ueberlauf { display: none; }
  .reiter.mit-mehr #reiter-mehr:not([hidden]) { display: inline-flex; }
  .mehr-blatt:not([hidden]) {
    display: block; position: fixed; inset: 0 0 calc(var(--nav-h) + env(safe-area-inset-bottom)) 0; z-index: 7; /* über klebenden Leisten (z. B. .ps-ue-sammel) */
    background: rgba(16, 24, 40, .28);
  }
  .mehr-blatt-innen {
    position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    padding: 14px 14px 18px; background: var(--flaeche); border-radius: 18px 18px 0 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, .12);
  }
  .mehr-blatt-innen button {
    display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 76px; padding: 10px 6px; position: relative;
    border: 1px solid var(--linie); border-radius: 14px; background: var(--hinter); font-size: 13px;
  }
  .mehr-blatt-innen button[aria-current="page"] { border-color: var(--akzent); color: var(--akzent-schrift); font-weight: 600; }
  .mehr-blatt-innen svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mehr-blatt-innen .zahl { position: absolute; top: 6px; right: 8px; background: #D9481F; }
}

/* =====================================================================================================================
   Erscheinung 20.11.2026: ruhig, hell, wie eine moderne App auf dem iPhone und dem Mac.
   Systemschrift, weiche Flächen statt Linien, Glas für Leisten, runde Knöpfe mit Linien-Zeichen, Antworten als
   gesetzter Text statt als Kasten. Farben des Kunden (--haupt, --akzent) bleiben die einzigen Markenfarben.
   ===================================================================================================================== */
:root {
  --hinter: #F2F2F7;
  --flaeche: #FFFFFF;
  --flaeche-2: #F2F2F7;
  --fuellung: rgba(118, 118, 128, .12);
  --text: #1C1C1E;
  --leise: #6E6E73;
  --linie: rgba(60, 60, 67, .14);
  --glas: rgba(255, 255, 255, .72);
  --rund: 14px;
  --schatten: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .05);
  --schatten-hoch: 0 8px 30px rgba(0, 0, 0, .10);
  --akzent-zart: color-mix(in srgb, var(--akzent) 12%, transparent);
  /* Akzent als Schriftfarbe: hell wie gesetzt; dunkel aufgehellt, damit dunkle Hausfarben auf Schwarz lesbar bleiben */
  --akzent-schrift: var(--akzent);
  --haupt-schrift: var(--haupt);
  --weich: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --hinter: #000000;
    --flaeche: #1C1C1E;
    --flaeche-2: #2C2C2E;
    --fuellung: rgba(118, 118, 128, .24);
    --text: #F5F5F7;
    --leise: #98989F;
    --linie: rgba(84, 84, 88, .55);
    --glas: rgba(28, 28, 30, .72);
    --schatten: none;
    --schatten-hoch: 0 8px 30px rgba(0, 0, 0, .5);
    --akzent-zart: color-mix(in srgb, var(--akzent) 26%, transparent);
    --akzent-schrift: color-mix(in srgb, var(--akzent) 58%, #fff);
    --haupt-schrift: color-mix(in srgb, var(--haupt) 58%, #fff);
  }
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 16px; line-height: 1.5; letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
h1, h2, .datum-zeile, .fa-name { letter-spacing: -.02em; }
h2 { font-size: 20px; font-weight: 700; }
::selection { background: var(--akzent-zart); }

/* Knöpfe und Felder: Pillen und gefüllte Felder statt Rahmen */
button, .knopf-link, .knopf-label { border-radius: 12px; transition: background-color .2s var(--weich), transform .15s var(--weich), opacity .2s; }
button:active:not(:disabled) { transform: scale(.97); }
button.haupt, label.haupt { background: var(--akzent); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
button.haupt:hover:not(:disabled) { filter: brightness(1.06); }
button.leise, .knopf-link, .knopf-label { background: var(--fuellung); border: 0; color: var(--text); }
button.leise:hover:not(:disabled) { background: color-mix(in srgb, var(--fuellung) 100%, var(--text) 6%); }
button.gefahr { border: 0; background: color-mix(in srgb, var(--rot) 12%, transparent); }
input, textarea, select { background: var(--fuellung); border: 1px solid transparent; border-radius: 12px; transition: border-color .2s, background-color .2s; }
input:focus, textarea:focus, select:focus { background: var(--flaeche); border-color: color-mix(in srgb, var(--akzent) 55%, transparent); outline: none; box-shadow: 0 0 0 4px var(--akzent-zart); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }
button:focus-visible { outline: 3px solid color-mix(in srgb, var(--akzent) 60%, transparent); outline-offset: 2px; }

/* Flächen: weiche Karten ohne Rahmen */
.karte, .liste > li, .abschnitt, .kachel, .tabelle-rahmen, .ueberblick { border: 0; border-radius: 18px; box-shadow: var(--schatten); background: var(--flaeche); }
.karte { padding: 20px; }
.liste > li { padding: 14px 16px; }
.chip, .marke, .status { border: 0; border-radius: 999px; }
.chip { background: var(--fuellung); }
.zahl, .reiter .zahl { background: #FF3B30; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Kopf (Handy) und Leiste: Glas */
.kopf { background: var(--glas); color: var(--text); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--linie); }
.kopf h1 { font-size: 17px; font-weight: 700; }
.kopf .logo { border-radius: 9px; box-shadow: 0 0 0 1px var(--linie); }
.kopf .leise { color: var(--text); background: var(--fuellung); }
.reiter { background: var(--glas); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.reiter svg { stroke-width: 1.7; }

@media (max-width: 899px) {
  .reiter { border-top: 1px solid var(--linie); }
  .reiter button { border-top: 0; color: var(--leise); font-size: 10.5px; font-weight: 500; letter-spacing: .01em; gap: 3px; }
  .reiter button svg { width: 25px; height: 25px; }
  .reiter button[aria-current="page"] { color: var(--akzent-schrift); border-top: 0; }
  .reiter button[aria-current="page"] svg { stroke-width: 2.1; }
  .mehr-blatt-innen { border-radius: 22px 22px 0 0; background: var(--flaeche); }
  .mehr-blatt-innen button { border: 0; background: var(--flaeche-2); border-radius: 16px; }
  .mehr-blatt-innen button[aria-current="page"] { background: var(--akzent-zart); }
}
@media (min-width: 900px) {
  body.drin .kopf { background: transparent; border-right: 0; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.drin .kopf h1 { font-size: 15px; line-height: 1.25; }
  .reiter { background: color-mix(in srgb, var(--flaeche-2) 70%, var(--flaeche)); border-right: 1px solid var(--linie); }
  body.drin .reiter { padding-left: 12px; padding-right: 12px; }
  .reiter button { min-height: 38px; border-radius: 10px; gap: 11px; color: var(--text); font-size: 14.5px; font-weight: 500; }
  .reiter button svg { color: var(--akzent-schrift); width: 20px; height: 20px; }
  .reiter button:hover { background: var(--fuellung); }
  .reiter button[aria-current="page"] { background: var(--akzent-zart); color: var(--text); box-shadow: none; border-radius: 10px; font-weight: 600; }
  body.drin .kopf #abmelden { background: var(--fuellung); border: 0; }
  .seite { padding: 28px 40px; }
}

/* ---------- Chat ---------- */
#fragen.seite { max-width: 820px; }
.gespraech-kopf { position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 1; margin: -8px -4px 8px; padding: 8px 4px; }
@media (min-width: 900px) { .gespraech-kopf { top: 0; background: linear-gradient(var(--hinter) 70%, transparent); } }
.gespraech-kopf button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; font-size: 14.5px; font-weight: 600; border-radius: 999px; }
.gespraech-kopf svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gespraech-knopf.haupt { background: var(--akzent-zart); color: var(--akzent-schrift); box-shadow: none; }
#neues-gespraech { background: transparent; color: var(--akzent-schrift); margin-left: auto; }
#neues-gespraech:hover { background: var(--akzent-zart); }

.verlauf { gap: 18px; }
.verlauf > li { white-space: normal; animation: blase-rein .32s var(--weich) both; }
@keyframes blase-rein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.verlauf .nutzer {
  max-width: min(78%, 560px); background: var(--akzent); color: #fff; border-radius: 22px 22px 6px 22px;
  padding: 10px 16px; white-space: pre-wrap; box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
}
.anhang-reihe { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.anhang { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 13.5px; font-weight: 500; }
.anhang svg, .symbol-knopf svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Antworten: gesetzter Text ohne Kasten, volle Breite */
.verlauf .assistent { max-width: 100%; width: 100%; background: none; border: 0; padding: 2px 2px 0; border-radius: 0; color: var(--text); }
.blase-text { font-size: 16.5px; line-height: 1.6; overflow-wrap: anywhere; }
.blase-text > :first-child { margin-top: 0; }
.blase-text > :last-child { margin-bottom: 0; }
.blase-text p { margin: 0 0 .7em; }
.blase-text strong { font-weight: 650; }
.blase-text em { font-style: italic; }
.blase-text .titel { font-weight: 700; margin: 1.1em 0 .35em; letter-spacing: -.01em; }
.blase-text .titel.t1 { font-size: 1.25em; }
.blase-text .titel.t2 { font-size: 1.12em; }
.blase-text .titel.t3 { font-size: 1.02em; }
.blase-text ul, .blase-text ol { margin: .2em 0 .8em; padding-left: 1.35em; }
.blase-text li { margin: .28em 0; padding-left: .15em; }
.blase-text ul > li::marker { color: var(--akzent-schrift); }
.blase-text ol > li::marker { color: var(--leise); font-variant-numeric: tabular-nums; font-weight: 600; }
.blase-text li > ul { margin: .2em 0 .2em; }
.blase-text hr { border: 0; height: 1px; background: var(--linie); margin: 1em 0; }
.blase-text blockquote { margin: .4em 0 .9em; padding: 10px 14px; border-radius: 14px; background: var(--akzent-zart); }
.blase-text blockquote p:last-child { margin: 0; }
.blase-text code { font: .9em ui-monospace, "SF Mono", Menlo, monospace; background: var(--fuellung); padding: .1em .35em; border-radius: 6px; }
.blase-text pre { font: 14px/1.5 ui-monospace, "SF Mono", Menlo, monospace; background: var(--flaeche-2); padding: 12px 14px; border-radius: 12px; overflow-x: auto; white-space: pre; }
.blase-text a { color: var(--akzent-schrift); text-decoration: none; font-weight: 500; }
.blase-text a:hover { text-decoration: underline; }
.blase-text .quelle { font-size: 13.5px; color: var(--leise); margin-top: .9em; }
.blase-text .quelle em { font-style: normal; }
.md-tabelle { overflow-x: auto; margin: .4em 0 .9em; border-radius: 14px; background: var(--flaeche); box-shadow: var(--schatten); }
.md-tabelle table { border-collapse: collapse; width: 100%; font-size: 15px; }
.md-tabelle th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--leise); padding: 10px 14px; border-bottom: 1px solid var(--linie); white-space: nowrap; }
.md-tabelle td { padding: 9px 14px; border-top: 1px solid var(--linie); vertical-align: top; }
.md-tabelle tr:first-child td { border-top: 0; }

/* Zeile unter der Antwort: Kopieren, Vorlesen */
.blase-leiste { display: flex; gap: 2px; margin: 6px 0 0 -6px; opacity: .75; transition: opacity .2s; }
.verlauf .assistent:hover .blase-leiste, .blase-leiste:focus-within { opacity: 1; }
.symbol-knopf { display: inline-grid; place-items: center; width: 32px; height: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--leise); }
.symbol-knopf:hover { background: var(--fuellung); color: var(--text); }
.symbol-knopf svg { width: 18px; height: 18px; }
.symbol-knopf[data-laeuft] { color: var(--akzent-schrift); background: var(--akzent-zart); }
button.vorlesen { font-size: inherit; padding: 0; margin: 0; }
.verlauf .assistent .luecke-hinweis { display: block; margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--flaeche-2); }

/* Denkt nach / schreibt */
.verlauf .denkt { font-style: normal; color: var(--leise); }
.denkt-zeile { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 18px; background: var(--flaeche); box-shadow: var(--schatten); }
.punkte { display: inline-flex; gap: 4px; }
.punkte i { width: 7px; height: 7px; border-radius: 50%; background: var(--akzent); opacity: .35; animation: punkt 1.2s infinite ease-in-out; }
.punkte i:nth-child(2) { animation-delay: .15s; }
.punkte i:nth-child(3) { animation-delay: .3s; }
@keyframes punkt { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.denkt-text {
  font-size: 14.5px; font-weight: 500;
  background: linear-gradient(90deg, var(--leise) 0%, var(--text) 50%, var(--leise) 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: schimmer 2.2s linear infinite;
}
@keyframes schimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.schreibt .blase-text > :last-child::after, .schreibt .blase-text > ul:last-child > li:last-child::after, .schreibt .blase-text > ol:last-child > li:last-child::after {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 4px; border-radius: 50%; background: var(--akzent); vertical-align: baseline; animation: punkt 1s infinite ease-in-out;
}
.schreibt .blase-text > ul:last-child::after, .schreibt .blase-text > ol:last-child::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  .verlauf > li, .punkte i, .denkt-text { animation: none !important; }
  .denkt-text { color: var(--leise); background: none; }
}

/* Freigabe- und Ergebniskarten in der Antwort */
.verlauf .aktion { border: 0; border-radius: 16px; padding: 14px 16px; background: var(--flaeche); box-shadow: var(--schatten); margin-top: 12px; }
.verlauf .aktion.gelb { background: color-mix(in srgb, #FFCC00 14%, var(--flaeche)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #FFCC00 45%, transparent); }
.verlauf .aktion.fehler { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rot) 40%, transparent); }
.aktion-titel { font-size: 15px; }
.vorschau { border: 0; background: var(--flaeche-2); border-radius: 12px; font: 14px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; }
.fehler-blase .blase-text { color: var(--rot); }

/* Leer: freundlicher Start mit Vorschlägen */
#leer-fragen { margin: 12vh auto 16px; max-width: 520px; font-size: 15.5px; line-height: 1.55; }
.vorschlaege { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 24px; max-width: 620px; }
.vorschlag { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--flaeche); box-shadow: var(--schatten); color: var(--text); font-size: 14.5px; }
.vorschlag:hover { background: var(--akzent-zart); }
#ki-hinweis { font-size: 12.5px; text-align: center; max-width: 620px; margin: 0 auto; opacity: .85; }
#foto-angehaengt, #datei-angehaengt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: var(--flaeche); box-shadow: var(--schatten); margin: 8px 0; }

/* Eingabe: schwebende Leiste, Feld als Pille, runder Senden-Knopf mit Pfeil */
.eingabe {
  align-items: flex-end; gap: 6px; padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  background: var(--glas); border-top: 1px solid var(--linie);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.eingabe .foto-knopf {
  display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; min-height: 40px; padding: 0; margin-bottom: 2px;
  border: 0; border-radius: 50%; background: var(--fuellung); color: var(--text); font-size: 0;
}
.eingabe .foto-knopf[hidden] { display: none !important; }
.eingabe .foto-knopf:hover { background: color-mix(in srgb, var(--fuellung) 100%, var(--text) 8%); }
.eingabe .foto-knopf svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eingabe .foto-knopf.aktiv { background: #FF3B30; color: #fff; animation: zuhoeren 1.4s infinite; }
@keyframes zuhoeren { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .45); } 100% { box-shadow: 0 0 0 12px rgba(255, 59, 48, 0); } }
.eingabe-feld {
  flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 6px; padding: 4px 4px 4px 16px;
  background: var(--flaeche); border-radius: 22px; box-shadow: inset 0 0 0 1px var(--linie);
  transition: box-shadow .2s;
}
.eingabe-feld:focus-within { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--akzent) 55%, transparent), 0 0 0 4px var(--akzent-zart); }
.eingabe-feld textarea { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 0; min-height: 36px; line-height: 1.4; box-shadow: none; }
.eingabe-feld textarea:focus { box-shadow: none; background: transparent; border: 0; }
.senden-knopf {
  flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; min-height: 34px; padding: 0; border-radius: 50%;
}
.senden-knopf svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.eingabe-feld.leer .senden-knopf { opacity: .35; }
@media (min-width: 900px) {
  .eingabe { left: 232px; justify-content: center; background: linear-gradient(transparent, var(--hinter) 35%); border-top: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding-bottom: 20px; }
  .eingabe-feld { max-width: 760px; box-shadow: 0 0 0 1px var(--linie), var(--schatten-hoch); }
  .eingabe-feld:focus-within { box-shadow: 0 0 0 1px color-mix(in srgb, var(--akzent) 55%, transparent), 0 0 0 4px var(--akzent-zart), var(--schatten-hoch); }
  .eingabe textarea, .eingabe button { max-width: none; }
}

/* Gesprächsmodus: weicher Kreis mit Leuchten */
.gs-kreis { background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--akzent) 70%, #fff), var(--akzent)); box-shadow: 0 20px 60px var(--akzent-zart); }
.gs-ende { border-radius: 999px; background: #FF3B30; }

/* Heute */
.datum-zeile { font-size: 28px; font-weight: 800; }
.kachel { border-radius: 20px; padding: 16px; }
.kachel-zahl { color: var(--akzent-schrift); font-size: 30px; letter-spacing: -.02em; }
button.kachel:hover { box-shadow: var(--schatten-hoch); }
/* Handy: drei Kacheln in einer Reihe statt zwei plus eine allein (Durchgang 21.11.) */
@media (max-width: 599px) {
  .kacheln { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
  .kachel { padding: 12px; min-height: 84px; border-radius: 16px; }
  .kachel-zahl { font-size: 26px; }
  .kachel-titel { font-size: 14px; hyphens: auto; }
}
.wahl { border: 0; background: var(--fuellung); border-radius: 999px; min-height: 34px; font-size: 14.5px; }
.wahl[aria-pressed="true"] { background: var(--flaeche); box-shadow: var(--schatten); }
.filter[role="group"] { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--fuellung); }
.filter[role="group"] .wahl { background: transparent; }
.filter[role="group"] .wahl[aria-pressed="true"] { background: var(--flaeche); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* Freigaben, Aufgaben: Markierung als feiner Streifen statt dicker Linie */
#liste-freigaben > li, .liste > li.warn, .aufgaben-liste > li.warn { border-left: 0; box-shadow: inset 4px 0 0 #FFCC00, var(--schatten); }
.empfehlung { border-left: 0; border-radius: 12px; }
#freigaben-titel { text-transform: none; letter-spacing: -.02em; font-size: 22px; }
.tabelle th { border-bottom: 1px solid var(--linie); }

/* Anmeldung */
#anmeldung { max-width: 420px; padding-top: 10vh; }
#anmeldung .karte { padding: 28px 24px; border-radius: 22px; box-shadow: var(--schatten-hoch); }
#anmeldung h2 { font-size: 26px; font-weight: 800; }
#anmeldung button.haupt { min-height: 50px; border-radius: 14px; font-size: 16.5px; }
#leer-fragen[hidden] + .vorschlaege { display: none; }
.eingabe { flex-wrap: wrap; row-gap: 4px; }
.eingabe-hinweis { flex: 0 0 100%; margin: 0; text-align: center; font-size: 11.5px; color: var(--leise); }
@media (min-width: 900px) { .eingabe-hinweis { max-width: 760px; } }
#leer-fragen[hidden] ~ #ki-hinweis { display: none; }
/* Der KI-Hinweis steht über der schwebenden Eingabe, nie darunter (am Handy war er sonst zum Teil verdeckt) */
#ki-hinweis { margin-bottom: calc(var(--eingabe-unten, 140px) + 16px); }
.verlauf:empty { margin-bottom: 0; }
@media (max-width: 899px) { #leer-fragen { margin-top: 6vh; } }
.verlauf { margin-bottom: calc(var(--eingabe-unten, 140px) + 24px); }
/* Eingabe (2): Zeichen im Feld, ein Feld über die ganze Breite */
.eingabe { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.eingabe-feld { width: 100%; padding: 5px 5px 5px 6px; gap: 2px; align-items: flex-end; }
.eingabe-feld textarea { padding: 8px 6px; }
.eingabe-feld .foto-knopf {
  display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; min-height: 36px; margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--leise); font-size: 0;
}
.eingabe-feld .foto-knopf[hidden] { display: none !important; }
.eingabe-feld .foto-knopf:hover { background: var(--fuellung); color: var(--text); }
.eingabe-feld .foto-knopf svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eingabe-feld .foto-knopf.aktiv { background: #FF3B30; color: #fff; animation: zuhoeren 1.4s infinite; }
.eingabe-feld .senden-knopf { margin-left: 2px; }
.eingabe-feld .senden-knopf, .eingabe-feld .foto-knopf { align-self: flex-end; }
.eingabe-feld textarea { align-self: center; }
@media (min-width: 900px) { .eingabe-feld { max-width: 760px; } }
/* Sprachnachricht: leeres Feld zeigt das Mikrofon statt „Senden“; während der Aufnahme eine Zeile mit Zeit und Text */
.sprachnachricht-knopf { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.sprachnachricht-knopf svg { fill: none; }
.eingabe-feld.mit-sprachnachricht.leer .senden-knopf:not(.sprachnachricht-knopf) { display: none; }
.eingabe-feld:not(.leer) .sprachnachricht-knopf { display: none; }
.eingabe-feld.nimmt-auf > :not(.aufnahme):not(.sprachnachricht-knopf) { display: none !important; }
.eingabe-feld.nimmt-auf .sprachnachricht-knopf { background: #FF3B30; transform: scale(1.12); animation: zuhoeren 1.4s infinite; }
.eingabe-feld[data-aufnahme="tippen"] .sprachnachricht-knopf, .eingabe-feld[data-aufnahme="abschreiben"] .sprachnachricht-knopf { display: none; }
.aufnahme { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 36px; padding: 0 6px; transform: translateX(var(--wisch, 0)); }
.aufnahme[hidden] { display: none; }
.aufnahme-punkt { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #FF3B30; animation: aufnahme-blinken 1s infinite alternate; }
@keyframes aufnahme-blinken { to { opacity: .25; } }
.aufnahme-zeit { flex: none; font-variant-numeric: tabular-nums; font-weight: 600; }
.aufnahme-text { order: -1; flex-basis: 100%; padding-top: 4px; max-height: 4.2em; overflow: hidden; line-height: 1.4; }
.aufnahme-text:empty { display: none; }
.aufnahme-hinweis { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--leise); }
.aufnahme-weg, .aufnahme-senden { flex: none; min-height: 34px; padding: 4px 12px; border-radius: 17px; }
.aufnahme-weg[hidden], .aufnahme-senden[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .aufnahme-punkt, .eingabe-feld.nimmt-auf .sprachnachricht-knopf { animation: none; } }
/* Listen in Antworten: keine Blasen-Regeln vererben */
.verlauf .blase-text li { max-width: none; padding: 0 0 0 .15em; border-radius: 0; white-space: normal; scroll-margin: 0; }
.blase-text ul { list-style: disc; }
.blase-text ul ul { list-style: circle; }
@media (max-width: 899px) { .gespraech-kopf { position: static; margin: 0 0 6px; padding: 0; } }
/* Karten nie breiter als der Bildschirm (Felder, Leinwand, Auswahl mit langen Namen) */
.karte { grid-template-columns: minmax(0, 1fr); }
.karte > *, fieldset { min-width: 0; }
.karte select { max-width: 100%; }
input[type="checkbox"], input[type="radio"] { width: auto; flex: none; padding: 0; accent-color: var(--akzent); }
.punkte label > span { min-width: 0; overflow-wrap: anywhere; }

/* =====================================================================================================================
   20.11.2026 (2): Startseite, Gruppen in der Seitenleiste, Archiv, Einstellungen, Hilfe.
   Vorbild: ruhige Systemoberflächen. Große Überschrift, viel Luft, eine Hauptaktion, Druck-Rückmeldung auf Knöpfen.
   ===================================================================================================================== */
/* Hell/dunkel auf diesem Gerät (Einstellungen): überschreibt die Vorgabe des Systems */
:root[data-theme="light"] {
  color-scheme: light;
  --hinter: #F2F2F7; --flaeche: #FFFFFF; --flaeche-2: #F2F2F7; --fuellung: rgba(118, 118, 128, .12);
  --text: #1C1C1E; --leise: #6E6E73; --linie: rgba(60, 60, 67, .14); --glas: rgba(255, 255, 255, .72);
  --gelb: #8A5A00; --gelb-hinter: #FFF4D6; --gruen-hinter: #E6F4EC; --rot: #A3262A;
  --schatten: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .05); --schatten-hoch: 0 8px 30px rgba(0, 0, 0, .10);
  --akzent-zart: color-mix(in srgb, var(--akzent) 12%, transparent);
  --akzent-schrift: var(--akzent); --haupt-schrift: var(--haupt);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --hinter: #000000; --flaeche: #1C1C1E; --flaeche-2: #2C2C2E; --fuellung: rgba(118, 118, 128, .24);
  --text: #F5F5F7; --leise: #98989F; --linie: rgba(84, 84, 88, .55); --glas: rgba(28, 28, 30, .72);
  --gelb: #F2C14E; --gelb-hinter: #3A3016; --gruen-hinter: #18322A; --rot: #F2797D;
  --schatten: none; --schatten-hoch: 0 8px 30px rgba(0, 0, 0, .5);
  --akzent-zart: color-mix(in srgb, var(--akzent) 26%, transparent);
  --akzent-schrift: color-mix(in srgb, var(--akzent) 58%, #fff); --haupt-schrift: color-mix(in srgb, var(--haupt) 58%, #fff);
}
:root[data-schrift="klein"] { zoom: .92; }
:root[data-schrift="gross"] { zoom: 1.14; }

/* Druck-Rückmeldung: Knöpfe geben beim Tippen leicht nach (nur Form und Deckkraft werden bewegt) */
button, .idee, .start-zahl { transition: transform .1s ease-out, background-color .15s ease-out, opacity .15s ease-out; }
button:active:not(:disabled) { transform: scale(.97); }

/* Gruppen in der Seitenleiste (Laptop); am Handy unsichtbar, dort gruppiert das Blatt „Mehr“ */
.reiter-gruppe { display: none; }
@media (min-width: 900px) {
  .reiter-gruppe:not([hidden]) {
    display: block; margin: 14px 12px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--leise);
  }
  .reiter-gruppe[data-fuer="Mehr"] { margin-top: auto; padding-top: 14px; }
}
@media (max-width: 899px) {
  .mehr-gruppe { grid-column: 1 / -1; margin: 6px 4px 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); }
  .mehr-gruppe:first-child { margin-top: 0; }
}

/* ---------- Startseite ---------- */
.start.seite { max-width: 760px; padding-top: 40px; }
.start-kopf { margin-bottom: 22px; }
.start-datum { margin: 0 0 2px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--leise); }
.start-gruss { margin: 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -.025em; font-weight: 700; }
.start-frage {
  display: grid; gap: 10px; padding: 16px 16px 12px; border-radius: 22px; background: var(--flaeche);
  box-shadow: var(--schatten-hoch); border: 1px solid var(--linie);
}
.start-frage textarea { border: 0; padding: 4px 2px; resize: none; font-size: 18px; line-height: 1.4; background: transparent; min-height: 3.2em; }
.start-frage textarea:focus-visible { outline: none; }
.start-frage:focus-within { border-color: color-mix(in srgb, var(--akzent) 45%, var(--linie)); }
.start-knoepfe { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.start-weg {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--fuellung); color: var(--text); font-size: 14.5px; font-weight: 600;
}
.start-weg:hover { background: var(--akzent-zart); color: var(--akzent-schrift); }
.start-weg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.start-knoepfe .senden-knopf {
  margin-left: auto; width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center;
}
.start-knoepfe .senden-knopf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.start-erklaerung { margin: 10px 4px 0; font-size: 13.5px; color: var(--leise); }
.start-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 26px 0 8px; }
.start-zahlen:empty { display: none; }
.start-zahl {
  display: grid; gap: 2px; text-align: left; padding: 14px 16px; min-height: 84px; border: 0; border-radius: 18px;
  background: var(--flaeche); box-shadow: var(--schatten); color: var(--text);
}
.start-zahl:hover { box-shadow: var(--schatten-hoch); }
.start-zahl-wert { font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.start-zahl-titel { font-size: 14px; color: var(--leise); }
.start-zahl.warn .start-zahl-wert { color: var(--gelb); }
@media (max-width: 599px) {
  .start-zahlen { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
  .start-zahl { padding: 12px; min-height: 80px; border-radius: 16px; }
  .start-zahl-wert { font-size: 26px; }
  .start-zahl-titel { font-size: 13px; hyphens: auto; }
}
.start-block { margin-top: 26px; }
.start-block h3 { margin: 0 0 10px 4px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--leise); }
.start-liste { list-style: none; margin: 0; padding: 4px 16px; border-radius: 18px; background: var(--flaeche); box-shadow: var(--schatten); }
.start-liste li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--linie); }
.start-liste li:first-child { border-top: 0; }
.start-ideen { display: flex; flex-wrap: wrap; gap: 8px; }
.idee {
  min-height: 38px; padding: 0 15px; border: 1px solid var(--linie); border-radius: 999px; background: var(--flaeche);
  color: var(--text); font-size: 14.5px;
}
.idee:hover { border-color: var(--akzent); color: var(--akzent-schrift); }
.start-ki { margin: 26px 4px 8px; font-size: 12.5px; }
@media (max-width: 899px) {
  .start.seite { padding-top: 22px; }
  .start-frage { border-radius: 20px; }
}

/* ---------- Archiv ---------- */
#archiv-suche, #einst-suche { margin: 14px 0; border-radius: 12px; background: var(--fuellung); border: 0; }
.archiv-gruppen { display: grid; gap: 14px; }
.archiv-gruppen h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 16px; }
.archiv-gruppen li.weg strong { color: var(--leise); }

/* ---------- Einstellungen ---------- */
.einst-block { margin-top: 24px; }
.einst-block h3 { margin: 0 0 8px 4px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--leise); }
.einst-block > .hinweis { margin: 0 4px 10px; }
.einst-liste { border-radius: 16px; background: var(--flaeche); box-shadow: var(--schatten); padding: 2px 16px; }
.einst-zeile { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid var(--linie); }
.einst-zeile:first-child { border-top: 0; }
.einst-text { display: grid; gap: 2px; min-width: 0; }
.einst-text strong { font-weight: 600; overflow-wrap: anywhere; }
.einst-text .hinweis, .einst-text .klein { font-size: 13px; }
.segment { flex: none; display: inline-flex; flex-wrap: wrap; max-width: 100%; padding: 2px; border-radius: 10px; background: var(--fuellung); }
.segment button {
  min-height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text);
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
}
.segment button[aria-pressed="true"] { background: var(--flaeche); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); font-weight: 600; }
.segment button.farbe-gruen[aria-pressed="true"] { background: #34C759; color: #fff; }
.segment button.farbe-gelb[aria-pressed="true"] { background: #FFCC00; color: #1C1C1E; }
.segment button.farbe-aus[aria-pressed="true"] { background: var(--leise); color: var(--flaeche); }
.punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: baseline; background: var(--leise); }
.punkt.gruen { background: #34C759; }
.punkt.gelb { background: #FFCC00; }
@media (max-width: 599px) {
  .einst-zeile { flex-direction: column; align-items: stretch; }
  .segment { align-self: flex-start; }
}
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 6;
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 10px 10px 10px 16px; border-radius: 14px;
  background: rgba(28, 28, 30, .92); color: #fff; box-shadow: var(--schatten-hoch); font-size: 14.5px;
}
.toast button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; }
@media (max-width: 899px) { .toast { bottom: calc(var(--nav-h, 64px) + 14px + env(safe-area-inset-bottom)); } }

/* ---------- Hilfe ---------- */
.hilfe { display: grid; gap: 10px; }
.hilfe-block { border-radius: 16px; background: var(--flaeche); box-shadow: var(--schatten); padding: 4px 18px; }
.hilfe-block summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 600; font-size: 16px; list-style: none; }
.hilfe-block summary::-webkit-details-marker { display: none; }
.hilfe-block summary::after { content: "›"; margin-left: auto; font-size: 22px; color: var(--leise); transition: transform .2s var(--weich); }
.hilfe-block[open] summary::after { transform: rotate(90deg); }
.hilfe-block p, .hilfe-block ul { margin: 0 0 12px; }
.hilfe-block .tabelle { margin-bottom: 12px; }
.hilfe-handbuch .knoepfe { margin: 0 0 12px; }
.hilfe-handbuch a.knopf { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--akzent); color: #fff; font-weight: 600; text-decoration: none; }
.hilfe-hb-verzeichnis { margin: 0 0 14px; padding-left: 0; list-style: none; }
.hilfe-hb-verzeichnis li { padding: 6px 0; border-top: 1px solid var(--linie); }
.hilfe-hb-kapitel { font-weight: 600; text-decoration: none; color: var(--text); }
.hilfe-hb-verzeichnis .klein { color: var(--leise); }
a.hilfe-hb { text-decoration: none; }

/* Barrierefreiheit: weniger Bewegung, weniger Durchsicht, mehr Kontrast */
@media (prefers-reduced-motion: reduce) {
  button, .idee, .start-zahl, .hilfe-block summary::after { transition: none; }
  button:active:not(:disabled) { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .reiter { background: var(--flaeche); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .toast { background: #1C1C1E; }
}
@media (prefers-contrast: more) {
  :root { --linie: rgba(60, 60, 67, .45); --leise: #3A3A3C; }
  .segment button[aria-pressed="true"] { outline: 2px solid var(--text); }
}

/* Gespräche (5a.1), Projekte (5a.3), Gedächtnis (5a.2) */
.gespraech-titel { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; overflow: hidden; }
.gespraech-titel #gespraech-titel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.projekt-wahl select { min-height: 40px; max-width: 220px; }
.seitenblatt { position: fixed; inset: 0; z-index: 60; background: rgba(16, 24, 40, .35); display: flex; justify-content: flex-end; }
.seitenblatt[hidden] { display: none; }
.seitenblatt-innen { width: min(420px, 100%); height: 100%; overflow: auto; background: var(--hinter); border-left: 1px solid var(--linie); padding: 16px; display: grid; align-content: start; gap: 10px; box-shadow: var(--schatten); }
.seitenblatt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.seitenblatt-kopf h2 { margin: 0; font-size: 20px; }
.gespraeche-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gespraeche-liste li { display: grid; grid-template-columns: 1fr; gap: 2px; align-items: center; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 8px 10px; }
.gespraeche-liste li[aria-current="true"] { border-color: var(--akzent); box-shadow: inset 3px 0 0 var(--akzent); }
.gespraeche-liste .oeffnen { text-align: left; background: none; border: 0; padding: 4px 0; color: inherit; font: inherit; min-height: 40px; display: grid; gap: 2px; cursor: pointer; min-width: 0; }
.gespraeche-liste .oeffnen strong { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.gespraeche-liste .aktionen { display: flex; gap: 4px; justify-content: flex-end; }
.gespraeche-liste .aktionen button { min-height: 32px; padding: 0 10px; font-size: 13px; }
.gespraeche-liste input { width: 100%; }
.projekte-liste { display: grid; gap: 10px; margin: 12px 0; }
.projekt-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; }
.projekt-karte h3 { margin: 0; font-size: 17px; }
.projekt-karte .anweisungen { white-space: pre-wrap; color: var(--leise); margin: 0; max-height: 7.5em; overflow: hidden; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 8px; }
.projekt-form label { display: grid; gap: 4px; }
.projekt-werkzeuge { border: 1px solid var(--linie); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.zeile-wahl { display: flex !important; align-items: center; gap: 8px; }
.werkzeug-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; }
.werkzeug-wahl label { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.ged-gruppe { border-top: 1px solid var(--linie); padding: 10px 0; display: grid; gap: 8px; }
.ged-gruppe:first-child { border-top: 0; }
.ged-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ged-kopf h4 { margin: 0; font-size: 16px; }
.ged-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ged-liste li { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; }
.ged-liste textarea { width: 100%; }
.ged-vorschau { white-space: pre-wrap; font-family: inherit; margin: 4px 0; padding: 8px; border-left: 3px solid var(--linie); }
.ged-neu { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: end; }
@media (max-width: 640px) { .ged-neu { grid-template-columns: 1fr; } .projekt-wahl select { max-width: 150px; } }
.gespraech-kopf { flex-wrap: wrap; }

/* =====================================================================================================================
   20.11.2026 (3): Unterkategorien, Fuß der Seitenleiste, Chat-Kopf am Handy, Übergänge, leere Zustände.
   ===================================================================================================================== */
/* Fuß der Seitenleiste (Laptop): eigene Fläche, damit nichts darunter durchscheint; Adresse einzeilig */
@media (min-width: 900px) {
  body.drin .kopf::after {
    content: ""; position: fixed; left: 0; bottom: 0; width: 232px; height: 104px; z-index: 0;
    background: color-mix(in srgb, var(--flaeche-2) 70%, var(--flaeche)); border-top: 1px solid var(--linie); border-right: 1px solid var(--linie);
  }
  body.drin .kopf .wer {
    z-index: 1; bottom: 62px; width: 200px; font-size: 12.5px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal;
  }
  body.drin .kopf #abmelden { z-index: 1; }
  body.drin .kopf { background: color-mix(in srgb, var(--flaeche-2) 70%, var(--flaeche)); height: 64px; border-right: 1px solid var(--linie); }
  body.drin .reiter { padding-bottom: 116px; scroll-padding: 76px 0 116px; }
  .reiter button { min-height: 36px; }
  .reiter-gruppe:not([hidden]) { margin-top: 12px; }
}

/* Unterkategorien: am Laptop unter dem offenen Bereich in der Seitenleiste, am Handy als Leiste oben auf der Seite */
.unterpunkte { display: none; }
@media (min-width: 900px) {
  .reiter .unterpunkte { display: grid; gap: 1px; margin: 2px 0 6px 31px; padding-left: 10px; border-left: 1px solid var(--linie); }
  .reiter .unterpunkt {
    min-height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--leise);
    font-size: 13.5px; font-weight: 500; line-height: 1.3; text-align: left; justify-content: flex-start; padding-top: 5px; padding-bottom: 5px; white-space: normal; max-width: 100%;
  }
  .reiter .unterpunkt:hover { background: var(--fuellung); color: var(--text); }
  .reiter .unterpunkt[aria-current="true"] { color: var(--akzent-schrift); font-weight: 600; }
  .reiter button[data-unterpunkte]::after {
    content: "›"; margin-left: auto; padding-left: 6px; color: var(--leise); font-size: 17px; line-height: 1; transition: transform .2s var(--weich);
  }
  .reiter button[data-unterpunkte][aria-current="page"]::after { transform: rotate(90deg); }
  .seite h2, .seite h3 { scroll-margin-top: 24px; }
}
@media (max-width: 899px) {
  .seite .unterpunkte-leiste {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 2;
    margin: 0 -16px 12px; padding: 8px 16px; background: color-mix(in srgb, var(--hinter) 88%, transparent);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    /* Safari (WebKit) machte die Seite so breit wie alle Knöpfe zusammen; so rollt nur die Leiste. */
    min-width: 0; max-width: 100vw; contain: inline-size;
  }
  /* WebKit rechnete die Breite der rollenden Abschnitts-Leiste der Seite zu (Seite seitlich verschiebbar). clip schneidet
     nur seitlich ab, ohne Rollbereich; „sticky“ der Leiste bleibt dabei erhalten. */
  .seite { min-width: 0; overflow-x: clip; }
  .seite .unterpunkte-leiste::-webkit-scrollbar { display: none; }
  .unterpunkte-leiste .unterpunkt {
    flex: none; min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--fuellung); color: var(--text);
    font-size: 14px; font-weight: 500; white-space: nowrap;
  }
  .unterpunkte-leiste .unterpunkt[aria-current="true"] { background: var(--akzent); color: #fff; }
  .seite h2, .seite h3 { scroll-margin-top: 118px; }
}

/* Chat-Kopf am Handy: eine Zeile, runde Zeichen-Knöpfe, Titel dazwischen */
@media (max-width: 899px) {
  .gespraech-kopf { flex-wrap: nowrap; gap: 6px; }
  .gespraech-kopf > button { width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; flex: none; }
  .gespraech-kopf > button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .gespraech-kopf svg { width: 20px; height: 20px; }
  #gespraeche-knopf { background: var(--fuellung); }
  #neues-gespraech { background: var(--akzent-zart); margin-left: 0; order: 9; }
  .gespraech-titel { order: 5; flex: 1 1 0; font-size: 15px; }
  .projekt-wahl { order: 6; }
  .projekt-wahl select { max-width: 120px; min-height: 40px; font-size: 14px; }
}

/* Sanfter Seitenwechsel: nur Deckkraft (Bewegung würde fest stehende Leisten verschieben) */
@keyframes seite-rein { from { opacity: 0; } to { opacity: 1; } }
#innen .seite:not([hidden]) { animation: seite-rein .22s var(--weich); }

/* Leere Zustände: ruhiges Zeichen über dem Text */
p.leer { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 32px 8px; font-size: 15px; }
p.leer::before {
  content: ""; width: 44px; height: 44px; border-radius: 14px; background-color: var(--fuellung);
  background-image: radial-gradient(circle at 50% 50%, var(--leise) 0 2.5px, transparent 3px), radial-gradient(circle at 30% 50%, var(--leise) 0 2.5px, transparent 3px), radial-gradient(circle at 70% 50%, var(--leise) 0 2.5px, transparent 3px);
  opacity: .8;
}

/* Startseite: Hinweis zu Diktieren/Plaudern nur beim ersten Mal, „Als Nächstes“ anklickbar */
.start-erklaerung { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--akzent-zart); color: var(--text); }
.start-erklaerung .start-erklaerung-text { flex: 1; }
.start-erklaerung button { flex: none; min-height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--flaeche); color: var(--akzent-schrift); font-size: 13.5px; font-weight: 600; }
.start-liste li { padding: 0; }
.start-eintrag {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 0; border: 0; border-radius: 0;
  background: transparent; color: inherit; font: inherit; text-align: left;
}
.start-eintrag:hover .eintrag-text strong { color: var(--akzent-schrift); }
.start-eintrag:active:not(:disabled) { transform: none; opacity: .7; }

@media (prefers-reduced-motion: reduce) {
  #innen .seite:not([hidden]) { animation: none; }
  .reiter button[data-unterpunkte]::after { transition: none; }
}
/* Dunkel: Zeichen in der Seitenleiste heller, sonst verschwindet eine dunkle Markenfarbe auf Schwarz */
@media (min-width: 900px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .reiter button svg { color: color-mix(in srgb, var(--akzent) 55%, #fff); } }
@media (min-width: 900px) { :root[data-theme="dark"] .reiter button svg { color: color-mix(in srgb, var(--akzent) 55%, #fff); } }

/* Seitenleiste (20.11.2026 abends): kein Eintrag darf schrumpfen. Sonst schiebt Safari bei wenig Höhe
   die Unterpunkte übereinander, und die Leiste lässt sich nicht mehr rollen. */
@media (min-width: 900px) {
  .reiter > * { flex-shrink: 0; }
  .reiter { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}

/* Einstellungen in klar getrennten Teilen (20.11.2026 abends): je Teil ein Kopf mit Zeichen, Titel und einem Satz */
.einst-teil { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--linie); }
.einst-teil:first-of-type { margin-top: 20px; padding-top: 0; border-top: 0; }
.einst-kopf { display: flex; align-items: center; gap: 12px; margin: 0 4px 12px; }
.einst-kopf h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--text); }
.einst-kopf .hinweis { margin: 2px 0 0; font-size: 14px; }
.einst-zeichen { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; }
.einst-zeichen svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.z-allgemein { background: #6B7280; }
.z-ansicht { background: #4C7DBF; }
.z-gedaechtnis { background: #8A5CC2; }
.z-gespraeche { background: #2F9E8F; }
.z-ampel { background: linear-gradient(180deg, #E0A100, #2E9B5F); }
.einst-erklaerung { margin: 0 4px 12px; }
.einst-absatz { margin: 12px 0; }
.einst-unter { margin: 26px 4px 6px; font-size: 16px; font-weight: 700; }
#einst-suche { margin-bottom: 10px; }
.regel-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; margin-top: 12px; }
.regel-form label { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; font-weight: 600; font-size: 14px; min-width: 0; }
/* Safari macht eine Auswahlliste so breit wie ihren längsten Eintrag; am Handy wurde die Seite dadurch breiter als der Bildschirm. */
.regel-form select, .regel-form input:not([type=radio]) { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.regel-form .zeile-wahl { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.regel-farbe { display: flex; flex-wrap: wrap; gap: 6px 18px; }
#einst-regeln:not([hidden]) { margin-bottom: 4px; }

/* Bereiche, die in einem späteren Schritt kommen: grau, mit Etikett „später“ */
.reiter button.spaeter { color: var(--leise); opacity: .62; }
.reiter button.spaeter svg { opacity: .7; }
.reiter button.spaeter[aria-current="page"] { opacity: .9; }
.spaeter-etikett { margin-left: auto; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; background: var(--fuellung); color: var(--leise); }
@media (max-width: 899px) { .reiter .spaeter-etikett { display: none; } #mehr-blatt .spaeter-etikett { margin-left: 8px; } }
.spaeter-karte { border-radius: 16px; padding: 16px 18px; background: repeating-linear-gradient(135deg, var(--flaeche), var(--flaeche) 10px, var(--hinter) 10px, var(--hinter) 20px); border: 1px dashed var(--linie); color: var(--leise); }
.spaeter-karte p { margin: 6px 0; }
.spaeter-karte.gross { padding: 22px; font-size: 16px; max-width: 640px; }
.spaeter-marke { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.spaeter-schritt { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--fuellung); color: var(--leise); }
.einst-teil.ist-spaeter .einst-kopf { opacity: .65; }
.einst-teil.ist-spaeter .einst-zeichen { filter: grayscale(1); }
#einst-gedaechtnis { background: var(--flaeche); border-radius: 16px; box-shadow: var(--schatten); padding: 6px 16px 16px; }
#einst-gedaechtnis:empty { display: none; }

/* =====================================================================================================================
   21.11.2026: Fuß der Seitenleiste in einer Zeile (Adresse links, „Abmelden“ rechts), damit bei 800 px Fensterhöhe
   alle Bereiche bis „Hilfe“ ohne Rollen sichtbar sind.
   ===================================================================================================================== */
@media (min-width: 900px) {
  body.drin .kopf::after { height: 56px; }
  body.drin .kopf .wer { bottom: 19px; width: 118px; }
  body.drin .kopf #abmelden { left: 142px; bottom: 11px; width: 78px; min-height: 34px; padding: 0 8px; font-size: 13px; }
  body.drin .reiter { padding-bottom: 66px; scroll-padding: 76px 0 66px; }
  .reiter button { min-height: 34px; }
}
/* Datei-Auswahl im Stil der App statt des Knopfs des Browsers */
input[type="file"] { font-size: 14px; color: var(--leise); }
input[type="file"]::file-selector-button {
  margin-right: 12px; min-height: 34px; padding: 0 14px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--fuellung); color: var(--text); font: inherit; font-weight: 600;
}
/* eigene Regel: ein unbekannter Selektor in einer Liste würde die ganze Regel verwerfen (ältere Safari) */
input[type="file"]::-webkit-file-upload-button {
  margin-right: 12px; min-height: 34px; padding: 0 14px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--fuellung); color: var(--text); font: inherit; font-weight: 600;
}
input[type="file"]::file-selector-button:hover { background: var(--akzent-zart); }
input[type="file"] { background: transparent; border: 0; padding: 4px 0; min-height: 0; box-shadow: none; width: 100%; }
/* Umschalter mit mehreren Wahlen am Handy: bleibt eine Zeile mit gleich breiten Teilen statt umzubrechen */
@media (max-width: 480px) {
  .filter[role="group"] { display: flex; width: 100%; }
  .filter[role="group"] .wahl { flex: 1 1 0; min-width: 0; padding: 4px 8px; font-size: 13.5px; line-height: 1.2; white-space: normal; text-align: center; }
}

/* Ampel-Liste: Erklärsatz unter dem Titel (werkzeuge-texte.yaml oder `text:` des Kunden) */
.einst-text .einst-erklaerung { margin: 0; padding: 0; font-size: 14px; line-height: 1.45; color: var(--leise); }

/* „Woher?“ unter einer Antwort (HERKUNFT_AKTIV): leise, aufklappbar */
.herkunft { margin: 8px 0 0; font-size: 13px; color: var(--leise); }
.herkunft summary { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; cursor: pointer; list-style: none; border-radius: 6px; }
.herkunft summary::-webkit-details-marker { display: none; }
.herkunft summary::before { content: '›'; display: inline-block; transition: transform .2s ease; }
.herkunft[open] summary::before { transform: rotate(90deg); }
.herkunft summary:focus-visible { outline: 2px solid var(--akzent, currentColor); outline-offset: 2px; }
.herkunft ul { margin: 2px 0 0; padding-left: 18px; }
.herkunft li { margin: 2px 0; }
@media (prefers-reduced-motion: reduce) { .herkunft summary::before { transition: none; } }
.verlauf .herkunft ul { list-style: disc; }
.verlauf .herkunft li { max-width: none; padding: 0; border-radius: 0; white-space: normal; animation: none; }

/* ---------- Wissensnetz (5a.7) ---------- */
:root {
  --n-thema: #2E7D5B; --n-wissen: #6BAF92; --n-bereich: #7A4FB5; --n-gedaechtnis: #A98BD6; --n-projekt: #C26A12;
  --n-firma: #1F6FB2; --n-ordner: #6B7280; --n-unterlage: #9CA3AF; --n-luecke: #B42318; --n-offen: #C9CDD4;
  --n-kante: rgba(91, 98, 112, .28); --n-kante-hell: var(--akzent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --n-thema: #5CC59A; --n-wissen: #3E8C6C; --n-bereich: #B79AF0; --n-gedaechtnis: #7E62AE; --n-projekt: #F0A04B;
    --n-firma: #5EA8E8; --n-ordner: #A3A9B5; --n-unterlage: #6B7280; --n-luecke: #F2797D; --n-offen: #4B5160;
    --n-kante: rgba(163, 169, 181, .22);
  }
}
:root[data-theme="dark"] {
  --n-thema: #5CC59A; --n-wissen: #3E8C6C; --n-bereich: #B79AF0; --n-gedaechtnis: #7E62AE; --n-projekt: #F0A04B;
  --n-firma: #5EA8E8; --n-ordner: #A3A9B5; --n-unterlage: #6B7280; --n-luecke: #F2797D; --n-offen: #4B5160;
  --n-kante: rgba(163, 169, 181, .22);
}
.netz-kopf { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.netz-kopf input { flex: 1 1 220px; min-width: 0; }
.netz-arten { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.netz-art { min-height: 36px; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.netz-art::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--farbe, var(--leise)); }
.netz-art[aria-pressed="false"] { opacity: .5; }
.netz-flaeche { position: relative; }
.netz-buehne { position: relative; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; overflow: hidden; }
#netz-bild { display: block; width: 100%; height: min(68dvh, 620px); min-height: 340px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
#netz-bild:active { cursor: grabbing; }
.netz-kante { stroke: var(--n-kante); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .2s, opacity .2s; }
.netz-kante.k-verweist { stroke-dasharray: 4 3; }
.netz-knoten { cursor: pointer; transition: opacity .2s; }
.netz-knoten circle { fill: var(--farbe, var(--leise)); stroke: var(--flaeche); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: r .2s; }
.netz-knoten:focus-visible { outline: none; }
.netz-knoten:focus-visible circle, .netz-knoten.gewaehlt circle { stroke: var(--text); stroke-width: 2.5; }
.netz-name { font: 11px system-ui, -apple-system, sans-serif; fill: var(--text); paint-order: stroke; stroke: var(--flaeche); stroke-width: 3px; stroke-linejoin: round; opacity: 0; pointer-events: none; transition: opacity .2s; }
.netz-knoten.mit-name .netz-name, .netz-knoten:hover .netz-name, .netz-knoten:focus-visible .netz-name, .netz-knoten.gewaehlt .netz-name, .netz-knoten.nachbar .netz-name { opacity: 1; }
.netz-knoten.treffer circle { stroke: var(--akzent); stroke-width: 3; }
#netz-bild.hat-wahl .netz-knoten:not(.gewaehlt):not(.nachbar) { opacity: .18; }
#netz-bild.hat-wahl .netz-kante:not(.hell) { opacity: .15; }
.netz-kante.hell { stroke: var(--n-kante-hell); stroke-width: 1.6; opacity: 1; }
.a-thema { --farbe: var(--n-thema); } .a-wissen { --farbe: var(--n-wissen); } .a-bereich { --farbe: var(--n-bereich); }
.a-gedaechtnis { --farbe: var(--n-gedaechtnis); } .a-projekt { --farbe: var(--n-projekt); } .a-firma { --farbe: var(--n-firma); }
.a-ordner { --farbe: var(--n-ordner); } .a-unterlage { --farbe: var(--n-unterlage); } .a-luecke { --farbe: var(--n-luecke); } .a-offen { --farbe: var(--n-offen); }
.netz-zoom { position: absolute; left: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.netz-zoom button { width: 40px; height: 40px; min-height: 40px; padding: 0; font-size: 20px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; box-shadow: var(--schatten); }
.netz-details { position: absolute; top: 10px; right: 10px; width: min(340px, calc(100% - 20px)); max-height: calc(100% - 20px); overflow: auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; box-shadow: var(--schatten); padding: 12px 14px; overflow-wrap: anywhere; animation: netz-ein .18s ease-out; }
.netz-details h4 { margin: 4px 0 6px; } .netz-details h5 { margin: 12px 0 4px; font-size: 14px; color: var(--leise); }
.netz-details p { margin: 0 0 8px; white-space: pre-wrap; }
.netz-art-name { display: inline-flex; align-items: center; gap: 6px; } .netz-art-name::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--farbe); }
.netz-nachbarn { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.netz-nachbarn button.link { background: none; border: 0; padding: 4px 0; min-height: 32px; color: var(--akzent-schrift, var(--akzent)); text-align: left; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
@keyframes netz-ein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .netz-details { animation: none; } .netz-knoten, .netz-kante, .netz-name { transition: none; } }
@media (max-width: 640px) {
  .netz-details { position: static; width: auto; max-height: none; border-radius: 0; border-width: 1px 0 0; box-shadow: none; }
}
.karte-angebot { margin: 6px 0 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* =====================================================================================================================
   24.11.2026: Design-Prüfung vor dem Workshop (Chromium + WebKit, Handy + Laptop, hell + dunkel).
   Nur Feinschliff: Abstände, Farben der Zahlen, leere Zustände, Kontrast, Formulare. Keine neuen Funktionen.
   ===================================================================================================================== */
/* Abstände: Hinweistext, Tabelle, Karte und Liste stießen ohne Luft aneinander (0 px) */
:is(p.hinweis, .tabelle-rahmen, .karte, ul.liste, input, form.eingabe-zeile):not(.karte > *):not(.unsichtbar) + :is(.tabelle-rahmen, .kacheln, .karte, ul.liste, form.eingabe-zeile, details):not(.karte > *) { margin-top: 12px; }
.tabelle-rahmen + p.hinweis:not(.karte > *), ul.liste + p.hinweis:not(.karte > *) { margin-top: 10px; }
p.hinweis:not(.karte > *) + :is(.filter[role="group"], button) { margin-top: 12px; }
details[open] > summary + :is(ul, ol, table, .tabelle-rahmen, .liste) { margin-top: 10px; }
ul.liste + section, ul.liste + [hidden] + section { margin-top: 28px; }
/* versteckte Geschwister (Ansicht einer Firma, leere Hinweise) dazwischen zählen nicht */
:is(.tabelle-rahmen, ul.liste) + [hidden] + p.hinweis:not(.karte > *), :is(.tabelle-rahmen, ul.liste) + [hidden] + [hidden] + p.hinweis:not(.karte > *) { margin-top: 10px; }
.ue-teil + .ue-teil { margin-top: 12px; }

/* Formulare: Beschriftung näher am eigenen Feld als am vorigen (vorher gleich weit, 10/10 px) */
.karte > label:not(.haken):not(.haupt):not(.knopf-label):not(.zeile-wahl):not(:first-child) { margin-top: 8px; }
.karte > label:not(.haken):not(.haupt):not(.knopf-label):not(.zeile-wahl) + :is(input, select, textarea) { margin-top: -4px; }
/* leere Meldezeile am Ende einer Karte: kein leerer Rand unter dem Knopf */
.karte > .meldung:empty:last-child { min-height: 0; margin-top: -10px; }

/* Zahlen: neutral statt Markenrot (Rot wirkte wie ein Fehler), nur Überfälliges in Gelb, Null leise */
.kachel-zahl, .start-zahl-wert { color: var(--text); }
.kachel.warn .kachel-zahl, .start-zahl.warn .start-zahl-wert { color: var(--gelb); }
.kachel.null .kachel-zahl, .start-zahl.null .start-zahl-wert { color: var(--leise); font-weight: 600; }

/* Heute: die kürzere Karte zieht sich nicht mehr auf die Höhe der längeren */
.abschnitte { align-items: start; }

/* Wiedervorlagen: eine ruhige Zeile (Text und Datum links, Marken und „Erledigt“ rechts) */
#liste-wiedervorlagen > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 14px; row-gap: 6px; }
#liste-wiedervorlagen > li > .zeile { display: grid; gap: 2px; justify-content: start; }
#liste-wiedervorlagen > li > .zeile .zeit { font-size: 14px; }
#liste-wiedervorlagen > li > .knoepfe { align-items: center; justify-content: flex-end; }
@media (max-width: 480px) {
  #liste-wiedervorlagen > li { grid-template-columns: minmax(0, 1fr); }
  #liste-wiedervorlagen > li > .knoepfe { justify-content: flex-start; }
}

/* Aufgaben: Fällig und Zuständig gleich hoch und auf einer Linie */
.aufgabe-felder input, .aufgabe-felder select { height: 44px; min-height: 44px; padding-top: 0; padding-bottom: 0; }
.aufgabe-felder button { height: 44px; }

/* Projekte: Gruppe „Tätigkeiten“ wie die übrigen Felder statt Rahmen des Browsers */
.projekt-werkzeuge { border: 0; margin: 8px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--fuellung); }
.projekt-werkzeuge legend { float: left; width: 100%; padding: 0; margin: 0 0 4px; font-weight: 600; font-size: 15px; }
.projekt-werkzeuge legend + * { clear: both; }

/* Leere Zustände: Ablage-Symbol statt drei Punkten (die wie „lädt noch“ aussahen) */
p.leer::before {
  background-color: var(--fuellung); opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44' fill='none' stroke='%238E8E93' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 24l3.2-9.2A2 2 0 0 1 17.1 13.5h9.8a2 2 0 0 1 1.9 1.3L32 24'/%3E%3Cpath d='M12 24v5.5a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V24h-5.5l-1.5 3h-6l-1.5-3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 44px 44px;
}

/* Kontrast (WCAG AA): weiße Schrift auf hellem Grün 2,2:1 → dunkleres Grün; Adresse unten links nicht mehr abgeblendet */
.segment button.farbe-gruen[aria-pressed="true"] { background: #1F7A36; }
.wer, .kopf .wer { opacity: 1; }
/* Handy: Leisten etwas dichter, damit die Beschriftung unten auch über farbigem Inhalt lesbar bleibt */
:root { --glas: rgba(255, 255, 255, .86); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --glas: rgba(28, 28, 30, .86); } }
:root[data-theme="light"] { --glas: rgba(255, 255, 255, .86); }
:root[data-theme="dark"] { --glas: rgba(28, 28, 30, .86); }

/* Startseite: Hinweis bündig mit Karten und Zahlen; am Handy passen Diktieren, Plaudern, Foto und Senden in eine Zeile */
.start-erklaerung { margin: 10px 0 0; }
@media (max-width: 480px) {
  .start-knoepfe { gap: 5px; flex-wrap: nowrap; }
  .start-weg { padding: 0 10px; gap: 4px; font-size: 13.5px; min-width: 0; }
  .start-knoepfe .senden-knopf { width: 38px; height: 38px; min-height: 38px; }
  .start-weg svg { width: 16px; height: 16px; }
  .start-zahl-titel { line-height: 1.25; }
}
/* schmale Handys: „Foto“ nur als Zeichen (Name bleibt für Bildschirmleser), sonst rutscht der Senden-Knopf über den Rand */
@media (max-width: 400px) {
  #start-foto { width: 38px; padding: 0; justify-content: center; flex: none; }
  #start-foto span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 359px) { .start-knoepfe { flex-wrap: wrap; } }

/* Kundenliste: nur ein roter Hauptknopf je Zeile („Suchen“); „Foto einordnen“ als getönter Knopf */
/* Akzentschrift auf getöntem Grund: im Hellen etwas dunkler, damit 4,5:1 erreicht wird (vorher 3,9 bzw. 4,4:1) */
:root { --akzent-auf-zart: color-mix(in srgb, var(--akzent) 80%, #000); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --akzent-auf-zart: var(--akzent-schrift); } }
:root[data-theme="dark"] { --akzent-auf-zart: var(--akzent-schrift); }
:root[data-theme="light"] { --akzent-auf-zart: color-mix(in srgb, var(--akzent) 80%, #000); }
#foto-ein-knopf.haupt { background: var(--akzent-zart); color: var(--akzent-auf-zart); }
.mehr-blatt-innen button[aria-current="page"] { color: var(--akzent-auf-zart); }
.projekt-werkzeuge .zeile-wahl { font-weight: 400; display: flex; align-items: center; gap: 8px; min-height: 32px; }
.projekt-form > h3:first-child { margin-top: 0; }

/* Chat am Handy: Das Eingabefeld trägt im leeren Zustand die Klasse „leer“ und erbte damit Rand und Farbe der
   leeren Hinweise (24 px / 8 px): Es saß 8 px nach rechts verschoben und stieß rechts fast an den Rand (Chromium + WebKit). */
.eingabe-feld.leer { margin: 0; color: var(--text); text-align: start; }
/* Knopf aus einer Beschriftung (z. B. „Foto einordnen“): Text mittig und gleich hoch wie andere Knöpfe; WebKit setzte ihn oben */
.knopf-label { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; line-height: 1.2; white-space: nowrap; }

/* Keine Verbindung: schmaler Hinweis oben, über allem, auch in der installierten App (Fenster ohne Browserleiste). */
.keine-verbindung {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 60;
  top: calc(8px + env(safe-area-inset-top)); width: max-content; max-width: calc(100vw - 24px);
  margin: 0; padding: 7px 14px; border-radius: 12px;
  background: var(--gelb-hinter); color: var(--gelb); border: 1px solid var(--gelb);
  font-size: 14px; font-weight: 600; text-align: center; box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}
/* Neue Fassung im Hintergrund geladen (Service Worker) */
.neue-fassung {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 59;
  bottom: calc(84px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 24px);
  margin: 0; padding: 6px 8px 6px 14px; border-radius: 12px;
  background: var(--flaeche, #fff); border: 1px solid var(--linie, #ccc);
  font-size: 14px; text-align: center; box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}
.neue-fassung button { margin-left: 6px; }
/* Meldung zu einem Knopf außerhalb des Chats: über der Leiste, bleibt bis „OK“ oder 12 s */
.app-meldung { z-index: 60; }
.app-meldung #app-meldung-text { line-height: 1.35; }
/* App installieren (Hilfe und Einstellungen) */
.installieren-geraete { margin: 0; padding-left: 1.2em; }
.installieren-geraete li { margin: 4px 0; }
.installieren-geraete li.dieses { font-weight: 600; }

/* Partnerseite verwalten (Teil 1c) */
.ps-oeffnen { margin-top: 6px; }
.ps-panel { margin-top: 10px; padding: 12px; border: 1px solid var(--linie); border-radius: 12px; display: grid; gap: 10px; min-width: 0; }
.ps-form { display: grid; gap: 8px; }
.ps-form label { display: grid; gap: 4px; font-size: 14px; }
.ps-form input[type=text], .ps-form select { width: 100%; box-sizing: border-box; }
.ps-form .ps-sichtbar { display: flex; align-items: center; gap: 8px; }
.ps-punkte { border: 0; padding: 0; margin: 0; min-width: 0; }
.ps-punkte legend { font-size: 14px; margin-bottom: 4px; }
.ps-punkte .fa-liste { padding: 0; margin: 0 0 6px; display: grid; gap: 6px; }
.ps-punkt { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ps-punkt input[type=text] { flex: 1 1 12em; min-width: 0; width: auto; }
.ps-punkt input[type=date] { flex: 0 1 11em; width: auto; min-width: 0; }
.ps-punkt button { flex: 0 0 auto; }
.ps-rahmen { width: 100%; min-height: 360px; border: 1px solid var(--linie); border-radius: 10px; background: #fff; }
.ps-freigabe-titel { margin: 0; font-weight: 600; }

/* Hilfe mit Suche (Teil 1a, 26.11.2026) */
.hilfe-suche { position: sticky; top: 0; z-index: 5; padding: 8px 0 10px; background: var(--hinter); }
.hilfe-suche input[type=search] { width: 100%; box-sizing: border-box; min-height: 48px; font-size: 17px; border-radius: var(--rund); }
.hilfe-treffer { display: grid; gap: 8px; margin-bottom: 12px; }
.hilfe-treffer:empty { display: none; }
.hilfe-themen { display: grid; gap: 12px; }
.hilfe-frage { border-top: 1px solid var(--linie); }
.hilfe-treffer .hilfe-frage { border: 1px solid var(--linie); border-radius: 12px; padding: 0 12px; background: var(--flaeche); }
.hilfe-frage summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 500; }
.hilfe-antwort { padding: 0 0 12px; }
.hilfe-antwort p { margin: 0 0 8px; line-height: 1.5; }
.hilfe-antwort .knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }

/* Knopf vom Chat: „öffnen“ (app_oeffnen) */
.aktion.oeffnen { background: var(--flaeche); border-color: var(--linie); }
.aktion.oeffnen button { min-height: 44px; }

/* Kundenordner (Teil 1a mit 1c) */
.kundenordner .ko-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.kundenordner .ko-kopf .fa-name { margin: 0; }
.kundenordner .ko-chat { margin-left: auto; }
.ko-reiter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 12px 0; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.ko-reiter::-webkit-scrollbar { display: none; }
.ko-tab { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linie); background: var(--flaeche); color: inherit; font: inherit; font-size: 15px; white-space: nowrap; }
.kundenordner .ko-reiter .ko-tab[aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--flaeche); font-weight: 600; }
.ko-flaeche { min-width: 0; }
.ko-kacheln .kachel { min-height: 76px; }
.ko-notiz { margin: 12px 0 0; padding: 10px 14px; border-left: 3px solid var(--akzent); background: var(--flaeche); border-radius: 0 10px 10px 0; }
.ko-notiz p { margin: 0 0 4px; }
.ko-leer { padding: 12px 0; }
.fa-offen.ueberfaellig { color: var(--rot); font-weight: 600; }
.link-knopf { padding: 0; border: 0; background: none; color: var(--haupt-schrift, var(--haupt)); font: inherit; font-weight: 600; text-align: left; cursor: pointer; min-height: 32px; }
.link-knopf:hover { text-decoration: underline; }

/* Partnerseiten-Übersicht (Teil 1c) */
.ps-ue-kopf { display: grid; gap: 10px; margin-bottom: 12px; }
.ps-ue-kopf input[type=search] { width: 100%; box-sizing: border-box; min-height: 44px; }
.ps-ue-filter { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; margin-bottom: 0; }
.ps-ue-filter .wahl { flex: 0 0 auto; white-space: nowrap; }
.ps-ue-sammel { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.ps-ue-sammel .klein { flex-basis: 100%; margin: 0; }
.ps-ue-datum { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.ps-ue-datum input { width: auto; }
.ps-ue-liste { display: grid; gap: 8px; padding: 0; list-style: none; }
.ps-ue-zeile { padding: 12px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); min-width: 0; }
.ps-ue-zeile .fa-zeile { display: flex; align-items: center; gap: 10px; }
.ps-ue-zeile input[type=checkbox] { width: 22px; height: 22px; flex: 0 0 auto; }
.ps-ue-name { display: grid; flex: 1 1 auto; min-width: 0; }
.ps-ue-name .klein { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-ue-zeile .knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ps-link-feld { flex: 1 1 16em; min-width: 0; }
/* Seiten je Anlass (1c.1) */
.ps-anlaesse { display: grid; gap: 10px; margin-bottom: 20px; }
.ps-anlaesse h3 { margin: 0; }
.as-zeile { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.as-zeile input[type=text] { flex: 1 1 12em; min-width: 0; width: auto; }
.as-zeile select { flex: 0 1 10em; width: auto; min-width: 0; }
.as-zeile .as-pflicht { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.as-fragen .fa-liste { list-style: none; }
.as-vorschlag input[type=file] { max-width: 100%; }
.as-code { font: 14px ui-monospace, Menlo, monospace; padding: 2px 6px; border: 1px solid var(--linie); border-radius: 4px; }
.as-zeilen { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; }
.as-zeilen > .as-zeile { padding-bottom: 8px; border-bottom: 1px solid var(--linie); }
.as-ordnen { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.as-ordnen button { min-width: 40px; }
.as-ansicht .as-zeile { margin-bottom: 6px; }
.as-ansicht input[type=checkbox] { width: 22px; height: 22px; flex: 0 0 auto; }

/* Postfächer (Einstellungen, Teil 1b) */
.pf-zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-zeile .einst-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.pf-rechts { display: flex; align-items: center; justify-content: flex-start; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }
.pf-rechts .status { flex: 0 0 auto; }
.pf-meldung:empty { display: none; }
.pf-neu { display: grid; gap: 8px; margin-top: 12px; }
.pf-neu ol { margin: 6px 0 0; padding-left: 1.2em; }

/* Empfänger per Regel (Rundmail) */
#emp-schnellwahl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.emp-regel { margin: 6px 0; font-weight: 600; }
.emp-regel:empty { display: none; }
.aufgaben-liste li.warn .aufgabe-details .klein { color: var(--leise); font-weight: 400; }
.aufgabe-details .meldung:empty { display: none; }

/* Entwürfe (1b): Kopf wie im Mailprogramm, Vorschau der Mail, Ändern, Senden */
.em-kopfzeile { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.em-liste { margin-bottom: 16px; }
.em-eintrag { display: grid; gap: 2px; width: 100%; text-align: left; background: none; border: 0; padding: 4px 0; color: inherit; font: inherit; cursor: pointer; }
.em-eintrag[aria-current] strong { color: var(--akzent-schrift); }
.em-mailkopf { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--linie); }
.em-mailkopf dt { color: var(--leise); }
.em-mailkopf dd { margin: 0; overflow-wrap: anywhere; }
.em-vorschau { width: 100%; min-height: 55vh; border: 1px solid var(--linie); border-radius: 10px; background: #fff; resize: vertical; }
.em-bearbeiten { display: grid; gap: 10px; }
/* Rechnungen versenden (2d.6) */
.rv-zeile { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rv-text { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; margin: 10px 0; }
.rv-check { list-style: none; padding: 0; margin: 10px 0; }
.rv-check .ok { color: var(--leise); }
.rv-empf { border: 1px solid var(--linie); border-radius: 10px; margin: 10px 0; display: grid; gap: 8px; }
.rv-unten { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; margin-top: 12px; }
.em-bearbeiten label { display: grid; gap: 4px; }
.em-bearbeiten textarea { width: 100%; font: inherit; }
.em-bestaetigen { border: 1px solid var(--gelb); background: var(--gelb-hinter); border-radius: 10px; padding: 12px; display: grid; gap: 8px; }
.em-pruefen { border: 1px solid var(--gelb); background: var(--gelb-hinter); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.em-pruefen ul { margin: 4px 0 6px 18px; padding: 0; }

/* Aufgaben: Filter je Person mit Zahl; viele Namen brechen in eine zweite Zeile um statt zu quetschen (auch am Handy) */
.filter.aufgaben-filter { flex-wrap: wrap; border-radius: 18px; max-width: 100%; }
.aufgaben-filter .wahl { white-space: nowrap; }
.aufgaben-filter .filter-zahl { margin-left: 2px; font-size: 12.5px; font-weight: 400; color: var(--leise); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .filter[role="group"].aufgaben-filter .wahl { flex: 1 1 auto; white-space: nowrap; padding: 4px 10px; }
}

/* Kundenliste bearbeiten (P3): Formular unter dem Eintrag, Knöpfe Bearbeiten / Ins Archiv, Filter nach Kategorie */
.kl-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.kundenordner .ko-kopf > .kl-knoepfe, .kundenordner .ko-kopf > .kl-bearbeiten { flex-basis: 100%; }
.kl-bearbeiten { display: grid; gap: 6px; margin-top: 10px; padding: 12px; border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche); }
.kl-bearbeiten label { font-size: 14px; color: var(--leise); margin-top: 4px; }
.kl-bearbeiten .knoepfe { margin-top: 6px; }
.kl-mehrfach { border: 0; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.kl-mehrfach legend { font-size: 14px; color: var(--leise); padding: 0; margin-bottom: 4px; }
.kl-mehrfach .kl-haken { color: inherit; font-size: 15px; margin: 0; }
.kl-archiv { display: inline-flex; align-items: center; gap: 8px; }
.ko-kategorie { align-self: center; }
.kunden-filter { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; }
.kunden-filter select { width: auto; min-width: 12rem; }

/* Eingang (Mail-Eingang 1b.3) */
.eg-abschnitt { margin: 18px 0 0; }
.eg-abschnitt > h3 { margin: 0 4px 4px; font-size: 17px; }
.eg-abschnitt > .hinweis { margin: 0 4px 8px; }
.eg-zeile { display: grid; gap: 8px; }
.eg-kopf { display: grid; gap: 2px; min-width: 0; }
.eg-kopf strong, .eg-kopf .hinweis { overflow-wrap: anywhere; }
.eg-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.eg-mehr > summary { cursor: pointer; margin: 0 4px 8px; color: var(--leise); }
.eg-anhang { display: grid; gap: 8px; padding: 10px 0 0; }
.eg-geld { border: 0; padding: 0; margin: 0; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.eg-geld legend { padding: 0; margin-right: 8px; float: left; }
/* Postausgang (TS 30.11.2026): Filter, Gruppen je Anlass, markierte Mails deutlich */
.pa-filterleiste { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 12px; }
.pa-filter[aria-pressed="true"] { background: var(--akzent); color: #fff; border-color: var(--akzent); }
.pa-abschnitt { margin: 18px 0; }
.rv-gruppe { border: 1px solid var(--linie); border-radius: 10px; margin: 10px 0; padding: 4px 12px; }
.rv-gruppe-kopf { cursor: pointer; padding: 8px 0; font-weight: 600; overflow-wrap: anywhere; }
.rv-markiert { border-left: 4px solid #F2CF66; padding: 6px 10px; margin: 6px 0; background: color-mix(in srgb, #F2CF66 18%, transparent); }
.rv-liste li.markiert, .rv-liste li.warn { border-left: 4px solid #F2CF66; padding-left: 8px; }
.rv-frage { border: 2px solid var(--akzent); border-radius: 10px; padding: 12px; margin: 10px 0; }
.rv-frage dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 10px; }
.rv-frage dd { margin: 0; overflow-wrap: anywhere; }

/* Einstellungen → Anmeldung und Sicherheit (Zugänge, Sicherheitskonzept A2/A3) */
.status.s-rot { background: var(--rot); border-color: var(--rot); color: #fff; }
.zg-titel { margin: 22px 0 6px; font-size: 1rem; }
.zg-zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.zg-zeile .einst-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
button.scharf { border-color: var(--rot); color: var(--rot); }
.zg-protokoll { margin-top: 14px; overflow-x: auto; }
.zg-tabelle { border-collapse: collapse; width: 100%; font-size: .9rem; }
.zg-tabelle th, .zg-tabelle td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.zg-tabelle th { color: var(--leise); font-weight: 600; }

/* Geplantes Update und „Neu: bitte prüfen“ (A5) */
.neuigkeiten { margin: 8px 16px 0; border-left: 4px solid var(--akzent); }
.neuigkeiten ul { margin: 4px 0 8px 18px; padding: 0; }
.neuigkeiten .neu-eintrag + .neu-eintrag { border-top: 1px solid var(--linie); padding-top: 8px; }

/* Rechnungslauf: Positionen je Beleg, weggelassene durchgestrichen */
.lauf-positionen { margin: 6px 0 4px 18px; padding: 0; }
.lauf-positionen li { margin: 2px 0; }
.lauf-positionen li.weg > span:first-child { text-decoration: line-through; opacity: 0.7; }
.lauf-positionen textarea { display: block; width: 100%; margin: 6px 0; }
#lauf-kontrolle { white-space: pre-wrap; font: inherit; }

/* „Richte ein“ im Chat: Schritte mit schematischen Bildern */
.einrichten-schritte { padding-left: 1.3em; margin: 8px 0; }
.einrichten-schritte > li { margin: 0 0 14px; }
.einrichten-schritte > li.erledigt > .titel { color: var(--akzent-schrift); }
.einrichten-schritte .titel { font-weight: 600; margin: 0 0 4px; }
.einrichten-unter { padding-left: 1.2em; margin: 6px 0; }
.einrichten-bild { display: block; width: 100%; max-width: 320px; height: auto; margin: 8px 0; color: var(--text); }
.einrichten-bild rect, .einrichten-bild path, .einrichten-bild circle { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.einrichten-bild text { fill: currentColor; stroke: none; font-family: inherit; }
.einrichten-bild .akzent { stroke: var(--akzent); }
.einrichten-bild text.akzent { fill: var(--akzent-schrift); stroke: none; }
.einrichten-bild rect.akzent { fill: color-mix(in srgb, var(--akzent) 12%, transparent); }
.einrichten-andere { margin-top: 8px; }
.einrichten-schritte button { margin-top: 6px; }
/* Anlässe: Zeile mit Knöpfen; „Ändern“ klappt das Formular in der Zeile darunter auf */
#anlaesse-liste li { flex-wrap: wrap; }
#anlaesse-liste .eintrag-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 200px; }
#anlaesse-liste .knoepfe { flex-wrap: wrap; }
.anlass-aendern { flex-basis: 100%; display: grid; gap: 6px; }
.anlass-aendern label { display: grid; gap: 2px; }
.zeit-hinweis { margin: 6px 0; }
.startfrage { margin-top: 12px; } .startfrage-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
