/* LOCK · Bewegung 1.0.0
 * Anlass, Dauer, Ruhe: Zustände wechseln in 200 ms; Inhalte erscheinen einmal (Reveal, 600 ms);
 * pro Seite höchstens eine inszenierte Szene (Auslösen/Zerlegen des LOCK, 1200 ms oder scroll-gebunden).
 * prefers-reduced-motion schaltet alles außer dem Zustandswechsel ab (Tokens setzen Dauer auf 0).
 */

/* Reveal: Element bekommt data-reveal, system.js setzt is-visible per IntersectionObserver */
[data-reveal] { opacity: 0; transform: translateY(var(--lk-reveal-distance)); transition: opacity var(--lk-duration-reveal) var(--lk-ease), transform var(--lk-duration-reveal) var(--lk-ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-group] > * { transition-delay: calc(var(--lk-reveal-index, 0) * 70ms); }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* Kartenbilder zoomen leicht beim Hover (Produkt, Welt) – definiert in components.css, hier die Ruhe-Regel */
@media (hover: none) { .lk-product:hover .lk-product__media img, .lk-world:hover .lk-world__img { transform: none; } }

/* Header-Glas: Übergang beim Scrollen (Farbwerte in components.css) */
.lk-header__bar { will-change: background-color; }

/* Bühne: Auslösen (open) und Zerlegen (explode) laufen im three.js-Modell; CSS liefert nur den Lichtwechsel */
.lk-stage[data-state="open"] { background: radial-gradient(60% 60% at 50% 45%, #33452F 0%, #1A211B 60%, #0F1310 100%); transition: background var(--lk-duration-stage) var(--lk-ease-in-out); }

/* Pfeil in Text-Links */
.lk-btn--link .lk-icon--arrow { transition: transform var(--lk-duration) var(--lk-ease); }
.lk-btn--link:hover .lk-icon--arrow { transform: translate(3px, -3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .lk-product:hover .lk-product__media img, .lk-world:hover .lk-world__img { transform: none; }
}

/* ---- Schalter „Animationen anhalten“ (html.lk-motion-paused) -------------------------------------
 * Spiegelt jede Regel unter prefers-reduced-motion: reduce, direkt danach und mit gleicher Spezifität (:where()).
 * Ruhige Fassung per Schalter = ruhige Fassung per System. build.mjs prüft, dass kein Gegenstück fehlt. */
:where(html.lk-motion-paused), :where(html.lk-motion-paused) *, :where(html.lk-motion-paused) *::before, :where(html.lk-motion-paused) *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
:where(html.lk-motion-paused) [data-reveal] { opacity: 1; transform: none; }
:where(html.lk-motion-paused) .lk-product:hover .lk-product__media img, :where(html.lk-motion-paused) .lk-world:hover .lk-world__img { transform: none; }

/* Mechanik-Zeichnungen (.lk-mech: Lupe inline in index.html, Schnitt nach dem Einbetten) stehen in Ruhelage.
 * Von außen gesteuert: SVG und Keyframes bleiben unverändert. Wirkung wie ihre eigene Regel
 * @media (prefers-reduced-motion:reduce){.lk-mech .mv{animation:none}}. Bewusst höhere Spezifität,
 * weil der <style> der Inline-SVG im Dokument später kommt und sonst animation-name zurücksetzt. */
html.lk-motion-paused .lk-mech .mv { animation: none; }

/* Notfall (bewegung-vorab.js): system.js ist nach 2,5 s nicht da. Alles sichtbar, Mega-Menü öffnet per CSS. */
.lk-anim-off [data-reveal] { opacity: 1; transform: none; }
.lk-anim-off .lk-motion { display: none; }           /* ohne system.js tut der Schalter nichts */
html.lk-anim-off .kz-hero__lupe .mv { animation: none; }   /* Lupe ohne eigenen Knopf steht in Ruhelage, bis system.js da ist */
.lk-anim-off .lk-nav__group:hover > .lk-mega,
.lk-anim-off .lk-nav__group:focus-within > .lk-mega { opacity: 1; visibility: visible; clip-path: inset(0 0 0% 0); }

/* Druck: alles, was noch erscheinen sollte, steht auf dem Papier; kein Schalter */
@media print {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .lk-motion { display: none !important; }
}
