/* =============================================================================
   Sensora – Haupt-Stylesheet
   Swiss-Raster · brutalistische Typografie · Glasflächen über Three.js
   ========================================================================== */

/* ---------- Fonts (self-hosted, Archivo Variable mit Breitenachse) -------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens -------------------------------------------------------- */
:root {
  --ink: #0b1230;
  --ink-2: #10162d;
  --ink-3: #070c1f;
  --sensora: #10458c;
  --electric: #2457d6;
  --signal: #35c2e8;
  --teal: #1d6165;
  --paper: #f3f6fb;
  --white: #ffffff;
  --line: #dce3ef;
  --line-dark: rgba(255, 255, 255, 0.14);
  --muted: #5a6680;
  --muted-light: rgba(243, 246, 251, 0.72);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wdth-display: 112%;
  --wdth-wide: 122%;
  --wdth-body: 100%;
  --wdth-narrow: 92%;

  --fs-0: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  --fs-1: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-2: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --fs-3: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  --fs-4: clamp(2rem, 1.3rem + 3.2vw, 3.75rem);
  --fs-5: clamp(2.5rem, 1.2rem + 5.2vw, 5.6rem);
  --fs-6: clamp(4.5rem, 2rem + 14vw, 15rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --wrap: 1280px;
  --section: clamp(4.5rem, 10vw, 9rem);
  --radius: 2px;
  --radius-glass: 10px;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 240ms;

  --header-h: 72px;
  color-scheme: dark;
}

/* ---------- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-1);
  line-height: 1.55;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
::selection { background: var(--signal); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Layout-Primitive --------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -100%; z-index: 1000; padding: 0.75rem 1rem; background: var(--signal); color: var(--ink); border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

.glass {
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 24px 60px -30px rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-glass);
}

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Ecken-Motiv aus dem Logo (oben rechts + unten links) --------- */
.corners { position: relative; }
.corners::before, .corners::after {
  content: ""; position: absolute; width: var(--c-size, 14px); height: var(--c-size, 14px);
  border: 0 solid var(--c-color, var(--signal)); pointer-events: none; z-index: 2;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.corners::before { top: var(--c-off, -1px); right: var(--c-off, -1px); border-top-width: var(--c-stroke, 4px); border-right-width: var(--c-stroke, 4px); }
.corners::after { bottom: var(--c-off, -1px); left: var(--c-off, -1px); border-bottom-width: var(--c-stroke, 4px); border-left-width: var(--c-stroke, 4px); }
.corners--lg { --c-size: 28px; --c-stroke: 7px; --c-off: -8px; }
.corners--xl { --c-size: 44px; --c-stroke: 11px; --c-off: -14px; }
.corners--ink { --c-color: var(--ink); }
.corners--sensora { --c-color: var(--sensora); }
.corners--hover::before, .corners--hover::after { opacity: 0; transform: translate(6px, -6px); }
.corners--hover::after { transform: translate(-6px, 6px); }
.corners--hover:hover::before, .corners--hover:hover::after, .corners--hover:focus-visible::before, .corners--hover:focus-visible::after { opacity: 1; transform: none; }

/* ---------- Typografie ---------------------------------------------------- */
.display, .hero__title, .stat__value, .smart__word, .platform__title, .contact__title, .page-title, .process__title, .partners__title, .chapter__title {
  font-weight: 760;
  font-stretch: var(--wdth-display);
  letter-spacing: -0.025em;
  line-height: 0.96;
  text-wrap: balance;
}

/* ---------- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.8em 1.4em;
  font-weight: 600; font-stretch: 104%; letter-spacing: -0.005em; line-height: 1;
  text-decoration: none; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--electric); color: var(--white); }
.btn--primary.corners { --c-size: 10px; --c-stroke: 3px; --c-off: -5px; --c-color: var(--signal); }
.btn--primary:hover { background: #1e4bc0; }
.btn--ghost { background: transparent; color: var(--paper); border-color: rgba(255, 255, 255, 0.38); }
.btn--ghost:hover { border-color: var(--paper); background: rgba(255, 255, 255, 0.06); }
.btn--lg { min-height: 56px; padding: 1em 1.7em; font-size: var(--fs-1); }
.btn--sm { min-height: 40px; padding: 0.6em 1.1em; font-size: var(--fs-0); }

.link { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link .icon { transition: transform var(--dur) var(--ease-out); }
.link:hover .icon { transform: translateX(4px); }

/* ---------- Header --------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 0.75rem var(--gutter) 0; pointer-events: none; }
.site-header__bar {
  pointer-events: auto;
  width: min(100%, var(--wrap)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--header-h); padding: 0 1rem 0 1.25rem;
  background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.site-header__bar.is-scrolled {
  background: rgba(11, 18, 48, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6);
}
.custom-logo { height: 32px; width: auto; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--white); }
.brand__eye { height: 40px; width: auto; }
.brand__mark { height: 48px; width: auto; }
.brand__word { font-weight: 760; font-stretch: var(--wdth-display); letter-spacing: -0.03em; font-size: 1.35rem; line-height: 1; }
.brand__tld { font-weight: 500; font-stretch: var(--wdth-body); color: var(--signal); letter-spacing: 0; }
.brand--footer .brand__word { font-size: 1.5rem; }
@media (max-width: 480px) { .brand__word { display: none; } }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.75rem; }
.nav__list a { font-size: var(--fs-0); font-weight: 560; font-stretch: 104%; text-decoration: none; color: var(--muted-light); padding: 0.4rem 0; border-bottom: 1px solid transparent; transition: color var(--dur), border-color var(--dur); }
.nav__list a:hover, .nav__list .current-menu-item > a { color: var(--white); border-bottom-color: var(--signal); }

.nav-toggle { display: none; align-items: center; gap: 0.5rem; background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius); padding: 0.5rem 0.75rem; min-height: 44px; cursor: pointer; }
.nav-toggle__label { font-size: var(--fs-0); font-weight: 600; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 1.5rem) var(--gutter) auto; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.25rem;
    background: rgba(11, 18, 48, 0.9); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-glass);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; font-size: var(--fs-2); color: var(--white); padding: 0.75rem 0; border-bottom: 1px solid var(--line-dark); }
  .nav__cta { align-self: flex-start; }
}

/* ---------- Szenen (Canvas) ----------------------------------------------- */
.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.no-webgl .scene, .reduced-motion .scene { display: none; }

/* ---------- Hero ----------------------------------------------------------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: grid; align-content: end; padding-top: calc(var(--header-h) + 3rem); padding-bottom: 2rem; background: var(--ink); overflow: clip; }
.hero__poster { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 50% at 75% 40%, rgba(36, 87, 214, 0.35), transparent 70%),
  radial-gradient(40% 40% at 20% 85%, rgba(29, 97, 101, 0.4), transparent 70%),
  linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.hero__poster::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%); -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%); opacity: 0; }
.no-webgl .hero__poster::after, .reduced-motion .hero__poster::after { opacity: 1; }
.hero .scene { z-index: 0; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); padding-bottom: clamp(3rem, 8vh, 6rem); }
.hero__copy { grid-column: 1 / span 12; }
@media (min-width: 900px) { .hero__copy { grid-column: 1 / span 8; } }
@media (min-width: 1200px) { .hero__copy { grid-column: 1 / span 7; } }
.hero__kicker { font-size: var(--fs-0); font-weight: 560; font-stretch: var(--wdth-narrow); color: var(--signal); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.hero__kicker::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; }
.hero__title { font-size: var(--fs-5); color: var(--white); max-width: 16ch; }
.hero__copy { position: relative; padding: 1.25rem 1.5rem 1.25rem 0; }
.hero__copy.corners { --c-size: 36px; --c-stroke: 9px; --c-off: 0px; }
.hero__text { margin-top: 1.5rem; max-width: 56ch; font-size: var(--fs-2); line-height: 1.45; color: var(--muted-light); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.hero__chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { padding: 0.55rem 0.9rem; font-size: var(--fs-0); font-weight: 560; font-stretch: var(--wdth-narrow); color: var(--paper); border-radius: 999px; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 2rem; z-index: 1; display: none; width: 48px; height: 48px; align-items: center; justify-content: center; color: var(--muted-light); border: 1px solid var(--line-dark); border-radius: 50%; }
.hero__scroll .icon { animation: nudge 2.2s var(--ease-out) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@media (min-width: 900px) { .hero__scroll { display: inline-flex; } }

/* Hero-Eröffnung: Elemente starten unsichtbar, main.js blendet sie ein (ohne JS sichtbar) */
.js .hero__kicker, .js .hero__title, .js .hero__text, .js .hero__actions, .js .hero__chips { opacity: 0; transform: translateY(18px); }
.js .hero.is-ready .hero__kicker, .js .hero.is-ready .hero__title, .js .hero.is-ready .hero__text, .js .hero.is-ready .hero__actions, .js .hero.is-ready .hero__chips { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
.js .hero.is-ready .hero__title { transition-delay: 120ms; }
.js .hero.is-ready .hero__text { transition-delay: 260ms; }
.js .hero.is-ready .hero__actions { transition-delay: 380ms; }
.js .hero.is-ready .hero__chips { transition-delay: 520ms; }
.reduced-motion .hero__kicker, .reduced-motion .hero__title, .reduced-motion .hero__text, .reduced-motion .hero__actions, .reduced-motion .hero__chips { opacity: 1 !important; transform: none !important; }

/* ---------- Kennzahlen (Paper, hartes Raster) ---------------------------- */
.stats { background: var(--paper); color: var(--ink); color-scheme: light; padding-block: clamp(2rem, 5vw, 4rem); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
@media (min-width: 900px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem) clamp(1.25rem, 3vw, 2.25rem); border-left: 1px solid var(--ink); display: grid; align-content: space-between; gap: 1.5rem; min-height: 15rem; }
.stat:first-child { border-left: 0; }
.stat.corners { --c-size: 12px; --c-stroke: 3px; --c-off: 8px; --c-color: var(--sensora); }
@media (max-width: 899px) { .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--ink); } }
.stat__value { font-size: var(--fs-4); font-stretch: var(--wdth-wide); font-weight: 820; letter-spacing: -0.035em; color: var(--sensora); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; flex-wrap: wrap; }
.stat__prefix, .stat__suffix { font-size: 0.5em; font-weight: 700; font-stretch: var(--wdth-body); letter-spacing: -0.01em; color: var(--ink); }
.stat__prefix { margin-right: 0.3em; }
.stat__suffix { margin-left: 0.15em; }
.stat__label { font-size: var(--fs-0); line-height: 1.4; color: var(--muted); max-width: 26ch; font-stretch: var(--wdth-narrow); font-weight: 500; }

/* ---------- Smart (gepinnte Szene + Kapitel) ------------------------------ */
.smart { position: relative; background: var(--ink-2); display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .smart { grid-template-columns: 1fr 1fr; } }
.smart__sticky { position: relative; height: 62svh; overflow: clip; isolation: isolate; border-bottom: 1px solid var(--line-dark); container-type: inline-size; }
@media (min-width: 900px) { .smart__sticky { position: sticky; top: 0; height: 100svh; border-bottom: 0; border-right: 1px solid var(--line-dark); } }
.smart__scene { z-index: 0; }

.smart__word { position: absolute; left: var(--gutter); bottom: clamp(1rem, 4vh, 2.5rem); z-index: 1; display: grid; font-size: clamp(2.75rem, 14.5cqw, 11rem); font-stretch: var(--wdth-wide); font-weight: 800; letter-spacing: -0.045em; line-height: 0.82; color: var(--white); pointer-events: none; }
.smart__word-fixed { font-size: 0.42em; font-weight: 600; font-stretch: var(--wdth-body); letter-spacing: -0.02em; color: var(--signal); margin-bottom: 0.1em; }
.smart__word-dyn { position: relative; display: block; height: 0.95em; }
.smart__word-item { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transform: translateY(0.18em); transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out); }
.smart__word-item.is-active { opacity: 1; transform: none; }
.smart__dots { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 1; display: grid; gap: 0.75rem; }
@media (max-width: 899px) { .smart__dots { top: auto; bottom: 1.25rem; right: var(--gutter); transform: none; grid-auto-flow: column; } }
.smart__dots li { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); transition: background-color var(--dur), transform var(--dur); }
.smart__dots li.is-active { background: var(--signal); transform: scale(1.4); }

