﻿/* ============================================
   934tel Media Networx – 2026 Redesign
   Custom Styles: Glassmorphism, Animations, Gradients
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Theme tokens — foreground/overlay ("ink") and page background as RGB triples
     so both plain CSS (rgb(var(--ink) / .x)) and Tailwind utilities
     (text-ink/40, bg-page) can consume them. These two flip in html.light. */
  --ink: 255 255 255;
  --page: 7 7 13;

  --bg-primary: #07070d;
  --bg-secondary: #0e0e18;
  --bg-tertiary: #141422;
  --bg-elevated: #1a1a2e;
  --surface: rgb(var(--ink) / 0.03);
  --surface-hover: rgb(var(--ink) / 0.06);
  --border: rgb(var(--ink) / 0.08);
  --border-hover: rgb(var(--ink) / 0.15);
  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.75);
  --text-tertiary: rgba(240, 240, 245, 0.52);
  /* Brand accent — flips by theme:
     dark  = CI secondary taupe (#969081)
     light = CI primary orange (#fb5d02)
     Kept as RGB triples so both plain CSS (rgb(var(--accent-rgb) / .x))
     and Tailwind utilities (text-accent, from-accent, to-violet …) consume them. */
  --accent-rgb: 150 144 129;        /* #969081 taupe */
  --accent-light-rgb: 178 172 158;
  --accent-2-rgb: 196 190 176;
  --accent-dark-rgb: 122 116 103;
  --on-accent: #1b1712;             /* text/icons sitting ON the accent fill */
  --accent-1: rgb(var(--accent-rgb));
  --accent-2: rgb(var(--accent-2-rgb));
  --accent-gradient: linear-gradient(135deg, rgb(var(--accent-rgb)), rgb(var(--accent-2-rgb)));
  --accent-glow: rgb(var(--accent-rgb) / 0.35);
  --gold: #f59e0b;
  --teal: #06b6d4;
  --teal-glow: rgba(6, 182, 212, 0.3);
  --glass-bg: rgb(var(--ink) / 0.04);
  --glass-border: rgb(var(--ink) / 0.08);
  --glass-blur: 24px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: clip;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: clip;
}

::selection {
  background: var(--accent-1);
  color: var(--on-accent);
}

/* ---------- Smooth Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgb(var(--ink) / 0.15);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgb(var(--ink) / 0.25);
}

/* ---------- Typography ---------- */
.logo-white {
  filter: brightness(0) invert(1);
}

/* Navbar-App-Icon (934-9.png = schwarzes Quadrat, weiße 9): im Dark invertieren
   → weißes Icon mit dunkler 9, damit es auf dunklem Grund sichtbar ist. */
html:not(.light) .nav-logo-icon { filter: invert(1); }

.heading-xl {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  overflow: visible;
}

.heading-lg {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.heading-md {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.heading-sm {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.text-body {
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-secondary);
}

.text-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero-Headline „Maßgeschneidert." im Dark etwas heller (heller Taupe → Off-White).
   Light bleibt beim Orange-Gradient. */
html:not(.light) .hero-copy .gradient-text {
  background: linear-gradient(135deg, rgb(var(--accent-light-rgb)), #ecebe4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-teal {
  background: linear-gradient(135deg, #06b6d4, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Glassmorphism Classes ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.glass-strong {
  background: rgb(var(--ink) / 0.06);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgb(var(--ink) / 0.1);
  border-radius: var(--radius-md);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--accent-glow);
}

/* ---------- Contact Portraits ---------- */
.contact-portrait {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  height: 100%;
  top: 0;
  transform: none;
  pointer-events: none;
}

.contact-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 25%, rgba(0,0,0,0.7) 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 25%, rgba(0,0,0,0.7) 100%);
  filter: none; /* Farboverlay/Entsättigung entfernt – Fotos in echten Farben */
  transition: all 0.5s ease;
}

.contact-portrait--accent img {
  filter: none;
}

.contact-portrait--teal img {
  filter: none;
}

.glass-card:hover .contact-portrait img {
  filter: none;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 20%, rgba(0,0,0,0.85) 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 20%, rgba(0,0,0,0.85) 100%);
}

/* NUR Light-Theme: der dunkle Foto-Hintergrund würde als Block auf der hellen
   Karte abstechen. Statt nur links zu faden -> weiche radiale Vignette, die das
   Portrait an allen Rändern in die Karte auslaufen lässt (farb-unabhängig). */
html.light .contact-portrait img,
html.light .glass-card:hover .contact-portrait img {
  -webkit-mask-image: radial-gradient(115% 92% at 66% 38%, #000 32%, rgba(0,0,0,0.5) 60%, transparent 84%);
  mask-image: radial-gradient(115% 92% at 66% 38%, #000 32%, rgba(0,0,0,0.5) 60%, transparent 84%);
}

/* ---------- Navbar ---------- */
/* Feste Breite der Desktop-Nav (= breitere DE-Labels), Inhalt linksbündig.
   Sonst schrumpft die mittig platzierte Gruppe im EN und "Produkte/Products"
   springt seitlich. So beginnt der erste Punkt in beiden Sprachen an derselben Stelle. */
.nav-desktop {
  min-width: 28.75rem;
  justify-content: flex-start;
}
/* Rechter Cluster (Toggles + CTA) ebenfalls fixe Breite, rechtsbündig:
   sonst ändert "Projekt starten" vs "Start Project" die Breite und schiebt
   die mittige Nav-Gruppe seitlich. */
.nav-actions {
  min-width: 20.5rem;
  justify-content: flex-end;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  /* Only fade the background — never transition layout/transform (prevents the
     mobile "jump"). Promote to its own GPU layer for stable fixed positioning. */
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: background-color;
}

.navbar.scrolled {
  /* No shrinking / no movement on scroll — only the translucent
     background fades in. (Padding stays at the base 1rem, no border line.) */
  background: rgb(var(--page) / 0.72);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Footer-Links: gleicher animierter Gradient-Unterstrich wie die Menü-Links */
.footer-link {
  position: relative;
  display: inline-block;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.footer-link:hover::after,
.footer-link.active::after {
  width: 100%;
}

/* ---------- Hero Section ---------- */
.hero {
  /* sticky: the hero stays pinned while the content sheet scrolls up over it */
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* clip (not hidden): clips the orbs WITHOUT becoming a scroll container,
     so the mouse wheel never gets trapped by the hero. */
  overflow: clip;
}

/* Kleine Handys (z. B. iPhone SE, 375×667): mehr Luft ÜBER dem Logo. Der Hero
   wird oben statt vertikal zentriert ausgerichtet; die unteren CTAs
   ("Unsere Produkte" / "Kontakt aufnehmen") dürfen dafür unter den Fold rutschen. */
@media (max-width: 640px) {
  .hero { align-items: flex-start; }
  /* Gedeckelt statt reinem vh: auf hohen Displays sonst zu viel Luft über dem
     Logo und zu wenig darunter. So sitzt das Logo angenehm hoch, mit Balance. */
  .hero-inner { padding-top: clamp(2rem, 7vh, 3.75rem); }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.hero-gradient-orb.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-1);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.hero-gradient-orb.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-2);
  bottom: -250px;
  left: -150px;
  animation-delay: -7s;
}

.hero-gradient-orb.orb-3 {
  width: 350px;
  height: 350px;
  background: var(--teal);
  top: 40%;
  left: 50%;
  opacity: 0.2;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.02); }
}

/* Hero grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(var(--ink) / 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--ink) / 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-line {
  /* overflow: hidden; removed to prevent descenders from being clipped */
  padding-bottom: 0.25em;
  overflow: visible;
}

.hero-line span {
  display: inline-block;
  /* extra bottom room so background-clip:text doesn't cut descenders (e.g. the "g") */
  padding-bottom: 0.18em;
  transform: translateY(120%);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgb(var(--ink) / 0.3);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 8px;
  background: rgb(var(--ink) / 0.5);
  border-radius: 3px;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* Dark: Scroll-Hinweis heller — im Dark (weiße Tinte) sonst zu blass.
   Light bleibt bei den dezenteren Basiswerten. */
html:not(.light) .scroll-indicator { opacity: 0.75; }
html:not(.light) .scroll-indicator .mouse { border-color: rgb(var(--ink) / 0.6); }
html:not(.light) .scroll-indicator .mouse::after { background: rgb(var(--ink) / 0.8); }
html:not(.light) .scroll-indicator span { color: rgb(var(--ink) / 0.6); }

/* ---------- Section Styles ---------- */
.section {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
/* Im Dark ist var(--border) (weiß @ 8%) zu schwach -> Trenner deutlich heller. */
html:not(.light) .section-divider {
  background: linear-gradient(90deg, transparent, rgb(var(--ink) / 0.32), transparent);
}

/* Light: „9"-Logo im Header weiß statt schwarz (PNG ist schwarze Glyphe auf
   transparent -> brightness(0) invert(1) macht sie rein weiß). */
html.light .navbar a[href="#top"] img { filter: brightness(0) invert(1); }

/* ---------- Animated counters ---------- */
.counter-value {
  font-variant-numeric: tabular-nums;
}

/* ---------- Service Cards ---------- */
.service-card {
  position: relative;
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(var(--accent-rgb) / 0.1);
  border: 1px solid rgb(var(--accent-rgb) / 0.2);
  margin-bottom: 1.25rem;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  background: rgb(var(--accent-rgb) / 0.2);
  border-color: rgb(var(--accent-rgb) / 0.4);
  box-shadow: 0 0 30px rgb(var(--accent-rgb) / 0.2);
}

/* ---------- Product Cards (B+plus / Quickfin) ---------- */
.product-card {
  position: relative;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: inherit;
  z-index: -1;
}

.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--glass-border);
  z-index: 0;
  pointer-events: none;
  transition: border-color 0.4s ease;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.01);
}

.product-card:hover::after {
  border-color: var(--border-hover);
}

.product-card.plusion {
  --card-accent: var(--teal);
  --card-glow: var(--teal-glow);
}

.product-card.insight {
  --card-accent: var(--accent-1);
  --card-glow: var(--accent-glow);
}

.product-card:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 60px var(--card-glow);
}

/* Dark: Hover-Aura nach außen deutlich verstärken (im Light bereits gut sichtbar).
   Zwei gestaffelte Glows → sichtbare farbige Aura auf dem dunklen Grund. */
html:not(.light) .product-card:hover {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55),
              0 0 0 1px var(--card-accent),
              0 0 35px var(--card-accent),
              0 0 70px var(--card-accent),
              0 0 130px var(--card-glow);
}

/* Dark: gleicher kräftiger Hover-Glow für die übrigen Boxen (Service-Karten,
   Glass-/Kontakt-Karten) — im Marken-Akzent (heller Taupe) + Ring. */
html:not(.light) .service-card:hover,
html:not(.light) .glass-card:hover {
  border-color: rgb(var(--accent-light-rgb) / 0.7);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgb(var(--accent-light-rgb) / 0.65),
              0 0 38px rgb(var(--accent-light-rgb) / 0.7),
              0 0 80px rgb(var(--accent-light-rgb) / 0.5),
              0 0 130px rgb(var(--accent-rgb) / 0.45);
}

/* ===== TEST (nur Dark): Hover invertiert — Kachel füllt sich mit Akzentfarbe,
   Inhalt wird weiß. Bei Nichtgefallen einfach diesen Block löschen. ===== */
html:not(.light) .product-card:hover::before {
  background: var(--card-accent);
  opacity: 1;
}
html:not(.light) .product-card:hover .relative,
html:not(.light) .product-card:hover .relative * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-badge.teal {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.product-badge.violet {
  background: rgb(var(--accent-rgb) / 0.12);
  color: rgb(var(--accent-light-rgb));
  border: 1px solid rgb(var(--accent-rgb) / 0.2);
}

/* ============================================
   REFERENCES SHOWCASE – Sticky Nav + 3D Screens
   ============================================ */

/* ---------- Section ---------- */
.refs-section {
  position: relative;
  width: 100%;
}

.refs-wrapper {
  display: flex;
  max-width: 1600px;
  margin: 0 auto;
}

/* ---------- Left: Screenshot Panels Column ---------- */
.refs-panels-col {
  flex: 1;
  min-width: 0;
  padding: 0 2rem 0 2.5rem;
}

/* ---------- Right: Sticky Navigation Column ---------- */
.refs-nav-col {
  width: 380px;
  flex-shrink: 0;
  padding-right: 2.5rem;
}

.refs-nav-sticky {
  position: sticky;
  top: 100px;
  padding: 2rem 0 4rem;
}

.refs-nav-header {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgb(var(--ink) / 0.06);
  margin-bottom: 0.5rem;
}

.refs-nav-list {
  list-style: none;
  position: relative;
  padding-left: 12px;
}

/* Vertical connecting line — removed */
.refs-nav-list::before {
  display: none;
}

.refs-nav-item {
  position: relative;
}

.refs-nav-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.9rem 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: inherit;
  font-size: 0.95rem;
  text-align: left;
}

.refs-nav-btn:hover,
.refs-nav-item.active .refs-nav-btn {
  color: var(--text-primary);
}

/* Navigation dot indicator */
.ref-nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgb(var(--ink) / 0.15);
  background: var(--bg-primary);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.refs-nav-item.active .ref-nav-dot {
  border-color: var(--accent-1);
  background: var(--accent-1);
  box-shadow: 0 0 16px var(--accent-glow), 0 0 4px var(--accent-1);
  transform: scale(1.3);
}

.ref-nav-num {
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  opacity: 0.35;
  min-width: 1.5rem;
  transition: all 0.4s ease;
}

