/* =========================================================
   RHS Rosenheim – Johanniter Status UI
   CI-ONLY CSS (keine Fremdfarben)
   ---------------------------------------------------------
   Verwendet AUSSCHLIESSLICH:
   - Markenrot + Abstufungen
   - Markenblau + Abstufungen
   - Markenweiß
   - Grau (Schwarz 8%)
   - Signalgelb
   - Themenfarben: Bordeauxrot, Orange, Violett, Grün + Abstufungen
   (Transparenzen davon sind erlaubt, aber keine anderen HEX-Farben)
   ========================================================= */
/* =========================
   CI Schrift
   ========================= */

@font-face {
    font-family: 'Maven Pro';
    src: url('../fonts/MavenPro-Regular.ttf') format('truetype'),
         url('../fonts/MavenPro-Bold.ttf') format('truetype'),
         url('../fonts/MavenPro-Medium.ttf') format('truetype'),
         url('../fonts/MavenPro-Black.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* =========================
   CI Farb-Tokens
   ========================= */
:root{
  /* Markenfarben */
  --red:        #eb003c;  /* Markenrot */
  --red-01:     #ff606e;
  --red-02:     #ff9ea7;
  --red-03:     #ffccd8;

  --blue:       #000548;  /* Markenblau */
  --blue-01:    #6084bf;
  --blue-02:    #a2bfe0;
  --blue-03:    #deeefc;

  --white:      #ffffff;  /* Markenweiß */
  --gray:       #f0f0f0;  /* Grau (Schwarz 8 %) */

  --yellow:     #deff00;  /* Signalgelb */

  /* Themenfarben (aus deinem Screenshot) */
  --bordeaux:   #890c58;
  --bordeaux-01:#a23f76;
  --bordeaux-02:#b9669c;
  --bordeaux-03:#dba5d6;

  --orange:     #f4b00a;
  --orange-01:  #f4c26f;
  --orange-02:  #f7d4a0;
  --orange-03:  #fae5c8;

  --violet:     #775cda;
  --violet-01:  #8b78ff;
  --violet-02:  #a3a2ff;
  --violet-03:  #d3d6ff;

  --green:      #00a68b;
  --green-01:   #53cfad;
  --green-02:   #98ebd2;
  --green-03:   #cdffef;

  /* UI Tokens (alle CI-basiert) */
  --text:       var(--blue);
  --muted:      rgba(0, 5, 72, .62);
  --muted-2:    rgba(0, 5, 72, .42);

  --border:         rgba(0, 5, 72, .10);
  --border-strong:  rgba(0, 5, 72, .16);

  /* Schatten NUR mit CI-Blau */
  --shadow-sm: 0 6px 16px rgba(0, 5, 72, .10);
  --shadow:    0 18px 44px rgba(0, 5, 72, .14);
  --shadow-hi: 0 26px 66px rgba(0, 5, 72, .18);

  --radius: 18px;

  /* Focus-Ring NUR mit Markenrot */
  --ring:   0 0 0 4px rgba(235, 0, 60, .16);
  --ring-2: 0 0 0 6px rgba(255, 96, 110, .18);
}

/* =========================
   Base
   ========================= */
*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  font-family: "Maven Pro", Arial, sans-serif;
  font-weight: bold;
  color: var(--text);

  /* Clean, professionell – nur CI-Grads */
  background:
    radial-gradient(1100px 520px at 10% -10%, rgba(235,0,60,.10), transparent 60%),
    radial-gradient(900px 520px at 92% 0%, rgba(96,132,191,.12), transparent 55%),
    radial-gradient(900px 500px at 50% 110%, rgba(0,5,72,.06), transparent 60%),
    linear-gradient(180deg, var(--white) 0%, var(--gray) 48%, var(--gray) 100%);
}

.wrap{ max-width: 860px; margin:0 auto; padding: 16px; }

/* =========================
   Header (CI Rot)
   ========================= */
header{
  position: sticky;
  top: 0;
  z-index: 10;
  color: var(--white);

  background: linear-gradient(90deg, var(--red), rgba(255,96,110,1) 55%, var(--red-01));
  padding: 16px 18px 14px;

  box-shadow: 0 14px 34px rgba(0,5,72,.22);
  border-bottom: 1px solid rgba(255,255,255,.18);
}

header::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:4px;
  background: linear-gradient(90deg, var(--white), rgba(255,255,255,.65), var(--white));
  opacity:.55;
}

.brand{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  max-width:860px; margin:0 auto;
  position:relative;
  z-index:1;
}
.brand-left{ display:flex; gap:12px; align-items:center; }

.logo{
  width:46px; height:46px;
  border-radius: 16px;

  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);

  display:grid;
  place-items:center;
  box-shadow: 0 10px 24px rgba(0,5,72,.18);
  position: relative;
  overflow:hidden;
}

