/* 123easysoft - Stil. Keine Inline-Styles (CSP), Farben als Variablen.
   Tag/Nacht (ab 0.6.0, app/ansicht.py): Flaechen und Linien sind eine Mischung aus Tag- und Nachtfarbe, --n = 0 (Tag)
   … 1 (Nacht); Schrift- und Signalfarben wechseln ab Stufe 6 auf einen Schlag (sonst waeren sie mittendrin so grau
   wie der Hintergrund).
   <html data-n="0…10"> setzt die Stufe (Server beim Laden, app.js in der Daemmerung jede Minute); ohne data-n
   entscheidet das Geraet (prefers-color-scheme). */
:root {
  --inhalt-max: 1240px;
  --n: 0; --rund: 8px; --schatten: 0 1px 2px rgba(16, 24, 40, .06);
  --grund: color-mix(in srgb, #0f141a calc(var(--n) * 100%), #f4f6f9);
  --flaeche: color-mix(in srgb, #171e26 calc(var(--n) * 100%), #ffffff);
  --flaeche-2: color-mix(in srgb, #1d2630 calc(var(--n) * 100%), #f0f3f7);
  --text: #17202b;
  --leise: #5c6878;
  --linie: color-mix(in srgb, #2a3440 calc(var(--n) * 100%), #dde3ea);
  --linie-stark: color-mix(in srgb, #3b4756 calc(var(--n) * 100%), #b9c3cf);
  --akzent: #1f4f8f;
  --akzent-hell: color-mix(in srgb, #1c2b40 calc(var(--n) * 100%), #e3ecf8);
  --akzent-dunkel: #163a6a;
  --gruen: #1d7a4f;
  --gruen-hell: color-mix(in srgb, #143225 calc(var(--n) * 100%), #e2f3ea);
  --gelb: #8a5a00;
  --gelb-hell: color-mix(in srgb, #3a2d10 calc(var(--n) * 100%), #fdf1d6);
  --rot: #b42318;
  --rot-hell: color-mix(in srgb, #3d1714 calc(var(--n) * 100%), #fde7e5);
  --grau: #6b7684;
  --grau-hell: color-mix(in srgb, #222b35 calc(var(--n) * 100%), #eceff3);
  color-scheme: light;
}
:root[data-n="0"] { --n: 0; }
:root[data-n="1"] { --n: 0.05; }
:root[data-n="2"] { --n: 0.1; }
:root[data-n="3"] { --n: 0.18; }
:root[data-n="4"] { --n: 0.27; }
:root[data-n="5"] { --n: 0.36; }
:root[data-n="6"] { --n: 0.66; }
:root[data-n="7"] { --n: 0.76; }
:root[data-n="8"] { --n: 0.85; }
:root[data-n="9"] { --n: 0.93; }
:root[data-n="10"] { --n: 1; }
:root[data-n="6"], :root[data-n="7"], :root[data-n="8"], :root[data-n="9"], :root[data-n="10"] {
  color-scheme: dark; --schatten: none;
  --text: #e7ecf2; --leise: #9aa6b4; --akzent: #7fb0f0; --akzent-dunkel: #a9caf5; --gruen: #5fd39a; --gelb: #f2c25a; --rot: #ff8a80; --grau: #9aa6b4;
}
@media (prefers-color-scheme: dark) { :root:not([data-n]) { --n: 1;
  color-scheme: dark; --schatten: none;
  --text: #e7ecf2; --leise: #9aa6b4; --akzent: #7fb0f0; --akzent-dunkel: #a9caf5; --gruen: #5fd39a; --gelb: #f2c25a; --rot: #ff8a80; --grau: #9aa6b4;
} }
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  :root { --grund: #f4f6f9; --flaeche: #ffffff; --flaeche-2: #f0f3f7; --text: #17202b; --leise: #5c6878; --linie: #dde3ea; --linie-stark: #b9c3cf; --akzent: #1f4f8f; --akzent-hell: #e3ecf8; --akzent-dunkel: #163a6a; --gruen: #1d7a4f; --gruen-hell: #e2f3ea; --gelb: #8a5a00; --gelb-hell: #fdf1d6; --rot: #b42318; --rot-hell: #fde7e5; --grau: #6b7684; --grau-hell: #eceff3; }
  :root[data-n="6"], :root[data-n="7"], :root[data-n="8"], :root[data-n="9"], :root[data-n="10"] { --grund: #0f141a; --flaeche: #171e26; --flaeche-2: #1d2630; --text: #e7ecf2; --leise: #9aa6b4; --linie: #2a3440; --linie-stark: #3b4756; --akzent: #7fb0f0; --akzent-hell: #1c2b40; --akzent-dunkel: #a9caf5; --gruen: #5fd39a; --gruen-hell: #143225; --gelb: #f2c25a; --gelb-hell: #3a2d10; --rot: #ff8a80; --rot-hell: #3d1714; --grau: #9aa6b4; --grau-hell: #222b35; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--akzent); }
h1 { font-size: 1.5rem; margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
h2 { font-size: 1.1rem; margin: 0 0 10px; }
code { font-family: ui-monospace, Consolas, monospace; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.leise { color: var(--leise); }
.klein { font-size: .85rem; }
.gross { font-size: 1.15rem; }
[hidden] { display: none !important; }

.umgebung { background: var(--gelb-hell); color: var(--gelb); text-align: center; font-size: .8rem; padding: 2px 8px; }
.kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 5; }
.kopf-innen { max-width: var(--inhalt-max); margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.marke { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.marke img.logo { width: auto; max-width: 260px; height: 48px; object-fit: contain; }
.marke img.logo-normal { height: 36px; }
.marke img.logo-sehr_gross { height: 60px; }
/* "123easysoft" waechst mit dem Logo mit */
.marke-name { font-size: 1.4rem; line-height: 1.1; }
.marke-name.name-normal { font-size: 1.15rem; }
.marke-name.name-sehr_gross { font-size: 1.7rem; }
@media (max-width: 600px) { .marke img.logo, .marke img.logo-sehr_gross { height: 40px; max-width: 160px; } .marke img.logo-normal { height: 36px; }
  .marke-name, .marke-name.name-sehr_gross { font-size: 1.25rem; }
  .kopf-rechts { margin-left: auto; }
  .haupt-nav { order: 3; flex-basis: 100%; } }
.marke .fassung { font-size: .75rem; color: var(--leise); border: 1px solid var(--linie); border-radius: 999px; padding: 0 7px; }
.haupt-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.haupt-nav a { padding: 6px 10px; border-radius: var(--rund); color: var(--text); text-decoration: none; }
.haupt-nav a:hover, .haupt-nav a[aria-current] { background: var(--akzent-hell); color: var(--akzent-dunkel); }
.kopf-rechts { display: flex; align-items: center; gap: 8px; }
.glocke { position: relative; display: inline-flex; padding: 7px; border-radius: 50%; color: var(--text); }
.glocke:hover { background: var(--flaeche-2); }
.zaehler { position: absolute; top: -2px; right: -4px; background: var(--rot); color: #fff; border-radius: 999px; font-size: .7rem; padding: 0 5px; min-width: 18px; text-align: center; }
.menue { position: relative; }
.menue > button { border: 0; background: none; padding: 0; cursor: pointer; }
.avatar { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--akzent); color: #fff; align-items: center; justify-content: center; font-weight: 600; font-size: .85rem; }
.menue-liste { display: none; position: absolute; right: 0; top: 42px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); min-width: 220px; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); padding: 6px; }
.menue.offen .menue-liste { display: block; }
.menue-kopf { padding: 6px 10px 8px; border-bottom: 1px solid var(--linie); margin-bottom: 4px; display: flex; flex-direction: column; }
.menue-liste a, .menue-liste button { display: block; width: 100%; text-align: left; padding: 7px 10px; border: 0; background: none; color: var(--text); text-decoration: none; border-radius: 6px; font: inherit; cursor: pointer; }
.menue-liste a:hover, .menue-liste button:hover { background: var(--flaeche-2); }

.inhalt { width: 100%; max-width: var(--inhalt-max); margin: 0 auto; padding: 28px 24px 48px; }
.inhalt.mittel { max-width: 860px; }
.inhalt.schmal { max-width: 560px; }
@media (max-width: 640px) { .inhalt { padding: 20px 16px 40px; } .kopf-innen { padding: 8px 16px; } }
/* Seitenbreite (Mein Konto → Seitenbreite, app/ansicht.py SEITENBREITEN - wie im Stellwerk). Ohne Angabe
   (Anmeldung, oeffentliche Seiten) 1240 px; Formulare (.mittel/.schmal) behalten ihre feste Breite. */
html[data-seitenbreite="breit"] { --inhalt-max: 1800px; }
html[data-seitenbreite="voll"] { --inhalt-max: none; }
/* Fliesstext bleibt lesbar (etwa 80 Zeichen je Zeile), auch wenn die Seite breit ist */
.seitenkopf p { max-width: 80ch; }
.wahlkarten { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.wahlkarten.drei { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .wahlkarten, .wahlkarten.drei { grid-template-columns: 1fr; } }
.wahlkarte { position: relative; border: 1px solid var(--linie-stark); border-radius: 6px; padding: 12px 14px; cursor: pointer; }
.wahlkarte input { position: absolute; opacity: 0; }
.wahlkarte b { display: block; }
.wahlkarte small { color: var(--leise); font-size: .8rem; }
.wahlkarte:has(input:checked) { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent); background: var(--akzent-hell); }
.wahlkarte:has(input:focus-visible) { outline: 2px solid var(--akzent); outline-offset: 2px; }
.breite-bild { display: block; height: 30px; margin-bottom: 8px; border: 1px solid var(--linie-stark);
  border-radius: 5px; background: var(--flaeche-2); padding: 4px; }
.breite-bild i { display: block; height: 100%; margin: 0 auto; border-radius: 3px;
  background: color-mix(in srgb, var(--akzent) 35%, transparent); }
.breite-bild-normal i { width: 50%; }
.breite-bild-breit i { width: 76%; }
.breite-bild-voll i { width: 100%; }
/* Sprachen der Pakete (ab 0.21.0) */
.reiter { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--linie); margin-bottom: 16px; }
.reiter a { padding: 8px 14px; color: var(--leise); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.reiter a[aria-current="page"] { color: var(--text); border-bottom-color: var(--akzent); font-weight: 600; }
.tabelle tr.auffaellig td { background: var(--rot-hell); }
.rot-text { color: var(--rot); }
.tabelle textarea { width: 100%; min-width: 16em; }
.fuss { text-align: center; color: var(--leise); font-size: .8rem; padding: 16px; }
.seitenkopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.seitenkopf h1 { margin: 0; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--schatten); }
.karte-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.karte-kopf h2 { margin: 0; }
.karte.leer { text-align: center; padding: 32px; }
.karte.warnkarte { border-color: var(--gelb); }
.karte.gefahr { border-color: var(--rot); }
.raster-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 16px; }
.raster-2 > .karte { margin-bottom: 16px; }
.anmelde-karte { margin-top: 8vh; }
.anmelde-marke { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 12px; }

.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kacheln.klein { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.kachel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 10px 12px; display: flex; flex-direction: column; }
.karte .kachel { background: var(--flaeche-2); border-color: transparent; }
.kachel small { color: var(--leise); font-size: .8rem; }
.kachel b { font-size: 1.35rem; }
.kachel.gruen { border-color: var(--gruen); }
.kachel-link { color: inherit; text-decoration: none; }
.kachel-link:hover { border-color: var(--akzent); }
.kachel.rot { border-color: var(--rot); background: var(--rot-hell); }

.ampel { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 999px; font-size: .8rem; font-weight: 500; white-space: nowrap; vertical-align: middle; }
.ampel .punkt { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.ampel.gruen { background: var(--gruen-hell); color: var(--gruen); }
.ampel.gelb { background: var(--gelb-hell); color: var(--gelb); }
.ampel.rot { background: var(--rot-hell); color: var(--rot); }
.ampel.grau { background: var(--grau-hell); color: var(--grau); }

.tabelle-rahmen { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th, .tabelle td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { font-size: .8rem; color: var(--leise); font-weight: 600; white-space: nowrap; }
.tabelle .zahl { text-align: right; white-space: nowrap; }
.tabelle tbody tr:hover { background: var(--flaeche-2); }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { padding: 8px 0; border-bottom: 1px solid var(--linie); }
.liste li:last-child { border-bottom: 0; }
.glocken li.neu { font-weight: 500; }
.glocken li.warnung b a, .glocken li.warnung b { color: var(--rot); }
.glocken li.erfolg b a, .glocken li.erfolg b { color: var(--gruen); }
.angaben { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.angaben dt { color: var(--leise); }
.angaben dd { margin: 0; overflow-wrap: anywhere; }
.marke-klein { font-size: .72rem; border: 1px solid var(--linie-stark); border-radius: 999px; padding: 0 6px; color: var(--leise); }

.meldung { border-radius: var(--rund); padding: 10px 14px; margin-bottom: 12px; background: var(--akzent-hell); color: var(--akzent-dunkel); }
.meldung.erfolg { background: var(--gruen-hell); color: var(--gruen); }
.meldung.warnung { background: var(--gelb-hell); color: var(--gelb); }
.meldung.fehler { background: var(--rot-hell); color: var(--rot); }

.formular { display: flex; flex-direction: column; gap: 4px; }
.formular > .knopf { align-self: flex-start; }
.formular > .knopf.breit { align-self: stretch; }
.feld { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; border: 0; padding: 0; min-width: 0; }
.feld > span, .feld > legend { font-weight: 500; font-size: .9rem; padding: 0; }
input, select, textarea { font: inherit; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie-stark); border-radius: 6px; padding: 8px 10px; max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--akzent); outline-offset: 1px; }
input[type="checkbox"], input[type="radio"] { width: auto; padding: 0; }
.wahl { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.favicon-vorschau { border: 1px solid var(--linie); border-radius: 8px; background: #fff; padding: 4px; }
.ansicht-form { margin: 0; }
.ansicht-knopf { background: none; border: 0; color: var(--leise); cursor: pointer; padding: 6px; border-radius: 999px; display: flex; }
.ansicht-knopf:hover { color: var(--text); background: var(--flaeche-2); }
.fehler-text { color: var(--rot); }
.umbruch { white-space: pre-wrap; word-break: break-word; }
.antwort-marke { border-color: var(--gruen); color: var(--gruen); }
.code-feld { font-size: 1.3rem; letter-spacing: .15em; max-width: 12em; }
input.zahl-feld { width: 7em; }
.suche { max-width: 320px; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: var(--rund); border: 1px solid var(--linie-stark); background: var(--flaeche); color: var(--text); text-decoration: none; font: inherit; font-weight: 500; cursor: pointer; }
.knopf:hover { background: var(--flaeche-2); }
.knopf.haupt { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.knopf.haupt:hover { background: var(--akzent-dunkel); }
.knopf.leicht { border-color: transparent; background: none; }
.knopf.gefahr { background: var(--rot); border-color: var(--rot); color: #fff; }
.knopf.klein { padding: 4px 10px; font-size: .85rem; }
.knopf.breit { width: 100%; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.knopfreihe .feld { margin-bottom: 0; }
.knopfreihe.mittig { align-items: center; }
.knopfreihe.mittig form { margin: 0; }
form.inline { display: inline; }

.umschalter { display: inline-flex; border: 1px solid var(--linie-stark); border-radius: var(--rund); overflow: hidden; }
.umschalter a { padding: 5px 12px; text-decoration: none; color: var(--text); border-right: 1px solid var(--linie-stark); }
.umschalter a:last-child { border-right: 0; }
.umschalter a[aria-current] { background: var(--akzent); color: #fff; }
.diagramme { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 14px; }
@media (max-width: 520px) { .diagramme { grid-template-columns: 1fr; } }
.diagramm { margin: 0; background: var(--flaeche-2); border-radius: var(--rund); padding: 8px 10px; }
.diagramm figcaption { font-weight: 500; font-size: .9rem; margin-bottom: 4px; }
.dia { width: 100%; height: 200px; display: block; }
.dia-gitter { stroke: var(--linie); stroke-width: 1; }
.dia-text { fill: var(--leise); font-size: 13px; }
.dia-linie { stroke: var(--akzent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.dia-band { fill: var(--akzent); opacity: .16; }
.dia-punkt { fill: var(--akzent); }
.dia-saeule-a { fill: var(--akzent); }
.dia-saeule-b { fill: var(--rot); opacity: .8; }
.dia-grenze { stroke: var(--rot); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.legende { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.leg { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--akzent); }
.leg.band { height: 10px; border: 0; background: var(--akzent); opacity: .25; }
.leg.grenze { border-top: 2px dashed var(--rot); }

.qr { text-align: center; margin: 12px 0; }
.qr svg { width: 100%; max-width: 260px; height: auto; background: #fff; border-radius: 6px; }
.logo-vorschau { max-width: 240px; max-height: 120px; height: auto; background: #fff; border-radius: 6px; padding: 6px; border: 1px solid var(--linie); }
.code-feld { max-width: 11em; letter-spacing: .1em; }
.zeile-mit-knopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.geheimnis { text-align: center; word-break: break-all; }
.notfallcodes { columns: 2; list-style: none; padding: 0; font-size: 1.1rem; }
.notfallcodes li { padding: 4px 0; }
.schritte { padding-left: 20px; }
@media print { .kopf, .fuss, .umgebung { display: none; } }

/* Module (0.2.0) */
.filterleiste { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin-bottom: 16px; }
.filterleiste .feld { margin-bottom: 0; }
.paket-punkt { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--grau); }
.paket-punkt.gruen { background: #1d7a4f; }
.paket-punkt.blau { background: #2563c9; }
.paket-punkt.lila { background: #7a3db8; }
.paket-punkt.orange { background: #c2620a; }
.paket-punkt.rot { background: #c0392b; }
.paket-punkt.tuerkis { background: #0e8a8a; }
.paket-punkt.gelb { background: #b8860b; }
.paket-punkt.magenta { background: #b0307a; }
.ampel.blau { background: var(--akzent-hell); color: var(--akzent-dunkel); }
.marke-zahl { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--rot); color: #fff; font-size: .75rem; text-align: center; }
.hinweis-offen { color: var(--gelb); font-weight: 500; font-size: .9rem; }
.offen-marke { display: inline-block; margin: 1px 4px 1px 0; padding: 0 8px; border-radius: 999px; font-size: .78rem; white-space: nowrap; }
.offen-marke.entscheiden { background: var(--rot-hell); color: var(--rot); }
.offen-marke.geben { background: var(--gelb-hell); color: var(--gelb); }
.offen-marke.extern { background: var(--akzent-hell); color: var(--akzent-dunkel); }
.offen-marke.testen { background: var(--gruen-hell); color: var(--gruen); }
.warn-text { color: var(--gelb); }
.unterkopf { font-size: .95rem; margin: 12px 0 4px; }
.abstand { margin-top: 12px; }
.paket-wahl { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.breit-feld { flex: 1; min-width: 240px; }
.module-tabelle td:first-child { min-width: 220px; }
.neuer-punkt { border-top: 1px solid var(--linie); margin-top: 12px; padding-top: 12px; }

/* Fassung & Update (0.3.0) */
.protokoll-text { white-space: pre-wrap; font-size: .8rem; background: var(--flaeche-2); padding: 10px 12px; border-radius: var(--rund); max-height: 360px; overflow: auto; margin: 0; }
/* Websites bearbeiten (0.13.0) */
.gedimmt { opacity: .6; }
.bild-zeile { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.bild-zeile span { flex: 1; }
.bild-klein { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rand, #ddd); }
/* Pakete auf einen Blick (0.16.0) */
.raster-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.raster-karten .karte { margin: 0; }
/* Tickets (ab 0.23.0) */
.ticket-text { white-space: pre-wrap; margin: 6px 0; max-width: 80ch; }
.tabelle details summary { cursor: pointer; }

/* Befragungen (ab 0.25.0): Fragebogen am Handy zuerst */
progress { width: 100%; max-width: 220px; height: 8px; accent-color: var(--akzent); vertical-align: middle; }
progress.breit { max-width: none; }
.zustand { font-size: .72rem; border-radius: 999px; padding: 1px 8px; margin-left: 4px; white-space: nowrap; }
.zustand.gruen { background: var(--gruen-hell); color: var(--gruen); }
.zustand.gelb { background: var(--gelb-hell); color: var(--gelb); }
.zustand.grau { background: var(--grau-hell); color: var(--grau); }
.befragung .frage { padding: 14px 0; border-bottom: 1px solid var(--linie); }
.befragung .frage:last-child { border-bottom: 0; }
.befragung .frage.mit-fehler { border-left: 3px solid var(--rot); padding-left: 10px; }
.frage-kopf { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin-bottom: 6px; }
.frage-nr { font-size: .75rem; color: var(--leise); font-weight: 600; min-width: 2.4em; }
.pflicht { color: var(--rot); font-weight: 600; }
.befragung textarea, .befragung input:not([type=checkbox]):not([type=radio]):not([type=file]), .befragung select { width: 100%; font-size: 1rem; }
.wahlgruppe { display: flex; gap: 16px; flex-wrap: wrap; }
.wahl.gross { font-size: 1.05rem; padding: 6px 0; }
.wahlliste.spalten { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }
.liste-zeile { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 10px; padding: 8px 0; border-bottom: 1px dashed var(--linie); }
.tabelle.preise input { min-width: 6em; text-align: right; }
.datei-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 8px 0; }
.datei { margin: 0; text-align: center; }
.datei img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 1px solid var(--linie); }
.datei figcaption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.datei-pdf { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border: 1px solid var(--linie); border-radius: 6px; font-weight: 700; color: var(--leise); }
.datei-wahl { position: relative; overflow: hidden; }
.datei-wahl input[type=file] { max-width: 100%; }
.rueckfragen { margin-top: 10px; display: grid; gap: 6px; }
.rueckfrage { border-radius: 8px; padding: 6px 10px; background: var(--gelb-hell); }
.rueckfrage.kunde { background: var(--akzent-hell); margin-left: 24px; }
.rueckfrage.erledigt { opacity: .6; }
.rueckfrage p { margin: 2px 0 0; white-space: pre-line; }
.antwort-zeile { padding: 10px 0; border-bottom: 1px solid var(--linie); }
.antwort-text { white-space: pre-line; margin: 4px 0; }
.abschnitt-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.abschnitt-karte { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); }
.abschnitt-karte:hover { border-color: var(--akzent); }
.abschnitt-karte.fertig { border-color: var(--gruen); }
.abschnitt-karte progress { max-width: none; }
.knopf-leiste { position: sticky; bottom: 0; background: var(--grund); padding: 10px 0; }
.code-gross { font-size: 1.3rem; letter-spacing: .15em; font-family: ui-monospace, monospace; }
.verlauf { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.knopf.aktiv { border-color: var(--akzent); background: var(--akzent-hell); }
.abstand-unten { margin-bottom: 12px; }
@media (max-width: 600px) {
  .knopf-leiste .knopf { flex: 1; }
  .wahlliste.spalten { grid-template-columns: 1fr; }
}
/* Sprachantworten (ab 0.26.0) */
.sprache-karte { border-color: var(--akzent); }
.sprache-kopf { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sprache-uhr { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--rot); }
.sprache-ergebnis { border-color: var(--gelb); }
.wahl.vorschlag { padding: 8px 0; border-bottom: 1px solid var(--linie); }
.sprache-liste audio { width: 100%; max-width: 420px; display: block; margin: 6px 0; }
/* Pakete mit Logo (ab 0.29.0) */
.paket-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.paket-kopf h2 { margin: 0; }
.paket-logo { height: 48px; width: auto; max-width: 140px; object-fit: contain; flex-shrink: 0; }
.paket-logo.leer { width: 48px; height: 48px; border-radius: 10px; }
.paket-logo-aendern { margin-top: 8px; }

/* Traffic-Balken je Hetzner-Server (0.31.0) */
meter.verbrauch { width: 110px; height: 10px; vertical-align: middle; margin-left: 6px; }
