/* ============================================================
   MB CAPITAL STRATEGIES GLOBAL — GLASS DESIGN SYSTEM "INK & CHAMPAGNE" v1 (Dec 2026)
   ------------------------------------------------------------
   Unified design layer for ALL sub pages (not index.html), loaded as the LAST
   stylesheet before </head>. Deliberately distinct from the German site
   (mbcapitalstrategies.com): deep ink-navy base, steel-blue light, champagne
   accents and Cormorant Garamond headlines — same brand family, own identity.
   Selectors start with "html body" so they beat single-class rules from
   page-level <style> blocks without !important everywhere.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
html:root {
  /* Champagne accent (replaces the German site's bright gold) */
  --gold: #cfb06a;
  --gold-strong: #e2c98f;
  --gold-light: #e2c98f;
  --gold-primary: #cfb06a;
  --gold-dark: #a88a48;
  --gold-soft: rgba(207,176,106,0.16);
  --gold-dim: rgba(207,176,106,0.12);
  --gold-subtle: rgba(207,176,106,0.08);
  --gold-glow: rgba(207,176,106,0.28);
  --gold-border: rgba(207,176,106,0.26);
  --gold-gradient: linear-gradient(135deg, #e2c98f 0%, #cfb06a 55%, #a88a48 100%);
  --gold-text-gradient: linear-gradient(135deg, #efdcae, #cfb06a);
  --steel: #8fb3e8;

  /* Ink navy */
  --bg: #060a14;
  --bg-soft: #0b1120;
  --bg-card: rgba(16,23,40,0.6);
  --dark: #060a14; --dark-2: #0b1120; --dark-3: #111a2e; --dark-4: #18233b;
  --black-deepest: #04070e; --black-deep: #060a14; --black-primary: #08101e;
  --black-card: #0d1526; --black-elevated: #111a2e; --black-surface: #16213a;
  --black-border: #1d2a45; --black-hover: #22314f;

  --text: #eef2fa; --text-primary: #eef2fa;
  --text-2: #c2cbe0; --text-soft: #c2cbe0; --text-secondary: #c2cbe0;
  --text-muted: #98a3bd; --muted: #98a3bd; --text-dim: #7f8aa5;
  --text-gold: #cfb06a;
  --border: rgba(170,195,235,0.10);
  --green: #3fb87a; --red: #ff6b6b;

  /* Glass (cool tint) */
  --glass-bg: rgba(16,23,40,0.56);
  --glass-bg-strong: rgba(10,15,28,0.84);
  --glass-sheen: linear-gradient(150deg, rgba(190,210,245,0.07) 0%, rgba(190,210,245,0.015) 45%, rgba(207,176,106,0.03) 100%);
  --glass-border: rgba(170,195,235,0.12);
  --glass-border-gold: rgba(207,176,106,0.28);
  --glass-blur: 16px;
  --glass-shadow: inset 0 1px 0 rgba(200,220,255,0.07), 0 12px 34px rgba(0,0,0,0.4);
  --glass-shadow-hover: inset 0 1px 0 rgba(200,220,255,0.1), 0 18px 46px rgba(0,0,0,0.5), 0 0 0 1px rgba(143,179,232,0.25);

  --radius: 18px; --radius-sm: 12px;
  --border-radius: 18px; --border-radius-sm: 12px;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
  --shadow-card: var(--glass-shadow); --shadow-hover: var(--glass-shadow-hover);
  --shadow-gold: 0 0 30px rgba(207,176,106,0.14);

  --font-sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: dark;
}

/* ---------- 2. BASIS & HINTERGRUND ---------- */
html body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 75% 50% at 50% -10%, rgba(90,130,210,0.16) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 100% 40%, rgba(60,95,170,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 45% 35% at 0% 85%, rgba(207,176,106,0.06) 0%, transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
html body ::selection { background: rgba(207,176,106,0.35); color: #fff; }

/* ---------- 3. TYPOGRAFIE ---------- */
html body h1 {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  letter-spacing: -0.005em;
  line-height: 1.08;
  color: var(--gold-strong);
  text-wrap: balance;
}
html body h2, html body h3, html body h4 {
  font-family: var(--font-sans);
  text-wrap: balance;
}
html body h2 { color: var(--gold); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
html body h3 { font-weight: 700; line-height: 1.3; }
html body p, html body li { text-wrap: pretty; }
html body code, html body pre, html body kbd { font-family: var(--font-mono); }
html body strong, html body b { color: var(--text); }

/* Links im Fließtext: dezent unterstrichen, gut erkennbar */
html body .article-body p a,
html body .article-body li a,
html body article p a,
html body main p a {
  color: var(--steel);
  text-decoration: underline;
  text-decoration-color: rgba(143,179,232,0.45);
  text-underline-offset: 3px;
}
html body .article-body p a:hover,
html body article p a:hover,
html body main p a:hover { text-decoration-color: var(--gold); opacity: 1; }

/* ---------- 4. GLAS-OBERFLÄCHEN ---------- */
html body :is(
  .card, .post, .metric-card, .faq-item, .author-box, .related-articles,
  .cta-box, .calc-card, .invest-card, .partner-card, .rechner-guide,
  .sources-box, .news-box, .aeo-block, .tool-link, .hub-link, .term,
  .avd-card, .disclaimer, .mb-newsletter-cta, .legal-callout, .result-card,
  .stat-card, .kpi-card, .feature-card, .tool-card, .glass, .panel
) {
  background-color: var(--glass-bg);
  background-image: var(--glass-sheen);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

/* Interaktive Karten: sanftes Anheben */
@media (hover: hover) {
  html body :is(.card, .post, .tool-link, .hub-link, .invest-card, .tool-card, .feature-card):hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-gold);
    box-shadow: var(--glass-shadow-hover);
  }
}

/* Gold-Akzent oben für Call-to-Action */
html body .cta-box { border-top: 2px solid var(--gold); }

/* Callouts: Glas + farbige Kante (Bedeutung bleibt erhalten) */
html body :is(.info-box, .risk-box, .success-box, .key-takeaway, .highlight-box, .warning-box, .tip-box) {
  background-color: var(--glass-bg);
  background-image: var(--glass-sheen);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--glass-shadow);
}
html body .risk-box, html body .warning-box { border-left-color: var(--red); }
/* Werbe-/Affiliate-Hinweise: einheitlich dunkel (überschreibt helle Inline-Farben) */
html body :is(.affiliate-disclosure, .ad-disclosure) {
  background: rgba(207,176,106,0.08) !important;
  border: 1px solid var(--glass-border-gold) !important;
  border-left: 4px solid var(--gold) !important;
  border-radius: var(--radius-sm);
  color: var(--text-soft) !important;
}
/* Ältere Artikel ohne .article-body: lesbare Zeilenlänge */
html body article.blog-post { max-width: 900px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
html body .success-box { border-left-color: var(--green); }

/* Echte Unschärfe nur ab Tablet (Handy-Performance) */
@media (min-width: 700px) {
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    html body :is(.cta-box, .calc-card, .avd-card, .author-box, .rechner-guide, .info-box, .risk-box, .key-takeaway, .metric-card, .card, .post) {
      -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
      backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    }
  }
}

/* Kennzahlen */
html body .metric-value { color: var(--gold-strong); font-variant-numeric: tabular-nums; }
html body .metric-label { color: var(--text-muted); }

/* ---------- 5. TABELLEN ---------- */
html body .table-wrapper, html body .table-wrap, html body .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  max-width: 100%;
}
html body table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
html body :is(.article-body, article, main, .container, .page-wrapper) table th {
  background: rgba(207,176,106,0.10);
  color: var(--gold);
  font-weight: 700;
}
html body :is(.article-body, article, main, .container, .page-wrapper) table td,
html body :is(.article-body, article, main, .container, .page-wrapper) table th {
  border-color: rgba(255,255,255,0.07);
}
html body :is(.article-body, article, main, .container, .page-wrapper) table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.018);
}

