:root {
  --blau: #00247d; --blau-hell: #e9eefb; --rot: #d80018; --text: #1a2233; --grau: #5d6679;
  --linie: #d7dde8; --flaeche: #f3f5f9; --weiss: #fff; --gruen: #1b7a43; --gelb: #8a5a00;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--flaeche); color: var(--text); font: 15px/1.5 Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--blau); }
h1 { font-size: 22px; margin: 0; text-wrap: balance; }
h2 { font-size: 16px; margin: 0 0 10px; }

.kopf { background: var(--blau); color: #fff; padding: 12px 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kopf .marke { font-weight: 700; font-size: 17px; letter-spacing: .01em; }
.kopf .marke span { font-weight: 400; opacity: .8; margin-left: 8px; font-size: 14px; }
.kopf .wer { margin-left: auto; font-size: 14px; opacity: .92; }
.kopf a { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; padding: 4px 11px; font-size: 14px; }
.kopf a:hover { background: rgba(255,255,255,.14); }

.inhalt { max-width: 1180px; margin: 0 auto; padding: 24px 16px 60px; }
.titelzeile { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.titelzeile p { margin: 2px 0 0; color: var(--grau); }
.titelzeile .rechts { margin-left: auto; }

.knopf { display: inline-block; font: inherit; font-weight: 600; border-radius: 8px; border: 1px solid var(--linie); background: #fff; color: var(--text); padding: 8px 14px; cursor: pointer; text-decoration: none; }
.knopf:hover { border-color: #b6bfd0; }
.knopf.primaer { background: var(--blau); border-color: var(--blau); color: #fff; }
.knopf.primaer:hover { background: #001c63; }
.knopf.klein { padding: 4px 10px; font-size: 13px; font-weight: 500; }
.knopf:disabled { opacity: .5; cursor: default; }
:is(a, button, input, select, tr):focus-visible { outline: 3px solid #7aa2ff; outline-offset: 2px; }

.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kachel { background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 14px 16px; }
.kachel .zahl { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kachel .was { color: var(--grau); font-size: 13px; }

.karte { background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
input, select { font: inherit; padding: 8px 10px; border: 1px solid var(--linie); border-radius: 8px; background: #fff; color: var(--text); min-width: 0; }
.filter input { flex: 1 1 220px; }

.tabelle-rahmen { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--grau); font-weight: 600; padding: 8px 10px; border-bottom: 2px solid var(--linie); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid #e8ecf3; vertical-align: top; }
tbody tr.klick { cursor: pointer; }
tbody tr.klick:hover { background: var(--blau-hell); }
.rechts { text-align: right; }
.zahlen { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nr { font-weight: 600; white-space: nowrap; }
.neben { color: var(--grau); font-size: 13px; }
.leer { color: var(--grau); padding: 26px 10px; text-align: center; }

.marke-wer { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.marke-wer i { font-style: normal; font-size: 11px; font-weight: 700; background: var(--blau-hell); color: var(--blau); border-radius: 999px; padding: 2px 7px; }
.status { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status-entwurf { background: #eceff4; color: #4a5468; }
.status-versendet { background: var(--blau-hell); color: var(--blau); }
.status-angenommen { background: #dff3e7; color: var(--gruen); }
.status-abgelehnt { background: #fde3e1; color: #9b1c14; }

.schmal { max-width: 430px; margin: 8vh auto 0; padding: 0 16px; }
.schmal .karte { padding: 26px; }
.schmal h1 { margin-bottom: 6px; }
.schmal p { color: var(--grau); margin: 0 0 16px; }
.feld { display: block; margin-bottom: 12px; }
.feld span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.feld input, .feld select { width: 100%; }
.zweispaltig { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 14px; }
.meldung { border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; }
.meldung.fehler { background: #fde3e1; color: #7a1009; }
.meldung.gut { background: #dff3e7; color: #14522e; }
.meldung[hidden] { display: none; }
.hinweis { color: var(--grau); font-size: 13px; }
