/* ============================================
   wpseo.seo-manager.info - Main Stylesheet
   Design: WordPress SEO / Dark Mode (Indigo + Emerald)
   ============================================ */


/* --- Fonts (lokal gehostet) ---
   Eine Schriftart für alles: Manrope, optimiert auf Performance
   - 3 Gewichte als Dateien (400, 700, 800) – statt 5 (500 und 600 weggelassen)
   - Body-Text = 400, kräftigere Akzente = 700, Display/Headlines = 800
   - Jede Datei enthält latin + latin-ext kombiniert (vom GWFH so geliefert)
   - Format: WOFF2 only (von allen modernen Browsern unterstützt)
   - font-display: swap = Text sofort lesbar (FOUT statt FOIT)
   - DSGVO: keine Anfrage an Google-CDNs
*/

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/manrope-800.woff2') format('woff2');
}

/* --- Display- und Mono-Look mit Manrope ---
   Wir hatten vorher Bebas Neue (Display) + JetBrains Mono (Mono).
   Mit Manrope-only emulieren wir die zwei Looks über Style-Eigenschaften:
   - Display: weight 800 + uppercase + breite letter-spacing
   - Mono: tabular-nums + minimaler letter-spacing
*/
[style*="font-display"], h1, h2, h3, h4,
.hero h1, .stat-value, .process-number, .logo-icon, .logo-text,
.section-eyebrow {
  font-feature-settings: "ss01", "ss02";
}

/* Element, die bewusst den "Display-Look" haben (durch font-family: var(--font-display)) */
.hero h1, h1, h2, h3, h4,
.stat-value, .process-number, .logo-icon,
.hotline-number, .error-code {
  font-weight: 800;
  text-transform: uppercase;
  font-feature-settings: "ss01", "ss02", "cv11";
}

/* Mono-Look (alles, was font-family: var(--font-mono) hatte) */
code, kbd, samp, pre, .logo-sub, .hotline-meta,
.btn-primary-large, .hero-badge {
  font-feature-settings: "tnum", "zero", "ss01";
  font-variant-numeric: tabular-nums slashed-zero;
  letter-spacing: 0.02em;
}

/* code-Tags: dezenter Hintergrund + monospaced numerals + minimal anders */
code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  font-weight: 400;
}
/* --- CSS Variables --- */
:root {
  --color-bg: #0a0e14;
  --color-bg-alt: #111821;
  --color-bg-card: #161e2a;
  --color-bg-elevated: #1d2735;
  --color-border: #2a3544;
  --color-border-strong: #3a4a5e;

  --color-text: #e8edf2;
  --color-text-muted: #8b95a5;
  /* color-text-dim ist auf #8b95a5 (=color-text-muted) erhöht für WCAG AA */
  --color-text-dim: #8b95a5;

  /* Primär: Indigo (Tech-Kompetenz, Vertrauen) */
  --color-primary: #4F46E5;
  --color-primary-hover: #6366F1;
  --color-primary-glow: rgba(79, 70, 229, 0.4);

  /* Akzent: Emerald (Wachstum, Ranking-Erfolg) */
  --color-accent: #10B981;
  --color-accent-glow: rgba(16, 185, 129, 0.3);

  --color-warning: #F59E0B;
  --color-info: #3B82F6;

  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'Manrope', ui-monospace, 'SF Mono', Consolas, monospace;

  --container-width: 1200px;
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-red: 0 8px 32px rgba(79, 70, 229, 0.25);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(79, 70, 229, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Accessibility: visuell verstecken, für Screenreader sichtbar --- */
.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Skip-Link: bei Tastatur-Fokus sichtbar werden */
.skip-link:focus {
  position: fixed !important;
  top: 12px !important;
  left: 12px !important;
  width: auto !important;
  height: auto !important;
  padding: 12px 18px !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  background: var(--color-primary) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm) !important;
  z-index: 9999 !important;
  text-decoration: none !important;
  box-shadow: var(--shadow) !important;
}

/* --- Links ---
   WCAG: Links müssen sich nicht nur durch Farbe vom Fließtext unterscheiden.
   Default: alle Links unterstrichen.
   Ausgenommen: navigationelle Elemente (Header-Nav, Footer-Nav, Buttons, Cards,
   Logo, Status-Bar), wo die Klickbarkeit durch Position/Layout/Hover klar ist.
*/
a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-text-muted);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

