/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-disclaimer i {
  color: var(--yellow);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
}

.footer-links a:hover { color: var(--text); }
.footer-links a i { font-size: 11px; }

@media (max-width: 480px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════
   DISCLAIMER BOX
═══════════════════════════════════════ */
.disclaimer-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #f5a62318;
  border: 1px solid #f5a62355;
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.disclaimer-icon {
  color: var(--yellow);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.disclaimer-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 6px;
}

.disclaimer-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.disclaimer-text strong {
  color: var(--text);
}

/* ═══════════════════════════════════════
   VARIABLEN & RESET
═══════════════════════════════════════ */
:root {
  --red:      #cc1f1f;
  --red-dark: #a01818;
  --red-dim:  #cc1f1f22;
  --yellow:   #f5a623;
  --blue-dim: #1f66cc22;
  --green-dim:#1fcc6622;
  --bg:       #1a1a1a;
  --surface:  #242424;
  --surface2: #2e2e2e;
  --border:   #3a3a3a;
  --text:     #f0f0f0;
  --muted:    #999;
  --radius:   10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
header {
  background: var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px #0008;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  max-width: 680px;
  margin: 0 auto;
  position: relative; /* Ankerpunkt für das Dropdown */
}

.header-icon {
  font-size: 26px;
  line-height: 1;
}

header h1 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

header p {
  font-size: 11px;
  opacity: .8;
}

/* ═══════════════════════════════════════
   BURGER BUTTON (im Header)
═══════════════════════════════════════ */
.burger {
  display: none;
  margin-left: auto;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 17px;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}

.burger:hover { background: rgba(255,255,255,.25); }

/* ═══════════════════════════════════════
   NAV – DESKTOP (icons only, centered)
═══════════════════════════════════════ */
nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: all .2s;
  min-width: 56px;
}

nav a i { font-size: 18px; }

nav a span {
  font-size: 10px;
  letter-spacing: .02em;
}

nav a:hover {
  border-color: var(--red);
  color: var(--text);
}

nav a.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-weight: 600;
}

/* ═══════════════════════════════════════
   NAV – MOBILE (burger dropdown aus Header)
═══════════════════════════════════════ */
@media (max-width: 540px) {
  .burger { display: block; }

  nav {
    display: none;
    position: fixed;
    top: 57px; /* Höhe des Headers */
    left: 0; right: 0;
    z-index: 999;
    flex-direction: column;
    gap: 4px;
    padding: 8px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 20px #0008;
    justify-content: flex-start;
  }

  nav.nav-open { display: flex; }

  nav a {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 14px;
    min-width: unset;
    border-radius: 8px;
  }

  nav a i { font-size: 16px; width: 20px; text-align: center; }
  nav a span { font-size: 14px; }
}

/* ═══════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════ */
main {
  padding: 16px;
  max-width: 680px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════
   TYPOGRAFIE
═══════════════════════════════════════ */
h2 {
  font-size: 13px;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 20px 0 10px;
}

h2:first-child { margin-top: 0; }

h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════
   KACHELN / GRID
═══════════════════════════════════════ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
}

.card .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.card .label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.card .name {
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}

.card i {
  font-size: 20px;
  color: var(--red);
  margin-bottom: 6px;
}

