/* ── SCHRIFTEN: Lokal gehostet (kein Google Fonts Request) ─ */
@font-face {
  font-family: 'Space Mono';
  src: url('fonts/space-mono-v13-latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('fonts/space-mono-v13-latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans-v15-latin-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans-v15-latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans-v15-latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans-v15-latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
/* ─── RESET & BASE ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #080b0f;
  --surface:    #0e1318;
  --surface2:   #141c24;
  --border:     #1e2a36;
  --border2:    #243040;
  --accent:     #f59e0b;
  --accent2:    #38bdf8;
  --text:       #dde4ee;
  --text2:      #8897a8;
  --text3:      #50606e;
  --sidebar-w:  260px;
  --radius:     10px;
  --font-mono:  'Space Mono', 'Courier New', Courier, monospace;
  --font-body:  'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --shadow:     0 4px 24px rgba(0,0,0,.55);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;          /* Footer kann in neue Zeile umbrechen */
  align-content: flex-start;
  min-height: 100vh;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── GRID BACKGROUND ──────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ─── SIDEBAR ───────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  transition: transform .25s ease;
}

.sidebar-inner {
  padding: 28px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 0 8px #f59e0b88);
}
.logo-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  color: var(--accent);
}
.logo-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .25em;
  color: var(--text3);
  margin-top: 2px;
}

.sidebar-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

/* Stat */
.sidebar-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* Category nav */
.cat-nav-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--text3);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}
.cat-nav ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.cat-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .15s, color .15s;
  text-align: left;
}
.cat-btn:hover { background: var(--surface2); color: var(--text); }
.cat-btn.active {
  background: color-mix(in srgb, var(--cat-color, var(--accent)) 12%, transparent);
  color: var(--cat-color, var(--accent));
  font-weight: 500;
}
.cat-btn span {
  font-size: 11px;
  background: var(--surface2);
  border-radius: 99px;
  padding: 1px 7px;
  color: var(--text3);
}
.cat-btn.active span {
  background: color-mix(in srgb, var(--cat-color, var(--accent)) 20%, transparent);
  color: var(--cat-color, var(--accent));
}

/* Telegram Box */
.telegram-box {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.tg-icon { font-size: 20px; }
.tg-title { font-size: 12px; color: var(--text2); margin-bottom: 2px; }
.tg-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent2);
}

/* ─── MAIN ──────────────────────────────────────────── */
.main {
  margin-left: var(--sidebar-w);
  flex: 1 1 calc(100% - var(--sidebar-w)); /* volle Breite minus Sidebar */
  min-height: calc(100vh - 120px);          /* Platz für Footer lassen */
  padding: 0 32px 60px;
  position: relative;
  z-index: 1;
  max-width: 1100px;
}

/* ─── TOP BAR ───────────────────────────────────────── */
.top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  position: static;
  background: transparent;
  z-index: auto;
  backdrop-filter: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border2);
  color: var(--text2);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 16px;
}

.search-wrap { flex: 1; }
.search-wrap input {
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.search-wrap input:focus { border-color: var(--accent2); }
.search-wrap input::placeholder { color: var(--text3); }

.filter-wrap { display: flex; gap: 8px; }
.filter-wrap select {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--text2);
  font-size: 13px;
  cursor: pointer;
  outline: none;
}
.filter-wrap select:focus { border-color: var(--accent2); }

/* ─── HERO ──────────────────────────────────────────── */
.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 40px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-week {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 14px;
}
.hero-desc {
  font-size: 15px;
  color: var(--text2);
  max-width: 580px;
  margin-bottom: 24px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 8px;
  transition: opacity .15s, transform .15s;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
  font-size: 14px;
  padding: 9px 22px;
  border-radius: 8px;
  transition: border-color .15s, color .15s;
}
.btn-secondary:hover { border-color: var(--text2); color: var(--text); text-decoration: none; }

/* ─── SECTION HEADER ────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.section-header h2 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.result-count {
  font-size: 12px;
  color: var(--text3);
  font-family: var(--font-mono);
}

/* ─── CARD GRID ─────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* ─── CARD ──────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--cat-color, var(--accent));
  opacity: 0;
  transition: opacity .2s;
}
.card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.card:hover::before { opacity: 1; }

.card--new {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}
.card--new::before { opacity: 1; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-cat {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid;
  letter-spacing: .04em;
}
.card-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .06em;
}
.card-week {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text3);
}

.card-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text3);
  flex-wrap: wrap;
}
.diff-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.diff-label { font-weight: 500; }
.card-cost, .card-time { white-space: nowrap; }

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tag {
  font-size: 11px;
  background: var(--surface2);
  color: var(--text3);
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 1px 7px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text3);
  font-family: var(--font-mono);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ─── EMPTY STATE ───────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 80px 20px;
  color: var(--text3);
  font-size: 14px;
}
.empty-state span { font-size: 40px; }

/* ─── POST PAGE ─────────────────────────────────────── */
.post-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  position: relative;   /* stacking context über body::before */
  z-index: 1;
  width: 100%;          /* volle Breite im flex-body */
  flex: 1 1 100%;       /* flex-child füllt volle Breite */
}
.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.back-link {
  font-size: 13px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .15s;
}
.back-link:hover { color: var(--accent); text-decoration: none; }
.week-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 4px;
  padding: 3px 10px;
}

