/* ============================================================
   Creative Mind Lab – Haupt-Stylesheet
   Design-Referenz: mathmind.creativemindlab.online
   Stand: Mai 2026
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS (CSS Custom Properties)
   ------------------------------------------------------------ */
:root {
  /* Hintergrund-System (Midnight Navy → MathMind-Referenz) */
  --bg-darkest:      #080E1A;   /* Äußerster Hintergrund */
  --bg-dark:         #0D1829;   /* Standard-Seitenhintergrund */
  --bg-mid:          #0F1E34;   /* Leicht hellere Sections */

  /* Karten-System (Glassmorphism – kräftiges Blau + Glas) */
  --card-bg:         linear-gradient(160deg, #2a4e9a 0%, #1e3d80 55%, #172e6e 100%);
  --card-bg-solid:   #1e3d80;
  --card-border:     rgba(255, 255, 255, 0.13);
  --card-border-top: rgba(255, 255, 255, 0.22);   /* obere Highlight-Kante */
  --card-border-hover: rgba(61, 217, 164, 0.45);
  --card-radius:     32px;
  --card-radius-sm:  24px;
  --card-shadow:     0 1px 0 rgba(255,255,255,0.18) inset,
                     0 32px 80px rgba(0,0,0,0.6),
                     0 0 0 1px rgba(61,217,164,0.04);

  /* Atmosphärische Glows (wie MathMind) */
  --glow-teal:       radial-gradient(ellipse at 85% 90%, rgba(11,61,56,0.65) 0%, transparent 42%);
  --glow-blue:       radial-gradient(ellipse at 20% 10%, rgba(26,47,90,0.5) 0%, transparent 45%);

  /* Brand Teal (Primär-Akzent) */
  --teal:            #3DD9A4;
  --teal-light:      #5EE2B5;
  --teal-dark:       #2AB88A;
  --teal-glow:       0 0 24px rgba(61, 217, 164, 0.30);
  --teal-bg:         rgba(61, 217, 164, 0.10);
  --teal-border:     rgba(61, 217, 164, 0.25);

  /* Button-System */
  --btn-bg:          linear-gradient(180deg, #3d6ab8 0%, #2d5099 100%);
  --btn-bg-hover:    linear-gradient(180deg, #4878cc 0%, #3560b0 100%);
  --btn-border:      rgba(255, 255, 255, 0.14);
  --btn-teal-bg:     #3DD9A4;
  --btn-teal-text:   #0D1829;
  --btn-radius:      9999px;   /* Pill-Form */

  /* Typografie-Farben */
  --text-primary:    #FFFFFF;
  --text-secondary:  #A8BAD0;   /* war #8898B0 – heller für Lesbarkeit auf blauen Karten */
  --text-muted:      #7888A0;   /* war #5A6A80 – heller für Lesbarkeit auf blauen Karten */

  /* Typografie-Scale */
  --font-display:    clamp(2.5rem, 5vw, 4rem);
  --font-h1:         clamp(2rem, 4vw, 3rem);
  --font-h2:         clamp(1.5rem, 3vw, 2rem);
  --font-h3:         clamp(1.125rem, 2vw, 1.5rem);
  --font-body-lg:    1.125rem;
  --font-body:       1rem;
  --font-small:      0.875rem;

  /* Spacing (8px Grid) */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:   12px;
  --sp-4:   16px;
  --sp-5:   24px;
  --sp-6:   32px;
  --sp-7:   48px;
  --sp-8:   64px;
  --sp-9:   96px;
  --sp-10:  128px;

  /* Layout */
  --max-width:       1100px;
  --header-height:   68px;
}

/* ------------------------------------------------------------
   2. SKIP-LINK (Barrierefreiheit – WCAG 2.4.1)
   ------------------------------------------------------------ */
.skip-link {
  position: fixed;
  top: -100%;
  left: var(--sp-5);
  z-index: 10000;
  padding: 12px 24px;
  background: var(--teal);
  color: var(--bg-darkest);
  font-size: 14px;
  font-weight: 700;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top 0.15s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--bg-darkest);
  outline-offset: -4px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Atmosphärischer Hintergrund (MathMind-Style) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--glow-teal), var(--glow-blue);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-light); }
