/* ==== Nischenradar · Bold Modern ==== */
:root {
  --c-bg: #F4F2EC;            /* warm off-white */
  --c-bg-1: #FFFFFF;
  --c-bg-2: #EBE8DF;
  --c-bg-3: #DCD8CC;

  --c-ink: #0E0E10;            /* near-black */
  --c-ink-soft: #1A1A1F;

  --c-text: #0E0E10;
  --c-text-2: #45464D;
  --c-text-muted: #63646B;   /* ≥4,5:1 auf allen bg-Tokens (WCAG AA) */
  --c-text-subtle: #A4A39B;

  --c-border: #DAD6CB;
  --c-border-strong: #B5B0A1;

  --c-accent: #D8FF3D;          /* signature volt/lime */
  --c-accent-2: #C9F02C;
  --c-accent-ink: #0E0E10;      /* text on accent */

  /* Status — desaturated, modern */
  --c-green: #1F7A55;
  --c-green-soft: #DDEFE2;
  --c-amber: #B26C0E;
  --c-amber-soft: #F4E5C9;
  --c-red:   #B23E36;
  --c-red-soft: #F1DCD9;
  /* B4-08f: abgedunkelte Badge-Text-Varianten — ≥4,5:1 auf den *-soft-
     Flächen (grün 4,84:1, rot 4,82:1 nachgerechnet; Basistöne lagen bei
     4,41/4,40). Nur für Badge-TEXT; Borders/Icons behalten die Basistöne. */
  --c-green-badge: #1D7350;
  --c-red-badge:   #A83A32;

  /* Dimension chart colors — earthy + bold */
  --c-dim-blue:   #3A5BA0;
  --c-dim-green:  #1F7A55;
  --c-dim-amber:  #C28B3D;
  --c-dim-purple: #6B5DCB;
  --c-dim-coral:  #D87E5E;
  --c-dim-teal:   #3E8E89;
  --c-dim-red:    #B23E36;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(14, 14, 16, 0.05);
  --shadow-md: 0 6px 24px rgba(14, 14, 16, 0.06), 0 1px 3px rgba(14, 14, 16, 0.04);
  --shadow-lg: 0 24px 56px rgba(14, 14, 16, 0.10), 0 2px 8px rgba(14, 14, 16, 0.05);

  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw-page: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ===== BETA-BANNER ===== */
/* Statisches Banner über der Nav. Wird beim öffentlichen Launch entfernt
   (Single-Element-Removal in index.html, kein State-Management nötig). */
.site-banner {
  background: var(--c-ink);
  color: var(--c-bg);
  border-bottom: 2px solid var(--c-accent);
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.site-banner-pill {
  display: inline-block;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 10px;
  vertical-align: 1px;
}
.site-banner a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 8px;
  font-weight: 600;
}
.site-banner a:hover { color: var(--c-bg-1); }

@media (max-width: 720px) {
  .site-banner { font-size: 12px; padding: 8px 12px; }
  .site-banner-pill { font-size: 10px; padding: 2px 6px; margin-right: 8px; }
}

/* ===== PROMO-BANNER (Einführungspreis) ===== */
.site-banner-promo {
  background: var(--c-accent);
  color: var(--c-accent-ink);
  border-bottom: 2px solid var(--c-ink);
}
.site-banner-promo .site-banner-promo-pill {
  display: inline-block;
  background: var(--c-ink);
  color: var(--c-accent);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 10px;
  vertical-align: 1px;
}
.site-banner-promo .price-was {
  text-decoration: line-through;
  opacity: 0.55;
  font-weight: 500;
  margin: 0 2px 0 4px;
}
.site-banner-promo strong { font-weight: 700; }
.site-banner-promo a {
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 10px;
  font-weight: 700;
}
.site-banner-promo a:hover { color: var(--c-ink-soft); opacity: 0.8; }
@media (max-width: 720px) {
  .site-banner-promo { font-size: 12px; padding: 8px 12px; }
  .site-banner-promo .site-banner-promo-pill { font-size: 10px; padding: 2px 6px; margin-right: 8px; }
}

/* ===== INLINE-STREICHPREIS (Einführungspreis-Anchor) ===== */
/* Pattern: <s class="price-was-inline">20,00 €</s> 14,99 €
   Wird in Hero-Meta, Lock-Pills, Pricing-CTAs verwendet. */
.price-was-inline {
  text-decoration: line-through;
  opacity: 0.55;
  font-weight: 500;
  margin-right: 4px;
}
.price-was-block {
  display: block;
  font-size: 18px;
  font-weight: 500;
  text-decoration: line-through;
  opacity: 0.55;
  margin-bottom: 2px;
}

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 242, 236, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow .15s, background .15s;
}
.nav.is-scrolled {
  background: rgba(244, 242, 236, 0.98);
  box-shadow: 0 2px 12px rgba(14,14,16,0.06);
}
.nav-inner {
  max-width: var(--maxw-page);
  margin: 0 auto;
  padding: 12px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  color: var(--c-ink);
  letter-spacing: -0.02em;
}
.brand-logo {
  display: block;
  flex-shrink: 0;
}
.brand-logo-full {
  height: 56px; width: auto;
}
.brand-logo-mark {
  display: none;
  width: 40px; height: 40px; border-radius: 8px;
}
@media (max-width: 720px) {
  .brand-logo-full { display: none; }
  .brand-logo-mark { display: block; }
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--c-text-2);
  font-size: 14px; font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  transition: color .12s, background .12s, border-color .12s, box-shadow .12s;
  position: relative;
}
.nav-links a:hover {
  color: var(--c-ink);
  background: var(--c-bg-1);
  border-color: var(--c-ink);
  box-shadow: 0 0 0 4px var(--c-accent);
}
.nav-links a.is-active {
  color: var(--c-bg);
  background: var(--c-ink);
  border-color: var(--c-ink);
}
.nav-cta { display: inline-flex; align-items: center; gap: 8px; }