/* ---------- 6. BUTTONS ---------- */
html body :is(.btn, .button, .cta-btn, a.cta, .btn-primary) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e9d3a0 0%, #cfb06a 55%, #a88a48 100%);
  color: #0a1020 !important;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 6px 20px rgba(207,176,106,0.22), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}
html body :is(.btn, .button, .cta-btn, a.cta, .btn-primary):hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 10px 28px rgba(207,176,106,0.32), inset 0 1px 0 rgba(255,255,255,0.4);
  opacity: 1;
}
html body :is(.btn-secondary, .btn-outline) {
  background: rgba(255,255,255,0.03);
  color: var(--gold) !important;
  border: 1px solid var(--glass-border-gold);
  box-shadow: none;
}

/* ---------- 7. FORMULARE ---------- */
html body :is(input[type=text], input[type=number], input[type=email], input[type=search], input[type=tel], input[type=url], input:not([type]), select, textarea) {
  background-color: rgba(6,10,20,0.72);
  color: var(--text);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: max(16px, 1em); /* verhindert iOS-Zoom beim Fokus */
  min-height: 44px;
}
html body :is(input, select, textarea):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
html body input[type=range] { accent-color: var(--gold); }
html body input[type=checkbox], html body input[type=radio] { accent-color: var(--gold); }

