/* ==========================================================================
   DolomindAI — Design-System (Relaunch 2026)
   Navy-Grund, Gletscherblau, Gold. Redaktionelle Typografie, asymmetrisches
   12er-Raster, Haarlinien. Bewegung nur ueber transform/opacity und nur ohne
   prefers-reduced-motion. Ohne JavaScript ist alles sichtbar (Einblendungen
   haengen an html.js).
   ========================================================================== */

/* ---------- Schriften: selbst gehostet, Latin-Subset, swap ---------------- */
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  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: "IBM Plex Sans";
  src: url("/assets/fonts/plex-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  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: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  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;
}
/* Metrisch angeglichene Ersatzschriften: kein Umbruchsprung beim Schriftwechsel (CLS) */
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"); size-adjust: 96.08%; ascent-override: 76.5%; descent-override: 27.58%; line-gap-override: 0%; }
@font-face { font-family: "Plex Sans Fallback"; src: local("Arial"); size-adjust: 101.01%; ascent-override: 101.48%; descent-override: 27.23%; line-gap-override: 0%; }
@font-face { font-family: "Plex Mono Fallback"; src: local("Courier New"); size-adjust: 99.98%; ascent-override: 102.52%; descent-override: 27.5%; line-gap-override: 0%; }

/* ---------- Tokens -------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Marke */
  --navy: #080E1A;
  --navy-2: #0B1322;
  --navy-3: #0F1A2D;
  --glacier: #8AB2D6;
  --frost: #C4DCF0;
  --gold: #FFD88C;
  --gold-2: #E5B079;

  /* Text — Kontrastvorgaben: Kleintext Gletscherblau >= .68, Frost >= .54;
     Formular-Labels, Rechtshinweis, Pflichttexte >= .80 / .66. Alle Werte auf --navy. */
  --ink: #EEF3F8;                          /* Ueberschriften */
  --text: rgba(196, 220, 240, .86);        /* Fliesstext */
  --text-soft: rgba(196, 220, 240, .7);    /* Nebentext */
  --small: rgba(138, 178, 214, .76);       /* Kleintext, Gletscherblau */
  --small-frost: rgba(196, 220, 240, .62); /* Kleintext, Frost */
  --form-label: rgba(196, 220, 240, .8);   /* Formular, Frost (>= .66) */
  --form-note: rgba(196, 220, 240, .74);   /* Rechtshinweis/Pflicht (>= .66) */
  --field-border: rgba(138, 178, 214, .58);/* Nicht-Text-Kontrast >= 3:1 */

  --line: rgba(138, 178, 214, .16);
  --line-strong: rgba(138, 178, 214, .32);

  --f-display: "Newsreader", "Newsreader Fallback", Georgia, serif;
  --f-text: "IBM Plex Sans", "Plex Sans Fallback", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", "Plex Mono Fallback", "Courier New", monospace;

  /* Typografische Skala: grosser Kontrast zwischen Display und Text */
  --fs-h1: clamp(2.5rem, 1.35rem + 5vw, 6.75rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.6vw, 3.9rem);
  --fs-h3: clamp(1.3rem, 1.15rem + .55vw, 1.7rem);
  --fs-lead: clamp(1.125rem, 1.02rem + .45vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-mono: .75rem;

  /* Raster und Abstaende */
  --gutter: clamp(1rem, 4.2vw, 3.5rem);
  --col-gap: clamp(1rem, 2vw, 2rem);
  --max: 90rem;
  --header-h: 4.5rem;
  --sec-pad: clamp(4.25rem, 3.25rem + 4.5vw, 8.5rem);

  /* Bewegung */
  --ease: cubic-bezier(.16, .84, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --rise: 1.75rem;
}

/* ---------- Basis --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font: 400 var(--fs-body)/1.65 var(--f-text);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
p a, dd a, .lead a, .intro a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(229, 176, 121, .7);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
p a:hover, dd a:hover { text-decoration-color: var(--gold); }
::selection { background: rgba(255, 216, 140, .28); color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.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: var(--gutter); top: .75rem; z-index: 100;
  padding: .75rem 1rem; background: var(--gold); color: var(--navy);
  font-weight: 400; text-decoration: none; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--col-gap); }

/* ---------- Typografie ---------------------------------------------------- */
.h1, .h2, .h3, .faq-q, .index-title, .fact dd, .stage-no, .contact-sent .big {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--ink);
}
.h1 {
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -.022em;
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: break-word;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -.018em;
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: break-word;
}
.h3 { font-size: var(--fs-h3); line-height: 1.22; letter-spacing: -.008em; text-wrap: balance; }
p { text-wrap: pretty; hyphens: auto; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text); }

.eyebrow {
  display: flex; align-items: center; flex-wrap: wrap;
  font: 400 var(--fs-mono)/1.4 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--small);
}
main { counter-reset: sec; }
.sec-index:empty { display: none; }
.sec-index::before { content: none; }
.sec-head .sec-index { display: inline-flex; align-items: center; color: var(--gold-2); }
.sec-head .sec-index::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); }
.sec-head .sec-index:last-child::after { display: none; }
.sec-head .sec-index::after {
  content: ""; width: 2.5rem; height: 1px; margin-inline: .85rem;
  background: currentColor; opacity: .7;
}
.sec-head .eyebrow { margin-bottom: clamp(1rem, 2vw, 1.5rem); }
.eyebrow-rule { display: inline-block; width: 2.5rem; height: 1px; margin-right: .85rem; background: var(--gold-2); }
.mono { font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .08em; }