/* Hamburger — sichtbar nur auf Mobile (siehe Mobile-Block unten). Auf
   Desktop hidden. Drei-Linien-Icon aus drei <span>-Stripes. */
.nav-toggle {
  display: none;
  background: none; border: 0;
  width: 44px; height: 44px;
  padding: 10px; margin: -10px -8px -10px 0;
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--c-ink); border-radius: 2px;
  transition: transform .15s, opacity .15s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 600; font-size: 14px;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  transition: background .12s, border-color .12s, color .12s, transform .05s, box-shadow .12s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--c-accent); }
.btn-primary {
  background: var(--c-ink); color: var(--c-bg);
  border-color: var(--c-ink);
}
.btn-primary:hover { background: var(--c-ink-soft); box-shadow: 0 0 0 4px var(--c-accent); }
.btn-accent {
  background: var(--c-accent); color: var(--c-accent-ink);
  border-color: var(--c-accent);
  box-shadow: 0 1px 0 rgba(14,14,16,0.08);
}
.btn-accent:hover { background: var(--c-accent-2); border-color: var(--c-ink); }
.btn-ghost {
  color: var(--c-text-2);
  background: transparent;
}
.btn-ghost:hover { color: var(--c-ink); background: var(--c-bg-2); }
.btn-outline {
  border-color: var(--c-ink);
  color: var(--c-ink);
  background: transparent;
}
.btn-outline:hover { background: var(--c-bg-1); box-shadow: 0 0 0 4px var(--c-accent); }
.btn-lg { padding: 14px 26px; font-size: 15px; }

/* ===== LAYOUT ===== */
.page { max-width: var(--maxw-page); margin: 0 auto; padding: 56px 32px 96px; }
section { padding: 96px 0; border-top: 1px solid var(--c-border); }
section:first-of-type { border-top: 0; padding-top: 32px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600;
  color: var(--c-text-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-bg-1);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px;
  border-radius: 50%; background: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(216, 255, 61, 0.25);
}

/* ===== TYPE ===== */
/* B4-08a: Skip-Link — unsichtbar bis Tastatur-Fokus, dann als Chip oben
   links. Erster Tab-Stopp der Seite, springt zu #app. */
.skip-link {
  position: absolute; left: -9999px; top: 12px;
  z-index: 2000;
  background: var(--c-ink); color: var(--c-bg);
  padding: 10px 18px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600;
}
.skip-link:focus { left: 12px; }

h1, h2, h3, h4 { margin: 0; color: var(--c-ink); }

/* Highlight-Marker hinter den serif-Akzent-Wörtern in Headlines.
   Macht das Schwarz-Gelb-Branding sichtbar, ohne den BG zu ändern. */
