/* SIEMEDIA – Stylesheet
   Schwarz und Weiß als Basis, Gold nur als Akzent (Buttons, Linien, Hover, Gold auf Schwarz).
   Ruhiges 12-Spalten-Raster in einem festen Inhaltsrahmen. */

/* ───────── Schriften (lokal gehostet) ───────── */
@font-face {
  font-family: "Libre Franklin";
  src: url("../fonts/libre-franklin-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ───────── Tokens ───────── */
:root {
  --black: #0b0b0b;
  --graphite: #1a1a1a;
  --white: #ffffff;
  --stone: #f1f0ed;
  --gold: #d4af5f;        /* modernisiert von #C8A84E */
  --gold-deep: #9a7a2e;   /* Linien auf hellem Grund */

  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --script: "Courier Prime", "Courier New", Courier, ui-monospace, monospace;

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --step-lead: clamp(1.1875rem, 1.05rem + 0.55vw, 1.5rem);
  --step-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --step-head: clamp(2.125rem, 1.4rem + 2.8vw, 3.75rem);
  --step-display: clamp(2.75rem, 1.2rem + 5.4vw, 6.75rem);

  --wrap: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --header-h: 4.75rem;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --intro-delay: 0s;
}
.intro:not(.intro-skipped) { --intro-delay: 2.45s; }

/* ───────── Farbfelder ───────── */
.f-white, .f-stone, .f-black, .f-graphite { background-color: var(--bg); color: var(--fg); }
.f-white {
  --bg: var(--white); --fg: var(--black); --muted: #555; --rule: #e3e2df;
  --line: var(--gold-deep); --focus: var(--black); --err: #b3261e;
  --btn-hover-bg: var(--black); --btn-hover-fg: var(--white);
}
.f-stone {
  --bg: var(--stone); --fg: var(--black); --muted: #4f4f4f; --rule: #d9d7d2;
  --line: var(--gold-deep); --focus: var(--black); --err: #b3261e;
  --btn-hover-bg: var(--black); --btn-hover-fg: var(--white);
}
.f-black {
  --bg: var(--black); --fg: var(--white); --muted: #a8a8a8; --rule: #2a2a2a;
  --line: var(--gold); --focus: var(--gold); --err: #ff8a80;
  --btn-hover-bg: var(--white); --btn-hover-fg: var(--black);
}
.f-graphite {
  --bg: var(--graphite); --fg: var(--white); --muted: #ababab; --rule: #333;
  --line: var(--gold); --focus: var(--gold);
  --btn-hover-bg: var(--white); --btn-hover-fg: var(--black);
}

/* ───────── Basis ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--serif);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
strong { font-weight: 600; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--black); }
:focus-visible { outline: 3px solid var(--focus, var(--black)); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: 0.75rem; z-index: 100;
  transform: translateY(-200%);
  background: var(--gold); color: var(--black);
  font: 700 1rem/1 var(--sans); padding: 0.9rem 1.2rem; text-decoration: none;
}
.skip-link:focus-visible { transform: none; outline-color: var(--black); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.8) calc(var(--section) * 0.55); }
.section--flush-top { padding-top: 0; }

.t-head { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.03em; }
.t-lead { font-size: var(--step-lead); line-height: 1.45; }
.muted { color: var(--muted); }

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head p { max-width: 40ch; }
@media (min-width: 60em) {
  .section-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
  .section-head h2 { grid-column: 1 / 8; }
  .section-head p { grid-column: 8 / 13; }
}

/* ───────── Buttons & Links ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  min-height: 3.25rem; padding: 0.9em 1.5em;
  border: 0; border-radius: 2px;
  font: 700 1rem/1.1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--small { min-height: 2.75rem; padding: 0.7em 1.15em; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.btn__arrow { width: 1.1em; height: 1.1em; flex: none; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover { background: var(--btn-hover-bg); color: var(--btn-hover-fg); }
  .btn:hover .btn__arrow { transform: translateX(3px); }
}
.btn[disabled] { cursor: progress; opacity: 0.7; }

.link {
  font-family: var(--sans); font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 0.3em; text-decoration-color: var(--line);
  transition: text-decoration-color 200ms ease, color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .f-black .link:hover { color: var(--gold); text-decoration-color: var(--gold); }
}

/* ───────── Kopfzeile ───────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  transition: background-color 250ms ease, box-shadow 250ms ease;
}
.site-header.is-scrolled { background: var(--bg); box-shadow: 0 1px 0 var(--rule); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand__logo { width: 4.25rem; height: auto; aspect-ratio: 863 / 570; flex: none; transition: color 200ms ease; }
.footer__brand .brand__logo { width: 6rem; }
@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand__logo { color: var(--gold); }
  .f-white .brand:hover .brand__logo { color: var(--gold-deep); }
}
.nav__toggle {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.25rem;
  border: 0; background: none; cursor: pointer; position: relative; z-index: 60;
  font: 700 1rem/1 var(--sans);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; text-decoration-color: var(--line);
}
.site-nav__list a { font-family: var(--sans); font-weight: 600; text-decoration: none; }

@media (max-width: 59.99em) {
  .site-nav {
    position: fixed; inset: 0; z-index: 55;
    display: flex; flex-direction: column; justify-content: center;
    padding: 6rem var(--pad) 3rem;
    background: var(--black); color: var(--white); --focus: var(--gold);
    visibility: hidden; opacity: 0;
    transition: opacity 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transition: opacity 240ms var(--ease-out), visibility 0s; }
  .site-nav__list { display: grid; gap: 0.5rem; }
  .site-nav__list a { display: block; padding: 0.35rem 0; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
  .site-nav__cta { margin-top: 2.5rem; align-self: flex-start; }
  html.menu-open { overflow: hidden; }
  html.menu-open .nav__toggle { color: var(--white); text-decoration-color: var(--gold); }
  @media (prefers-reduced-motion: no-preference) {
    .site-nav__list li { transform: translateY(8px); opacity: 0; transition: transform 300ms var(--ease-out), opacity 300ms var(--ease-out); }
    .site-nav.is-open .site-nav__list li { transform: none; opacity: 1; }
    .site-nav.is-open .site-nav__list li:nth-child(2) { transition-delay: 40ms; }
    .site-nav.is-open .site-nav__list li:nth-child(3) { transition-delay: 80ms; }
    .site-nav.is-open .site-nav__list li:nth-child(4) { transition-delay: 120ms; }
  }
}
@media (min-width: 60em) {
  .nav__toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 2.25rem; }
  .site-nav__list { display: flex; gap: 2rem; }
  .site-nav__list a {
    display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem;
    text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.5em;
    text-decoration-color: transparent;
    transition: text-decoration-color 200ms ease, text-underline-offset 200ms var(--ease-out);
  }
  .site-nav__list a:hover, .site-nav__list a[aria-current="page"] { text-decoration-color: var(--line); text-underline-offset: 0.35em; }
}

/* ───────── Hero ───────── */
.hero {
  padding-top: calc(var(--header-h) + clamp(3rem, 8vh, 7rem));
  padding-bottom: clamp(3.5rem, 8vh, 6.5rem);
  min-height: min(100svh, 60rem);
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: clip;
}
.hero__grid { display: grid; gap: 2.5rem; position: relative; z-index: 1; }
/* Das SM-Zeichen als feine Linie im Hintergrund – zeichnet sich beim Laden selbst */
.hero__mark {
  position: absolute; z-index: 0; pointer-events: none;
  top: calc(var(--header-h) + 1.5rem);
  right: calc(var(--pad) - 1rem);
  width: min(92vw, 34rem); height: auto;
  fill: none; stroke: var(--gold); stroke-width: 5; stroke-linejoin: round;
  opacity: 0.45;
}
@media (min-width: 60em) {
  .hero__mark {
    top: calc(var(--header-h) + clamp(1rem, 4vh, 3rem));
    right: max(var(--pad), calc((100% - var(--wrap)) / 2));
    width: min(58vw, 50rem); stroke-width: 2.5;
  }
}
.hero__title { font-size: var(--step-display); line-height: 1.02; letter-spacing: -0.035em; }
.hero__line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__line > span { display: inline-block; }
.hero__rule { display: block; width: 5rem; height: 3px; background: var(--gold); transform-origin: left; margin-top: -0.5rem; }
.hero__lead { font-size: var(--step-lead); line-height: 1.45; max-width: 36ch; color: #d9d9d9; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.hero__actions .link { min-height: 44px; display: inline-flex; align-items: center; }
.hero__services { border-top: 1px solid var(--rule); }
.hero__services a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--rule); text-decoration: none;
  transition: color 200ms ease;
}
.hero__service-name { font: 700 var(--step-h3)/1.2 var(--sans); letter-spacing: -0.01em; }
.hero__service-note { font: 500 0.9375rem/1.3 var(--sans); color: var(--muted); text-align: right; }
@media (hover: hover) and (pointer: fine) {
  .hero__services a:hover .hero__service-name { color: var(--gold); }
}
@media (min-width: 60em) {
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.75rem; align-items: end; }
  .hero__title, .hero__rule { grid-column: 1 / -1; }
  .hero__intro { grid-column: 1 / 7; }
  .hero__services { grid-column: 8 / 13; }
}
@media (max-width: 47.99em) {
  .hero__actions .btn { width: 100%; }
}