a:hover {
  color: var(--color-primary-hover);
  text-decoration-color: var(--color-primary-hover);
}

a:focus-visible {
  outline: 2px solid var(--color-primary-hover);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Navigationelle Links: kein Unterstrich nötig (durch Position/Layout klar) */
.site-header a,
.main-nav a,
.site-footer a,
.status-bar a,
.btn,
.btn-call-header,
.logo,
.breadcrumbs a,
.card,
a.card,
.faq-content a,
.process-step a,
.hero-cta a,
.hotline-box a,
.sticky-call,
.error-actions a {
  text-decoration: none;
}

/* … aber bei Hover für Footer trotzdem dezenter Unterstrich.
   Main-Nav-Links nicht: die haben eigenen Hover-State.
*/
.site-footer a:hover,
.breadcrumbs a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Inline-Links im Fließtext (z.B. in <p>, <li>, .faq-content) – immer unterstrichen */
.faq-content a,
section p a,
.feature-list a {
  text-decoration: underline;
  text-decoration-color: var(--color-primary-hover);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  color: var(--color-primary-hover);
  font-weight: 400;
}

.faq-content a:hover,
section p a:hover,
.feature-list a:hover {
  text-decoration-thickness: 2px;
  color: var(--color-text);
  text-decoration-color: var(--color-text);
}

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Status Bar --- */
.status-bar {
  background: linear-gradient(90deg, #0a0e14, #111821, #0a0e14);
  border-bottom: 1px solid var(--color-border);
  padding: 8px 0;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
}

.status-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.status-online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-accent-glow);
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* --- Header --- */
.site-header {
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--color-text);
}

.logo:hover {
  color: var(--color-text);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-primary), #b91c1c);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-red);
  position: relative;
  overflow: hidden;
}

.logo-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 60%);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-accent);
  letter-spacing: 2px;
  margin-top: 4px;
}

/* --- Navigation: Mega-Menu --- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Top-Level Items */
.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  background: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link[aria-expanded="true"] {
  color: var(--color-text);
  background: var(--color-bg-card);
}

/* Active-State: dezenter roter Strich unten + leichter Background.
   Damit unterscheidbar von Hover/Open. */
.nav-link.active {
  color: var(--color-text);
  background: var(--color-bg-card);
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--color-primary-hover);
  opacity: 0.6;
  border-radius: 1px;
}

.nav-chevron {
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.nav-link[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown-Container (versteckt by default per [hidden]) */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  padding: 12px;
  z-index: 100;
  min-width: 240px;
  /* Animation */
  animation: dropdown-in 0.18s ease-out;
}

@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown[hidden] {
  display: none;
}

/* Linkstil innerhalb der Dropdowns */
.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  color: var(--color-text);
  background: var(--color-bg-card);
}

/* Simple-Dropdown (rechtsbündig) */
.nav-dropdown-simple {
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* Rechts ausrichten, damit's nicht überm Hotline-Button überhängt */
  right: 0;
}

/* Notfall-Dropdown links ausrichten */
.nav-item:first-child .nav-dropdown-simple {
  right: auto;
  left: 0;
}

/* Mega-Dropdown (3 Spalten) – positioniert sich zentriert im Header-Container */
.nav-dropdown-mega {
  /* Desktop: vom Trigger lösen, auf Container zentrieren via fixed-width */
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, calc(100vw - 48px));
  min-width: 720px;
  padding: 24px 28px;
  /* Erhalte die Animation – bei mega muss das transform aber bleiben */
  animation: dropdown-in-mega 0.18s ease-out;
}