.refs-nav-item.active .ref-nav-num {
  opacity: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ref-nav-label {
  font-weight: 500;
  transition: all 0.4s ease;
}

/* Testimonial in sidebar */
.refs-testimonial {
  padding-top: 1.5rem;
  border-top: 1px solid rgb(var(--ink) / 0.06);
}

/* ---------- Reference Panel ---------- */
.ref-panel {
  padding: 4rem 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.ref-panel:first-child {
  padding-top: 6rem;
}

.ref-panel-inner {
  width: 100%;
}

/* ---------- 3D Screen Perspective Container ---------- */
.ref-screen-perspective {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.ref-screen-stage {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  max-width: 700px;
}

/* Ambilight glow behind the screen */
.ref-ambilight {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(-50px);
  width: 85%;
  height: 90%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}

/* Main glow – large diffused blob */
.ref-ambilight-inner {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: currentColor;
  filter: blur(80px);
  opacity: 0.35;
  animation: ambiPulse 4s ease-in-out infinite alternate;
}

/* Secondary glow – tighter, brighter core */
.ref-ambilight-core {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: currentColor;
  filter: blur(50px);
  opacity: 0.2;
  animation: ambiPulse 4s ease-in-out infinite alternate-reverse;
}

@keyframes ambiPulse {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.1); opacity: 0.45; }
}

.ref-panel.is-active .ref-ambilight {
  opacity: 1;
}

/* Hover-Glow: farbiger Halo um den Monitor-Rahmen + kräftigere Ambilight,
   analog zum Card-Glow oben. Farbe = Referenz-Farbe (--ref-glow-rgb, per JS gesetzt). */
.ref-ambilight-inner,
.ref-ambilight-core {
  transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}
.ref-screen-stage { cursor: pointer; }
.ref-screen-stage:hover .ref-ambilight,
.ref-screen-stage.is-hovering .ref-ambilight {
  opacity: 1;
}
.ref-screen-stage:hover .ref-ambilight-inner,
.ref-screen-stage.is-hovering .ref-ambilight-inner {
  animation: none;
  opacity: 0.65;
  transform: scale(1.2);
}
.ref-screen-stage:hover .ref-ambilight-core,
.ref-screen-stage.is-hovering .ref-ambilight-core {
  animation: none;
  opacity: 0.45;
  transform: scale(1.15);
}
.ref-screen-bezel { transition: box-shadow 0.45s ease; }
/* Specificity mit .ref-panel-Prefix erhöht, damit der Hover-Halo die
   .ref-panel.is-active .ref-screen-bezel-Regel (gleiche Specificity, später im CSS) schlägt. */
.ref-panel .ref-screen-stage:hover .ref-screen-bezel,
.ref-panel .ref-screen-stage.is-hovering .ref-screen-bezel {
  box-shadow:
    0 0 0 1px rgb(var(--ref-glow-rgb, 251 93 2) / 0.55),
    0 25px 80px rgba(0, 0, 0, 0.5),
    0 0 70px 6px rgb(var(--ref-glow-rgb, 251 93 2) / 0.6),
    0 0 30px 0 rgb(var(--ref-glow-rgb, 251 93 2) / 0.45),
    inset 0 1px 0 rgb(var(--ink) / 0.12);
}

/* ---------- Monitor Device Frame ---------- */
.ref-screen-device {
  position: relative;
  transform-style: preserve-3d;
  /* Initial transform set by JS for scroll-based perspective */
  will-change: transform;
}

.ref-screen-bezel {
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-secondary));
  border-radius: 16px;
  border: 1px solid rgb(var(--ink) / 0.08);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgb(var(--ink) / 0.04),
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 8px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgb(var(--ink) / 0.06);
  transform-style: preserve-3d;
  transition: box-shadow 1s ease;
}

/* Ambilight reflection on the bezel when active */
.ref-panel.is-active .ref-screen-bezel {
  box-shadow:
    0 0 0 1px rgb(var(--ink) / 0.06),
    0 25px 80px rgba(0, 0, 0, 0.5),
    0 8px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgb(var(--ink) / 0.08);
}

/* Browser top bar */
.ref-screen-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgb(var(--ink) / 0.03);
  border-bottom: 1px solid rgb(var(--ink) / 0.06);
}

.ref-screen-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ref-screen-dot.red { background: #ff5f56; }
.ref-screen-dot.yellow { background: #ffbd2e; }
.ref-screen-dot.green { background: #27c93f; }

.ref-screen-url {
  margin-left: 12px;
  font-size: 0.7rem;
  color: rgb(var(--ink) / 0.3);
  font-family: 'Inter', monospace;
  background: rgb(var(--ink) / 0.04);
  padding: 3px 12px;
  border-radius: 6px;
  flex: 1;
  max-width: 250px;
}

/* Screenshot content area */
.ref-screen-content {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: var(--bg-secondary);
}

.ref-screen-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

/* Manuelles Scrollen: Monitore mit langem Screenshot signalisieren „greifbar" */
.ref-screen-content.ref-has-scroll { cursor: grab; }
.ref-screen-content.ref-has-scroll.is-dragging { cursor: grabbing; }

/* ---- Multi-Screenshot Stack (statisch, keine Bewegung) ---- */
/* Bilder werden gestapelt; nur .is-current ist sichtbar. Bilder stehen still –
   der Wechsel läuft ausschließlich über den Streifen-Übergang. */
.ref-screen-content .ref-shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
}

.ref-screen-content .ref-shot.is-current {
  opacity: 1;
  z-index: 2;
}

/* Langer Screenshot, der vertikal durch den Monitor scrollt:
   volle Breite, natürliche (große) Höhe; JS verschiebt ihn per translateY. */
.ref-screen-content .ref-shot.ref-shot-scroll {
  inset: 0 0 auto 0;      /* top:0; right:0; bottom:auto; left:0 → Breite 100% */
  height: auto;
  object-fit: fill;       /* irrelevant bei height:auto, verhindert Cover-Crop */
  will-change: transform;
}

/* ---- Scroll-Fortschrittsbalken im Monitor ---- */
.ref-scrollbar {
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: 7px;
  width: 4px;
  border-radius: 4px;
  background: rgb(0 0 0 / 0.18);
  z-index: 5;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.ref-scrollbar.is-visible { opacity: 1; }
.ref-scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  border-radius: 4px;
  background: rgb(var(--accent-rgb));
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.4);
  will-change: transform;
}

/* ---- Play/Pause-Steuerung unter dem Monitor (rechts) ---- */
.ref-controls {
  position: absolute;
  top: calc(100% - 34px);   /* näher an den Monitorrand gezogen */
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: flex-end;
  opacity: 0;               /* kommt per Fly-in mit dem Monitor rein */
}
.ref-playpause {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.6rem;
  border-radius: 100px;
  border: 1px solid rgb(var(--ink) / 0.14);
  background: rgb(var(--ink) / 0.05);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.ref-playpause:hover {
  border-color: rgb(var(--accent-rgb) / 0.5);
  color: var(--text-primary);
  background: rgb(var(--ink) / 0.08);
}
.ref-pp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(var(--accent-rgb));
  flex-shrink: 0;
}
/* Läuft = Punkt pulsiert; Pausiert = Punkt gedimmt */
.ref-playpause:not(.is-paused) .ref-pp-dot { animation: refPpPulse 1.4s ease-in-out infinite; }
.ref-playpause.is-paused .ref-pp-dot { background: rgb(var(--ink) / 0.3); animation: none; }
@keyframes refPpPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.ref-pp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgb(var(--accent-light-rgb));
}
.ref-pp-icon .pp-play { display: none; }
.ref-pp-icon .pp-pause { display: block; }
.ref-playpause.is-paused .pp-play { display: block; }
.ref-playpause.is-paused .pp-pause { display: none; }
.ref-pp-label { line-height: 1; }

/* ---- Horizontaler Streifen-Übergang (feine Masken-Jalousie) ---- */
/* Das neue Bild liegt als Overlay über dem alten und wird über eine
   repeating-linear-gradient-Maske sichtbar: viele feine horizontale Slats,
   deren sichtbare Höhe (--slat) von 0 auf --period animiert wird. */
.ref-stripe-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  will-change: filter;
  -webkit-mask-image: repeating-linear-gradient(to bottom,
      #000 0, #000 var(--slat, 0px),
      transparent var(--slat, 0px), transparent var(--period, 8px));
          mask-image: repeating-linear-gradient(to bottom,
      #000 0, #000 var(--slat, 0px),
      transparent var(--slat, 0px), transparent var(--period, 8px));
}
.ref-stripe-overlay img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Hellgrauer „Vorhang"-Schleier während des Übergangs */
.ref-stripe-veil {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: rgb(228 230 235);
}

/* Einzelbild-Karten (ohne .ref-shot): ebenfalls statisch, keine Bewegung. */

/* Bild-Slide-Navigation: Buttons AUSSERHALB rechts neben dem Monitor */
.ref-shot-dots {
  position: absolute;
  left: calc(100% + 22px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 11px;
  opacity: 0; /* Sichtbarkeit steuert der Fly-in (GSAP), kommt mit dem Monitor */
}

.ref-shot-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgb(var(--ink) / 0.2);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.ref-shot-dot:hover {
  background: rgb(var(--ink) / 0.45);
  transform: scale(1.15);
}
.ref-shot-dot.active {
  background: var(--accent-1);
  box-shadow: 0 0 10px var(--accent-glow);
  transform: scale(1.35);
}

/* Mobile: Monitor ist voll breit → Dots als horizontale Reihe unter den Monitor */
@media (max-width: 1023px) {
  .ref-shot-dots {
    left: 50%;
    top: auto;
    bottom: -24px;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 9px;
  }
}

/* ---- Kundenlogo im Textblock (monochrom, Stil Trust-Leiste) ---- */
.ref-logo {
  height: 30px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  object-position: left center;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.75;
  filter: grayscale(1) brightness(0);
}
html:not(.light) .ref-logo {
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.7;
}

/* Ausnahme: WERK+-Panel zeigt zwei Logos nebeneinander ("werk+ by BUSHANDEL.ch AG") */
.ref-logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.ref-logo-lockup .ref-logo {
  margin-bottom: 0;
}
.ref-logo--by {
  height: 15px;
  max-width: 175px;
}
.ref-logo-by {
  font-size: 0.72rem;
  font-style: italic;
  opacity: 0.5;
  color: var(--text-secondary);
}

/* Monitor stand */
.ref-screen-stand {
  width: 60px;
  height: 40px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-secondary));
  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
  border-left: 1px solid rgb(var(--ink) / 0.04);
  border-right: 1px solid rgb(var(--ink) / 0.04);
}

.ref-screen-base {
  width: 120px;
  height: 8px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-tertiary));
  border-radius: 0 0 8px 8px;
  border: 1px solid rgb(var(--ink) / 0.05);
  border-top: none;
}

/* Monitor im Dark sichtbar machen: Rahmen/Standfuß heben sich sonst nicht vom
   dunklen Seitengrund (#07070d) ab. Hellerer Rand + Graphit-Standfuß. */
