/* ═══════════════════════════════════════════════════════
   rogvelation – style.css
   Font: Black Ops One (Headlines), System-UI (Body)
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Dark Mode (default) ───────────────────────────────── */
:root {
  --bg:              #1c1c1c;
  --bg-nav:          #111111;
  --bg-card:         #252525;
  --bg-card-h:       #2e2e2e;
  --red:             #cc0000;
  --red-hover:       #e60000;
  --red-light:       #d44;
  --text:            #f0f0f0;
  --muted:           #888;
  --border:          rgba(255,255,255,0.08);
  --topbar-bg:       rgba(17,17,17,0.93);
  --shadow:          0 12px 36px rgba(0,0,0,0.55);
  --nav-w:           240px;
  --radius:          8px;
  --ease:            0.22s ease;
  --nav-hover-bg:    rgba(255,255,255,0.05);
  --nav-label-color: #6a6a6a;
  --footer-color:    #333;
}

/* ── Light Mode ─────────────────────────────────────────── */
html.light {
  --bg:              #ffffff;
  --bg-nav:          #f4f4f4;
  --bg-card:         #eeeeee;
  --bg-card-h:       #e5e5e5;
  --red:             #cc0000;
  --red-hover:       #aa0000;
  --red-light:       #d44;
  --text:            #1a1a1a;
  --muted:           #666;
  --border:          rgba(0,0,0,0.1);
  --topbar-bg:       rgba(244,244,244,0.96);
  --shadow:          0 6px 20px rgba(0,0,0,0.1);
  --nav-hover-bg:    rgba(0,0,0,0.05);
  --nav-label-color: #7a7a7a;
  --footer-color:    #bbb;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}

/* ── Hintergrund-Canvas ────────────────────────────────── */
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ── App-Shell ─────────────────────────────────────────── */
#app { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════ */
#sidebar {
  width: var(--nav-w);
  background: var(--bg-nav);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform var(--ease), background 0.35s ease, border-color 0.35s ease;
}

.sidebar-logo {
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-logo a { display: inline-flex; align-items: center; text-decoration: none; }

.logo-wordmark {
  font-family: "Black Ops One", system-ui;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: 0.03em;
  line-height: 1;
  transition: color 0.35s ease;
}
.logo-wordmark .rog { color: var(--red); }

.sidebar-logo .tagline {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
}

.sidebar-nav { flex: 1; padding: 8px 0; }
.nav-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--nav-label-color);
  padding: 14px 20px 4px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  border-left: 3px solid transparent;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
}
.sidebar-nav a .icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-nav a:hover  { color: var(--text); background: var(--nav-hover-bg); border-left-color: rgba(204,0,0,0.4); }
.sidebar-nav a.active { color: var(--red); background: rgba(204,0,0,0.08); border-left-color: var(--red); }

.sidebar-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--footer-color);
}

/* ══════════════════════════════════════════════════════════
   BURGER + OVERLAY (Mobil)
   ══════════════════════════════════════════════════════════ */
#burger {
  display: none;
  position: fixed;
  top: 11px; left: 11px;
  z-index: 300;
  background: var(--bg-nav);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 11px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  transition: background 0.35s ease;
}
#burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease), background 0.35s ease;
}
#burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#burger.open span:nth-child(2) { opacity: 0; }
#burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 150;
  backdrop-filter: blur(2px);
}
#overlay.show { display: block; }

/* ══════════════════════════════════════════════════════════
   MAIN + TOPBAR
   ══════════════════════════════════════════════════════════ */
#main { margin-left: var(--nav-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

#topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--topbar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.breadcrumb { font-size: 0.82rem; color: var(--muted); }
.breadcrumb a { color: var(--red); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 6px; opacity: 0.35; }

.topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 15px;
  border: 1px solid var(--border); border-radius: 20px;
  color: var(--muted); text-decoration: none; font-size: 0.8rem;
  transition: color var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.back-btn:hover { color: var(--text); border-color: var(--red); }

/* ── Icon-Button (Druck) ── */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--border); border-radius: 50%;
  background: transparent; cursor: pointer; font-size: 0.95rem;
  color: var(--muted);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--red); background: var(--nav-hover-bg); }