/* ---------- 8. NAVIGATION & FOOTER ---------- */
html body .nav, html body header.nav, html body header.header, html body .navbar {
  background: rgba(6,10,20,0.70);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(207,176,106,0.14);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03), 0 8px 24px rgba(0,0,0,0.25);
}
/* Desktop-Nav darf nicht umbrechen */
@media (min-width: 1200px) {
  html body .nav .nav-inner { flex-wrap: nowrap; }
  html body .nav .nav-links { flex-wrap: nowrap; min-width: 0; }
}
/* Die volle Link-Leiste braucht ~1200 px. Darunter (Tablet, kleine Laptops)
   übernimmt das Hamburger-Menü, statt Links abzuschneiden. */
@media (max-width: 1199px) {
  html body .nav .nav-links { display: none; }
  html body .nav .nav-hamburger { display: flex; }
}
@media (min-width: 1200px) {
  html body .nav .nav-mobile, html body .nav .nav-mobile.open { display: none; }
}
@media (min-width: 700px) and (max-width: 1199px) {
  /* Tablet-Menü zweispaltig, damit es nicht endlos lang wird */
  html body .nav-mobile.open { columns: 2; column-gap: 32px; }
  html body .nav-mobile .mob-label { break-after: avoid; }
  html body .nav-mobile a { break-inside: avoid; }
}
html body .nav-hamburger { min-width: 44px; min-height: 44px; }
html body .nav-mobile { background: rgba(8,12,24,0.97); }
html body .nav-mobile a { min-height: 44px; display: flex; align-items: center; }

html body .site-footer, html body footer.footer, html body footer.footer-main, html body .footer {
  background: linear-gradient(180deg, rgba(12,18,32,0.55) 0%, rgba(6,10,20,0.92) 100%);
  border-top: 1px solid rgba(207,176,106,0.14);
}
html body .site-footer a { color: var(--text-muted); }
html body .site-footer a:hover { color: var(--gold); }

/* Breadcrumbs */
html body .breadcrumbs, html body .breadcrumb { color: var(--text-muted); font-size: 0.86rem; }
html body .breadcrumbs a, html body .breadcrumb a { color: var(--gold); }

/* Section-Label (Pill) */
html body .section-label {
  background: rgba(207,176,106,0.1);
  border: 1px solid var(--glass-border-gold);
  color: var(--gold);
  border-radius: 999px;
}

html body .navbar.scrolled { background: rgba(6,10,20,0.86); }
html body .navbar .dropdown-menu {
  background: rgba(10,15,28,0.96);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
}
html body .navbar .nav-link:hover, html body .navbar .dropdown-menu a:hover { color: var(--gold-strong); }
html body .nav-toggle { min-width: 44px; min-height: 44px; }
/* Hero/Seitenkopf-Klassen der englischen Seite */
html body :is(.page-hero, .hub-hero, .article-header) h1 { color: var(--gold-strong); }

/* ---------- 9. RESPONSIVE SCHUTZ ---------- */
html body :is(img, video, iframe, canvas, svg, embed, object) { max-width: 100%; }
html body img, html body video { height: auto; }
html body pre { overflow-x: auto; max-width: 100%; }

