/* ==========================================================================
   KFZ-Sachverständigenbüro Yousufi — Global Styles
   Premium static site. Tailwind (Play CDN) handles layout; this file adds
   fonts, design tokens, motion choreography and haptic micro-details.
   ========================================================================== */

/* Fonts: selbst gehostet (DSGVO-konform, kein externes CDN, offline-fähig).
   Quelle: Fontshare (ITF) — Lizenz erlaubt Self-Hosting. */
@font-face { font-family: 'Clash Display'; src: url('assets/fonts/clash-display-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('assets/fonts/clash-display-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('assets/fonts/clash-display-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('assets/fonts/clash-display-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('assets/fonts/satoshi-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('assets/fonts/satoshi-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('assets/fonts/satoshi-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* View Transitions API: sanfter Crossfade zwischen den Seiten (progressive
   enhancement — Browser ohne Support ignorieren die Regel). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: 0.22s; }
::view-transition-new(root) { animation-duration: 0.22s; }

:root {
  --navy-950: #060f1f;
  --navy-900: #0a1830;
  --navy-800: #0f2445;
  --navy-700: #16345f;
  --accent:   #c1121f;
  --accent-2: #e63946;
  --cream:    #f6f7f9;
  --ink:      #0a1830;
  --muted:    #5b6b83;
  --ring:     rgba(255,255,255,0.10);
  --ease:     cubic-bezier(0.32, 0.72, 0, 1);
}

* { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Anker landen nicht unter der fixierten Navigation */
[id] { scroll-margin-top: 110px; }

body {
  font-family: 'Satoshi', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

.font-display { font-family: 'Clash Display', 'Satoshi', sans-serif; }

h1, h2, h3 { text-wrap: balance; }

.tnum { font-variant-numeric: tabular-nums; }

::selection { background: var(--accent); color: #fff; }

/* Accessibility: skip link + visible focus ------------------------------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* Outline folgt in modernen Browsern der Element-Rundung — kein border-radius
   erzwingen (das machte runde Buttons beim Fokus eckig). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

/* Custom scrollbar --------------------------------------------------------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--navy-950); }
::-webkit-scrollbar-thumb { background: var(--navy-700); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Film-grain overlay (fixed, GPU-safe) ------------------------------------- */
.grain::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Aurora / mesh glow ------------------------------------------------------- */
.mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.mesh span {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.mesh .m1 { width: 520px; height: 520px; background: #1c467e; top: -140px; left: -80px; animation: float1 18s var(--ease) infinite alternate; }
.mesh .m2 { width: 460px; height: 460px; background: var(--accent); bottom: -160px; right: -60px; opacity: 0.35; animation: float2 22s var(--ease) infinite alternate; }
.mesh .m3 { width: 380px; height: 380px; background: #2b6cb0; top: 30%; right: 20%; opacity: 0.25; animation: float1 26s var(--ease) infinite alternate; }

@keyframes float1 { to { transform: translate3d(60px, 40px, 0) scale(1.15); } }
@keyframes float2 { to { transform: translate3d(-50px, -30px, 0) scale(1.1); } }

/* Hero: technisches Raster hinter dem Inhalt ------------------------------- */
.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 65% 35%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 80% at 65% 35%, #000 10%, transparent 72%);
  pointer-events: none;
}

/* Hero: Beispiel-Gutachten & schwebende Chips ------------------------------ */
.float-soft { animation: floatSoft 7s ease-in-out infinite alternate; }
@keyframes floatSoft { to { transform: translateY(-10px); } }

.chip-float {
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.55);
  animation: chipFloat 5s ease-in-out infinite alternate;
}
.chip-float--slow { animation-duration: 6.5s; animation-delay: 0.8s; }
@keyframes chipFloat { to { transform: translateY(-7px); } }

@media (prefers-reduced-motion: reduce) {
  .float-soft, .chip-float { animation: none; }
}

/* Scroll reveal -------------------------------------------------------------
   Progressive Enhancement: Elemente werden NUR versteckt, wenn JS läuft
   (html.js wird als erste Zeile in script.js gesetzt). Ohne JS bleibt
   die komplette Seite sichtbar. */
html.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}
html.js .reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .mesh span { animation: none; }
}

/* Double-bezel card -------------------------------------------------------- */
.bezel {
  padding: 6px;
  border-radius: 2rem;
  background: rgba(10, 24, 48, 0.04);
  border: 1px solid rgba(10, 24, 48, 0.06);
}
.bezel--dark {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ring);
}
.bezel-core {
  border-radius: calc(2rem - 6px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5);
}
.bezel--dark .bezel-core {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

/* Feature card hover: echter 3D-Tilt (JS setzt --rx/--ry, nur pointer:fine) - */
.tilt-card {
  transition: transform 0.25s var(--ease), box-shadow 0.6s var(--ease);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  will-change: transform;
}
.tilt-card:hover {
  --lift: -6px;
  box-shadow: 0 30px 60px -30px rgba(10, 24, 48, 0.35);
}

/* Magnetic / island button ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.btn:hover .btn-icon { transform: translate(3px, -1px) scale(1.06); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #a50f1a; }
.btn-primary .btn-icon { background: rgba(255, 255, 255, 0.18); }

.btn-ghost { background: rgba(255, 255, 255, 0.06); color: #fff; border: 1px solid var(--ring); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-ghost .btn-icon { background: rgba(255, 255, 255, 0.10); }

.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-800); }
.btn-dark .btn-icon { background: rgba(255, 255, 255, 0.14); }

/* Eyebrow pill ------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

/* Marquee ------------------------------------------------------------------ */
.marquee { display: flex; overflow: hidden; user-select: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; flex-shrink: 0; gap: 3rem; padding-right: 3rem; animation: scrollx 32s linear infinite; }
@keyframes scrollx { to { transform: translateX(-100%); } }

/* Nav (fluid island) ------------------------------------------------------- */
.nav-pill {
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
/* Schmale Screens: Logo-Untertitel kollidiert sonst mit dem Burger-Button */
@media (max-width: 430px) {
  #nav-pill > a > span > span:last-child { font-size: 8px; letter-spacing: 0.14em; }
  #nav-pill img { height: 2.25rem; }
}
.nav-scrolled {
  background: rgba(6, 15, 31, 0.72);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.6);
}

/* Mobile menu overlay ------------------------------------------------------ */
.menu-overlay {
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.menu-link {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.menu-open .menu-link { opacity: 1; transform: translateY(0); }
.menu-open .menu-link:nth-child(1) { transition-delay: 0.10s; }
.menu-open .menu-link:nth-child(2) { transition-delay: 0.16s; }
.menu-open .menu-link:nth-child(3) { transition-delay: 0.22s; }
.menu-open .menu-link:nth-child(4) { transition-delay: 0.28s; }
.menu-open .menu-link:nth-child(5) { transition-delay: 0.34s; }
.menu-open .menu-link:nth-child(6) { transition-delay: 0.40s; }

/* Hamburger morph ---------------------------------------------------------- */
.burger span { transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); }
.burger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Accordion ---------------------------------------------------------------- */
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.acc-item.open .acc-body { max-height: 320px; }
.acc-item.open .acc-plus { transform: rotate(45deg); }
.acc-plus { transition: transform 0.4s var(--ease); }

/* Link underline sweep ----------------------------------------------------- */
.link-sweep { position: relative; }
.link-sweep::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.link-sweep:hover::after { transform: scaleX(1); transform-origin: left; }

/* Step connector ----------------------------------------------------------- */
.step-line { background: linear-gradient(180deg, var(--accent), transparent); }

/* Ablauf-Timeline: nummerierte Punkte, "durchstoßen" die Linie ------------- */
.step-dot {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  box-shadow: 0 0 0 8px var(--cream), 0 14px 30px -14px rgba(10, 24, 48, 0.45);
}

/* Service-Karten: Pfeil-Link rückt bei Hover nach --------------------------- */
.card-link { transition: color 0.35s var(--ease); }
.tilt-card:hover .card-link { color: var(--accent); }

/* Marquee: bei Hover pausieren --------------------------------------------- */
.marquee:hover .marquee__track { animation-play-state: paused; }

/* Floating WhatsApp button ------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #25d366;
  opacity: 0.5;
  animation: waPulse 2.4s ease-out infinite;
  z-index: -1;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 16px 40px -8px rgba(37, 211, 102, 0.75); }
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }
@media (max-width: 640px) { .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; } }

/* ==========================================================================
   DESIGN-SPRACHE V2 — Editorial / Premium Automotive
   ========================================================================== */

/* Outline-Typografie -------------------------------------------------------- */
.text-outline { -webkit-text-stroke: 1px rgba(255, 255, 255, 0.45); color: transparent; }
.text-outline-dark { -webkit-text-stroke: 1px rgba(10, 24, 48, 0.25); color: transparent; }

/* Nummerierte Editorial-Sektionsheader -------------------------------------- */
.sec-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}
.sec-num {
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--accent-2);
}
.sec-rule { width: 56px; height: 1px; background: linear-gradient(90deg, var(--accent-2), transparent); }
.sec-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
}

/* Hero-Headline: Zeilen steigen aus Masken auf ------------------------------ */
.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line-mask > span { display: block; }
html.js .line-mask > span {
  transform: translateY(115%);
  transition: transform 1.1s var(--ease);
}
html.js .reveal.in .line-mask > span { transform: translateY(0); }
html.js .reveal.in .line-mask:nth-child(2) > span { transition-delay: 0.12s; }
@media (prefers-reduced-motion: reduce) {
  html.js .line-mask > span { transform: none; transition: none; }
}

/* Blueprint-Zeichnung (Hero): Pfade zeichnen sich selbst -------------------- */
.blueprint { width: 100%; height: auto; overflow: visible; }
.blueprint .bp {
  fill: none;
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.blueprint .bp--faint { stroke: rgba(255, 255, 255, 0.22); }
.blueprint .bp--accent { stroke: rgba(230, 57, 70, 0.75); }
html.js .blueprint .bp {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: bpDraw 1.9s var(--ease) forwards;
  animation-delay: var(--bpd, 0s);
}
@keyframes bpDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  html.js .blueprint .bp { animation: none; stroke-dashoffset: 0; }
}

/* Schadenspunkt-Marker auf der Blueprint (klickbar → Schadenakte) ----------- */
.dmg {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translate(-50%, -50%);
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
  z-index: 5;
}
.dmg:hover .dmg-dot, .dmg.active .dmg-dot { transform: scale(1.3); background: #fff; box-shadow: 0 0 0 5px rgba(230, 57, 70, 0.45); }
.dmg.active .dmg-label { border-color: rgba(230, 57, 70, 0.6); color: #fff; }
.dmg-dot { transition: transform 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease); }

/* Schadenakte-Panel ---------------------------------------------------------- */
.dmg-panel {
  z-index: 10;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.65);
}
.dmg-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.dmg-panel .row { opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.dmg-panel.open .row { opacity: 1; transform: translateY(0); }
.dmg-panel.open .row:nth-child(1), .dmg-panel.open dl .row:nth-child(1) { transition-delay: 0.08s; }
.dmg-panel.open dl .row:nth-child(2) { transition-delay: 0.14s; }
.dmg-panel.open dl .row:nth-child(3) { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  .dmg-panel, .dmg-panel .row { transition: opacity 0.2s ease; transform: none; }
}

/* Nur sinnvoll, wenn JS läuft (z. B. Interaktions-Hinweise) ------------------ */
html:not(.js) .js-only { display: none; }

/* Scroll-Progress / Nach-oben-Button ----------------------------------------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 54;
  width: 52px;
  height: 52px;
  display: none;
  place-items: center;
  border-radius: 999px;
  background: rgba(10, 24, 48, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.3s var(--ease);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.to-top:focus { outline: none; }
/* Runder Fokusring statt eckigem Safari-Outline (box-shadow folgt border-radius) */
.to-top:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--navy-950), 0 0 0 6px var(--accent-2); }
.to-top:hover { background: rgba(15, 36, 69, 0.95); }
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top svg.ring { position: absolute; inset: 4px; transform: rotate(-90deg); }
.to-top .prog {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--p, 0));
}
@media (min-width: 768px) { .to-top { display: grid; } }