/* ═══════════════════════════════════════
   AKKORDEON
═══════════════════════════════════════ */
.acc {
  margin-bottom: 8px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.acc summary {
  background: var(--surface);
  padding: 12px 14px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.acc summary::after {
  content: '\f078'; /* fa-chevron-down */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 12px;
  color: var(--red);
  margin-left: auto;
  transition: transform .2s;
}

.acc[open] summary::after {
  transform: rotate(180deg);
}

.acc summary i {
  color: var(--red);
  width: 18px;
  text-align: center;
}

.acc .body {
  padding: 12px 14px;
  background: var(--surface2);
}

/* ═══════════════════════════════════════
   LISTEN
═══════════════════════════════════════ */
ul.list {
  padding-left: 18px;
}

ul.list li {
  margin-bottom: 6px;
  line-height: 1.5;
  font-size: 13px;
}

ul.list li strong {
  color: var(--text);
}

/* ═══════════════════════════════════════
   TABELLE
═══════════════════════════════════════ */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 12px;
}

.tbl th {
  background: var(--red-dark);
  color: #fff;
  padding: 8px 10px;
  text-align: left;
  font-size: 12px;
}

.tbl td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.tbl tr:nth-child(even) td {
  background: var(--surface2);
}

/* ═══════════════════════════════════════
   TAGS / BADGES
═══════════════════════════════════════ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  margin-right: 4px;
  margin-bottom: 4px;
}

.tag-gf  { background: #cccc1f33; color: #ffff66;  border: 1px solid #cccc1f66; }
.tag-at  { background: #cc1f1f33; color: #ff6b6b;  border: 1px solid #cc1f1f66; }
.tag-wt  { background: #1f66cc33; color: #6ba8ff;  border: 1px solid #1f66cc66; }
.tag-st  { background: #cc7f1f33; color: #ffb84d;  border: 1px solid #cc7f1f66; }
.tag-ma  { background: #8b1fcc33; color: #c084ff;  border: 1px solid #8b1fcc66; }
.tag-me  { background: #1fcc6633; color: #4dffaa;  border: 1px solid #1fcc6666; }

/* ═══════════════════════════════════════
   INFO / WARN / OK BOXEN
═══════════════════════════════════════ */
.box {
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.5;
}

.box i { margin-top: 2px; flex-shrink: 0; }

.box-warn  { background: #cc1f1f22; border: 1px solid #cc1f1f66; color: #ffaaaa; }
.box-info  { background: #1f66cc22; border: 1px solid #1f66cc66; color: #aaccff; }
.box-ok    { background: #1fcc6622; border: 1px solid #1fcc6666; color: #aaffcc; }
.box-yellow{ background: #f5a62322; border: 1px solid #f5a62366; color: #ffe0a0; }

/* ═══════════════════════════════════════
   SCHEMA-BLOCK
═══════════════════════════════════════ */
.schema {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
}

.schema-row {
  display: flex;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.schema-row:last-child { border-bottom: none; }

.schema-key {
  color: var(--yellow);
  font-weight: 700;
  min-width: 120px;
  flex-shrink: 0;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.schema-val { line-height: 1.5; }

/* ═══════════════════════════════════════
   ABLAUF-SCHRITTE
═══════════════════════════════════════ */
.steps { margin-top: 6px; }

.step {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  align-items: flex-start;
}

.step-num {
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  min-width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

.step-text { font-size: 13px; line-height: 1.5; }

/* ═══════════════════════════════════════
   AUSRÜSTUNGS-PILLS
═══════════════════════════════════════ */
.aus-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.aus-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.aus-item i {
  color: var(--red);
  font-size: 12px;
}

/* ═══════════════════════════════════════
   PHASE-BLOCK
═══════════════════════════════════════ */
.phase {
  border-left: 3px solid var(--red);
  padding: 10px 12px;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  margin-bottom: 8px;
}

.phase h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.phase p, .phase li {
  font-size: 13px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   DIVIDER
═══════════════════════════════════════ */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

/* ═══════════════════════════════════════
   NOTIZ
═══════════════════════════════════════ */
.note {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin-top: 8px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════
   KOMMANDO-BLOCK
═══════════════════════════════════════ */
.kommando {
  background: #111;
  border: 1px solid var(--red-dark);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: monospace;
  font-size: 13px;
  color: #ffdddd;
  margin: 8px 0;
  line-height: 1.7;
}

.kommando span {
  color: var(--yellow);
  font-weight: bold;
}

/* ═══════════════════════════════════════
   HEADER BACK BUTTON
═══════════════════════════════════════ */
.header-back {
  color: rgba(255,255,255,.8);
  font-size: 16px;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background .2s;
  flex-shrink: 0;
}
.header-back:hover { background: rgba(255,255,255,.15); }

/* ═══════════════════════════════════════
   DASHBOARD
═══════════════════════════════════════ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

.dv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .2s, background .2s;
}

.dv-card:hover {
  border-color: var(--red);
  background: var(--surface2);
}

.dv-card--soon {
  opacity: .45;
  pointer-events: none;
  cursor: default;
}

.dv-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  align-self: flex-start;
  letter-spacing: .05em;
}

.dv-badge--muted {
  background: var(--surface2);
  color: var(--muted);
}

.dv-icon {
  font-size: 28px;
  color: var(--red);
  line-height: 1;
}

.dv-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.dv-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.dv-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.dv-chapters span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 20px;
}

.dv-chapters span i { font-size: 10px; color: var(--red); }

/* ═══════════════════════════════════════
   RESPONSIVE – MOBILE
═══════════════════════════════════════ */
@media (max-width: 400px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .schema-key { min-width: 90px; }
}

/* Sidebar standardmäßig ausblenden (Mobile first) */
.sidebar { display: none; }

/* ═══════════════════════════════════════
   RESPONSIVE – DESKTOP (≥ 900px)
═══════════════════════════════════════ */
@media (min-width: 900px) {

  /* Burger ausblenden, Desktop-Nav anzeigen */
  .burger { display: none !important; }

  nav {
    display: flex !important;
    position: static !important;
    max-height: none !important;
    flex-direction: row !important;
    justify-content: center;
    padding: 10px 24px;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
  }

  nav a {
    flex-direction: column;
    padding: 8px 18px;
    min-width: 70px;
    border-radius: var(--radius);
  }

  nav a i { font-size: 20px; }
  nav a span { font-size: 11px; }

  /* Breiteres Layout */
  main {
    max-width: 1100px;
    padding: 24px 32px;
    width: 100%;
  }

  .header-inner {
    max-width: 1100px;
    padding: 14px 32px;
  }

  /* Dashboard – 4 Spalten */
  .dashboard-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .dv-card {
    padding: 20px;
  }

  .dv-icon { font-size: 32px; }
  .dv-title { font-size: 15px; }

  /* Content-Layout mit Seitenleiste */
  .desktop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: flex-start;
  }

  /* Sidebar auf Desktop einblenden */
  .sidebar {
    display: block;
    position: sticky;
    top: 80px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .sidebar-title {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    background: var(--surface2);
  }

  .sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    transition: all .15s;
  }

  .sidebar a:last-child { border-bottom: none; }

  .sidebar a:hover {
    background: var(--surface2);
    color: var(--text);
  }

  .sidebar a.active {
    background: var(--red-dim);
    color: var(--text);
    border-left: 3px solid var(--red);
  }

  .sidebar a i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    color: var(--red);
  }

  /* Akkordeons nebeneinander auf Desktop */
  .acc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* Tabellen lesbarer */
  .tbl { font-size: 14px; }
  .tbl td, .tbl th { padding: 10px 14px; }

  /* Schriftgröße anpassen */
  ul.list li { font-size: 14px; }
  .step-text { font-size: 14px; }
  .aus-item { font-size: 13px; }
}

/* ═══════════════════════════════════════
   RESPONSIVE – WIDE DESKTOP (≥ 1200px)
═══════════════════════════════════════ */
@media (min-width: 1200px) {
  main { max-width: 1300px; }
  .header-inner { max-width: 1300px; }
  .desktop-layout { grid-template-columns: 260px 1fr; }
  .dashboard-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}