.logo::after{
  content:"";
  position:absolute; inset:-40%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 45%);
  transform: rotate(20deg);
}

/* Optionales "Mini-Kreuz" im Badge:
   Wenn du KEINE Deko willst -> einfach auskommentiert lassen. */
/*
.logo::before{
  content:"";
  position:absolute;
  right:7px; top:7px;
  width:12px; height:12px;
  opacity:.95;
  background:
    linear-gradient(var(--white),var(--white)) center/100% 3px no-repeat,
    linear-gradient(var(--white),var(--white)) center/3px 100% no-repeat;
  border-radius: 2px;
}
*/

.logo svg{
  width:28px;
  height:28px;
  stroke: var(--white);
  stroke-width:2.2;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}

h1{
  margin:0;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: .2px;
}

.sub{
  font-size:12px;
  opacity:.92;
  margin-top:4px;
}

/* Header Chip */
.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  font-size:12px;
  white-space:nowrap;
  box-shadow: 0 12px 26px rgba(0,5,72,.16);
}

.dot{ width:8px; height:8px; border-radius:99px; background: var(--yellow); }
.dot.ok{ background: var(--green); }
.dot.err{ background: var(--red-02); }

/* =========================
   Cards (clean, ohne Watermark/Spuren)
   ========================= */
.card{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(900px 220px at 20% 0%, rgba(96,132,191,.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,1));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 12px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-hi);
  border-color: var(--border-strong);
}

.titleRow{ display:flex; align-items:center; justify-content:space-between; gap:10px; }

.card h2{
  margin:0;
  font-size: 11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color: rgba(0,5,72,.55);
}

.msg{ margin-top:10px; font-size:13px; color: var(--muted); }
.msg.ok{ color: var(--green); }
.msg.err{ color: var(--red); }

/* =========================
   Inputs / Buttons
   ========================= */
.inputRow{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }

input{
  flex: 1 1 200px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.98);
  font-size: 16px;
  outline: none;
  box-shadow: 0 10px 22px rgba(0,5,72,.08);
  transition: box-shadow .18s ease, border-color .18s ease, transform .06s ease, background .18s ease;
}
input:focus{
  border-color: rgba(235,0,60,.40);
  box-shadow: var(--ring), 0 14px 26px rgba(0,5,72,.12);
  background: var(--white);
}
input:active{ transform: translateY(1px); }

button{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.98);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .2px;
  box-shadow: 0 12px 24px rgba(0,5,72,.10);
  transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  user-select:none;
}
button:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0,5,72,.14);
  border-color: var(--border-strong);
}
button:active{ transform: translateY(1px) scale(.99); }

button.primary{
  background: linear-gradient(90deg, var(--red), rgba(255,96,110,1) 55%, var(--red-01));
  border-color: rgba(255,255,255,.18);
  color: var(--white);
  box-shadow: 0 18px 36px rgba(235,0,60,.22);
}
button.primary:hover{ box-shadow: 0 22px 46px rgba(235,0,60,.28); }
button.primary:focus{ outline:none; box-shadow: var(--ring-2), 0 22px 46px rgba(235,0,60,.28); }

button.ghost{
  background: transparent;
  box-shadow:none;
  border-color: rgba(255,255,255,.22);
}

/* Pills */
.pill{
  padding: 6px 10px;
  border-radius: 999px;
  font-weight:900;
  font-size:12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.98);
  white-space:nowrap;
}
.pill.push{ border-color: rgba(235,0,60,.35); background: rgba(235,0,60,.10); }
.pill.safe{ border-color: rgba(0,166,139,.35); background: rgba(0,166,139,.10); }
.pill.off{  border-color: rgba(137,12,88,.35); background: rgba(137,12,88,.10); }

.hint{
  margin-top:10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px dashed rgba(0,5,72,.20);
  background: rgba(0,5,72,.03);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.small{ font-size:12px; color: var(--muted); }
.row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.right{ margin-left:auto; }
.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size:12px;
  color: rgba(0,5,72,.72);
}

/* =========================
   HERO Status – "Dein aktueller Status"
   ========================= */
#currentStatusCard{
  padding: 16px;
  border-radius: 26px;
  background:
    radial-gradient(900px 260px at 18% -10%, rgba(96,132,191,.14), transparent 60%),
    radial-gradient(700px 240px at 110% 20%, rgba(235,0,60,.08), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,1));
  box-shadow: 0 28px 78px rgba(0,5,72,.18);
  border: 1px solid rgba(0,5,72,.10);
}

#bigStatus{
  position:relative;
  margin-top: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(0,5,72,.10);

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;

  background:
    radial-gradient(900px 240px at 20% 0%, rgba(255,255,255,.98), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.98));
  box-shadow: 0 18px 46px rgba(0,5,72,.12);
}

