/* =========================================================
   Wertsicherung — Scroll- & Effekt-Layer (mobil-sicher)
   Ergänzt lp-neu.css + lp-marcus-v2.css. Reine Additiv-Schicht.
   Grundsätze: GPU-Transforms, kein background-attachment:fixed,
   Parallax/Tilt nur Desktop, voller reduced-motion-Fallback.
   ========================================================= */

/* Kein horizontaler Überlauf durch seitliche Reveals */
html, body { overflow-x: clip; }

/* ---------------------------------------------------------
   1) Scroll-Fortschrittsbalken (oben, Gold)
   --------------------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm, #E4C98A));
  box-shadow: 0 1px 6px rgba(188,172,124,0.45);
  will-change: transform; pointer-events: none;
}

/* ---------------------------------------------------------
   2) Kompakte Sticky-Topbar (erscheint nach dem Hero)
   --------------------------------------------------------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  background: rgba(15,15,17,0.82);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 10px 30px rgba(0,0,0,0.28);
  transform: translateY(-100%);
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.topbar.show { transform: translateY(0); }
.topbar-in {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  height: 64px;
}
.topbar-wm {
  font-family: var(--display); text-transform: uppercase; color: #fff;
  font-size: clamp(15px, 2.2vw, 19px); letter-spacing: 1px; font-weight: 700;
}
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  color: rgba(255,255,255,0.82); font-variant-numeric: tabular-nums;
  transition: color .2s;
}
.topbar-phone:hover { color: #fff; }
.topbar-phone svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.topbar-cta { padding: 12px 22px; font-size: 11px; letter-spacing: 1.6px; }
@media (max-width: 600px){
  .topbar-in { height: 56px; }
  .topbar-phone span { display: none; }   /* nur Icon auf kleinen Screens */
  .topbar-cta { padding: 11px 18px; }
}

/* ---------------------------------------------------------
   3) Back-to-top Button
   --------------------------------------------------------- */
.to-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 140;
  width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--primary); color: var(--accent);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(24,24,24,0.28);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .35s ease, transform .35s cubic-bezier(.16,1,.3,1), background .25s, color .25s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: var(--primary); transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }
/* Auf Mobil ist die untere Sticky-CTA aktiv → Button ausblenden (keine Überlappung) */
@media (max-width: 760px){ .to-top { display: none; } }

/* ---------------------------------------------------------
   4) Parallax — NUR Desktop, sanfter Versatz
   --------------------------------------------------------- */
@media (min-width: 901px) and (hover: hover) and (pointer: fine){
  [data-parallax] { will-change: transform; }
}

/* ---------------------------------------------------------
   5) Erweiterte Reveals (eigenes .fx-System, getrennt von .rv)
   --------------------------------------------------------- */
.fx {
  opacity: 0; will-change: opacity, transform;
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.fx-up    { transform: translateY(34px); }
.fx-left  { transform: translateX(-40px); }
.fx-right { transform: translateX(40px); }
.fx-zoom  { transform: scale(.92); }
.fx.in { opacity: 1; transform: none; }

/* Stagger: Container bekommt .fx-stagger, Kinder ziehen verzögert ein */
.fx-stagger > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.fx-stagger.in > * { opacity: 1; transform: none; }

/* Gold-Divider, der beim Einscrollen aufzieht */
.gold-divider {
  position: relative; height: 1px; margin: 0 auto; max-width: var(--maxw);
  background: var(--line-soft);
}
.gold-divider::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, transparent, var(--accent) 18%, var(--accent-warm,#E4C98A) 50%, var(--accent) 82%, transparent);
  transition: transform 1.2s cubic-bezier(.16,1,.3,1);
}
.gold-divider.in::after { transform: scaleX(1); }

/* ---------------------------------------------------------
   6) Presse-Logos — nahtloser Endlos-Marquee
   --------------------------------------------------------- */
.media-marquee {
  margin-top: 44px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
}
.mm-track { display: flex; align-items: center; width: max-content; }
.media-marquee.run .mm-track { animation: mmScroll 38s linear infinite; }
.media-marquee.run:hover .mm-track { animation-play-state: paused; }
@keyframes mmScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.media-marquee .ml {
  display: inline-flex; align-items: center; gap: 16px; padding: 0 34px; white-space: nowrap;
  font-family: Georgia, 'Times New Roman', serif; font-weight: 700;
  font-size: clamp(17px, 1.7vw, 23px); letter-spacing: .2px;
  color: rgba(24,24,24,0.38); transition: color .25s;
}
.media-marquee .ml::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: .55; flex: none;
}
.media-marquee .ml:hover { color: var(--text-primary); }
/* Fallback ohne Animation: zentriert umbrechen */
.media-marquee.static { -webkit-mask-image: none; mask-image: none; }
.media-marquee.static .mm-track { width: auto; flex-wrap: wrap; justify-content: center; gap: 14px 6px; }

/* ---------------------------------------------------------
   7) In-View Ken-Burns Zoom (z. B. Hero-Portrait)
   --------------------------------------------------------- */
