/* MLTM Film — V12 CUT B / original 55 / LT finish.
   The human-approved canonical form (mltm-v12-recovery/preview-cut-b/site-preview, approved 2026-09-10,
   "Final bestätigte Form"). Geometry, brand timing and the CTA capture are carried over unchanged from the
   approved surface; only the embedding moved from an iframe into the page. The page scroll drives the
   paused film. Container units on the stage reproduce the iframe viewport exactly. */

.scroll-cinema--canonical {
  min-height: 0;
  padding-bottom: 0;
  overflow: clip;
}

.scroll-cinema--canonical .cinema-intro {
  padding-bottom: clamp(2.5rem, 6vw, 5.5rem);
}

html.canonical-film-active {
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
}

html.canonical-film-active .site-header {
  transform: translateY(-105%);
  pointer-events: none;
}

.canonical-film-track {
  position: relative;
  height: 460svh;
  background: #050806;
  scroll-snap-align: none !important;
  scroll-snap-stop: normal !important;
}

.canonical-film-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: #050806;
}

.film-stage {
  --film-cream: #f4f0e7;
  --film-ink: #050806;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  container-type: size;
  background: radial-gradient(circle at 50% 50%, #11150f 0, #070a07 64%, #020302 100%);
  color: var(--film-cream);
  font-family: "Instrument Sans", "Helvetica Neue", sans-serif;
  font-weight: 400;
}

:where(.film-stage) :where(a, button) {
  font: inherit;
  color: inherit;
}

.film-picture {
  position: relative;
  width: min(100cqw, 177.7778cqh);
  height: min(100cqh, 56.25cqw);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  container-type: inline-size;
  isolation: isolate;
  background: #050705;
}

.film-picture video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  background: #050705;
}

.film-shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, rgba(4, 8, 6, .54) 0, rgba(4, 8, 6, .43) 31%, rgba(4, 8, 6, .11) 49%, transparent 63%);
}

.film-brand {
  position: absolute;
  z-index: 3;
  left: 4.6875%;
  top: 34.58%;
  width: 21.875%;
  pointer-events: none;
}