@keyframes dropdown-in-mega {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.mega-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.mega-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px 12px;
  margin: 0 0 6px;
  border-bottom: 1px solid var(--color-border);
}

.mega-sep {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 8px 14px;
}

.mega-allink {
  color: var(--color-primary-hover) !important;
  font-weight: 700;
}

/* Hotline-Button */
.btn-call-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: white !important;
  padding: 10px 18px !important;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  font-family: var(--font-mono);
  box-shadow: var(--shadow-red);
  margin-left: 12px;
  white-space: nowrap;
}

.btn-call-header:hover {
  background: var(--color-primary-hover) !important;
  color: white !important;
  transform: translateY(-1px);
}

/* Mobile Menu Toggle (Hamburger) */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 20px;
  align-items: center;
  justify-content: center;
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.3);
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-primary-hover);
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

.siren {
  display: inline-block;
  animation: siren-spin 2s linear infinite;
}

@keyframes siren-spin {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(0deg) scale(1.15); }
  100% { transform: rotate(360deg); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--color-primary) 0%, #f87171 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 700px;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #b91c1c);
  color: white;
  box-shadow: var(--shadow-red);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: 0 0 0 0 var(--color-primary-glow);
  animation: pulse-red 2s ease-out infinite;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 var(--color-primary-glow); }
  70% { box-shadow: 0 0 0 18px rgba(79, 70, 229, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover), var(--color-primary));
  color: white;
  transform: translateY(-2px);
}

.btn-primary-large {
  font-size: 20px;
  padding: 22px 40px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

.btn-secondary {
  background: var(--color-bg-card);
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}

.btn-secondary:hover {
  background: var(--color-bg-elevated);
  color: var(--color-text);
  border-color: var(--color-text-muted);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-bg-card);
  color: var(--color-text);
}

/* --- Sections --- */
section {
  padding: 80px 0;
  position: relative;
}

.section-alt {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-eyebrow::before { content: '> '; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

h3 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.5px;
  line-height: 1.15;
  margin-bottom: 14px;
}

h4 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

p {
  margin-bottom: 16px;
  color: var(--color-text-muted);
}

p strong {
  color: var(--color-text);
}

/* --- Grid Layouts --- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- Cards --- */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-bg-elevated), var(--color-bg-card));
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.card-emergency {
  border-color: rgba(79, 70, 229, 0.3);
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.05), var(--color-bg-card));
}

.card-emergency .card-icon {
  background: linear-gradient(135deg, var(--color-primary), #b91c1c);
  border-color: var(--color-primary);
}

/* --- Hotline Box --- */
.hotline-box {
  background: linear-gradient(135deg, #1a0a0a 0%, #0a0e14 100%);
  border: 1px solid rgba(79, 70, 229, 0.4);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 40px 0;
}

.hotline-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  animation: scan 3s linear infinite;
}

@keyframes scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.hotline-box .label {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-accent);
  letter-spacing: 3px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hotline-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: 4px;
  color: white;
  margin: 16px 0;
  text-shadow: 0 0 30px var(--color-primary-glow);
}

.hotline-number:hover {
  color: var(--color-primary-hover);
}

.hotline-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  margin-top: 20px;
}

.hotline-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --- Stats Grid --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--color-bg-card);
  padding: 32px 24px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: var(--color-primary-hover);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* --- Process Steps --- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-step {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
}

.process-number {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.5;
  margin-bottom: 12px;
  display: block;
}

@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .process { grid-template-columns: 1fr; } }