#bigStatus .heroIcon{
  width:58px;
  height:58px;
  border-radius:20px;
  display:grid;
  place-items:center;
  flex: 0 0 58px;
  box-shadow: 0 18px 36px rgba(0,5,72,.14);
  position:relative;
  overflow:hidden;
}
#bigStatus .heroIcon::after{
  content:"";
  position:absolute; inset:-50%;
  background: radial-gradient(circle at 25% 25%, rgba(255,255,255,.40), transparent 45%);
  transform: rotate(18deg);
  opacity:.22; /* weniger "spielerisch" */
}
#bigStatus .heroIcon svg{
  width:28px;
  height:28px;
  stroke: var(--white);
  stroke-width:2.3;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
  position:relative;
  z-index:1;
}

#bigStatus .heroText{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
#bigStatus .heroLine{
  font-size: 22px;
  font-weight: 950;
  letter-spacing: .2px;
  line-height: 1.15;
}
#bigStatus .heroSub{
  font-size: 12px;
  color: var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

#bigStatus .heroPill{
  margin-left:auto;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 950;
  font-size: 12px;
  border: 1px solid rgba(0,5,72,.10);
  background: rgba(255,255,255,.98);
  white-space:nowrap;
  box-shadow: 0 12px 24px rgba(0,5,72,.08);
}

/* Einsatz Banner (CI Grün / Orange) */
#einsatzBanner{
  display:none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,166,139,.35);
  background: rgba(0,166,139,.10);
  color: rgba(0,5,72,.92);
  font-weight: 950;
  letter-spacing: .02em;
  text-align: left;
  box-shadow: 0 14px 28px rgba(0,5,72,.10);
}
#einsatzBanner.active{
  display:inline-flex;
  align-items:center;
  gap:10px;
}
#einsatzBanner.active::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(0,166,139,.18);
}

/* Hero Farbmodi (nur CI-Farben) */
#bigStatus.s1 .heroIcon{ background: linear-gradient(135deg, var(--blue), var(--blue-01)); }
#bigStatus.s2 .heroIcon{ background: linear-gradient(135deg, var(--violet), var(--violet-01)); }
#bigStatus.s3 .heroIcon{ background: linear-gradient(135deg, var(--orange), var(--orange-01)); }
#bigStatus.s4 .heroIcon{ background: linear-gradient(135deg, var(--green), var(--green-01)); }
#bigStatus.s6 .heroIcon{ background: linear-gradient(135deg, var(--red), var(--red-01)); }

/* Hero Pill Tints */
#bigStatus.s1 .heroPill{ border-color: rgba(0,5,72,.20); background: rgba(96,132,191,.16); }
#bigStatus.s2 .heroPill{ border-color: rgba(0,5,72,.18); background: rgba(163,162,255,.18); }
#bigStatus.s3 .heroPill{ border-color: rgba(0,5,72,.18); background: rgba(244,176,10,.20); }
#bigStatus.s4 .heroPill{ border-color: rgba(0,166,139,.22); background: rgba(0,166,139,.12); }
#bigStatus.s6 .heroPill{ border-color: rgba(235,0,60,.22); background: rgba(255,96,110,.16); }

/* Hero Animation (dezenter, CI-blau shadow) */
@keyframes popIn {
  0% { transform: scale(.99); opacity: 0; }
  70%{ transform: scale(1.01); opacity: 1; }
  100%{ transform: scale(1); }
}
#bigStatus.animate{ animation: popIn .22s ease-out; }

/* Optional: sehr dezentes Pulse nur für 3/4 */
@keyframes softPulse {
  0% { box-shadow: 0 18px 46px rgba(0,5,72,.12), 0 0 0 0 rgba(244,176,10,.0); }
  60%{ box-shadow: 0 18px 46px rgba(0,5,72,.12), 0 0 0 10px rgba(244,176,10,.12); }
  100%{ box-shadow: 0 18px 46px rgba(0,5,72,.12), 0 0 0 0 rgba(244,176,10,.0); }
}
#bigStatus.s3{ animation: softPulse 1.8s ease-in-out infinite; }
#bigStatus.s4{
  animation: softPulse 1.8s ease-in-out infinite;
  /* gleiche Animation, aber grün getintet über shadow nicht möglich ohne Fremdwerte,
     daher bleibt es neutral-orange. Wenn du willst, kann ich eine zweite Keyframe nur mit grün machen. */
}

/* =========================
   Status Grid – Icon Buttons
   ========================= */
.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin-top: 12px;
}

.statusBtn{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:14px;

  width:100%;
  padding:16px 16px;
  border-radius:22px;

  border:1px solid rgba(0,5,72,.10);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.98));
  box-shadow: 0 14px 34px rgba(0,5,72,.10);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  text-align:left;
}