/* Handy */
@media (max-width: 699px) {
  html body { background-attachment: scroll; }
  /* Breite Tabellen werden horizontal scrollbar statt die Seite zu sprengen */
  html body :is(.article-body, article, main, .container, .page-wrapper, section) table:not(.no-scroll) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  html body :is(.card, .post, .cta-box, .calc-card, .avd-card, .author-box, .rechner-guide, .faq-item, .related-articles, .disclaimer) {
    border-radius: 14px;
  }
  html body h1 { font-size: clamp(1.6rem, 7.2vw, 2.1rem); }
  html body h2 { font-size: clamp(1.25rem, 5.4vw, 1.55rem); }
  html body .btn { width: auto; max-width: 100%; white-space: normal; text-align: center; }
  /* Lange URLs/Zahlenketten brechen um */
  html body :is(p, li, td, th, dd, figcaption, .disclaimer) { overflow-wrap: anywhere; }
}

/* Tablet: Inhalte nicht zu breit, angenehme Ränder */
@media (min-width: 700px) and (max-width: 1024px) {
  html body :is(.container, .page-wrapper, .article-body, main) { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
}

/* ---------- 10. BARRIEREFREIHEIT & FALLBACKS ---------- */
html body :is(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Ohne backdrop-filter: deckendere Flächen für Lesbarkeit */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html body .nav, html body header.nav { background: rgba(6,10,20,0.97); }
  html:root { --glass-bg: rgba(18,21,31,0.92); }
}
/* Nutzer, die weniger Transparenz wünschen: feste Flächen */
@media (prefers-reduced-transparency: reduce) {
  html:root { --glass-bg: #111a2e; --glass-sheen: none; }
  html body * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html body .nav, html body header.nav { background: #060a14; }
}
/* Weniger Bewegung */
@media (prefers-reduced-motion: reduce) {
  html body .bg-lines span, html body .bg-wave svg { animation: none !important; }
  html body * { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  html body :is(.card, .post, .btn):hover { transform: none !important; }
}
/* Hoher Kontrast */
@media (prefers-contrast: more) {
  html:root { --glass-bg: #0f1729; --glass-border: rgba(255,255,255,0.3); --text-muted: #c3c9db; }
}

/* Druck: hell und lesbar */
@media print {
  html body { background: #fff !important; color: #000 !important; }
  html body :is(.nav, .navbar, .site-footer, .footer, .bg-lines, .bg-wave, .adsbygoogle) { display: none !important; }
  html body * { box-shadow: none !important; backdrop-filter: none !important; }
}

/* ---------- 11. KONTRAST-KORREKTUREN (aus seitenweitem Kontrast-Audit) ---------- */
/* Zu dunkle Inline-Grautöne für Kleingedrucktes auf dunklem Grund → lesbares Grau (≥ 4.5:1) */
html body [style*="color:#555" i], html body [style*="color:#666" i], html body [style*="color:#444" i],
html body [style*="color:#333"], html body [style*="color: #555"], html body [style*="color: #666"] {
  color: var(--text-dim) !important;
}
/* Ältere CTA-Boxen färben alle Links gelb hinterlegt; Textlinks mit Gold-Inline-Farbe bleiben Textlinks */
html body .cta-box a[style*="color:#d4af37" i], html body .cta-box a[style*="color: #d4af37" i], html body .cta-box a[style*="color:var(--gold" i] {
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
}

/* Automatisch verlinkte Glossar-Begriffe sind Textlinks, keine Buttons */
html body .cta-box :is(a.glossar-link, a.glossary-link) {
  background: transparent !important;
  color: var(--gold) !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline !important;
  box-shadow: none !important;
}

/* ---------- 12. LAYOUT-SICHERUNG (aus Geräte-Audit) ---------- */
/* Ältere Seiten geben der Nav eigenes Padding → einheitliche Höhe */
html body nav.nav, html body header.nav { padding-top: 0; padding-bottom: 0; min-height: 0; }
/* Dekorative Elemente (Kompass, Glows) dürfen die Seite nie seitlich scrollbar machen.
   clip statt hidden: position:sticky der Navigation funktioniert weiter. */
html { overflow-x: clip; }
html body { overflow-x: clip; }
@media (max-width: 699px) {
  /* Alle Tabellen auf dem Handy horizontal scrollbar statt seitensprengend */
  html body table:not(.no-scroll) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

r .nav-link { white-space: nowrap; }
}

/* ---------- 14. KANONISCHE NAVBAR (eigenständig, auch ohne style.css) ----------
   Seit Dez 2026 tragen alle Unterseiten dieselbe Navbar. Diese Regeln spiegeln
   css/style.css, damit Seiten ohne style.css identisch aussehen.
   .mbg-sticky = Seiten, deren Layout nicht für eine fixierte Navbar gebaut ist. */
html body .navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 14px 0; transition: background var(--transition), padding var(--transition); }
html body .navbar.mbg-sticky { position: sticky; z-index: 1000; }
html body .navbar.scrolled { padding: 10px 0; }
html body .navbar .nav-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
html body .navbar .nav-logo { display: flex; align-items: center; gap: 10px; z-index: 1001; text-decoration: none; }
html body .navbar .logo-mb { font-size: 1.4rem; font-weight: 900; background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
html body .navbar .logo-text { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); line-height: 1.2; }
html body .navbar .logo-global { display: block; font-size: 0.65rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-primary); }
html body .navbar .nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
html body .navbar .nav-item { list-style: none; }
html body .navbar .nav-link { display: inline-block; padding: 8px 12px; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); border-radius: 6px; text-decoration: none; }
html body .navbar .nav-link:hover, html body .navbar .nav-link.active { color: var(--gold-strong); }
html body .navbar .dropdown { position: relative; }
html body .navbar .dropdown-toggle::after { content: ''; display: inline-block; margin-left: 5px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid currentColor; vertical-align: middle; }
html body .navbar .dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--transition), transform var(--transition), visibility var(--transition); }
html body .navbar .dropdown:hover .dropdown-menu, html body .navbar .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
@media (hover: none) { html body .navbar .dropdown.active .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); } }
html body .navbar .dropdown-menu li a { display: block; padding: 10px 14px; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); border-radius: 6px; text-decoration: none; }
html body .navbar .dropdown-menu li a:hover { color: var(--gold-strong); background: var(--gold-subtle); }
html body .navbar .nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 4px; z-index: 1001; background: none; border: 1px solid var(--glass-border-gold); border-radius: 10px; cursor: pointer; }
html body .navbar .hamburger, html body .navbar .hamburger::before, html body .navbar .hamburger::after { display: block; width: 22px; height: 2px; background: var(--gold-primary); border-radius: 2px; transition: all var(--transition); }
html body .navbar .hamburger { position: relative; }
html body .navbar .hamburger::before, html body .navbar .hamburger::after { content: ''; position: absolute; }
html body .navbar .hamburger::before { top: -7px; }
html body .navbar .hamburger::after { top: 7px; }
html body .navbar .nav-toggle.active .hamburger { background: transparent; }
html body .navbar .nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
html body .navbar .nav-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 768px) {
  html body .navbar .nav-toggle { display: flex; }
  html body .navbar .nav-menu { position: fixed; top: 0; right: -100%; width: min(300px, 86vw); height: 100vh; height: 100dvh; background: rgba(10,15,28,0.99); flex-direction: column; align-items: stretch; padding: 80px 24px 32px; gap: 4px; transition: right var(--transition); overflow-y: auto; overscroll-behavior: contain; border-left: 1px solid var(--glass-border); box-shadow: -20px 0 60px rgba(0,0,0,0.5); }
  html body .navbar .nav-menu.active { right: 0; }
  html body .navbar .nav-link { padding: 12px 16px; min-height: 44px; display: flex; align-items: center; }
  html body .navbar .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: none; box-shadow: none; padding: 0 0 0 16px; display: none; }
  html body .navbar .dropdown.active .dropdown-menu { display: block; }
}

