/* KalkPilot – Oberfläche. Eine Akzentfarbe (Blau); Grün/Gelb/Rot sind der Ampel vorbehalten.
   Aufbau: 1 Farben und Grundlagen · 2 Rahmen (Kopfleiste, Navigation) · 3 Bausteine · 4 Dialoge und Meldungen
           5 Anmeldung · 6 Projektliste · 7 Prüfen · 8 übrige Ansichten · 9 schmale Bildschirme */

/* ---------- 1 Farben und Grundlagen ---------- */
:root {
  --grund: #f4f5f7;
  --flaeche: #ffffff;
  --flaeche-2: #f8f9fb;
  --linie: #e2e5ea;
  --linie-2: #c9ced6;
  --text: #18202b;
  --text-2: #4b5665;
  --text-3: #6d7887;
  --akzent: #2f5fd0;
  --akzent-kraeftig: #2349a8;
  --akzent-zart: #e8eefc;
  --akzent-text: #ffffff;
  --gruen: #24894f;
  --gruen-zart: #e3f3ea;
  --gelb: #b97f00;
  --gelb-punkt: #e0a100;
  --gelb-zart: #fbf1d6;
  --rot: #c53d33;
  --rot-zart: #fae5e2;
  --hand: #5a48b5;
  --hand-zart: #ece9fa;
  --schatten: 0 1px 2px rgba(20, 30, 45, .06), 0 6px 20px rgba(20, 30, 45, .08);
  --rund: 8px;
  --kopf-hoehe: 52px;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --schrift-fest: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #10151c;
    --flaeche: #171e27;
    --flaeche-2: #1c242f;
    --linie: #2a3441;
    --linie-2: #3a4655;
    --text: #e7ebf0;
    --text-2: #aeb8c4;
    --text-3: #8491a0;
    --akzent: #7ea2f5;
    --akzent-kraeftig: #a3bcf8;
    --akzent-zart: #1d2a45;
    --akzent-text: #0e1522;
    --gruen: #52c088;
    --gruen-zart: #153526;
    --gelb: #ebb53c;
    --gelb-punkt: #ebb53c;
    --gelb-zart: #3a2e10;
    --rot: #f07c70;
    --rot-zart: #40201c;
    --hand: #a99bf0;
    --hand-zart: #29244a;
    --schatten: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 14px/1.5 var(--schrift);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: 22px; line-height: 1.2; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 16px; line-height: 1.3; font-weight: 650; }
h3 { font-size: 13px; line-height: 1.3; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
a { color: var(--akzent); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 4px; }
.zahl { font-variant-numeric: tabular-nums; }
.leise { color: var(--text-3); }
.klein { font-size: 12.5px; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--flaeche); padding: 8px 12px; border-radius: var(--rund); }
.sprung:focus { top: 8px; }
.startet { padding: 40px; color: var(--text-3); }
mark { background: var(--gelb-zart); color: inherit; border-radius: 3px; padding: 0 2px; box-shadow: inset 0 -2px 0 var(--gelb-punkt); }

/* ---------- 2 Rahmen ---------- */
#app { height: 100%; }
.rahmen { display: flex; flex-direction: column; height: 100%; }
.kopfleiste {
  flex: none; height: var(--kopf-hoehe);
  display: flex; align-items: center; gap: 20px;
  padding: 0 20px;
  background: var(--flaeche); border-bottom: 1px solid var(--linie);
}
.marke { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.marke svg { width: 26px; height: 26px; flex: none; }
.hauptnav { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.hauptnav a {
  padding: 6px 11px; border-radius: 6px; white-space: nowrap;
  color: var(--text-2); text-decoration: none; font-weight: 550;
}
.hauptnav a:hover { background: var(--flaeche-2); color: var(--text); }
.hauptnav a[aria-current="page"] { background: var(--akzent-zart); color: var(--akzent-kraeftig); }
.konto { margin-left: auto; position: relative; flex: none; }
.konto > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 5px 9px; border-radius: 6px; max-width: 320px;
}
.konto > summary::-webkit-details-marker { display: none; }
.konto > summary:hover { background: var(--flaeche-2); }
.konto .wer { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; text-align: right; }
.konto .wer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.konto .wer .firma { font-size: 11.5px; color: var(--text-3); }
.konto svg { width: 16px; height: 16px; flex: none; color: var(--text-3); }
.menue {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); box-shadow: var(--schatten);
  padding: 6px; display: flex; flex-direction: column;
}
.menue .info { padding: 6px 10px 8px; border-bottom: 1px solid var(--linie); margin-bottom: 6px; font-size: 12.5px; color: var(--text-2); }
.menue button, .menue a {
  all: unset; box-sizing: border-box; cursor: pointer; padding: 7px 10px; border-radius: 6px; display: flex; gap: 8px; align-items: center;
}
.menue button:hover, .menue a:hover { background: var(--flaeche-2); }
.menue button:focus-visible, .menue a:focus-visible { outline: 2px solid var(--akzent); outline-offset: -2px; }
.menue svg { width: 15px; height: 15px; flex: none; color: var(--text-3); }
.menue .rot-text, .menue .rot-text svg { color: var(--rot); }
.menue .trenner { height: 1px; background: var(--linie); margin: 6px 0; }

