/* ==========================================================================
   SSMCNET — Design System
   Dispatch/Leitstellen-Ästhetik: dunkles Interface, elektrisches Blau,
   Monospace für Funkcodes/Statuswerte, klare Informationshierarchie.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Farben */
  --bg: #090b10;
  --bg-elevated: #12151c;
  --bg-elevated-2: #171b24;
  --border: #232833;
  --border-soft: #1a1e27;

  --text-primary: #eef1f6;
  --text-secondary: #9aa3b2;
  --text-muted: #626a78;

  --accent: #2e7cf6;
  --accent-light: #7fb0ff;
  --accent-dim: rgba(46, 124, 246, 0.12);
  --accent-border: rgba(46, 124, 246, 0.35);

  --status-amber: #f2b84b;
  --status-amber-dim: rgba(242, 184, 75, 0.08);
  --status-amber-border: rgba(242, 184, 75, 0.3);

  --status-green: #3ecf8e;

  /* Typografie */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --nav-height: 68px;
  --container: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 900px 500px at 15% -5%, rgba(46, 124, 246, 0.10), transparent 60%),
    radial-gradient(ellipse 700px 400px at 100% 10%, rgba(46, 124, 246, 0.06), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 124, 246, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 124, 246, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------- Navigation --------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(9, 11, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(46, 124, 246, 0.35));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links .active { color: var(--text-primary); }

.nav-cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #060810;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--accent-light); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}
.nav-toggle svg { width: 17px; height: 17px; }

/* -------------------------------- Ausbildung Dropdown -------------------------------- */

.nav-item-dropdown { position: relative; }
.nav-drop-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
}
.nav-drop-trigger:hover { color: var(--text-primary); }
.nav-drop-trigger svg { width: 12px; height: 12px; transition: transform 0.15s ease; }
.nav-item-dropdown.open .nav-drop-trigger { color: var(--text-primary); }
.nav-item-dropdown.open .nav-drop-trigger svg { transform: rotate(180deg); }

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: -20px;
  width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
}
.nav-item-dropdown.open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-group { padding: 10px 20px 6px; }
.nav-drop-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.nav-drop-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-primary);
  border-radius: 4px;
  transition: color 0.15s ease;
}
.nav-drop-link:hover { color: var(--accent-light); }
.nav-drop-link .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-light);
  width: 16px;
  flex-shrink: 0;
}
.nav-drop-sublink {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0 6px 24px;
  font-size: 13px;
  color: var(--text-secondary);
}
.nav-drop-sublink:hover { color: var(--accent-light); }
.nav-drop-sublink .glyph { color: var(--text-muted); font-family: var(--font-mono); font-size: 11px; }

.nav-drop-link.nodoc, .nav-drop-sublink.nodoc {
  color: var(--text-muted);
  cursor: default;
  pointer-events: none;
}
.nav-drop-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

.nav-drop-divider { height: 1px; background: var(--border-soft); margin: 6px 20px; }

.nav-drop-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-primary);
}
.nav-drop-item:hover { color: var(--accent-light); background: var(--accent-dim); }
.nav-drop-item.locked { color: var(--text-muted); cursor: not-allowed; }
.nav-drop-item.locked:hover { color: var(--text-muted); background: none; }
.nav-drop-item .ic { width: 15px; height: 15px; flex-shrink: 0; }

/* -------------------------------- Karriereleiter -------------------------------- */

.rank-card {
  display: grid;
  grid-template-columns: 56px 1.3fr 1fr auto;
  gap: 24px;
  align-items: start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.2s ease;
}
.rank-card:hover { border-color: var(--accent-border); }
.rank-card + .rank-card { margin-top: 12px; }

.rank-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.rank-card h3 { font-size: 16px; margin-bottom: 6px; }
.rank-card .aufgabe { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; }
.rank-schulungen {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.9;
}
.rank-schulungen .none { color: var(--text-muted); }
.rank-zeit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-light);
  white-space: nowrap;
  text-align: right;
}
.rank-zeit .none { color: var(--text-muted); }

/* -------------------------------- Inhalts-Tabs (wie Sheet-Reiter) -------------------------------- */

.detail-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  margin-bottom: 8px;
}
.detail-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14.5px;
  padding: 14px 16px 12px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.detail-tab-btn:hover { color: var(--text-primary); }
.detail-tab-btn.active { color: var(--accent-light); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

@media (max-width: 880px) {
  .rank-card { grid-template-columns: 40px 1fr; }
  .rank-card .rank-num { grid-row: 1 / 3; }
  .rank-schulungen, .rank-zeit { grid-column: 2; text-align: left; margin-top: 8px; }
}

@media (max-width: 880px) {
  .nav-item-dropdown { width: 100%; }
  .nav-drop-trigger { width: 100%; padding: 15px 32px; justify-content: space-between; font-size: 14.5px; color: var(--text-secondary); }
  .nav-dropdown-panel {
    position: static;
    width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: var(--bg-elevated-2);
    opacity: 1; visibility: visible; transform: none;
    display: none;
  }
  .nav-item-dropdown.open .nav-dropdown-panel { display: block; }
}

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 15px 32px; width: 100%; border-bottom: 1px solid var(--border-soft); }
  .nav-toggle { display: flex; }
  .nav-inner { padding: 0 18px; gap: 12px; }
  .nav-cta { padding: 9px 14px; font-size: 13px; }
  .brand { font-size: 16px; }
}