html:not(.light) .ref-screen-bezel {
  border-color: rgb(var(--ink) / 0.16);
  box-shadow:
    0 0 0 1px rgb(var(--ink) / 0.10),
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 8px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgb(var(--ink) / 0.14);
}
html:not(.light) .ref-panel.is-active .ref-screen-bezel {
  border-color: rgb(var(--ink) / 0.22);
}
html:not(.light) .ref-screen-stand {
  background: linear-gradient(180deg, #3a3a52, #23233a);
  border-left-color: rgb(var(--ink) / 0.16);
  border-right-color: rgb(var(--ink) / 0.16);
}
html:not(.light) .ref-screen-base {
  background: linear-gradient(180deg, #45455f, #2a2a40);
  border-color: rgb(var(--ink) / 0.18);
}

/* Light: Monitor ist sonst weiß auf weiß. Hellgrauer Silber-Look für Rahmen + Standfuß. */
html.light .ref-screen-bezel {
  background: linear-gradient(145deg, #ffffff, #e9ecf3);
  border-color: rgba(17, 20, 32, 0.14);
  box-shadow:
    0 0 0 1px rgba(17, 20, 32, 0.05),
    0 25px 70px rgba(17, 20, 32, 0.18),
    0 8px 24px rgba(17, 20, 32, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
html.light .ref-screen-stand {
  background: linear-gradient(180deg, #dfe3ec, #c8cedb);
  border-left-color: rgba(17, 20, 32, 0.12);
  border-right-color: rgba(17, 20, 32, 0.12);
}
html.light .ref-screen-base {
  background: linear-gradient(180deg, #d2d7e3, #bcc3d2);
  border-color: rgba(17, 20, 32, 0.14);
}

/* ---------- Panel text ---------- */
.ref-panel-text {
  max-width: 600px;
}

.ref-panel-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--accent-1);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.ref-panel-link:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

/* Referenz-Fußzeile: Domain noch nicht live → kein Link, dezenter Hinweis */
.ref-panel-soon {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.ref-soon-url {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.ref-soon-badge {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  color: var(--accent-1);
  background: rgb(var(--accent-rgb) / 0.12);
  border: 1px solid rgb(var(--accent-rgb) / 0.3);
}

/* ---------- Mobile: Stack layout ---------- */
@media (max-width: 1023px) {
  .refs-wrapper {
    flex-direction: column;
  }

  .refs-panels-col {
    padding: 0 1.5rem;
  }

  .ref-panel {
    min-height: auto;
    padding: 3rem 0;
  }

  .ref-screen-device {
    transform: rotateY(0deg) rotateX(0deg) !important;
  }

  .ref-screen-perspective {
    padding: 1rem 0;
  }
}

/* ---------- Partner / Network ---------- */
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.4s ease;
  opacity: 0.6;
}

.partner-logo:hover {
  opacity: 1;
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

/* ---------- CTA Button ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--accent-gradient);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(var(--accent-light-rgb)), rgb(var(--accent-2-rgb)));
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px var(--accent-glow);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-primary svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

/* ---------- Runder Vertrags-Download-Button (z. B. Kundenliste) ---------- */
.contract-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgb(var(--ink) / 0.08);
  color: rgb(var(--ink) / 0.75);
  text-decoration: none;
  flex: 0 0 auto;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.contract-dl-btn:hover { background: rgb(var(--ink) / 0.15); color: rgb(var(--ink)); transform: translateY(-1px); }
.contract-dl-btn svg { display: block; }

/* Änderungswünsche des Kunden (vertraege.html, Status „Änderung angefordert") als CHAT:
   Kunde links, Bearbeiter rechts; Ablehnungen rot markiert. */
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 340px;
  overflow-y: auto;
  /* rechts mehr Platz → Abstand zwischen Scrollbar und Nachrichten-Bubbles. */
  padding: 0.2rem 0.6rem 0.4rem 0.1rem;
  margin-bottom: 0.7rem;
}
.chat-row { display: flex; }
.chat-row.left { justify-content: flex-start; }
.chat-row.right { justify-content: flex-end; }
.chat-bubble {
  max-width: 78%;
  border-radius: 14px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
}
.chat-row.left .chat-bubble { border-bottom-left-radius: 4px; }
.chat-row.right .chat-bubble {
  border-bottom-right-radius: 4px;
  background: rgb(var(--accent-rgb) / 0.14);
  border-color: rgb(var(--accent-rgb) / 0.35);
}
.chat-bubble.reject {
  background: rgb(220 60 60 / 0.10);
  border-color: rgb(220 60 60 / 0.4);
}
.chat-who { font-size: 0.72rem; font-weight: 700; opacity: 0.7; margin-bottom: 0.15rem; }
.chat-bubble.reject .chat-who { color: #dc5a5a; opacity: 1; }
.chat-text { white-space: pre-wrap; line-height: 1.45; font-size: 0.9rem; }
.chat-meta { font-size: 0.68rem; opacity: 0.55; margin-top: 0.25rem; text-align: right; }
/* Gelesen-Status im Chat: grün = von der Gegenseite gelesen, rot = ungelesen. */
.chat-read-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.chat-read-dot.read { background: #2faa6a; }
.chat-read-dot.unread { background: #dc5a5a; }
/* Vertrags-Redline im CRM = blätterbarer Viewer wie im Kundenportal: weißes Blatt +
   Vor/Zurück + Punkte, einzelne Seiten. Zusätze grün, gelöschte Blöcke rot durchgestrichen. */
.rl-viewer { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
/* Blatt füllt 100% des Tab-Bereichs (keine graue „Schreibtisch"-Fläche, keine zentrierte Breite). */
.rl-stage { max-height: 62vh; overflow: auto; padding: 0; background: transparent; }
.rl-sheet { background: #fff; color: #16181d; max-width: none; margin: 0; padding: 22px clamp(20px, 3.5%, 40px); border-radius: 0; box-shadow: none; }
.rl-sheet > :first-child { margin-top: 0; }
.rl-sheet h1, .rl-sheet h2 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; margin: 1.3rem 0 0.6rem; color: #16181d; }
.rl-sheet h3, .rl-sheet h4 { font-size: 1.02rem; font-weight: 700; margin: 1rem 0 0.4rem; color: #16181d; }
.rl-sheet p { margin: 0 0 0.6rem; line-height: 1.6; font-size: 0.92rem; color: #2a2d35; }
.rl-sheet strong { font-weight: 700; color: #16181d; }
.rl-sheet ul, .rl-sheet ol { margin: 0 0 0.7rem; padding-left: 1.5rem; }
.rl-sheet ul { list-style: disc; } .rl-sheet ol { list-style: decimal; }
.rl-sheet li { margin: 0.2rem 0; line-height: 1.55; color: #2a2d35; }
.rl-sheet a { color: #b34700; text-decoration: underline; }
/* Unterschriftsblock (aus ###UNTERSCHRIFT###) im HTML-Blatt – wie im PDF/Portal. */
.rl-sheet .sig-block { margin-top: 1.6rem; }
.rl-sheet .sig-space { height: 48px; }
.rl-sheet .sig-img { height: 48px; max-width: 70mm; object-fit: contain; display: block; }
.rl-sheet .sig-line { border-top: 1px solid #16181d; width: 70mm; max-width: 100%; margin-top: 2px; }
.rl-sheet .sig-label { font-weight: 700; margin-top: 4px; color: #16181d; }
.rl-sheet .sig-meta { font-size: 0.85rem; color: #444; margin-top: 1px; }
.rl-sheet .rl-ins-block { background: rgb(47 170 106 / 0.14); border-left: 3px solid #1c7a4e; border-radius: 4px; padding: 4px 10px; margin: 0 0 0.6rem; }
.rl-sheet .rl-del-block { background: rgb(220 90 90 / 0.12); border-left: 3px solid #b23b35; border-radius: 4px; padding: 4px 10px; margin: 0 0 0.6rem; }
.rl-sheet .rl-del-block, .rl-sheet .rl-del-block * { text-decoration: line-through; }
.rl-sheet .rl-ins-block > :first-child, .rl-sheet .rl-del-block > :first-child { margin-top: 0; }
.rl-sheet .rl-ins-block > :last-child, .rl-sheet .rl-del-block > :last-child { margin-bottom: 0; }
.rl-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--border); }
.rl-pageindic { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.rl-pagelabel { color: var(--text-tertiary); font-size: 12px; white-space: nowrap; }
.rl-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; align-items: center; }
.rl-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--border); cursor: pointer; transition: width .2s, background .2s; }
.rl-dot.is-active { width: 24px; border-radius: 10px; background: var(--accent-1); }

/* Vertragsdetail-Tab-System: Vertragsvorschau | Vertragsänderungen | (Vertragstext bearbeiten). */
.doc-tabbar { display: flex; gap: 0.3rem; border-bottom: 1px solid var(--border); margin: -0.2rem 0 1rem; flex-wrap: wrap; }
.doc-tab { appearance: none; border: 0; background: transparent; padding: 0.55rem 1rem; margin-bottom: -1px; font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--text-tertiary); cursor: pointer; border-bottom: 2px solid transparent; border-radius: 8px 8px 0 0; }
.doc-tab:hover { color: var(--text-secondary); background: rgb(var(--ink) / 0.04); }
.doc-tab.is-active { color: var(--accent-1); border-bottom-color: var(--accent-1); }
/* Panels liegen IM Tab-Card → kein zweiter Rahmen/Schatten/Padding/Abstand. */
#dDocPanels > .konto-section { background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0; }
/* Panel-Titel sind redundant zur Tab-Beschriftung → ausblenden (Aktionsleiste/Legende bleiben). */
#dDocPanels > .konto-section > .crm-detail-head > h2 { display: none; }
#dDocPanels .konto-h2-help { display: none; }
.chat-input { display: flex; flex-direction: column; gap: 0.5rem; }
.chat-input textarea { resize: vertical; min-height: 3.2rem; }
.chat-actions { display: flex; justify-content: flex-end; gap: 0.5rem; align-items: center; }
.chat-actions .btn-inline.armed { background: rgb(220 60 60 / 0.16); border-color: rgb(220 60 60 / 0.6); color: #dc5a5a; font-weight: 700; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s ease;
}

.btn-secondary:hover {
  background: rgb(var(--ink) / 0.05);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Dark: Outline-Buttons deutlicher sichtbar (Standard-Border 0.08 war zu schwach). */
html:not(.light) .btn-secondary {
  border-color: rgb(var(--ink) / 0.22);
}
/* Dark-Hover deutlich kräftiger: sichtbarer Fill + hellere Outline + leichter Glow */
html:not(.light) .btn-secondary:hover {
  background: rgb(var(--ink) / 0.16);
  border-color: rgb(var(--ink) / 0.65);
  box-shadow: 0 0 0 1px rgb(var(--ink) / 0.14), 0 8px 22px rgb(0 0 0 / 0.35);
}

/* Neutrale Chips/Pills (Hero-Label, Partner-Pills): faint Outline im Dark
   deutlich sichtbar machen + leichte Fläche für mehr Definition. */
html:not(.light) .border-ink\/10,
html:not(.light) .border-ink\/\[0\.08\] {
  border-color: rgb(var(--ink) / 0.28);
}
html:not(.light) .bg-ink\/\[0\.03\],
html:not(.light) .bg-ink\/\[0\.04\] {
  background-color: rgb(var(--ink) / 0.07);
}

/* ---------- Language Toggle ---------- */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgb(var(--ink) / 0.06);
  border: 1px solid rgb(var(--ink) / 0.1);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 0.25rem 0.75rem;
  border: none;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: var(--text-tertiary);
}

.lang-btn.active {
  background: var(--accent-gradient);
  color: var(--on-accent);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0;
  /* Dynamische Viewport-Höhe: passt sich der ein-/ausfahrenden iOS-Safari-Leiste
     an (100dvh), damit der Footer nie unter die Browser-Leiste rutscht. */
  height: 100vh;
  height: 100dvh;
  /* höchster z-index: liegt ÜBER dem Barrierefreiheits-Launcher (2147483000..+2),
     damit dessen Icon bei offenem Menü darunter verschwindet */
  z-index: 2147483010;
  background: rgb(var(--page) / 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;    /* oben ausgerichtet: Logo sitzt hoch */
  gap: 0.05rem;
  /* unten Safe-Area (Home-Indicator) berücksichtigen */
  padding: 1rem 1.25rem max(2.25rem, calc(env(safe-area-inset-bottom) + 1rem));
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-overlay a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.3rem;
  transition: color 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.mobile-menu-overlay.open a {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

/* Hover-Farbe nur mit echtem Zeiger (Maus) — auf Touch klebt sonst der
   Hover-Zustand nach dem Antippen. */
@media (hover: hover) {
  .mobile-menu-overlay a:hover { color: var(--accent-1); }
}

/* Stagger mobile menu items */
.mobile-menu-overlay.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-overlay.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-overlay.open a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-overlay.open a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu-overlay.open a:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu-overlay.open a:nth-child(7) { transition-delay: 0.4s; }
.mobile-menu-overlay.open a:nth-child(8) { transition-delay: 0.45s; }

/* Hamburger */
.hamburger {
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.open span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

/* ---------- Testimonial ---------- */
.testimonial-card {
  position: relative;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

.testimonial-card .quote-mark {
  font-size: 4rem;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.6;
}

/* ---------- Contact Form ---------- */
.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: rgb(var(--ink) / 0.04);
  border: 1px solid rgb(var(--ink) / 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-input:focus,
.form-input:focus-visible {
  outline: none;
  border-color: #fb5d02;
  box-shadow: 0 0 0 3px rgba(251, 93, 2, 0.18);
  background: rgb(var(--ink) / 0.06);
}

textarea.form-input {
  resize: vertical;
  min-height: 130px;
}

/* Anrede-Dropdown: ungewählter Pflicht-Zustand wie ein Placeholder (grau),
   nicht weiß -> gleiche Schriftfarbe wie die leeren Textfelder.
   Beim Fokus (Reinklicken) wird der Text hell (wie text-primary). */
select.form-input:invalid {
  color: var(--text-tertiary);
}
select.form-input:focus {
  color: var(--text-primary);
}

/* Bei Fokus (aktives Feld) wird die Schrift reinweiß -> nur im Dark-Theme,
   damit sie im Light nicht auf hellem Grund verschwindet. Gilt für beide Formulare. */
html:not(.light) .form-input:focus,
html:not(.light) #modal-kontakt .kontakt-form input:focus,
html:not(.light) #modal-kontakt .kontakt-form select:focus,
html:not(.light) #modal-kontakt .kontakt-form textarea:focus {
  color: #fff;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

/* Geteilter Marken-Footer (Rechtstext-Seiten + Kundenportal) – Nachbau des Startseiten-Footers
   OHNE Tailwind/Alpine. Werte 1:1 zu den Startseiten-Tailwind-Klassen (ausgeschrieben), damit
   Schriften/Abstände/Größen identisch sind. */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border); }
.site-footer-inner { max-width: 80rem; margin: 0 auto; padding: 3rem 1.5rem; }                       /* py-12 px-6 */
.site-footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 3rem; }   /* gap-10 mb-12 */
@media (min-width: 640px) { .site-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-footer-brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; margin-bottom: 1rem; }  /* gap-3 mb-4 */
.site-footer-brand .mark { width: 2.25rem; height: 2.25rem; border-radius: 0.75rem; background: linear-gradient(to bottom right, rgb(var(--accent-rgb)), rgb(var(--accent-2-rgb))); display: flex; align-items: center; justify-content: center; padding: 0.375rem; flex: 0 0 auto; }  /* w-9 h-9 rounded-xl p-1.5 from-accent to-violet */
.site-footer-brand .mark img { width: 100%; height: 100%; object-fit: contain; }
html.light .site-footer-brand .mark img { filter: brightness(0) invert(1); }  /* Mini-Logo im Hell-Modus weiß (wie Header/Startseite) */
.site-footer-brand .name { font-size: 1rem; font-weight: 700; letter-spacing: -0.025em; }            /* text-base font-bold tracking-tight */
.site-footer-brand .name span { color: rgb(var(--ink) / 0.4); font-weight: 400; margin-left: 0.25rem; }  /* text-ink/40 font-normal ml-1 */
.site-footer-tagline { font-size: 0.875rem; line-height: 1.625; color: rgb(var(--ink) / 0.7); max-width: 20rem; margin: 0; }  /* text-sm leading-relaxed text-ink/70 max-w-xs */
.site-footer-phone { font-size: 0.875rem; color: rgb(var(--ink) / 0.6); display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0 0; }  /* text-sm text-ink/60 mt-4 gap-2 */
.site-footer-phone a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.site-footer-phone a:hover { color: rgb(var(--ink)); }
.site-footer-col h2 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: rgb(var(--ink) / 0.5); margin: 0 0 1rem; }  /* text-xs font-semibold tracking-wider text-ink/50 mb-4 */
.site-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }  /* space-y-2 */
.site-footer-col a { font-size: 0.875rem; color: rgb(var(--ink) / 0.6); text-decoration: none; transition: color 0.2s ease; }  /* text-sm text-ink/60 */
.site-footer-col a:hover { color: rgb(var(--ink)); }
.site-footer-bottom { border-top: 1px solid rgb(var(--ink) / 0.06); padding-top: 1.5rem; }            /* border-ink/[0.06] pt-6 */
.site-footer-bottom p { font-size: 0.75rem; color: rgb(var(--ink) / 0.45); margin: 0; }              /* text-xs text-ink/45 */

/* ---------- GSAP Animation Helpers ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

.stagger-item {
  opacity: 0;
  transform: translateY(50px);
}

/* ---------- Noise Texture ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ---------- Custom Cursor (Desktop only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: screen;
    transition: width 0.3s, height 0.3s, background 0.3s;
    transform: translate(-50%, -50%);
  }

  .cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgb(var(--accent-rgb) / 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    transform: translate(-50%, -50%);
  }

  a:hover ~ .cursor-dot,
  button:hover ~ .cursor-dot {
    width: 14px;
    height: 14px;
  }

  a:hover ~ .cursor-ring,
  button:hover ~ .cursor-ring {
    width: 50px;
    height: 50px;
    border-color: rgb(var(--accent-rgb) / 0.6);
  }
}

/* ---------- Animated Background Mesh for sections ---------- */
.mesh-gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.mesh-gradient .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}

/* ---------- Feature list with icons ---------- */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.75rem 0;
}

.feature-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ---------- Marquee ticker ---------- */
.ticker-wrap {
  overflow: hidden;
  width: 100%;
}

.ticker {
  display: flex;
  animation: ticker 40s linear infinite;
  width: max-content;
}

.ticker-item {
  flex-shrink: 0;
  padding: 0 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-tertiary);
  white-space: nowrap;
}

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

/* ---------- Responsive fixes ---------- */
@media (max-width: 640px) {
  .ref-panel {
    padding: 2rem 0;
  }
}

/* Fade sections divider glow */
.section-glow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 1px;
  background: radial-gradient(ellipse, var(--accent-1) 0%, transparent 70%);
  opacity: 0.4;
}

/* ============================================
   SERVICES SHOWCASE – Sticky Nav + 3D Icons
   ============================================ */

/* ---------- Section ---------- */
.services-section {
  position: relative;
  width: 100%;
}

.services-wrapper {
  display: flex;
  max-width: 1600px;
  margin: 0 auto;
}

/* ---------- Left Navigation Column ---------- */
.services-nav-col {
  width: 400px;
  flex-shrink: 0;
  padding-left: 2.5rem;
}

.services-nav-sticky {
  position: sticky;
  top: 100px;
  padding: 2rem 0 4rem;
}

.services-nav-header {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgb(var(--ink) / 0.06);
  margin-bottom: 0.5rem;
}

.services-nav-list {
  list-style: none;
  position: relative;
  padding-left: 12px;
}

/* Vertical connecting line — removed */
.services-nav-list::before {
  display: none;
}

.services-nav-item {
  position: relative;
}

.services-nav-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.9rem 0 0.9rem 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: inherit;
  font-size: 0.95rem;
  text-align: left;
}

.services-nav-btn:hover,
.services-nav-item.active .services-nav-btn {
  color: var(--text-primary);
}

/* Navigation dot indicator */
.svc-nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  /* each item carries its own soft brand colour via --svc-rgb */
  border: 2px solid rgb(var(--svc-rgb, var(--ink)) / 0.5);
  background: rgb(var(--svc-rgb, var(--ink)) / 0.16);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.services-nav-item.active .svc-nav-dot {
  border-color: rgb(var(--svc-rgb));
  background: rgb(var(--svc-rgb));
  box-shadow: 0 0 16px rgb(var(--svc-rgb) / 0.5), 0 0 4px rgb(var(--svc-rgb));
  transform: scale(1.3);
}

.svc-nav-num {
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  opacity: 0.35;
  min-width: 1.5rem;
  transition: all 0.4s ease;
}

.services-nav-item.active .svc-nav-num {
  opacity: 1;
  background: none;
  -webkit-text-fill-color: rgb(var(--svc-rgb));
  color: rgb(var(--svc-rgb));
}

.svc-nav-label {
  font-weight: 500;
  transition: all 0.4s ease;
}

.services-nav-item.active .svc-nav-label {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Right Panels Column ---------- */
.services-panels-col {
  flex: 1;
  min-width: 0;
  overflow: clip;
}

.service-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 3rem 6rem 4rem;
}

.service-panel-inner {
  max-width: 750px;
  width: 100%;
}

/* ---------- 3D Icon Stage ---------- */
.service-icons-perspective {
  perspective: 1200px;
  perspective-origin: 50% 50%;
  width: 100%;
  margin-bottom: 3rem;
}

.service-icons-stage {
  position: relative;
  width: 100%;
  height: 420px;
  transform-style: preserve-3d;
  transition: transform 0.3s ease-out;
}

/* Icon glow background */
.svc-icon-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-color, rgb(var(--accent-rgb) / 0.12)), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(60px);
}

/* 3D Icon containers */
.svc-icon-3d {
  position: absolute;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.svc-icon-primary {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(60px);
  z-index: 3;
}

.svc-icon-secondary {
  top: 5%;
  right: 2%;
  transform: translateZ(30px);
  z-index: 2;
}

.svc-icon-tertiary {
  bottom: 5%;
  left: 5%;
  transform: translateZ(-20px);
  z-index: 1;
}

/* Glass icon container */
.svc-icon-glass {
  background: var(--icon-accent, rgb(var(--accent-rgb) / 0.08));
  border: 1px solid var(--icon-border, rgb(var(--accent-rgb) / 0.15));
  border-radius: 28px;
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 80px var(--icon-shadow, rgb(var(--accent-rgb) / 0.1)),
    inset 0 1px 0 rgb(var(--ink) / 0.06);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.svc-icon-3d:hover .svc-icon-glass {
  box-shadow:
    0 0 120px var(--icon-shadow, rgb(var(--accent-rgb) / 0.2)),
    inset 0 1px 0 rgb(var(--ink) / 0.1);
  border-color: var(--icon-border, rgb(var(--accent-rgb) / 0.3));
}

/* Floating animations (on inner wrapper, won't conflict with GSAP on outer) */
.svc-float-1 {
  animation: svcFloat1 7s ease-in-out infinite;
}

.svc-float-2 {
  animation: svcFloat2 8s ease-in-out infinite;
  animation-delay: -2s;
}

.svc-float-3 {
  animation: svcFloat3 6s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes svcFloat1 {
  0%, 100% { transform: translateY(0) rotateY(0deg) rotateX(0deg); }
  25% { transform: translateY(-14px) rotateY(4deg) rotateX(2deg); }
  75% { transform: translateY(8px) rotateY(-2deg) rotateX(-1deg); }
}

@keyframes svcFloat2 {
  0%, 100% { transform: translateY(0) rotateX(0deg) rotateZ(0deg); }
  33% { transform: translateY(-10px) rotateX(-3deg) rotateZ(2deg); }
  66% { transform: translateY(6px) rotateX(2deg) rotateZ(-1deg); }
}

@keyframes svcFloat3 {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-18px) rotateY(-5deg); }
}

/* ---------- Panel Text ---------- */
.service-panel-text {
  max-width: 600px;
}

.service-panel-text .heading-md {
  background: linear-gradient(135deg, var(--text-primary) 0%, rgba(240, 240, 245, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-panel-text .text-body {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 1023px) {
  .services-wrapper {
    flex-direction: column;
  }

  .services-nav-col {
    display: none !important;
  }

  .services-panels-col {
    width: 100%;
  }

  .service-panel {
    min-height: auto;
    padding: 4rem 1.5rem;
  }

  .service-icons-stage {
    height: 320px;
  }

  .svc-icon-primary svg {
    width: 100px;
    height: 100px;
  }

  .svc-icon-secondary svg {
    width: 65px;
    height: 65px;
  }

  .svc-icon-tertiary svg {
    width: 50px;
    height: 50px;
  }

  .svc-icon-glass {
    padding: 20px;
    border-radius: 20px;
  }

  .service-panel-text .heading-md {
    -webkit-text-fill-color: unset;
    background: none;
  }
}

@media (max-width: 640px) {
  .service-icons-stage {
    height: 260px;
  }

  .svc-icon-primary svg {
    width: 80px;
    height: 80px;
  }

  .svc-icon-secondary svg {
    width: 50px;
    height: 50px;
  }

  .svc-icon-tertiary svg {
    width: 40px;
    height: 40px;
  }

  .svc-icon-glass {
    padding: 16px;
    border-radius: 16px;
  }

  .service-panel {
    padding: 3rem 1rem;
  }
}

/* ---------- Legal Modals ---------- */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.legal-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.legal-modal-container {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal.is-open .legal-modal-container {
  transform: translateY(0) scale(1);
}

.legal-modal-content {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  background: linear-gradient(160deg, rgba(20, 20, 34, 0.98), rgba(14, 14, 24, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgb(var(--ink) / 0.04),
    0 24px 80px -12px rgba(0, 0, 0, 0.6),
    0 0 120px -40px var(--accent-glow);
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: rgb(var(--ink) / 0.02);
}

.legal-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  /* Eine Farbe statt Gradient — die Akzentfarbe des Wortes „digitale" (Was wir tun) */
  color: var(--accent-1);
}

.legal-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.legal-modal-close:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.legal-modal-body {
  padding: 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgb(var(--ink) / 0.12) transparent;
}

.legal-modal-body::-webkit-scrollbar {
  width: 5px;
}

.legal-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.legal-modal-body::-webkit-scrollbar-thumb {
  background: rgb(var(--ink) / 0.12);
  border-radius: 10px;
}

.legal-modal-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-1);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgb(var(--ink) / 0.06);
}

.legal-modal-body h3:first-child {
  margin-top: 0;
}

/* ---------- Kontakt-Modal (Formular-Overlay) ----------
   Modal-Fläche ist in beiden Themes dunkel → fixe helle Farben, damit
   das Formular auch im Light-Mode lesbar bleibt. */
.kontakt-modal-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 720px) {
  .kontakt-modal-grid { grid-template-columns: 0.82fr 1.18fr; gap: 1.75rem; }
}
/* ---- Ansprechpartner-Card (dunkel/Gold) ---- */
#modal-kontakt .kontakt-aside {
  position: relative; overflow: hidden; align-self: start;
  background: linear-gradient(165deg, rgba(255,133,52,0.07), rgba(255,255,255,0.012));
  border: 1px solid rgb(var(--ink) / 0.08);
  border-radius: 20px; padding: 1.7rem 1.5rem;
}
#modal-kontakt .kontakt-aside::before {
  content: ''; position: absolute; top: -30%; right: -35%; width: 100%; height: 90%; pointer-events: none;
  background:
    radial-gradient(closest-side, transparent 60%, rgba(255,133,52,0.16) 61%, transparent 63%),
    radial-gradient(closest-side, transparent 70%, rgba(255,133,52,0.11) 71%, transparent 73%),
    radial-gradient(closest-side, transparent 80%, rgba(255,133,52,0.07) 81%, transparent 83%);
}
#modal-kontakt .kontakt-aside > * { position: relative; z-index: 1; }
#modal-kontakt .kontakt-portrait {
  width: 106px; height: 106px; border-radius: 999px; padding: 3px; margin-bottom: 1.1rem;
  border: 2px solid #ff8534; box-shadow: 0 0 0 1px rgba(255,133,52,0.25), 0 10px 26px rgba(0,0,0,0.45);
}
#modal-kontakt .kontakt-portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; display: block; }
#modal-kontakt .kontakt-name { font-weight: 700; font-size: 1.45rem; letter-spacing: -0.015em; line-height: 1.15; color: #ece7dd; }
#modal-kontakt .kontakt-role { margin-top: 0.4rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #ff8534; }
#modal-kontakt .kontakt-divider { width: 46px; height: 2px; margin: 1rem 0 1.15rem; border-radius: 2px; background: linear-gradient(90deg, #ff8534, transparent); }
#modal-kontakt .kontakt-lead { font-size: 0.92rem; line-height: 1.6; color: #ece7dd; margin-bottom: 1.3rem; }
#modal-kontakt .kontakt-items { display: flex; flex-direction: column; gap: 0.7rem; }
#modal-kontakt .kontakt-item {
  display: flex; align-items: center; gap: 0.8rem; text-decoration: none;
  padding: 0.65rem 0.8rem; border: 1px solid rgb(var(--ink) / 0.08); border-radius: 14px;
  background: rgba(255,255,255,0.015); color: #ece7dd; font-size: 0.9rem; line-height: 1.35;
  transition: border-color 0.2s ease, background 0.2s ease;
}
#modal-kontakt a.kontakt-item:hover { border-color: rgba(255,133,52,0.5); background: rgba(255,133,52,0.07); }
#modal-kontakt .kontakt-item-icon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,133,52,0.28); color: #ff8534; background: rgba(255,133,52,0.06);
}
#modal-kontakt .kontakt-item strong { font-weight: 600; color: #ece7dd; }
#modal-kontakt .kontakt-item .k-gold { color: #ff8534; }

/* ---- Formular (geboxte Felder) ---- */
#modal-kontakt .kontakt-form { display: flex; flex-direction: column; gap: 1.05rem; }
#modal-kontakt .kontakt-row { display: grid; grid-template-columns: 1fr; gap: 1.05rem; }
@media (min-width: 520px) { #modal-kontakt .kontakt-row { grid-template-columns: 1fr 1fr; } }
#modal-kontakt .kontakt-field { display: flex; flex-direction: column; }
/* Formularfelder wie das Seiten-Formular (.form-input): neutral, Akzent-Fokus (im Dark taupe, im Light orange) */
#modal-kontakt .kontakt-label { font-size: 0.78rem; font-weight: 500; color: rgb(var(--ink) / 0.68); margin-bottom: 0.45rem; }
#modal-kontakt .kontakt-label .req { color: rgb(var(--ink) / 0.45); }
#modal-kontakt .kontakt-form input,
#modal-kontakt .kontakt-form select,
#modal-kontakt .kontakt-form textarea {
  width: 100%; background: rgb(var(--ink) / 0.04); border: 1px solid rgb(var(--ink) / 0.08);
  border-radius: 12px; padding: 0.78rem 0.95rem; color: var(--text-primary); font-size: 0.92rem; font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
#modal-kontakt .kontakt-form input::placeholder,
#modal-kontakt .kontakt-form textarea::placeholder { color: var(--text-tertiary); }
#modal-kontakt .kontakt-form input:focus,
#modal-kontakt .kontakt-form select:focus,
#modal-kontakt .kontakt-form textarea:focus {
  outline: none; border-color: #fb5d02; background: rgb(var(--ink) / 0.06); box-shadow: 0 0 0 3px rgba(251, 93, 2, 0.18);
}
#modal-kontakt .kontakt-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.3rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23999999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 0.9rem center;
}
#modal-kontakt .kontakt-form select:invalid { color: var(--text-tertiary); }
#modal-kontakt .kontakt-form select:focus { color: var(--text-primary); }
#modal-kontakt .kontakt-form select option { background-color: #1e1e26; color: #f0f0f5; }
#modal-kontakt .kontakt-form textarea { resize: vertical; min-height: 108px; }

/* ---- Grundfläche (dunkel + Orange-Akzent) in BEIDEN Themes ---- */
#modal-kontakt .legal-modal-content {
  background: linear-gradient(160deg, #17161d 0%, #0e0d13 100%);
  border: 1px solid rgb(var(--ink) / 0.08);
  box-shadow: 0 40px 120px -20px rgba(0,0,0,0.8),
              0 0 0 1px rgb(var(--accent-light-rgb) / 0.5),
              0 0 55px rgb(var(--accent-light-rgb) / 0.5),
              0 0 120px rgb(var(--accent-rgb) / 0.4);
}
#modal-kontakt .legal-modal-body { padding: 1.75rem; }
#modal-kontakt .legal-modal-header {
  background: transparent; border-bottom: none; padding: 1.35rem 1.75rem 0.5rem; align-items: flex-start;
}
.kontakt-head { display: flex; align-items: center; gap: 0.85rem; }
.kontakt-head-icon { width: 30px; height: 30px; flex-shrink: 0; color: #ff8534; }
#modal-kontakt .legal-modal-title { font-size: 1.65rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: #ffffff; }
.kontakt-title-accent { color: #ff8534; }
/* Untertitel wie die Kontakt-/Messe-Formulare (hellgrau, theme-aware) statt Taupe-Braun */
.kontakt-subtitle { font-size: 0.875rem; color: var(--text-secondary); margin-top: 3px; }
#modal-kontakt .legal-modal-close { border: 1px solid rgba(255,133,52,0.25); background: rgba(255,255,255,0.02); color: #a49a8b; border-radius: 12px; }
#modal-kontakt .legal-modal-close:hover { border-color: rgba(255,133,52,0.5); color: #ff8534; background: rgba(255,133,52,0.08); }

/* ---- Consent + Senden-Button (Orange) ---- */
#modal-kontakt .kontakt-consent { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: rgb(var(--ink) / 0.4); line-height: 1.5; cursor: pointer; }
#modal-kontakt .kontakt-consent input[type="checkbox"] { width: auto; accent-color: rgb(var(--accent-rgb)); flex-shrink: 0; }
#modal-kontakt .kontakt-consent a { color: rgb(var(--accent-light-rgb)); text-decoration: underline; }
#modal-kontakt .kontakt-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; width: 100%;
  padding: 0.95rem 1.5rem; margin-top: 0.4rem; border: none; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 0.98rem; color: var(--on-accent);
  background: var(--accent-gradient);
  box-shadow: 0 12px 34px var(--accent-glow);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
#modal-kontakt .kontakt-submit:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 16px 44px var(--accent-glow); }
#modal-kontakt .kontakt-req-note { font-size: 0.75rem; color: rgb(var(--ink) / 0.6); text-align: right; margin-top: 0; }
#modal-kontakt .kontakt-req-note .req { color: rgb(var(--ink) / 0.6); font-weight: 400; }
html.light #modal-kontakt .kontakt-req-note { color: #8a8378; }

/* ---------- LIGHT: Kontakt-Overlay hell adaptiert (Orange-Akzente bleiben) ---------- */
html.light #modal-kontakt .legal-modal-content {
  background: linear-gradient(160deg, #ffffff 0%, #fbf8f6 100%);
  border-color: rgb(var(--ink) / 0.1);
  box-shadow: 0 40px 120px -20px rgba(60,40,20,0.28),
              0 0 0 1px rgb(var(--accent-light-rgb) / 0.4),
              0 0 55px rgb(var(--accent-light-rgb) / 0.4),
              0 0 100px rgb(var(--accent-rgb) / 0.3);
}
html.light #modal-kontakt .legal-modal-header { border-bottom: none; }
html.light #modal-kontakt .legal-modal-title { color: #1a1a24; }
/* Untertitel folgt var(--text-secondary) (wie die Kontakt-/Messe-Formulare) — kein Taupe-Override mehr */
html.light #modal-kontakt .legal-modal-close {
  border-color: rgba(0,0,0,0.12); background: rgba(0,0,0,0.02); color: #8a8378;
}
html.light #modal-kontakt .legal-modal-close:hover { border-color: rgba(251,93,2,0.5); color: #fb5d02; background: rgba(251,93,2,0.06); }

html.light #modal-kontakt .kontakt-aside {
  background: linear-gradient(165deg, rgba(255,133,52,0.09), rgba(0,0,0,0.012));
  border-color: rgb(var(--ink) / 0.12);
}
html.light #modal-kontakt .kontakt-name { color: #1a1a24; }
html.light #modal-kontakt .kontakt-lead { color: #6f685e; }
html.light #modal-kontakt .kontakt-item { background: #ffffff; border-color: rgba(0,0,0,0.08); color: #2a2620; }
html.light #modal-kontakt a.kontakt-item:hover { border-color: rgba(251,93,2,0.5); background: rgba(251,93,2,0.05); }
html.light #modal-kontakt .kontakt-item strong { color: #1a1a24; }
html.light #modal-kontakt .kontakt-item-icon { background: rgba(251,93,2,0.08); border-color: rgba(251,93,2,0.25); }

/* Formularfelder folgen im Light automatisch der neutralen Var-Logik (ink/accent). */
html.light #modal-kontakt .kontakt-form select option { background-color: #fff; color: #1a1a24; }
html.light #modal-kontakt .kontakt-consent { color: #6f685e; }

/* Ansprechpartner-Karte im Overlay: identisch zur Kontakt-Sektion unten.
   Grund/Portrait nutzen 1:1 die Basis-.glass-card + .contact-portrait--accent.
   Die generischen .legal-modal-body p/a-Regeln (für Rechtstexte) dürfen NICHT
   auf die Kachel durchschlagen -> hier Schriftgröße/-farbe exakt wie im Footer. */
#modal-kontakt .glass-card p {
  font-size: 1rem;
  line-height: 1.5;
  color: rgb(var(--ink));
  margin-bottom: 0;
}
#modal-kontakt .glass-card p.text-xs {
  font-size: 0.75rem;
  color: rgb(var(--ink) / 0.4);
}
#modal-kontakt .glass-card a {
  color: inherit;
  text-decoration: none;
}
#modal-kontakt .glass-card a:hover {
  color: rgb(var(--ink));
  text-decoration: none;
}
/* Patrick-Box im Overlay: identischer weicher Hover-Glow + Lift wie die
   Kontakt-/Messe-Boxen. */
#modal-kontakt .glass-card {
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.45s ease, background 0.45s ease;
}
#modal-kontakt .glass-card:hover {
  transform: translateY(-4px);
  border-color: rgb(var(--accent-light-rgb) / 0.45);
  box-shadow: 0 18px 46px -18px rgba(0, 0, 0, 0.45), 0 0 42px var(--accent-glow);
}
html.light #modal-kontakt .glass-card:hover {
  box-shadow: 0 18px 46px -18px rgba(17, 20, 32, 0.14), 0 0 42px var(--accent-glow);
}

