:root{
  --bg:#0b0f14;
  --bg2:#0f141b;
  --panel:#171a1f;
  --panel2:#262b33;
  --line:#2f3641;
  --text:#e9eef5;
  --muted:#aab3bf;

  --rot:#d83a3a;
  --rot2:#8b2929;
  --blue:#3aa0ff;
  --green:#2fbf71;
  --amber:#f0b429;

  --shadow: 0 16px 30px rgba(0,0,0,0.35);
  --radius: 14px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(circle at 20% 10%, #121722, var(--bg));
}

a{ color: var(--blue); text-decoration:none; }
a:hover{ text-decoration:underline; }

.topbar{
  height:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 16px;
  background: linear-gradient(0deg, var(--rot2), var(--rot));
  border-bottom: 2px solid #bf1f1f;
  position: sticky;
  top:0;
  z-index: 20;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
}
.brand-dot{ filter: drop-shadow(0 2px 0 rgba(0,0,0,0.25)); }
.brand-name{ letter-spacing:.3px; }
.badge{
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
}
.navlink{
  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.20);
  padding: 7px 12px;
  border-radius: 10px;
  font-weight: 800;
}
.navlink:hover{ filter: brightness(1.08); text-decoration:none; }
.navlink.active{
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.12);
}
.navuser{
  color: rgba(255,255,255,0.95);
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.16);
}
.muted{ color: rgba(255,255,255,0.75); font-weight: 700; }

.navbtn{
  color: #fff;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.20);
  padding: 7px 12px;
  border-radius: 10px;
  font-weight: 900;
}
.navbtn:hover{ filter: brightness(1.08); text-decoration:none; }

.wrap{
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px 40px;
}

.center-box{
  max-width: 420px;
  margin: 90px auto;
  background: var(--panel2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.center-box .head{
  background: rgba(0,0,0,0.15);
  padding: 14px 16px;
  font-weight: 900;
}
.center-box .body{
  padding: 16px;
}
.form-row{ margin: 10px 0; }
label{
  display:block;
  margin-bottom:6px;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
}
input[type="text"], input[type="password"], input[type="email"], select{
  width: 100%;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px 10px;
  color: var(--text);
  outline:none;
}
input:focus, select:focus{
  border-color: rgba(216,58,58,0.65);
  box-shadow: 0 0 0 3px rgba(216,58,58,0.18);
}
.btn{
  width:100%;
  background: var(--rot);
  border: none;
  border-radius: 10px;
  padding: 11px 12px;
  font-weight: 900;
  color: #fff;
  cursor:pointer;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover{ filter: brightness(1.05); transform: translateY(-1px); }
.btn:active{ transform: translateY(0px) scale(0.99); }

.smalltext{
  margin-top: 10px;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  text-align:center;
}

.alert{
  background: rgba(240,180,41,0.12);
  border: 1px solid rgba(240,180,41,0.35);
  color: rgba(255,255,255,0.92);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 13px;
}

.grid-3{
  display:grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 14px;
}

.panel{
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  min-height: 520px;
}
.panel .head{
  background: rgba(255,255,255,0.06);
  padding: 10px 12px;
  font-weight: 900;
  display:flex;
  align-items:center;
  gap: 8px;
}
.panel .body{
  padding: 12px;
}

.section-title{
  font-weight: 900;
  margin-bottom: 8px;
}
.hr{
  height:1px;
  background: rgba(255,255,255,0.08);
  margin: 10px 0;
}

/* Fahrzeugliste (Demo) */
.vehicle-list{
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow:hidden;
}
.vehicle-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor:pointer;
}
.vehicle-item:last-child{ border-bottom:none; }
.vehicle-item:hover{ background: rgba(255,255,255,0.04); }
.vehicle-item.active{ background: rgba(58,160,255,0.10); }

.v-left{ display:flex; flex-direction:column; gap:2px; }
.v-name{ font-weight:900; }
.v-sub{ font-size: 12px; color: rgba(255,255,255,0.65); }
.v-status{
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.20);
}
.v-status.s1{ background: rgba(47,191,113,0.18); }
.v-status.s2{ background: rgba(47,191,113,0.12); }
.v-status.s3{ background: rgba(240,180,41,0.14); }
.v-status.s4{ background: rgba(240,180,41,0.10); }
.v-status.s9{ background: rgba(216,58,58,0.18); }

/* ===== RADIO UNIT (Haupt + Neben) – Fix ===== */
.radio-unit {
  width: 100%;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px;
}

.radio-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.radio-title {
  font-weight: 900;
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

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

.knob {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.10), rgba(0,0,0,0.35));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: rgba(255,255,255,0.90);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.25);
}

.radio-screen {
  width: 100%;
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 10px 10px;
  margin-bottom: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.25;
  min-height: 70px;
  color: rgba(255,255,255,0.92);
  white-space: pre-line;
}

.radio-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.radio-row label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
}

.radio-row select,
.radio-row input[type="text"] {
  width: 100%;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 10px 10px;
  color: rgba(255,255,255,0.95);
  outline: none;
}

.radio-row select:focus,
.radio-row input[type="text"]:focus {
  border-color: rgba(216,58,58,0.65);
  box-shadow: 0 0 0 3px rgba(216,58,58,0.18);
}

.radio-ptt {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
  color: #fff;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
  transition: transform .12s ease, filter .12s ease;
}

.radio-ptt:hover { filter: brightness(1.07); transform: translateY(-1px); }
.radio-ptt:active { transform: translateY(0px) scale(0.99); }

.radio-hint {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.60);
}

.radio-unit.small { padding: 12px; }

.status-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.status-btn{
  padding: 10px 0;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  font-weight: 900;
  color: #fff;
  cursor:pointer;
}
.status-btn:hover{ filter: brightness(1.06); }

.status-btn.s9{ background: rgba(216,58,58,0.80); border-color: rgba(216,58,58,0.60); }

/* Dispo / News Card */
.card{
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card .head{
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  font-weight: 900;
}
.card .body{
  padding: 14px;
}
.card .cta{
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 1100px){
  .grid-3{ grid-template-columns: 1fr; }
  .panel{ min-height: auto; }
}