.statusBtn:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 54px rgba(0,5,72,.16);
  border-color: rgba(0,5,72,.18);
}
.statusBtn:active{ transform: translateY(0px) scale(.995); }

.statusIcon{
  width:54px;
  height:54px;
  border-radius:18px;
  display:grid;
  place-items:center;
  flex: 0 0 54px;
  box-shadow: 0 16px 30px rgba(0,5,72,.14);
  position:relative;
  overflow:hidden;
}
.statusIcon::after{
  content:"";
  position:absolute; inset:-50%;
  background: radial-gradient(circle at 25% 25%, rgba(255,255,255,.38), transparent 45%);
  transform: rotate(18deg);
  opacity:.22; /* weniger "toy" */
}
.statusIcon svg{
  width:26px;
  height:26px;
  stroke: var(--white);
  stroke-width:2.2;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
  position:relative;
  z-index:1;
}

.statusText{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.statusNum{
  font-size:22px;
  font-weight:950;
  letter-spacing:.2px;
  line-height:1;
}
.statusLabel{
  font-size:12px;
  color: var(--muted);
  line-height:1.2;
}

.statusChevron{
  margin-left:auto;
  width:18px;
  height:18px;
  opacity:.55;
}
.statusChevron path{
  stroke: rgba(0,5,72,.60);
  stroke-width:2.5;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Status Farbsystem (CI only) */
.statusBtn.s1 .statusIcon{ background: linear-gradient(135deg, var(--blue), var(--blue-01)); }
.statusBtn.s2 .statusIcon{ background: linear-gradient(135deg, var(--violet), var(--violet-01)); }
.statusBtn.s3 .statusIcon{ background: linear-gradient(135deg, var(--orange), var(--orange-01)); }
.statusBtn.s4 .statusIcon{ background: linear-gradient(135deg, var(--green), var(--green-01)); }
.statusBtn.s6 .statusIcon{ background: linear-gradient(135deg, var(--red), var(--red-01)); }

.statusBtn.s1{ box-shadow: 0 14px 34px rgba(96,132,191,.18), 0 14px 34px rgba(0,5,72,.08); }
.statusBtn.s2{ box-shadow: 0 14px 34px rgba(119,92,218,.18), 0 14px 34px rgba(0,5,72,.08); }
.statusBtn.s3{ box-shadow: 0 14px 34px rgba(244,176,10,.22), 0 14px 34px rgba(0,5,72,.08); }
.statusBtn.s4{ box-shadow: 0 14px 34px rgba(0,166,139,.18), 0 14px 34px rgba(0,5,72,.08); }
.statusBtn.s6{ box-shadow: 0 14px 34px rgba(235,0,60,.18), 0 14px 34px rgba(0,5,72,.08); }

/* Status 3/4 disabled look */
.statusBtn.isDisabled{
  opacity: .45;
  filter: grayscale(0.2);
}
.statusBtn.isDisabled:hover{
  transform:none;
  box-shadow: 0 14px 34px rgba(0,5,72,.08);
}

/* =========================
   Live Rows (GF/LRH)
   ========================= */
.liveRow{
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius:18px;
  background: rgba(255,255,255,.98);
  margin-top:10px;
  box-shadow: 0 14px 28px rgba(0,5,72,.08);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.liveRow:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0,5,72,.12);
  border-color: var(--border-strong);
}

.liveRow.row3{
  border-color: rgba(244,176,10,.55);
  background: rgba(244,176,10,.12);
}
.liveRow.row4{
  border-color: rgba(0,166,139,.45);
  background: rgba(0,166,139,.10);
}
.liveRow.row6{
  border-color: rgba(235,0,60,.45);   /* Markenrot */
  background: rgba(235,0,60,.08);
}

.liveName{ font-weight: 950; font-size: 15px; line-height: 1.2; color: var(--blue); }
.liveMeta{ color: var(--muted); font-size: 12px; }

.livePill{
  padding:6px 10px;
  border-radius:999px;
  font-weight:950;
  font-size:12px;
  border:1px solid var(--border);
  white-space:nowrap;
  color: var(--blue);
}
.livePill.s3{ background: rgba(244,176,10,.20); border-color: rgba(244,176,10,.70); }
.livePill.s4{ background: rgba(0,166,139,.16); border-color: rgba(0,166,139,.55); }
.livePill.s6{
  background: rgba(255,96,110,.16);  /* red-01 als Tint */
  border-color: rgba(235,0,60,.55);
  color: var(--blue);
}

/* “OFF” Mini-Pill */
.miniOff{
  margin-left: 8px;
  padding: 4px 8px;
  font-size: 11px;
  border-color: rgba(235,0,60,.25);
  background: rgba(235,0,60,.10);
}

/* Reason leicht abgesetzt, aber CI-only */
.liveReason{
  color: rgba(0,5,72,.72);
  font-weight: 900;
}

.liveEta{ color: rgba(0,5,72,.78); font-size: 12px; margin-top: 6px; }
.liveEtaMins{ color: rgba(0,5,72,.72); }

/* Locations */
.liveLoc { margin-top: 8px; display:flex; gap:8px; align-items:center; flex-wrap:wrap; }

.pill.maplink { cursor:pointer; border:none; }

.pill.good { background: rgba(0,166,139,.12); border: 1px solid rgba(0,166,139,.35); } /* green */
.pill.warn { background: rgba(244,176,10,.16); border: 1px solid rgba(244,176,10,.40); } /* orange */
.pill.bad  { background: rgba(235,0,60,.12);  border: 1px solid rgba(235,0,60,.35); }   /* red */

/* =========================
   ETA Bottom Sheet
   ========================= */
.sheet{ display:none; position:fixed; inset:0; z-index:9999; }
.sheet.open{ display:block; }

.sheetBackdrop{
  position:absolute; inset:0;
  background: rgba(0, 5, 72, .38);
  backdrop-filter: blur(6px);
}

.sheetPanel{
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  bottom: 14px;

  width: min(760px, calc(100% - 18px));
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.22);

  background:
    radial-gradient(900px 260px at 18% -10%, rgba(235,0,60,.10), transparent 60%),
    radial-gradient(900px 260px at 90% 0%, rgba(96,132,191,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.98));

  box-shadow: 0 40px 120px rgba(0,5,72,.38);
  overflow:hidden;
  animation: sheetIn .20s ease-out;
}