/* ---------- 13. NAVIGATION TABLET / KLEINE LAPTOPS (aus Geräte-Audit) ----------
   Die volle Menüleiste braucht ~1200 px; darunter brach sie in mehrere Zeilen um.
   769–1199 px nutzen jetzt dasselbe Off-Canvas-Menü wie das Handy (style.css ≤768).
   Untermenüs sind dort immer aufgeklappt, weil das Aufklappen per JS nur bei
   Touch oder ≤768 px greift (Laptops mit Maus wären sonst ausgesperrt). */
@media (min-width: 769px) and (max-width: 1199px) {
  html body .navbar .nav-toggle { display: flex; }
  html body .navbar .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(340px, 86vw);
    height: 100vh;
    height: 100dvh;
    background: rgba(10,15,28,0.99);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 32px;
    gap: 4px;
    transition: right var(--transition);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: 1px solid var(--glass-border);
    box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  }
  html body .navbar .nav-menu.active { right: 0; }
  html body .navbar .nav-menu .nav-link { padding: 12px 16px; min-height: 44px; display: flex; align-items: center; }
  html body .navbar .nav-menu .dropdown-menu {
    position: static; display: block; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: none; box-shadow: none; padding: 0 0 6px 16px;
  }
}
@media (min-width: 1200px) {
  html body .navbar .nav-menu { flex-wrap: nowrap; }
  html body .navbar .nav-link { white-space: nowrap; }
}