h1 .serif, h2 .serif {
  position: relative;
  display: inline-block;
  z-index: 0;
}
h1 .serif::before, h2 .serif::before {
  content: "";
  position: absolute;
  left: -0.06em; right: -0.06em;
  bottom: 0.04em; height: 0.32em;
  background: var(--c-accent);
  z-index: -1;
  border-radius: 2px;
}
h1 {
  font-family: var(--font-sans);
  font-size: 84px; line-height: 1.0;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
h2 {
  font-family: var(--font-sans);
  font-size: 44px; line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
/* Seitenkopf-h1 in h2-Optik (B4-02): nach der Hydration braucht jede Route
   genau ein h1, ohne den 84px-Hero-Look der Landing zu erben. */
h1.page-h1 {
  font-size: 44px; line-height: 1.1;
  letter-spacing: -0.03em;
}
/* B4-09: Heading-Größen als Utilities statt inline font-size — inline
   styles beißen die globalen Mobile-Overrides (frontend-mobile-first).
   !important, weil die Utility (wie vorher der inline style) auch spätere
   Komponenten-Regeln (.blog-card h3 etc.) schlagen muss — gleiche
   Begründung wie bei .hide-mobile. */
.h-sm { font-size: 18px !important; }
.h-md { font-size: 28px !important; }
.h-lg { font-size: 36px !important; }
.h-xl { font-size: 48px !important; line-height: 1.1; }
@media (max-width: 720px) {
  .h-xl { font-size: 38px !important; }
}
@media (max-width: 480px) {
  .h-md { font-size: 24px !important; }
  .h-lg { font-size: 30px !important; }
  .h-xl { font-size: 32px !important; }
}
h3 {
  font-family: var(--font-sans);
  font-size: 19px; line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.02em; }
.lede {
  font-size: 17.5px; color: var(--c-text-2); line-height: 1.55;
  letter-spacing: -0.005em;
  font-weight: 400;
  text-wrap: pretty;
}
.muted { color: var(--c-text-muted); }
.subtle { color: var(--c-text-muted); font-size: 13px; } /* inhaltstragender Text → muted; --c-text-subtle nur noch dekorativ */
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* ===== SCORE ===== */
.score {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-feature-settings: "tnum";
  border-radius: var(--r-pill);
  padding: 4px 14px;
  font-size: 14px;
  min-width: 50px;
  letter-spacing: -0.02em;
}
.score-lg {
  font-size: 96px; line-height: 1;
  padding: 14px 36px; min-width: auto;
  border-radius: var(--r-md);
  background: var(--c-bg-1) !important;
  color: var(--c-ink) !important;
  border: 1.5px solid var(--c-ink);
  font-weight: 700; letter-spacing: -0.05em;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px var(--c-accent);
}
@media (max-width: 720px) {
  .score-lg { font-size: 64px; padding: 10px 24px; box-shadow: 0 0 0 2px var(--c-accent); }
}
@media (max-width: 480px) {
  .score-lg { font-size: 52px; padding: 8px 18px; }
}
/* B4-08f: Badge-Text nutzt abgedunkelte Varianten (--c-*-badge) — die
   Basistöne liegen auf den *-soft-Flächen knapp unter WCAG AA
   (grün 4,41:1, rot 4,40:1); Border bleibt der Basiston (dekorativ). */
.score-green { background: var(--c-green-soft); color: var(--c-green-badge); border: 1.5px solid var(--c-green); padding: 2.5px 12.5px; }
.score-amber { background: var(--c-accent); color: var(--c-ink); border: 1.5px solid var(--c-ink); padding: 2.5px 12.5px; }
.score-red   { background: var(--c-red-soft); color: var(--c-red-badge); border: 1.5px solid var(--c-red); padding: 2.5px 12.5px; }

.trend {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600;
  background: var(--c-bg-2); color: var(--c-text-2);
}
.trend-up { color: var(--c-green-badge); background: var(--c-green-soft); }
.trend-flat { color: var(--c-text-muted); background: var(--c-bg-2); }
.trend-down { color: var(--c-red-badge); background: var(--c-red-soft); }

/* ===== CARDS =====
   Single-source-of-truth-Token für die Box-Geometrie. Alle Cards in
   app.js bauen darauf auf — verschiedenes Padding pro Use-Case ist
   trotzdem ok, aber Border-Radius + Border-Farbe + Hover-Effekt
   bleiben konsistent. */
.card {
  background: var(--c-bg-1);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
  transition: border-color .12s, box-shadow .12s;
}
.card-hover { transition: border-color .12s, box-shadow .12s, transform .12s; }
.card-hover:hover {
  border-color: var(--c-ink);
  box-shadow: 0 0 0 4px var(--c-accent);
  transform: translateY(-2px);
}

/* ===== UNIFIED BOX STYLE =====
   Single source of truth für alle markanten Boxen auf den Marketing-Seiten:
   schwarzer 1px-Border + 2px gelber Halo (box-shadow ohne offset).
   Hover-Effekt darf KEINEN zusätzlichen Border bringen, nur translateY +
   subtiler Lift. Alle dim-card / how-card / testimonial-card / trust-bar /
   compare-promo-card / cta-card / hero-preview / pricing-card / why-pro-card
   / pricing-usecase / source-card teilen sich diese Optik. */
.nfx-card {
  background: var(--c-bg-1);
  border: 1px solid var(--c-ink);
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 2px var(--c-accent);
  transition: transform .15s ease, box-shadow .15s ease;
}
.nfx-card-hoverable:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 2px var(--c-accent), 0 12px 28px -10px rgba(14,14,16,0.14);
}

/* ===== INPUTS ===== */
input[type="text"], input[type="search"] {
  width: 100%;
  padding: 18px 22px 18px 54px;
  font: inherit; font-size: 16px; font-weight: 500;
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--r-pill);
  background: var(--c-bg-1);
  color: var(--c-text);
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
input::placeholder { color: var(--c-text-subtle); font-weight: 400; }
input[type="search"]:focus, input[type="text"]:focus {
  border-color: var(--c-ink);
  box-shadow: 0 0 0 4px var(--c-accent);
}
.search-wrap { position: relative; }
.search-wrap svg.search-icon {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  color: var(--c-ink);
}

/* ===== TOOLTIP ===== Bug-Fix:
   Vorher waren die kpi-tip-Styles nur in addDetailStyles() definiert,
   so dass auf /vergleich (das nur addAuxStyles() lädt) der Tooltip-
   Body unstyled als roher Text neben dem `?` erschien. Globaler Block
   hier garantiert dass jede Seite die Hover-Logik hat. */
.kpi-tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--c-bg-2);
  color: var(--c-text-muted);
  font-size: 10.5px; font-weight: 700;
  cursor: help; position: relative; flex-shrink: 0;
  font-style: normal;
  outline: none;
}
/* B4-08e: 44×44px-Hitbox (Apple-HIG) für das 16px-Icon — unsichtbare
   ::before-Fläche fängt Touch/Klick, ohne das Layout zu verändern. */
