/* VOMANO Motion — progressive enhancement; ohne .motion-enabled bleibt jeder Inhalt sichtbar. */
:root {
  --motion-ease: cubic-bezier(.22, .78, .26, 1);
  --motion-soft: cubic-bezier(.16, 1, .3, 1);
  --motion-gold: var(--gold, #cda254);
  --motion-ink: var(--ink, #111214);
  --motion-paper: var(--paper, #f5f1e9);
}

html { scroll-behavior: smooth; }
body { overflow-x: clip; }

/* Der Header bleibt als Orientierung und Bewegungssteuerung dauerhaft erreichbar. */
.site-header {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: clamp(22px, 4vw, 64px);
  transition: background-color 320ms ease, box-shadow 320ms ease, backdrop-filter 320ms ease, padding 320ms ease;
}
.site-header.scrolled {
  background: rgba(12, 13, 15, .86);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .16);
  backdrop-filter: blur(16px);
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 37px;
  margin-left: 17px;
  padding: 8px 11px;
  border: 1px solid rgba(205, 162, 84, .55);
  border-radius: 999px;
  color: var(--white, #f8f6f1);
  background: rgba(17, 18, 20, .2);
  font: 600 10px/1 var(--sans, Arial, sans-serif);
  letter-spacing: .06em;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.motion-toggle::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--motion-gold);
  box-shadow: 0 0 0 3px rgba(205, 162, 84, .13);
}
.motion-toggle:hover,
.motion-toggle:focus-visible {
  border-color: var(--motion-gold);
  background: rgba(205, 162, 84, .14);
  outline: none;
}
.motion-toggle[aria-pressed='true']::before { background: #a7a49d; box-shadow: none; }
.motion-toggle:disabled { cursor: not-allowed; opacity: .72; }

/* Immersive Home hero */
.immersive-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: max(720px, 100svh);
  padding: 175px clamp(22px, 6vw, 100px) 70px;
  overflow: clip;
  color: var(--white, #f8f6f1);
  background: var(--motion-ink);
}
.hero-backdrop {
  position: absolute;
  z-index: -4;
  inset: 0;
  overflow: hidden;
  background: #161719;
}
.hero-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 11, 12, .9) 0%, rgba(10, 11, 12, .59) 42%, rgba(10, 11, 12, .23) 100%), linear-gradient(0deg, rgba(9, 10, 11, .54), transparent 48%);
}
.hero-backdrop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
  filter: saturate(.67) contrast(1.08);
  transform: translate3d(0, var(--hero-backdrop-y, 0px), 0) scale(1.07);
  transform-origin: 55% 45%;
  transition: transform 150ms linear;
}
.hero-atmosphere {
  position: absolute;
  z-index: -3;
  width: min(58vw, 860px);
  aspect-ratio: 1;
  right: -16vw;
  top: 7%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(223, 182, 102, .25) 0%, rgba(205, 162, 84, .11) 29%, transparent 69%);
  filter: blur(5px);
}
.hero-orbit {
  position: absolute;
  z-index: -2;
  right: clamp(-210px, -9vw, -70px);
  bottom: clamp(-185px, -12vw, -75px);
  width: clamp(360px, 43vw, 680px);
  aspect-ratio: 1;
  border: 1px solid rgba(225, 189, 121, .35);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(205, 162, 84, .045), 0 0 0 93px rgba(205, 162, 84, .025);
  pointer-events: none;
}
.hero-orbit::before,
.hero-orbit::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(225, 189, 121, .24);
  pointer-events: none;
}
.hero-orbit::before { inset: 14% -9%; border-radius: 48% 52% 42% 58%; }
.hero-orbit::after { inset: -7% 20%; border-radius: 50%; }
.hero-copy {
  position: relative;
  max-width: min(880px, 76vw);
  transform: translate3d(0, var(--hero-copy-y, 0px), 0);
  transition: transform 150ms linear;
}
.immersive-hero h1 {
  max-width: 950px;
  margin: 20px 0 25px;
  font: 600 clamp(56px, 8.1vw, 124px)/.89 var(--serif, Georgia, serif);
  letter-spacing: -.065em;
}
.headline-mask {
  display: block;
  overflow: clip;
  padding: .06em .08em .12em 0;
}
.headline-mask > span { display: block; }
.immersive-hero .hero-copy > p {
  max-width: 550px;
  margin: 0;
  color: rgba(248, 246, 241, .78);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.65;
}
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  margin-top: clamp(40px, 6vh, 76px);
  color: rgba(248, 246, 241, .76);
  font: 600 10px/1 var(--sans, Arial, sans-serif);
  letter-spacing: .17em;
  text-transform: uppercase;
}
.hero-scroll::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--motion-gold);
  transition: width 260ms var(--motion-ease);
}
.hero-scroll::after {
  content: '↓';
  color: var(--motion-gold);
  font-size: 17px;
  line-height: .6;
}
.hero-scroll:hover::before,
.hero-scroll:focus-visible::before { width: 52px; }
.hero-scroll:focus-visible { outline: 1px solid var(--motion-gold); outline-offset: 7px; }

