/* Abrechnungswerkzeug: Oberfläche des Betriebs. Ruhig, eine Schrift, eine Akzentfarbe. */
:root {
  --grund: #f5f5f7; --flaeche: #ffffff; --linie: #d2d2d7; --linie-hell: #e8e8ed;
  --text: #1d1d1f; --still: #6e6e73; --akzent: #0b5fb0; --akzent-dunkel: #094a8a;
  --rot: #b3261e; --rot-hell: #fbeceb; --gruen: #1e6b3a; --gruen-hell: #e8f4ec; --blau-hell: #e7f0fa; --gelb-hell: #fff6e0;
}
* { box-sizing: border-box; }
html { font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; color: var(--text); background: var(--grund); }
body { margin: 0; }
a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }
.kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); padding: 0 24px; display: flex; align-items: center; gap: 28px; min-height: 52px; flex-wrap: wrap; }
.marke { font-weight: 600; font-size: 16px; color: var(--text); white-space: nowrap; }
.marke span { color: var(--still); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a { padding: 6px 10px; border-radius: 6px; color: var(--text); }
.nav a:hover { background: var(--grund); text-decoration: none; }
.nav a.an { background: var(--blau-hell); color: var(--akzent-dunkel); font-weight: 600; }
.abmelden { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.wer { color: var(--still); font-size: 13px; }
main { max-width: 1080px; margin: 0 auto; padding: 24px 24px 64px; }
main.schmal { max-width: 460px; padding-top: 56px; }
h1 { font-size: 24px; font-weight: 600; margin: 4px 0 16px; }
h2 { font-size: 16px; font-weight: 600; margin: 0 0 10px; }
h3 { font-size: 14px; font-weight: 600; margin: 18px 0 6px; }
main > h2 { margin-top: 28px; }
p { margin: 0 0 10px; }
.still { color: var(--still); font-size: 13px; font-weight: 400; }
.pfad { font-size: 13px; color: var(--still); margin-bottom: 2px; }
.leer { color: var(--still); font-size: 13px; padding: 6px 0; }
.karte { background: var(--flaeche); border: 1px solid var(--linie-hell); border-radius: 10px; padding: 18px 20px; margin: 0 0 16px; }
.karte.warn { background: var(--gelb-hell); border-color: #ecd9a0; }
.karte.warn ul { margin: 0; padding-left: 18px; }
details.karte > summary { cursor: pointer; font-weight: 600; }
details.karte[open] > summary { margin-bottom: 12px; }
.meldung { border-radius: 8px; padding: 10px 14px; margin: 0 0 16px; border: 1px solid; }
.meldung.gut { background: var(--gruen-hell); border-color: #b9dcc5; color: var(--gruen); }
.meldung.fehler { background: var(--rot-hell); border-color: #efc1bd; color: var(--rot); }
.meldung ul { margin: 6px 0 0; padding-left: 18px; }
.tabelle { overflow-x: auto; margin: 0 0 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-weight: 600; font-size: 12px; color: var(--still); padding: 6px 10px; border-bottom: 1px solid var(--linie); white-space: nowrap; }
td { padding: 8px 10px; border-bottom: 1px solid var(--linie-hell); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td small { display: block; color: var(--still); font-size: 12px; }
.zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.summe td { border-bottom: 0; padding-top: 4px; padding-bottom: 4px; color: var(--still); text-align: right; }
tr.summe.fett td { color: var(--text); font-weight: 600; border-top: 1px solid var(--text); }
tr.blass td { color: var(--still); }
.stand { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; white-space: nowrap; }
.stand.grau { background: var(--grund); color: var(--still); }
.stand.blau { background: var(--blau-hell); color: var(--akzent-dunkel); }
.stand.gruen { background: var(--gruen-hell); color: var(--gruen); }
.stand.rot { background: var(--rot-hell); color: var(--rot); }
h1 .stand { vertical-align: middle; font-weight: 400; }
.filter { display: flex; gap: 4px; margin-bottom: 12px; }
.filter a { padding: 4px 12px; border-radius: 14px; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie-hell); font-size: 13px; }
.filter a.an { background: var(--akzent); border-color: var(--akzent); color: #fff; }
form { margin: 0 0 12px; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; margin-bottom: 12px; }
.raster.eins { grid-template-columns: 1fr; }
.feld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.feld.breit { grid-column: 1 / -1; }
.feld > span { color: var(--still); }
.feld small, .haken small { color: var(--still); font-size: 12px; display: block; }
input, select, textarea { font: inherit; color: var(--text); background: #f0f0f3; border: 1px solid transparent; border-radius: 7px; padding: 7px 10px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--akzent); outline-offset: 0; background: var(--flaeche); }
input[type="checkbox"] { width: auto; margin: 3px 0 0; }
input[type="file"] { background: none; padding: 4px 0; }
textarea { resize: vertical; }
.haken { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; font-size: 14px; }
.haken.eng { margin-bottom: 6px; font-size: 13px; }
button, .knopf { font: inherit; font-weight: 600; cursor: pointer; display: inline-block; background: var(--akzent); color: #fff; border: 1px solid var(--akzent); border-radius: 7px; padding: 7px 14px; text-decoration: none; }
button:hover, .knopf:hover { background: var(--akzent-dunkel); text-decoration: none; }
button.zweit, .knopf.zweit { background: var(--flaeche); color: var(--akzent-dunkel); border-color: var(--linie); }
button.zweit:hover, .knopf.zweit:hover { background: var(--grund); }
button.gefahr { background: var(--flaeche); color: var(--rot); border-color: #efc1bd; }
button.gefahr:hover { background: var(--rot-hell); }
button.link { background: none; border: 0; padding: 0; color: var(--akzent); font-weight: 400; }
button.link:hover { text-decoration: underline; background: none; }
.bestaetigen { border-top: 1px solid var(--linie-hell); padding-top: 12px; }
.reihe { display: flex; gap: 10px; flex-wrap: wrap; }
.reihe form { margin: 0; }
code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--grund); padding: 1px 5px; border-radius: 4px; }
code.schluessel { display: inline-block; font-size: 15px; padding: 8px 12px; letter-spacing: 0.5px; word-break: break-all; user-select: all; }
@media (max-width: 640px) { .kopf { padding: 8px 14px; gap: 8px; } main { padding: 16px 14px 48px; } }