.kpi-tip::before {
  content: "";
  position: absolute;
  inset: -14px;
}
.kpi-tip:hover, .kpi-tip:focus { background: var(--c-ink); color: var(--c-bg); }
.kpi-tip:focus-visible {
  box-shadow: 0 0 0 2px var(--c-bg), 0 0 0 4px var(--c-ink);
}
.kpi-tip .kpi-tip-body {
  position: absolute;
  /* Tooltip öffnet nach UNTEN. Nach oben kollidiert er sonst mit der
     darüberliegenden Sektion / aktivem Score-Card, weil deren
     transform-Hover einen eigenen Stacking-Context erzeugt, der unseren
     Tooltip trotz z-index überdeckt. */
  top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(260px, calc(100vw - 32px));
  padding: 12px 14px;
  background: var(--c-ink); color: var(--c-bg);
  border-radius: var(--r-md);
  font-size: 12.5px; font-weight: 400; line-height: 1.5;
  text-align: left;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity .12s;
  z-index: 1000;
  white-space: normal;
}
.kpi-tip .kpi-tip-body::after {
  content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-bottom-color: var(--c-ink);
}
.kpi-tip:hover, .kpi-tip:focus { z-index: 1000; }
.kpi-tip:hover .kpi-tip-body, .kpi-tip:focus .kpi-tip-body { opacity: 1; pointer-events: auto; }

/* Stacking-Context-Fallback: ohne diesen Bump schiebt sich die nächste
   .kpi-card (eigene transform-Hover-Animation = eigener Stacking-Context)
   visuell ÜBER den nach unten ausklappenden Tooltip, sodass der Text
   abgeschnitten wirkt. :has() promotet die Karte, in der der Tooltip
   gerade aktiv ist — Chrome/Safari/FF 121+. */
.kpi-card:has(.kpi-tip:hover),
.kpi-card:has(.kpi-tip:focus-within),
.kpi-card-clickable:has(.kpi-tip:hover),
.kpi-card-clickable:has(.kpi-tip:focus-within),
.detail-section:has(.kpi-tip:hover),
.detail-section:has(.kpi-tip:focus-within),
.dim-overview-cell:has(.kpi-tip:hover),
.dim-overview-cell:has(.kpi-tip:focus-within),
.cmp-label:has(.kpi-tip:hover),
.cmp-label:has(.kpi-tip:focus-within) { z-index: 1000; position: relative; }

/* Wenn Tooltip nach unten nicht passt (letzte Kachel in der Sektion),
   kann das parent .kpi-tip die Body mit .kpi-tip-up nach oben drehen.
   Nicht automatisch (kein JS hier) — Klassen-basiert via Frontend wenn nötig. */