/* ------------------------------ Breadcrumb -------------------------------- */

.breadcrumb {
  padding: 24px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb .current { color: var(--text-primary); font-weight: 500; }

/* -------------------------------- Badges ---------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 7px 14px;
  border-radius: 999px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
}

/* -------------------------------- Typo ------------------------------------ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--text-primary);
}

.accent { color: var(--accent-light); }

.lede {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 18px 0 0;
}

/* -------------------------------- Hero ------------------------------------ */

.hero {
  position: relative;
  padding: 68px 0 60px;
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}

.hero h1 { font-size: clamp(34px, 5vw, 52px); }

.hero-icon-badge {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle, rgba(46,124,246,0.14), transparent 70%);
}
.hero-icon-badge svg.ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-icon-badge svg.cross {
  width: 34px;
  height: 34px;
  position: relative;
  z-index: 1;
}
.hero-centered { text-align: center; max-width: 640px; margin: 0 auto; }
.hero-centered .lede { margin-left: auto; margin-right: auto; }
.hero-credit {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 18px;
}
.hero-credit b { color: var(--text-secondary); font-weight: 500; }

/* Dispatch ticker — signature element */
.ticker {
  margin-top: 36px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.6);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, black 0%, black 88%, transparent 100%);
}
.ticker-label {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: var(--bg-elevated-2);
  border-right: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  z-index: 2;
}
.ticker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--status-green);
  box-shadow: 0 0 6px var(--status-green);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.ticker-track {
  display: flex;
  white-space: nowrap;
  padding: 14px 0;
  padding-left: 140px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  animation: scroll 28s linear infinite;
}
.ticker-track span { padding: 0 28px; border-right: 1px solid var(--border-soft); }
.ticker-track span b { color: var(--accent-light); font-weight: 500; }
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ------------------------------ Meta bar ----------------------------------- */

.meta-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.meta-item .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.meta-item .value { font-size: 15px; font-weight: 600; }

@media (max-width: 700px) {
  .meta-bar { grid-template-columns: repeat(2, 1fr); }
}

/* -------------------------------- Sections --------------------------------- */

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-border-top { border-top: 1px solid var(--border-soft); }

.section-head { margin-bottom: 36px; max-width: 680px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 12px; }

/* -------------------------------- Cards ------------------------------------ */

.grid {
  display: grid;
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -20px rgba(46, 124, 246, 0.35);
}

.card .card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* Training / academy list item */
.training-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.training-item:hover {
  border-color: var(--accent-border);
  transform: translateX(3px);
  box-shadow: -3px 0 0 var(--accent) inset;
}
.training-item + .training-item { margin-top: 12px; }
.training-item .t-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-light);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.training-item .t-body { flex: 1; }
.training-item h3 { font-size: 16px; margin-bottom: 4px; }
.training-item p { font-size: 13.5px; color: var(--text-secondary); margin: 0; }
.training-item .t-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* -------------------------------- Callouts ---------------------------------- */

.callout {
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 14.5px;
  border: 1px solid;
  margin: 20px 0;
}
.callout-safety {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--text-primary);
}
.callout-note {
  background: var(--status-amber-dim);
  border-color: var(--status-amber-border);
  color: var(--text-primary);
  display: flex;
  gap: 12px;
}
.callout-note .icon { color: var(--status-amber); flex-shrink: 0; }
.callout b { color: var(--accent-light); }
.callout-note b { color: var(--status-amber); }

/* -------------------------------- Leadership -------------------------------- */

.person-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.person-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent-light);
  flex-shrink: 0;
  font-size: 15px;
}
.person-name { font-weight: 600; font-size: 15px; }
.person-role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin: 4px 0 8px;
}
.person-desc { font-size: 13.5px; color: var(--text-secondary); }

/* -------------------------------- Buttons ------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: var(--radius);
  transition: all 0.15s ease;
}
.btn-primary { background: var(--accent); color: #060810; box-shadow: 0 8px 20px -8px rgba(46, 124, 246, 0.55); }
.btn-primary:hover { background: var(--accent-light); box-shadow: 0 10px 26px -8px rgba(46, 124, 246, 0.75); transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.btn-ghost:hover { border-color: var(--accent-border); color: var(--accent-light); background: var(--accent-dim); }

/* -------------------------------- Table (Funkcodes) --------------------------- */

.code-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.code-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.code-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-secondary);
}
.code-table td:first-child {
  font-family: var(--font-mono);
  color: var(--accent-light);
  font-weight: 500;
  white-space: nowrap;
}
.code-table tr:hover td { color: var(--text-primary); }

/* -------------------------------- Footer -------------------------------------- */

.footer {
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(to bottom, transparent, rgba(46, 124, 246, 0.03));
  padding: 40px 0;
  margin-top: 40px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 120px; height: 1px;
  background: var(--accent);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}
.footer-links a:hover { color: var(--accent-light); }

/* -------------------------------- Placeholder page ----------------------------- */

.placeholder {
  padding: 100px 0;
  text-align: center;
}
.placeholder .badge { margin-bottom: 20px; }
.placeholder h1 { font-size: clamp(28px, 4vw, 40px); }
.placeholder p { color: var(--text-secondary); max-width: 480px; margin: 16px auto 0; }