ul { list-style: none; }

/* ------------------------------------------------------------
   FOKUS-STYLES (Barrierefreiheit – WCAG 2.4.7 / 2.4.11)
   :focus-visible = nur bei Tastatur, nicht bei Mausklick
   ------------------------------------------------------------ */

/* Globaler Fallback: kein sichtbarer Outline bei Mausklick */
:focus:not(:focus-visible) {
  outline: none;
}

/* Baseline für alle fokussierbaren Elemente (Links, Buttons, …) */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px; /* leichter Radius – Pill-Buttons überschreiben ihn */
}

/* Pill-Buttons: Outline folgt der Pill-Form */
.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: var(--btn-radius);
  box-shadow: 0 0 0 4px rgba(61, 217, 164, 0.18);
}

/* Hamburger-Button: etwas größerer Offset */
.hamburger:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 5px;
  border-radius: 4px;
}

/* Logo-Link im Header */
.header-logo:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Nav-Links – leicht abgerundet */
.site-nav a:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Cookie-Banner Buttons */
.cookie-btn:focus-visible,
.cookie-settings-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------
   3. TYPOGRAFIE
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: var(--font-h1); }
h2 { font-size: var(--font-h2); }
h3 { font-size: var(--font-h3); }

p { color: var(--text-secondary); line-height: 1.7; }

/* Brand-Name Styling: nur A und I in Teal, Rest leicht bläulich-weiß */
.brand-name {
  font-weight: 800;
  color: #e8eeff;          /* leicht blaustichiges Weiß – sichtbarer als reines Weiß */
  letter-spacing: -0.03em;
}
.brand-name .accent {
  color: var(--teal);
  text-shadow: 0 0 18px rgba(61,217,164,0.35);   /* subtiles Teal-Leuchten */
}

/* Display-Headline (Hero) */
.display {
  font-size: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Teal-Akzent in Headlines */
.text-teal { color: var(--teal); }

/* Section-Label (Overline) */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  position: relative;
  z-index: 1;
}

section {
  position: relative;
  z-index: 1;
  padding: 72px 0;
}

/* ------------------------------------------------------------
   5. HEADER / NAVIGATION
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(8, 14, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
}

.header-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.header-logo .brand-name {
  font-size: 17px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-7);
}

.site-nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--text-primary); }

.nav-cta {
  background: var(--btn-teal-bg);
  color: var(--btn-teal-text) !important;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: var(--btn-radius);
  transition: background 0.15s ease, transform 0.1s ease;
}

.nav-cta:hover {
  background: var(--teal-light) !important;
  transform: translateY(-1px);
}

/* Hamburger (Mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* ------------------------------------------------------------
   6. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 36px;
  border-radius: var(--btn-radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

/* Primär: Blauer Pill-Button (wie MathMind) */
.btn-primary {
  background: var(--btn-bg);
  color: var(--text-primary);
  border: 1px solid var(--btn-border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 8px 24px rgba(0,0,0,0.35);
}
.btn-primary:hover {
  background: var(--btn-bg-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Teal CTA Button */
.btn-teal {
  background: var(--btn-teal-bg);
  color: var(--btn-teal-text);
}
.btn-teal:hover {
  background: var(--teal-light);
  color: var(--btn-teal-text);
  transform: translateY(-1px);
}

/* Ghost / Outline */
.btn-ghost {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal-border);
}
.btn-ghost:hover {
  background: var(--teal-bg);
  color: var(--teal);
}

/* ------------------------------------------------------------
   7. CARDS (Glassmorphism – MathMind-Style)
   ------------------------------------------------------------ */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  /* Glassmorphism: obere Kante heller (Licht-Effekt) */
  border-top-color: var(--card-border-top);
  border-radius: var(--card-radius-sm);
  padding: var(--sp-7) var(--sp-6);
  box-shadow: var(--card-shadow);
  /* Glas-Blur-Effekt */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Subtiler Glanz-Schimmer oben links (Glassmorphism-Highlight) */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.25) 30%,
    rgba(255,255,255,0.08) 70%,
    transparent 100%
  );
  pointer-events: none;
}