.kpi-tip.kpi-tip-up .kpi-tip-body {
  top: auto; bottom: calc(100% + 10px);
}
.kpi-tip.kpi-tip-up .kpi-tip-body::after {
  top: 100%; bottom: auto;
  border: 5px solid transparent; border-top-color: var(--c-ink); border-bottom-color: transparent;
}

/* ===== SLIDER ===== */
.slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: var(--c-border-strong);
  border-radius: 999px;
  outline: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px;
  background: var(--c-ink);
  border: 3px solid var(--c-accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.slider::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--c-ink);
  border: 3px solid var(--c-accent);
  border-radius: 50%;
  cursor: pointer;
}

/* ===== UTILS ===== */
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* ============================================================
   MOBILE — zwei Tiers: ≤720px (Phone-Landscape + Tablet) und ≤480px
   (Phone-Portrait). Mehr Tiers nur wenn ein Layout es zwingend braucht.
   Touch-Targets müssen ≥44px haben (Apple-HIG-Standard).
   ============================================================ */
@media (max-width: 720px) {
  h1 { font-size: 44px; line-height: 1.05; }
  h2 { font-size: 30px; line-height: 1.15; }
  h1.page-h1 { font-size: 30px; line-height: 1.15; }
  h3 { font-size: 18px; }
  .lede { font-size: 17px; }
  .hide-mobile { display: none !important; }
  .page { padding: 28px 18px 56px; }
  section { padding: 56px 0; }

  /* Hamburger sichtbar, Desktop-Nav-Items ins Drawer */
  .nav-toggle { display: flex; }
  .nav-inner { padding: 14px 18px; flex-wrap: wrap; }
  .nav-cta { display: none; }
  .nav-links {
    display: none;
    order: 99; flex-basis: 100%;
    flex-direction: column; align-items: stretch;
    gap: 0;
    padding: 12px 0 8px;
    border-top: 1px solid var(--c-border);
    margin-top: 12px;
  }
  .nav-links a {
    padding: 14px 4px; font-size: 15.5px; font-weight: 500;
    border: 0; border-bottom: 1px solid var(--c-border);
    border-radius: 0;
    box-shadow: none;
  }
  .nav-links a:hover { box-shadow: none; background: var(--c-bg-2); border-color: var(--c-border); }
  .nav-links a.is-active { background: transparent; color: var(--c-ink); font-weight: 700; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-inner.is-open .nav-links { display: flex; }
  .nav-inner.is-open .nav-cta {
    display: flex; flex-basis: 100%;
    flex-direction: column; gap: 8px; padding-top: 8px;
    order: 100;
  }
  .nav-inner.is-open .nav-cta .btn { justify-content: center; padding: 14px 18px; }

  /* Buttons ≥44px Touch-Target. .btn-lg bleibt auch auf Mobile groß. */
  .btn { min-height: 44px; padding: 12px 18px; }
}

@media (max-width: 480px) {
  h1 { font-size: 34px; letter-spacing: -0.025em; }
  h2 { font-size: 25px; }
  h1.page-h1 { font-size: 25px; }
  .page { padding: 24px 14px 48px; }
  section { padding: 44px 0; }
  .lede { font-size: 16px; }
}

/* Globale Mobile-Schutzgürtel: kein horizontales Scroll, Tabellen
   skaliert. `overflow-x: clip` statt `hidden` — `hidden` auf html/body
   bricht in Safari/iOS `position: sticky` der Nav. `clip` macht das
   gleiche optisch ohne neuen Scroll-Container zu erzeugen. */
html, body { overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; }

/* ===== PAYWALL ===== */
.paywall-wrap { position: relative; }
/* Free-User-Detail-Seite: KPI-Liste auf eine sichtbare Höhe begrenzen,
   damit die geblurrte Fläche nicht 1500 px hoch wird (43 KPIs ≈ 12
   Reihen). 480 px reichen für 2-3 Zeilen Karten als Tease. */
.paywall-wrap-capped { max-height: 480px; overflow: hidden; }
.paywall-content { filter: blur(7px); pointer-events: none; user-select: none; }
.paywall-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 56px;
  background: linear-gradient(180deg, rgba(244,242,236,0.4) 0%, rgba(244,242,236,0.94) 32%, var(--c-bg) 100%);
}
.paywall-card {
  background: var(--c-bg-1);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  max-width: 460px;
  text-align: left;
}
.paywall-card .lock {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-ink);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

/* ===== PRERENDER-SEKTIONEN (scripts/prerender_frontend.py) =====
   Markup, das nur im serverseitig gerenderten HTML lebt (Crawler + First
   Paint vor der Hydration). Muss hier global liegen — die JS-injizierten
   Styles (addDetailStyles etc.) existieren zu dem Zeitpunkt noch nicht. */