.hp-frame { overflow: hidden; }
img.zoom-in {
  transform: scale(1.09); will-change: transform;
  transition: transform 1.5s cubic-bezier(.16,1,.3,1);
}
img.zoom-in.in { transform: scale(1); }

/* ---------------------------------------------------------
   8) Gold-Sheen, der einmalig über das dunkle Panel streicht
   --------------------------------------------------------- */
.pillar.feat { position: relative; overflow: hidden; }
.pillar.feat::after {
  content: ""; position: absolute; top: 0; left: -65%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(228,213,168,0.22), transparent);
  transform: skewX(-18deg); pointer-events: none; z-index: 1;
}
.pillar.feat.in::after { animation: featSheen 1.5s ease .35s 1; }
@keyframes featSheen { from { left: -65%; } to { left: 135%; } }

/* ---------------------------------------------------------
   9) Hero-Einblendung beim Laden (gestaffelt)
   --------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference){
  .hero-intro > * { opacity: 0; animation: heroRise .9s cubic-bezier(.16,1,.3,1) forwards; }
  .hero-intro > *:nth-child(1){ animation-delay: .08s; }
  .hero-intro > *:nth-child(2){ animation-delay: .18s; }
  .hero-intro > *:nth-child(3){ animation-delay: .30s; }
  .hero-intro > *:nth-child(4){ animation-delay: .42s; }
  .hero-portrait { opacity: 0; animation: heroRise 1s cubic-bezier(.16,1,.3,1) .26s forwards; }
}
@keyframes heroRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------
   Reduced-Motion: alles ruhig, sofort sichtbar
   --------------------------------------------------------- */
/* ---------------------------------------------------------
   10) Eyebrow — Goldlinie zieht beim Reveal auf
   --------------------------------------------------------- */
.sec-head .eyebrow,
.vh-left .eyebrow,
.kids-text .eyebrow {
  position: relative; display: inline-block; padding-bottom: 12px;
}
.sec-head .eyebrow::after,
.vh-left .eyebrow::after,
.kids-text .eyebrow::after {
  content: ""; position: absolute; left: 50%; bottom: 0; height: 2px; width: 34px;
  transform: translateX(-50%) scaleX(0); transform-origin: 50% 50%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: transform .9s cubic-bezier(.16,1,.3,1) .15s;
}
.vh-left .eyebrow::after,
.kids-text .eyebrow::after { left: 0; transform: translateX(0) scaleX(0); transform-origin: 0 50%; }
.sec-head .eyebrow.in::after { transform: translateX(-50%) scaleX(1); }
.vh-left .eyebrow.in::after,
.kids-text .eyebrow.in::after { transform: translateX(0) scaleX(1); }

/* ---------------------------------------------------------
   11) Atmende Gold-Aura hinter dem Hero-Portrait
   --------------------------------------------------------- */
.hp-figure::before {
  content: ""; position: absolute; left: 50%; top: 46%;
  width: 118%; aspect-ratio: 1/1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(188,172,124,0.30) 0%, rgba(188,172,124,0.10) 38%, transparent 66%);
  filter: blur(14px); z-index: -1; pointer-events: none;
  animation: auraBreath 7s ease-in-out infinite;
}
@keyframes auraBreath {
  0%, 100% { opacity: .65; transform: translate(-50%, -50%) scale(.97); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.04); }
}

/* ---------------------------------------------------------
   12) Magnetische Haupt-CTAs — nur Desktop
   --------------------------------------------------------- */
@media (min-width: 901px) and (hover: hover) and (pointer: fine){
  [data-magnetic] { transition: transform .35s cubic-bezier(.16,1,.3,1); will-change: transform; }
}

/* ---------------------------------------------------------
   13) Section-Headlines — feines De-Blur beim Reveal (Desktop)
   --------------------------------------------------------- */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference){
  .sec-head .h2.rv { filter: blur(7px); transition: filter 1s cubic-bezier(.16,1,.3,1); }
  .sec-head .h2.rv.in { filter: blur(0); }
}

/* ---------------------------------------------------------
   Reduced-Motion: alles ruhig, sofort sichtbar
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce){
  .scroll-progress { display: none; }
  .topbar { transition: none; }
  .to-top { transition: opacity .2s ease; }
  .fx, .fx-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .gold-divider::after { transform: scaleX(1) !important; transition: none !important; }
  [data-parallax] { transform: none !important; }
  img.zoom-in { transform: none !important; transition: none !important; }
  .pillar.feat::after { display: none !important; }
  .media-marquee.run .mm-track { animation: none !important; }
  .sec-head .eyebrow::after, .vh-left .eyebrow::after, .kids-text .eyebrow::after { transform: translateX(-50%) scaleX(1) !important; transition: none !important; }
  .vh-left .eyebrow::after, .kids-text .eyebrow::after { transform: translateX(0) scaleX(1) !important; }
  .hp-figure::before { animation: none !important; }
  [data-magnetic] { transform: none !important; }
}