/* ───────── Szene 02 · Letterbox ───────── */
.opening__frame { padding-block: calc(var(--section) * 1.15) calc(var(--section) * 0.8); }
.opening + .section { padding-top: calc(var(--section) * 0.4); }

/* ───────── Statement ───────── */
.statement {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.625rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 32ch;
  margin-inline: auto;
  text-align: center;
}

/* ───────── Herausforderung ───────── */
.split { display: grid; gap: 3rem; }
.split__head .t-lead { margin-top: 1.25rem; }
.split__note { margin-top: 1rem; max-width: 40ch; }
.pains { display: grid; }
.pains li { padding: 1.75rem 0; border-top: 1px solid var(--rule); }
.pains li:last-child { border-bottom: 1px solid var(--rule); }
.pains h3 { font-size: var(--step-h3); margin-bottom: 0.6rem; }
.pains p { max-width: 54ch; }
@media (min-width: 60em) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .split__head { grid-column: 1 / 6; align-self: start; position: sticky; top: calc(var(--header-h) + 2rem); }
  .pains, .split > .faq { grid-column: 7 / 13; }
}

[hidden] { display: none !important; }

/* ───────── Leistungen ───────── */
.services { border-top: 1px solid var(--rule); }
.service {
  display: grid; gap: 1rem;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--rule);
}
.service { position: relative; }
.service::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: var(--line); transform-origin: left;
}
.service__name { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); letter-spacing: -0.03em; }
.service__text { max-width: 46ch; }
.benefits { display: grid; gap: 0.4rem; font: 600 1rem/1.4 var(--sans); }
.benefits li { display: flex; align-items: baseline; gap: 0.75rem; }
.benefits li::before { content: ""; flex: none; width: 1rem; height: 2px; background: var(--line); transform: translateY(-0.3em); }
@media (min-width: 60em) {
  .service { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .service__name { grid-column: 1 / 5; }
  .service__text { grid-column: 5 / 10; }
  .benefits { grid-column: 10 / 13; padding-top: 0.25rem; }
}

/* ───────── Ablauf ───────── */
.steps { display: grid; gap: 2.5rem; }
.step { position: relative; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 3.5rem; height: 3px; background: var(--gold);
  transform-origin: left;
}
.step__num { display: block; font: 800 var(--step-head)/1 var(--sans); letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.step h3 { font-size: var(--step-h3); margin-bottom: 0.6rem; }
.step p { max-width: 34ch; }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); row-gap: 2.5rem; } }
@media (min-width: 64em) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ───────── Vergleich ───────── */
.compare { width: 100%; border-collapse: collapse; font-family: var(--sans); }
.compare th, .compare td { text-align: left; vertical-align: top; }
.compare thead th {
  font-size: var(--step-small); font-weight: 700; color: var(--muted);
  padding: 0 1.5rem 1rem 0;
  border-bottom: 2px solid var(--black);
}
.compare thead th.is-us { color: var(--black); }
.compare tbody th, .compare td { padding: 1.25rem 1.5rem 1.25rem 0; border-bottom: 1px solid var(--rule); }
.compare tbody th { font-size: var(--step-h3); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.compare td { font-size: var(--step-body); line-height: 1.45; }
.compare .other { color: var(--muted); }
.compare .us { font-weight: 600; }
.compare td.other, .compare td.us { position: relative; padding-left: 2.6em; }
.compare .ico--no { position: absolute; left: 0.1em; top: calc(1.25rem + 0.2em); width: 1.1em; height: 1.1em; color: #8a8a8a; }
.compare .take { position: absolute; left: 0.1em; top: calc(1.25rem + 0.2em); width: 1.1em; height: 1.1em; }
.compare .take .ico { width: 100%; height: 100%; color: var(--black); }
.compare .take__ring {
  position: absolute; left: 50%; top: 50%; width: 2.3em; height: 2.3em; max-width: none;
  transform: translate(-50%, -50%) rotate(-6deg); overflow: visible;
  fill: none; stroke: var(--gold-deep); stroke-width: 2.25; stroke-linecap: round;
}
@media (min-width: 48em) {
  .compare thead th:first-child, .compare tbody th { width: 28%; }
  .compare thead th:nth-child(2) { width: 34%; }
}
@media (max-width: 47.99em) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
  .compare tr:first-child { border-top: 2px solid var(--black); }
  .compare tbody th, .compare td { border: 0; padding: 0; }
  .compare td.other, .compare td.us { padding-left: 2.6em; }
  .compare .ico--no, .compare .take { top: 0.2em; }
  .compare tbody th { margin-bottom: 0.6rem; }
  .compare td + td { margin-top: 0.4rem; }
}

/* ───────── Vision ───────── */
.vision { padding-top: var(--section); overflow: hidden; }
.vision__grid { display: grid; gap: 3rem; }
.vision__text { display: grid; gap: 1.5rem; align-content: center; padding-bottom: var(--section); }
.vision__text h2 { margin-bottom: 0.5rem; }
.vision__quote { font-size: var(--step-lead); line-height: 1.45; }
.vision__text p { max-width: 52ch; }
.vision__text .btn { justify-self: start; margin-top: 0.75rem; }
.vision__photo { align-self: end; justify-self: center; width: min(19rem, 72vw); }
.vision__photo img { width: 100%; }
@media (max-width: 59.99em) {
  .vision__text { padding-bottom: 0; }
}
@media (min-width: 60em) {
  .vision__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .vision__text { grid-column: 1 / 8; }
  .vision__photo { grid-column: 9 / 13; width: 100%; max-width: 21rem; justify-self: end; }
}

/* ───────── Fragen ───────── */
.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; min-height: 44px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: var(--step-h3); line-height: 1.25; letter-spacing: -0.015em; }
.faq__icon { position: relative; flex: none; width: 1.5rem; height: 1.5rem; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--black); transform: translate(-50%, -50%); }
.faq__icon::before { width: 1.1rem; height: 2px; }
.faq__icon::after { width: 2px; height: 1.1rem; transition: transform 250ms var(--ease-out); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__item summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.faq__body { padding: 0 3rem 1.6rem 0; max-width: 58ch; }
@media (hover: hover) and (pointer: fine) { .faq__item summary:hover h3 { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 0.2em; } }
@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] .faq__body { animation: rise 320ms var(--ease-out) both; }
}