.post-article { display: flex; flex-direction: column; gap: 28px; }

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.category-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid;
}
.difficulty-dot { width: 10px; height: 10px; border-radius: 50%; }
.difficulty-text { font-size: 13px; color: var(--text2); }

.post-header h1 {
  font-family: var(--font-mono);
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-top: 6px;
}
.title-original { font-size: 13px; color: var(--text3); margin-top: 6px; font-style: italic; }

.post-description p {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.8;
}

.highlight-box {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.highlight-icon { font-size: 20px; flex-shrink: 0; }
.highlight-box p { font-size: 14px; color: var(--text); line-height: 1.6; }

.post-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text3); font-family: var(--font-mono); }
.stat-value { font-size: 16px; font-weight: 600; color: var(--text); }

.tags-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tags-row .tag { font-size: 12px; padding: 4px 10px; }

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 10px;
  text-align: center;
  transition: opacity .15s, transform .15s;
}
.cta-button:hover { opacity: .88; transform: translateY(-2px); text-decoration: none; }

.source-note {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}


/* ─── SIDEBAR OVERLAY (mobil) ──────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  z-index: 99;               /* unter Sidebar (z-index 100), über allem anderen */
  cursor: pointer;
}
.overlay--visible {
  display: block;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar--open {
    transform: translateX(0);
    box-shadow: var(--shadow);
  }
  .main {
    margin-left: 0;
    padding: 0 16px 60px;
  }
  .menu-toggle { display: block; }
  .hero { padding: 24px 20px; }
  .card-grid { grid-template-columns: 1fr; }
  .filter-wrap select { display: none; }
  .post-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .search-wrap input { max-width: 100%; }
  .post-stats { grid-template-columns: 1fr; }
}

/* ─── SITE FOOTER ───────────────────────────────────── */
.site-footer {
  margin-left: var(--sidebar-w);
  flex: 1 1 calc(100% - var(--sidebar-w)); /* gleiche Breite wie .main */
  border-top: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1100px;
  padding: 24px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-disclaimer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(245,158,11,.06);
  border: 1px solid rgba(245,158,11,.18);
  border-radius: 8px;
  padding: 14px 18px;
}
.disclaimer-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-disclaimer p {
  font-size: 12px;
  color: var(--t2);
  line-height: 1.65;
  margin: 0;
}
.footer-disclaimer strong { color: var(--acc); font-weight: 600; }
.footer-disclaimer a {
  color: var(--acc2);
  white-space: nowrap;
  font-size: 12px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--t3);
  text-decoration: none;
  transition: color .15s;
  font-family: var(--font-mono);
  letter-spacing: .04em;
}
.footer-links a:hover { color: var(--acc2); }
.footer-sep { color: var(--border2); }
.footer-copy { color: var(--t3); font-family: var(--font-mono); font-size: 11px; margin-left: auto; }

@media (max-width: 768px) {
  .site-footer {
    margin-left: 0;
    flex-basis: 100%;   /* mobil volle Breite */
  }
  .footer-inner { padding: 20px 16px 24px; }
  .footer-copy { margin-left: 0; }
}

/* ─── LEGAL PAGES (Impressum, Datenschutz, Disclaimer) ─ */
.legal-page {
  max-width: 740px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.legal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.legal-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--t3);
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 3px 10px;
  text-transform: uppercase;
}

.legal-article {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legal-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--acc2);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.legal-article h1 {
  font-family: var(--font-mono);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section h2 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--acc);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 16px 0 6px;
  letter-spacing: 0;
}

.legal-section p {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.8;
  margin-bottom: 10px;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  margin: 8px 0 12px 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legal-section li {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.7;
}
.legal-section li::marker { color: var(--acc); }

.legal-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--acc2);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 8px 0 12px;
}
.legal-block p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}
.legal-block strong { color: var(--text); }

.legal-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(56,189,248,.07);
  border: 1px solid rgba(56,189,248,.2);
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 36px;
}
.legal-note span { font-size: 18px; flex-shrink: 0; }
.legal-note p {
  font-size: 12px !important;
  color: var(--t2) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}
.legal-note strong { color: var(--acc2) !important; }
.legal-note em { color: var(--t3); }

/* Disclaimer Summary Box */
.disclaimer-summary {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(239,68,68,.07);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 36px;
}
.disclaimer-summary-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.disclaimer-summary-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(239,68,68,.8);
  text-transform: uppercase;
  margin-bottom: 6px !important;
}
.disclaimer-summary-text {
  font-size: 15px !important;
  color: var(--text) !important;
  line-height: 1.7 !important;
}
.disclaimer-summary-text strong {
  color: #ef4444 !important;
}