/* ---------- Schaltflaechen ------------------------------------------------ */
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 3rem; padding: .8rem 1.35rem;
  font: 400 .9375rem/1.2 var(--f-text); letter-spacing: .01em;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px;
  cursor: pointer; transition: background-color .3s, border-color .3s, color .3s;
}
.btn .i-arrow { width: 1.1rem; height: 1.1rem; transition: transform .45s var(--ease); }
.btn:hover .i-arrow { transform: translateX(.3rem); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #FFE6B3; }
.btn-ghost { border-color: rgba(196, 220, 240, .5); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn:disabled { opacity: .7; cursor: progress; }

/* ---------- Kopfzeile ----------------------------------------------------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; min-height: var(--header-h); padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; padding-block: .5rem; }
.brand-mark { width: 2.75rem; height: auto; overflow: visible; }
.brand-word { width: 7.4rem; height: auto; }
.wm-word { fill: var(--wm-word, var(--ink)); }
.wm-ai { fill: var(--wm-ai, var(--glacier)); }
.brand-lg .brand-word { width: clamp(11rem, 18vw, 15rem); }

.nav-list { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.nav-list a {
  position: relative; display: inline-flex; align-items: baseline; gap: .45rem;
  padding: .7rem .1rem; font-size: .9375rem; color: rgba(196, 220, 240, .88); text-decoration: none;
}
.nav-idx { font: 400 .6875rem/1 var(--f-mono); color: var(--small); display: none; }
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .45rem; height: 1px;
  background: var(--gold-2); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.nav-list a:hover { color: var(--ink); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--ink); }
.nav-list .nav-cta { padding-inline: 1rem; border: 1px solid rgba(229, 176, 121, .7); border-radius: 2px; color: var(--gold); }
.nav-list .nav-cta::after { display: none; }
.nav-list .nav-cta:hover, .nav-list .nav-cta[aria-current="page"] { background: rgba(255, 216, 140, .1); color: var(--gold); }
.nav-meta { display: none; }
.menu-btn { display: none; }

@media (min-width: 64em) {
  .nav-list { flex-wrap: nowrap; align-items: center; gap: 1.6rem; }
}
@media (min-width: 80em) { .nav-idx { display: inline; } }

/* Mit JS: feste Kopfzeile mit Grund beim Scrollen, Menue auf kleinen Bildschirmen */
.js .site-header { position: fixed; }
.js .site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(8, 14, 26, .94); border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .45s;
}
.js .site-header.is-scrolled::before, .nav-open .site-header::before { opacity: 1; }
.js .header-inner { flex-wrap: nowrap; height: var(--header-h); padding-block: 0; }

@media (max-width: 63.99em) {
  .js .menu-btn {
    display: inline-flex; align-items: center; gap: .75rem; position: relative; z-index: 2;
    min-height: 2.75rem; padding: .5rem .25rem .5rem .75rem; margin-right: -.25rem;
    background: none; border: 0; color: var(--ink); font: 400 var(--fs-mono)/1 var(--f-mono);
    letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
  }
  .js .menu-btn[hidden] { display: none; }
  .menu-btn-icon { position: relative; width: 1.5rem; height: .75rem; }
  .menu-btn-icon span { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .45s var(--ease); }
  .menu-btn-icon span:first-child { top: 0; }
  .menu-btn-icon span:last-child { bottom: 0; }
  .nav-open .menu-btn-icon span:first-child { transform: translateY(.36rem) rotate(45deg); }
  .nav-open .menu-btn-icon span:last-child { transform: translateY(-.36rem) rotate(-45deg); }
  .js .brand { position: relative; z-index: 2; }

  .js nav.main {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: calc(var(--header-h) + 2.5rem) var(--gutter) 2.5rem;
    background: var(--navy); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translate3d(0, -1rem, 0);
    transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s .6s;
  }
  .nav-open nav.main { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s; }
  .js .nav-list { flex-direction: column; flex-wrap: nowrap; gap: 0; border-top: 1px solid var(--line); }
  .js .nav-list li { border-bottom: 1px solid var(--line); }
  .js .nav-list a { display: flex; width: 100%; padding: 1rem 0; gap: 1rem; font: 400 clamp(1.75rem, 6vw, 2.5rem)/1.15 var(--f-display); color: var(--ink); }
  .js .nav-list a::after { bottom: .6rem; }
  .js .nav-idx { display: inline; font-size: .75rem; }
  .js .nav-list .nav-cta { border: 0; padding-inline: 0; color: var(--gold); }
  .js .nav-meta { display: block; margin-top: 2.5rem; font: 400 var(--fs-small)/1.9 var(--f-mono); color: var(--small); }
  .js .nav-meta a { color: var(--text); text-decoration: none; }
  .nav-open, .nav-open body { overflow: hidden; }
}

/* ---------- Bildrahmen ---------------------------------------------------- */
.frame { position: relative; overflow: hidden; background: var(--navy-3); }
.frame-img { aspect-ratio: 4 / 3; }
.frame-img picture, .frame-img img { width: 100%; height: 100%; object-fit: cover; }
.ai-badge {
  position: absolute; right: .75rem; bottom: .75rem; z-index: 2;
  padding: .3rem .55rem; background: rgba(8, 14, 26, .82);
  font: 400 .6875rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: rgba(196, 220, 240, .92);
}

/* ---------- Hero: Startseite ---------------------------------------------- */
.hero { position: relative; isolation: isolate; }
/* Buehne: 340vh Scrollweg, darin steht die Szene (sticky). Jede Ebene bewegt sich unterschiedlich
   weit, so entsteht eine Kamerafahrt in die Tiefe. Animiert werden nur transform und opacity. */
.film { height: 340vh; height: 340svh; view-timeline: --stage block; }
.stage-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage-scene { position: absolute; inset: 0; z-index: -1; background: #070C17; }
.ly { position: absolute; inset: 0; display: block; will-change: transform, opacity; backface-visibility: hidden; }
.ly img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.ly-glow { opacity: 0; }
.ly-ridge img, .ly-fore img { object-position: 50% 100%; }
.ly-fog img { object-position: 50% 55%; }
.ly-fog-far { opacity: .55; }
.ly-fog-near { opacity: .9; }
.stage-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(7, 12, 23, .7) 0%, rgba(7, 12, 23, 0) 20%),
    linear-gradient(to top, rgba(7, 12, 23, .92) 0%, rgba(7, 12, 23, .55) 26%, rgba(7, 12, 23, 0) 55%),
    linear-gradient(to right, rgba(7, 12, 23, .7) 0%, rgba(7, 12, 23, .25) 40%, rgba(7, 12, 23, 0) 62%);
}
/* Hochformat: Gipfel oben, Text unten auf ruhigem Grund; der vordere Nebel bleibt hinter dem Text zurueck */
@media (max-width: 47.99em) {
  .ly img { object-position: 64% 50%; }
  .stage-shade {
    background:
      linear-gradient(to bottom, rgba(7, 12, 23, .65) 0%, rgba(7, 12, 23, 0) 16%),
      linear-gradient(to top, rgba(7, 12, 23, .96) 0%, rgba(7, 12, 23, .86) 40%, rgba(7, 12, 23, .45) 58%, rgba(7, 12, 23, 0) 72%);
  }
  .ly-fog-near { opacity: .55; }
}
.stage-badge {
  position: absolute; right: var(--gutter); bottom: 1.25rem; z-index: 3; opacity: .7;
  background: rgba(8, 14, 26, .55);
}
.stage-copy { position: absolute; inset: auto 0 0; padding-bottom: clamp(5.5rem, 12vh, 8.5rem); }
.chapter { position: relative; }
.ch-1 > * + * { margin-top: clamp(1.25rem, 2.2vw, 2rem); }
.ch-2, .ch-3 { position: absolute; left: 0; right: 0; bottom: clamp(5.5rem, 12vh, 8.5rem); opacity: 0; visibility: hidden; }
.chapter-no { font: 400 var(--fs-mono)/1 var(--f-mono); letter-spacing: .14em; color: var(--gold-2); }
.chapter-title { margin-top: 1rem; font: 400 clamp(2.6rem, 1.6rem + 4.6vw, 6rem)/1.02 var(--f-display); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.chapter-text { margin-top: 1.25rem; max-width: 30rem; font-size: var(--fs-lead); line-height: 1.5; color: var(--text); }
.hero-home .hero-title { max-width: 15ch; }

/* Scroll-Timeline: laeuft im Browser, ohne JavaScript (Chrome, Edge, Safari 26+).
   Ohne Unterstuetzung steuert site.js dieselben Animationen ueber die Scrollposition. */
@media (prefers-reduced-motion: no-preference) {
  .film .ly, .film .chapter, .film .stage-shade, .film .hero-scroll {
    animation-duration: 1s; animation-timing-function: linear; animation-fill-mode: both;
    animation-timeline: --stage; animation-range: contain 0% contain 100%;
  }
  .ly-blue { animation-name: st-blue; }
  .ly-glow { animation-name: st-glow; }
  .ly-fog-far { animation-name: st-fog-far; }
  .ly-ridge { animation-name: st-ridge; }
  .ly-fog-near { animation-name: st-fog-near; }
  .ly-fore { animation-name: st-fore; }
  .film .ch-1 { animation-name: st-ch1; }
  .film .ch-2 { animation-name: st-ch2; }
  .film .ch-3 { animation-name: st-ch3; }
  .film .hero-scroll { animation-name: st-cue; }
  @supports not (animation-timeline: view()) {
    .film .ly, .film .chapter, .film .hero-scroll { animation-play-state: paused; }
  }
}
@keyframes st-blue { to { transform: scale(1.12) translate3d(0, 2%, 0); } }
@keyframes st-glow { 0%, 30% { opacity: 0; transform: scale(1.04) translate3d(0, .8%, 0); } 75%, 100% { opacity: 1; } 100% { transform: scale(1.12) translate3d(0, 2%, 0); } }
@keyframes st-fog-far { 0% { opacity: .55; transform: translate3d(-3%, 0, 0) scale(1.05); } 100% { opacity: .2; transform: translate3d(4%, 3%, 0) scale(1.2); } }
@keyframes st-ridge { to { transform: scale(1.32) translate3d(0, 7%, 0); } }
@keyframes st-fog-near { 0% { transform: scale(1.1); } 45% { opacity: .35; } 70%, 100% { opacity: 0; transform: scale(1.9) translate3d(0, 6%, 0); } }
@keyframes st-fore { to { transform: scale(1.9) translate3d(0, 22%, 0); } }
@keyframes st-ch1 { 0%, 14% { opacity: 1; transform: none; } 27%, 100% { opacity: 0; transform: translate3d(0, -3rem, 0); visibility: hidden; } }
@keyframes st-ch2 { 0%, 31% { opacity: 0; transform: translate3d(0, 3rem, 0); visibility: hidden; } 40%, 56% { opacity: 1; transform: none; visibility: visible; } 65%, 100% { opacity: 0; transform: translate3d(0, -3rem, 0); visibility: hidden; } }
@keyframes st-ch3 { 0%, 69% { opacity: 0; transform: translate3d(0, 3rem, 0); visibility: hidden; } 78%, 100% { opacity: 1; transform: none; visibility: visible; } }
@keyframes st-cue { 0%, 6% { opacity: 1; } 12%, 100% { opacity: 0; } }

/* Reduzierte Bewegung: keine Fahrt, ein ruhiges Bild, nur das erste Kapitel */
@media (prefers-reduced-motion: reduce) {
  .film { height: auto; }
  .stage-sticky { position: relative; min-height: 100svh; }
  .ch-2, .ch-3 { display: none; }
}
.hero-inner { position: relative; }
.hero-home .hero-inner > * + * { margin-top: clamp(1.25rem, 2.2vw, 2rem); }
.hero-home .hero-title { max-width: 15ch; }
.hero-lead { max-width: 36rem; }
.hero-eyebrow { color: rgba(196, 220, 240, .82); }
.hero-scroll {
  position: absolute; left: var(--gutter); bottom: 1.4rem; display: none; align-items: center; gap: .8rem;
  font: 400 var(--fs-mono)/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--small);
}
.hero-scroll-line { width: 3.5rem; height: 1px; background: var(--line-strong); overflow: hidden; position: relative; }
.hero-scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--gold-2); transform: scaleX(.3); transform-origin: left; }
@media (min-width: 48em) { .hero-scroll { display: flex; } }