@keyframes sheetIn{
  from{ transform: translateX(-50%) translateY(18px); opacity:0; }
  to{ transform: translateX(-50%) translateY(0); opacity:1; }
}

.sheetHandle{
  width: 54px;
  height: 5px;
  border-radius: 999px;
  background: rgba(0,5,72,.18);
  margin: 10px auto 4px;
}

.sheetHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(0,5,72,.08);
}

.sheetTitle{
  font-weight: 950;
  letter-spacing: .2px;
  font-size: 16px;
  color: var(--blue);
}
.sheetSub{
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.sheetClose{
  width:38px; height:38px;
  border-radius: 14px;
  border: 1px solid rgba(0,5,72,.10);
  background: rgba(255,255,255,.98);
  box-shadow: 0 12px 24px rgba(0,5,72,.10);
  cursor:pointer;
  font-weight: 900;
  color: var(--blue);
}

.sheetBody{ padding: 12px 14px 14px; }

.etaGrid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
}

.etaChip{
  padding: 12px 10px;
  border-radius: 18px;
  border: 1px solid rgba(0,5,72,.10);
  background: rgba(255,255,255,.98);
  box-shadow: 0 14px 34px rgba(0,5,72,.10);
  font-weight: 950;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  color: var(--blue);
}
.etaChip:hover{
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(0,5,72,.14);
  border-color: rgba(0,5,72,.18);
}
.etaChip.active{
  border-color: rgba(235,0,60,.32);
  box-shadow: 0 0 0 4px rgba(235,0,60,.12), 0 20px 46px rgba(0,5,72,.14);
}

.etaChipSmall{
  display:block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 800;
}

.etaCustom{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 22px;
  border: 1px solid rgba(0,5,72,.10);
  background: rgba(255,255,255,.98);
  box-shadow: 0 14px 34px rgba(0,5,72,.08);
}

.etaCustomLeft{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 8px;
}

.etaLabel{
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.etaValue{
  font-weight: 950;
  font-size: 18px;
  color: var(--blue);
}
.etaUnit{
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

#etaRange{
  width:100%;
  accent-color: var(--red); /* CI only */
}

.sheetActions{
  display:flex;
  gap:10px;
  margin-top: 12px;
  flex-wrap:wrap;
}
.sheetActions button{ flex: 1 1 160px; }

.sheetHint{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px dashed rgba(0,5,72,.18);
  background: rgba(0,5,72,.03);
  color: rgba(0,5,72,.70);
  font-size: 12px;
  line-height: 1.35;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 560px){
  .grid{ grid-template-columns: 1fr; }
}
@media (max-width: 520px){
  .etaGrid{ grid-template-columns: repeat(3, 1fr); }
}

/* =========================
   Header Mode (optional)
   ========================= */
header.mode-1 { background: linear-gradient(90deg, var(--blue), var(--blue-01)); }
header.mode-2 { background: linear-gradient(90deg, var(--violet), var(--violet-01)); }
header.mode-3 { background: linear-gradient(90deg, var(--orange), var(--orange-01)); color: var(--blue); }
header.mode-4 { background: linear-gradient(90deg, var(--green), var(--green-01)); }
header.mode-6 { background: linear-gradient(90deg, var(--red), var(--red-01)); }

header.mode-3 .chip{
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.30);
}
header.mode-3 .dot{ background: var(--blue); }
header.mode-3 h1, header.mode-3 .sub{ color: var(--blue); }

.muteRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-sm);
  margin-top: 10px;
}

.muteLeft{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.muteTitle{ font-weight: 950; letter-spacing:.2px; }
.muteSub{ font-size: 12px; color: var(--muted); }

.muteToggle{
  width: 54px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.9);
  position: relative;
  box-shadow: 0 10px 20px rgba(0,5,72,.10);
  cursor: pointer;
  padding: 0;
}

.muteToggle .knob{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  position:absolute;
  top: 3px;
  left: 3px;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,.92));
  border: 1px solid rgba(0,5,72,.12);
  box-shadow: 0 10px 18px rgba(0,5,72,.14);
  transition: transform .18s ease;
}

/* ON-State (muted) */
.muteToggle.is-on{
  background: rgba(235,0,60,.12);
  border-color: rgba(235,0,60,.28);
}
.muteToggle.is-on .knob{
  transform: translateX(20px);
}

/* Quick buttons row */
.muteQuick{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 10px;
}
.muteQuick button{
  flex: 1 1 140px;
}

/* Ende normale GUI */

/* =========================
   Leitung Dashboard (Level 2)
   ========================= */
.liveDash{
  margin-top: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-sm);
}

.liveDashTop{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}

.kpiRow{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.kpi{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.98);
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 10px 18px rgba(0,5,72,.08);
}
.kpi .num{
  display:inline-grid;
  place-items:center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,5,72,.04);
  font-size: 12px;
}

.kpi.s3{ border-color: rgba(244,176,10,.55); background: rgba(244,176,10,.12); }
.kpi.s4{ border-color: rgba(0,166,139,.45); background: rgba(0,166,139,.10); }
.kpi.s6{ border-color: rgba(235,0,60,.28); background: rgba(235,0,60,.10); }

.liveControls{
  margin-top: 10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.liveSearch{
  flex: 1 1 220px;
  display:flex;
  gap:10px;
  align-items:center;
}

.liveSearch input{
  flex: 1 1 auto;
  margin:0;
}

.liveFilters{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.filterChip{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.98);
  cursor:pointer;
  font-weight: 950;
  box-shadow: 0 10px 18px rgba(0,5,72,.08);
}
.filterChip.active{
  border-color: rgba(235,0,60,.32);
  box-shadow: 0 0 0 4px rgba(235,0,60,.12), 0 10px 18px rgba(0,5,72,.08);
}

.liveSort{
  display:flex;
  gap:8px;
  align-items:center;
  flex: 0 0 auto;
}
.liveSort select{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.98);
  box-shadow: 0 10px 18px rgba(0,5,72,.08);
  color: var(--blue);
  font-weight: 900;
}

.liveActions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.liveActions button{
  padding: 10px 12px;
}

/* mini badge in live meta */
.pill.mini{
  padding: 4px 8px;
  font-size: 11px;
}

/* =========================
   Leitungs-Quickbar (GF/LRH)
   - immer sichtbar (sticky)
   - ohne Scroll erreichbar
   - Toggle: + (Start) / X (Ende)
   ========================= */
/* Leitung Bar */
.leadBar{
  max-width: 860px;
  margin: 10px auto 0;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow-sm);

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.leadTitle{
  font-weight: 950;
  letter-spacing:.08em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(0,5,72,.55);
}
.leadSub{
  margin-top: 2px;
  font-size: 13px;
  color: rgba(0,5,72,.78);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 520px;
}
.leadSub.warn{ color: rgba(0,5,72,.62); }

/* Badge: AKTIV / INAKTIV */
.leadBadge{
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 950;
  font-size: 12px;
  border: 1px solid var(--border);
  white-space:nowrap;
  user-select:none;
}
.leadBadge.active{
  background: rgba(0,166,139,.16);
  border-color: rgba(0,166,139,.55);
  color: var(--blue);
}
.leadBadge.inactive{
  background: rgba(235,0,60,.12);
  border-color: rgba(235,0,60,.28);
  color: var(--blue);
}

/* FAB */
.einsatzFab{
  position: fixed;
  right: 16px;
  bottom: 70px;
  z-index: 9998;

  width: 58px;
  height: 58px;
  border-radius: 20px;

  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(90deg, var(--red), rgba(255,96,110,1) 55%, var(--red-01));
  color: var(--white);

  box-shadow: 0 22px 46px rgba(235,0,60,.26);
  display:grid;
  place-items:center;
  padding: 0;
}
.einsatzFab:active{ transform: translateY(1px) scale(.99); }

.einsatzFabIcon{
  font-size: 26px;
  line-height: 1;
  font-weight: 950;
  width: 100%;
}