/* ───────── Kontakt ───────── */
.contact { display: grid; gap: 3rem; }
.contact__sub { font-size: var(--step-h3); margin-top: 2rem; margin-bottom: 0.6rem; }
.contact__intro p { max-width: 38ch; }
.contact__details { margin: 2.25rem 0 0; display: grid; gap: 1rem; border-top: 1px solid var(--rule); padding-top: 1.75rem; }
.contact__details div { display: grid; gap: 0.35rem; }
.contact__details dt { font: 700 var(--step-small)/1.3 var(--sans); color: var(--muted); }
.contact__details dd { margin: 0; font: 600 var(--step-body)/1.45 var(--sans); }
.contact__details a { display: inline-flex; align-items: center; min-height: 32px; }
.contact__form { padding-top: 0.5rem; }
/* Formular im Stil eines Drehbogens: Linien statt Kästen */
#kontakt.section { padding-top: calc(var(--section) * 0.7); }
.contact .form { gap: 1.2rem; }
.contact .form__row { gap: 1.2rem 1.75rem; }
.contact .choices__grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.contact .choice { min-height: 2.75rem; padding: 0.5rem 0.9rem; font-size: 0.9375rem; }
.contact .form__note { font-size: 0.8125rem; line-height: 1.5; }
.contact .contact__sub { margin-top: 1.5rem; }
.contact .field { gap: 0.2rem; }
.contact .field label, .contact .choices legend {
  font: 700 0.75rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.contact .choices legend { margin-bottom: 0.7rem; }
.contact .legend__hint { text-transform: none; letter-spacing: 0; font-weight: 500; }
.contact .field input, .contact .field textarea {
  min-height: 0; padding: 0.55rem 0 0.7rem; border: 0; border-bottom: 2px solid #4d4d4d; border-radius: 0;
  background: transparent; color: var(--white); font-size: 1.25rem;
}
.contact .field textarea { min-height: 5rem; }
.contact .field input:hover, .contact .field textarea:hover { border-bottom-color: #8a8a8a; }
.contact .field input:focus-visible, .contact .field textarea:focus-visible { outline: none; border-bottom-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
.contact .field input[aria-invalid="true"], .contact .field textarea[aria-invalid="true"] { border: 0; border-bottom: 2px solid var(--err); }
.contact .field input:-webkit-autofill, .contact .field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--white); -webkit-box-shadow: 0 0 0 1000px var(--black) inset; caret-color: var(--white);
}
.contact .choice { background: transparent; border-color: #4d4d4d; color: var(--white); }
.contact .choice:has(input:checked) { background: var(--white); color: var(--black); border-color: var(--white); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .contact .choice:hover { border-color: var(--white); } }
.contact .form__note a { text-decoration-color: var(--gold); }
.contact .form-success { background: var(--graphite); }
.credits { border-top: 1px solid var(--rule); }
@media (min-width: 60em) {
  .contact { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .contact__intro { grid-column: 1 / 6; }
  .contact__form { grid-column: 7 / 13; }
}

.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 40em) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label, .choices legend { font: 700 0.9375rem/1.2 var(--sans); }
.field input, .field textarea {
  width: 100%; min-height: 3.1rem; padding: 0.8rem 0.95rem;
  border: 1px solid #b9b7b1; border-radius: 2px;
  background: var(--white); color: var(--black);
  font: 400 1.0625rem/1.4 var(--serif);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--black); }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--black); outline: 3px solid var(--gold); outline-offset: 0; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border: 2px solid var(--err); }