.inhalt { flex: 1; min-height: 0; overflow: auto; }
.inhalt:focus { outline: none; }
.seite { max-width: 1180px; margin: 0 auto; padding: 26px 24px 60px; display: flex; flex-direction: column; gap: 20px; }
.seite.schmal { max-width: 860px; }
.seitenkopf { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.seitenkopf > div:first-child { flex: 1; min-width: 240px; }
.seitenkopf p { color: var(--text-2); margin-top: 4px; max-width: 70ch; }
.aktionen { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- 3 Bausteine ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 7px 13px; border-radius: 7px; border: 1px solid var(--linie-2);
  background: var(--flaeche); color: var(--text); font-weight: 600; font-size: 13.5px; line-height: 1.3;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.knopf:hover { border-color: var(--text-3); }
.knopf svg { width: 15px; height: 15px; flex: none; }
.knopf.haupt { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.knopf.haupt:hover { background: var(--akzent-kraeftig); border-color: var(--akzent-kraeftig); }
.knopf.gefahr { background: var(--rot); border-color: var(--rot); color: #fff; }
@media (prefers-color-scheme: dark) { .knopf.gefahr { color: #1b0c0a; } }
.knopf.still { border-color: transparent; background: transparent; color: var(--text-2); }
.knopf.still:hover { background: var(--flaeche-2); color: var(--text); }
.knopf.klein { padding: 4px 9px; font-size: 12.5px; }
.knopf.nur-symbol { padding: 6px; }
.knopf:disabled, .knopf[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.knopf.rot-text { color: var(--rot); }

.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.karten-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.karten-kopf h2 { flex: 1; }
.karten-kopf > p { flex: 1; min-width: 260px; }
.karte.ohne-rand { padding: 0; overflow: hidden; }
.karte.ohne-rand > .karten-kopf { padding: 14px 20px 0; }
.hinweis { border-left: 3px solid var(--akzent); background: var(--akzent-zart); padding: 10px 14px; border-radius: 0 var(--rund) var(--rund) 0; color: var(--text); }
.wortschatz { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--linie); }
.hinweis.warnung { border-color: var(--gelb-punkt); background: var(--gelb-zart); }
.hinweis.fehler { border-color: var(--rot); background: var(--rot-zart); }
.hinweis.zeile { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hinweis.zeile > span { flex: 1; min-width: 200px; }

.feld { display: flex; flex-direction: column; gap: 4px; }
.feld > label, .feld > .beschriftung { font-weight: 600; font-size: 13px; }
.feld .hilfe { font-size: 12.5px; color: var(--text-3); }
.eingabe, select.eingabe, textarea.eingabe {
  width: 100%; padding: 7px 10px; border: 1px solid var(--linie-2); border-radius: 7px; background: var(--flaeche); color: var(--text);
}
textarea.eingabe { resize: vertical; min-height: 64px; }
.eingabe:focus { border-color: var(--akzent); outline: 2px solid var(--akzent); outline-offset: 0; }
.eingabe[aria-invalid="true"] { border-color: var(--rot); }
.eingabe.kurz { width: 110px; }
.formular { display: flex; flex-direction: column; gap: 14px; }
.reihe { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.reihe > .feld { flex: 1; min-width: 150px; }
.reihe > .feld.fest { flex: none; }
.gruppe { border: 1px solid var(--linie); border-radius: var(--rund); padding: 12px 14px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.gruppe.zweier { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; align-items: start; }
.gruppe.zweier > .ganz { grid-column: 1 / -1; }
.gruppe > legend { font-weight: 650; padding: 0 6px; }
.auswahl { display: flex; gap: 6px 16px; flex-wrap: wrap; }
.auswahl label, label.haken { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.wahl { display: flex; flex-direction: column; gap: 8px; }
.wahl label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--linie); border-radius: var(--rund); cursor: pointer; }
.wahl label:has(input:checked) { border-color: var(--akzent); background: var(--akzent-zart); }
.wahl label:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.wahl input { margin-top: 3px; }
.formfehler { color: var(--rot); font-weight: 600; }
.formfehler:empty { display: none; }

.zustand { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 36px 20px; color: var(--text-2); }
.zustand h2 { color: var(--text); }
.zustand p { max-width: 56ch; }
.zustand.fehler h2 { color: var(--rot); }
.zustand.klein { padding: 14px 10px; align-items: flex-start; text-align: left; gap: 6px; }
.dreher { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--linie-2); border-top-color: var(--akzent); animation: drehen .8s linear infinite; }
.dreher.klein { width: 14px; height: 14px; border-width: 2px; display: inline-block; vertical-align: -2px; }
@keyframes drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dreher { animation-duration: 3s; } }

table.liste { width: 100%; border-collapse: collapse; }
table.liste th { text-align: left; font-size: 12px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; padding: 9px 12px; border-bottom: 1px solid var(--linie); white-space: nowrap; }
table.liste td { padding: 9px 12px; border-bottom: 1px solid var(--linie); vertical-align: top; }
table.liste tr:last-child td { border-bottom: 0; }
table.liste .r { text-align: right; }
table.liste td.aktionen-zelle { text-align: right; white-space: nowrap; }
table.liste td.aktionen-zelle .knopf { margin-left: 4px; }
table.liste tbody tr:hover { background: var(--flaeche-2); }
.tabellen-rollen { overflow-x: auto; }

.marke-text { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--flaeche-2); border: 1px solid var(--linie); color: var(--text-2); white-space: nowrap; }
.marke-text.gruen { background: var(--gruen-zart); border-color: transparent; color: var(--gruen); }
.marke-text.gelb { background: var(--gelb-zart); border-color: transparent; color: var(--gelb); }
.marke-text.rot { background: var(--rot-zart); border-color: transparent; color: var(--rot); }
.marke-text.blau { background: var(--akzent-zart); border-color: transparent; color: var(--akzent-kraeftig); }
.marke-text.hand { background: var(--hand-zart); border-color: transparent; color: var(--hand); }

.punkt { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; background: var(--text-3); }
.punkt.gruen { background: var(--gruen); }
.punkt.gelb { background: var(--gelb-punkt); }
.punkt.rot { background: var(--rot); }
.punkt.hand { background: var(--hand); border-radius: 2px; }

.balken { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--linie); min-width: 80px; }
.balken > span { display: block; height: 100%; }
.balken .gruen { background: var(--gruen); }
.balken .gelb { background: var(--gelb-punkt); }
.balken .rot { background: var(--rot); }
.balken .hand { background: var(--hand); }
.balken .akzent { background: var(--akzent); }
.fortschritt { height: 8px; border-radius: 999px; background: var(--linie); overflow: hidden; }
.fortschritt > span { display: block; height: 100%; background: var(--akzent); width: 0; transition: width .2s; }
.fortschritt.unbestimmt > span { width: 35%; animation: wandern 1.2s ease-in-out infinite; }
@keyframes wandern { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }

.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kennzahl { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kennzahl .titel { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.kennzahl .wert { font-size: 26px; font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kennzahl .dazu { font-size: 12.5px; color: var(--text-3); }

.reiter { display: flex; gap: 2px; border-bottom: 1px solid var(--linie); }
.reiter button { all: unset; cursor: pointer; padding: 8px 14px; font-weight: 600; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.reiter button[aria-selected="true"] { color: var(--akzent-kraeftig); border-bottom-color: var(--akzent); }
.reiter button:focus-visible { outline: 2px solid var(--akzent); outline-offset: -2px; }

dl.angaben { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
dl.angaben dt { color: var(--text-3); }
dl.angaben dd { margin: 0; }
ul.schlicht { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
ol.schritte { margin: 0; padding: 0; list-style: none; counter-reset: schritt; display: flex; flex-direction: column; gap: 12px; text-align: left; }
ol.schritte li { counter-increment: schritt; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
ol.schritte li::before { content: counter(schritt); width: 28px; height: 28px; border-radius: 50%; background: var(--akzent-zart); color: var(--akzent-kraeftig); font-weight: 700; display: grid; place-items: center; }
ol.schritte b { display: block; }
kbd { font: 12px var(--schrift-fest); background: var(--flaeche-2); border: 1px solid var(--linie-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; white-space: nowrap; }

/* ---------- 4 Dialoge und Meldungen ---------- */
dialog.dialog {
  border: 1px solid var(--linie); border-radius: 12px; padding: 0; background: var(--flaeche); color: var(--text);
  box-shadow: var(--schatten); width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
}
dialog.dialog[open] { display: flex; flex-direction: column; }
dialog.dialog.breit { width: min(820px, calc(100vw - 32px)); }
dialog.dialog::backdrop { background: rgba(15, 22, 32, .5); }
.dialog-kopf { display: flex; align-items: center; gap: 12px; padding: 16px 20px 0; }
.dialog-kopf h2 { flex: 1; font-size: 17px; }
.dialog-rumpf { padding: 14px 20px 18px; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.dialog-fuss { padding: 12px 20px; border-top: 1px solid var(--linie); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; background: var(--flaeche-2); border-radius: 0 0 12px 12px; }

.meldungen {
  position: fixed; inset: auto 20px 20px auto; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; overflow: visible;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end; z-index: 60; max-width: min(460px, calc(100vw - 40px));
}
.meldungen > div { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.meldung {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px 10px 14px; border-radius: var(--rund);
  background: var(--text); color: var(--grund); box-shadow: var(--schatten); font-weight: 550;
}
.meldung.fehler { background: var(--rot); color: #fff; }
@media (prefers-color-scheme: dark) { .meldung.fehler { color: #1b0c0a; } }
.meldung button { all: unset; cursor: pointer; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.meldung button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ---------- 5 Anmeldung ---------- */
.anmeldung { min-height: 100%; display: grid; place-items: center; padding: 24px; }
.anmeldung .karte { width: min(400px, 100%); padding: 28px; gap: 18px; box-shadow: var(--schatten); }
.anmeldung .marke { font-size: 20px; }
.anmeldung .marke svg { width: 34px; height: 34px; }
.anmeldung .unterzeile { color: var(--text-2); margin-top: -8px; }

/* ---------- 6 Projektliste ---------- */
.suchfeld { position: relative; }
.suchfeld svg { position: absolute; left: 9px; top: 50%; translate: 0 -50%; width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
.suchfeld input { padding-left: 30px; width: 260px; max-width: 100%; }
table.liste.projekte td { vertical-align: middle; }
table.liste.projekte a.name { font-weight: 650; color: var(--text); text-decoration: none; }
table.liste.projekte a.name:hover { color: var(--akzent); text-decoration: underline; }
.ampel-legende { display: flex; gap: 10px; font-size: 12px; color: var(--text-3); margin-top: 3px; font-variant-numeric: tabular-nums; }
.ampel-legende span { display: inline-flex; gap: 4px; align-items: center; }
.anteil { display: flex; align-items: center; gap: 8px; }
.anteil .balken { flex: 1; min-width: 60px; }

/* ---------- 7 Prüfen ---------- */
.pruefen { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.projektkopf { flex: none; background: var(--flaeche); border-bottom: 1px solid var(--linie); padding: 12px 20px; display: flex; flex-direction: column; gap: 10px; }
.projektkopf .zeile1 { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.projektkopf .titel { flex: 1; min-width: 220px; }
.projektkopf .titel h1 { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.projektkopf .titel .unter { color: var(--text-3); font-size: 12.5px; display: flex; gap: 6px 14px; flex-wrap: wrap; }
.projektkopf .zurueck { color: var(--text-3); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.projektkopf .zurueck svg { width: 13px; height: 13px; }
.projektkopf .zurueck:hover { color: var(--akzent); }
.bauart { display: flex; gap: 6px; align-items: center; }
.bauart select, .bauart input { padding: 5px 8px; border: 1px solid var(--linie-2); border-radius: 7px; background: var(--flaeche); }
.bauart input { width: 64px; text-align: right; }
.aufklapp { position: relative; }
.aufklapp > summary { list-style: none; }
.aufklapp > summary::-webkit-details-marker { display: none; }

.summen { display: flex; gap: 10px 30px; align-items: flex-start; flex-wrap: wrap; }
.summe { display: flex; flex-direction: column; line-height: 1.25; }
.summe .titel { font-size: 11.5px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.summe .wert { font-size: 17px; font-weight: 680; font-variant-numeric: tabular-nums; }
.summe .wert small { font-size: 12.5px; font-weight: 500; color: var(--text-3); }
.summe.verteilung { min-width: 220px; flex: 0 1 280px; }
.summe.verteilung .balken { margin: 6px 0 1px; }
.summe select { align-self: flex-start; padding: 2px 4px; border: 1px solid var(--linie-2); border-radius: 6px; background: var(--flaeche); font-weight: 650; }

.filterleiste { flex: none; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 9px 20px; background: var(--flaeche-2); border-bottom: 1px solid var(--linie); }
.filter { display: flex; gap: 4px; flex-wrap: wrap; }
.filter button {
  all: unset; cursor: pointer; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--linie-2); background: var(--flaeche);
  font-weight: 600; font-size: 13px; display: inline-flex; gap: 6px; align-items: center;
}
.filter button .anzahl { font-variant-numeric: tabular-nums; color: var(--text-3); font-weight: 500; }
.filter button[aria-pressed="true"] { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.filter button[aria-pressed="true"] .anzahl { color: inherit; opacity: .85; }
.filter button:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.filterleiste .suchfeld input { width: 240px; padding-top: 5px; padding-bottom: 5px; }
.filterleiste .rechts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.treffer { color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }

.arbeitsflaeche { flex: 1; min-height: 0; display: flex; }
.tabellenrahmen { flex: 1; min-width: 0; overflow: auto; background: var(--flaeche); }
.tabellenrahmen:focus { outline: none; }
.detailspalte { flex: none; width: 384px; border-left: 1px solid var(--linie); background: var(--flaeche); overflow: auto; display: none; }
@media (min-width: 1100px) { .detailspalte { display: block; } }
@media (min-width: 1500px) { .detailspalte { width: 460px; } }

table.positionen { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; table-layout: fixed; }
table.positionen col.c-oz { width: 92px; }
table.positionen col.c-menge { width: 92px; }
table.positionen col.c-zeit { width: 88px; }
table.positionen col.c-h { width: 76px; }
table.positionen col.c-ampel { width: 122px; }
table.positionen col.c-herkunft { width: 162px; }
table.positionen col.c-ok { width: 66px; }
table.positionen thead th {
  position: sticky; top: 0; z-index: 3; background: var(--flaeche); text-align: left;
  font-size: 11.5px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em;
  padding: 0 10px; height: 34px; border-bottom: 1px solid var(--linie-2); white-space: nowrap;
}
table.positionen th.r, table.positionen td.r { text-align: right; }
table.positionen th.m, table.positionen td.m { text-align: center; }
table.positionen td { padding: 3px 10px; border-bottom: 1px solid var(--linie); vertical-align: middle; height: 34px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.positionen tr.titelzeile th {
  position: sticky; top: 34px; z-index: 2; text-align: left; background: var(--flaeche-2); padding: 0; border-bottom: 1px solid var(--linie); font-weight: 600;
}
.titelknopf { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 10px; align-items: center; width: 100%; padding: 7px 10px; }
.titelknopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: -2px; }
.titelknopf svg { width: 14px; height: 14px; flex: none; color: var(--text-3); transition: rotate .12s; }
.titelknopf[aria-expanded="false"] svg { rotate: -90deg; }
.titelknopf .nr { color: var(--text-3); font-variant-numeric: tabular-nums; }
.titelknopf .bez { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.titelknopf .dazu { margin-left: auto; display: flex; gap: 14px; color: var(--text-3); font-weight: 500; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.positionen tr.pos { cursor: default; scroll-margin: 76px 0 10px; }
table.positionen tr.pos :is(input, button) { scroll-margin: 80px 0 14px; }
table.positionen tr.pos:hover td { background: var(--flaeche-2); }
table.positionen tr.pos.cursor td { background: var(--akzent-zart); }
table.positionen tr.pos.cursor td:first-child { box-shadow: inset 3px 0 0 var(--akzent); }
table.positionen tr.pos:focus { outline: none; }
table.positionen tr.pos:focus-visible td { box-shadow: inset 0 1.5px 0 var(--akzent), inset 0 -1.5px 0 var(--akzent); }
table.positionen tr.pos:focus-visible td:first-child { box-shadow: inset 3px 0 0 var(--akzent), inset 0 1.5px 0 var(--akzent), inset 0 -1.5px 0 var(--akzent); }
table.positionen tr.pos.erledigt td.kurztext .kurzknopf { color: var(--text-2); }
table.positionen td.oz { color: var(--text-2); font-variant-numeric: tabular-nums; }
table.positionen td.kurztext { padding-top: 0; padding-bottom: 0; }
.kurzknopf { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 7px; width: 100%; height: 33px; min-width: 0; }
.kurzknopf .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.kurzknopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: -2px; border-radius: 4px; }
.kurzknopf .marke-text { font-size: 11px; padding: 0 6px; flex: none; }
table.positionen tr.textzeile td { color: var(--text-3); font-style: italic; height: 30px; background: var(--flaeche); }
table.positionen td.menge .e { color: var(--text-3); margin-left: 4px; }
.zeitfeld {
  width: 68px; padding: 2px 7px; border: 1px solid var(--linie-2); border-radius: 6px; background: var(--flaeche); color: var(--text);
  text-align: right; font-variant-numeric: tabular-nums; font-weight: 550;
  transition: box-shadow .25s, border-color .25s, background-color .25s;
}
.zeitfeld:focus { border-color: var(--akzent); outline: 2px solid var(--akzent); outline-offset: 0; }
.zeitfeld.hand { border-color: var(--hand); color: var(--hand); font-weight: 700; }
.zeitfeld.gespeichert { border-color: var(--gruen); background: var(--gruen-zart); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gruen) 35%, transparent); }
.zeitfeld.fehler { border-color: var(--rot); background: var(--rot-zart); }
.zeitfeld:read-only { background: transparent; border-color: transparent; }
table.positionen td.zeit { overflow: visible; position: relative; }
.zeitfehler { position: absolute; right: 10px; top: 100%; margin-top: -4px; z-index: 4; background: var(--rot); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 5px; white-space: nowrap; box-shadow: var(--schatten); }
@media (prefers-color-scheme: dark) { .zeitfehler { color: #1b0c0a; } }
.ampel { display: inline-flex; align-items: center; gap: 6px; }
table.positionen td.herkunft { color: var(--text-2); }
table.positionen td.herkunft .art { color: var(--text-3); }
table.positionen td.ok input { width: 17px; height: 17px; accent-color: var(--akzent); cursor: pointer; vertical-align: middle; }
table.positionen tr.detailzeile td { white-space: normal; padding: 0; background: var(--flaeche-2); height: auto; overflow: visible; }
table.positionen tbody.zu tr.pos, table.positionen tbody.zu tr.textzeile, table.positionen tbody.zu tr.detailzeile { display: none; }
.keine-treffer { padding: 30px 20px; }

.detail { padding: 16px 18px 28px; display: flex; flex-direction: column; gap: 16px; white-space: normal; }
.detail .kopf { display: flex; flex-direction: column; gap: 4px; }
.detail .kopf .oz { color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 12.5px; display: flex; gap: 10px; align-items: center; }
.detail .kopf .oz .knopf { margin-left: auto; }
.detail .kopf h2 { font-size: 15px; overflow-wrap: anywhere; }
.detail .kopf .zahlen { display: flex; gap: 6px 16px; flex-wrap: wrap; color: var(--text-2); font-variant-numeric: tabular-nums; }
.detail section { display: flex; flex-direction: column; gap: 7px; }
.herkunftskasten { border-radius: var(--rund); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--linie); background: var(--flaeche-2); }
.herkunftskasten .art { font-weight: 700; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.herkunftskasten .art svg { width: 17px; height: 17px; flex: none; }
.herkunftskasten.bibliothek { background: var(--akzent-zart); border-color: transparent; }
.herkunftskasten.bibliothek .art { color: var(--akzent-kraeftig); }
.herkunftskasten.eigen { background: var(--gruen-zart); border-color: transparent; }
.herkunftskasten.eigen .art { color: var(--gruen); }
.herkunftskasten.gemischt { background: var(--gelb-zart); border-color: transparent; }
.herkunftskasten.gemischt .art { color: var(--gelb); }
.herkunftskasten.standard, .herkunftskasten.hand { background: var(--hand-zart); border-color: transparent; }
.herkunftskasten.standard .art, .herkunftskasten.hand .art { color: var(--hand); }
.vergleich { display: grid; grid-template-columns: max-content 1fr; gap: 4px 10px; }
.vergleich dt { color: var(--text-3); }
.vergleich dd { margin: 0; overflow-wrap: anywhere; }
.langtext { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); max-height: 220px; overflow: auto; border: 1px solid var(--linie); border-radius: var(--rund); padding: 8px 10px; background: var(--flaeche-2); font-size: 13px; }
.detail details > summary { cursor: pointer; font-weight: 600; color: var(--text-2); }
.detail details[open] > summary { margin-bottom: 6px; }
.kandidat { border: 1px solid var(--linie); border-radius: var(--rund); padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; }
.kandidat .text { overflow-wrap: anywhere; }
.kandidat .angaben { display: flex; gap: 4px 12px; flex-wrap: wrap; color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; align-items: center; }
.kandidat .knopf { align-self: flex-start; white-space: normal; text-align: left; }
.notizstatus { font-size: 12.5px; color: var(--text-3); min-height: 1.2em; }

/* ---------- 8 übrige Ansichten ---------- */
.vorschau { border: 1px solid var(--akzent); border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; background: var(--flaeche); }
.dateiwahl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dateiwahl input[type="file"] { max-width: 100%; }
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vorher-nachher td.neu { font-weight: 700; }
.status-zeile { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.protokoll-angaben { color: var(--text-2); font-size: 12.5px; overflow-wrap: anywhere; }
.tasten { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; align-items: baseline; }
.tasten dd { margin: 0; }
.ampel-erklaerung { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; margin: 0; align-items: baseline; }
.ampel-erklaerung dd { margin: 0; }

/* ---------- 9 schmale Bildschirme ---------- */
@media (max-width: 900px) {
  .gruppe.zweier { grid-template-columns: 1fr; }
  .kopfleiste { gap: 10px; padding: 0 12px; }
  .konto .wer { display: none; }
  .seite { padding: 18px 14px 50px; }
  .zweispaltig { grid-template-columns: 1fr; }
  table.positionen col.c-herkunft { width: 120px; }
  .projektkopf, .filterleiste { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 700px) {
  table.positionen { table-layout: auto; min-width: 760px; }
  .marke span { display: none; }
  .filterleiste .rechts { margin-left: 0; }
}
@media print {
  .kopfleiste, .filterleiste, .detailspalte, .meldungen { display: none; }
  .inhalt, .tabellenrahmen, .pruefen, .rahmen, #app, html, body { height: auto; overflow: visible; }
}

/* ---------- 10 Angebote & Nachträge ---------- */
.seite.breit { max-width: 1480px; }
.filterzeile { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filterzeile .eingabe { width: auto; }
.zurueck-link { color: var(--text-3); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.zurueck-link svg { width: 13px; height: 13px; }
.zurueck-link:hover { color: var(--akzent); }
.vorgangskopf { display: flex; flex-direction: column; gap: 10px; }
.vorgangskopf .zeile1 { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.vorgangskopf .zeile1 > .titel { flex: 1; min-width: 260px; }
.vorgangskopf h1 .nummer { color: var(--text-3); font-weight: 600; }
.vorgangskopf .unter { color: var(--text-3); font-size: 12.5px; display: flex; gap: 4px 14px; flex-wrap: wrap; margin-top: 4px; }
.eingabe.kompakt { padding: 4px 8px; width: auto; }
.reiterflaeche { padding-top: 6px; display: flex; flex-direction: column; gap: 14px; }
.reiterflaeche:focus { outline: none; }
.zwei-spalten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.zwei-spalten > section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
table.ap-positionen { font-size: 13px; }
table.ap-positionen td { padding: 5px 8px; vertical-align: middle; }
table.ap-positionen th { padding: 8px; }
table.ap-positionen td.oz { color: var(--text-2); white-space: nowrap; }
table.ap-positionen td.kurztext { max-width: 420px; }
table.ap-positionen .kurzknopf { height: auto; min-height: 30px; }
table.ap-positionen .kurzknopf svg { width: 13px; height: 13px; flex: none; color: var(--text-3); transition: rotate .12s; }
table.ap-positionen .kurzknopf[aria-expanded="false"] svg { rotate: -90deg; }
table.ap-positionen td.zeit { overflow: visible; }
table.ap-positionen .zeitfeld { width: 74px; }
table.ap-positionen td.b { font-weight: 650; }
table.ap-positionen td.m, table.ap-positionen th.m { text-align: center; }
table.ap-positionen td .e { color: var(--text-3); }
table.ap-positionen tr.entfall td { color: var(--rot); }
table.ap-positionen tr.textzeile td { color: var(--text-3); font-style: italic; }
table.ap-positionen tr.detailzeile td { background: var(--flaeche-2); padding: 0; }
table.ap-positionen .herkunft svg { width: 12px; height: 12px; vertical-align: -2px; margin-right: 3px; }
.ap-detail { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.ap-detail .langtext, .textentwurf { white-space: pre-wrap; margin: 0; font: inherit; }
.ap-detail h3 { margin-top: 4px; }
table.liste.kompakt td { padding: 3px 6px; }
table.liste.kompakt .eingabe { padding: 4px 6px; }
.eingabe.mittel { width: 140px; }
.stueckliste, .nebenzeiten { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.stueckliste .tabellen-rollen { align-self: stretch; }
.neue-position { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 4px; }
.neue-position .eingabe:not(.kurz) { flex: 1; min-width: 240px; }
.neue-position select.eingabe { flex: none; min-width: 0; width: auto; }
.dateiwahl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.marke-text.ki { background: var(--hand-zart); border-color: transparent; color: var(--hand); }
.ki-vorschlag { border: 1px dashed var(--hand); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: color-mix(in srgb, var(--hand-zart) 35%, var(--flaeche)); }
.ki-vorschlag + .ki-vorschlag { margin-top: 14px; }
.ki-hinweis p { margin: 6px 0; }
.ki-tabelle tr.erledigt td { opacity: .6; }
.ki-tabelle td { font-size: 13px; }
.langtext-kurz { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.auswahl.senkrecht { flex-direction: column; }
textarea.eingabe.brief { font-family: var(--schrift); min-height: 260px; }
label.haken.gross { font-weight: 650; font-size: 15px; }
.balken.breit { height: 10px; }
.logo-vorschau { max-width: 320px; max-height: 110px; border: 1px solid var(--linie); border-radius: 6px; padding: 6px; background: #fff; }
.flaeche-nachtragsliste { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) { .zwei-spalten { grid-template-columns: 1fr; } }

/* ---------- 10 Regieberichte (Erfassung am Handy: große Knöpfe, ein Bericht je Bildschirm) ---------- */
.knopf.gross { padding: 12px 16px; font-size: 15px; border-radius: 9px; min-height: 46px; }
.knopf.gross svg { width: 18px; height: 18px; }
.knopf.haupt-zart { background: var(--akzent-zart); border-color: var(--akzent); color: var(--akzent-kraeftig); }
.knopf.laeuft { background: var(--rot); border-color: var(--rot); color: #fff; }
textarea.eingabe.gross, .eingabe.gross { font-size: 16px; }
.regie-handy .karte { gap: 14px; }
.regie-handy h2 { font-size: 17px; }
.regie-handy .eingabe { font-size: 16px; }                     /* 16 px: das Handy zoomt beim Tippen nicht hinein */
.regie-karten { display: flex; flex-direction: column; gap: 10px; }
.regie-karte { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche); color: var(--text); text-decoration: none; }
.regie-karte:hover { border-color: var(--akzent); }
.regie-karte .zeile { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.regie-rohtext { white-space: pre-wrap; background: var(--flaeche-2); padding: 8px 10px; border-radius: var(--rund); }
.regie-fotos { display: flex; gap: 10px; flex-wrap: wrap; }
.regie-fotos figure { margin: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.regie-fotos img { width: 112px; height: 112px; object-fit: cover; border-radius: 8px; border: 1px solid var(--linie); background: var(--flaeche-2); }
.regie-eintraege, .regie-material { display: flex; flex-direction: column; gap: 10px; }
.regie-eintrag { border: 1px solid var(--linie); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--flaeche-2); }
.regie-eintrag.offen, .regie-materialzeile.offen { border-color: var(--gelb-punkt); }
.regie-eintrag .zeile, .regie-materialzeile { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.regie-eintrag .zeile > .eingabe:first-child, .regie-materialzeile > .eingabe:first-child { flex: 1 1 160px; min-width: 0; }
.regie-eintrag .zeile > select.eingabe { width: auto; flex: 0 1 150px; }
.regie-materialzeile { border-bottom: 1px solid var(--linie); padding-bottom: 8px; }
.regie-materialzeile select.eingabe { width: auto; }
label.mini { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--text-2); }
label.mini .eingabe { width: 112px; }
label.mini input[type="number"].eingabe { width: 84px; }
.regie-std { font-weight: 700; padding: 9px 0; display: inline-block; min-width: 70px; }
.regie-summe { font-weight: 700; }
.regie-fuss { position: sticky; bottom: 0; background: color-mix(in srgb, var(--grund) 92%, transparent); padding: 10px 0; z-index: 5; display: flex; flex-direction: column; gap: 6px; }
.regie-fuss .aktionen { flex-wrap: wrap; }
.regie-fuss:empty, .regie-fuss[hidden] { display: none; }
.regie-weitere { justify-content: flex-start; }
.regie-unterschrift { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.regie-unterschrift img { max-width: 320px; width: 100%; background: #fff; border: 1px solid var(--linie); border-radius: 8px; }
canvas.unterschrift-flaeche { width: 100%; height: 200px; background: #fff; border: 1px dashed var(--linie-2); border-radius: 8px; touch-action: none; display: block; }
.ki-markiert { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.regie-tag { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--linie); padding-top: 10px; }
.regie-tag-bericht { display: flex; flex-direction: column; gap: 6px; }
table.liste tfoot td { font-weight: 700; border-top: 1px solid var(--linie-2); }
.rahmen.monteur .kopfleiste .hauptnav a { font-size: 15px; }
@media (max-width: 700px) {
  .regie-handy { padding: 14px 12px 40px; }
  .regie-handy .reihe { flex-direction: column; align-items: stretch; }
  .regie-handy .aktionen .knopf.gross { flex: 1 1 100%; }
  .regie-handy .regie-fuss .aktionen .knopf { flex: 1 1 40%; padding-left: 8px; padding-right: 8px; white-space: normal; }
  label.mini .eingabe { width: 100px; }
}

/* ---------- 10 Rechtliches (Impressum, Datenschutz, Nutzungsbedingungen, AV-Vertrag: statische Seiten unter recht/) ---------- */
.anmeldung { grid-template-rows: 1fr auto; }
.anmeldung > .karte { align-self: center; }
.recht-verweise { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 12.5px; }
.recht-verweise a { color: var(--text-3); }
.menue .recht-verweise { justify-content: flex-start; gap: 0; border-top: 1px solid var(--linie); margin-top: 6px; padding-top: 4px; }
.menue .recht-verweise a { font-size: 12.5px; color: var(--text-3); }
body.recht { background: var(--grund); }
.recht-kopf { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; padding: 12px 20px; background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.recht-kopf nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.recht-kopf nav a { color: var(--text-2); text-decoration: none; }
.recht-kopf nav a[aria-current="page"] { color: var(--akzent); font-weight: 600; }
.recht-text { max-width: 760px; margin: 0 auto; padding: 28px 20px 40px; line-height: 1.6; }
.recht-text h1 { font-size: 26px; margin: 0 0 8px; }
.recht-text h2 { font-size: 18px; margin: 28px 0 6px; }
.recht-text h3 { font-size: 15px; margin: 18px 0 4px; }
.recht-text p, .recht-text ul { margin: 0 0 10px; }
.recht-text a { color: var(--akzent); }
.recht-text mark.offen { background: var(--gelb-zart); color: var(--gelb); border-radius: 4px; padding: 0 4px; font-family: var(--schrift-fest); font-size: .9em; }
.recht-tabelle { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 14px; }
.recht-tabelle th, .recht-tabelle td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--linie); }
.recht-fuss { text-align: center; padding: 0 20px 32px; font-size: 13px; }
.recht-fuss a { color: var(--text-3); }
@media print {
  .recht-kopf nav, .recht-fuss { display: none; }
  .recht-text mark.offen { background: none; color: inherit; }
}

.entw-filter { width: auto; max-width: 100%; }

/* ---------- Feedback ---------- */
.feedback-knopf { flex: none; margin-left: auto; }
.feedback-knopf + .konto { margin-left: 0; }
.feedback-knopf svg { width: 15px; height: 15px; }
.feedback-arten { flex-wrap: wrap; gap: 6px; }
.feedback-themen { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.feedback-thema h3 { margin: 0; font-size: 15px; text-transform: none; letter-spacing: normal; color: var(--text); }
.feedback-thema p { margin: 0; }
@media (max-width: 1400px) { .feedback-knopf span { display: none; } .feedback-knopf { padding: 6px; } .feedback-knopf svg { width: 17px; height: 17px; } }

/* ---------- Einkauf ---------- */
.ek-ampel { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.ek-ampel .marke-text { padding: 0 7px; min-width: 22px; justify-content: center; }
.ek-hinweise { background: var(--gelb-zart); border-radius: 10px; padding: 10px 14px; }
.ek-hinweise ul { margin: 4px 0 0 18px; }
.ek-angaben { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.ek-angaben dt { color: var(--text-3); font-size: 12.5px; padding-top: 2px; }
.ek-angaben dd { margin: 0; overflow-wrap: anywhere; }
.ek-zuordnen { background: var(--flaeche-2); border-radius: 10px; padding: 10px 12px; }
.ek-zuordnen label { display: inline-flex; gap: 6px; align-items: center; }
.ek-positionen tr.ek-offen td { background: var(--rot-zart); }
.ek-zuo { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ek-stamm .eingabe { min-width: 120px; }

/* ---------- Sicherheit: Zwei-Faktor-Anmeldung, Geräte ---------- */
.anmeldung .karte.breit { width: min(520px, 100%); }
.qr { margin: 10px 0; }
.qr svg { width: 200px; height: 200px; max-width: 100%; display: block; background: #fff; border-radius: 6px; }
.schluessel { display: inline-block; font-family: ui-monospace, monospace; font-size: 15px; letter-spacing: .05em; padding: 6px 8px; background: var(--flaeche-2, rgba(0,0,0,.05)); border-radius: 6px; user-select: all; word-break: break-all; }
.code-eingabe { font-family: ui-monospace, monospace; font-size: 20px; letter-spacing: .2em; max-width: 14em; }
.ersatzcodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; list-style: none; padding: 0; font-family: ui-monospace, monospace; font-size: 16px; }
.geraete { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.geraete li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.geraete li > .leise { grid-column: 1; }
.geraete li > button { grid-column: 2; grid-row: 1 / span 2; }
.geraete .marke-text { margin-left: 8px; }
.abschnitt { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }

/* Kontaktformular (recht/kontakt.html) */
.kontakt-formular { margin-top: 18px; }
.kontakt-falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
label.haken.kontakt-einwilligung { align-items: flex-start; font-size: 14px; }
.kontakt-einwilligung input { margin-top: 4px; flex: none; }