/* ---------- Hero: Detailseiten -------------------------------------------- */
.hero-page {
  padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 6.5rem)) 0 clamp(4rem, 8vw, 7.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-contours {
  position: absolute; z-index: -1; inset: -10% -25% -30% 15%;
  perspective: 1100px; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 55% 55% at 58% 48%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 55% at 58% 48%, #000 25%, transparent 75%);
}
.contours {
  width: 100%; height: 100%;
  transform: rotateX(58deg) rotateZ(-14deg) scale(1.25);
  transform-origin: 55% 55%;
}
.contours path { fill: none; stroke: rgba(138, 178, 214, .3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.contours path.major { stroke: rgba(229, 176, 121, .38); }
.breadcrumb { margin-bottom: clamp(2rem, 5vw, 4rem); }
.breadcrumb ol { display: flex; flex-wrap: wrap; font: 400 var(--fs-mono)/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--small); }
.breadcrumb li + li::before { content: "/" / ""; margin-inline: .7rem; color: var(--line-strong); }
.breadcrumb a { display: inline-block; padding-block: .35rem; text-decoration: none; color: var(--small); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb a[aria-current="page"] { color: var(--frost); }
.hero-grid { display: grid; gap: 3rem var(--col-gap); grid-template-columns: minmax(0, 1fr); }
.hero-text > * + * { margin-top: clamp(1.25rem, 2.2vw, 2rem); }
.hero-page .hero-title { max-width: 18ch; }
@media (min-width: 64em) {
  .hero-page .hero-lead { margin-left: 33.333%; max-width: 38rem; }
  .hero-page .actions { margin-left: 33.333%; }
  .hero-page.has-media .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .hero-page.has-media .hero-text { grid-column: 1 / 8; }
  .hero-page.has-media .hero-figure { grid-column: 8 / 13; }
  .hero-page.has-media .hero-lead, .hero-page.has-media .actions { margin-left: 0; }
  .hero-page.has-media .frame-img { aspect-ratio: 4 / 5; }
}

/* ---------- Abschnitte: gemeinsame Ordnung -------------------------------- */
.sec { position: relative; padding-block: var(--sec-pad); }
.sec + .sec::before {
  content: ""; position: absolute; top: 0; height: 1px;
  left: max(var(--gutter), (100% - var(--max)) / 2); right: max(var(--gutter), (100% - var(--max)) / 2);
  background: var(--line); transform-origin: left;
}
.sec-facts + .sec::before, .sec-cta::before, .sec-cta + .sec::before { display: none; }
.sec-head .h2 { max-width: 18ch; }
.col-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.intro { font-size: var(--fs-lead); line-height: 1.55; color: var(--text); max-width: 40rem; }
.prose { max-width: 40rem; }
.prose p + p { margin-top: 1.15em; }
.lead-p { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); }

/* Rechtsseiten: lange Texte, deshalb hoeherer Kontrast als der Fliesstext */
.sec-legal { padding-top: clamp(1rem, 3vw, 2rem); }
.legal { color: rgba(196, 220, 240, .9); }
.legal h2 {
  font-size: var(--fs-h3); line-height: 1.25; color: var(--ink);
  margin: 2.75em 0 .7em; padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.legal h2:first-child, .legal > p:first-child + h2 { margin-top: 1.5em; }
.legal a { overflow-wrap: anywhere; }

@media (min-width: 48em) and (max-width: 63.99em) {
  .col-body { margin-left: 16.666%; }
}
@media (min-width: 64em) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .col-head { grid-column: 1 / 6; margin-bottom: 0; }
  .col-body { grid-column: 7 / 13; }
  .col-head.sticky { position: sticky; top: calc(var(--header-h) + 2.5rem); align-self: start; }
  .sec-teaser .col-head, .sec-steps .col-head, .sec-usecases .col-head { grid-column: 1 / 9; margin-bottom: 3.5rem; }
  .sec-steps .col-body.intro, .sec-usecases .col-body.intro { grid-column: 9 / 13; align-self: end; margin-bottom: 3.5rem; font-size: var(--fs-body); }
}

/* ---------- list: nummerierte Zeilen -------------------------------------- */
.col-body .intro + .rows { margin-top: 2.5rem; }
.rows { border-top: 1px solid var(--line-strong); }
.rows > li { border-bottom: 1px solid var(--line); }
.row summary {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr) 1.1rem; align-items: start; gap: 1rem;
  padding-block: 1.45rem; cursor: pointer; list-style: none;
}
.row-no { padding-top: .45rem; font: 400 var(--fs-mono)/1 var(--f-mono); letter-spacing: .1em; color: var(--gold-2); }
.row-title { transition: color .3s var(--ease), transform .45s var(--ease); }
.row summary:hover .row-title, .row[open] .row-title { color: #fff; }
@media (hover: hover) { .row summary:hover .row-title { transform: translateX(.35rem); } }
.row-text { color: var(--text-soft); max-width: 36rem; padding: 0 2rem 1.7rem 4rem; }

/* ---------- steps: Hoehenprofil ------------------------------------------- */
.profile { position: relative; margin-top: 2.5rem; padding-left: 1.75rem; }
.profile::before { content: ""; position: absolute; left: 0; top: .5rem; bottom: 0; width: 1px; background: var(--line-strong); transform-origin: top; }
.stage { position: relative; padding-bottom: 2.75rem; }
.stage::before {
  content: ""; position: absolute; left: calc(-1.75rem - 3px); top: .55rem; width: 7px; height: 7px;
  background: var(--gold); border-radius: 50%;
}
.stage-line { display: none; }
.stage-no { font-size: 1rem; color: var(--gold-2); font-family: var(--f-mono); letter-spacing: .1em; margin-bottom: .6rem; }
.stage-title { margin-bottom: .6rem; }
.stage-text { color: var(--text-soft); max-width: 30rem; }
@media (min-width: 64em) {
  .profile {
    display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: end;
    padding-left: 0; margin-top: 0;
  }
  .profile::before { display: none; }
  .stage {
    min-height: calc(17rem + var(--i) * 3.25rem);
    padding: 1.6rem clamp(1rem, 2vw, 2rem) 0 1.4rem;
    border-left: 1px solid var(--line-strong);
  }
  .stage::before { left: -4px; top: -3px; }
  .stage-line {
    display: block; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(to right, var(--gold-2), var(--glacier));
    transform-origin: left;
  }
  .stage-no { font-size: clamp(2.5rem, 4vw, 3.5rem); font-family: var(--f-display); letter-spacing: -.02em; color: var(--ink); line-height: 1; margin-bottom: 1.4rem; }
}

/* ---------- split: Bild und Text ------------------------------------------ */
.split-grid { row-gap: 2.5rem; align-items: center; }
.split-text .sec-head { margin-bottom: 2rem; }
@media (min-width: 64em) {
  .split-media { grid-column: 1 / 8; grid-row: 1; }
  .split-text { grid-column: 9 / 13; grid-row: 1; }
  .is-flipped .split-media { grid-column: 6 / 13; }
  .is-flipped .split-text { grid-column: 1 / 5; }
  .no-media .split-text { grid-column: 1 / 9; }
  .split-media .frame-img { aspect-ratio: 5 / 4; }
}

/* ---------- facts: Eckdaten ----------------------------------------------- */
.sec-facts { padding-block: 0; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.fact { padding: 1.5rem 1rem 1.75rem 0; border-top: 1px solid var(--line); }
.fact dt { font: 400 var(--fs-mono)/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--small); margin-bottom: .6rem; }
.fact dd { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.25; }
@media (min-width: 64em) {
  .facts { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; }
  .fact { padding: 2rem 1.5rem 2.25rem; border-left: 1px solid var(--line); }
  .fact:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- usecases: Anwendungsfaelle ------------------------------------ */
.case { display: grid; gap: 1.5rem var(--col-gap); padding-block: 2.25rem; border-top: 1px solid var(--line-strong); }
.case:last-child { border-bottom: 1px solid var(--line); }
.case-kicker { font: 400 var(--fs-mono)/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: .8rem; }
.case-body dl > div { display: grid; gap: .35rem 1.5rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.case-body > dl:first-child > div { border-top: 0; padding-top: 0; }
.case-body dt { font: 400 var(--fs-mono)/1.6 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--small); }
.case-body dd { color: var(--text); max-width: 42rem; }
@media (min-width: 48em) { .case-body dl > div { grid-template-columns: 9.5rem minmax(0, 1fr); } }
@media (min-width: 64em) {
  .case { grid-template-columns: repeat(12, minmax(0, 1fr)); padding-block: 3rem; }
  .case-head { grid-column: 1 / 6; }
  .case-body { grid-column: 6 / 13; }
}

/* ---------- faq ----------------------------------------------------------- */
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.5rem; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-size: clamp(1.2rem, 1.1rem + .45vw, 1.5rem); line-height: 1.3; }
.faq-item summary:hover .faq-q { color: #fff; }
.faq-mark { position: relative; flex: none; width: 1.1rem; height: 1.1rem; margin-top: .45rem; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--gold-2); transition: transform .45s var(--ease); }
.faq-mark::after { transform: rotate(90deg); }
.faq-item[open] .faq-mark::after { transform: rotate(0deg); }

/* ---------- Aufklappen (Liste, Weiterlesen, Anwendungsfaelle) ---------------
   Der Text bleibt im HTML und wird von Suchmaschinen gelesen; sichtbar ist nur das Wesentliche. */
.fold summary::-webkit-details-marker, .more summary::-webkit-details-marker { display: none; }
.fold-mark { position: relative; width: 1.1rem; height: 1.1rem; margin-top: .45rem; }
.fold-mark::before, .fold-mark::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--gold-2); transition: transform .45s var(--ease); }
.fold-mark::after { transform: rotate(90deg); }
[open] > summary .fold-mark::after { transform: rotate(0deg); }
.more summary {
  display: inline-flex; align-items: center; gap: .8rem; margin-top: 1.4rem; padding-block: .5rem;
  cursor: pointer; list-style: none;
  font: 400 var(--fs-mono)/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2);
}
.more summary:hover { color: var(--gold); }
.more .fold-mark { margin-top: 0; width: .8rem; height: .8rem; }
.more[open] .more-label { color: var(--small); }
.more-body { padding-top: 1rem; }
.more-body p + p { margin-top: 1.15em; }
.case .more summary { margin-top: .4rem; }
@supports selector(::details-content) {
  :root { interpolate-size: allow-keywords; }
  .fold::details-content, .more::details-content, .faq-item::details-content {
    block-size: 0; overflow: clip; opacity: 0;
    transition: block-size .55s var(--ease), opacity .45s var(--ease), content-visibility .55s allow-discrete;
  }
  .fold[open]::details-content, .more[open]::details-content, .faq-item[open]::details-content { block-size: auto; opacity: 1; }
  @media (prefers-reduced-motion: reduce) {
    .fold::details-content, .more::details-content, .faq-item::details-content { transition: none; }
  }
}
.faq-a { padding-bottom: 1.75rem; max-width: 42rem; color: var(--text); }

