/* BL-Cockpit – DRK-Look, schlicht. */
:root {
  --rot: #E60005; --rot-dunkel: #A30008; --rot-hell: #FDECEC;
  --text: #1E1E1E; --text-2: #5C5C58; --linie: #DDDCD8; --linie-2: #ECEBE7;
  --grund: #F4F4F2; --flaeche: #FFFFFF; --blau: #257DE0;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--grund); color: var(--text); font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: #B0000A; } a:hover { color: #7A0007; }
h1 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
h2 { margin: 0; font-size: 17px; }
.unter { margin: 6px 0 0; color: var(--text-2); }
.klein { font-size: 13px; color: var(--text-2); }

.kopf { background: var(--flaeche); border-top: 6px solid var(--rot); border-bottom: 1px solid var(--linie); }
.kopf-innen { max-width: 1320px; margin: 0 auto; padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.marke b { display: block; font-size: 18px; }
.nutzer { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-2); }
.nutzer form { margin: 0; }

.rahmen { max-width: 1320px; margin: 0 auto; padding: 20px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.navi { flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; gap: 4px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 10px; }
.navi a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; }
.navi a:hover { background: var(--grund); }
.navi a.aktiv { background: var(--rot-hell); color: var(--rot-dunkel); font-weight: 600; }
.navi .zahl { font-size: 12px; font-weight: 600; min-width: 22px; text-align: center; padding: 2px 6px; border-radius: 10px; background: #EFEEEA; color: #45453F; }
.navi a.aktiv .zahl { background: var(--rot-dunkel); color: #fff; }
.navi .trenner { border-top: 1px solid var(--linie-2); margin: 8px 0 4px; }
.inhalt { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.karte.hinweisrand { border-color: #E8C79A; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kachel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.kachel .wert { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.raster2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }

.badge { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 12px; }
.b-orange { background: #FFF1E0; color: #8A4B00; } .b-blau { background: #E6F0FB; color: #1D4F91; }
.b-rot { background: var(--rot-hell); color: var(--rot-dunkel); } .b-gruen { background: #EAF4EE; color: #1F5C3A; }
.b-grau { background: #EFEEEA; color: #45453F; }

.liste-zeile { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--linie-2); }
.tabelle-box { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; padding: 12px 10px; }
td { padding: 12px 10px; border-top: 1px solid var(--linie-2); vertical-align: top; }
th:first-child, td:first-child { padding-left: 16px; } th:last-child, td:last-child { padding-right: 16px; }
caption { text-align: left; padding: 14px 16px 4px; font-weight: 600; font-size: 17px; }
.zahl-r { text-align: right; font-variant-numeric: tabular-nums; }
.warnung { font-size: 13px; color: var(--rot-dunkel); margin-top: 6px; font-weight: 500; }
.balken { height: 6px; background: var(--linie-2); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.balken > span { display: block; height: 100%; background: var(--blau); border-radius: 3px; }
.balken.dick { height: 8px; }

form.zeile { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; }
label.breit { flex: 1 1 220px; }
label.check { flex-direction: row; align-items: center; gap: 8px; }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid #C9C8C3; border-radius: 6px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--blau); outline-offset: 1px; }
button, .knopf { font: inherit; font-weight: 600; border: 0; border-radius: 8px; padding: 10px 16px; min-height: 44px; cursor: pointer; background: #1E1E1E; color: #fff; text-decoration: none; display: inline-flex; align-items: center; }
button.primaer { background: var(--rot); }
button.leise { background: #fff; color: var(--text); border: 1px solid #C9C8C3; font-weight: 500; }
button.mini { min-height: 32px; padding: 4px 10px; font-size: 13px; }

.meldung { padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.meldung.ok { background: #EAF4EE; color: #1F5C3A; } .meldung.fehler { background: var(--rot-hell); color: var(--rot-dunkel); }

.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .tip { position: absolute; top: 0; background: #fff; border: 1px solid var(--linie); border-radius: 8px; padding: 8px 10px; box-shadow: 0 4px 14px rgba(0,0,0,.08); pointer-events: none; white-space: nowrap; }
.chart .tip b { display: block; font-size: 14px; }
.chart .tip span { font-size: 12px; color: var(--text-2); }
.legende { display: flex; gap: 16px; font-size: 12px; color: var(--text-2); align-items: center; flex-wrap: wrap; }
.legende i { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--blau); vertical-align: middle; margin-right: 6px; }
.legende i.soll { border-top: 2px dashed #8A8A84; }

.abend { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 12px 16px; border-top: 1px solid var(--linie-2); margin: 0; }
.abend .datum { width: 92px; font-weight: 600; align-self: center; }
.abend:target { background: #FFFBEA; }

.login { max-width: 420px; margin: 60px auto; }
.slack-knopf { background: #4A154B; color: #fff; }

@media (max-width: 640px) {
  .navi { max-width: none; flex-direction: row; flex-wrap: wrap; }
  .navi a { flex: 1 1 140px; }
  .navi .trenner { display: none; }
}