.smart__chapters { width: auto; margin: 0; padding: clamp(2rem, 6vw, 5rem) var(--gutter); }
@media (min-width: 900px) { .smart__chapters { padding: 0 clamp(2rem, 5vw, 5rem) 0 clamp(2rem, 6vw, 6rem); } }
.smart__intro { font-size: var(--fs-0); font-weight: 560; font-stretch: var(--wdth-narrow); color: var(--signal); display: flex; align-items: center; gap: 0.75rem; }
.smart__intro::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; }
@media (min-width: 900px) { .smart__intro { position: absolute; top: calc(var(--header-h) + 1.5rem); } }
.chapter { padding-block: clamp(3rem, 8vh, 6rem); border-bottom: 1px solid var(--line-dark); }
.chapter:last-child { border-bottom: 0; }
@media (min-width: 900px) { .chapter { min-height: 100svh; display: grid; align-content: center; border-bottom: 0; } }
.chapter__title { font-size: var(--fs-4); color: var(--white); }
.chapter__text { margin-top: 1.25rem; max-width: 46ch; font-size: var(--fs-2); line-height: 1.45; color: var(--muted-light); }
.chapter__tags { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.75rem; font-size: var(--fs-0); font-weight: 560; font-stretch: var(--wdth-narrow); color: var(--paper); }
.chapter__tags li { position: relative; padding-left: 0.9rem; }
.chapter__tags li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; background: var(--signal); }
.chapter .link { margin-top: 2rem; color: var(--white); justify-self: start; }

