:root{
  --bg:#0b0f14;
  --panel:#111826;
  --text:#e6eefc;
  --muted:#9bb0d1;
  --line:#1d2a42;

  --blue:#2a7fff;
  --green:#2bd36b;
  --yellow:#ffcf33;
  --red:#ff3b30;

  --alarm-bg:#520000;
  --alarm-text:#ffcf33;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}
.container{max-width:1200px;margin:0 auto;padding:16px}
.topbar{
  display:flex;align-items:center;gap:14px;
  border-bottom:1px solid var(--line);padding:12px 16px;
  position:sticky;top:0;background:rgba(11,15,20,0.95);backdrop-filter:blur(6px);
}
.logo{height:44px;width:auto;border-radius:8px;border:1px solid var(--line);background:#0a0a0a}
.brand{display:flex;flex-direction:column;gap:2px}
.brand .t1{font-weight:800;letter-spacing:0.3px}
.brand .t2{font-size:12px;color:var(--muted)}
.clock{margin-left:auto;text-align:right}
.clock .date{font-size:12px;color:var(--muted)}
.clock .time{font-size:22px;font-weight:800;letter-spacing:0.5px}

.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  box-shadow:0 10px 30px rgba(0,0,0,0.25);
}
.row{display:flex;gap:10px;flex-wrap:wrap}
input,select,button{
  background:#0b1320;border:1px solid var(--line);color:var(--text);
  padding:10px 10px;border-radius:12px;outline:none;
}
button{cursor:pointer;font-weight:700}
button.primary{background:#173255;border-color:#254b7c}
small{color:var(--muted)}
hr{border:0;border-top:1px solid var(--line);margin:12px 0}
.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 10px;border-radius:999px;border:1px solid var(--line);
  background:#0b1320;color:var(--muted);font-size:12px;
}
.log{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:12px;line-height:1.6;color:#cfe0ff;
  background:#09101b;border:1px solid var(--line);
  border-radius:12px;padding:10px;max-height:280px;overflow:auto;
}

/* Alarm overlay */
.alarmOverlay{
  position:fixed;inset:0;display:none;
  background:var(--alarm-bg);
  z-index:9999;
}
.alarmOverlay.on{display:flex;align-items:center;justify-content:center}
.alarmBox{
  width:min(1100px,92vw);
  border:2px solid rgba(255,207,51,0.35);
  border-radius:22px;
  padding:22px;
  background:rgba(0,0,0,0.25);
  box-shadow:0 20px 60px rgba(0,0,0,0.5);
  animation:pulse 1.2s ease-in-out infinite;
}
@keyframes pulse{
  0%{transform:scale(0.995); filter:brightness(0.95)}
  50%{transform:scale(1.005); filter:brightness(1.05)}
  100%{transform:scale(0.995); filter:brightness(0.95)}
}
.weather{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:14px;
  background: rgba(255,255,255,.03);
  min-width: 170px;
}
.weather .w1{ font-weight:900; }
.weather .w2{ color: var(--muted); font-size:12px; }
.alarmTitle{
  color:var(--alarm-text);
  font-weight:1000;
  letter-spacing:1px;
  text-transform:uppercase;
  font-size:56px;
  line-height:1.05;
}
.alarmSub{
  color:var(--alarm-text);
  font-weight:900;
  font-size:28px;
  margin-top:8px;
}
.alarmMeta{
  margin-top:14px;
  display:flex;flex-wrap:wrap;gap:10px;
  color:rgba(255,255,255,0.92);
  font-size:18px;
}
.alarmMeta strong{color:var(--alarm-text)
}
  /* ====== UI UPGRADE (Leitstellen-Look) ====== */
:root{
  --bg: #0e0f12;
  --panel0: rgba(255,255,255,.03);
  --panel1: rgba(255,255,255,.06);
  --border0: rgba(255,255,255,.10);
  --border1: rgba(255,255,255,.14);
  --text2: rgba(255,255,255,.76);

  --accent: rgba(40,150,255,.95);
  --accentSoft: rgba(40,150,255,.14);

  --ok: rgba(0,200,120,.95);
  --okSoft: rgba(0,200,120,.14);

  --warn: rgba(255,200,0,.95);
  --warnSoft: rgba(255,200,0,.12);

  --danger: rgba(255,70,70,.95);
  --dangerSoft: rgba(255,70,70,.14);
}

body{
  background: radial-gradient(1200px 800px at 20% -10%, rgba(40,150,255,.12), transparent 55%),
              radial-gradient(900px 600px at 90% 10%, rgba(0,200,120,.08), transparent 55%),
              var(--bg);
}

/* Container etwas „luftiger“ */
.container{ padding-bottom: 22px; }

/* Cards wertiger */
.card{
  border: 1px solid var(--border0);
  background: linear-gradient(180deg, var(--panel1), var(--panel0));
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}

/* Optional: Card-Inhalt innen konsistent */
.card-pad{ padding: 12px; }

/* Kleine Header-Leiste für Cards */
.card-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding: 12px 12px 0 12px;
}
.card-title{
  font-weight: 1000;
  letter-spacing: .2px;
}
.card-sub{
  font-size: 12px;
  opacity: .75;
  margin-top: 2px;
}