.card:hover {
  border-color: var(--card-border-hover);
  border-top-color: rgba(61,217,164,0.5);
  transform: translateY(-4px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset,
              0 40px 90px rgba(0,0,0,0.65),
              0 0 30px rgba(61,217,164,0.08);
}

/* Große Karte (MathMind-Splash-Style) */
.card-lg {
  border-radius: var(--card-radius);
  padding: var(--sp-8) var(--sp-9);
  text-align: center;
}

/* ------------------------------------------------------------
   8. HERO SECTION
   ------------------------------------------------------------ */
.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: var(--sp-8) 0;
}

.hero-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--teal-bg);
  border: 1px solid var(--teal-border);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--btn-radius);
  margin-bottom: var(--sp-6);
}

.hero h1 {
  font-size: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
}

.hero-subtitle {
  font-size: var(--font-body-lg);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto var(--sp-7);
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   9. DREI TÜREN (Feature Cards)
   ------------------------------------------------------------ */
.doors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.door-card {
  position: relative;
}

.door-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--teal-bg);
  border: 1px solid var(--teal-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  font-size: 22px;
  color: var(--teal);
}

.door-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--sp-2);
  color: var(--text-primary);
}

.door-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}

.door-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
}

.door-link:hover { color: var(--teal-light); }

/* ------------------------------------------------------------
   10. NEWSLETTER CTA
   ------------------------------------------------------------ */
.newsletter-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--sp-8);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  gap: var(--sp-3);
  max-width: 420px;
  margin: var(--sp-5) auto 0;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--btn-radius);
  padding: 13px 20px;
  color: var(--text-primary);
  font-size: 14px;
  /* outline: none entfernt – globales :focus-visible greift */
}

.newsletter-form input::placeholder { color: var(--text-secondary); }
/* :focus für alle Nutzer (Maus & Tastatur): Border zeigt aktives Feld */
.newsletter-form input:focus {
  border-color: var(--teal);
  outline: none; /* Outline nur per :focus-visible weiter unten */
}
/* :focus-visible: deutlicher Outline für Tastaturnutzer */
.newsletter-form input:focus-visible {
  border-color: var(--teal);
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: var(--btn-radius);
}

/* ------------------------------------------------------------
   11. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: var(--sp-6) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--sp-5);
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--text-secondary); }

/* ------------------------------------------------------------
   12. UTILITIES
   ------------------------------------------------------------ */
.text-center { text-align: center; }
.mt-sm { margin-top: var(--sp-4); }
.mt-md { margin-top: var(--sp-6); }
.mt-lg { margin-top: var(--sp-7); }
.mb-sm { margin-bottom: var(--sp-4); }
.mb-md { margin-bottom: var(--sp-6); }

/* ------------------------------------------------------------
   13. RESPONSIVE (Mobile First)
   ------------------------------------------------------------ */