.pro-teaser {
  background: var(--c-bg-1);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 28px;
  margin: 32px 0;
}
.pro-teaser-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  color: var(--c-text-muted);
  font-size: 14.5px;
}
.pro-teaser-list li { display: flex; align-items: center; gap: 8px; }
.pro-teaser-list svg { flex: none; opacity: 0.6; }
.kpi-blog-link { font-size: 13.5px; white-space: nowrap; }
.testimonial-quote {
  border-left: 3px solid var(--c-accent);
  margin: 0 0 20px;
  padding: 4px 0 4px 18px;
  font-size: 15.5px;
  line-height: 1.6;
}
.testimonial-quote footer { margin-top: 8px; color: var(--c-text-muted); font-size: 13.5px; }
@media (max-width: 480px) {
  .pro-teaser { padding: 20px 16px; }
  .pro-teaser-list { grid-template-columns: 1fr; }
}

/* „Beliebte Analysen"-Block (Startseite, Aufgabe 6). Grid interner Links auf
   die 20 Fokus-Nischen, Ankertext = Ziel-Keyword. Lebt sowohl im prerenderten
   home.html als im SPA-Render → global hier, nicht in JS-injizierten Styles. */
.popular-analyses {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 940px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr; /* alle Karten gleich hoch, unabhängig von 1- vs 2-Zeiler */
  gap: 10px;
}
/* li = Grid-Item, stretcht auf die Zeilen-/Grid-Höhe; das <a> füllt es (width
   100% + flex-stretch), damit 1-Zeiler nicht kürzer sind als 2-Zeiler. */
.popular-analyses li { display: flex; }
.popular-analyses a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px; /* Touch-Target (Apple-HIG) + Ruhe-Höhe */
  padding: 12px 16px 12px 15px;
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-accent); /* CI-Volt-Kante, wie .testimonial-quote */
  border-radius: var(--r-md);
  background: var(--c-bg-1);
  color: var(--c-ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.popular-analyses a:hover {
  border-color: var(--c-ink);
  border-left-color: var(--c-accent); /* Volt-Kante bleibt beim Hover */
  background: var(--c-bg);
  transform: translateX(2px);
}
@media (max-width: 720px) {
  .popular-analyses { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .popular-analyses { grid-template-columns: 1fr; }
}

/* Fokus-Analyse-Abschnitt (nur die 20 Fokus-/nische/-Seiten): Analyse + FAQ.
   Global (nicht JS-injiziert), damit der SSR-Prerender UND die hydrierte
   Detailseite identisch aussehen (addDetailStyles kennt die Landing-FAQ nicht).
   Beide Blöcke starten unter einer 2px-Volt-Hairline — gleiche Struktursprache
   wie die FAQ-Liste, gibt der Sektion einen grünen Faden. */
.focus-analysis { margin-top: 8px; }
.focus-analysis > h2 { margin: 56px 0 24px; }   /* "Häufige Fragen" */

/* Analyse einklappbar: die Kopfzeile ist die <summary> (native <details>). Die
   Akzent-Hairline oben verbindet Überschrift (links) und Toggle (rechts) zu
   einer Leiste. Kreis-Toggle = eindeutige Einklapp-Fläche: Plus wenn zu, Minus
   wenn offen, füllt sich grün beim Hover, 42px Touch-Ziel. */
.fa-analysis {
  margin-top: 8px;
  border-top: 2px solid var(--c-accent);
}
.fa-analysis-head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 2px 0;
  cursor: pointer; list-style: none;
}
.fa-analysis-head::-webkit-details-marker { display: none; }
.focus-analysis .fa-analysis-head h2 { margin: 0; }
.fa-toggle {
  flex: none; position: relative;
  width: 42px; height: 42px;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  transition: background .2s ease;
}
.fa-analysis-head:hover .fa-toggle { background: var(--c-accent); }
.fa-toggle::before, .fa-toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 16px; height: 2px; background: var(--c-ink);
  transform: translate(-50%, -50%); transform-origin: center;
}
.fa-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.fa-analysis[open] .fa-toggle::after { transform: translate(-50%, -50%) rotate(0); }   /* Minus */
.fa-analysis[open] .fa-analysis-head { padding-bottom: 26px; }
.focus-analysis .fa-body { max-width: 680px; }
.focus-analysis .fa-body > p { margin: 0 0 16px; line-height: 1.72; color: var(--c-text-2); }
.focus-analysis .fa-body > p:last-child { margin-bottom: 0; }
.focus-analysis .faq-list { margin: 0; }   /* links, wie die Prosa (nicht zentriert) */
@media (max-width: 480px) {
  .focus-analysis > h2 { margin: 44px 0 20px; }
  .fa-analysis-head { padding-top: 20px; gap: 14px; }
  .fa-analysis[open] .fa-analysis-head { padding-bottom: 20px; }
  .fa-toggle { width: 40px; height: 40px; }
}