/* =========================
   Einsatz Sheet – Form
   ========================= */
.formGrid{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.formField{
  padding: 12px 12px;
  border-radius: 22px;
  border: 1px solid rgba(0,5,72,.10);
  background: rgba(255,255,255,.98);
  box-shadow: 0 14px 34px rgba(0,5,72,.08);
}

.formLabel{
  display:flex;
  align-items:baseline;
  gap:8px;
  font-size: 12px;
  letter-spacing:.06em;
  text-transform: uppercase;
  color: rgba(0,5,72,.70);
  margin-bottom: 8px;
}

.req{
  color: var(--red);
  font-weight: 950;
}

.formHint{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(0,5,72,.62);
  line-height: 1.3;
}

/* Ende-Sheet Info-Box */
.endInfo{
  padding: 12px 12px;
  border-radius: 22px;
  border: 1px solid rgba(0,5,72,.10);
  background: rgba(0,5,72,.03);
  box-shadow: 0 14px 34px rgba(0,5,72,.08);
}

.endLine{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.endText{
  color: rgba(0,5,72,.80);
  font-size: 13px;
}

/* Optional: "Fehler" Shake für Pflichtfeld */
@keyframes shakeX{
  0%{ transform: translateX(0); }
  25%{ transform: translateX(-6px); }
  50%{ transform: translateX(6px); }
  75%{ transform: translateX(-4px); }
  100%{ transform: translateX(0); }
}
.formField.invalid{
  border-color: rgba(235,0,60,.35);
  box-shadow: 0 0 0 4px rgba(235,0,60,.12), 0 14px 34px rgba(0,5,72,.08);
  animation: shakeX .18s ease-out;
}

/* Ende Leitung-GUI */

/* =========================
   RADIO SKIN (CI-only)
   Aktivieren via: <body class="radio">
   ========================= */
   
body.radio{
  background: linear-gradient(180deg, rgba(0,5,72,.06), rgba(0,5,72,.02)), var(--gray);
  color: var(--blue);
  font-weight: 600;
}

/* ---------- Header = Top Cap ---------- */
body.radio header{
  background: linear-gradient(180deg, rgba(0,5,72,1), rgba(0,5,72,.92));
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 8px 22px rgba(0,5,72,.26);
}
body.radio header::before{ display:none; }

body.radio .sub{
  opacity: .80;
  letter-spacing: .02em;
}

/* Chip weniger "Badge", mehr Status-Lampe */
body.radio .chip{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  box-shadow: none;
}
body.radio .dot{
  box-shadow: 0 0 0 4px rgba(222,238,252,.10);
}

/* Logo eckiger, technisch */
body.radio .logo{
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
}
body.radio .logo::after{ display:none; }

/* ---------- Device width (handheld) ---------- */
body.radio .wrap{ max-width: 520px; }

/* ---------- Cards = device modules ---------- */
body.radio .card{
  border-radius: 18px;
  border: 1px solid rgba(0,5,72,.22);
  box-shadow: 0 18px 44px rgba(0,5,72,.18);
  background:
    linear-gradient(180deg, rgba(0,5,72,.05), rgba(0,5,72,.015)),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.96));
}

/* inner bezel */
body.radio .card::before{
  content:"";
  position:absolute;
  inset: 10px;
  border-radius: 14px;
  border: 1px solid rgba(0,5,72,.14);
  pointer-events:none;
}

/* Card titles technischer */
body.radio .card h2{
  color: rgba(0,5,72,.62);
  letter-spacing:.22em;
}

/* Msg neutraler */
body.radio .msg{ font-weight: 600; }
body.radio .msg.ok{ color: rgba(0,166,139,1); }
body.radio .msg.err{ color: rgba(235,0,60,1); }

/* ---------- LeadBar = status line (like radio channel strip) ---------- */
body.radio .leadBar{
  max-width: 520px;
  border-radius: 16px;
  border: 1px solid rgba(0,5,72,.24);
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 26px rgba(0,5,72,.14);
}
body.radio .leadTitle{
  letter-spacing:.18em;
}
body.radio .leadSub{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: rgba(0,5,72,.78);
}

/* ---------- Hero = LCD screen ---------- */
body.radio #currentStatusCard{
  border-radius: 18px;
}

body.radio #bigStatus{
  border-radius: 14px;
  border: 1px solid rgba(0,5,72,.26);
  box-shadow: none;
  background:
    linear-gradient(180deg, rgba(222,238,252,.78), rgba(255,255,255,.92));
}

body.radio #bigStatus .heroIcon{
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: none;
}
body.radio #bigStatus .heroIcon::after{ display:none; }

body.radio #bigStatus .heroLine{
  font-size: 18px;
  letter-spacing: .08em;
  font-weight: 950;
}
body.radio #bigStatus .heroSub{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  color: rgba(0,5,72,.74);
}
body.radio #bigStatus .heroPill{
  box-shadow: none;
  border: 1px solid rgba(0,5,72,.18);
  background: rgba(255,255,255,.92);
}