/* ── Theme-Toggle Switch: Icon sitzt IM Knopf, eindeutig erkennbar ── */
.theme-switch {
  display: inline-flex; align-items: center;
  border: none; background: transparent; cursor: pointer;
  padding: 0; font-family: inherit;
}
.theme-switch .switch-track {
  position: relative;
  width: 46px; height: 24px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: background var(--ease), border-color var(--ease);
}
.theme-switch .switch-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--red);
  transition: transform 0.25s ease;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.theme-switch .knob-icon {
  position: absolute;
  font-size: 0.62rem;
  line-height: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
/* Dark-Mode (Standard): Knob links, zeigt Mond */
.theme-switch .knob-icon-moon { opacity: 1;  transform: scale(1); }
.theme-switch .knob-icon-sun  { opacity: 0;  transform: scale(0.4); }
/* Light-Mode: Knob rechts, zeigt Sonne */
html.light .theme-switch .switch-knob { transform: translateX(22px); }
html.light .theme-switch .knob-icon-sun  { opacity: 1; transform: scale(1); }
html.light .theme-switch .knob-icon-moon { opacity: 0; transform: scale(0.4); }

/* ══════════════════════════════════════════════════════════
   STARTSEITE – HERO
   ══════════════════════════════════════════════════════════ */
.hero { padding: 52px 40px 32px; }

.hero h1 {
  font-family: "Black Ops One", system-ui;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.3em;
}
.hero p { font-size: 1.05rem; color: var(--muted); } /** max-width: 560px; **/

.topics-section { padding: 12px 40px 72px; }
.topics-section > h2 {
  font-family: "Black Ops One", system-ui;
  color: var(--red);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

/* ── Karten mit Bild ── */
.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease), background var(--ease);
  position: relative;
}
.topic-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 2;
}
.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(204,0,0,0.3);
  background: var(--bg-card-h);
}
.topic-card:hover::after { transform: scaleX(1); }

/* Bild nutzt volle Kachelbreite, skaliert mit Container (also auch bei
   Fenster-Resize und Browser-Zoom, da relative/% statt px verwendet wird) */
.card-image-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-card-h);
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.topic-card:hover .card-image { transform: scale(1.06); }

.card-title {
  font-family: "Black Ops One", system-ui;
  font-size: 1.05rem;
  color: var(--red);
  padding: 16px 20px 4px;
}
.card-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
  padding: 0 20px 20px;
}

/* ══════════════════════════════════════════════════════════
   UNTERSEITEN
   ══════════════════════════════════════════════════════════ */
.page-content { flex: 1; padding: 44px 40px 80px; width: 100%; }

h1 {
  font-family: "Black Ops One", system-ui;
  color: var(--text);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 0.3em;
}
.h1-rog { color: var(--red); }
h2 {
  font-family: "Black Ops One", system-ui;
  color: var(--red);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  margin: 2em 0 0.4em;
}
.h2-date { color: var(--text); }
h3 {
  font-family: "Black Ops One", system-ui;
  color: var(--red-light);
  font-size: 1.05rem;
  margin: 1.4em 0 0.3em;
}

.content-source { color: var(--white); font-weight: bold; align: right; }

.page-content p  { margin-bottom: 1em; }
.page-content ul,
.page-content ol { padding-left: 1.5em; margin-bottom: 1em; }
.page-content li { margin-bottom: 0.3em; }

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2em;
  padding-bottom: 1.4em;
  border-bottom: 1px solid var(--border);
}
a { color: var(--red-light); font-weight: bold; }
a:hover { color: var(--red-hover); }
hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

.info-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 1.2em;
  transition: background 0.35s ease;
}
.info-block h3 { margin-top: 0; }
.info-block p:last-child { margin-bottom: 0; }

.warning-note {
  background: rgba(204,0,0,0.08);
  border: 1px solid rgba(204,0,0,0.25);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 0.82rem;
  color: #c06060;
  margin-bottom: 2em;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE – MOBIL
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #burger  { display: flex; }
  #sidebar { transform: translateX(calc(-1 * var(--nav-w))); }
  #sidebar.open { transform: translateX(0); box-shadow: 8px 0 40px rgba(0,0,0,0.7); }
  #main { margin-left: 0; }
  #topbar { padding: 10px 14px 10px 65px; }
  .sidebar-logo { padding-top: 56px; }
  .hero { padding: 28px 20px 24px; }
  .topics-section { padding: 8px 20px 56px; }
  .page-content { padding: 32px 20px 60px; }
  .topics-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 420px) {
  .topics-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   DRUCKANSICHT – nur Inhalt, kein Menü/Hintergrund
   ══════════════════════════════════════════════════════════ */
@media print {
  #bg-canvas, #sidebar, #burger, #overlay, #topbar { display: none !important; }
  #main { margin-left: 0 !important; }
  body { background: #fff !important; color: #000 !important; }
  .page-content, .hero, .topics-section { padding: 0 !important; max-width: 100% !important; }
  h1, h2, h3 { color: #000 !important; }
  .h1-rog { color: #000 !important; }
  a { color: #000 !important; text-decoration: underline; }
  .topic-card { break-inside: avoid; border: 1px solid #ccc; }
  .info-block { border: 1px solid #ccc; background: #fff !important; }
  .warning-note { display: none; }
}