/* ---------- Simulierte Google-Maps-Karte als Panel-Hintergrund ---------- */
#modal-kontakt .kontakt-aside .kontakt-map {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: 20px; pointer-events: none;
}
#modal-kontakt .kontakt-map svg { width: 100%; height: 100%; display: block; filter: brightness(1.45); }
#modal-kontakt .kontakt-map::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,24,0.28) 0%, rgba(15,13,18,0.55) 55%, rgba(15,13,18,0.72) 100%);
}
html.light #modal-kontakt .kontakt-map svg { filter: invert(1) hue-rotate(180deg) saturate(1.15); }
html.light #modal-kontakt .kontakt-map::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.62) 0%, rgba(255,252,250,0.85) 55%, rgba(255,252,250,0.93) 100%);
}
/* Deko-Kontur ausblenden, wenn Karte aktiv */
#modal-kontakt .kontakt-aside:has(.kontakt-map)::before { display: none; }

.legal-modal-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-modal-body p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}

.legal-modal-body strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.legal-modal-body a {
  color: var(--accent-1);
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-modal-body a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

.legal-modal-body ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.legal-modal-body ul li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

/* Aufzähl-Bullets generell als orange „+" (Logo-Orange) – durchgängiger Design-Standard. */
.legal-modal-body ul li::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 0;
  color: rgb(var(--accent-rgb));
  font-weight: 700;
  line-height: 1.7;
}