/* --- FAQ --- */
.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item[open] {
  border-color: rgba(79, 70, 229, 0.4);
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  color: var(--color-text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--color-primary-hover);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item .faq-content {
  padding: 0 24px 20px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Lists --- */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 12px 0 12px 36px;
  position: relative;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 12px;
  width: 24px;
  height: 24px;
  background: var(--color-accent);
  color: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.feature-list li strong {
  color: var(--color-text);
  display: block;
  margin-bottom: 4px;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-dim);
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

.breadcrumbs a:hover {
  color: var(--color-primary-hover);
}

.breadcrumbs span {
  margin: 0 8px;
  color: var(--color-text-dim);
}

/* --- Footer --- */
.site-footer {
  background: #050810;
  border-top: 1px solid var(--color-border);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 20px 0;
  /* Override des globalen h2-Display-Stils */
  line-height: 1.4;
}

/* Hotline-Link in der Footer-About-Spalte */
.footer-hotline {
  display: inline-block;
  margin-top: 4px;
  color: var(--color-primary-hover);
  font-weight: 700;
  font-size: 18px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.footer-hotline:hover {
  color: var(--color-text);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--color-text-muted);
  font-size: 14px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-primary-hover);
}

.footer-about p {
  font-size: 14px;
  margin-bottom: 12px;
}

/* Logo im Footer hat etwas Abstand zum Text */
.footer-about .logo {
  margin-bottom: 20px;
}

/* Spacer vor dem Hotline-Link in der Footer-About-Spalte */
.footer-about-tel {
  margin-top: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-dim);
  font-family: var(--font-mono);
}

.footer-bottom a {
  color: var(--color-text-muted);
}

/* --- Sticky Mobile Hotline --- */
.sticky-call {
  display: none;
}

@media (max-width: 768px) {
  .sticky-call {
    display: flex;
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 99;
    background: var(--color-primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
    text-decoration: none;
  }

  .sticky-call::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 var(--color-primary-glow);
    animation: pulse-red 2s infinite;
  }
}

/* --- Mobile Menu (Off-Canvas + Accordion) --- */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  /* Backdrop hinter dem Off-Canvas-Panel */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(380px, 100vw);
    height: 100dvh;
    background: var(--color-bg-alt);
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 80px 16px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: right 0.25s ease;
    z-index: 200;
    box-shadow: -8px 0 32px rgba(0,0,0,0.4);
  }

  .main-nav.open {
    right: 0;
  }

  /* Wenn Menü offen ist: Body nicht scrollen */
  body.nav-open {
    overflow: hidden;
  }

  /* Backdrop-Layer – nur über dem Bereich LINKS vom Menü.
     Das Menü selbst ist 380px breit und sitzt rechts (right: 0), also blendet
     der Backdrop nur den Bereich rechts: 380px (= alles links vom Menü) ab.
     Damit bleibt das Menü-Panel selbst klar und gut lesbar.
  */
  body.nav-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: min(380px, 100vw);   /* hört am linken Rand des Menüs auf */
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 150;
    animation: fade-in 0.2s ease;
    pointer-events: none;
  }

  @keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 16px;
    font-size: 16px;
    border-radius: 0;
  }

  /* Mobile: aktive Top-Items deutlicher hervorheben */
  .nav-link.active {
    color: var(--color-text);
    background: var(--color-bg-card);
    box-shadow: inset 2px 0 0 rgba(239, 68, 68, 0.6);
  }

  /* Mobile: Dropdowns sind statisch positioniert (Accordion-Style) */
  .nav-dropdown,
  .nav-dropdown-mega {
    position: static !important;
    transform: none !important;
    background: var(--color-bg);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 4px 16px 16px;
    min-width: 0;
    width: 100%;
    animation: none;
  }

  .mega-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mega-title {
    padding: 4px 0 8px;
    font-size: 11px;
  }

  .nav-dropdown a {
    padding: 12px 16px;
    font-size: 15px;
  }

  /* Hotline-Button auf Mobile prominenter */
  .btn-call-header {
    width: 100%;
    justify-content: center;
    margin: 16px 0 0;
    padding: 16px 18px !important;
    font-size: 16px;
  }

  /* Hamburger-Icon: X wenn offen */
  .menu-toggle[aria-expanded="true"] {
    color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    z-index: 250;  /* überm Off-Canvas-Panel */
    position: relative;
  }
}

/* --- Legal Pages --- */
.legal-page {
  padding: 60px 0 80px;
}

.legal-page .container {
  max-width: 860px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.legal-page h2 {
  font-size: 28px;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--color-primary-hover);
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  border-left: 3px solid var(--color-primary);
  padding-left: 16px;
}

