:root {
  --bg: #f5f6f8; --karte: #fff; --text: #1d2330; --grau: #667085; --linie: #e3e6eb;
  --blau: #1f5eff; --blau-dunkel: #1546c4; --gruen: #12805c; --gruen-bg: #e6f6ef;
  --gelb: #9a6700; --gelb-bg: #fff6d6; --rot: #c0272d; --rot-bg: #fdecec; --info-bg: #eaf1ff;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--blau); text-decoration: none; }
a:hover { text-decoration: underline; }
header.oben { background: #111827; color: #fff; }
header.oben .innen { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
header.oben .logo { font-weight: 700; margin-right: 16px; padding: 14px 0; color: #fff; }
header.oben nav a { color: #cbd5e1; padding: 14px 10px; display: inline-block; }
header.oben nav a.aktiv, header.oben nav a:hover { color: #fff; text-decoration: none; background: #1f2937; }
header.oben .rechts { margin-left: auto; display: flex; gap: 8px; align-items: center; color: #cbd5e1; font-size: 14px; }
header.oben .rechts button { background: none; border: 1px solid #374151; color: #cbd5e1; padding: 4px 10px; border-radius: 6px; cursor: pointer; }
main { max-width: 1280px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font-size: 24px; margin: 4px 0 16px; }
h2 { font-size: 18px; margin: 24px 0 10px; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.kachel { background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: 14px 16px; }
.kachel .zahl { font-size: 26px; font-weight: 700; }
.kachel .text { color: var(--grau); font-size: 14px; }
table.liste { width: 100%; border-collapse: collapse; background: var(--karte); }
table.liste th { text-align: left; font-size: 13px; color: var(--grau); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--linie); white-space: nowrap; }
table.liste td { padding: 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }
table.liste tr:hover td { background: #fafbfc; }
.tabelle-rahmen { overflow-x: auto; border: 1px solid var(--linie); border-radius: 10px; background: var(--karte); }
.r { text-align: right; white-space: nowrap; }
.klein { font-size: 13px; color: var(--grau); }
.fett { font-weight: 700; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.gruen { background: var(--gruen-bg); color: var(--gruen); }
.badge.gelb, .badge.pausiert { background: var(--gelb-bg); color: var(--gelb); }
.badge.rot { background: var(--rot-bg); color: var(--rot); }
.badge.grau { background: #eef0f3; color: var(--grau); }
.punkt { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; }
.punkt.gruen { background: #16a34a; } .punkt.gelb, .punkt.pausiert { background: #eab308; } .punkt.rot { background: #dc2626; } .punkt.grau { background: #cbd5e1; }
.meldung { padding: 10px 14px; border-radius: 8px; margin-bottom: 10px; border: 1px solid transparent; }
.meldung.ok { background: var(--gruen-bg); color: #0b5c41; border-color: #b7e4cf; }
.meldung.fehler { background: var(--rot-bg); color: #8f1d22; border-color: #f5c2c4; }
.meldung.info { background: var(--info-bg); color: #1d3f91; border-color: #c9d8ff; }
form.zeile { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
label { display: block; font-size: 13px; color: var(--grau); margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #cfd4dc; border-radius: 8px; font: inherit; background: #fff; }
textarea { min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #b9cbff; border-color: var(--blau); }
.feld { margin-bottom: 12px; }
.felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; }
.check { display: flex; gap: 8px; align-items: center; margin: 6px 0 12px; color: var(--text); font-size: 15px; }
.check input { width: 18px; height: 18px; }
.knopf, button { display: inline-block; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--blau); background: var(--blau); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.knopf:hover, button:hover { background: var(--blau-dunkel); text-decoration: none; }
.knopf.zweit, button.zweit { background: #fff; color: var(--text); border-color: #cfd4dc; }
.knopf.zweit:hover, button.zweit:hover { background: #f3f4f6; }
.knopf.gefahr, button.gefahr { background: #fff; color: var(--rot); border-color: #f0b4b6; }
button.klein, .knopf.klein { padding: 3px 8px; font-size: 13px; font-weight: 500; }
.leiste { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.leiste .rechts { margin-left: auto; }
.inline { display: inline; }
.hinweisbox { background: var(--info-bg); border: 1px solid #c9d8ff; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.warnbox { background: var(--gelb-bg); border: 1px solid #f1d98a; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.warnbox ul, .hinweisbox ul { margin: 6px 0 0; padding-left: 20px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .zwei { grid-template-columns: 1fr; } header.oben nav a { padding: 10px 8px; } }
.login { max-width: 380px; margin: 60px auto; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
details summary { cursor: pointer; color: var(--blau); }
.seiten { display: flex; gap: 6px; margin-top: 10px; }
tr.erledigt td { color: var(--grau); }
.vwz { max-width: 420px; font-size: 13px; }