/* ---------- Plattform (Ringe + Glaskarte) -------------------------------- */
.platform { position: relative; isolation: isolate; background: var(--ink); padding-block: var(--section); overflow: clip; border-top: 1px solid var(--line-dark); }
.platform__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: center; }
.platform__copy { grid-column: 1 / span 12; }
.platform__card { grid-column: 1 / span 12; }
@media (min-width: 900px) { .platform__copy { grid-column: 1 / span 5; } .platform__card { grid-column: 7 / span 6; } }
.platform__title { font-size: var(--fs-4); color: var(--white); }
.platform__text { margin-top: 1.25rem; max-width: 44ch; font-size: var(--fs-2); line-height: 1.45; color: var(--muted-light); }
.platform__copy .btn { margin-top: 2rem; }
.platform__card { padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; }
.platform__card.corners { --c-off: -9px; --c-size: 22px; --c-stroke: 6px; }
.platform__item { padding-block: 1.25rem; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: minmax(6.5rem, 0.35fr) 1fr; gap: 1rem; }
.platform__item:first-child { border-top: 0; padding-top: 0; }
.platform__item:last-child { padding-bottom: 0; }
.platform__item h3 { font-size: var(--fs-2); font-weight: 700; font-stretch: var(--wdth-display); letter-spacing: -0.02em; color: var(--white); }
.platform__item p { color: var(--muted-light); font-size: var(--fs-1); line-height: 1.45; }