/* ---------- cta ----------------------------------------------------------- */
.sec-cta { overflow: hidden; padding-block: clamp(6rem, 5rem + 8vw, 13rem); background: linear-gradient(to bottom, var(--navy), var(--navy-2) 70%, var(--navy)); }
.cta-ridge { position: absolute; z-index: 0; right: -12%; top: 50%; width: min(95vw, 62rem); transform: translateY(-50%); opacity: .3; pointer-events: none; }
.cta-ridge svg { width: 100%; height: auto; overflow: visible; }
.cta-inner { position: relative; z-index: 1; display: grid; gap: 2rem var(--col-gap); }
.cta-title { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 5rem); max-width: 16ch; }
.cta-text { color: var(--text); max-width: 32rem; margin-bottom: 2rem; }
@media (min-width: 64em) {
  .cta-inner { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .cta-title { grid-column: 1 / 9; }
  .cta-side { grid-column: 9 / 13; }
}

/* ---------- teaser: Indexzeilen ------------------------------------------- */
.index-list { border-top: 1px solid var(--line-strong); }
.index-row {
  position: relative; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; gap: .5rem 1rem;
  padding-block: 1.75rem 1.9rem; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.index-row::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold-2);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease);
}
.index-no { grid-row: 1 / 3; padding-top: .7rem; font: 400 var(--fs-mono)/1 var(--f-mono); letter-spacing: .1em; color: var(--gold-2); }
.index-title { font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.9rem); line-height: 1.1; letter-spacing: -.015em; transition: transform .6s var(--ease); }
.index-text { grid-column: 2; color: var(--text-soft); max-width: 34rem; }
.index-go { grid-column: 3; grid-row: 1; align-self: center; display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); transition: transform .6s var(--ease), border-color .3s; }
.index-go .i-arrow { width: 1.1rem; height: 1.1rem; }
.index-row:hover::after, .index-row:focus-visible::after { transform: scaleX(1); }
.index-row:hover .index-title { transform: translateX(.6rem); }
.index-row:hover .index-go { transform: translateX(.3rem); border-color: var(--gold-2); }
@media (min-width: 64em) {
  .index-row { grid-template-columns: 4rem minmax(0, 6fr) minmax(0, 5fr) 3rem; align-items: center; padding-block: 2.4rem; column-gap: var(--col-gap); }
  .index-no { grid-row: auto; padding-top: 0; }
  .index-text { grid-column: 3; }
  .index-go { grid-column: 4; justify-self: end; }
}