.field__error { font: 700 0.875rem/1.3 var(--sans); color: var(--err); }
.field__error:empty { display: none; }
.choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 0.6rem; }
.legend__hint { font-weight: 500; color: var(--muted); }
.choices__grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (min-width: 40em) { .choices__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choices .field__error { margin-top: 0.6rem; }
.choice {
  position: relative; display: flex; align-items: center; gap: 0.7rem;
  min-height: 3.1rem; padding: 0.7rem 0.95rem;
  background: var(--white); border: 1.5px solid #b9b7b1; border-radius: 2px;
  font: 600 1rem/1.2 var(--sans); cursor: pointer; user-select: none;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.choice::before {
  content: ""; flex: none; width: 1.1rem; height: 1.1rem;
  border: 2px solid currentColor; border-radius: 2px;
  background: transparent center / 0.8rem no-repeat;
}
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.choice:has(input:checked)::before {
  border-color: var(--gold); background-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.5 9.5 17.5 19.5 6.5' fill='none' stroke='%230b0b0b' stroke-width='3.5'/%3E%3C/svg%3E");
}
.choice:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .choice:hover { border-color: var(--black); } }
.form__note { font-size: var(--step-small); line-height: 1.55; color: var(--muted); }
.form__note a { text-underline-offset: 0.2em; }
.form__status { font: 700 0.9375rem/1.4 var(--sans); color: var(--err); }
.form__status:empty { display: none; }
.form-success { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--black); color: var(--white); border-top: 4px solid var(--gold); }
.form-success h3 { font-size: var(--step-head); margin-bottom: 0.75rem; }