/* FAQ-Akkordeon — Magazin-Stil: keine Boxen, Hairlines zwischen den Reihen,
   Mono-Nummerierung als leiser Brand-Faden, Plus-Glyph klappt beim Öffnen auf
   einen Strich. EINZIGE Quelle dieser Styles (vorher JS-injiziert in app.js):
   frontend/app.js faqSectionHTML (Landing/Preise/Produkt) + die Fokus-Analyse
   nutzen sie gemeinsam. */
.faq-list {
  max-width: 760px; margin: 0 auto;
  border-top: 2px solid var(--c-accent);
}
.faq-item {
  background: transparent;
  border: 0; border-bottom: 1px solid var(--c-border-strong);
  border-radius: 0;
}
.faq-q {
  display: grid;
  grid-template-columns: 44px 1fr 16px;
  align-items: center;
  gap: 20px;
  padding: 26px 4px;
  font-weight: 500; font-size: 17px; color: var(--c-ink);
  letter-spacing: -0.012em;
  cursor: pointer;
  list-style: none;
  transition: opacity .18s ease;
}
.faq-q:hover { opacity: 0.6; }
.faq-q::-webkit-details-marker { display: none; }
.faq-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--c-text-subtle);
  letter-spacing: 0.08em;
  font-weight: 500;
}
.faq-q-text { line-height: 1.35; }
.faq-toggle {
  position: relative; width: 16px; height: 16px;
  justify-self: end;
}
.faq-toggle::before, .faq-toggle::after {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 16px; height: 1.5px;
  background: var(--c-ink);
  transform-origin: center;
  transition: transform .28s cubic-bezier(.4,0,.2,1), background .18s;
}
.faq-toggle::after { transform: translateY(-50%) rotate(90deg); }
.faq-toggle::before { transform: translateY(-50%); }
.faq-item[open] .faq-toggle::after { transform: translateY(-50%) rotate(0); }
.faq-item[open] .faq-q { font-weight: 600; }
.faq-item[open] .faq-num {
  background: var(--c-accent);
  color: var(--c-ink);
  padding: 4px 7px;
  border-radius: 4px;
  font-weight: 600;
}
.faq-a {
  padding: 0 4px 28px 64px;
  font-size: 15px; line-height: 1.7; color: var(--c-text-2);
  font-weight: 400;
  max-width: 640px;
}
.faq-a a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) {
  .faq-q { grid-template-columns: 32px 1fr 14px; gap: 14px; padding: 22px 2px; font-size: 15.5px; }
  .faq-num { font-size: 10.5px; letter-spacing: 0.06em; }
  .faq-toggle { width: 14px; height: 14px; }
  .faq-toggle::before, .faq-toggle::after { width: 14px; }
  .faq-a { padding: 0 2px 22px 46px; font-size: 14.5px; }
}

/* ===== DIMENSIONS ===== */
.dim-row { display: grid; grid-template-columns: 200px 1fr 56px; gap: 18px; align-items: center; padding: 16px 0; }
.dim-bar { height: 8px; background: var(--c-bg-2); border-radius: 999px; overflow: hidden; }
.dim-bar > span { display: block; height: 100%; border-radius: 999px; }
.dim-explain { grid-column: 1 / -1; color: var(--c-text-muted); font-size: 13.5px; margin-top: 2px; }
@media (max-width: 720px) {
  .dim-row { grid-template-columns: 1fr 56px; }
  .dim-bar-cell { grid-column: 1 / -1; order: 3; }
}