/* ---------- Kontaktformular ----------------------------------------------- */
.sec-contact .grid { row-gap: 3rem; }
.contact-left > * + * { margin-top: 2rem; }
.contact-detail { border-top: 1px solid var(--line); }
.contact-detail .contact-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding-block: .9rem; border-bottom: 1px solid var(--line); }
.contact-detail dt { font: 400 var(--fs-mono)/1.9 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--small); }
.contact-detail a { color: var(--ink); text-decoration: none; }
.contact-detail a:hover { text-decoration: underline; text-underline-offset: .2em; }
#contact-form { position: relative; }
.field-group { display: flex; flex-direction: column-reverse; gap: .5rem; margin-bottom: 1.35rem; }
.field-group label { font: 400 var(--fs-mono)/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--form-label); }
.req { margin-left: .5rem; letter-spacing: .08em; text-transform: none; color: var(--form-note); }
.req::before { content: "· "; }
.field-group input, .field-group select, .field-group textarea {
  width: 100%; min-height: 3.1rem; padding: .8rem .95rem;
  background: rgba(196, 220, 240, .035); color: var(--ink);
  font: 400 1rem/1.5 var(--f-text);
  border: 1px solid var(--field-border); border-radius: 2px;
  transition: border-color .25s, background-color .25s;
}
.field-group textarea { min-height: 8.5rem; resize: vertical; }
.field-group select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23C4DCF0' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field-group select option { background: var(--navy-2); color: var(--ink); }
.field-group ::placeholder { color: rgba(196, 220, 240, .6); opacity: 1; }
.field-group input:hover, .field-group select:hover, .field-group textarea:hover { border-color: rgba(196, 220, 240, .75); }
.field-group input:focus-visible, .field-group select:focus-visible, .field-group textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); background-color: rgba(196, 220, 240, .06); }
.turnstile-wrap { min-height: 65px; margin-bottom: 1.35rem; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.form-foot .note { flex: 1 1 18rem; font-size: var(--fs-small); line-height: 1.6; color: var(--form-note); }
.form-foot .note a { color: var(--frost); text-decoration: underline; text-underline-offset: .2em; }
.contact-error { margin-top: 1.25rem; padding: .9rem 1rem; border-left: 2px solid #FF9F8F; background: rgba(255, 159, 143, .08); color: #FFC9BF; font-size: var(--fs-small); }
.contact-error:empty { display: none; }
.contact-sent { display: none; padding: 2.5rem 0; border-top: 1px solid var(--line-strong); }
.contact-sent .big { font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem); line-height: 1.05; margin-bottom: 1rem; }
@media (min-width: 64em) {
  .contact-left { grid-column: 1 / 6; }
  .contact-right { grid-column: 7 / 13; }
}

/* ---------- Fusszeile ----------------------------------------------------- */
footer { position: relative; overflow: hidden; padding: clamp(4.5rem, 8vw, 8rem) 0 2rem; border-top: 1px solid var(--line); background: var(--navy); }
.footer-ridge { position: absolute; z-index: 0; right: -8vw; bottom: -4vw; width: min(78vw, 60rem); opacity: .14; pointer-events: none; }
.footer-ridge svg { width: 100%; height: auto; overflow: visible; }
.footer-inner { position: relative; z-index: 1; display: grid; gap: 3.5rem var(--col-gap); }
.footer-brand > * + * { margin-top: 1.5rem; }
.footer-claim { max-width: 26rem; color: var(--text-soft); }
.footer-address { font: 400 var(--fs-small)/1.8 var(--f-mono); font-style: normal; color: var(--small); }
.footer-address a { color: var(--text); text-decoration: none; }
.footer-address a:hover { text-decoration: underline; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem clamp(2rem, 5vw, 4.5rem);
}
.fl-col { min-width: 9rem; }
.fl-h { font: 400 var(--fs-mono)/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--small); margin-bottom: 1rem; }
.fl-col a { display: inline-block; padding-block: .4rem; color: var(--text); text-decoration: none; }
.fl-col a:hover, .fl-col a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-2); text-underline-offset: .25em; }
.footer-base { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: clamp(4rem, 8vw, 7rem); padding-top: 1.5rem; border-top: 1px solid var(--line); font: 400 var(--fs-mono)/1.6 var(--f-mono); letter-spacing: .06em; color: var(--small); }
@media (min-width: 64em) {
  .footer-inner { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / 6; }
  .footer-nav { grid-column: 7 / 13; }
}