/* ---------- LIGHT: Rechtstext-Modals (Impressum, Datenschutz, Disclaimer,
   Barrierefreiheit, Vortrag) ----------
   Die Basis-.legal-modal-content-Fläche ist fest dunkel, die Textfarben aber
   theme-aware (kippen im Light auf dunkel) -> ohne dieses Override stünde
   dunkle Schrift auf dunklem Grund. #modal-kontakt hat eigene, spezifischere
   Light-Regeln und bleibt davon unberührt. */
html.light .legal-modal-content {
  background: linear-gradient(160deg, #ffffff 0%, #fbf8f6 100%);
  border-color: rgb(var(--ink) / 0.10);
  box-shadow:
    0 0 0 1px rgb(var(--ink) / 0.04),
    0 40px 120px -20px rgba(60, 40, 20, 0.22),
    0 0 120px -40px var(--accent-glow);
}
html.light .legal-modal-header {
  background: rgb(var(--ink) / 0.02);
  border-bottom-color: rgb(var(--ink) / 0.08);
}

@media (max-width: 640px) {
  .legal-modal-container {
    width: 95%;
    max-height: 90vh;
  }

  .legal-modal-content {
    max-height: 90vh;
    border-radius: var(--radius-md);
  }

  .legal-modal-header {
    padding: 1.25rem 1.5rem;
  }

  .legal-modal-body {
    padding: 1.5rem;
  }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-gradient-orb {
    animation: none;
  }

  .ticker {
    animation: none;
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
}

/* Print styles */
@media print {
  .navbar, .noise-overlay, .cursor-dot, .cursor-ring, .scroll-indicator {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}


/* ============================================
   LIGHT THEME
   Activated by `html.light` (set pre-paint from localStorage
   '934tel-theme' or the OS preference). Tokens derived from
   --ink / --page (surface, border, glass, grid, scrollbar,
   most overlays) flip automatically; only the non-derived
   base colors are re-declared here.
   ============================================ */
:root { color-scheme: dark; }

html.light {
  color-scheme: light;

  --ink: 17 20 32;          /* dark foreground / overlay ink */
  --page: 247 248 251;      /* light page background          */

  --bg-primary: #f6f7fb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eceef5;
  --bg-elevated: #ffffff;

  --text-primary: #14161f;
  --text-secondary: rgba(20, 22, 31, 0.66);
  --text-tertiary: rgba(20, 22, 31, 0.52);

  /* Accent flips to CI primary orange in light mode */
  --accent-rgb: 251 93 2;           /* #fb5d02 */
  --accent-light-rgb: 255 133 52;
  --accent-2-rgb: 255 140 58;
  --accent-dark-rgb: 199 74 0;
  --on-accent: #ffffff;

  --accent-glow: rgb(var(--accent-rgb) / 0.26);
  --teal-glow: rgba(6, 182, 212, 0.20);
}

/* Logo silhouette: forced white in dark, near-black in light */
html.light .logo-white {
  filter: brightness(0) opacity(0.88);
}

/* Gradient orbs: dial back so they stay a subtle tint on light */
html.light .hero-gradient-orb { opacity: 0.15; filter: blur(140px); }
html.light .hero-gradient-orb.orb-3 { opacity: 0.10; }

/* Custom cursor: 'screen' blend vanishes on light — use normal blend */
html.light .cursor-dot { mix-blend-mode: normal; }

/* Shadows tuned for light surfaces (black at low alpha reads too hard) */
html.light .glass-card:hover {
  box-shadow: 0 20px 55px rgba(17, 20, 32, 0.12), 0 0 40px var(--accent-glow);
}

/* Smooth the swap of colors when toggling themes */
html.theme-anim,
html.theme-anim body,
html.theme-anim .navbar,
html.theme-anim .glass-card,
html.theme-anim .footer {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}


/* ---------- Theme Toggle (dark/light) ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 100px;
  border: 1px solid rgb(var(--ink) / 0.10);
  background: rgb(var(--ink) / 0.06);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.theme-toggle:hover {
  color: var(--text-primary);
  background: rgb(var(--ink) / 0.10);
  border-color: rgb(var(--ink) / 0.18);
  transform: translateY(-1px);
}
.theme-toggle svg { display: block; }
/* Icon reflects the CURRENT theme; driven by the html class so it never
   flashes waiting for Alpine. Sun = dark active, Moon = light active. */
.theme-toggle .icon-moon { display: none; }
html.light .theme-toggle .icon-sun { display: none; }
html.light .theme-toggle .icon-moon { display: block; }


/* ---------- Light mode: icon/accent contrast ----------
   The "-light" brand tints (#ff8534 / #22d3ee / #fbbf24) wash out on white.
   In light mode only, swap them for richer variants so icons, check-marks
   and badges read clearly. Dark mode keeps the original vivid tints. */

/* Check-marks & small accent icons/text (stroke = currentColor) */
html.light .text-accent-light { color: #c74a00; }
html.light .text-accent { color: #a83f00; }
html.light .text-teal-light { color: #0e8aa6; }
html.light .text-teal { color: #0e7490; }
html.light .text-gold-light,
html.light .text-gold { color: #b45309; }

/* Product badges (Shop-System / Business Intelligence) */
html.light .product-badge.teal   { color: #0e7490; border-color: rgba(6, 182, 212, 0.35); }
html.light .product-badge.violet { color: #c74a00; border-color: rgb(var(--accent-rgb) / 0.35); }

/* Quickfin feature icons (gold circle glyphs) */
html.light .feature-icon svg { stroke: #b45309; }
html.light .feature-icon { border-color: rgba(245, 158, 11, 0.4); }

/* Large 3D service icons: firm up the thin strokes; teal/gold get darker
   per-hue variants for light-mode contrast. */
html.light .svc-icon-glass svg { stroke-width: 1; }
html.light .svc-icon-glass svg[stroke="#22d3ee"] { stroke: #0e8aa6; }
html.light .svc-icon-glass svg[stroke="#fbbf24"] { stroke: #c2740a; }

/* Accent-family service-icon strokes (was indigo/violet) flip with the theme:
   taupe in dark, orange in light — with an extra-dark orange in light for contrast. */
.svc-icon-glass svg[stroke="#ff8534"],
.svc-icon-glass svg[stroke="#ffa866"],
.svc-icon-glass svg[stroke="#a5b4fc"],
.svc-icon-glass svg[stroke="#c7d2fe"],
.svc-icon-glass svg[stroke="#c4b5fd"],
.svc-icon-glass svg[stroke="#ddd6fe"] { stroke: rgb(var(--accent-light-rgb)); }

html.light .svc-icon-glass svg[stroke="#ff8534"],
html.light .svc-icon-glass svg[stroke="#ffa866"],
html.light .svc-icon-glass svg[stroke="#a5b4fc"],
html.light .svc-icon-glass svg[stroke="#c7d2fe"],
html.light .svc-icon-glass svg[stroke="#c4b5fd"],
html.light .svc-icon-glass svg[stroke="#ddd6fe"] { stroke: #c74a00; }


/* ---------- Simulated customer logos (trust row) ---------- */
.cust-logo {
  height: 26px;
  width: auto;
  opacity: 0.72;                 /* Dark: etwas heller */
  transition: opacity 0.3s ease;
}
html.light .cust-logo { opacity: 0.55; }   /* Light: dezenter */
.cust-logo:hover { opacity: 0.95; }

/* Echte Bild-Kundenlogos (PNG/JPG): monochrom rendern, damit sie in die
   einfarbige Trust-Reihe passen und mit dem Theme flippen.
   Dark = weiß (invert), Light = dunkel (brightness 0). */
img.cust-logo--img { filter: brightness(0) invert(1); }
html.light img.cust-logo--img { filter: brightness(0); }

/* ---- Kunden-Logo-Leiste: nie Umbruch; bei Platzmangel durchlaufender Slider ----
   Standard: Logos in EINER Zeile, zentriert, statisch (kein Umbruch).
   Passt es nicht in eine Zeile, setzt initLogoMarquee() die Klasse .is-marquee →
   die (per JS geklonte) Spur läuft endlos durch, Pause bei Hover/Fokus.
   Der genaue Versatz --logo-shift = Startposition der zweiten Kopie (nahtlos). */
.logo-marquee {
  overflow: hidden;
  width: 100%;
  /* weiche Kanten links/rechts */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.logo-track {
  display: flex;
  flex-wrap: nowrap;               /* NIE Umbruch */
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  max-width: none;
  margin: 0 auto;                  /* zentriert, solange alles passt */
}
.logo-marquee.is-marquee .logo-track {
  margin: 0;                       /* im Slider-Modus links beginnen */
  animation: logoMarquee var(--logo-dur, 30s) linear infinite;
}
.logo-marquee.is-marquee:hover .logo-track,
.logo-marquee.is-marquee:focus-within .logo-track {
  animation-play-state: paused;    /* Stopp bei Mouse-over, weiter beim Rausgehen */
}
@keyframes logoMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--logo-shift, 50%))); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee.is-marquee .logo-track { animation: none; }
  .logo-marquee.is-marquee { overflow-x: auto; }   /* stattdessen manuell scrollbar */
}


/* ============================================
   B+PLUS FLAGSHIP — locked to the products' CI orange (#fb5d02).
   Plusion+ / Insight+ carry their own brand colour, so this section
   stays orange in BOTH themes (overrides the site's taupe/orange accent).
   ============================================ */
#bpplus {
  --accent-rgb: 251 93 2;
  --accent-light-rgb: 255 133 52;
  --accent-2-rgb: 255 140 58;
  --accent-dark-rgb: 199 74 0;
  --on-accent: #ffffff;
  --accent-1: rgb(var(--accent-rgb));
  --accent-2: rgb(var(--accent-2-rgb));
  --accent-gradient: linear-gradient(135deg, #fb5d02, #ff8c3a);
  --accent-glow: rgb(var(--accent-rgb) / 0.35);
}
/* Teal-based elements in this section -> the same product orange */
#bpplus .gradient-text-teal {
  background: linear-gradient(135deg, #fb5d02, #ff8c3a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
#bpplus .text-teal-light { color: #ff8534; }
#bpplus .product-badge.teal {
  background: rgb(var(--accent-rgb) / 0.12);
  color: #ff8534;
  border-color: rgb(var(--accent-rgb) / 0.25);
}
/* Plusion card carries a teal hover-glow by default -> force the product orange */
#bpplus .product-card.plusion {
  --card-accent: rgb(var(--accent-rgb));
  --card-glow: var(--accent-glow);
}
html.light #bpplus .text-teal-light { color: #c74a00; }
html.light #bpplus .product-badge.teal { color: #c74a00; }


/* ---------- Weitere Produkte: per-card accents ---------- */
.product-card.whizzla { --card-accent: var(--teal); --card-glow: var(--teal-glow); }
.product-card.hive    { --card-accent: var(--gold); --card-glow: rgba(245, 158, 11, 0.34); }
.product-card.origin  { --card-accent: #a855f7; --card-glow: rgba(168, 85, 247, 0.32); }

.product-badge.gold {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
html.light .product-badge.gold { color: #b45309; border-color: rgba(245, 158, 11, 0.4); }

/* Origin+ = purple */
.product-badge.purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}
html.light .product-badge.purple { color: #7c3aed; border-color: rgba(168, 85, 247, 0.4); }
.gradient-text-purple {
  background: linear-gradient(135deg, #a855f7, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html.light .product-card.origin .text-purple-400 { color: #7c3aed; }


/* ---------- Hero orbs: mouse-parallax wrapper ----------
   The inner .hero-gradient-orb keeps its ambient float animation;
   the wrapper is moved by the cursor (JS) so both compose cleanly. */
.orb-parallax {
  position: absolute;
  inset: 0;
  will-change: transform;
  pointer-events: none;
}


/* ---------- Header: vivid colour orbs (three distinct "colour dots") ---------- */
.hero-gradient-orb.orb-1 { background: #fb5d02; opacity: 0.42; }  /* CI orange   */
.hero-gradient-orb.orb-2 { background: #a855f7; opacity: 0.40; }  /* purple      */
.hero-gradient-orb.orb-3 { background: #06b6d4; opacity: 0.30; }  /* teal        */
/* Light mode: saturated glows need more opacity to read on a light bg */
html.light .hero-gradient-orb.orb-1 { opacity: 0.48; }
html.light .hero-gradient-orb.orb-2 { opacity: 0.45; }
html.light .hero-gradient-orb.orb-3 { opacity: 0.38; }


/* ---------- Orb load fix: fade in AFTER JS placed them (no position jump) ---------- */
.orb-parallax { opacity: 0; transition: opacity 0.8s ease; }

/* ---------- Content sheet slides up over the hero (layered 3D transition) ---------- */
.page-sheet {
  position: relative;
  z-index: 10;                                 /* above the sticky hero (z-1) */
  background: var(--bg-primary);
  border-radius: 0;                            /* square corners (no rounding) */
  box-shadow: 0 -22px 50px -18px rgba(0, 0, 0, 0.55);  /* rises over the hero on scroll */
}
.page-sheet::before {                          /* thin top highlight = crisp raised edge */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(var(--ink) / 0.16), transparent);
}

/* Hero scroll FX: text recedes, logo comes forward (driven by GSAP scrub) */
.hero-copy { transform-origin: center 45%; will-change: transform, opacity, filter; }
.hero-logo { transform-origin: center; will-change: transform; }
html.light .page-sheet { box-shadow: 0 -20px 48px -20px rgba(15, 20, 40, 0.22); }


/* ---------- Per-service colour for the 3D service icons ----------
   Each .service-panel carries its own --svc-rgb; the glass tiles, strokes
   and glow all pick it up (soft, elegant, one hue per service). */
.service-panel .svc-icon-glass {
  background: rgb(var(--svc-rgb) / 0.09) !important;
  border-color: rgb(var(--svc-rgb) / 0.22) !important;
  box-shadow: 0 0 80px rgb(var(--svc-rgb) / 0.14), inset 0 1px 0 rgb(var(--ink) / 0.06) !important;
}
.service-panel .svc-icon-3d:hover .svc-icon-glass {
  border-color: rgb(var(--svc-rgb) / 0.34) !important;
  box-shadow: 0 0 120px rgb(var(--svc-rgb) / 0.24), inset 0 1px 0 rgb(var(--ink) / 0.1) !important;
}
.service-panel .svc-icon-glass svg { stroke: rgb(var(--svc-rgb)) !important; }
.service-panel .svc-icon-secondary .svc-icon-glass svg { stroke: rgb(var(--svc-rgb) / 0.72) !important; }
.service-panel .svc-icon-tertiary .svc-icon-glass svg { stroke: rgb(var(--svc-rgb) / 0.5) !important; }
.service-panel .svc-icon-glow {
  background: radial-gradient(circle, rgb(var(--svc-rgb) / 0.16), transparent 70%) !important;
}


/* ---------- Network visualization (About / Unser Netzwerk) ---------- */
.network-viz { width: 100%; max-width: 440px; margin: 0.25rem auto 0; }
.network-svg { width: 100%; height: auto; display: block; overflow: visible; }

.net-ring { fill: none; stroke: rgb(var(--ink) / 0.06); stroke-width: 1; }

/* connecting lines with a slow flowing dash */
.net-line { stroke-width: 1; stroke-dasharray: 3 9; animation: netFlow 2.6s linear infinite; }
@keyframes netFlow { to { stroke-dashoffset: -24; } }

/* partner nodes */
.net-node-a { cursor: pointer; }
.net-node { transition: r 0.3s ease; }
.net-glow {
  opacity: 0.16;
  transform-box: fill-box;
  transform-origin: center;
  animation: netGlow 4.5s ease-in-out infinite;
}
@keyframes netGlow {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50%      { opacity: 0.28; transform: scale(1.35); }
}
.net-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  fill: rgb(var(--ink) / 0.5);
  dominant-baseline: middle;
  transition: fill 0.3s ease;
}
.net-node-a:hover .net-node  { r: 8; }
.net-node-a:hover .net-glow  { opacity: 0.42; transform: scale(1.5); animation: none; }
.net-node-a:hover .net-label { fill: rgb(var(--ink) / 0.95); }

/* central 934 hub */
.net-hub { fill: rgb(var(--accent-rgb)); }
.net-hub-glow { fill: rgb(var(--accent-rgb)); opacity: 0.22; filter: blur(9px); }
.net-hub-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  fill: var(--on-accent);
}
.net-hub-ping {
  fill: none;
  stroke: rgb(var(--accent-rgb) / 0.5);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: netPing 3.2s ease-out infinite;
}
@keyframes netPing {
  0%   { transform: scale(0.7); opacity: 0.6; }
  100% { transform: scale(2.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .net-line, .net-glow, .net-hub-ping { animation: none; }
}



/* ---------- Reference testimonials ---------- */
.ref-testimonial {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgb(var(--ink) / 0.08);
  max-width: 42ch;
}
.ref-quote {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0 0 0.85rem;
}
.ref-quote-author { display: flex; align-items: center; gap: 0.7rem; }
.ref-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgb(var(--av, var(--ink)) / 0.14);
  border: 1px solid rgb(var(--av, var(--ink)) / 0.30);
  color: rgb(var(--av, var(--ink)));
  overflow: hidden;
}
.ref-avatar svg { width: 20px; height: 20px; }
.ref-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ref-author-meta { display: flex; flex-direction: column; line-height: 1.3; }
.ref-author-meta strong { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.ref-author-meta span { font-size: 0.75rem; color: var(--text-tertiary); }

/* ============================================
   IMPACT 2026 – Event-Banner + Event-Sektion + Termin-Formular
   ============================================ */
[x-cloak] { display: none !important; }

/* ---- Schlanker Hinweis-Banner (ganz oben, klickbar, schließbar) ---- */
.impact-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.4rem 3rem 0.4rem 1rem;
  background: var(--accent-gradient);
  color: var(--on-accent);
  font-size: 0.82rem;
  font-weight: 600;
}
.impact-banner-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
}
.impact-banner-inner .ib-cta {
  display: inline-flex; align-items: center; gap: 0.3rem;
  text-decoration: underline; text-underline-offset: 2px;
}
.impact-banner-inner svg { flex-shrink: 0; }
.impact-banner-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--on-accent); opacity: 0.85;
  animation: refPpPulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
.impact-banner-x {
  position: absolute;
  right: 0.6rem; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px;
  border: 0; border-radius: 50%;
  background: rgb(0 0 0 / 0.12);
  color: var(--on-accent);
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 0.95rem; line-height: 1;
  transition: background 0.2s ease;
}
.impact-banner-x:hover { background: rgb(0 0 0 / 0.25); }
/* Navbar unter den Banner schieben, solange er sichtbar ist */
.navbar.nav-banner { top: 44px; }

/* ---- IMPACT-Menüpunkt (Akzent + pulsierender Live-Punkt) ---- */
.nav-impact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgb(var(--accent-light-rgb));
  font-weight: 600;
}
.nav-impact:hover,
.nav-impact.active { color: rgb(var(--accent-light-rgb)); }
.nav-impact-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgb(var(--accent-light-rgb));
  animation: refPpPulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
.mobile-impact { color: rgb(var(--accent-light-rgb)) !important; }

/* ---- Event-Sektion ---- */
/* Hebt sich leicht vom übrigen Dunkel ab (etwas hellerer Panel-Hintergrund) */
#event {
  scroll-margin-top: 96px;
  background: #13131f;
}
html.light #event {
  background: rgb(var(--ink) / 0.035);
}
/* Headline exakt zweizeilig (nur der gesetzte <br> bricht um) ab Tablet */
@media (min-width: 640px) {
  .event-headline { white-space: nowrap; }
}
.fact-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.9rem; border-radius: 100px;
  background: rgb(var(--ink) / 0.05); border: 1px solid rgb(var(--ink) / 0.12);
  font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
}
html:not(.light) .fact-pill { border-color: rgb(var(--ink) / 0.2); }
.fact-pill svg { color: rgb(var(--accent-light-rgb)); }
.talk-card {
  position: relative; border-radius: var(--radius-md);
  background: rgb(var(--ink) / 0.04); border: 1px solid rgb(var(--ink) / 0.1);
  padding: 1.35rem 1.5rem 1.35rem 1.65rem; overflow: hidden;
}
html:not(.light) .talk-card { border-color: rgb(var(--ink) / 0.16); }
.talk-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent-gradient);
}

/* Terminwunsch-Formular startet auf einer Linie mit der Vortrags-Card:
   um die Höhe des "Besuchen Sie uns am bpplus-Stand"-Headers (~70px) nach unten
   versetzt. Nur 2-spaltig (ab lg); mobil gestapelt bleibt es unberührt. */
@media (min-width: 1024px) {
  #event #termin-form { margin-top: 70px; }
}

/* ===== Einheitlicher weicher Hover-Glow: Messe- + Kontakt-Boxen =====
   Messe: Vortrags-Card + Termin-Formular.
   Kontakt: 3 Info-Karten (Patrick/Regina/Adresse) + Kontaktformular.
   Alle bekommen EXAKT denselben sanften Akzent-Glow. IDs schlagen die starke
   globale .glass-card:hover-Regel, damit es überall gleich (weich) ist. */
#event .talk-card,
#event .glass-card,
#kontakt .glass-card,
#kontakt .glass-strong {
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.45s ease, background 0.45s ease;
}
#event .talk-card:hover,
#event .glass-card:hover,
#kontakt .glass-card:hover,
#kontakt .glass-strong:hover {
  /* !important: Kontakt-Karten sind einzeln .reveal → GSAP setzt ein Inline-
     transform (y:0), das den Hover-Lift sonst überschreibt. */
  transform: translateY(-4px) !important;
  border-color: rgb(var(--accent-light-rgb) / 0.45);
  box-shadow: 0 18px 46px -18px rgba(0, 0, 0, 0.45), 0 0 42px var(--accent-glow);
}
html.light #event .talk-card:hover,
html.light #event .glass-card:hover,
html.light #kontakt .glass-card:hover,
html.light #kontakt .glass-strong:hover {
  box-shadow: 0 18px 46px -18px rgba(17, 20, 32, 0.14), 0 0 42px var(--accent-glow);
}

/* Linke Akzent-Linie für Formulare (wie bei der Vortragskarte) */
.form-accent { position: relative; overflow: hidden; }
.form-accent::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent-gradient);
  z-index: 2;
}

/* Vortrags-Modal: Checkmark-Liste + Speaker */
.tick-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
/* scoped auf #modal-vortrag, damit es die generische .legal-modal-body ul li-Regel schlägt */
#modal-vortrag .tick-list li {
  position: relative; padding-left: 1.75rem; margin-bottom: 0;
  color: var(--text-secondary); font-size: 0.95rem; line-height: 1.55;
}
#modal-vortrag .tick-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: auto; height: auto; border-radius: 0; background: none; opacity: 1;
  color: rgb(var(--accent-light-rgb)); font-weight: 700;
}
.vortrag-speaker {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid rgb(var(--ink) / 0.1);
}
.vortrag-speaker img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top center; flex-shrink: 0; }
.vortrag-speaker strong { display: block; font-size: 0.9rem; color: var(--text-primary); }
.vortrag-speaker span { font-size: 0.78rem; color: var(--text-tertiary); }
/* Overlay-Absätze in Fließtextfarbe (statt tertiär) */
#modal-vortrag .legal-modal-body p { color: var(--text-secondary); }