.legal-page h3 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 12px;
  font-family: var(--font-body);
  color: var(--color-text);
}

.legal-page h4 {
  font-size: 17px;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--color-accent);
}

.legal-page p,
.legal-page li {
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-page ul, .legal-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page a {
  color: var(--color-primary-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page a:hover {
  color: var(--color-primary);
}

.legal-meta {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
  font-family: var(--font-mono);
  font-size: 14px;
}

.legal-meta strong {
  color: var(--color-accent);
  display: inline-block;
  min-width: 140px;
}

/* --- CTA Block --- */
.cta-block {
  background: linear-gradient(135deg, #1a0a0a 0%, #0a0e14 70%);
  border: 1px solid rgba(79, 70, 229, 0.3);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-primary-glow), transparent 70%);
  pointer-events: none;
}

.cta-block > * {
  position: relative;
  z-index: 1;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mt-4 { margin-top: 32px; }

/* --- Scroll Reveal Animation --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Article-Prose-Styles (für Cluster-Inhalte) --- */
article {
  max-width: 820px;
  margin: 0 auto;
}

article h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}

article h2:first-of-type {
  margin-top: 0;
}

article h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

article h4 {
  margin-top: 24px;
  margin-bottom: 8px;
}

article p {
  margin-bottom: 16px;
}

article ul:not(.feature-list),
article ol {
  margin: 0 0 20px 24px;
  padding: 0;
}

article ul:not(.feature-list) li,
article ol li {
  margin-bottom: 8px;
  color: var(--color-text);
  line-height: 1.6;
}

article ul:not(.feature-list) {
  list-style: disc;
}

article ol {
  list-style: decimal;
}

article a {
  color: var(--color-primary-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

article a:hover {
  color: var(--color-text);
}

article code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  color: var(--color-accent);
  word-break: break-word;
}

/* --- Checklist-Layout --- */
.checklist {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.checklist-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.checklist-item:hover {
  border-color: var(--color-border-strong);
  background: var(--color-bg-elevated);
}

.checklist-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary-hover);
  letter-spacing: 0.04em;
  font-feature-settings: "tnum";
  line-height: 1;
  align-self: start;
  padding-top: 4px;
}

.checklist-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

.checklist-item p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .checklist-item {
    grid-template-columns: 44px 1fr;
    padding: 16px;
  }
  .checklist-num {
    font-size: 22px;
  }
}

/* --- Legal-Pages-Layout --- */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.legal-page h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 16px;
}

.legal-page h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.legal-page h3 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: 0;
}

.legal-page p {
  margin-bottom: 16px;
}

.legal-meta {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0 32px;
}

.legal-meta p {
  margin-bottom: 8px;
}

.legal-meta p:last-child {
  margin-bottom: 0;
}

/* --- Hero kompakte Variante (für Hub- und Cluster-Seiten) --- */
.hero.hero-compact {
  padding-top: 80px;
  padding-bottom: 60px;
}

.hero.hero-compact h1 {
  font-size: clamp(36px, 5vw, 56px);
}

/* --- Vergleichstabellen --- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}

.compare-table thead th {
  background: var(--color-bg-elevated);
  color: var(--color-text);
  font-weight: 700;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 2px solid var(--color-border-strong);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.compare-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  width: 40%;
}

.compare-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover th,
.compare-table tbody tr:hover td {
  background: rgba(79, 70, 229, 0.04);
}

@media (max-width: 720px) {
  .compare-table { font-size: 13px; }
  .compare-table thead th,
  .compare-table tbody th,
  .compare-table tbody td { padding: 10px 12px; }
}

/* --- Breadcrumb-Separator --- */
.breadcrumbs .breadcrumb-sep {
  margin: 0 8px;
  color: var(--color-text-dim);
}

/* --- Print Styles --- */
@media print {
  .site-header, .site-footer, .sticky-call, .status-bar { display: none; }
  body { background: white; color: black; }
}