/* ---- Tablet & Mobile (≤ 768px) ---- */
@media (max-width: 768px) {

  /* Spacing-Tokens auf Mobile reduzieren –
     wirkt automatisch auf alle Inline-Styles mit var(--sp-*) */
  :root {
    --sp-7:  40px;   /* war 48px */
    --sp-8:  56px;   /* war 64px */
    --sp-9:  56px;   /* war 96px */
    --sp-10: 72px;   /* war 128px */
  }

  /* Navigation */
  .site-nav { display: none; }
  .hamburger { display: flex; }

  /* Abstände: Sections von 96px auf 56px */
  section { padding: var(--sp-7) 0; }

  /* Page-Hero: deutlich kompakter */
  .page-hero {
    padding: 72px 0 var(--sp-7);
  }
  .page-hero h1 {
    font-size: clamp(1.9rem, 7vw, 2.8rem);
  }
  .page-hero .lead {
    font-size: 1rem;
    margin-bottom: var(--sp-6);
  }

  /* Hero Startseite */
  .hero {
    min-height: auto;
    padding: var(--sp-8) 0 var(--sp-7);
  }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas .btn { text-align: center; }

  /* Hero-Badge auf kleinen Screens umbrechen lassen */
  .hero-badge { white-space: normal; text-align: center; }

  /* Cards: weniger innen-Padding */
  .card { padding: var(--sp-6) var(--sp-5); }
  .card-lg { padding: var(--sp-6) var(--sp-5); }

  /* Newsletter-Sektion */
  .newsletter-section {
    padding: var(--sp-7) var(--sp-5);
    border-radius: var(--card-radius-sm);
  }
  .newsletter-form { max-width: 100%; }

  /* Drei Türen / Doors-Grid */
  .doors-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }

  /* Grids */
  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--sp-3);
  }
  .footer-links { justify-content: center; }

  /* Musik: Infokarten-Divider ausblenden */
  .vis-divider { display: none !important; }

  /* Musik: Infokarten auf Mobile zentrieren */
  .music-info-row {
    flex-direction: column;
    gap: var(--sp-6);
  }

  /* Platform-Buttons: auf Mobile können sie breiter sein */
  .music-platforms { gap: var(--sp-2); }

  /* Kontakt-Grid: Abstand anpassen */
  .grid-2[style*="gap: 40px"] { gap: var(--sp-5) !important; }
}

/* ---- Kleines Mobile (≤ 480px) ---- */
@media (max-width: 480px) {

  /* Noch kompaktere Abstände */
  :root {
    --sp-6:  28px;   /* war 32px */
    --sp-7:  32px;   /* war 48px */
    --sp-8:  44px;   /* war 64px */
    --sp-9:  44px;   /* war 96px */
    --sp-10: 56px;   /* war 128px */
  }

  /* Container: etwas weniger Rand */
  .container { padding: 0 var(--sp-4); }

  /* Section: noch kompakter */
  section { padding: var(--sp-6) 0; }
  .page-hero { padding: 56px 0 var(--sp-6); }

  /* Typografie */
  .hero h1 { font-size: clamp(1.8rem, 9vw, 2.4rem); }
  .page-hero h1 { font-size: clamp(1.75rem, 8vw, 2.4rem); }

  /* Buttons */
  .btn { padding: 13px 28px; font-size: 14px; }

  /* Cards noch kompakter */
  .card { padding: var(--sp-5) var(--sp-4); }

  /* Newsletter-Section */
  .newsletter-section { padding: var(--sp-5) var(--sp-4); }

  /* Breadcrumb-Abstand */
  .breadcrumb { margin-bottom: var(--sp-5); }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------
   14. SCROLL-ANIMATIONEN (Fade-in)
   ------------------------------------------------------------ */
[data-fade] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-fade].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay für mehrere Kinder */
[data-fade]:nth-child(2) { transition-delay: 0.1s; }
[data-fade]:nth-child(3) { transition-delay: 0.2s; }

/* ------------------------------------------------------------
   15. HEADER SCROLL STATE
   ------------------------------------------------------------ */
.site-header.is-scrolled {
  background: rgba(8, 14, 26, 0.95);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 4px 24px rgba(0,0,0,0.4);
}

/* ------------------------------------------------------------
   16. MOBILE NAV OPEN STATE
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .site-nav.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(8, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: var(--sp-5) var(--sp-5) var(--sp-6);
    gap: var(--sp-4);
    z-index: 99;
  }

  .site-nav.nav-open a {
    font-size: 16px;
    padding: var(--sp-2) 0;
  }

  .site-nav.nav-open .nav-cta {
    align-self: flex-start;
    margin-top: var(--sp-2);
  }

  /* Hamburger → X */
  .hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ------------------------------------------------------------
   17. INNER PAGE HERO (Unterseiten)
   ------------------------------------------------------------ */
.page-hero {
  padding: 88px 0 44px;
  text-align: center;
}

.page-hero .hero-badge {
  margin-bottom: var(--sp-5);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
  line-height: 1.15;
}