/* ---- Termin-Formular ---- */
.book-input {
  width: 100%; padding: 0.8rem 1rem; border-radius: var(--radius-sm);
  background: rgb(var(--ink) / 0.05); border: 1px solid rgb(var(--ink) / 0.12);
  color: var(--text-primary); font-family: inherit; font-size: 0.9rem; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
html:not(.light) .book-input { border-color: rgb(var(--ink) / 0.18); }
.book-input:focus { border-color: rgb(var(--accent-light-rgb) / 0.7); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.15); }
.book-input::placeholder { color: var(--text-tertiary); }
.book-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgb(var(--ink) / 0.68);
  margin-bottom: 0.4rem; display: block;
}
/* Pflichtfeld-/Subline-Hinweis unter dem Formular */
.form-subnote { font-size: 0.75rem; color: rgb(var(--ink) / 0.55); text-align: right; }
.slot {
  padding: 0.55rem 0; border-radius: 10px; text-align: center;
  background: rgb(var(--ink) / 0.05); border: 1px solid rgb(var(--ink) / 0.12);
  font-size: 0.82rem; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; font-family: inherit;
  transition: all 0.2s ease;
}
html:not(.light) .slot { border-color: rgb(var(--ink) / 0.18); }
.slot:hover:not(.is-off):not(.is-active) { border-color: rgb(var(--accent-light-rgb) / 0.6); color: var(--text-primary); }
.slot.is-active {
  background: rgb(var(--accent-rgb) / 0.16); border-color: rgb(var(--accent-light-rgb) / 0.7);
  color: rgb(var(--accent-light-rgb)); box-shadow: 0 0 24px rgb(var(--accent-rgb) / 0.25);
}
/* Dark: generische .slot-Randregel hat höhere Spezifität → aktiven Rand explizit setzen */
html:not(.light) .slot.is-active {
  background: rgb(var(--accent-rgb) / 0.22);
  border-color: rgb(var(--accent-light-rgb) / 0.85);
}
.slot.is-off { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }
.date-field { position: relative; }
.date-field svg {
  position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%);
  color: rgb(var(--accent-light-rgb)); pointer-events: none;
}

