/**
 * ============================================
 * MyInvest24 Global CSS System
 * Version: 3.0.0
 * Letzte Aktualisierung: 2025-12-12
 * 
 * INHALT:
 * 1. CSS Variables & Root Settings
 * 2. Reset & Base Styles
 * 3. SVG Icon Fixes (Riesen-Pfeil Bug)
 * 4. Typography System
 * 5. Container & Layout System
 * 6. Button & Touch-Target System
 * 7. Header Styles
 * 8. Mobile Navigation
 * 9. Hero Sections
 * 10. Cards & Components
 * 11. Testimonials (Fixed Avatar)
 * 12. FAQ Accordion
 * 13. CTA Sections
 * 14. Footer Styles
 * 15. Utility Classes
 * 16. Responsive Breakpoints
 * ============================================
 */

/* ============================================
   1. CSS VARIABLES & ROOT SETTINGS
   ============================================ */
:root {
  /* Brand Colors - Premium Investment Look */
  --primary: #0f172a;
  --primary-light: #1e293b;
  --primary-dark: #020617;
  
  /* Accent Colors */
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --accent-light: #38bdf8;
  --accent-glow: rgba(14, 165, 233, 0.2);
  
  /* Status Colors */
  --success: #10b981;
  --success-light: #34d399;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Text Colors */
  --text: #0f172a;
  --text-light: #475569;
  --text-muted: #64748b;
  --text-white: #ffffff;
  
  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-alt: #f1f5f9;
  --bg-dark: #0f172a;
  
  /* Border Colors */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-accent: 0 8px 24px rgba(14, 165, 233, 0.25);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Font Sizes - Mobile First */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  
  /* Spacing System */
  --space-1: 0.25rem;     /* 4px */
  --space-2: 0.5rem;      /* 8px */
  --space-3: 0.75rem;     /* 12px */
  --space-4: 1rem;        /* 16px */
  --space-5: 1.25rem;     /* 20px */
  --space-6: 1.5rem;      /* 24px */
  --space-8: 2rem;        /* 32px */
  --space-10: 2.5rem;     /* 40px */
  --space-12: 3rem;       /* 48px */
  --space-16: 4rem;       /* 64px */
  --space-20: 5rem;       /* 80px */
  
  /* Container */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-padding: 1.25rem;  /* 20px Mobile */
  
  /* Border Radius */
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  
  /* Touch Target - Minimum 48px für Accessibility */
  --touch-target-min: 48px;
  
  /* Icon Sizes - WICHTIG: Verhindert Riesen-Pfeil Bug */
  --icon-xs: 12px;
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;
  --icon-xl: 32px;
}

/* Tablet Container Padding */
@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;  /* 32px */
  }
}

/* Desktop Container Padding */
@media (min-width: 1024px) {
  :root {
    --container-padding: 2.5rem;  /* 40px */
  }
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  /* scroll-behavior: smooth entfernt - verursacht ruckeliges/träges Scrolling */
  /* Smooth Scrolling wird nur für Anchor-Links via CSS-Klasse angewendet */
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Smooth Scroll nur für Anchor-Link Navigation */
html:focus-within {
  scroll-behavior: smooth;
}

/* ============================================
   A11Y BASICS: Fokus & Motion
   ============================================ */
:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.35);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg-white);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Anchor Targets: Sticky Header Offset (verhindert "überschnittene" Überschriften) */
:where(.article-content, .main-article) :where([id]) {
  scroll-margin-top: 96px;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ============================================
   2b. RICH CONTENT DEFAULTS (Artikel/Ratgeber)
   Reaktiviert Listen/Tabellen/Code innerhalb von Content-Containern,
   ohne globale Reset-Regeln aufzuweichen.
   ============================================ */

/* Listen */
.main-article ul:not(.checklist):not(.detailed-list),
.article-content ul:not(.checklist):not(.detailed-list) {
  list-style: disc;
}

.main-article ol:not(.checklist):not(.detailed-list),
.article-content ol:not(.checklist):not(.detailed-list) {
  list-style: decimal;
}

.main-article ul:not(.checklist):not(.detailed-list),
.main-article ol:not(.checklist):not(.detailed-list),
.article-content ul:not(.checklist):not(.detailed-list),
.article-content ol:not(.checklist):not(.detailed-list) {
  margin: 20px 0;
  padding-left: 1.25rem;
  color: var(--text-light);
}

.main-article ul:not(.checklist):not(.detailed-list) li::marker,
.main-article ol:not(.checklist):not(.detailed-list) li::marker,
.article-content ul:not(.checklist):not(.detailed-list) li::marker,
.article-content ol:not(.checklist):not(.detailed-list) li::marker {
  color: var(--accent);
  font-weight: 700;
}

.main-article ul:not(.checklist):not(.detailed-list) li,
.main-article ol:not(.checklist):not(.detailed-list) li,
.article-content ul:not(.checklist):not(.detailed-list) li,
.article-content ol:not(.checklist):not(.detailed-list) li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.main-article li > ul,
.main-article li > ol,
.article-content li > ul,
.article-content li > ol {
  margin-top: 10px;
  margin-bottom: 0;
}

/* Tabellen */
.main-article table,
.article-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-white);
  margin: 24px 0;
}