/* ---------- Film (Video-Textur in 3D) ------------------------------------ */
.film { position: relative; isolation: isolate; background: var(--ink-2); padding-block: var(--section); overflow: clip; border-top: 1px solid var(--line-dark); }
.film__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: center; }
.film__copy { grid-column: 1 / span 12; }
.film__frame { grid-column: 1 / span 12; margin: 0; aspect-ratio: 16 / 9; background: var(--ink); overflow: visible; }
@media (min-width: 900px) { .film__copy { grid-column: 1 / span 5; } .film__frame { grid-column: 7 / span 6; } }
.film__kicker { font-size: var(--fs-0); font-weight: 560; font-stretch: var(--wdth-narrow); color: var(--signal); display: flex; align-items: center; gap: 0.75rem; }
.film__kicker::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; }
.film__title { margin-top: 1.25rem; font-size: var(--fs-4); color: var(--white); font-weight: 760; font-stretch: var(--wdth-display); letter-spacing: -0.025em; line-height: 0.98; text-wrap: balance; }
.film__text { margin-top: 1.25rem; max-width: 44ch; font-size: var(--fs-2); line-height: 1.45; color: var(--muted-light); }
.film__play { margin-top: 2rem; }
.film__teaser { width: 100%; height: 100%; object-fit: cover; display: block; }
.film__frame-btn { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; border: 0; cursor: pointer; }
.film__frame-btn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(11, 18, 48, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f3f6fb'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") center / 32px no-repeat; border: 1px solid rgba(255,255,255,0.4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform var(--dur) var(--ease-out); }
.film__frame-btn:hover::after { transform: translate(-50%, -50%) scale(1.08); }
/* Wenn die 3D-Szene läuft, zeichnet sie das Video selbst – HTML-Frame wird zur unsichtbaren Klickfläche */
.low-gpu .platform__scene, .low-gpu .contact__scene, .low-gpu .film__scene { display: none; }
.film.is-3d .film__frame { background: transparent; }
.film.is-3d .film__frame::before, .film.is-3d .film__frame::after { opacity: 0; }
.film.is-3d .film__teaser { opacity: 0; }
.film__dialog { border: 0; padding: 0; background: transparent; width: min(96vw, 1200px); max-width: none; }
.film__dialog::backdrop { background: rgba(7, 12, 31, 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.film__full { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; border-radius: var(--radius-glass); }
.film__close { position: absolute; right: 0; top: -56px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; color: var(--white); cursor: pointer; }
.film__close:hover { background: rgba(255,255,255,0.16); }
@media (max-width: 899px) { .film__close { top: -52px; } }

/* ---------- Vorgehen (Paper) --------------------------------------------- */
.process { background: var(--paper); color: var(--ink); color-scheme: light; padding-block: var(--section); }
.process__title { font-size: var(--fs-4); max-width: 18ch; }
.process__steps { display: grid; grid-template-columns: 1fr; margin-top: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--ink); }
@media (min-width: 900px) { .process__steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 2rem) clamp(1.5rem, 3vw, 2.5rem) 0; border-bottom: 1px solid var(--ink); display: grid; grid-template-rows: auto auto 1fr; gap: 1rem; }
@media (min-width: 900px) { .step { border-bottom: 0; border-left: 1px solid var(--ink); padding-left: clamp(1rem, 2vw, 2rem); } .step:first-child { border-left: 0; padding-left: 0; } }
.step.corners { --c-size: 12px; --c-stroke: 3px; --c-off: 10px; --c-color: var(--sensora); }
.step__num { font-size: var(--fs-4); font-weight: 820; font-stretch: var(--wdth-wide); letter-spacing: -0.04em; line-height: 1; color: var(--sensora); font-variant-numeric: tabular-nums; }
.step__title { font-size: var(--fs-2); font-weight: 700; font-stretch: var(--wdth-display); letter-spacing: -0.02em; }
.step__text { color: var(--muted); max-width: 36ch; line-height: 1.5; }

/* ---------- Partner (Laufbänder) ----------------------------------------- */
.partners { background: var(--white); color: var(--ink); color-scheme: light; padding-block: var(--section) clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.partners__head { display: grid; gap: 1.5rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .partners__head { grid-template-columns: 1fr auto; } }
.partners__title { font-size: var(--fs-3); max-width: 28ch; font-weight: 700; }
.partners__award { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; border: 1px solid var(--ink); border-radius: var(--radius); font-size: var(--fs-0); font-weight: 600; font-stretch: var(--wdth-narrow); max-width: 100%; }
.partners__award img { height: 40px; width: auto; }
.marquee { overflow: hidden; padding-block: 1.25rem; border-top: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee:last-child { border-bottom: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; align-items: center; gap: clamp(2.5rem, 5vw, 4.5rem); padding-right: clamp(2.5rem, 5vw, 4.5rem); }
.marquee__item img { height: 56px; width: auto; max-width: 200px; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: 0.85; transition: filter var(--dur), opacity var(--dur); }
.marquee__item img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
.reduced-motion .marquee__track { animation: none; flex-wrap: wrap; width: 100%; }
.reduced-motion .marquee__list[aria-hidden] { display: none; }
.reduced-motion .marquee { mask-image: none; -webkit-mask-image: none; }

/* ---------- Kontakt (Netz + Glas-Formular) ------------------------------- */
.contact { position: relative; isolation: isolate; background: var(--ink); padding-block: var(--section); overflow: clip; }
.contact__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
.contact__copy { grid-column: 1 / span 12; }
.contact__form { grid-column: 1 / span 12; }
@media (min-width: 900px) { .contact__copy { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 2rem); } .contact__form { grid-column: 7 / span 6; } }
.contact__title { font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.1rem); color: var(--white); }
.contact__text { margin-top: 1.25rem; max-width: 42ch; font-size: var(--fs-2); line-height: 1.45; color: var(--muted-light); }
.contact__direct { margin-top: 2rem; display: grid; gap: 0.75rem; }
.contact__direct li { display: flex; align-items: center; gap: 0.75rem; color: var(--paper); }
.contact__direct a { text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.contact__direct a:hover { border-bottom-color: var(--signal); }
.contact__direct .icon { color: var(--signal); }
.contact__form { padding: clamp(1.25rem, 3vw, 2.25rem); }
.contact__form.corners { --c-off: -9px; --c-size: 22px; --c-stroke: 6px; }

.form__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--fs-0); font-weight: 600; font-stretch: var(--wdth-narrow); color: var(--muted-light); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius); color: var(--white);
  transition: border-color var(--dur), background-color var(--dur);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f3f6fb' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; padding-right: 2.5rem; }