/* Ein ruhiges, semantisch doppelt ausgegebenes Markenlaufband. */
.brand-marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 17px 0 18px;
  color: var(--motion-ink);
  background: var(--motion-gold);
  border-block: 1px solid rgba(17, 18, 20, .15);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(26px, 4vw, 64px);
  width: max-content;
  white-space: nowrap;
  font: 600 clamp(11px, 1.1vw, 14px)/1 var(--sans, Arial, sans-serif);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.marquee-track > * { display: inline-flex; align-items: center; gap: clamp(26px, 4vw, 64px); }
.marquee-track > *::after {
  content: '✦';
  color: rgba(17, 18, 20, .58);
  font-size: .73em;
}

/* Konzeptwechsel: Der Stage-Container wird durch den Parent ersetzt und startet deshalb neu. */
.concept-stage { transform-origin: 50% 18%; }
body.motion-enabled .concept-stage { animation: concept-stage-in 700ms var(--motion-soft) both; }

/* Scroll-geführter Dreischritt. Die Linie nutzt ausschließlich --journey-progress aus motion.js. */
.journey-section { --journey-progress: 0; position: relative; }
.journey-grid {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.08fr);
  gap: clamp(42px, 10vw, 160px);
  align-items: start;
}
.journey-heading {
  position: sticky;
  top: 148px;
  align-self: start;
}
.journey-steps {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: clamp(39px, 5vw, 70px);
}
.journey-steps::before,
.journey-steps::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  pointer-events: none;
}
.journey-steps::before { background: rgba(205, 162, 84, .28); }
.journey-steps::after {
  background: var(--motion-gold);
  transform: scaleY(var(--journey-progress));
  transform-origin: top;
  transition: transform 170ms linear;
}
.journey-step {
  position: relative;
  min-height: 220px;
  padding: 0 0 72px;
  opacity: .52;
  transform: translateX(-10px);
  transition: opacity 420ms ease, transform 560ms var(--motion-ease), color 420ms ease;
}
.journey-step:last-child { min-height: 0; padding-bottom: 0; }
.journey-step::before {
  content: attr(data-step);
  position: absolute;
  left: calc(clamp(39px, 5vw, 70px) * -1);
  top: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(205, 162, 84, .62);
  border-radius: 50%;
  color: var(--motion-gold);
  background: var(--motion-ink, #111214);
  font: 600 8px/1 var(--sans, Arial, sans-serif);
  letter-spacing: 0;
  transform: translateX(-1px);
  transition: color 320ms ease, background-color 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}
.journey-step.is-active { opacity: 1; transform: none; }
.journey-step.is-active::before {
  color: var(--motion-ink);
  border-color: var(--motion-gold);
  background: var(--motion-gold);
  box-shadow: 0 0 0 6px rgba(205, 162, 84, .12);
}
.journey-step h3 { transition: color 320ms ease; }
.journey-step.is-active h3 { color: var(--motion-gold); }

/* Kleine, einzeln lesbare Scroll-Reveals — nie komplette Sektionen oder Rechtstexte. */
.motion-reveal,
.motion-heading { will-change: opacity, transform; }
body.motion-enabled .motion-reveal {
  transition: opacity 680ms var(--motion-ease) var(--motion-delay, 0ms), transform 680ms var(--motion-ease) var(--motion-delay, 0ms);
}
body.motion-enabled .motion-reveal:not(.is-visible) {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
}
body.motion-enabled .motion-heading {
  transition: opacity 760ms var(--motion-soft), transform 760ms var(--motion-soft);
}
body.motion-enabled .motion-heading:not(.is-visible) {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}
body.motion-enabled .headline-mask > span {
  opacity: 0;
  transform: translate3d(0, 112%, 0);
  animation: hero-line-in 900ms var(--motion-soft) forwards;
}
body.motion-enabled .headline-mask:nth-child(2) > span,
body.motion-enabled .headline-mask > span:nth-child(2) { animation-delay: 135ms; }

/* Nur die Elemente mit endloser Bewegung werden außerhalb des Viewports angehalten. */
body.motion-enabled .hero-atmosphere { animation: atmospheric-drift 12s ease-in-out infinite; }
body.motion-enabled .hero-orbit { animation: orbit-drift 22s linear infinite; }
body.motion-enabled .marquee-track { animation: marquee-drift 31s linear infinite; }
.motion-offscreen .hero-atmosphere,
.motion-offscreen .hero-orbit,
.motion-offscreen .marquee-track,
body.motion-document-hidden .hero-atmosphere,
body.motion-document-hidden .hero-orbit,
body.motion-document-hidden .marquee-track { animation-play-state: paused !important; }

/* Desktop-only: sichtbares Spotlight bei echtem Cursor, keine Cursor-Ersetzung. */
.motion-spotlight {
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  pointer-events: none;
  opacity: .68;
  background: radial-gradient(circle, rgba(225, 189, 121, .14) 0%, rgba(205, 162, 84, .06) 29%, transparent 70%);
  filter: blur(3px);
  mix-blend-mode: screen;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  body.motion-enabled .concept-card.motion-tilt,
  body.motion-enabled .price-card.motion-tilt,
  body.motion-enabled .people-grid article.motion-tilt {
    transform: perspective(900px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) translate3d(0, -7px, 0) scale(1.012);
    box-shadow: 0 27px 56px rgba(0, 0, 0, .2);
  }
  body.motion-enabled .concept-card.motion-tilt::after,
  body.motion-enabled .price-card.motion-tilt::after,
  body.motion-enabled .people-grid article.motion-tilt::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .13), transparent 38%);
  }
  body.motion-enabled .button.motion-magnetic,
  body.motion-enabled .nav-cta.motion-magnetic {
    transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0);
  }
  body.motion-enabled .button.motion-magnetic:hover,
  body.motion-enabled .nav-cta.motion-magnetic:hover {
    transform: translate3d(var(--mag-x, 0px), calc(var(--mag-y, 0px) - 3px), 0);
  }
}