.main-article thead th,
.article-content thead th {
  background: var(--bg-light);
  color: var(--text);
  font-weight: 700;
}

.main-article th,
.main-article td,
.article-content th,
.article-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  text-align: left;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.main-article tr:last-child td,
.article-content tr:last-child td {
  border-bottom: none;
}

@media (max-width: 767px) {
  .main-article table,
  .article-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Code-Blöcke */
.main-article pre,
.article-content pre {
  background: var(--bg-dark);
  color: #e2e8f0;
  padding: 16px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.main-article code,
.article-content code {
  background: var(--bg-alt);
  color: var(--text);
  padding: 2px 6px;
  border-radius: var(--radius-md);
  font-size: 0.95em;
}

.main-article pre code,
.article-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

/* Zitate */
.main-article blockquote,
.article-content blockquote {
  margin: 24px 0;
  padding: 16px 18px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  color: #334155;
}

/* ============================================
   3. SVG ICON FIXES - RIESEN-PFEIL BUG
   ============================================ */

/* 
 * KRITISCH: Alle SVG Icons global auf sichere Größen begrenzen
 * Verhindert den "Riesen-Pfeil" Bug auf allen Seiten
 */

/* Standard Icon Größen */
svg {
  flex-shrink: 0;
}

/* Icons in Buttons */
button svg,
.btn svg,
a.btn svg,
[class*="btn"] svg,
[class*="cta"] svg {
  width: var(--icon-md) !important;
  height: var(--icon-md) !important;
  max-width: 24px !important;
  max-height: 24px !important;
}

/* Icons in Navigation */
.header svg,
.header__nav svg,
.header__link svg,
.header__dropdown svg,
.mobile-nav svg,
nav svg {
  width: var(--icon-sm) !important;
  height: var(--icon-sm) !important;
  max-width: 20px !important;
  max-height: 20px !important;
}

/* Icons in Cards */
.card svg,
[class*="card"] svg,
.feature svg,
[class*="feature"] svg {
  width: var(--icon-lg) !important;
  height: var(--icon-lg) !important;
  max-width: 32px !important;
  max-height: 32px !important;
}

/* Social Media Icons */
.footer__social svg,
[class*="social"] svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}

/* FAQ Icons */
.faq-question svg,
.faq-item svg,
[class*="faq"] svg,
details summary svg {
  width: var(--icon-md) !important;
  height: var(--icon-md) !important;
  max-width: 20px !important;
  max-height: 20px !important;
}

/* CTA Arrow Icons - SPEZIELLE BEHANDLUNG */
.cta svg,
.cta-btn svg,
[class*="__cta"] svg,
.btn--primary svg,
.footer__cta-btn svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  margin-left: 8px;
}

/* Hero Icons */
.hero svg {
  width: var(--icon-lg) !important;
  height: var(--icon-lg) !important;
  max-width: 32px !important;
  max-height: 32px !important;
}

/* Große dekorative Icons erlauben */
.icon-large svg,
.icon--xl svg,
[class*="illustration"] svg {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

/* ============================================
   4. TYPOGRAPHY SYSTEM
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: var(--text-3xl);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

h4 {
  font-size: var(--text-lg);
}

h5, h6 {
  font-size: var(--text-base);
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--text-4xl);
  }
  
  h2 {
    font-size: var(--text-3xl);
  }
  
  h3 {
    font-size: var(--text-2xl);
  }
  
  h4 {
    font-size: var(--text-xl);
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: var(--text-5xl);
  }
  
  h2 {
    font-size: var(--text-4xl);
  }
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-light);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .lead {
    font-size: var(--text-xl);
  }
}

/* ============================================
   5. CONTAINER & LAYOUT SYSTEM
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container--sm {
  max-width: var(--container-sm);
}

.container--md {
  max-width: var(--container-md);
}

.container--lg {
  max-width: var(--container-lg);
}

/* Section Spacing - Mobile First */
.section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

@media (min-width: 1024px) {
  .section {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
  }
}

.section--alt {
  background-color: var(--bg-alt);
}

.section--dark {
  background-color: var(--bg-dark);
  color: var(--text-white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.7);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

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

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

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

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

/* ============================================
   6. BUTTON & TOUCH-TARGET SYSTEM
   ============================================ */

/* 
 * WCAG 2.1 Touch Target Requirement: min 44x44px
 * Google Mobile Guidelines: min 48x48px
 * Wir nutzen 48px als Minimum
 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--touch-target-min);  /* 48px Minimum */
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  -webkit-appearance: none;
  appearance: none;
}

/* Primary Button */
.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn--secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn--secondary:hover {
  background: var(--accent);
  color: var(--text-white);
}

/* Ghost Button */
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border-light);
}

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

