:root {
  --body: #05060a;
  --bezel: #11131a;
  --bezel2: #020308;
  --screen: #07101a;
  --screen2: #101a26;
  --panel: rgba(13, 25, 39, .78);
  --panel2: rgba(20, 36, 54, .88);
  --line: rgba(160, 205, 255, .16);
  --line2: rgba(160, 205, 255, .32);
  --text: #eff8ff;
  --muted: #8fa8bd;
  --cyan: #52f0dc;
  --blue: #4aa3ff;
  --green: #5ef7a4;
  --amber: #ffd166;
  --red: #ff657a;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  padding: 26px;
  display: grid;
  place-items: center;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 12%, rgba(74,163,255,.22), transparent 22rem),
    radial-gradient(circle at 86% 28%, rgba(82,240,220,.14), transparent 26rem),
    linear-gradient(145deg, #010205, #0a0d14 60%, #020205);
}
a { color: inherit; text-decoration: none; }
.ipad-frame {
  position: relative;
  width: min(1480px, 100%);
  height: min(940px, calc(100vh - 52px));
  min-height: 760px;
  padding: 34px;
  border-radius: 62px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.03) 18%, rgba(255,255,255,.12) 82%, rgba(0,0,0,.5)),
    var(--bezel);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.08),
    inset 0 0 0 14px var(--bezel2),
    0 42px 150px rgba(0,0,0,.78);
}
.ipad-frame:before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 48px;
  border: 1px solid rgba(255,255,255,.1);
  pointer-events: none;
}
.camera-dot {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 86px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.hardware-button {
  position: absolute;
  width: 5px;
  height: 90px;
  border-radius: 999px;
  background: #191c24;
}
.hardware-button.left { left: -3px; top: 180px; }
.hardware-button.right { right: -3px; top: 250px; height: 130px; }
.mdt-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 78% 8%, rgba(74,163,255,.2), transparent 24rem),
    linear-gradient(145deg, var(--screen), #050b12);
  background-size: 42px 42px, 42px 42px, auto, auto;
}
.tablet-status {
  height: 34px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(239,248,255,.82);
  font-size: 12px;
  font-weight: 900;
  background: rgba(0,0,0,.28);
  border-bottom: 1px solid var(--line);
}
.device-title { letter-spacing: .08em; }
.app-layout {
  height: calc(100% - 34px);
  display: grid;
  grid-template-columns: 84px 1fr;
}
.dock {
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border-right: 1px solid var(--line);
  background: rgba(0,0,0,.28);
}
.dock-logo,
.dock-item {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.065);
  font-weight: 950;
}
.dock-logo {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #03101a;
}
.dock-item.active,
.dock-item:hover {
  border-color: var(--cyan);
  background: rgba(82,240,220,.14);
}
.workspace {
  height: 100%;
  overflow: auto;
  padding: 22px;
}
.app-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.kicker {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(44px, 5.8vw, 88px);
  line-height: .9;
}
.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.quick-actions a,
button {
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: rgba(255,255,255,.075);
  color: var(--text);
  padding: 12px 15px;
  font-weight: 850;
  cursor: pointer;
}
.home-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.hero-tile,
.mini-tile,
.app-window {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    var(--panel);
  box-shadow: 0 22px 70px rgba(0,0,0,.26);
}
.hero-tile {
  min-height: 150px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-tile small,
.mini-tile small {
  color: var(--muted);
  font-weight: 850;
  text-transform: uppercase;
}
.hero-tile strong {
  font-size: 68px;
  line-height: .85;
}
.hero-tile span { color: var(--muted); }
.mini-tile {
  min-height: 150px;
  padding: 18px;
}
.mini-tile strong {
  display: block;
  margin-top: 20px;
  font-size: 42px;
}
.mini-tile.danger strong { color: var(--red); }
.app-window {
  overflow: hidden;
  margin-bottom: 18px;
}
.window-bar {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.24);
}
.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}
.window-bar span:nth-child(2) { background: var(--amber); }
.window-bar span:nth-child(3) { background: var(--green); }
.window-bar strong {
  margin-left: 8px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
}
.filters {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 170px 210px auto;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(0,0,0,.24);
  color: var(--text);
  padding: 10px 12px;
}
textarea { min-height: 100px; resize: vertical; }
label { display: grid; gap: 7px; color: var(--muted); font-weight: 800; }
.roster-list {
  padding: 14px;
  display: grid;
  gap: 10px;
}
.officer-card {
  min-height: 78px;
  padding: 13px;
  display: grid;
  grid-template-columns: 52px minmax(180px, 1fr) 90px 130px 120px 110px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
}
.avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(74,163,255,.18);
  color: var(--cyan);
  font-weight: 950;
}
.officer-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.officer-card p {
  margin: 0;
  color: var(--muted);
}
.badge,
.radio {
  color: var(--muted);
  font-weight: 850;
}
.status {
  display: inline-flex;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-weight: 900;
  font-size: 12px;
}
.status.aktiv { color: var(--green); }
.status.urlaub { color: var(--amber); }
.status.suspendiert { color: var(--red); }
.status.in-ausbildung { color: var(--cyan); }
.card-actions {
  display: flex;
  gap: 8px;
}
.card-actions a,
.card-actions button {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
}
.empty-state {
  min-height: 160px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
}
.empty-state strong {
  color: var(--text);
  font-size: 24px;
}
.editor-window {
  padding-bottom: 16px;
}
.employee-form {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.employee-form .wide { grid-column: 1 / -1; }
.employee-form button {
  grid-column: 1 / -1;
  min-height: 52px;
  border-color: var(--cyan);
  background: rgba(82,240,220,.16);
}
.login-screen { display: grid; place-items: center; padding: 22px; }
.login-card {
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}
.login-card h1 { font-size: 42px; margin: 28px 0 18px; }
.login-card form { display: grid; gap: 14px; }
.alert {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,101,122,.14);
  color: #ffd7dd;
}
@media (max-width: 1120px) {
  body { padding: 0; }
  .ipad-frame {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    padding: 0;
    border-radius: 0;
  }
  .ipad-frame:before,
  .camera-dot,
  .hardware-button { display: none; }
  .mdt-screen { border-radius: 0; }
  .app-layout { grid-template-columns: 1fr; }
  .dock {
    height: 78px;
    flex-direction: row;
    justify-content: center;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .home-grid,
  .filters,
  .employee-form { grid-template-columns: 1fr; }
  .app-top { flex-direction: column; }
  .officer-card {
    grid-template-columns: 52px 1fr;
  }
  .badge, .status, .radio, .card-actions {
    grid-column: 2;
  }
}