@media (max-width: 640px) {
  .impact-banner { font-size: 0.75rem; }
}

/* === Mobile/Tablet mit Burger-Menü: Navbar bleibt ZWINGEND ganz oben,
   der IMPACT-Hinweis wandert als kompakter Streifen an den unteren
   Seitenabschluss (statt in den Kopf). Rein CSS, gilt für beide HTML-Dateien. === */
@media (max-width: 1023px) {
  /* Burger/Navbar immer oben — kein Banner mehr im Kopf, der sie runterschiebt */
  .navbar.nav-banner { top: 0; }

  /* IMPACT-Hinweis: schlanker Streifen, DAUERHAFT unten am Viewport sichtbar
     (nicht erst am Seitenende). Kein Sprung, weil der Hero-Zoom auf Mobile aus ist.
     z-index unter dem Menü-Overlay (1000), damit er keine Menüpunkte verdeckt. */
  .impact-banner {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0; right: 0;
    z-index: 990;
    min-height: 0;
    padding: 0.45rem 2.3rem 0.45rem 0.9rem;
    font-size: 0.72rem;
    line-height: 1.25;
    box-shadow: 0 -6px 22px rgb(0 0 0 / 0.28);
  }
  .impact-banner-x {
    width: 22px; height: 22px;
    right: 0.5rem;
    font-size: 0.85rem;
  }
  /* Platz am Seitenende, damit der fixierte Streifen den Footer nicht verdeckt */
  body { padding-bottom: 3.25rem; }

  /* === Erstes Hero-View (mobil): Header UND IMPACT-Banner sind zunächst
     ausgeblendet – sichtbar bleiben nur Logo, Chip, Headline, Subtext, Cookie-,
     Scroll- und a11y-Icon. Beide schieben sich erst rein, sobald gescrollt wird
     (html.has-scrolled, per JS in initNavbar). Standard = versteckt ⇒ kein Flash
     beim Laden. === */
  .navbar {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: background-color 0.35s ease, backdrop-filter 0.35s ease,
                transform 0.4s ease, opacity 0.4s ease;
  }
  .impact-banner {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }
  html.has-scrolled .navbar {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  html.has-scrolled .impact-banner {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Barrierefreiheits-Launcher (+ Panel) über den IMPACT-Streifen heben, damit er
     ihn nicht überlappt. Höhere Spezifität (.a11y-ui …) schlägt die zur Laufzeit
     injizierte assist.css unabhängig von der Ladereihenfolge. */
  /* Cookie- & a11y-Button sitzen im ersten View schön unten (bottom:20px). Erst
     beim Scrollen (IMPACT-Banner fährt unten rein) heben sie sich darüber (5rem).
     Gekoppelt an html.has-scrolled, mit sanfter Transition. */
  .a11y-ui .a11y-launcher { bottom: 20px; transition: bottom 0.4s ease; }
  html.has-scrolled .a11y-ui .a11y-launcher { bottom: 5rem; }
  /* Panel folgt dem Launcher: unten im ersten View, angehoben nach dem Scrollen.
     max-height jeweils an die Position angepasst, sonst ragt es oben raus. */
  .a11y-ui .a11y-panel {
    bottom: 20px;
    max-height: calc(100vh - 3rem);
    transform: scale(0.9);              /* 10 % kleiner auf Responsive */
    transform-origin: bottom right;     /* schrumpft zur unteren rechten Ecke */
    transition: bottom 0.4s ease;
  }
  html.has-scrolled .a11y-ui .a11y-panel {
    bottom: 5rem;
    max-height: calc(100vh - 6.5rem);
  }
  /* Einblend-Animation an den 0.8-Endzustand anpassen (sonst Sprung am Ende) */
  .a11y-ui .a11y-panel.is-opening { animation: a11yPop80 0.22s cubic-bezier(.2,.9,.3,1); }

  /* Responsive: Launcher auf 75 % (56 -> 42px), Icon proportional mit. */
  .a11y-ui .a11y-launcher { width: 42px; height: 42px; border-radius: 12px; }
  .a11y-ui .a11y-launcher svg { width: 22px; height: 22px; }
  .a11y-ui .a11y-launcher i { font-size: 21px; }
}

/* Theme + Sprache im Burger-Menü (aus der Top-Leiste verlagert) */
.mobile-menu-tools {
  position: absolute;
  top: 1.1rem;
  left: 1.25rem;          /* gleiche Zeile wie der Schließen-Button (oben rechts) */
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
}
.mobile-menu-overlay.open .mobile-menu-tools {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: 0.4s;
}
.mobile-menu-tools .theme-toggle { width: 40px; height: 40px; }
.mobile-menu-tools .lang-btn { padding: 0.4rem 0.7rem; font-size: 0.9rem; }

/* Schließen-Button oben rechts im Burger-Menü */
.mobile-menu-close {
  position: absolute;
  top: 1.05rem;
  right: 1.25rem;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 3;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.mobile-menu-close svg { width: 33px; height: 33px; transition: transform 0.25s ease; }
.mobile-menu-close:hover svg { transform: rotate(90deg); }   /* 90° im Uhrzeigersinn */
.mobile-menu-close:hover { background: rgb(var(--ink) / 0.08); }
.mobile-menu-close:active { transform: scale(0.94); }
/* Hamburger bei offenem Menü ausblenden, damit nicht zwei Schließen-Symbole erscheinen */
.hamburger.open { opacity: 0; pointer-events: none; }

/* Logo klein/mittig oben im Menü — im Fluss (kein absolut → kein Überlappen der Links) */
.mobile-menu-logo {
  margin: 64px auto 1.25rem;   /* Abstand zur oberen Tool-Zeile + zu „Produkte" */
  width: 50%;
  max-width: 200px;
  display: block;
  line-height: 0;
  flex: 0 0 auto;
}
.mobile-menu-logo img { width: 100%; height: auto; display: block; }

/* Fuß: Kontakt (anklickbar) + Rechtliche Seiten, im Fluss unter den Menüpunkten */
.mobile-menu-foot {
  margin-top: auto;                  /* Footer ans untere Ende schieben (statt fixem Abstand) */
  padding-top: 1.5rem;               /* Mindestabstand zu den Menülinks */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  flex: 0 0 auto;
}
.mobile-menu-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.mobile-menu-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 250px;
  max-width: 80vw;
  padding: 0.65rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid rgb(var(--ink) / 0.18);
  border-radius: 999px;
  background: rgb(var(--ink) / 0.03);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.mobile-menu-contact a svg { opacity: 0.6; flex-shrink: 0; transition: opacity 0.2s ease; }
.mobile-menu-contact a:hover {
  color: var(--accent-1);
  border-color: var(--accent-1);
  background: rgb(var(--accent-rgb) / 0.18);
  box-shadow: 0 0 0 1px rgb(var(--accent-rgb) / 0.35), 0 6px 18px rgb(var(--accent-rgb) / 0.18);
}
.mobile-menu-contact a:hover svg { opacity: 1; }
/* Light-Modus: weißer Button mit oranger Outline (bleibt auch bei Hover weiß) */
html.light .mobile-menu-contact a {
  background: #fff;
  border-color: var(--accent-1);   /* im Light = #fb5d02 orange */
}
html.light .mobile-menu-contact a:hover {
  background: #fff;
  border-color: var(--accent-1);
  color: var(--accent-1);
  box-shadow: 0 6px 18px rgb(var(--accent-rgb) / 0.14);
}

/* Rechtliche Seiten: eine Zeile, im Fluss unter den Kontakt-Buttons (Teil des
   Footers). Dadurch kann sie nie von den Buttons überlagert werden und scrollt
   sauber mit, falls der Platz (z. B. bei eingeblendeter Browser-Leiste) knapp wird. */
.mobile-menu-legal {
  width: 100%;
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.6rem;
  padding: 0 0.6rem;
}
.mobile-menu-legal a {
  font-size: 0.72rem;              /* 20% größer */
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0.7;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.15rem 0;
  transform: none;                 /* nicht die große Menü-Link-Animation erben */
}
.mobile-menu-legal a:hover { opacity: 1; color: var(--accent-1); }
/* höhere Spezifität als „.open a", damit die kleinen Links gedimmt bleiben */
.mobile-menu-overlay.open .mobile-menu-legal a { opacity: 0.65; }
.mobile-menu-overlay.open .mobile-menu-legal a:hover { opacity: 1; }

/* === Kurze Screens (z. B. iPhone SE, ≤700px Höhe): das Burger-Menü wird sonst
   zu hoch – die Kontakt-Pills rutschen unter die fixe „Impressum…"-Zeile.
   Daher: Logo/Abstände knapper, Menülinks etwas kleiner und die zwei
   Kontakt-Buttons NEBENEINANDER als reine Icon-Buttons. === */
@media (max-height: 760px) {
  .mobile-menu-logo { margin: 40px auto 0.8rem; width: 38%; }
  /* NUR die Haupt-Menülinks verkleinern (direkte <a>-Kinder), NICHT die
     Rechtstexte- oder Kontakt-Links – sonst würde die „Impressum…"-Zeile
     riesig und liefe seitlich über. */
  .mobile-menu-overlay > a:not(.mobile-menu-logo) { font-size: 1.25rem; padding: 0.15rem; }
  .mobile-menu-foot { gap: 0.7rem; }
  .mobile-menu-contact { flex-direction: row; gap: 0.8rem; }
  .mobile-menu-contact a {
    width: 50px; height: 50px; padding: 0; gap: 0; border-radius: 14px;
  }
  .mobile-menu-contact .mmc-label { display: none; }
  .mobile-menu-contact a svg { width: 22px; height: 22px; opacity: 0.85; }
  /* Rechtstexte etwas kompakter, damit sie einzeilig passen (Wrap bleibt Fallback) */
  .mobile-menu-legal { gap: 0.25rem 0.5rem; }
  .mobile-menu-legal a { font-size: 0.66rem; }
}

/* Bei offenem Burger-Menü das Barrierefreiheits-Widget ausblenden, damit es NICHT
   über dem Menü liegt (der Launcher hat einen sehr hohen z-index in eigenem
   Stacking-Context, den ein reiner z-index am Overlay nicht zuverlässig schlägt).
   Klasse wird per Alpine x-effect auf <html> gesetzt. */
html.menu-open .a11y-launcher,
html.menu-open .a11y-panel,
html.menu-open .a11y-reader,
html.menu-open .cookie-toggle { display: none !important; }

/* Bei offenem Cookie-Banner das Barrierefreiheits-Widget ausblenden, damit der
   Banner darüber liegt (der Launcher hat einen eigenen Stacking-Context mit sehr
   hohem z-index, den ein reiner z-index am Banner nicht zuverlässig schlägt –
   gleiche Lösung wie bei .menu-open). Klasse wird per JS auf <html> gesetzt. */
html.cookie-open .a11y-launcher,
html.cookie-open .a11y-panel,
html.cookie-open .a11y-reader { display: none !important; }

/* ============================================
   „Built for microtech"-Badge (B+plus-Sektion)
   Light: helle Karte, „BUILT FOR" über dem Logo + Häkchen.
   Dark:  dunkle Karte + weiße Icon-Box (Diamant) + Trenner + Schriftzug + Häkchen.
   ============================================ */
.mt-badge {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  max-width: 380px;
  padding: 1.1rem 1.3rem;
  border-radius: 20px;
  /* Light: helle Karte */
  background:
    radial-gradient(130% 120% at 100% 0%, rgba(245, 166, 80, 0.18), transparent 46%),
    linear-gradient(135deg, rgba(17, 157, 165, 0.14), #ffffff 42%);
  border: 1px solid rgba(17, 157, 165, 0.28);
  box-shadow: 0 18px 40px -20px rgba(17, 157, 165, 0.4), 0 2px 8px rgba(0, 0, 0, 0.06);
}
/* Icon-Box (Diamant) – in BEIDEN Modi sichtbar, Farbe gedreht:
   Light = dunkle Box auf heller Karte, Dark = weiße Box auf dunkler Karte. */
.mt-badge-iconbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  flex-shrink: 0;
  background: #ffffff;                         /* weiße Box in beiden Modi */
  border: 1px solid rgba(17, 157, 165, 0.18);  /* auf heller Karte sichtbar */
  box-shadow: 0 6px 16px rgba(17, 157, 165, 0.14);
}
.mt-badge-mark { width: 40px; height: 40px; display: block; }
.mt-badge-main {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-left: 1px solid rgba(17, 25, 40, 0.12);
  padding-left: 1.1rem;
}
.mt-badge-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #56707a;
}
.mt-badge-logo { height: 30px; width: auto; display: block; }
.mt-badge-check {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(17, 157, 165, 0.10);
  border: 1px solid rgba(17, 157, 165, 0.30);
  color: #0e9ca5;
}
.mt-badge-check svg { width: 21px; height: 21px; }

/* ---- Dark: Farben gedreht (dunkle Karte, weiße Icon-Box) ---- */
html:not(.light) .mt-badge {
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(214, 150, 40, 0.22), transparent 46%),
    linear-gradient(140deg, #0f2a30 0%, #0a1417 55%, #0b1a1e 100%);
  border: 1px solid rgba(20, 180, 190, 0.28);
  box-shadow: 0 22px 50px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
html:not(.light) .mt-badge-iconbox { background: #ffffff; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
html:not(.light) .mt-badge-main { border-left-color: rgba(255, 255, 255, 0.14); }
html:not(.light) .mt-badge-label { color: #9fb0b5; }
html:not(.light) .mt-badge-check {
  background: rgba(20, 180, 190, 0.14);
  border-color: rgba(20, 180, 190, 0.40);
  color: #2fd0d8;
}

/* ============================================
   REFERENZ-TESTIMONIALS auf Mobile (pro Panel unter dem Projekttext).
   Desktop nutzt die mitscrollende Box in der rechten Nav-Spalte -> hier aus. */
.ref-mobile-testi { display: none; }
@media (max-width: 1023px) {
  .ref-mobile-testi {
    display: block;
    margin-top: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);   /* nur Trenner NACH der Testi -> Projekte sauber getrennt */
  }
  /* Dark: Trenner deutlicher (weiß @ 8% ist zu schwach) */
  html:not(.light) .ref-mobile-testi { border-color: rgb(var(--ink) / 0.24); }
  /* letztes Projekt: kein doppelter Trenner vor der Section-Trennlinie */
  .ref-panel:last-child .ref-mobile-testi { border-bottom: none; padding-bottom: 0; }
  .ref-mobile-testi .rmt-mark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 3rem; line-height: 0.5;
    color: var(--accent-1); opacity: 0.45;
  }
  .ref-mobile-testi .rmt-quote {
    font-size: 0.95rem; line-height: 1.6; font-style: italic;
    color: rgb(var(--ink) / 0.6);
    margin: 0.4rem 0 1rem;
  }
  .ref-mobile-testi .rmt-person { display: flex; align-items: center; gap: 0.75rem; }
  .ref-mobile-testi .rmt-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 12px;
  }
  .ref-mobile-testi .rmt-name { font-size: 0.8rem; font-weight: 600; color: rgb(var(--ink) / 0.75); }
  .ref-mobile-testi .rmt-role { font-size: 0.7rem; color: rgb(var(--ink) / 0.6); }
  .ref-mobile-testi .rmt-company { font-size: 0.7rem; color: rgb(var(--ink) / 0.45); }
}

/* Einblende-Animation für das auf Responsive 10 % verkleinerte a11y-Panel
   (Endzustand scale(0.9) statt none -> kein Sprung nach der Animation). */
@keyframes a11yPop80 {
  from { opacity: 0; transform: translateY(10px) scale(0.855); }
  to   { opacity: 1; transform: scale(0.9); }
}

/* ============================================
   TERMIN-FORMULAR — responsive Feld-Umbrüche
   Die Karte ist auf dem Desktop nur eine halbe Spalte, kann also auch bei
   großem Viewport schmal sein. Darum Container-Query auf die Kartenbreite
   (wie das Kontakt-Formular einspaltig stapelt, nur an der Karte gemessen).
   ============================================ */
#termin-form { container-type: inline-size; }

/* Name / Firma: untereinander, ab genug Kartenbreite nebeneinander */
.termin-row-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@container (min-width: 360px) {
  .termin-row-2 { grid-template-columns: 1fr 1fr; }
}
/* Fallback ohne Container-Query-Support: ab Viewport 520px zweispaltig */
@supports not (container-type: inline-size) {
  @media (min-width: 520px) { .termin-row-2 { grid-template-columns: 1fr 1fr; } }
}

/* Bühnen-/Blockierungs-Hinweis unter den Zeit-Slots: bei schmaler Karte
   kleiner + mehr Luft zu den Slots (klebte vorher zu press an den Buttons). */
.slot-note {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-tertiary);
  margin-top: 0.9rem;
}
@container (max-width: 380px) {
  .slot-note { font-size: 0.66rem; margin-top: 1.05rem; }
}

/* ============================================
   COOKIE-CONSENT-BANNER (DSGVO)
   Sichtbarkeit steuert initCookieBanner() via localStorage-Klasse .is-visible.
   Default unsichtbar (kein Flash, keine Layout-Verschiebung, fixed).
   ============================================ */
.cookie-banner {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 1200;              /* über dem IMPACT-Streifen (1100), unter Modals */
  width: min(420px, calc(100vw - 3rem));
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}
/* Dark: Glas ist sehr transparent -> etwas Grundfläche für Lesbarkeit */
html:not(.light) .cookie-banner {
  background: linear-gradient(160deg, rgba(23, 22, 29, 0.92), rgba(14, 13, 19, 0.92));
  border-color: rgb(var(--ink) / 0.14);
}
html.light .cookie-banner {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgb(var(--ink) / 0.1);
}
.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.cookie-banner-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.cookie-banner-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 100px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
.cookie-btn-primary {
  background: var(--accent-gradient);
  color: var(--on-accent);
  border: none;
}
.cookie-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--accent-glow);
}
.cookie-btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-hover);
}
.cookie-btn-ghost:hover {
  background: rgb(var(--ink) / 0.06);
  border-color: rgb(var(--ink) / 0.4);
}
.cookie-banner-privacy {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.75;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.cookie-banner-privacy:hover { color: var(--accent-1); opacity: 1; }

/* Responsive: Cookie-Banner als Leiste mit GLEICHEM Abstand links/rechts/unten.
   Unten über den fixierten IMPACT-Streifen (~3.25rem) heben, sonst kollidiert
   der Banner damit und der untere Abstand wirkt kleiner als seitlich. */
@media (max-width: 1023px) {
  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(3.25rem + 0.75rem);   /* 0.75rem Luft über dem Streifen = seitlicher Abstand */
    width: auto;
  }
}
/* Sehr schmal: Buttons nebeneinander gleich breit, Datenschutz darunter zentriert */
@media (max-width: 560px) {
  .cookie-banner { padding: 1.1rem 1.15rem; }
  .cookie-banner-actions { gap: 0.5rem; }
  .cookie-btn { flex: 1 1 auto; }
  .cookie-banner-privacy { flex-basis: 100%; margin-left: 0; text-align: center; margin-top: 0.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: opacity 0.2s ease, visibility 0.2s ease; transform: none; }
  .cookie-banner.is-visible { transform: none; }
  .cookie-btn-primary:hover { transform: none; }
}