/* Rückkehr zum Anfang — erst nach einem sinnvollen Scrollweg sichtbar. */
.movement-backtop {
  position: fixed;
  z-index: 35;
  right: clamp(16px, 2.3vw, 34px);
  bottom: clamp(16px, 2.3vw, 34px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(205, 162, 84, .75);
  color: var(--white, #f8f6f1);
  background: rgba(17, 18, 20, .9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  font: 600 10px/1 var(--sans, Arial, sans-serif);
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 12px, 0);
  transition: opacity 240ms ease, transform 240ms var(--motion-ease), background-color 180ms ease;
}
.movement-backtop.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.movement-backtop:hover,
.movement-backtop:focus-visible { background: var(--motion-gold); color: var(--motion-ink); outline: none; }
.movement-backtop > span[aria-hidden='true'] { font: 18px/1 var(--serif, Georgia, serif); }

/* Benutzerpause: Animationen frieren ein, alle Inhalte bleiben sofort sichtbar und stabil. */
body.motion-paused .hero-atmosphere,
body.motion-paused .hero-orbit,
body.motion-paused .marquee-track { animation-play-state: paused !important; }
body.motion-paused .hero-backdrop img,
body.motion-paused .hero-copy,
body.motion-paused .hero-orbit,
body.motion-paused .marquee-track,
body.motion-paused .concept-stage,
body.motion-paused .motion-reveal,
body.motion-paused .motion-heading,
body.motion-paused .headline-mask > span,
body.motion-paused .journey-step {
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
  transition-duration: 0ms !important;
}
body.motion-paused .journey-steps::after,
body.motion-paused .journey-step::before,
body.motion-paused .journey-step h3 {
  transform: none !important;
  transition: none !important;
}
body.motion-paused .motion-spotlight { display: none; }

@keyframes hero-line-in {
  from { opacity: 0; transform: translate3d(0, 112%, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes atmospheric-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(.94); opacity: .76; }
  50% { transform: translate3d(-22px, 16px, 0) scale(1.06); opacity: 1; }
}
@keyframes orbit-drift {
  from { transform: translate3d(0, var(--hero-orbit-y, 0px), 0) rotate(0deg); }
  to { transform: translate3d(0, var(--hero-orbit-y, 0px), 0) rotate(360deg); }
}
@keyframes marquee-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes concept-stage-in {
  from { opacity: 0; transform: translate3d(0, 17px, 0) scale(.987); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .site-header { padding-inline: 22px; }
  .motion-toggle {
    position: absolute;
    right: 67px;
    margin: 0;
    padding: 8px 9px;
  }
  .motion-toggle-label { display: none; }
  .immersive-hero {
    min-height: max(660px, 100svh);
    padding: 142px 22px 55px;
  }
  .hero-backdrop::after { background: linear-gradient(90deg, rgba(10, 11, 12, .84), rgba(10, 11, 12, .43)), linear-gradient(0deg, rgba(9, 10, 11, .66), transparent 63%); }
  .hero-copy { max-width: 100%; }
  .immersive-hero h1 { font-size: clamp(52px, 13.5vw, 82px); }
  .hero-atmosphere { width: 105vw; right: -45vw; top: 10%; }
  .hero-orbit { width: 460px; right: -240px; bottom: -160px; }
  .journey-grid { grid-template-columns: 1fr; gap: 47px; }
  .journey-heading { position: static; }
  .journey-step { min-height: 180px; padding-bottom: 58px; }
}

@media (max-width: 560px) {
  .immersive-hero { min-height: 620px; }
  .immersive-hero h1 { font-size: clamp(48px, 14vw, 68px); letter-spacing: -.06em; }
  .hero-scroll { margin-top: 38px; }
  .brand-marquee { padding-block: 15px; }
  .journey-steps { padding-left: 43px; }
  .journey-step::before { left: -43px; }
  .journey-step { min-height: 164px; }
  .movement-backtop-label { display: none; }
  .movement-backtop { width: 42px; justify-content: center; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-backdrop img,
  .hero-copy,
  .hero-orbit,
  .marquee-track,
  .concept-stage,
  .motion-reveal,
  .motion-heading,
  .headline-mask > span,
  .journey-step {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    transition-duration: 0ms !important;
  }
  .journey-steps::after,
  .journey-step::before,
  .journey-step h3 {
    transform: none !important;
    transition: none !important;
  }
  .hero-atmosphere,
  .hero-orbit,
  .marquee-track,
  .motion-spotlight { animation: none !important; display: none; }
}

/* Integrationskorrekturen: Inhalte im Fluss, Dekorationen lokal begrenzt. */
.skip-link { position: fixed; z-index: 100; top: 12px; left: 20px; padding: 13px 18px; background: var(--paper); color: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.concept-stage { overflow: clip; }
.concept-switcher button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.concept-switcher button[aria-pressed="true"] .number { color: var(--gold-light); }
.hero-scroll { margin-top: 0; }
.hero-scroll::after { content: none; }
.motion-toggle { min-height: 44px; }
.motion-toggle-icon { font-size: 0; }
.motion-toggle[aria-pressed="true"] .motion-toggle-icon::before { left: 5px; top: 3px; width: 0; height: 0; background: transparent; border-left: 4px solid currentColor; border-top: 3px solid transparent; border-bottom: 3px solid transparent; }
.motion-toggle[aria-pressed="true"] .motion-toggle-icon::after { display: none; }
.motion-toggle:focus-visible, .movement-backtop:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }
.journey-step::before { content: ''; }
@media (max-width: 900px) {
  .immersive-hero { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 36px; min-height: max(760px, 100svh); padding: 140px 22px 42px; }
  .hero-bottom { position: relative; inset: auto; margin-top: 8px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
  .hero-scroll { margin-top: 0; min-height: 44px; }
  .hero-copy { max-width: 100%; }
}
@media (max-width: 560px) {
  .immersive-hero { min-height: max(740px, 95svh); gap: 24px; padding: 130px 22px 30px; }
  .hero-bottom { display: flex; align-items: start; flex-direction: column; gap: 6px; }
  .hero-index { max-width: 100%; }
}
body.motion-paused .marquee-track { display: flex !important; width: 100%; gap: 0; }
body.motion-paused .marquee-group { flex-wrap: wrap; white-space: normal; justify-content: center; width: 100%; }
body.motion-paused .marquee-group[aria-hidden="true"] { display: none; }
body.motion-paused .marquee-group::after { content: none; }
body.motion-paused :is(.button, .nav-cta, .concept-card, .price-card, .movement-backtop) { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { display: flex !important; width: 100%; gap: 0; }
  .marquee-group { flex-wrap: wrap; justify-content: center; white-space: normal; width: 100%; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee-group::after { content: none; }
}

@media (min-width: 901px) {
  .immersive-hero { padding-bottom: 150px; }
}