.field select option { color: var(--ink); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 3px rgba(53, 194, 232, 0.25); }
.field input:user-invalid, .field textarea:user-invalid, .field .is-invalid { border-color: #ff7b7b; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .form__foot { grid-template-columns: auto 1fr; align-items: center; } }
.form__privacy { font-size: var(--fs-0); color: var(--muted-light); font-stretch: var(--wdth-narrow); }
.form__status { padding: 0.9rem 1rem; margin-bottom: 1.25rem; border-radius: var(--radius); font-weight: 600; font-size: var(--fs-0); }
.form__status--ok { background: rgba(31, 163, 106, 0.18); border: 1px solid rgba(31, 163, 106, 0.5); }
.form__status--error { background: rgba(229, 72, 77, 0.18); border: 1px solid rgba(229, 72, 77, 0.5); }
.form-plugin label { font-size: var(--fs-0); font-weight: 600; color: var(--muted-light); }
.form-plugin input:not([type="submit"]):not([type="checkbox"]), .form-plugin select, .form-plugin textarea { width: 100%; min-height: 48px; padding: 0.7rem 0.85rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius); color: var(--white); }
.form-plugin input[type="submit"], .form-plugin button[type="submit"] { background: var(--electric); color: var(--white); border: 0; border-radius: var(--radius); min-height: 48px; padding: 0.8em 1.4em; font-weight: 600; cursor: pointer; }