/* Cookie-Einstellungen-Icon (Reopen) — unten links (Ecke, in der auch der
   Banner erscheint). Erscheint, sobald der Banner geschlossen ist;
   Klick öffnet ihn erneut. */
.cookie-toggle {
  position: fixed;
  left: 20px;              /* exakt gleiche Höhe von unten wie der a11y-Launcher */
  bottom: 20px;
  z-index: 1200;
  width: 56px;             /* gleiche Größe wie der a11y-Launcher */
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;     /* gleiche Form (abgerundetes Quadrat) wie a11y */
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.9);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease,
              border-color 0.2s ease, color 0.2s ease;
}
html:not(.light) .cookie-toggle {
  background: linear-gradient(160deg, rgba(23, 22, 29, 0.92), rgba(14, 13, 19, 0.92));
  border-color: rgb(var(--ink) / 0.14);
}
html.light .cookie-toggle {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgb(var(--ink) / 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.cookie-toggle.is-visible { opacity: 1; visibility: visible; transform: none; }
.cookie-toggle:hover { transform: translateY(-2px) scale(1.04); border-color: var(--accent-1); color: var(--accent-1); }
.cookie-toggle:focus-visible { outline: 3px solid var(--accent-1); outline-offset: 3px; }
.cookie-toggle svg { width: 28px; height: 28px; }

/* Responsive: a11y-Launcher auf 75 % (56->42px); Cookie-Icon zieht mit,
   gleiche Größe/Form/Höhe. a11y sitzt mobil auf bottom:5rem -> Cookie ebenso. */
@media (max-width: 1023px) {
  .cookie-toggle { left: 20px; bottom: 20px; width: 42px; height: 42px; border-radius: 12px; }
  html.has-scrolled .cookie-toggle { bottom: 5rem; }
  .cookie-toggle svg { width: 21px; height: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-toggle { transition: opacity 0.2s ease, visibility 0.2s ease, bottom 0.4s ease; transform: none; }
  .cookie-toggle.is-visible { transform: none; }
  .cookie-toggle:hover { transform: none; }
}