.page-hero .lead {
  font-size: var(--font-body-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

/* ------------------------------------------------------------
   18. BREADCRUMB
   ------------------------------------------------------------ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb-sep { opacity: 0.4; }

/* ------------------------------------------------------------
   19. FEATURE LIST (Checkmarks)
   ------------------------------------------------------------ */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  list-style: none;
  text-align: left;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}

.feature-list li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ------------------------------------------------------------
   20. TAG PILLS
   ------------------------------------------------------------ */
.tag-pill {
  display: inline-flex;
  align-items: center;
  background: var(--teal-bg);
  border: 1px solid var(--teal-border);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 9999px;
}

/* ------------------------------------------------------------
   21. GRID UTILITIES
   ------------------------------------------------------------ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

/* grid-2 / grid-3 → 1-Spalte auf Mobile: bereits in Block 13 enthalten */

/* ---- Über-Franz Karte: Foto zentrieren wenn gestapelt ---- */
@media (max-width: 520px) {
  .about-inner-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-inner-flex > div:last-child {
    min-width: 0;
    width: 100%;
  }
  /* Tag-Pills auf Mobile zentrieren */
  .about-inner-flex [style*="display: flex; gap: 8px"] {
    justify-content: center;
  }
}

/* ------------------------------------------------------------
   22. CONTACT FORM
   ------------------------------------------------------------ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 13px 18px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  /* outline: none entfernt – :focus-visible übernimmt */
  transition: border-color 0.15s ease, outline-color 0.15s ease;
  resize: vertical;
}

/* :focus für alle Nutzer: zeigt aktives Feld */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  background: rgba(61,217,164,0.04);
  outline: none;
}

/* :focus-visible: zusätzlicher Outline-Ring für Tastaturnutzer */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  border-color: var(--teal);
  background: rgba(61,217,164,0.04);
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 14px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select option {
  background: var(--bg-dark);
  color: var(--text-primary);
}

/* Barrierefreiheit: sichtbare Fehlermeldung pro Feld */
.field-error-msg {
  display: block;
  font-size: 12.5px;
  color: #e07878;
  margin-top: 5px;
  line-height: 1.5;
}
/* Leer = keine Höhe, kein Padding */
.field-error-msg:empty {
  display: none;
}

/* Screen-Reader-only: visuell versteckt, aber für AT lesbar */
.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;
}

/* Fehlerzustand auf dem Feld selbst */
.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: rgba(220, 80, 80, 0.6);
  background: rgba(220, 80, 80, 0.04);
}
/* Checkbox-Fehlerzustand */
input[type="checkbox"][aria-invalid="true"] {
  outline: 2px solid rgba(220, 80, 80, 0.7);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ------------------------------------------------------------
   23. PROSE / LEGAL TEXT
   ------------------------------------------------------------ */
.prose h2 {
  font-size: 1.3rem;
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.prose h3 {
  font-size: 1.05rem;
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
  color: var(--text-secondary);
}

.prose p {
  font-size: 15px;
  margin-bottom: var(--sp-4);
  line-height: 1.75;
}

.prose a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul {
  list-style: disc;
  padding-left: var(--sp-6);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: var(--sp-4);
}

.prose ul li { margin-bottom: var(--sp-2); }

/* ============================================================
   MUSIK-SECTION & PLATTFORM-BUTTONS
   ============================================================ */

.music-card {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.music-visual {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border: 1px solid rgba(61,217,164,0.25);
  box-shadow: 0 0 32px rgba(61,217,164,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}
.music-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(61,217,164,0.15), transparent 65%);
}
.music-info { flex: 1; min-width: 200px; }
.music-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}
.music-album {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}
.music-artist {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.music-platforms {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.platform-btn:hover { opacity: 0.8; transform: translateY(-1px); }
.platform-btn svg { flex-shrink: 0; display: block; }
.platform-btn-soundcloud {
  background: rgba(255,85,0,0.12);
  border-color: rgba(255,85,0,0.35);
  color: #ff7733;
}
.platform-btn-spotify {
  background: rgba(29,185,84,0.12);
  border-color: rgba(29,185,84,0.35);
  color: #1DB954;
}
.platform-btn-apple {
  background: rgba(252,60,68,0.12);
  border-color: rgba(252,60,68,0.35);
  color: #fc6e73;
}

/* ============================================================
   SOCIAL MEDIA FOOTER
   ============================================================ */

.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
}
.social-icon-link:hover {
  background: var(--teal-bg);
  border-color: var(--teal-border);
  color: var(--teal);
  transform: translateY(-2px);
}

/* ============================================================
   COOKIE BANNER & MODAL
   ============================================================ */

/* Banner (untere Leiste) */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9000;
  padding: 20px 24px;
  background: rgba(9, 16, 34, 0.97);
  border-top: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.is-visible {
  transform: translateY(0);
}
.cookie-banner-text {
  flex: 1;
  min-width: 240px;
}
.cookie-banner-text p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}
.cookie-banner-text a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 9px 20px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.cookie-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.cookie-btn-accept {
  background: var(--teal);
  color: #0D1829;
}
.cookie-btn-necessary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.18);
}
.cookie-btn-settings {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal-border);
  padding: 8px 16px;
}