/* ===== FOOTER ===== */
.footer { border-top: 4px solid var(--c-ink); margin-top: 80px; background: var(--c-bg-2); position: relative; }
.footer::before {
  content: ""; position: absolute; top: -4px; left: 0;
  width: 88px; height: 4px; background: var(--c-accent);
}
.footer-inner { max-width: var(--maxw-page); margin: 0 auto; padding: 48px 32px 32px; }
.footer-top {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-bottom: 32px; border-bottom: 1px solid var(--c-border);
}
.footer-tag { color: var(--c-text-muted); font-size: 14px; max-width: 320px; margin: 14px 0 0; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-cap { font-weight: 600; font-size: 13px; color: var(--c-ink); margin-bottom: 12px; }
.footer-links a {
  display: block; color: var(--c-text-muted); font-size: 14px;
  padding: 4px 0;
}
.footer-links a:hover { color: var(--c-ink); }
/* B4-08b: Button in Link-Optik — für Aktionen ohne Navigationsziel
   (Cookie-Einstellungen im Footer). Semantik: <button>, Look: Footer-Link. */
.linklike {
  display: block;
  background: none; border: 0; padding: 4px 0; margin: 0;
  font: inherit; font-size: 14px; color: var(--c-text-muted);
  text-align: left; cursor: pointer;
}
.linklike:hover { color: var(--c-ink); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; color: var(--c-text-muted); font-size: 13px;
}

/* ===== CONSENT-BANNER (DSGVO/TTDSG) =====
   Fixed-bottom, mobile-first. Akzeptieren + Ablehnen sind visuell gleich
   gewichtet (gleiche Größe, gleicher Abstand, gleicher Kontrast) — kein
   Dark-Pattern. Akzeptieren ist .btn-primary (dunkel), Ablehnen ist
   .btn-outline (gleiche Größe, gleiche Schriftstärke, nur transparenter
   Hintergrund). Das entspricht der LG-Rostock-Vorgabe. */
.consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: var(--c-bg-1);
  border-top: 1px solid var(--c-border-strong);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
}
.consent-banner[hidden] { display: none; }
.consent-banner-inner {
  max-width: var(--maxw-page);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.consent-banner-text { flex: 1 1 auto; min-width: 0; }
.consent-banner-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-ink);
  margin: 0 0 6px;
}
.consent-banner-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text-2);
  margin: 0;
}
.consent-banner-body a {
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-banner-body a:hover { color: var(--c-ink-soft); }
.consent-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.consent-banner-actions .consent-btn {
  min-width: 140px;
  min-height: 44px;
}
@media (max-width: 720px) {
  .consent-banner { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .consent-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .consent-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .consent-banner-actions .consent-btn { min-width: 0; width: 100%; }
  .consent-banner-title { font-size: 15px; }
  .consent-banner-body { font-size: 13.5px; }
}

/* ── Lead-Magnet-Popup (WP12) ─────────────────────────────────────────
   Mobile-first: Breite min(420px, 100vw-32px), Touch-Targets >= 44px,
   Background-Scroll wird via JS gesperrt. z-index über dem Consent-Banner. */
.lead-popup {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.lead-popup[hidden] { display: none; }
.lead-popup-backdrop {
  position: absolute; inset: 0;
  background: rgba(14, 14, 16, 0.55);
  backdrop-filter: blur(3px);
}
.lead-popup-card {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--c-bg-1);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 32px 28px 26px;
}
.lead-popup-close {
  position: absolute; top: 8px; right: 8px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--c-text-2);
  border-radius: var(--r-md);
}
.lead-popup-close:hover { color: var(--c-ink); background: var(--c-bg-2); }
.lead-popup-title {
  font-family: var(--font-serif);
  font-size: 30px; line-height: 1.1; font-weight: 400;
  color: var(--c-ink);
  margin: 14px 0 10px;
}
.lead-popup-body {
  font-size: 15px; line-height: 1.55;
  color: var(--c-text-2);
  margin: 0 0 18px;
}
.lead-popup-form { display: flex; flex-direction: column; gap: 10px; }
.lead-popup-input {
  width: 100%; box-sizing: border-box;
  padding: 14px 20px; /* mehr H-Padding als r-md: Text klebt sonst an der Pill-Rundung */
  font-size: 16px; /* >= 16px: verhindert iOS-Auto-Zoom */
  font-family: var(--font-sans);
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--r-pill); /* gleiche Form wie der Submit-Button (alle Boxen gleich) */
  background: var(--c-bg);
  color: var(--c-ink);
}
.lead-popup-input:focus {
  outline: none;
  border-color: var(--c-ink);
  box-shadow: 0 0 0 3px var(--c-accent);
}
.lead-popup-submit { width: 100%; min-height: 48px; margin-top: 4px; }
.lead-popup-error {
  margin: 2px 0 0; font-size: 13px; color: var(--c-red, #B23E36);
}
.lead-popup-error[hidden] { display: none; }
.lead-popup-fineprint {
  margin: 14px 0 0; font-size: 12px; line-height: 1.5;
  color: var(--c-text-2);
}
.lead-popup-fineprint a { color: var(--c-ink); text-decoration: underline; }
@media (max-width: 480px) {
  .lead-popup-card { padding: 28px 20px 22px; }
  .lead-popup-title { font-size: 26px; }
}
