/* ================= Tiefe + Liquid Glass (2026-10-13, Michaels Wunsch) =================
   Bewusste Ausnahme von „keine Schatten, keine Verläufe“ aus dem Design System:
   Glasflächen mit Lichtkante, weiche Tiefenschatten, Lichter im Hintergrund mit Parallax,
   Glanz folgt der Maus, Karten kippen leicht. Alles nur transform/opacity, Reduced Motion = still. */

@property --glass-tint { syntax: "<color>"; inherits: true; initial-value: rgba(30, 30, 34, .55); }
@property --glass-edge { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, .10); }
@property --glass-hi   { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, .16); }
@property --glass-lo   { syntax: "<color>"; inherits: true; initial-value: rgba(0, 0, 0, .35); }
@property --shade      { syntax: "<color>"; inherits: true; initial-value: rgba(0, 0, 0, .55); }
@property --orb-a      { syntax: "<color>"; inherits: true; initial-value: #ff5a1f; }
@property --orb-b      { syntax: "<color>"; inherits: true; initial-value: #f5f2ec; }

:root {
  --glass-tint: rgba(30, 30, 34, .55);
  --glass-edge: rgba(255, 255, 255, .10);
  --glass-hi: rgba(255, 255, 255, .16);
  --glass-lo: rgba(0, 0, 0, .35);
  --shade: rgba(0, 0, 0, .55);
  --orb-a: #ff5a1f;
  --orb-b: #f5f2ec;
  --glass-blur: blur(22px) saturate(170%);
  --depth-1: 0 1px 2px var(--glass-lo), 0 18px 40px -18px var(--shade);
  --depth-2: 0 2px 6px var(--glass-lo), 0 40px 80px -30px var(--shade);
}
.theme-light {
  --glass-tint: rgba(255, 255, 255, .58);
  --glass-edge: rgba(255, 255, 255, .85);
  --glass-hi: rgba(255, 255, 255, .95);
  --glass-lo: rgba(60, 38, 20, .07);
  --shade: rgba(90, 50, 20, .20);
  --orb-a: #ff7a3d;
  --orb-b: #d9c3a5;
}

body {
  transition: --ground .9s var(--ease-out), --surface .9s var(--ease-out), --surface-alt .9s var(--ease-out),
              --ink .9s var(--ease-out), --ink-muted .9s var(--ease-out), --line .9s var(--ease-out),
              --line-strong .9s var(--ease-out), --signal-ink .9s var(--ease-out), --signal-hover .9s var(--ease-out), --focus .9s var(--ease-out),
              --glass-tint .9s var(--ease-out), --glass-edge .9s var(--ease-out), --glass-hi .9s var(--ease-out),
              --glass-lo .9s var(--ease-out), --shade .9s var(--ease-out), --orb-a .9s var(--ease-out), --orb-b .9s var(--ease-out);
}
@media (prefers-reduced-motion: reduce) { body { transition-duration: .01ms; } }

/* ---------- Hintergrund: Lichter auch im hellen Teil, wandern beim Scrollen mit (Parallax) ---------- */
.theme-light .ambient { opacity: 1; }
.ambient i:nth-child(1) { background: var(--orb-a); translate: 0 calc(var(--p, 0) * -0.6px); }
.ambient i:nth-child(2) { background: var(--orb-b); translate: 0 calc(var(--p, 0) * -1.1px); }
.ambient i:nth-child(3) { background: var(--orb-a); translate: 0 calc(var(--p, 0) * -0.35px); }
.theme-light .ambient i:nth-child(1) { opacity: .16; }
.theme-light .ambient i:nth-child(2) { opacity: .35; display: block; }
.theme-light .ambient i:nth-child(3) { opacity: .10; }
.theme-light .ambient::after { opacity: .035; mix-blend-mode: multiply; }
.theme-light .ambient.has-cursor .ambient__cursor { opacity: .10; }

/* ---------- Liquid Glass ---------- */
.card, .pain__card, .offer__window, .kicker, .faq__list, .flow__editor { position: relative; }
.card, .pain__card, .offer__window, .kicker, .faq__list, .menu, .flow__editor {
  background: var(--glass-tint);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 -1px 0 var(--glass-lo), var(--depth-1);
}
.kicker { box-shadow: inset 0 1px 0 var(--glass-hi), var(--depth-1); }
.faq__list { border-radius: var(--radius-lg); padding: 0 var(--space-4); }
.faq__item:last-child { border-bottom: 0; }
/* Leistungen-Menü: deckend statt Glas (Blur greift in der Kopfzeile nicht, sonst scheint Text durch) */
@media (min-width: 1200px) {
  .menu {
    background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: inset 0 1px 0 var(--glass-hi), 0 24px 48px -12px rgba(0, 0, 0, .6);
  }
}

/* Glanz, der der Maus folgt (wie Licht auf einer Glasscheibe) */
.has-tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--glass-hi), transparent 45%);
  opacity: 0; mix-blend-mode: soft-light; transition: opacity 400ms var(--ease-out);
}
.has-tilt:hover::after { opacity: 1; }

/* Leichtes 3D-Kippen (JS setzt --rx/--ry) */
.has-tilt, .js .reveal.has-tilt.is-in {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.has-tilt.is-tilting, .js .reveal.has-tilt.is-in.is-tilting { transition: transform 160ms var(--ease-out), border-color var(--dur-fast); transition-delay: 0s; }
.has-tilt:not(.is-tilting) { transition: transform 600ms var(--ease-out), opacity var(--dur-reveal) var(--ease-out), border-color var(--dur-fast); }

/* ---------- Kopfzeile aus Glas ---------- */
.site-header {
  background: color-mix(in srgb, var(--ground) 60%, transparent);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.site-header.is-scrolled { border-bottom-color: var(--glass-edge); box-shadow: 0 10px 30px -20px var(--shade); }

/* ---------- Buttons mit Lichtkante und Tiefe ---------- */
.btn { transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.btn--signal { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 12px 28px -12px rgba(255, 90, 31, .75); }
.btn--ink    { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 24px -12px var(--shade); }
.btn--quiet  { background: var(--glass-tint); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: inset 0 1px 0 var(--glass-hi); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }

/* ---------- Medien mit Tiefe ---------- */
.hero__reel .vframe, .about-me__photo img, .offer__media .vframe { box-shadow: var(--depth-2); }
.hero__reel.has-tilt::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  .has-tilt, .js .reveal.has-tilt.is-in { transform: none !important; }
  .btn:hover { transform: none; }
}
.about-me__photo { position: relative; border-radius: var(--radius-lg); }
