/* ═══════════════════════════════════════════════════════════════
   WTS Portal — Patch v33
   
   Fixes:
   1. Startseite .hero: Im Dark-Mode war Text unlesbar, weil
      `.hero h1 { color: var(--surface) }` — --surface ist im
      Dark-Mode DUNKELGRAU. Fix: .hero ist IMMER dunkel mit
      weißen Texten, unabhängig vom Theme.
      
   2. Branchen-Hero .brl-hero h1 em: v32 Purple-Substitution
      war naiv (linear-gradient(--ink, --ink-muted)) — im
      Light-Mode ist das schwarz-auf-schwarz. Fix: weißer
      Highlight-Gradient, weil der Branchen-Hero immer
      dunkel ist.
      
   3. Branchen .brl-hero-btn--primary: Selbes Problem —
      Button war schwarz-auf-schwarz. Fix: weißer Button
      mit dunkler Schrift (Editorial-Style).
   ═══════════════════════════════════════════════════════════════ */


/* ─── 1. Startseite Hero — IMMER dunkel, IMMER weißer Text ─── */

.hero,
[data-theme="dark"] .hero {
  background: #0B0B0C !important;
  color: #ffffff !important;
}
.hero::after,
[data-theme="dark"] .hero::after {
  background: linear-gradient(180deg, transparent, rgba(11,11,12,.6)) !important;
}
.hero h1,
[data-theme="dark"] .hero h1 {
  color: #ffffff !important;
}
.hero h1 em,
[data-theme="dark"] .hero h1 em {
  background: linear-gradient(90deg, #ffffff, #c4c4ca);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  font-style: normal;
}
.hero > p,
.hero-sub,
[data-theme="dark"] .hero > p,
[data-theme="dark"] .hero-sub,
[data-theme="dark"] .hero p:not(.hero-badge) {
  color: rgba(255, 255, 255, 0.72) !important;
}
.hero-badge,
[data-theme="dark"] .hero-badge {
  color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
.hero-badge span,
[data-theme="dark"] .hero-badge span {
  color: rgba(255, 255, 255, 0.9) !important;
}
.hero-stats .hstat,
.hero-stats .hstat-num,
[data-theme="dark"] .hero-stats .hstat,
[data-theme="dark"] .hero-stats .hstat-num {
  color: #ffffff !important;
}
.hero-stats .hstat-label,
[data-theme="dark"] .hero-stats .hstat-label {
  color: rgba(255, 255, 255, 0.55) !important;
}

/* Hero CTA-Buttons: Primary = weißer Button, Ghost = transparent */
.hero .btn-primary,
[data-theme="dark"] .hero .btn-primary {
  background: #ffffff !important;
  color: #0B0B0C !important;
  border-color: #ffffff !important;
}
.hero .btn-primary:hover,
[data-theme="dark"] .hero .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #0B0B0C !important;
}
.hero .btn-outline-white,
[data-theme="dark"] .hero .btn-outline-white {
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  background: transparent !important;
}
.hero .btn-outline-white:hover,
[data-theme="dark"] .hero .btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}


/* ─── 2. Branchen-Hero .brl-hero (immer dunkel) — Text-Highlights ─── */

.brl-hero h1 em {
  background: linear-gradient(90deg, #ffffff, #c4c4ca) !important;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  font-style: normal;
}

/* Eyebrow: neutral hell auf dunkel */
.brl-eyebrow {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Primary-CTA im Branchen-Hero: weiß mit schwarzer Schrift */
.brl-hero-btn--primary {
  background: #ffffff !important;
  color: #0B0B0C !important;
  border: 1.5px solid #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.brl-hero-btn--primary:hover {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #0B0B0C !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}


/* ─── 3. Startseiten-Banner harmonisieren mit Branchen-Hero ───
   Die "Made in Germany" + "Bereit loszulegen" Sektionen sind
   im HTML mit alten Purple-Inline-Styles. Wir neutralisieren
   die Inline-Styles hier und lassen sie im Editorial-Look. */

/* Section-Tag "Made in Germany" (Legacy Purple-Inline) */
.section [style*="color:#b146f8"],
.section [style*="color: #b146f8"] {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Standort-Karten FRA-01/FRA-02/NBG-01: Purple-Text zu weißem */
.section [style*="-webkit-text-fill-color:transparent"],
.section [style*="-webkit-text-fill-color: transparent"] {
  background: transparent !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
}

/* Kartenkästen mit lila Border */
.section [style*="background:rgba(177,70,248"],
.section [style*="background: rgba(177,70,248"],
.section [style*="border:1px solid rgba(177,70,248"],
.section [style*="border: 1px solid rgba(177,70,248"] {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.section [style*="background:rgba(92,203,249"],
.section [style*="background: rgba(92,203,249"] {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* Button "Standorte ansehen" mit Purple-Gradient */
.section a.btn[style*="linear-gradient"][style*="#b146f8"],
.section a.btn[style*="linear-gradient"][style*="#5ccbf9"] {
  background: #ffffff !important;
  color: #0B0B0C !important;
  border: 1.5px solid #ffffff !important;
}
.section a.btn[style*="linear-gradient"][style*="#b146f8"]:hover {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #0B0B0C !important;
}


/* ─── 4. CTA-Section "Bereit loszulegen" — Editorial ─── */
.cta-section {
  background: #0B0B0C !important;
  padding: 5rem 1.5rem;
}
.cta-section h2 {
  color: #ffffff !important;
}
.cta-section p,
.cta-section .cta-sub {
  color: rgba(255, 255, 255, 0.7) !important;
}
.cta-section .btn-white,
.cta-section .btn-primary {
  background: #ffffff !important;
  color: #0B0B0C !important;
  border: 1.5px solid #ffffff !important;
}
.cta-section .btn-white:hover,
.cta-section .btn-primary:hover {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #0B0B0C !important;
}
.cta-section .btn-outline-white {
  background: transparent !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
}
.cta-section .btn-outline-white:hover {
  border-color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 3rem 1.5rem;
  }
}