/* ---------- Footer -------------------------------------------------------- */
.site-footer { background: var(--ink-3); color: var(--muted-light); padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem; border-top: 1px solid var(--line-dark); font-size: var(--fs-0); }
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer__brand img { height: 26px; width: auto; }
.site-footer__claim { margin-top: 1rem; max-width: 32ch; }
.site-footer__contact { display: grid; gap: 0.75rem; align-content: start; }
.site-footer__contact p { display: flex; gap: 0.75rem; align-items: flex-start; }
.site-footer__contact .icon { color: var(--signal); margin-top: 0.1em; }
.site-footer__contact a { text-decoration: none; }
.site-footer__contact a:hover { color: var(--white); }
.site-footer__legal { display: grid; gap: 1rem; align-content: start; }
@media (min-width: 900px) { .site-footer__legal { justify-items: end; text-align: right; } }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer__links a { text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.site-footer__links a:hover { color: var(--white); border-bottom-color: var(--signal); }
.site-footer__mabu { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.site-footer__mabu img { height: 32px; width: auto; }
.site-footer__copy { color: rgba(243, 246, 251, 0.5); }

/* ---------- Consent-Banner ------------------------------------------------ */
.consent { position: fixed; left: var(--gutter); right: var(--gutter); bottom: 1rem; z-index: 200; max-width: 420px; padding: 1.25rem; background: rgba(11, 18, 48, 0.82); }
.consent[hidden] { display: none; }
.consent__title { font-weight: 700; font-stretch: var(--wdth-display); font-size: var(--fs-2); color: var(--white); }
.consent__text { margin-top: 0.5rem; font-size: var(--fs-0); color: var(--muted-light); }
.consent__actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem; }

/* ---------- Unterseiten --------------------------------------------------- */
.page-head { padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(2rem, 5vw, 4rem); background: var(--ink); border-bottom: 1px solid var(--line-dark); }
.page-title { font-size: var(--fs-4); color: var(--white); max-width: 20ch; }
.page-head .wrap { position: relative; }
.page-head .wrap.corners { --c-size: 24px; --c-stroke: 6px; --c-off: -12px; }
.page-meta { margin-top: 1rem; color: var(--muted-light); }
.breadcrumb { display: flex; gap: 0.6rem; font-size: var(--fs-0); color: var(--muted-light); margin-bottom: 1.5rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.page-figure { margin-block: clamp(2rem, 5vw, 3rem) 0; }
.page-figure img { width: 100%; border-radius: var(--radius-glass); }
.page-article { background: var(--paper); color: var(--ink); color-scheme: light; padding-bottom: var(--section); }
.page-article .page-head { background: var(--ink); color: var(--paper); }
.prose { max-width: 72ch; padding-top: clamp(2rem, 5vw, 3.5rem); font-size: var(--fs-1); line-height: 1.65; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { font-weight: 700; font-stretch: var(--wdth-display); letter-spacing: -0.02em; line-height: 1.15; margin-top: 2em; }
.prose h2 { font-size: var(--fs-3); }
.prose h3 { font-size: var(--fs-2); }
.prose a { color: var(--electric); }
.prose ul { list-style: disc; padding-left: 1.4em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose img { border-radius: var(--radius-glass); }
.prose blockquote { border-left: 2px solid var(--sensora); padding-left: 1.25rem; color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--fs-0); }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
.prose .btn { color: var(--white); }
.page-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-weight: 600; }
.page-nav a { text-decoration: none; color: var(--sensora); }

.cards { display: grid; gap: 1.5rem; padding-block: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: grid; border: 1px solid var(--line-dark); border-radius: var(--radius-glass); overflow: hidden; background: var(--ink-2); }
.card__media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card__body { padding: 1.25rem; display: grid; gap: 0.5rem; }
.card__date { font-size: var(--fs-0); color: var(--muted-light); }
.card__title { font-size: var(--fs-2); font-weight: 700; font-stretch: var(--wdth-display); letter-spacing: -0.02em; }
.card__title a { text-decoration: none; color: var(--white); }
.card__title a:hover { color: var(--signal); }
.card__excerpt { color: var(--muted-light); font-size: var(--fs-0); }
.pagination { display: flex; justify-content: center; gap: 0.5rem; padding-bottom: var(--section); }
.pagination .page-numbers { padding: 0.5rem 0.9rem; border: 1px solid var(--line-dark); border-radius: var(--radius); text-decoration: none; }
.pagination .current { background: var(--electric); border-color: var(--electric); }

.page-head--404 { min-height: 70svh; display: grid; align-items: center; border-bottom: 0; }
.page-404__code { font-size: var(--fs-6); font-weight: 820; font-stretch: var(--wdth-wide); letter-spacing: -0.05em; line-height: 0.85; color: var(--sensora); }
.page-head--404 .btn { margin-top: 1.5rem; }

/* ---------- Druck --------------------------------------------------------- */
@media print {
  .site-header, .scene, .hero__scroll, .consent, .marquee--reverse { display: none !important; }
  body { background: #fff; color: #000; }
}