/* Button Sizes */
.btn--sm {
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn--lg {
  min-height: 56px;
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/* Full Width Button */
.btn--full {
  width: 100%;
}

@media (min-width: 640px) {
  .btn--full-mobile {
    width: auto;
  }
}

/* Button Icons - Sichere Größen */
.btn svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
}

/* ============================================
   7. HEADER STYLES
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: 72px;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  height: 100%;
  z-index: 10;
}

.header__logo img {
  height: 40px;
  width: auto;
  max-width: 155px;
}

/* Mobile: kompakter Header (weniger weißer Raum, Touch-Targets bleiben 48px) */
@media (max-width: 480px) {
  .header { height: 64px; }
  .header__logo img { height: 36px; }
}

/* Navigation - Desktop */
.header__nav {
  display: none;
  align-items: center;
  gap: var(--space-1);
}

@media (min-width: 1024px) {
  .header__nav {
    display: flex;
  }
}

.header__link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  min-height: var(--touch-target-min);
}

.header__link:hover {
  color: var(--accent);
  background: var(--bg-light);
}

.header__link svg {
  width: 14px !important;
  height: 14px !important;
  transition: transform var(--transition-fast);
}

/* Dropdown */
.header__dropdown {
  position: relative;
}

.header__dropdown-trigger {
  cursor: pointer;
}

.header__dropdown:hover .header__dropdown-trigger svg {
  transform: rotate(180deg);
}

.header__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.header__dropdown:hover .header__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header__dropdown-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  min-height: 44px;
}

.header__dropdown-link:hover {
  background: var(--bg-light);
  color: var(--accent);
}

.header__dropdown-link svg {
  width: 20px !important;
  height: 20px !important;
  color: var(--accent);
}

.header__dropdown-link span {
  display: flex;
  flex-direction: column;
}

.header__dropdown-link small {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 400;
}

/* Mega Menu */
.header__mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 640px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.header__mega:hover .header__mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header__mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.header__mega-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.header__mega-link {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text);
  transition: color var(--transition-fast);
}

.header__mega-link:hover {
  color: var(--accent);
}

.header__mega-link--more {
  color: var(--accent);
  font-weight: 600;
  margin-top: var(--space-2);
}

/* Erweitertes Mega-Menü (4 Spalten für Ratgeber) */
.header__mega-menu--wide {
  min-width: 800px;
}

.header__mega-grid--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1200px) {
  .header__mega-menu--wide {
    min-width: 700px;
  }
  
  .header__mega-grid--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

/* Header CTA */
.header__cta {
  display: none;
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--text-white);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

@media (min-width: 1024px) {
  .header__cta {
    display: flex;
    align-items: center;
  }
}

.header__cta:hover {
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

/* Mobile Toggle */
.header__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: var(--touch-target-min);
  height: var(--touch-target-min);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
}

@media (min-width: 1024px) {
  .header__toggle {
    display: none;
  }
}

.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.header__toggle span:nth-child(1) {
  margin-bottom: 6px;
}

.header__toggle span:nth-child(3) {
  margin-top: 6px;
}

/* Toggle Active State */
.header__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.header__toggle.active span:nth-child(2) {
  opacity: 0;
}

.header__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Header Offset for fixed header */
.main-content {
  padding-top: 72px;
}

@media (max-width: 480px) {
  .main-content { padding-top: 64px; }
}

/* ============================================
   8. MOBILE NAVIGATION
   ============================================ */
.mobile-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-modal);
  background: var(--bg-white);
  padding: var(--space-6) var(--container-padding);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
}

@media (max-width: 480px) {
  .mobile-nav { top: 64px; }
}

.mobile-nav.active {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none;
  }
}

.mobile-nav__links {
  margin-bottom: var(--space-8);
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  min-height: var(--touch-target-min);
}

.mobile-nav__link:hover {
  color: var(--accent);
}

