/* Betreiber-Oberfläche (E218). Seit E251 nach dem Design-System (docs/49): gleiche Grundwerte, Knopf-Ausprägungen und Felder wie die App,
   Plattform-Farbe statt Büro-Farbe (die Betreiber-Seite gehört keinem Büro). */
:root { --text: #1b2329; --muted: #56636e; --border: #e1e5ea; --feld: #8b96a1; --bg: #f5f6f8; --card: #fff; --accent: #2c5784; --fill: #3a6ea5; --error: #c0262d; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
header { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); background: var(--card); border-bottom: 1px solid var(--border); }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
section { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; box-shadow: 0 1px 2px rgba(16,24,40,.05); margin-bottom: 12px; }
h2 { font-size: 17px; margin: 0 0 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 6px 8px; border-top: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; border-top: 0; }
.tabelle { overflow-x: auto; }
.muted { color: var(--muted); } .klein { font-size: 13px; } .fehler { color: var(--error); } .ok { color: #1d7a3a; }
input, select, button { font: inherit; }
/* Abstände zwischen Beschriftung und Feld und zwischen den Feldern (Rückmeldung Tobias 18.11.2026) */
/* Feld immer unter der Beschriftung (Rückmeldung 19.11.2026: standen nebeneinander ohne Abstand) */
input, select, textarea { display: block; min-height: 44px; padding: 9px 12px; border: 1px solid var(--feld); border-radius: 10px; width: 100%; max-width: 420px; margin-top: 6px; font: inherit; font-weight: 400; }
textarea { max-width: 640px; resize: vertical; }
.meldungen { display: flex; flex-direction: column; gap: 12px; }
.meldung { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.meldung p { margin: 0 0 8px; }
.meldung-text { white-space: pre-wrap; }
.meldung label { margin-bottom: 10px; }
.meldung p.fehler:empty { display: none; }
.balken { height: 10px; background: #e6e8ec; border-radius: 5px; overflow: hidden; margin: 4px 0 8px; }
.balken span { display: block; height: 100%; background: var(--fill); }
details summary { cursor: pointer; color: var(--accent); margin-bottom: 8px; }
label { display: block; margin: 0 0 16px; font-weight: 600; }
form { margin-top: 8px; }
form p.fehler:empty { display: none; }
form > button { margin-top: 4px; }
h3 { margin: 20px 0 12px; font-size: 15px; }
section > h2 + * { margin-top: 0; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--fill);
  background: var(--fill); color: #fff; border-radius: 10px; cursor: pointer; font-weight: 600; box-shadow: 0 1px 2px rgba(16,24,40,.12);
  transition: background-color .14s, border-color .14s; }
button:hover:not(:disabled) { background: color-mix(in srgb, var(--fill) 88%, #000); }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.zweit { background: #fff; color: var(--text); border-color: var(--border); box-shadow: 0 1px 2px rgba(16,24,40,.05); }
button.zweit:hover:not(:disabled) { background: #fff; border-color: var(--accent); }
button.link { border: 0; background: none; color: var(--accent); padding: 0 8px; min-height: 32px; box-shadow: none; text-decoration: none; }
button.link:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 9%, #fff); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.zeile { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
code { background: #eef1f4; padding: 2px 5px; border-radius: 4px; word-break: break-all; }
/* Rückfragen (E252) */
.dialog-hintergrund { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(15, 19, 22, .45); backdrop-filter: blur(3px); }
.dialog { width: 100%; max-width: 460px; background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 16px 40px -8px rgba(16,24,40,.25); }
.dialog h2 { font-size: 17px; margin: 0 0 8px; }
.dialog p { margin: 0 0 12px; color: var(--muted); white-space: pre-line; }
.dialog-knoepfe { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
button.gefahr { background: var(--error); border-color: var(--error); }
/* Rechnungen (E282) */
.bank-liste { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.bank-zeile { border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.bank-zeile p { margin: 0 0 4px; }
.schalter { margin-bottom: 8px; }
.schalter p { margin: 2px 0 0; }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 4px 0 12px; }
.kennzahl { display: flex; flex-direction: column; gap: 2px; background: #f0f2f5; border-radius: 10px; padding: 10px 12px; min-width: 0; }
.kennzahl strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.kennzahl.warn { background: #fdf1dc; }
.status { font-weight: 600; white-space: nowrap; }
.filter { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 12px; }
.positionen { display: flex; flex-direction: column; gap: 4px; }
.position { display: grid; grid-template-columns: minmax(0, 3fr) minmax(70px, 1fr) minmax(110px, 1fr) auto; gap: 0 12px; align-items: end;
  border-top: 1px solid var(--border); padding-top: 12px; }
.position label { margin-bottom: 12px; }
@media (max-width: 640px) { .position { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .position label:first-child { grid-column: 1 / -1; } }
section.hinweis { border-left: 4px solid #935800; background: #fdf1dc; }
a.knopf-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); text-decoration: none; font-weight: 600; background: #fff; }
a.knopf-link:hover { border-color: var(--accent); }
td .zeile { flex-wrap: nowrap; }
input.haken { display: inline-block; width: auto; min-height: 0; margin: 0 6px 0 0; vertical-align: middle; }