.legal-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.legal-footer a {
  color: var(--t3);
  text-decoration: none;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  transition: color .15s;
}
.legal-footer a:hover { color: var(--acc2); }
.legal-footer span { color: var(--border2); }

@media (max-width: 600px) {
  .legal-page { padding: 24px 16px 60px; }
  .disclaimer-summary { flex-direction: column; gap: 10px; }
}


/* ─── FIXIERTER SITE-HEADER ─────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  z-index: 50;
  background: var(--bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Banner-Inhalt (Marke + Claim + Kategorien) */
.site-header .site-banner-content {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  flex-wrap: wrap;
  position: relative;
}

.site-banner-left {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}

/* Kompakter Titel im Header */
.site-header .site-banner-title {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  letter-spacing: -.01em;
  margin-bottom: 0;
}
.site-header .site-banner-accent {
  color: var(--accent);
}

.site-header .site-banner-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}

/* Claim-Text – kompakter im Header */
.site-header .site-banner-claim {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.5;
  max-width: 340px;
  margin-bottom: 0;
  flex: 1;
}

/* Kategorie-Pills im Header */
.site-header .site-banner-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: auto;
}
.site-header .site-banner-cats span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text3);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 7px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.site-header .site-banner-cats span:last-child {
  color: var(--accent);
  border-color: rgba(245,158,11,.3);
  background: rgba(245,158,11,.06);
}

/* Trennlinie zwischen Banner und Top-Bar */
.header-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 15%,
    var(--border2) 50%,
    transparent 100%
  );
  margin: 0 32px;
  opacity: .6;
}

/* Top-Bar im site-header: kein position:sticky mehr nötig */
.site-header .top-bar {
  position: static;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  padding: 10px 32px;
  margin-bottom: 0;
}

/* Haupt-Content-Bereich: Abstand nach oben damit er nicht hinter Header verschwindet */
/* Wird per JS gesetzt – Fallback hier: */
.main {
  padding-top: 140px;  /* Fallback – wird per JS präzise berechnet */
}

@media (max-width: 768px) {
  .site-header {
    left: 0;
  }
  .site-header .site-banner-content {
    padding: 10px 16px;
    gap: 12px;
  }
  .site-header .site-banner-claim {
    display: none;   /* zu wenig Platz auf Mobil */
  }
  .site-header .site-banner-cats {
    display: none;
  }
  .site-header .site-banner-title {
    font-size: 18px;
  }
  .header-divider { margin: 0 16px; }
  .site-header .top-bar { padding: 8px 16px; }
  .main { padding-top: 100px; }
}

/* ─── SITE BANNER (Legacy-Klassen bleiben für Post-Pages) ───────────────────────────────────── */
.site-banner {
  position: relative;
  overflow: hidden;
  padding: 52px 40px 44px;
  margin-bottom: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-left: 3px solid var(--accent);
}

/* Funken-Partikel (CSS-only Animation) */
.site-banner-spark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.spark {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: sparkFloat 5s infinite ease-in-out;
}
.spark.s1 { width:4px;  height:4px;  background:var(--accent);  top:20%; right:15%; animation-delay:0s;    animation-duration:4.5s; }
.spark.s2 { width:3px;  height:3px;  background:var(--accent2); top:60%; right:8%;  animation-delay:1.2s;  animation-duration:5.5s; }
.spark.s3 { width:5px;  height:5px;  background:var(--accent);  top:40%; right:25%; animation-delay:2.1s;  animation-duration:4s;   }
.spark.s4 { width:2px;  height:2px;  background:var(--accent2); top:75%; right:18%; animation-delay:0.7s;  animation-duration:6s;   }
.spark.s5 { width:6px;  height:6px;  background:var(--accent);  top:30%; right:35%; animation-delay:3s;    animation-duration:5s;   opacity:.0; }

@keyframes sparkFloat {
  0%   { opacity:0;   transform: translateY(0)    scale(1); }
  20%  { opacity:.8;  transform: translateY(-8px)  scale(1.2); }
  50%  { opacity:.5;  transform: translateY(-20px) scale(0.9); }
  80%  { opacity:.2;  transform: translateY(-35px) scale(0.7); }
  100% { opacity:0;   transform: translateY(-50px) scale(0.5); }
}

/* Hintergrund-Radial hinter den Funken */
.site-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.08) 0%, transparent 65%);
  pointer-events: none;
}

.site-banner-content { position: relative; z-index: 1; }

.site-banner-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.site-banner-title {
  font-family: var(--font-mono);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -.01em;
}
.site-banner-accent {
  color: var(--accent);
  position: relative;
}
.site-banner-accent::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: .35;
  border-radius: 2px;
}

.site-banner-claim {
  font-size: 15px;
  color: var(--text2);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.site-banner-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.site-banner-cats span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text3);
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 3px 10px;
  letter-spacing: .05em;
}
.site-banner-cats span:last-child {
  color: var(--accent);
  border-color: rgba(245,158,11,.3);
  background: rgba(245,158,11,.06);
}

@media (max-width: 768px) {
  .site-banner { padding: 32px 20px 28px; }
  .site-banner-title { font-size: 44px; }
}