/* Mobile Submenus (für verschachtelte Einträge im Mobile-Menü) */
.mobile-nav__submenu {
  display: flex;
  flex-direction: column;
}

.mobile-nav__submenu-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
}

.mobile-nav__submenu-trigger svg {
  width: 20px !important;
  height: 20px !important;
  color: var(--accent);
  transition: transform var(--transition-slow);
}

.mobile-nav__submenu-trigger.active svg {
  transform: rotate(180deg);
}

.mobile-nav__submenu-list {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding-left: 16px;
  list-style: none;
  border-left: 2px solid rgba(14, 165, 233, 0.3);
}

.mobile-nav__submenu-list.open {
  display: flex;
}

.mobile-nav__sublink {
  display: block;
  padding: 12px 16px;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  min-height: 44px;
}

.mobile-nav__sublink:hover {
  color: var(--text);
  background: rgba(14, 165, 233, 0.08);
}

.mobile-nav__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--text-white);
  font-size: var(--text-lg);
  font-weight: 600;
  border-radius: var(--radius-xl);
}

/* ============================================
   9. HERO SECTIONS
   ============================================ */
.hero {
  position: relative;
  padding: var(--space-16) 0 var(--space-12);
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-light) 100%);
  color: var(--text-white);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: var(--space-20) 0 var(--space-16);
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-6);
}

.hero__title {
  font-size: var(--text-3xl);
  color: var(--text-white);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .hero__title {
    font-size: var(--text-4xl);
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: var(--text-5xl);
  }
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
  max-width: 560px;
}

@media (min-width: 768px) {
  .hero__subtitle {
    font-size: var(--text-xl);
  }
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
  }
}

/* ============================================
   9b. ARTICLE HERO (Ratgeber-Seiten)
   ============================================ */
.article-hero {
  position: relative;
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-light) 100%);
  color: var(--text-white);
  overflow: hidden;
}

.article-hero h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: #FFFFFF !important;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.article-hero .lead {
  font-size: 1.125rem;
  color: #94A3B8;
  max-width: 700px;
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.article-hero .category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #0EA5E9;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.article-hero .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #64748B;
  font-size: 14px;
  margin-top: var(--space-4);
}

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

/* ============================================
   10. CARDS & COMPONENTS
   ============================================ */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-glow) 0%, rgba(14, 165, 233, 0.1) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.card__icon svg {
  width: 28px !important;
  height: 28px !important;
  color: var(--accent);
}

.card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.card__text {
  font-size: var(--text-sm);
  color: var(--text-light);
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: var(--space-8);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-5);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: var(--radius-xl);
}

.feature-card__icon svg {
  width: 32px !important;
  height: 32px !important;
  color: var(--text-white);
}

/* Stat Cards */
.stat-card {
  text-align: center;
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-card__label {
  font-size: var(--text-sm);
  color: var(--text-light);
}

/* ============================================
   11. TESTIMONIALS - FIXED AVATAR STYLING
   ============================================ */
.testimonials {
  padding: var(--space-16) 0;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}

.testimonial__rating {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
}

.testimonial__star {
  width: 18px;
  height: 18px;
  color: #fbbf24;
}

.testimonial__text {
  font-size: var(--text-base);
  color: var(--text-light);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: var(--space-6);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}

/* FIXED: Avatar Styling - Korrektes Rendering */
.testimonial__avatar {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--accent-glow) 0%, var(--bg-light) 100%);
  flex-shrink: 0;
}

/* Avatar Placeholder mit Initialen */
.testimonial__avatar-placeholder {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-white);
  flex-shrink: 0;
}

.testimonial__info {
  flex: 1;
  min-width: 0;
}

.testimonial__name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.testimonial__role {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Testimonial Quote Icon */
.testimonial::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--accent-glow);
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
}

/* ============================================
   12. FAQ ACCORDION - FUNKTIONIERENDES JS
   ============================================ */
.faq-section {
  padding: var(--space-16) 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-item.active {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  min-height: var(--touch-target-min);
}

@media (min-width: 768px) {
  .faq-question {
    font-size: var(--text-lg);
  }
}

.faq-question svg {
  width: 20px !important;
  height: 20px !important;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer__inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-base);
  color: var(--text-light);
  line-height: 1.7;
}

/* Alternative: Details/Summary FAQ */
.faq-details {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
  overflow: hidden;
}

.faq-details[open] {
  border-color: var(--accent);
}

.faq-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  min-height: var(--touch-target-min);
}

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

.faq-details summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--accent);
}

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

.faq-details > div {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   13. CTA SECTIONS - KEIN RIESEN-PFEIL
   ============================================ */
.cta-section {
  padding: var(--space-16) 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-light) 100%);
  text-align: center;
}