/* Pills (kleine Status-Chips) */
.pill{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border0);
  background: rgba(255,255,255,.04);
  font-size: 12px;
  white-space: nowrap;
}
.pill.accent{ border-color: rgba(40,150,255,.35); background: var(--accentSoft); }
.pill.ok{ border-color: rgba(0,200,120,.35); background: var(--okSoft); }
.pill.warn{ border-color: rgba(255,200,0,.35); background: var(--warnSoft); }
.pill.danger{ border-color: rgba(255,70,70,.35); background: var(--dangerSoft); }

.kbd{
  font-size: 12px;
  opacity: .85;
  border: 1px solid var(--border0);
  background: rgba(0,0,0,.18);
  padding: 2px 8px;
  border-radius: 8px;
}

/* Hero Card (für „Neuer Einsatz“) */
.hero{
  border: 1px solid rgba(40,150,255,.28);
  background: linear-gradient(180deg, rgba(40,150,255,.14), rgba(255,255,255,.03));
}
.hero-title{
  font-size: 18px;
  font-weight: 1100;
}

/* Grid Helpers */
.grid2{
  display:grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 12px;
  align-items: start;
}
.section{ display:grid; gap:12px; }
.sticky{ position: sticky; top: 12px; }

/* Tabelle schöner */
.table{
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.table th{
  font-size: 12px;
  letter-spacing: .3px;
  opacity: .75;
  padding: 10px;
  border-bottom: 1px solid var(--border0);
  text-align: left;
}
.table td{
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* Buttons minimal „kräftiger“ */
button{
  border: 1px solid var(--border0);
  background: rgba(255,255,255,.04);
  border-radius: 12px;
  transition: transform .06s ease, border-color .12s ease, background .12s ease;
}
button:hover{
  border-color: var(--border1);
  background: rgba(255,255,255,.06);
}
button:active{ transform: translateY(1px); }

/* Responsiv */
@media (max-width: 980px){
  .grid2{ grid-template-columns: 1fr; }
  .sticky{ position: static; }
  .table{ min-width: 0; }
}
/* ===== Fokus-Einsatz hervorheben ===== */
.card.fokus-aktiv{
  border-color: rgba(255,70,70,.35);
  box-shadow:
    0 0 0 1px rgba(255,70,70,.20),
    0 18px 55px rgba(0,0,0,.38);
  background: linear-gradient(180deg, rgba(255,70,70,.10), rgba(255,255,255,.03));
}

.card.fokus-aktiv .card-title{
  text-shadow: 0 0 14px rgba(255,70,70,.25);
}

.fokus-line{
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,70,70,.85), rgba(255,70,70,0));
  margin-top: 10px;
  opacity: .9;
}
/* ===== Fahrzeugstatus: Leitstellen-Look ===== */
.status-dot{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  margin-right: 8px;
}

.tr-active{
  background: rgba(40,150,255,.06);
}
.tr-onscene{
  background: rgba(0,200,120,.06);
}
.tr-unavail{
  background: rgba(255,70,70,.06);
}

.table tbody tr:hover{
  background: rgba(255,255,255,.04);
}

@keyframes pulseWarn {
  0%   { box-shadow: 0 0 0 0 rgba(255,200,0,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(255,200,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,200,0,0); }
}
.pulse-warn{
  animation: pulseWarn 1.6s infinite;
}