/* Cookie-/Consent-Hinweis ----------------------------------------------------- */
.cookie-bar {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 58;
  max-width: 370px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.cookie-bar.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-bar .cookie-core {
  border-radius: 1.25rem;
  background: rgba(6, 15, 31, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  padding: 1.1rem 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  line-height: 1.55;
}
.cookie-bar strong { color: #fff; }
.cookie-bar a { text-decoration: underline; }
.cookie-bar a:hover { color: #fff; }
.cookie-actions { display: flex; gap: 0.5rem; margin-top: 0.85rem; }
.cookie-actions button {
  flex: 1;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.cookie-accept { background: var(--accent); color: #fff; }
.cookie-accept:hover { background: #a50f1a; }
.cookie-essential { background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.85); border-color: rgba(255, 255, 255, 0.14) !important; }
.cookie-essential:hover { background: rgba(255, 255, 255, 0.14); }
@media (max-width: 767px) {
  .cookie-bar { left: 12px; right: 12px; max-width: none; bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* Formular: sanfte Fehlermarkierung nach Nutzereingabe ------------------------ */
form[data-wa] input:user-invalid,
form[data-wa] textarea:user-invalid,
form[data-wa] select:user-invalid { border-color: rgba(230, 57, 70, 0.65); }
.dmg-dot {
  position: relative;
  width: 11px; height: 11px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.22);
  flex: none;
}
.dmg-dot::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 999px;
  border: 1px solid rgba(230, 57, 70, 0.55);
  animation: dmgPulse 2.4s ease-out infinite;
}
.dmg-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(6, 15, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}
@keyframes dmgPulse { 0% { transform: scale(0.55); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dmg-dot::after { animation: none; opacity: 0; } }

/* Riesige kinetische Marquee ------------------------------------------------ */
.marquee--giant .marquee__track {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  gap: 2.6rem;
  padding-right: 2.6rem;
  animation-duration: 52s;
  align-items: center;
}
.marquee--giant .mq-solid { color: rgba(255, 255, 255, 0.92); }
.marquee--giant .mq-outline { -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4); color: transparent; }
.marquee--giant .mq-dot { color: var(--accent-2); font-size: 0.45em; }

/* Mega-Telefonnummer im CTA -------------------------------------------------- */
.phone-mega {
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.phone-mega.link-sweep::after { height: 3px; bottom: -6px; background: var(--accent-2); }

/* Shine-Sweep auf Primär-Buttons -------------------------------------------- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -70%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s var(--ease);
  pointer-events: none;
}
.btn-primary:hover::after { left: 135%; }

/* Ablauf: Verbindungslinie zeichnet sich beim Einscrollen ------------------- */
html.js .step-bar { transform: scaleX(0); transform-origin: left; transition: transform 1.5s var(--ease) 0.25s; }
html.js .reveal.in .step-bar { transform: scaleX(1); }
html.js .tl-draw { transform: scaleY(0); transform-origin: top; transition: transform 1.8s var(--ease) 0.2s; }
html.js .reveal.in .tl-draw { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) {
  html.js .step-bar, html.js .tl-draw { transform: none; transition: none; }
}

/* Kundenstimmen: großes Anführungszeichen ------------------------------------ */
.quote-card { position: relative; }
.quote-card::before {
  content: "\201E";
  position: absolute;
  top: -0.28em;
  right: 0.35rem;
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: 6.5rem;
  line-height: 1;
  color: rgba(193, 18, 31, 0.1);
  pointer-events: none;
}

/* Seiten-Hero: riesiges Outline-Wasserzeichen -------------------------------- */
.hero-watermark {
  position: absolute;
  right: -0.5rem;
  bottom: -0.12em;
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: clamp(4rem, 12.5vw, 10.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* Mega-Footer: Outline-Wordmark ---------------------------------------------- */
.footer-wordmark {
  margin-top: 3.5rem;
  text-align: center;
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 10.2vw, 9.2rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.13);
  white-space: nowrap;
  user-select: none;
  transition: -webkit-text-stroke-color 0.6s var(--ease);
}
footer:hover .footer-wordmark { -webkit-text-stroke-color: rgba(230, 57, 70, 0.35); }

/* Formular-Fokus: sanfter roter Glow ----------------------------------------- */
form[data-wa] input:focus,
form[data-wa] select:focus,
form[data-wa] textarea:focus {
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.14);
}

/* ==========================================================================
   EFFEKT-LAYER V3 — Scroll-Parallax, Scan-Linie, Smart-Nav, Velocity-Marquee
   (JS setzt --scy = window.scrollY und --mqs = Scroll-Geschwindigkeit)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  /* Blueprint schwebt beim Scrollen langsamer als der Text (Tiefenwirkung) */
  .plx-soft { transform: translateY(calc(var(--scy, 0) * -0.07px)); will-change: transform; }

  /* Scroll-Hinweis blendet beim Scrollen aus */
  .scroll-cue { opacity: calc(1 - min(1, var(--scy, 0) / 260)); }

  /* Seiten-Watermark driftet beim Scrollen nach rechts */
  .hero-watermark { transform: translateX(calc(var(--scy, 0) * 0.18px)); will-change: transform; }

  /* Marquee kippt mit der Scroll-Geschwindigkeit (Velocity-Skew) */
  .marquee { transform: skewX(calc(var(--mqs, 0) * 1deg)); transition: transform 0.35s var(--ease); }
}

/* Scan-Linie: tastet die Blueprint periodisch ab (Diagnose-Anmutung) -------- */
.scan-wrap { position: absolute; inset: 4% 2% 14% 2%; overflow: hidden; pointer-events: none; }
.scan-wrap i {
  position: absolute;
  top: 0; bottom: 0; left: -3px;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(230, 57, 70, 0.65) 35%, rgba(230, 57, 70, 0.65) 65%, transparent);
  animation: scanX 7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-delay: 2.4s;
  opacity: 0;
}
@keyframes scanX {
  0%, 8% { transform: translateX(0); opacity: 0; }
  14% { opacity: 1; }
  48% { opacity: 1; }
  56%, 100% { transform: translateX(530px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .scan-wrap i { animation: none; } }

/* Smart-Nav: taucht beim Runterscrollen ab, beim Hochscrollen sofort auf ---- */
header.nav-hidden { transform: translateY(-130%); }
body > header { transition: transform 0.5s var(--ease); }

/* Ablauf-Seite: aktiver Schritt leuchtet auf (Scrollspy) -------------------- */
.tl-step > div:first-child { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.tl-step.tl-active > div:first-child { transform: scale(1.18); box-shadow: 0 0 0 6px rgba(193, 18, 31, 0.18), 0 14px 30px -10px rgba(193, 18, 31, 0.5); }
.tl-step .bezel { transition: background 0.5s var(--ease), border-color 0.5s var(--ease); }
.tl-step.tl-active .bezel { border-color: rgba(193, 18, 31, 0.28); background: rgba(193, 18, 31, 0.05); }

/* Formular-Feedback nach dem Absenden --------------------------------------- */
.btn-sent { background: #1da851 !important; }

/* Anspruchs-Check: interaktive Positionen mit Live-Summe --------------------- */
.calc-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
}
.calc-row:hover .calc-switch { border-color: rgba(230, 57, 70, 0.6); }
.calc-switch {
  position: relative;
  flex: none;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.calc-switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.35s var(--ease);
}
.calc-row input:checked + .calc-switch { background: var(--accent); border-color: var(--accent); }
.calc-row input:checked + .calc-switch::after { transform: translateX(18px); }
.calc-row input:focus-visible + .calc-switch { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.calc-amount { transition: opacity 0.35s var(--ease); }
.calc-row:has(input:not(:checked)) .calc-amount,
.calc-row:has(input:not(:checked)) .calc-name { opacity: 0.35; }
.calc-row:has(input:not(:checked)) .calc-amount { text-decoration: line-through; }

/* Punkt-Navigation mit Scrollspy (Desktop, nur Startseite) ------------------- */
.dot-nav {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 52;
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 14px 10px;
  border-radius: 999px;
  background: rgba(10, 24, 48, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.dot-nav button {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), height 0.35s var(--ease);
}
.dot-nav button:hover { background: rgba(255, 255, 255, 0.7); }
.dot-nav button.active { background: var(--accent-2); height: 22px; }
.dot-nav button::after {
  content: attr(data-label);
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(6, 15, 31, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.dot-nav button:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (min-width: 1280px) { .dot-nav { display: flex; } }

/* "Jetzt erreichbar"-Puls ------------------------------------------------------ */
.avail-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2ecc71;
  flex: none;
}
.avail-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 1px solid rgba(46, 204, 113, 0.6);
  animation: availPulse 2.2s ease-out infinite;
}
@keyframes availPulse { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .avail-dot::after { animation: none; opacity: 0; } }

/* ==========================================================================
   SEKTIONEN V4 — Drag-Vergleich, Unfall-Checkliste, Logo-Partikel
   ========================================================================== */

/* Vergleich: animierte Balken ---------------------------------------------- */
.diff-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.diff-name { font-size: 0.9rem; font-weight: 500; color: rgba(255, 255, 255, 0.6); }
@media (max-width: 560px) {
  .diff-head { align-items: baseline; }
  .diff-name { flex: 1 1 100%; }
}
.diff-val { font-family: 'Clash Display', sans-serif; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1; }
.diff-logo { filter: brightness(0) invert(1); }
.diff-track {
  position: relative;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.diff-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 1.3s var(--ease);
}
.diff.in .diff-fill { width: var(--target); }
.diff-fill--muted { background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.32)); }
.diff-fill--accent {
  background: linear-gradient(90deg, #c1121f, #e63946);
  box-shadow: 0 0 24px -2px rgba(230, 57, 70, 0.6);
  transition-delay: 0.25s;
}
/* Markiert im roten Balken den Bereich, der über die Versicherung hinausgeht */
.diff-track .diff-gap {
  position: absolute;
  top: 0; bottom: 0;
  left: 82.6%; right: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.22) 0 6px, transparent 6px 12px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.diff.gap-on .diff-track .diff-gap { opacity: 1; }
.diff-sub { margin-top: 0.6rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); }
.diff-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: default;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.diff-chip strong { color: #fff; }
.diff-chip:hover { background: rgba(230, 57, 70, 0.12); border-color: rgba(230, 57, 70, 0.4); color: #fff; }
.diff-chip-plus { color: var(--accent-2); font-weight: 800; }
@media (prefers-reduced-motion: reduce) {
  .diff-fill { transition: none; }
}

/* Unfall-Checkliste ---------------------------------------------------------- */
.chk {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  border-radius: 1.1rem;
  background: #fff;
  border: 1px solid rgba(10, 24, 48, 0.08);
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.chk:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -22px rgba(10, 24, 48, 0.35); border-color: rgba(193, 18, 31, 0.25); }
.chk-box {
  flex: none;
  width: 26px; height: 26px;
  margin-top: 1px;
  border-radius: 8px;
  border: 2px solid rgba(10, 24, 48, 0.25);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.chk-box svg path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.35s var(--ease) 0.05s;
}
.chk input:checked ~ .chk-box { background: var(--accent); border-color: var(--accent); }
.chk input:checked ~ .chk-box svg path { stroke-dashoffset: 0; }
.chk input:checked ~ .chk-text .chk-title { color: rgba(10, 24, 48, 0.45); }
.chk input:focus-visible ~ .chk-box { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.chk-title { transition: color 0.3s var(--ease); }

.prog-ring { transform: rotate(-90deg); }
.prog-ring .bg { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 7; }
.prog-ring .fg {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--p, 0));
  transition: stroke-dashoffset 0.6s var(--ease);
}
.chk-cta { opacity: 0.45; pointer-events: none; filter: grayscale(0.4); transition: opacity 0.4s var(--ease), filter 0.4s var(--ease); }
.chk-card.done .chk-cta { opacity: 1; pointer-events: auto; filter: none; animation: ctaPulse 1.8s var(--ease) infinite; }
@keyframes ctaPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.45); } 50% { box-shadow: 0 0 0 12px rgba(230, 57, 70, 0); } }
@media (prefers-reduced-motion: reduce) { .chk-card.done .chk-cta { animation: none; } }

/* Logo-Partikel-Bühne --------------------------------------------------------- */
.logo-stage { position: relative; height: 340px; max-width: 680px; margin-inline: auto; cursor: crosshair; }
.logo-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo-stage > img {
  position: absolute;
  inset: 0;
  margin: auto;
  height: 72%;
  width: auto;
  transition: opacity 0.6s var(--ease);
}
.logo-stage.active > img { opacity: 0; }
@media (pointer: coarse) { .hint-fine { display: none; } }

/* ==========================================================================
   THEME- & SPRACH-UMSCHALTER + HELLES THEME
   ========================================================================== */

.nav-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav-icon-btn:hover { background: rgba(255, 255, 255, 0.16); color: #fff; transform: translateY(-1px); }
.nav-icon-btn .lang-label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; }
/* Icon zeigt das ZIEL-Theme: dunkel aktiv → Sonne, hell aktiv → Mond */
.nav-icon-btn .ico-moon { display: none; }
html.theme-light .nav-icon-btn .ico-sun { display: none; }
html.theme-light .nav-icon-btn .ico-moon { display: block; }

/* ---- Helles Theme: kuratierte Overrides der dunklen Flächen -------------- */
html.theme-light { color-scheme: light; }
html.theme-light [class*="bg-navy-950"] { background-color: #e7ecf4 !important; }
html.theme-light [class*="bg-navy-900"] { background-color: #eef2f8 !important; }
html.theme-light [class*="bg-navy-800"] { background-color: #e0e7f1 !important; }
html.theme-light .text-white,
html.theme-light [class*="text-white/"] { color: #16294a !important; }
html.theme-light [class*="border-white/"] { border-color: rgba(10, 24, 48, 0.14) !important; }
html.theme-light [class*="bg-white/"] { background-color: rgba(10, 24, 48, 0.06) !important; }
html.theme-light [class*="bg-accent/"] { background-color: rgba(193, 18, 31, 0.1) !important; }

html.theme-light .bezel--dark { background: rgba(10, 24, 48, 0.05); border-color: rgba(10, 24, 48, 0.09); }
html.theme-light .bezel--dark .bezel-core { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7); }
html.theme-light .nav-scrolled { background: rgba(242, 245, 250, 0.82); box-shadow: 0 10px 40px -20px rgba(10, 24, 48, 0.3); }
html.theme-light .menu-overlay { background: rgba(240, 243, 248, 0.96) !important; }
html.theme-light .burger span { background: #0a1830; }
html.theme-light .nav-icon-btn { border-color: rgba(10, 24, 48, 0.16); background: rgba(10, 24, 48, 0.06); color: rgba(10, 24, 48, 0.85); }
html.theme-light .nav-icon-btn:hover { background: rgba(10, 24, 48, 0.12); color: #0a1830; }

html.theme-light .hero-grid {
  background-image:
    linear-gradient(rgba(10, 24, 48, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 24, 48, 0.05) 1px, transparent 1px);
}
html.theme-light .mesh span { opacity: 0.15; }
/* Dunkle Vignette des Heros im hellen Theme entfernen */
html.theme-light [class*="bg-[radial-gradient"] { background-image: none !important; }
html.theme-light .hero-watermark { -webkit-text-stroke-color: rgba(10, 24, 48, 0.09); }
html.theme-light .footer-wordmark { -webkit-text-stroke-color: rgba(10, 24, 48, 0.13); }
html.theme-light footer:hover .footer-wordmark { -webkit-text-stroke-color: rgba(193, 18, 31, 0.4); }
html.theme-light .marquee--giant .mq-solid { color: rgba(10, 24, 48, 0.92); }
html.theme-light .marquee--giant .mq-outline { -webkit-text-stroke-color: rgba(10, 24, 48, 0.35); }

html.theme-light .blueprint .bp { stroke: rgba(10, 24, 48, 0.55); }
html.theme-light .blueprint .bp--faint { stroke: rgba(10, 24, 48, 0.3); }
html.theme-light .blueprint .bp--accent { stroke: rgba(193, 18, 31, 0.8); }
html.theme-light .dmg-label { background: rgba(255, 255, 255, 0.9); color: rgba(10, 24, 48, 0.8); border-color: rgba(10, 24, 48, 0.15); }
html.theme-light .scan-wrap i { background: linear-gradient(180deg, transparent, rgba(193, 18, 31, 0.5) 35%, rgba(193, 18, 31, 0.5) 65%, transparent); }

/* Logos sind reinweiße Vektoren → im hellen Theme invertieren */
html.theme-light img[src*="assets/logo"] { filter: invert(1); }

html.theme-light .btn-ghost { background: rgba(10, 24, 48, 0.07); color: #0a1830; border-color: rgba(10, 24, 48, 0.16); }
html.theme-light .btn-ghost:hover { background: rgba(10, 24, 48, 0.13); }
html.theme-light .btn-ghost .btn-icon { background: rgba(10, 24, 48, 0.09); }

html.theme-light .cookie-bar .cookie-core { background: rgba(255, 255, 255, 0.94); color: rgba(10, 24, 48, 0.8); border-color: rgba(10, 24, 48, 0.12); }
html.theme-light .cookie-bar strong, html.theme-light .cookie-bar a { color: #0a1830; }
html.theme-light .cookie-essential { background: rgba(10, 24, 48, 0.06); color: #0a1830; border-color: rgba(10, 24, 48, 0.16) !important; }
html.theme-light .action-bar { background: rgba(255, 255, 255, 0.92); border-top-color: rgba(10, 24, 48, 0.1); }
html.theme-light .to-top { background: rgba(255, 255, 255, 0.88); border-color: rgba(10, 24, 48, 0.15); color: #0a1830; }
html.theme-light .to-top:hover { background: #fff; }
html.theme-light .dot-nav { background: rgba(255, 255, 255, 0.6); border-color: rgba(10, 24, 48, 0.12); }
html.theme-light .dot-nav button { background: rgba(10, 24, 48, 0.3); }
html.theme-light .dot-nav button:hover { background: rgba(10, 24, 48, 0.6); }
html.theme-light .dot-nav button.active { background: var(--accent); }
html.theme-light .dot-nav button::after { background: #fff; color: #0a1830; border-color: rgba(10, 24, 48, 0.15); }

html.theme-light .calc-switch { background: rgba(10, 24, 48, 0.14); border-color: rgba(10, 24, 48, 0.2); }
html.theme-light .calc-row input:checked + .calc-switch { background: var(--accent); border-color: var(--accent); }
html.theme-light .diff-name { color: rgba(10, 24, 48, 0.6); }
html.theme-light .diff-track { background: rgba(10, 24, 48, 0.09); }
html.theme-light .diff-fill--muted { background: linear-gradient(90deg, rgba(10, 24, 48, 0.2), rgba(10, 24, 48, 0.3)); }
html.theme-light .diff-sub { color: rgba(10, 24, 48, 0.45); }
html.theme-light .diff-chip { background: rgba(10, 24, 48, 0.05); border-color: rgba(10, 24, 48, 0.12); color: rgba(10, 24, 48, 0.7); }
html.theme-light .diff-chip strong { color: #0a1830; }
html.theme-light .diff-logo { filter: none; }
html.theme-light .prog-ring .bg { stroke: rgba(10, 24, 48, 0.12); }
html.theme-light ::-webkit-scrollbar-track { background: #dde3ec; }
html.theme-light ::-webkit-scrollbar-thumb { background: #a7b4c8; }
html.theme-light .grain::after { opacity: 0.02; }

/* Cursor-Spotlight auf hellen Karten (dezenter als dunkel) ------------------ */
@media (pointer: fine) {
  :where(.bezel:not(.bezel--dark)) { position: relative; }
  .bezel:not(.bezel--dark)::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(193, 18, 31, 0.09), transparent 65%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
  }
  .bezel:not(.bezel--dark):hover::before { opacity: 1; }
  :where(.bezel:not(.bezel--dark) .bezel-core) { position: relative; }
}

/* Cursor-Spotlight auf dunklen Karten (nur Geräte mit Maus) ---------------- */
@media (pointer: fine) {
  /* :where() = Spezifität 0 — überschreibt keine Utility wie .absolute */
  :where(.bezel--dark) { position: relative; }
  .bezel--dark::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(230, 57, 70, 0.22), transparent 65%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
  }
  .bezel--dark:hover::before { opacity: 1; }
  :where(.bezel--dark .bezel-core) { position: relative; }
}

/* Sticky Action-Bar auf Mobile: Anrufen + WhatsApp immer erreichbar -------- */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 56;
  display: none;
  gap: 1px;
  background: rgba(6, 15, 31, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  transition: background 0.3s var(--ease);
}
.action-bar a:active { background: rgba(255, 255, 255, 0.08); }
.action-bar .ab-call { background: var(--accent); }
.action-bar .ab-wa { background: #1da851; }
@media (max-width: 767px) {
  .action-bar { display: flex; }
  .wa-float { display: none; }
  body { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }
}