.cta-section__title {
  font-size: var(--text-2xl);
  color: var(--text-white);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .cta-section__title {
    font-size: var(--text-3xl);
  }
}

.cta-section__text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button - Sichere Icon Größe */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 56px;
  padding: var(--space-4) var(--space-8);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--text-white);
  font-size: var(--text-lg);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-base);
}

.cta-btn:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

/* KRITISCH: CTA Icon Größe fixieren */
.cta-btn svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 20px !important;
  max-height: 20px !important;
}

/* ============================================
   14. FOOTER STYLES
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: var(--text-white);
}

/* Footer CTA Top Section */
.footer__top {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: var(--space-10) 0;
}

.footer__cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.footer__cta-title {
  font-size: var(--text-2xl);
  color: var(--text-white);
  margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
  .footer__cta-title {
    font-size: var(--text-3xl);
  }
}

.footer__cta-text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
}

.footer__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--touch-target-min);
  padding: var(--space-3) var(--space-6);
  background: var(--text-white);
  color: var(--accent-dark);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.footer__cta-btn:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* KRITISCH: Footer CTA Icon */
.footer__cta-btn svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 20px !important;
  max-height: 20px !important;
}

/* Trust Bar */
.footer__trust-bar {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--space-5) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__trust-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .footer__trust-items {
    gap: var(--space-8);
  }
}

.footer__trust-item {
  text-align: center;
}

.footer__trust-item strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-white);
}

.footer__trust-item span {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

.footer__trust-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  display: none;
}

@media (min-width: 768px) {
  .footer__trust-divider {
    display: block;
  }
}

/* Footer Main */
.footer__main {
  padding: var(--space-12) 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.5fr repeat(4, 1fr);
  }
}

/* Footer Brand */
.footer__brand {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .footer__brand {
    grid-column: auto;
  }
}

.footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer__brand p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  max-width: 280px;
  margin-bottom: var(--space-4);
}

/* Social Icons */
.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-white);
  transition: all var(--transition-fast);
}

.footer__social a:hover {
  background: var(--accent);
}

.footer__social svg {
  width: 18px !important;
  height: 18px !important;
}

/* Footer Columns */
.footer__column {
  
}

.footer__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
  padding: var(--space-1) 0;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__link-more {
  color: var(--accent) !important;
  font-weight: 500;
  margin-top: var(--space-2);
}

/* Footer Bottom */
.footer__bottom {
  padding: var(--space-6) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__copyright {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.footer__legal {
  display: flex;
  gap: var(--space-4);
}

.footer__legal a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

.footer__legal a:hover {
  color: var(--text-white);
}

/* ============================================
   15. UTILITY CLASSES
   ============================================ */

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text Colors */
.text-primary { color: var(--text); }
.text-light { color: var(--text-light); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-white { color: var(--text-white); }

/* Background Colors */
.bg-white { background-color: var(--bg-white); }
.bg-light { background-color: var(--bg-light); }
.bg-alt { background-color: var(--bg-alt); }
.bg-dark { background-color: var(--bg-dark); }

/* Spacing */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flex Utilities */
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Width */
.w-full { width: 100%; }
.max-w-lg { max-width: var(--container-lg); }
.max-w-md { max-width: var(--container-md); }

/* Visibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   16. RESPONSIVE BREAKPOINTS - HIDE/SHOW
   ============================================ */

/* Hide on Mobile */
@media (max-width: 639px) {
  .hide-mobile { display: none !important; }
}

/* Hide on Tablet */
@media (min-width: 640px) and (max-width: 1023px) {
  .hide-tablet { display: none !important; }
}

/* Hide on Desktop */
@media (min-width: 1024px) {
  .hide-desktop { display: none !important; }
}

/* Show only on Mobile */
@media (min-width: 640px) {
  .mobile-only { display: none !important; }
}

/* Show only on Desktop */
@media (max-width: 1023px) {
  .desktop-only { display: none !important; }
}

/* Section Header Component */
.section__header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.section__eyebrow {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--accent-glow);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section__title {
  margin-bottom: var(--space-4);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  background: var(--accent);
  color: var(--text-white);
  padding: var(--space-3) var(--space-6);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  z-index: 9999;
  transition: transform var(--transition-base);
}

.skip-link:focus {
  transform: translateX(-50%) translateY(0);
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .mobile-nav,
  .cta-section,
  .skip-link {
    display: none !important;
  }
  
  .main-content {
    padding-top: 0 !important;
  }
  
  body {
    background: white;
    color: black;
  }
}