/* backdrop-filter macht die Navbar zum Bezugsrahmen für das fixierte Off-Canvas-Menü
   (Menü rutschte mit der Navbar mit). Unter 1200 px daher ohne Blur, fast deckend. */
@media (max-width: 1199px) {
  html body .navbar, html body .navbar.scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(6,10,20,0.95);
  }
}

/* ---------- 15. STANDARD-FOOTER (Seiten ohne eigenen Footer mit Imprint) ---------- */
html body .mbg-footer { margin-top: 64px; padding: 40px 24px 24px; border-top: 1px solid var(--glass-border); background: linear-gradient(180deg, rgba(12,18,32,0.55), rgba(6,10,20,0.95)); font-size: 0.9rem; }
html body .mbg-footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
html body .mbg-footer strong { color: var(--text); font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
html body .mbg-footer strong span { color: var(--gold); }
html body .mbg-footer p { color: var(--text-muted); margin: 8px 0 0; }
html body .mbg-footer nav { display: flex; flex-direction: column; gap: 4px; }
html body .mbg-footer nav a { color: var(--text-soft); text-decoration: none; padding: 6px 0; min-height: 32px; }
html body .mbg-footer nav a:hover { color: var(--gold-strong); }
html body .mbg-footer-bottom { max-width: 1100px; margin: 28px auto 0; padding-top: 16px; border-top: 1px solid var(--glass-border); color: var(--text-dim); font-size: 0.8rem; }
@media (max-width: 699px) { html body .mbg-footer-inner { grid-template-columns: 1fr 1fr; } html body .mbg-footer-inner > div { grid-column: 1 / -1; } }

/* ---------- QUELLEN-BOX (.mb-sources, erzeugt von .claude/scripts/add-sources.py) ----------
   Übernommen aus der stillgelegten glow.css, auf die Tokens dieses Designsystems umgestellt. */
html body .mb-sources {
  margin: 40px 0 24px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  background-color: var(--glass-bg);
  background-image: var(--glass-sheen);
}
html body .mb-sources h2 {
  font-family: var(--font-mono) !important;
  font-size: .74rem !important;
  font-weight: 500 !important;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold) !important;
  margin: 0 0 8px !important;
}
html body .mb-sources h2::before { display: none !important; }
html body .mb-sources p { margin: 0 0 12px; font-size: .92rem !important; color: var(--text-muted) !important; }
html body .mb-sources ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
html body .mb-sources li { font-size: .95rem !important; line-height: 1.5 !important; }
html body .mb-sources li::before { content: "↗"; color: var(--gold); margin-right: 8px; font-size: .85em; }
html body .mb-sources a { color: var(--text-soft) !important; text-decoration: underline; text-decoration-color: var(--glass-border-gold); text-underline-offset: 3px; }
html body .mb-sources a:hover { color: var(--gold-strong) !important; }

/* ---------- 16. KONTRAST-KORREKTUREN EN (aus Audit) ---------- */
/* Affiliate-Buttons mit Gold-Fläche: dunkle Schrift statt Champagner auf Gold */
html body :is(.aff-btn, .cta-btn-aff, .affiliate-btn) {
  background: linear-gradient(135deg, #e9d3a0 0%, #cfb06a 55%, #a88a48 100%) !important;
  color: #0a1020 !important;
  -webkit-text-fill-color: #0a1020 !important;
}
/* Zu dunkle Grautöne im Kleingedruckten mancher Vorlagen */
html body [style*="color:#4a5568" i], html body [style*="color:#4a4f62" i], html body [style*="color: #4a5568" i] {
  color: var(--text-dim) !important;
}