/* ---------- 404 ----------------------------------------------------------- */
.nf-links { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.nf-links a { display: inline-block; padding-block: .5rem; color: var(--text); }

/* ==========================================================================
   Bewegung — nur ohne prefers-reduced-motion
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Bildmarke zeichnet sich ein */
  .draw use { stroke-dasharray: 1; }
  .brand-mark.draw use { animation: draw 1.8s var(--ease-io) .15s both; }
  .reveal .draw-on-view use { stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease-io); }
  .reveal .draw-on-view.is-in use { stroke-dashoffset: 0; }

  /* Hero Startseite: langsame Kamerafahrt, zwei Nebelebenen */
  .hero-scroll-line::after { animation: scroll-cue 2.8s var(--ease-io) 1.6s infinite; }

  /* Hero-Text: gestaffelter Auftritt beim Laden (h1 nur per transform) */
  .hero-inner .eyebrow, .hero-inner .hero-lead, .hero-inner .actions, .breadcrumb, .ch-1 .eyebrow, .ch-1 .hero-lead, .ch-1 .actions { animation: rise .95s var(--ease) both; }
  .hero-inner .hero-title, .ch-1 .hero-title { animation: lift 1.1s var(--ease) both; }
  .hero-inner .hero-title, .ch-1 .hero-title { animation-delay: .08s; }
  .hero-inner .hero-lead, .ch-1 .hero-lead { animation-delay: .22s; }
  .hero-inner .actions, .ch-1 .actions { animation-delay: .34s; }

  /* Einblenden beim Scrollen: html.reveal setzt erst site.js, wenn der Observer laeuft */
  .reveal [data-reveal] {
    opacity: 0; transform: translate3d(0, var(--rise), 0);
    transition: opacity .9s var(--ease), transform 1.15s var(--ease);
    transition-delay: var(--delay, 0s);
  }
  .reveal [data-reveal].is-in { opacity: 1; transform: none; }

  /* Haarlinien zwischen Abschnitten ziehen sich auf */
  .reveal .sec + .sec::before { transform: scaleX(0); transition: transform 1.6s var(--ease); }
  .reveal .sec.is-in + .sec::before, .reveal .sec + .sec.is-in::before { transform: scaleX(1); }

  /* Hoehenprofil: Linien zeichnen sich Etappe fuer Etappe */
  .reveal [data-reveal="profile"] { transform: none; }
  .reveal [data-reveal="profile"] .stage { opacity: 0; transform: translate3d(0, 1.25rem, 0); transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i) * .16s + .1s); }
  .reveal [data-reveal="profile"].is-in .stage { opacity: 1; transform: none; }
  .reveal [data-reveal="profile"] .stage-line { transform: scaleX(0); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * .16s + .25s); }
  .reveal [data-reveal="profile"].is-in .stage-line { transform: scaleX(1); }
  .reveal [data-reveal="profile"]::before { transform: scaleY(0); transition: transform 1.6s var(--ease); }
  .reveal [data-reveal="profile"].is-in::before { transform: scaleY(1); }

  /* Dezente 3D-Perspektive: Bildrahmen richten sich auf */
  .reveal [data-reveal="tilt"] { transform: none; }
  .reveal [data-reveal="tilt"] .frame { transform: perspective(1400px) rotateY(8deg) translate3d(1.5rem, 0, -40px); transform-origin: left center; transition: transform 1.6s var(--ease); }
  .reveal .is-flipped [data-reveal="tilt"] .frame { transform: perspective(1400px) rotateY(-8deg) translate3d(-1.5rem, 0, -40px); transform-origin: right center; }
  .reveal [data-reveal="tilt"].is-in .frame { transform: none; }
  .reveal [data-reveal="tilt"] img { transform: scale(1.08); transition: transform 2.2s var(--ease); }
  .reveal [data-reveal="tilt"].is-in img { transform: none; }

  /* Mobil: kuerzere Wege, Nebel nur eine Ebene in Bewegung */
  @media (max-width: 47.99em) {
    :root { --rise: 1rem; }
    .reveal [data-reveal="tilt"] .frame, .reveal .is-flipped [data-reveal="tilt"] .frame { transform: translate3d(0, 1rem, 0); }
  }
}