/* Modal-Overlay */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cookie-modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Modal-Karte */
.cookie-modal {
  background: linear-gradient(160deg, #1a3168 0%, #122657 100%);
  border: 1px solid rgba(255,255,255,0.13);
  border-top-color: rgba(255,255,255,0.22);
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-modal-overlay.is-open .cookie-modal {
  transform: translateY(0);
}
.cookie-modal h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.cookie-modal-intro {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
}
.cookie-modal-intro a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Kategorie-Reihen */
.cookie-category {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.cookie-category-info { flex: 1; }
.cookie-category-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-category-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(61,217,164,0.12);
  border: 1px solid rgba(61,217,164,0.25);
  color: var(--teal);
}
.cookie-category p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Toggle-Switch */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.cookie-toggle input:checked + .cookie-toggle-track {
  background: var(--teal);
  border-color: var(--teal);
}
.cookie-toggle input:disabled + .cookie-toggle-track {
  opacity: 0.5;
  cursor: not-allowed;
}
.cookie-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-toggle input:checked + .cookie-toggle-track::after {
  transform: translateX(20px);
}

/* Modal-Buttons */
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.cookie-modal-actions .cookie-btn {
  flex: 1;
  min-width: 140px;
  text-align: center;
}

/* Footer-Link */
.cookie-settings-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.cookie-settings-link:hover { color: var(--teal); }

/* ============================================================
   MOBILE-SPEZIFISCHE ERGÄNZUNGEN (Cookie + Sonstiges)
   ============================================================ */

@media (max-width: 600px) {
  /* Cookie-Banner auf Mobile: gestapelt */
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 18px 24px;
  }
  .cookie-banner-text { min-width: 0; }
  .cookie-banner-actions {
    flex-direction: column;
    gap: 8px;
  }
  .cookie-banner-actions .cookie-btn {
    width: 100%;
    text-align: center;
  }

  /* Cookie-Modal auf kleinen Screens */
  .cookie-modal {
    margin: 16px;
    padding: 24px 18px;
  }

  /* Social Icons: mehr Abstand */
  .footer-social { gap: 18px; }
}

@media (max-width: 480px) {
  /* Kontakt-Formular: Schicken-Button volle Breite */
  #contact-form button[type="submit"] {
    align-self: stretch;
    width: 100%;
  }

  /* Newsletter-Button volle Breite */
  .newsletter-form button[type="submit"] {
    width: 100%;
  }

  /* Page-Hero Breadcrumb: zentriert */
  .breadcrumb { font-size: 11px; }
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: rgba(255,255,255,0.012);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.trust-strip-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-strip-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.trust-strip-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.trust-strip-items span {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9999px;
}

/* ============================================================
   WARUM FRANZ – DIFFERENTIATOR CARDS
   ============================================================ */
.differentiator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .differentiator-grid { grid-template-columns: 1fr; }
}
.diff-card {
  padding: 28px 24px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(42,78,154,0.55), rgba(30,61,128,0.45), rgba(23,46,110,0.40));
  border: 1px solid rgba(255,255,255,0.08);
  border-top-color: rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
}
.diff-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-bg);
  border: 1px solid var(--teal-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}
.diff-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.diff-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}