/* ───────── Fußzeile ───────── */
.site-footer { padding-top: clamp(3.5rem, 6vw, 5.5rem); }
.footer__top { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.footer__brand { grid-column: 1 / -1; }
.footer__claim { margin-top: 1.25rem; color: var(--muted); max-width: 44ch; line-height: 1.55; }
.footer__title { font: 700 var(--step-small)/1.3 var(--sans); color: var(--muted); margin-bottom: 0.75rem; }
.footer__col ul { display: grid; }
.footer__col a, .footer__col span {
  display: inline-flex; align-items: center; min-height: 40px;
  font: 600 1rem/1.4 var(--sans); text-decoration: none;
  transition: color 200ms ease;
}
.footer__col span { min-height: 0; padding-top: 0.6rem; color: #d9d9d9; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 2rem;
  padding-block: 1.5rem 2rem; border-top: 1px solid var(--rule);
  font: 500 var(--step-small)/1.4 var(--sans); color: var(--muted);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; transition: color 200ms ease; }
.footer__legal a:hover, .footer__legal a[aria-current="page"] { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.3em; }
@media (min-width: 60em) {
  .footer__top { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .footer__brand { grid-column: 1 / 7; }
  .footer__top > :nth-child(2) { grid-column: 9 / 13; }
}

/* ───────── Rechtstexte ───────── */
.legal__head { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.legal__back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 1.5rem; }
.legal__title { font-size: var(--step-head); max-width: 20ch; overflow-wrap: break-word; }
.legal__content { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: var(--section); }
.legal__body { max-width: 70ch; min-width: 0; }
.legal__body h2 { font-size: var(--step-h3); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.7em; }
.legal-section + .legal-section { margin-top: 2.5rem; }
.legal__body p + p { margin-top: 0.75em; }
.legal__body a { text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.legal__meta { margin-top: 3rem; font-size: var(--step-small); color: var(--muted); }
.legal__loading { font: 600 1rem/1.4 var(--sans); color: var(--muted); }
.legal__top { display: inline-flex; align-items: center; min-height: 44px; margin-top: 3rem; }
@media (min-width: 48em) { br.mobile-only { display: none; } }

/* iubenda-Dokumente (werden live geladen) */
#iub-legalDoc, #iub-legalDoc * { font-family: inherit; }
#iub-legalDoc { color: var(--black); overflow-wrap: anywhere; }
#iub-legalDoc .container { max-width: none; margin: 0; padding: 0; }
#iub-legalDoc img, #iub-legalDoc figure, #iub-legalDoc table { max-width: 100%; }
#iub-legalDoc figure { margin: 0; }
#iub-legalDoc aside, #iub-legalDoc button, #iub-legalDoc .table-of-content-btn-wrapper,
#iub-legalDoc .iub-btn, #iub-legalDoc .iubenda-button, #iub-legalDoc [class*="icon-"],
#iub-legalDoc .iub-pp-service-icon, #iub-legalDoc dialog { display: none !important; }
#iub-legalDoc .iub-doc-title { font: 800 var(--step-h3)/1.25 var(--sans); letter-spacing: -0.015em; margin-bottom: 1rem; }
#iub-legalDoc h2, #iub-legalDoc h3, #iub-legalDoc h4, #iub-legalDoc h5 {
  font-family: var(--sans); font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; margin: 2.2em 0 0.6em;
}
#iub-legalDoc h2 { font-size: var(--step-h3); }
#iub-legalDoc h3 { font-size: 1.1875rem; }
#iub-legalDoc h4, #iub-legalDoc h5 { font-size: 1.0625rem; }
#iub-legalDoc p, #iub-legalDoc li { margin: 0 0 0.85em; }
#iub-legalDoc ul, #iub-legalDoc ol { padding-left: 1.25rem; list-style: disc; margin-bottom: 1.25em; }
#iub-legalDoc a { text-decoration: underline; text-decoration-color: var(--gold-deep); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
#iub-legalDoc details { background: var(--stone); padding: 0 1.1rem; margin: 0 0 0.5rem; border-radius: 2px; }
#iub-legalDoc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font: 700 1rem/1.35 var(--sans); }
#iub-legalDoc summary > * { min-width: 0; }
#iub-legalDoc summary::-webkit-details-marker { display: none; }
#iub-legalDoc summary::after { content: "+"; font-weight: 800; flex: none; }
#iub-legalDoc details[open] summary::after { content: "–"; }
#iub-legalDoc details[open] { padding-bottom: 0.75rem; }
#iub-legalDoc summary h3, #iub-legalDoc summary h4, #iub-legalDoc summary h5 { margin: 0; font-size: inherit; }
#iub-legalDoc table { width: 100%; border-collapse: collapse; font-size: var(--step-small); }
#iub-legalDoc th, #iub-legalDoc td { text-align: left; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid #d9d7d2; vertical-align: top; }


/* ───────── Szenen-Label & Timecode ───────── */
.scene-label {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  font: 700 0.75rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; color: var(--muted);
}
.scene-label::before { content: ""; flex: none; width: 2rem; height: 2px; background: var(--line); transform-origin: left; }
.split > .split__head .scene-label { margin-bottom: 1.5rem; }

.hud { display: none; }
@media (min-width: 88em) {
  .hud {
    display: flex; align-items: center; gap: 0.8rem;
    margin: 0 auto 0 2.25rem; padding-left: 2.25rem; min-height: 1.5rem;
    border-left: 1px solid var(--rule);
    font: 700 0.6875rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--muted); white-space: nowrap;
  }
  .hud__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
  .hud__tc { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.02em; color: var(--fg); font-variant-numeric: tabular-nums; }
}

/* ───────── Szene 04 · Dein Drehbuch ───────── */
.drehbuch { display: grid; gap: 3rem; }
.drehbuch__lead { margin-top: 1.25rem; max-width: 40ch; }
.pick { border: 0; margin: 2.5rem 0 0; padding: 0; min-width: 0; }
.pick + .pick { margin-top: 2rem; }
.pick__legend { display: flex; align-items: center; gap: 0.75rem; padding: 0; margin-bottom: 1rem; font: 700 1.0625rem/1.3 var(--sans); }
.pick__num {
  display: inline-grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem;
  border: 1.5px solid var(--gold); border-radius: 50%;
  font: 700 0.8125rem/1 var(--sans); color: var(--gold);
}
.pick__options { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pick__opt { position: relative; display: inline-flex; }
.pick__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pick__opt span {
  display: inline-flex; align-items: center; min-height: 2.9rem; padding: 0.7em 1.15em;
  border: 1.5px solid #4d4d4d; border-radius: 2px; cursor: pointer; user-select: none;
  font: 600 0.9375rem/1.15 var(--sans);
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.pick__opt:active span { transform: scale(0.97); }
.pick__opt input:checked + span { background: var(--white); border-color: var(--white); color: var(--black); }
.pick__opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .pick__opt:hover span { border-color: var(--white); } }

.script {
  background: var(--white); color: var(--black); border-radius: 2px;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4.5vw, 3.25rem) clamp(2rem, 4.5vw, 3.5rem);
  font: 400 0.9375rem/1.55 var(--script);
}
.script__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding-bottom: 0.9rem; margin-bottom: 1.6rem; border-bottom: 1px solid #dddcd8;
}
.script__id { display: grid; gap: 0.25rem; min-width: 0; }
.script__logo { flex: none; width: 64px; height: auto; display: block; }
@media (min-width: 60em) { .script__logo { width: 80px; } }
.script__title { font: 800 0.8125rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.script__meta { font: 500 0.75rem/1.3 var(--sans); color: #646464; }
.script__body { display: grid; gap: 0.7em; }
.script__body p { text-wrap: wrap; }
.script__heading { font-weight: 700; text-transform: uppercase; }
.script__transition { text-transform: uppercase; }
.script__transition--right { text-align: right; }
.script__heading { margin-top: 0.4em; }
.script__body > .script__heading:first-child { margin-top: 0; }
.script__row { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); column-gap: 0.6em; align-items: start; }
.script__lbl { font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: #646464; padding-top: 0.25em; }
.script__txt { margin: 0; }
.script__char { font-weight: 700; text-transform: uppercase; margin-bottom: -0.6em; }
.script__note { display: block; font-weight: 400; text-transform: none; font-size: 0.8125rem; color: #646464; margin-top: 0.15em; }
.script__dialogue { padding-left: 1.5em; }
.script__placeholder { color: #5f5f5f; }
.script__ghost { display: grid; gap: 0.85rem; margin-top: 0.75rem; }
.script__ghost span { height: 0.65rem; background: #edece9; border-radius: 1px; }
.script__ghost span:nth-child(1) { width: 58%; }
.script__ghost span:nth-child(2) { width: 94%; }
.script__ghost span:nth-child(3) { width: 81%; }
.script__ghost span:nth-child(4) { width: 36%; margin-left: 34%; }
.script__ghost span:nth-child(5) { width: 64%; margin-left: 16%; }
.drehbuch__after { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.drehbuch__after-title { font: 700 0.75rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.drehbuch__after-list { gap: 0.65rem; font-weight: 500; }
.drehbuch__after-list li::before { background: var(--gold); }
.drehbuch__cta { margin-top: 1.75rem; display: grid; gap: 0.9rem; justify-items: start; }
.drehbuch__note { font-size: var(--step-small); color: var(--muted); }
/* Drehkonzept: Drehtag, Motive, aufklappbare Blöcke */
.sb { display: grid; gap: 0.6em; }
.sb + .sb { margin-top: 0.8em; }
.sb__h { display: flex; align-items: baseline; gap: 0.6em; font: 700 0.75rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #646464; }
.sb__tag { font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.08em; color: var(--gold-deep); border: 1px solid currentColor; border-radius: 2px; padding: 0.05em 0.45em; }
.sb__note { color: #646464; font-size: 0.875rem; }
.sb__p { margin: 0; }
.sb__list, .motifs, .cast, .blocks, .sb--more ul { list-style: none; padding: 0; margin: 0; display: grid; }
.sb__list { gap: 0.4em; }
.sb__list li { display: grid; grid-template-columns: 0.9em minmax(0, 1fr); column-gap: 0.4em; }
.sb__list li::before { content: "–"; }
.cast { gap: 0.35em; }
.cast li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1em; align-items: baseline; padding-bottom: 0.35em; border-bottom: 1px dotted #c9c8c3; }
.cast li:last-child { border-bottom: 0; }
.cast__dur { font-size: 0.875rem; color: #646464; white-space: nowrap; }
.blocks { gap: 0.5em; }
.blocks li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); column-gap: 0.6em; }
.blocks__name { font-weight: 700; }
.motifs { gap: 0.75em; }
.motifs li { display: grid; gap: 0.15em; }
.motif__where { font-weight: 700; text-transform: uppercase; font-size: 0.8125rem; letter-spacing: 0.04em; }
.motif__where small { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.8125rem; color: #646464; }
.motif__ton { color: #646464; font-size: 0.875rem; }
.sb--more { border-top: 1px solid #dddcd8; padding-top: 0.7em; }
.sb--more summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; font: 700 0.75rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #646464; }
.sb--more summary::-webkit-details-marker { display: none; }
.sb--more summary::after { content: "+"; font-size: 1rem; font-weight: 400; }
.sb--more[open] summary::after { content: "–"; }
.sb--more summary:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.sb--more ul { gap: 0.45em; margin-top: 0.6em; }
@media (max-width: 29.99em) {
  .blocks li { grid-template-columns: 1fr; row-gap: 0.1em; }
  .cast li { grid-template-columns: 1fr; }
  .cast__dur { white-space: normal; }
}
@media (min-width: 60em) {
  .drehbuch { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .drehbuch__ask { grid-column: 1 / 6; position: sticky; top: calc(var(--header-h) + 2rem); }
  .drehbuch__out { grid-column: 7 / 13; }
  .script { min-height: 37rem; }
}
@media (max-width: 29.99em) {
  .script__dialogue { padding-left: 1em; }
}

/* ───────── Szene 06 · Schnittspur ───────── */
.track { display: none; }

/* ───────── Szene 08 · Sucher ───────── */
.vision__photo { position: relative; }
.finder { position: absolute; inset: 0; pointer-events: none; }
.finder__c { position: absolute; width: 1.75rem; height: 1.75rem; border: 0 solid var(--white); }
.finder__c--tl { top: -0.9rem; left: -0.9rem; border-top-width: 2px; border-left-width: 2px; }
.finder__c--tr { top: -0.9rem; right: -0.9rem; border-top-width: 2px; border-right-width: 2px; }
.finder__c--bl { bottom: 1.5rem; left: -0.9rem; border-bottom-width: 2px; border-left-width: 2px; }
.finder__c--br { bottom: 1.5rem; right: -0.9rem; border-bottom-width: 2px; border-right-width: 2px; }
.finder__af { position: absolute; left: 36%; top: 6%; width: 38%; height: 20%; border: 1.5px solid var(--gold); opacity: 0; }

/* ───────── Abspann ───────── */
.credits { padding-block: var(--section) calc(var(--section) * 0.7); text-align: center; }
.credits__title { font: 700 0.75rem/1.2 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); margin-bottom: clamp(2rem, 4vw, 3rem); }
.credits__list { margin: 0; display: grid; gap: 1.6rem; }
.credits__list div { display: grid; gap: 0.35rem; }
.credits dt { font: 600 0.75rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.credits dd { margin: 0; font: 700 var(--step-h3)/1.2 var(--sans); letter-spacing: -0.01em; }
.credits__lead { margin-top: 1.25rem; }
.credits__lead dd {
  font-size: var(--step-head); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 0.18em;
}
.credits__end { margin-top: clamp(2.5rem, 5vw, 4rem); font-style: italic; color: var(--muted); }
@media (min-width: 40em) {
  .credits__list div { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; align-items: baseline; }
  .credits dt { text-align: right; }
  .credits dd { text-align: left; }
}
.site-footer { border-top: 1px solid var(--rule); }

/* ───────── Filmkorn auf schwarzen Flächen (Test) ───────── */
.hero, .opening, .credits, .vision, #drehbuch, .site-footer { position: relative; }
.hero::before, .opening::before, .credits::before, .vision::before, #drehbuch::before, .site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.09;
}
.opening__frame, .credits > .wrap, .vision > .wrap, #drehbuch > .wrap, .site-footer > .wrap { position: relative; z-index: 1; }

/* ───────── Intro: Filmklappe ───────── */
.slate { display: none; }
.intro .slate {
  position: fixed; inset: 0; z-index: 200;
  display: grid; grid-template-rows: auto 1fr auto; gap: clamp(0.75rem, 2vh, 1.25rem);
  padding: clamp(1rem, 3vh, 2rem) var(--pad);
  background: var(--white); color: var(--black);
  animation: slate-shake 200ms linear 2.1s, slate-cut 1ms linear 2.45s forwards;
}
.intro-skipped .slate { display: none !important; }
/* Cookie-Banner erst nach dem Intro zeigen */
html.intro:not(.intro-done) #iubenda-cs-banner { display: none !important; }
.slate__sticks { display: grid; gap: 5px; }
.slate__stick {
  display: block; height: clamp(2.5rem, 8vh, 4.75rem); border-radius: 3px;
  background: repeating-linear-gradient(120deg, var(--black) 0 clamp(1.5rem, 4vw, 3rem), var(--white) 0 clamp(3rem, 8vw, 6rem));
  box-shadow: inset 0 0 0 3px var(--black);
}
.slate__stick--base { background: repeating-linear-gradient(60deg, var(--black) 0 clamp(1.5rem, 4vw, 3rem), var(--white) 0 clamp(3rem, 8vw, 6rem)); }
.slate__stick--top { transform-origin: 0 100%; transform: rotate(-7deg); }
.slate__board { display: grid; grid-template-rows: auto 1fr auto; border: 3px solid var(--black); border-radius: 3px; min-height: 0; }
.slate__row { display: grid; min-width: 0; }
.slate__row + .slate__row { border-top: 2px solid var(--black); }
.slate__row--top { grid-template-columns: minmax(0, 1fr) auto auto; }
.slate__row--meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slate__f { display: grid; align-content: start; gap: 0.35rem; padding: clamp(0.75rem, 2vh, 1.25rem) clamp(0.85rem, 2vw, 1.5rem); min-width: 0; }
.slate__f + .slate__f { border-left: 2px solid var(--black); }
.slate__row--title .slate__f { align-content: center; }
.slate__k { font: 700 0.6875rem/1.2 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: #555; }
.slate__v { font: 800 clamp(2.25rem, 7vw, 6rem)/0.95 var(--sans); letter-spacing: -0.035em; }
.slate__v--xl { font-size: clamp(2.25rem, 9vw, 8.5rem); }
.slate__v--title { font: 400 clamp(1.75rem, 5vw, 4.5rem)/1.1 var(--serif); letter-spacing: -0.01em; }
.slate__v--s { font: 600 clamp(0.9375rem, 1.8vw, 1.5rem)/1.2 var(--mono); letter-spacing: 0; }
.slate__skip {
  justify-self: end; min-height: 44px; padding: 0 0.25rem; border: 0; background: none; cursor: pointer;
  font: 700 0.9375rem/1 var(--sans);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; text-decoration-color: var(--gold-deep);
}
@keyframes slate-in { from { opacity: 0; transform: translateY(0.5em); } to { opacity: 1; transform: none; } }
@keyframes clap { to { transform: rotate(0deg); } }
@keyframes slate-shake { 0%, 100% { transform: none; } 30% { transform: translateY(5px); } 65% { transform: translateY(-2px); } }
@keyframes slate-cut { to { visibility: hidden; opacity: 0; } }
.intro .slate__f { animation: slate-in 420ms var(--ease-out) both; animation-delay: calc(150ms + var(--n) * 90ms); }
.intro .slate__stick--top { animation: clap 150ms cubic-bezier(0.55, 0, 1, 0.45) 1.95s forwards; }
@media (max-width: 34.99em) {
  .slate__row--top { grid-template-columns: 1fr 1fr; }
  .slate__row--top .slate__f:first-child { grid-column: 1 / -1; }
  .slate__row--top .slate__f:nth-child(2) { border-left: 0; border-top: 2px solid var(--black); }
  .slate__row--top .slate__f:nth-child(3) { border-top: 2px solid var(--black); }
  .slate__v--xl { font-size: clamp(2.5rem, 14vw, 4rem); }
  .slate__row--meta { grid-template-columns: 1fr 1fr; }
  .slate__row--meta .slate__f:last-child { display: none; }
}

/* ───────── Bewegung ───────── */

@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes letterbox { from { clip-path: inset(22% 0 16% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ink { from { color: #b9b9b9; } to { color: var(--fg); } }
@keyframes playhead { from { left: 0%; } to { left: 100%; } }
@keyframes clip-on { from { background: var(--white); color: var(--muted); border-color: #c9c7c1; } to { background: var(--black); color: var(--white); border-color: var(--black); } }
@keyframes num-on { from { color: #8f8d87; } to { color: var(--fg); } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes af {
  0% { opacity: 0; transform: scale(1.35); }
  30% { opacity: 1; transform: scale(1); }
  38% { opacity: 0.25; } 46% { opacity: 1; } 54% { opacity: 0.25; } 62% { opacity: 1; }
  80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes grain {
  0% { background-position: 0 0; } 14% { background-position: -47px 31px; } 28% { background-position: 63px -18px; }
  42% { background-position: -21px -66px; } 56% { background-position: 88px 47px; } 70% { background-position: -72px 12px; }
  84% { background-position: 25px 79px; } 100% { background-position: 0 0; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: no-preference) {
  .hero__line > span { animation: line-up 900ms var(--ease-out) var(--intro-delay) both; }
  .hero__line:nth-child(2) > span { animation-delay: calc(var(--intro-delay) + 90ms); }
  .hero__rule { animation: grow 700ms var(--ease-out) calc(var(--intro-delay) + 450ms) both; }
  .hero__intro, .hero__services { animation: rise 700ms var(--ease-out) calc(var(--intro-delay) + 350ms) both; }
  .hero__services { animation-delay: calc(var(--intro-delay) + 450ms); }

  .js [data-reveal] {
    opacity: 0; transform: translateY(16px);
    transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js .step::before { transform: scaleX(0); transition: transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms + 250ms); }
  .js .step.is-in::before { transform: scaleX(1); }

  /* Leistungen: Linie baut sich beim ersten Sichtbarwerden auf und bleibt */
  .js .service::before { transform: scaleX(0); transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms + 200ms); }
  .js .service.is-in::before { transform: scaleX(1); }

  .form-success { animation: rise 450ms var(--ease-out) both; }

  /* Vorspann: das SM-Zeichen zeichnet sich */
  .hero__mark path { stroke-dasharray: 1; animation: draw 2.2s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--intro-delay) + 150ms) both; }

  /* Überschriften öffnen sich wie Titelkarten */
  .js .t-head[data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .t-head[data-reveal] > .reveal-in {
    display: block; transform: translateY(0.3em);
    clip-path: inset(-0.2em -0.1em 100% -0.1em);
    transition: clip-path 900ms var(--ease-out), transform 900ms var(--ease-out);
  }
  .js .t-head[data-reveal].is-in > .reveal-in { clip-path: inset(-0.2em -0.1em -0.35em -0.1em); transform: none; }

  /* Szenen-Label: Linie zieht sich auf */
  .js .scene-label[data-reveal]::before { transform: scaleX(0); transition: transform 700ms var(--ease-out) 150ms; }
  .js .scene-label[data-reveal].is-in::before { transform: scaleX(1); }

  /* Guter Take: Kreis wird gezogen */
  .js .compare tr[data-reveal] { transform: none; }
  .js .compare .take__ring path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 650ms cubic-bezier(0.65, 0, 0.35, 1) 250ms; }
  .js .compare tr.is-in .take__ring path { stroke-dashoffset: 0; }
  .js .compare tbody tr:nth-child(2) { --i: 1; } .js .compare tbody tr:nth-child(3) { --i: 2; }
  .js .compare tbody tr:nth-child(4) { --i: 3; } .js .compare tbody tr:nth-child(5) { --i: 4; }
  .js .compare tr .take__ring path { transition-delay: calc(var(--i, 0) * 70ms + 300ms); }

  /* Sucher: Foto bleibt ruhig, nur der Rahmen rastet ein */
  .js .vision__photo[data-reveal] { opacity: 1; transform: none; }
  .js .vision__photo .finder__c { opacity: 0; transition: opacity 300ms ease, translate 700ms var(--ease-out); }
  .js .vision__photo .finder__c--tl { translate: -1.25rem -1.25rem; }
  .js .vision__photo .finder__c--tr { translate: 1.25rem -1.25rem; }
  .js .vision__photo .finder__c--bl { translate: -1.25rem 1.25rem; }
  .js .vision__photo .finder__c--br { translate: 1.25rem 1.25rem; }
  .js .vision__photo.is-in .finder__c { opacity: 1; translate: 0 0; }
  .js .vision__photo.is-in .finder__af { animation: af 2.2s ease-out 650ms both; }

  /* Drehbuch wird geschrieben */
  .script.is-writing .script__body > * { animation: type 380ms steps(16, end) both; animation-delay: calc(var(--i, 0) * 120ms); }

  /* Filmkorn bewegt sich (nur mit Maus/Trackpad, also nicht auf dem Handy) */
  @media (hover: hover) and (pointer: fine) {
    .hero::before, .opening::before, .credits::before, .vision::before, #drehbuch::before, .site-footer::before { animation: grain 0.8s steps(1) infinite; }
  }
}

/* Scroll-gesteuerte Szenen (Chrome, Edge, Safari 26+). Ohne Unterstützung bleibt alles ruhig sichtbar. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .opening__frame { animation: letterbox linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }

    .js .statement[data-reveal] { opacity: 1; transform: none; transition: none; }
    .statement { view-timeline: --stmt block; }
    .statement .w { animation: ink linear both; animation-timeline: --stmt; animation-range: cover calc(16% + var(--p) * 30%) cover calc(22% + var(--p) * 30%); }

    @media (min-width: 48em) {
      .timeline { view-timeline: --cut block; }
      .track { display: block; position: relative; margin-bottom: clamp(2rem, 4vw, 3rem); }
      .track__ruler, .track__clips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); }
      .track__ruler {
        padding-bottom: 0.9rem; margin-bottom: 0.6rem;
        font: 500 0.6875rem/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums;
        background: repeating-linear-gradient(90deg, #b9b7b1 0 1px, transparent 1px 14px) left bottom / 100% 6px no-repeat;
      }
      .track__clip {
        display: flex; align-items: center; height: 2.75rem; padding: 0 0.9rem; overflow: hidden;
        border: 1px solid #c9c7c1; border-radius: 2px; background: var(--white);
        font: 600 0.75rem/1 var(--mono); color: var(--muted); white-space: nowrap; text-overflow: ellipsis;
        animation: clip-on linear both; animation-timeline: --cut;
        animation-range: cover calc(14% + (var(--i) / 4 + 0.03) * 56%) cover calc(16% + (var(--i) / 4 + 0.03) * 56%);
      }
      .track__head {
        position: absolute; top: -0.4rem; bottom: -0.6rem; left: 0; width: 2px; margin-left: -1px;
        background: var(--gold-deep);
        animation: playhead linear both; animation-timeline: --cut; animation-range: cover 14% cover 70%;
      }
      .track__head::before {
        content: ""; position: absolute; top: 0; left: 50%; width: 12px; height: 10px; transform: translateX(-50%);
        background: var(--gold-deep); clip-path: polygon(0 0, 100% 0, 50% 100%);
      }
      .js .steps .step[data-reveal] { opacity: 1; transform: none; transition: none; }
      .steps .step::before { display: none; }
      .steps .step__num { animation: num-on linear both; animation-timeline: --cut; animation-range: cover calc(14% + (var(--i) / 4 + 0.03) * 56%) cover calc(16% + (var(--i) / 4 + 0.03) * 56%); }
    }
  }
}

@media print {
  .site-header, .hero__actions, .drehbuch__ask, .site-nav, .track, .finder, .slate, .hud, .scene-label, .hero__mark { display: none !important; }
  .hero::before, .opening::before, .credits::before, .vision::before, #drehbuch::before, .site-footer::before { display: none; }
  html { background: #fff; }
  .hero__lead, .muted, .service__text, .footer__col span, .scene-label, .step__num, .statement .w { color: #000 !important; opacity: 1 !important; }
  .js [data-reveal], .js .t-head[data-reveal] > .reveal-in, .hero__line > span, .hero__intro, .hero__services { opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important; }
  .f-black, .f-graphite, .f-stone { background: #fff !important; color: #000 !important; }
}

/* ───────── 404 · Take 404 ───────── */
.notfound {
  min-height: 100svh; display: flex; align-items: center;
  padding-block: calc(var(--header-h) + 3rem) 4rem; position: relative; overflow: clip;
}
.notfound .wrap { position: relative; z-index: 1; }
.notfound__title { font-size: var(--step-display); line-height: 1.02; letter-spacing: -0.035em; max-width: 14ch; margin-bottom: 1.5rem; }
.notfound__text { color: #d9d9d9; max-width: 38ch; margin-bottom: 2.25rem; }
.notfound__tc { margin-top: 3rem; font: 500 0.8125rem/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