.hero-home.is-off .hero-scroll-line::after { animation-play-state: paused; }

@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 1.25rem, 0); } to { opacity: 1; transform: none; } }
@keyframes lift { from { transform: translate3d(0, .35em, 0); } to { transform: none; } }
@keyframes scroll-cue { 0% { transform: translateX(-100%) scaleX(.3); } 60%, 100% { transform: translateX(340%) scaleX(.3); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Robustheit (Review) ------------------------------------------- */
/* Skip-Link-Ziel ist per tabindex fokussierbar, soll aber keinen Rahmen um die ganze Seite zeigen */
main:focus { outline: none; }

/* Ohne JS bricht die Linkzeile um: Header nimmt dann Platz ein, statt ueber dem Hero zu liegen */
@media (max-width: 63.99em) {
  html:not(.js) .site-header { position: static; }
  html:not(.js) nav.main { flex: 1 0 100%; }
}

/* Lange zusammengesetzte Woerter und E-Mail-Adressen sprengen auf 320 px keine Spalte */
.h3, .faq-q, .index-title, .fact, .fact dd, .contact-detail dd, .contact-detail a {
  min-width: 0; overflow-wrap: anywhere; hyphens: auto;
}

/* Bequemere Tippflaechen auf Touch-Geraeten */
@media (pointer: coarse) {
  .brand, .breadcrumb a, .fl-col a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ---------- Interaktion: Lichtkegel und Scroll-Fortschritt ---------------- */
/* Ein weicher Goldschein folgt dem Mauszeiger ueber Indexzeilen, Listen und Anwendungsfaellen */
@media (hover: hover) and (pointer: fine) {
  .index-row, .row summary, .case { position: relative; isolation: isolate; }
  .index-row::before, .row summary::before, .case::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
    background: radial-gradient(28rem circle at var(--mx, 50%) var(--my, 50%), rgba(229, 176, 121, .09), transparent 60%);
    transition: opacity .5s var(--ease);
  }
  .index-row:hover::before, .row summary:hover::before, .case:hover::before { opacity: 1; }
}
/* Feine Goldlinie unter dem Header zeigt den Lesefortschritt (nur wo Scroll-Timelines laufen) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header::after {
      content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 2;
      background: linear-gradient(to right, var(--gold-2), var(--gold));
      transform: scaleX(0); transform-origin: left;
      animation: read-progress linear both; animation-timeline: scroll(root);
    }
    @keyframes read-progress { to { transform: scaleX(1); } }
  }
}

/* Portraet auf Ueber uns: Ausschnitt am Gesicht ausrichten (mobil wird quer beschnitten) */
.hero-figure img[src*="michael-rass"] { object-position: 50% 22%; }