/* Banner seriös: keine Emojis */
body.radio #einsatzBanner{
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Keypad buttons (Status) ---------- */
body.radio .grid{ gap: 10px; }

body.radio .statusBtn{
  border-radius: 14px;
  border: 1px solid rgba(0,5,72,.26);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(240,240,240,.92));
  box-shadow:
    0 12px 22px rgba(0,5,72,.12),
    inset 0 1px 0 rgba(255,255,255,.70),
    inset 0 -2px 0 rgba(0,5,72,.10);
  transition: box-shadow .12s ease, border-color .12s ease, transform .08s ease;
}

body.radio .statusBtn:hover{
  border-color: rgba(0,5,72,.34);
  box-shadow:
    0 16px 28px rgba(0,5,72,.14),
    inset 0 1px 0 rgba(255,255,255,.70),
    inset 0 -2px 0 rgba(0,5,72,.10);
  transform: translateY(-1px);
}

body.radio .statusBtn:active{
  transform: translateY(0px);
  box-shadow:
    0 8px 16px rgba(0,5,72,.12),
    inset 0 2px 0 rgba(0,5,72,.10),
    inset 0 -1px 0 rgba(255,255,255,.55);
}

body.radio .statusLabel{
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(0,5,72,.78);
  font-weight: 900;
}

/* Icons: weniger bunt/glossy, mehr “indicator” */
body.radio .statusIcon{
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow:
    0 10px 18px rgba(0,5,72,.14),
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(0,5,72,.10);
}
body.radio .statusIcon::after{ display:none; }

/* Farbbalken statt Vollfläche (serious) */
body.radio .statusBtn .statusIcon{
  background: rgba(0,5,72,.06);
  border: 1px solid rgba(0,5,72,.14);
}
body.radio .statusBtn.s3 .statusIcon{ border-left: 6px solid rgba(244,176,10,1); }
body.radio .statusBtn.s4 .statusIcon{ border-left: 6px solid rgba(0,166,139,1); }
body.radio .statusBtn.s6 .statusIcon{ border-left: 6px solid rgba(235,0,60,1); }

/* Chevron dezenter */
body.radio .statusChevron{ opacity: .22; }

/* Disabled: wie gesperrte Taste */
body.radio .statusBtn.isDisabled{
  opacity: .42;
  filter: grayscale(.35);
  box-shadow:
    0 10px 18px rgba(0,5,72,.10),
    inset 0 1px 0 rgba(255,255,255,.60),
    inset 0 -2px 0 rgba(0,5,72,.08);
}

/* ---------- Inputs/Buttons seriöser (weniger “pill”) ---------- */
body.radio input,
body.radio button{
  border-radius: 12px;
}
body.radio button.primary{
  background: var(--red);
  box-shadow: 0 14px 28px rgba(235,0,60,.18);
}
body.radio button.primary:hover{
  box-shadow: 0 18px 34px rgba(235,0,60,.22);
}

/* ---------- Push muted badge (ohne Emoji) ---------- */
body.radio #pushMutedBadge{
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 950;
}

/* ---------- FAB: wie Hardware-PTT ---------- */
body.radio .einsatzFab{
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--red);
  box-shadow:
    0 22px 46px rgba(0,5,72,.22),
    0 14px 30px rgba(235,0,60,.18);
}
body.radio .einsatzFabIcon{
  font-size: 28px;
  font-weight: 950;
}

/* ---------- Sheets: wie Menü am Funkgerät ---------- */
body.radio .sheetBackdrop{
  background: rgba(0,5,72,.48);
  backdrop-filter: blur(4px);
}
body.radio .sheetPanel{
  border-radius: 18px;
  border: 1px solid rgba(0,5,72,.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.96));
}
body.radio .sheetHandle{
  background: rgba(0,5,72,.22);
}
body.radio .sheetTitle{
  letter-spacing:.08em;
}
body.radio .sheetSub b{ font-weight: 950; }
body.radio .etaChip{
  border-radius: 14px;
  box-shadow:
    0 10px 18px rgba(0,5,72,.10),
    inset 0 1px 0 rgba(255,255,255,.60);
}
body.radio .etaChip.active{
  border-color: rgba(235,0,60,.34);
  box-shadow:
    0 0 0 4px rgba(235,0,60,.10),
    0 12px 22px rgba(0,5,72,.12);
}

/* ---------- Live rows: technical list ---------- */
body.radio .liveRow{
  border-radius: 14px;
  box-shadow: 0 12px 22px rgba(0,5,72,.10);
}
body.radio .liveName{
  letter-spacing: .02em;
}
body.radio .liveMeta{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}