* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #202225;
  color: #eaeaea;
  overflow: hidden;
}

/* ---------- Kopfzeile ---------- */
.topbar {
  height: 60px;
  background: linear-gradient(180deg, #5b7fd4, #4a6bc4);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.brand { font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.nav { display: flex; align-items: center; gap: 10px; }
.nav-item {
  color: #fff; text-decoration: none; font-size: 14px;
  padding: 8px 14px; border-radius: 6px; background: rgba(255,255,255,.12);
  cursor: default;
}
.nav-btn {
  border: none; cursor: pointer; font: inherit;
  background: rgba(255,255,255,.25);
}
.nav-btn:hover { background: rgba(255,255,255,.4); }

/* ---------- Standby ---------- */
#app { height: calc(100% - 60px); }
.view { height: 100%; }
.standby-screen {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #3a3d42;
}
.standby-clock { font-size: 96px; font-weight: 700; letter-spacing: 2px; color: #fff; }
.standby-date { font-size: 28px; color: #b7bac0; margin-top: 6px; }
.standby-title { font-size: 34px; margin-top: 40px; color: #7fa0f0; font-weight: 700; letter-spacing: 1px; }

/* ---------- Alarm ---------- */
.alarm-banner {
  background: #c0392b;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  padding: 12px;
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  0%, 100% { background: #c0392b; }
  50% { background: #922019; }
}
.alarm-grid {
  height: calc(100% - 56px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: #202225;
}
.einsaetze-row {
  flex: 3;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  min-height: 0;
}
.panel {
  background: #3a3d42;
  border-radius: 8px;
  padding: 14px;
  overflow: auto;
}
.panel-label { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.panel-einsatz { display: flex; flex-direction: column; }
.map-fake {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  background-color: #16323f;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  flex-shrink: 0;
}
.ort-text { margin: 8px 0; font-size: 16px; font-weight: 600; }

.details-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.details-table th, .details-table td { border: 1px solid #55595f; padding: 5px; text-align: left; }
.details-table th { background: #2b2e33; color: #b7bac0; font-weight: 600; }
.alarm-text { margin: 10px 0; font-size: 13px; line-height: 1.4; flex: 1; }

.rueckmeldungen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.rueckmeldungen-grid div { display: flex; flex-direction: column; align-items: center; }
.rm-value { font-size: 22px; font-weight: 700; color: #7fa0f0; }
.rm-label { font-size: 11px; color: #9aa1ab; }

.panel-mannschaft { flex: 1; display: flex; gap: 20px; min-height: 0; }
.mannschaft-col { flex: 1; }
.mannschaft-col h3 { margin: 0 0 8px; font-size: 14px; color: #7fa0f0; border-bottom: 1px solid #55595f; padding-bottom: 4px; }
.mannschaft-col ul { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.5; }

/* ---------- Ton-Freischalt-Overlay ---------- */
.sound-unlock-overlay {
  position: fixed; bottom: 20px; right: 20px; z-index: 999;
}
.sound-unlock-overlay button {
  font: inherit; font-size: 15px; font-weight: 600;
  padding: 12px 18px; border: none; border-radius: 8px;
  background: #4a6bc4; color: #fff; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
}
.sound-unlock-overlay button:hover { background: #37519c; }

/* ---------- Dashboard ---------- */
.dashboard-body {
  height: 100vh; margin: 0;
  display: flex; align-items: center; justify-content: center;
  background: #202225;
  overflow: hidden;
}
.dashboard-box {
  background: #3a3d42; border-radius: 10px; padding: 28px 32px;
  width: 320px; text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
}
.dashboard-box h1 { font-size: 18px; margin: 0 0 6px; color: #fff; }
.dashboard-status { font-size: 13px; color: #9aa1ab; margin-bottom: 20px; }
.dashboard-buttons { display: flex; flex-direction: column; gap: 10px; }
.dash-btn {
  font: inherit; font-size: 16px; font-weight: 600;
  padding: 14px; border: none; border-radius: 8px; cursor: pointer;
  color: #fff;
}
.alarm-btn { background: #c0392b; }
.alarm-btn:hover { background: #922019; }
.standby-btn { background: #4a6bc4; }
.standby-btn:hover { background: #37519c; }