.film-brand svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.film-mark {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.film-capture {
  position: absolute;
  z-index: 4;
  left: 4.375%;
  top: 58.68%;
  width: 25%;
  height: 11.111%;
  padding: .625cqw;
  opacity: 0;
  pointer-events: none;
}

.film-capture__field {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.film-cta {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 88%;
  min-height: 4.05cqw;
  margin-inline: auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  background: transparent;
  padding: .875cqw .0625cqw .75cqw;
  text-align: center;
  color: inherit;
  text-decoration: none;
  font-family: inherit;
  font-weight: inherit;
  font-size: clamp(8px, 1.016cqw, 26px);
  line-height: 1;
  letter-spacing: .075em;
  white-space: nowrap;
  outline: none;
  transition: color 80ms ease;
}

.film-cta::before,
.film-cta::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.film-cta::before {
  z-index: -2;
  left: 50%;
  top: 50%;
  width: 114%;
  aspect-ratio: 1;
  opacity: 0;
  background: var(--film-cream);
  clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  transform: translate3d(-50%, -50%, 0) scale(.035) rotate(-52deg);
  will-change: transform, opacity;
  transition: transform 520ms cubic-bezier(.2, .74, .18, 1), opacity 55ms linear;
}

.film-cta::after {
  display: none;
}

.film-cta > span {
  position: relative;
  z-index: 1;
}

.film-cta:is(:hover, :focus-visible) {
  color: var(--film-ink);
  transition-delay: 265ms;
}

.film-cta:is(:hover, :focus-visible)::before {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1.16) rotate(0);
  transition-delay: 45ms;
}

.film-cta:focus-visible {
  outline: 1px solid rgba(244, 240, 231, .72);
  outline-offset: .38cqw;
}

.film-arm {
  position: absolute;
  width: 1.75cqw;
  height: 1.25cqw;
  min-width: 20px;
  min-height: 15px;
  pointer-events: none;
  opacity: 0;
  will-change: transform, translate, opacity;
}

.film-arm--left {
  left: 0;
  bottom: 0;
  border-left: 1px solid var(--film-cream);
  border-bottom: 1px solid var(--film-cream);
}

.film-arm--top {
  right: 0;
  top: 0;
  border-right: 1px solid var(--film-cream);
  border-top: 1px solid var(--film-cream);
}

.film-stage.is-resting .film-capture.is-ready .film-arm--left {
  animation: film-focus-left 5.4s cubic-bezier(.45, 0, .3, 1) 1.1s infinite;
}

.film-stage.is-resting .film-capture.is-ready .film-arm--top {
  animation: film-focus-top 5.4s cubic-bezier(.45, 0, .3, 1) 1.1s infinite;
}

.film-capture.is-ready:has(.film-cta:is(:hover, :focus-visible)) .film-arm--left {
  animation: film-cta-snap-left 220ms cubic-bezier(.16, .82, .24, 1) both;
}

.film-capture.is-ready:has(.film-cta:is(:hover, :focus-visible)) .film-arm--top {
  animation: film-cta-snap-top 220ms cubic-bezier(.16, .82, .24, 1) both;
}

.film-replay {
  position: absolute;
  z-index: 5;
  right: 2.2%;
  bottom: 2.7%;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: .55cqw;
  border: 0;
  background: transparent;
  padding: .5cqw;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  font-size: clamp(7px, .58cqw, 14px);
  letter-spacing: .12em;
  transition: opacity 220ms ease;
}

.film-replay svg {
  width: 1.05cqw;
  min-width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
}

.film-replay span {
  display: none;
}

.film-stage.is-resting .film-replay {
  opacity: .2;
  pointer-events: auto;
}

.film-stage.is-resting .film-replay:is(:hover, :focus-visible) {
  opacity: 1;
}

@keyframes film-focus-left {
  0%, 34%, 72%, 100% { translate: 0 0; opacity: 1; }
  51% { translate: -.09cqw .065cqw; opacity: .78; }
}

@keyframes film-focus-top {
  0%, 34%, 72%, 100% { translate: 0 0; opacity: 1; }
  51% { translate: .09cqw -.065cqw; opacity: .78; }
}

@keyframes film-cta-snap-left {
  0% { translate: -.72cqw .44cqw; opacity: .24; }
  72% { translate: .045cqw -.025cqw; opacity: 1; }
  100% { translate: 0 0; opacity: 1; }
}

@keyframes film-cta-snap-top {
  0% { translate: .72cqw -.44cqw; opacity: .24; }
  72% { translate: -.045cqw .025cqw; opacity: 1; }
  100% { translate: 0 0; opacity: 1; }
}

/* Without JavaScript the film cannot be scrubbed: show the opening frame in its own frame, not a dead scroll. */
.no-js .canonical-film-track {
  height: auto;
}

.no-js .canonical-film-sticky {
  position: relative;
  height: auto;
  aspect-ratio: 16 / 9;
}

@media (max-width: 700px) {
  .scroll-cinema--canonical .cinema-intro {
    padding-bottom: 2rem;
  }

  .canonical-film-track {
    height: 390svh;
  }

  .film-capture {
    width: 36.25%;
    padding: .44cqw;
  }

  .film-cta {
    letter-spacing: .055em;
  }

  .film-replay svg {
    width: 18px;
  }
}

/* Below 390 px the approved 8 px CTA copy is wider than its capture field and would be clipped;
   the field widens slightly and the copy tightens so "Verfügbarkeit anfragen" stays whole. */
@media (max-width: 389px) {
  .film-capture {
    width: 41%;
  }

  .film-cta {
    font-size: 7.5px;
    letter-spacing: .03em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .canonical-film-track {
    height: 330svh;
  }

  .film-stage.is-resting * {
    animation: none !important;
  }

  .film-cta,
  .film-cta::before,
  .film-replay {
    transition: none !important;
  }
}
