/* AURYS – Design-Tokens
   Markenfarben von aurys.de: Weiß, Hellgrau, Gold #CBB26A, Schrift Inter.
   Kontraste geprüft (scripts/contrast.py): Gold nie als Textfarbe auf Hell, nie weiße Schrift auf Gold. */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  /* Flächen */
  --paper: #ffffff;
  --stone: #f5f5f4;
  --stone-2: #ececea;
  --line: #e2e2df;
  --line-2: #d4d4d0;
  /* Schrift */
  --ink: #1c1e21;
  --text: #34373b;
  --muted: #5f6368;
  /* Nacht-Sektionen */
  --night: #121315;
  --night-2: #1b1d20;
  --night-3: #24272b;
  --night-line: #2e3135;
  --night-text: #d3d5d8;
  --night-muted: #9fa3a8;
  /* Gold */
  --gold: #cbb26a;
  --gold-400: #d7c385;
  --gold-300: #dccb9b;
  --gold-200: #eadfbe;
  --gold-100: #f5eeda;
  --gold-50: #fbf8ef;
  --gold-600: #9c8440;
  --gold-700: #7a6528;
  --gold-800: #5e4e1f;
  /* Status */
  --ok: #1a7146;
  --ok-bg: #e8f4ee;
  --err: #b42318;
  --err-bg: #fdeceb;

  --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Typo-Skala */
  --fs-small: 0.9rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  --fs-h3: clamp(1.18rem, 1.05rem + 0.5vw, 1.45rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.6vw, 3.45rem);
  --fs-display: clamp(2.55rem, 1.35rem + 4.7vw, 5.35rem);
  --fs-number: clamp(2.4rem, 1.7rem + 2.6vw, 4.1rem);

  /* Raum */
  --wrap: 77rem;
  --wrap-wide: 90rem;
  --prose: 40rem;
  --gutter: clamp(1.25rem, 0.75rem + 2.2vw, 2.75rem);
  --section: clamp(4.75rem, 3rem + 6.5vw, 9rem);
  --gap: clamp(1.25rem, 0.9rem + 1.4vw, 2.25rem);

  /* Formen */
  --r-s: 8px;
  --r: 12px;
  --r-l: 20px;
  --r-xl: 28px;
  --shadow-1: 0 1px 2px rgba(28, 30, 33, 0.06), 0 2px 10px rgba(28, 30, 33, 0.05);
  --shadow-2: 0 22px 44px -22px rgba(28, 30, 33, 0.32);
  --shadow-3: 0 48px 90px -36px rgba(18, 19, 21, 0.55);
  --glow: 0 14px 34px -14px rgba(203, 178, 106, 0.7);

  /* Bewegung */
  --motion: 1;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-std: cubic-bezier(0.2, 0, 0, 1);
  --t-fast: calc(160ms * var(--motion));
  --t: calc(320ms * var(--motion));
  --t-slow: calc(800ms * var(--motion));

  --header-h: 76px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --motion: 0; }
}
.reduce-motion { --motion: 0; }

/* Basis: Reset, Typografie, Fokus, Hilfsklassen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; } /* sonst gewinnt z. B. .btn { display: inline-flex } gegen hidden */
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:where(ul, ol)[role="list"], .list-plain { list-style: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
p, li, dd, blockquote { text-wrap: pretty; }
html[lang="de"] p, html[lang="de"] li { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; }
strong { font-weight: 650; color: var(--ink); }
small { font-size: var(--fs-small); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: var(--gold-200); color: var(--ink); }

/* Überschriften */
.display {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 660;
  font-variation-settings: "opsz" 32;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -0.032em;
  font-weight: 640;
  font-variation-settings: "opsz" 32;
}
.h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.012em; font-weight: 620; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text); max-width: 38rem; }
.muted { color: var(--muted); }
/* Zweistufige Überschriften: leichte Zeile + kräftige Zeile (Gewicht statt Farbakzent) */
.split > span { display: block; }
.split .lt { font-weight: 280; color: var(--muted); }
.split .st { font-weight: 660; }
.on-night .split .lt, .split.on-night .lt { color: var(--night-muted); }

/* Kleine Kontextzeile über Überschriften – nur wo sie Information trägt */
.context { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; font-weight: 560; color: var(--gold-700); margin: 0 0 1rem; }
.context::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--gold); }
.on-night .context { color: var(--gold-300); }

/* Links im Fließtext */
.prose a, .link {
  color: var(--gold-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold-300);
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
.prose a:hover, .link:hover { color: var(--gold-800); text-decoration-color: var(--gold-700); }
.on-night .prose a, .on-night .link { color: var(--gold-300); text-decoration-color: rgba(220, 203, 155, 0.5); }

/* Fokus */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-night :focus-visible { outline-color: var(--gold-300); }

/* Hilfsklassen */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--ink); color: #fff; padding: 0.7rem 1rem; border-radius: var(--r-s); text-decoration: none; font-weight: 600; transition: top var(--t-fast); }
.skip-link:focus { top: 1rem; }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.badge-model {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--gold-700); background: var(--gold-50); border: 1px solid var(--gold-200);
  padding: 0.12rem 0.55rem; border-radius: 999px; white-space: nowrap;
}
.on-night .badge-model { color: var(--gold-300); background: rgba(203, 178, 106, 0.1); border-color: rgba(203, 178, 106, 0.3); }
sup.fn { font-size: 0.7em; line-height: 0; margin-left: 1px; }
sup.fn a { color: var(--gold-700); text-decoration: none; font-weight: 600; }
.on-night sup.fn a { color: var(--gold-300); }

/* Layout: Container, Sektionen, Themen */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2 * var(--gutter), var(--wrap-wide)); margin-inline: auto; }
.wrap-prose { width: min(100% - 2 * var(--gutter), var(--prose)); margin-inline: auto; }

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--flush-top { padding-top: 0; }
.theme-stone { background: var(--stone); }
.theme-night { background: var(--night); color: var(--night-text); }
.theme-night h1, .theme-night h2, .theme-night h3, .theme-night strong { color: #fff; }
.on-night :where(h1, h2, h3) { color: #fff; }
.theme-gold { background: var(--gold-50); }

/* Kopf einer Sektion: Überschrift links, Erklärung daneben (ab Desktop) */
.sec-head { display: grid; gap: 1.25rem 3rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.sec-head .lead { margin: 0; }
@media (min-width: 1024px) {
  .sec-head--split { grid-template-columns: 1.15fr 0.85fr; align-items: end; }
}

.grid-2 { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-text-media { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
@media (min-width: 1024px) {
  .grid-text-media { grid-template-columns: 0.95fr 1.05fr; }
  .grid-text-media--flip > :first-child { order: 2; }
}

/* Foto-Rahmen */
.photo { position: relative; overflow: hidden; border-radius: var(--r-l); background: var(--stone-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 3 / 2; }
.photo figcaption { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; color: #fff; font-size: 0.9rem; font-weight: 520; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }

/* Vollbreites Fotoband */
.band { position: relative; min-height: clamp(18rem, 12rem + 22vw, 34rem); overflow: hidden; background: var(--night); }
.band picture, .band img { position: absolute; inset: 0; width: 100%; height: 100%; }
.band img { object-fit: cover; }

/* Komponenten: Buttons, Header, Navigation, Footer, Formulare, Dialoge, Consent, Marquee, FAQ */

/* Buttons */
.btn {
  --btn-bg: var(--gold); --btn-fg: var(--ink); --btn-bd: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.1rem; padding: 0.8rem 1.4rem;
  border-radius: 10px; border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 620; font-size: 1rem; line-height: 1.2; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t), transform var(--t);
}
.btn:hover { --btn-bg: var(--gold-400); --btn-bd: var(--gold-400); box-shadow: var(--glow); }
.btn:active { transform: translateY(1px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bg: var(--stone); --btn-bd: var(--ink); box-shadow: none; }
.on-night .btn--ghost, .btn--ghost.on-night { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.35); }
.on-night .btn--ghost:hover, .btn--ghost.on-night:hover { --btn-bg: rgba(255, 255, 255, 0.08); --btn-bd: #fff; }
.btn--small { min-height: 2.6rem; padding: 0.55rem 1rem; font-size: 0.95rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.btn .ico { width: 18px; height: 18px; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.cta-micro { font-size: 0.92rem; color: var(--muted); margin: 0.9rem 0 0; }
.on-night .cta-micro { color: var(--night-muted); }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.header.is-stuck { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; width: min(100% - 2 * var(--gutter), var(--wrap-wide)); margin-inline: auto; }
.header__logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.header__logo svg { height: 38px; width: auto; }
.header__logo .logo-dark { display: none; }
.header__nav { margin-left: auto; display: none; }
.header__nav ul { display: flex; gap: 0.25rem; list-style: none; }
.header__nav a {
  display: inline-block; padding: 0.55rem 0.8rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 540; font-size: 0.98rem;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.header__nav a:hover { background: var(--stone); }
.header__nav a[aria-current="page"] { color: var(--gold-700); }
.header__cta { display: none; }
.header__burger {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink);
}
.header__burger svg { width: 22px; height: 22px; }
/* Über dunklem Hero: transparent */
.header--overlay:not(.is-stuck) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header--overlay:not(.is-stuck) .logo-light { display: none; }
.header--overlay:not(.is-stuck) .logo-dark { display: block; }
.header--overlay:not(.is-stuck) .header__nav a { color: #fff; }
.header--overlay:not(.is-stuck) .header__nav a:hover { background: rgba(255, 255, 255, 0.1); }
.header--overlay:not(.is-stuck) .header__burger { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.header--overlay:not(.is-stuck) .header__cta .btn--ghost { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.4); }
@media (min-width: 1080px) {
  .header__nav { display: block; }
  .header__cta { display: flex; gap: 0.6rem; }
  .header__burger { display: none; }
}
@media (min-width: 1080px) and (max-width: 1240px) { .header__cta .btn--ghost { display: none; } }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }

/* Mobile Navigation (dialog) */
.drawer { border: 0; padding: 0; margin: 0 0 0 auto; width: min(26rem, 100%); height: 100dvh; max-height: none; background: var(--paper); color: var(--ink); }
.drawer::backdrop { background: rgba(18, 19, 21, 0.5); }
.drawer[open] { animation: drawer-in calc(360ms * var(--motion)) var(--ease); }
@keyframes drawer-in { from { transform: translateX(30px); opacity: 0; } }
.drawer__inner { display: flex; flex-direction: column; height: 100%; padding: 1.25rem var(--gutter) 2rem; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.drawer__top svg.logo { height: 34px; width: auto; }
.drawer nav ul { list-style: none; display: grid; gap: 0.25rem; }
.drawer nav a { display: block; padding: 0.9rem 0; font-size: 1.35rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer__cta { margin-top: auto; display: grid; gap: 0.75rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; }
.icon-btn svg { width: 20px; height: 20px; }

/* Footer */
.footer { background: var(--night); color: var(--night-text); padding: clamp(3.5rem, 2.5rem + 3vw, 5.5rem) 0 2rem; }
.footer a { color: var(--night-text); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__logo svg { height: 40px; width: auto; margin-bottom: 1.25rem; }
.footer__claim { color: var(--night-muted); max-width: 22rem; }
.footer h3 { font-size: 0.95rem; font-weight: 620; color: #fff; margin-bottom: 0.9rem; letter-spacing: 0; }
.footer ul { list-style: none; display: grid; gap: 0.55rem; }
.footer address { font-style: normal; line-height: 1.7; }
.footer__contact { margin-top: 0.8rem; }
/* Button, der wie ein Link aussieht (z. B. Cookie-Einstellungen) */
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.footer .link-btn { color: var(--night-text); }
.footer .link-btn:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--night-line); color: var(--night-muted); font-size: 0.88rem; }
.footer__bottom button { background: none; border: 0; padding: 0; color: var(--night-text); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

/* Formulare */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 580; font-size: 0.95rem; color: var(--ink); }
.field input {
  width: 100%; min-height: 3.1rem; padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input::placeholder { color: #9a9da1; }
.field input:hover { border-color: #b9b9b4; }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--gold-200); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field__error { color: var(--err); font-size: 0.88rem; min-height: 0; }
.field__error:empty { display: none; }
.form__note { font-size: 0.86rem; color: var(--muted); margin: 0; }
.form__note a { color: var(--gold-700); }
.form__status { border-radius: 10px; padding: 0.9rem 1rem; font-size: 0.95rem; }
.form__status:empty { display: none; }
.form__status--error { background: var(--err-bg); color: #7a1a12; }
.form__fallback { display: grid; gap: 0.75rem; background: var(--gold-50); border: 1px solid var(--gold-200); border-radius: var(--r); padding: 1.25rem; }
.form__fallback[hidden] { display: none; }
.form__fallback p { margin: 0; }
.form__fallback .cta-row .btn { min-height: 2.7rem; }
.form-success { text-align: left; }
.form-success[hidden] { display: none; }
.form-success .ok { width: 46px; height: 46px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin-bottom: 1rem; }

/* Dialog (Pop-up) */
.dialog { border: 0; padding: 0; width: min(36rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); border-radius: var(--r-l); background: #fff; color: var(--text); box-shadow: var(--shadow-3); overflow: auto; }
.dialog::backdrop { background: rgba(18, 19, 21, 0.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dialog[open] { animation: dialog-in calc(420ms * var(--motion)) var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
.dialog__head { position: relative; padding: 1.75rem 1.75rem 0; }
.dialog__head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); letter-spacing: -0.025em; line-height: 1.15; font-weight: 650; padding-right: 2.5rem; }
.dialog__head p { margin: 0.6rem 0 0; color: var(--muted); }
.dialog__close { position: absolute; top: 1.1rem; right: 1.1rem; }
.dialog__body { padding: 1.5rem 1.75rem 1.75rem; }
.dialog__steps { display: grid; gap: 0.45rem; margin: 1rem 0 0; padding: 0; list-style: none; font-size: 0.93rem; color: var(--muted); }
.dialog__steps li { display: flex; gap: 0.6rem; align-items: baseline; }
.dialog__steps b { color: var(--ink); font-weight: 600; }
body:has(dialog[open]) { overflow: hidden; }

/* Consent-Banner */
.consent {
  position: fixed; z-index: 80; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 44rem; margin-inline: auto;
  background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: var(--shadow-3); padding: 1.35rem 1.4rem;
}
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.1rem; font-weight: 650; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.consent p { font-size: 0.93rem; margin: 0 0 1rem; color: var(--muted); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.consent__actions .btn { flex: 1 1 11rem; --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); min-height: 2.8rem; }
.consent__actions .btn:hover { --btn-bg: #000; --btn-bd: #000; box-shadow: none; }
.consent__actions .btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); flex-basis: 100%; }
.consent__actions .btn--ghost:hover { --btn-bg: var(--stone); --btn-bd: var(--ink); }
.consent-options { display: grid; gap: 0.75rem; margin: 1rem 0 1.25rem; }
.switch { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; align-items: center; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--r); }
.switch b { color: var(--ink); font-weight: 620; }
.switch span { grid-column: 1; font-size: 0.88rem; color: var(--muted); }
.switch input { grid-column: 2; grid-row: 1 / span 2; width: 46px; height: 26px; appearance: none; -webkit-appearance: none; background: var(--line-2); border-radius: 999px; position: relative; transition: background-color var(--t-fast); cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform var(--t-fast); }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { transform: translateX(20px); }
.switch input:disabled { opacity: 0.55; cursor: not-allowed; }

/* Logo-Marquee */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: clamp(2.5rem, 2rem + 3vw, 5rem); width: max-content; animation: marquee calc(40s / max(var(--motion), 0.0001)) linear infinite; }
.marquee:hover .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__item { flex: none; display: flex; align-items: center; height: 64px; }
.marquee__item img { height: 56px; width: auto; filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; opacity: 0.7; transition: opacity var(--t), filter var(--t); }
.marquee__item:hover img { opacity: 1; filter: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } .marquee__dup { display: none; } }
.marquee-wrap { display: flex; align-items: center; gap: 1rem; }
.marquee-wrap .marquee { flex: 1; }
.marquee-toggle { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; }
.marquee-toggle svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .marquee-toggle { display: none; } }

/* FAQ */
.faq-groups { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .faq-groups { grid-template-columns: 0.42fr 1fr; gap: 2.5rem 4rem; } .faq-group { display: contents; } }
.faq-group h3 { font-size: 1.15rem; font-weight: 640; padding-top: 1.35rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start;
  padding: 1.25rem 0; font-weight: 600; font-size: 1.08rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pm { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; margin-top: 2px; transition: transform var(--t), border-color var(--t-fast); }
.faq-item summary .pm::before, .faq-item summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.faq-item summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--t); }
.faq-item[open] summary .pm { border-color: var(--gold); }
.faq-item[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item summary:hover .pm { border-color: var(--ink); }
.faq-item .faq-a { padding: 0 3rem 1.4rem 0; color: var(--text); }
.faq-item .faq-a p:last-child { margin: 0; }

/* WhatsApp + mobile CTA-Leiste */
.fab-wa { position: fixed; z-index: 70; right: 1.1rem; bottom: 1.1rem; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1f7a4d; color: #fff; box-shadow: var(--shadow-2); text-decoration: none; transition: transform var(--t); }
.fab-wa:hover { transform: scale(1.05); }
.fab-wa svg { width: 28px; height: 28px; }
.fab-wa[hidden] { display: none; }
.mobile-cta { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: flex; gap: 0.6rem; transform: translateY(110%); transition: transform var(--t); }
.mobile-cta .btn { flex: 1; min-height: 2.9rem; }
.mobile-cta.is-visible { transform: none; }
.mobile-cta.is-visible ~ .fab-wa, body.has-mobile-cta .fab-wa { bottom: calc(5.2rem + env(safe-area-inset-bottom)); }
@media (min-width: 1080px) { .mobile-cta { display: none; } body.has-mobile-cta .fab-wa { bottom: 1.1rem; } }

/* Sektionen */

/* ---------- Hero (Startseite) ----------
   Teamfoto oben – alle Gesichter bleiben frei. Text darunter auf Nacht.
   Das Foto wächst mit der Fensterhöhe, der Textblock bleibt kompakt. */
.hero { position: relative; display: flex; flex-direction: column; padding-top: var(--header-h); color: #fff; background: var(--night); overflow: hidden; isolation: isolate; }
.hero__media { position: relative; z-index: -1; height: clamp(12.5rem, 64vw, 26rem); overflow: hidden; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 30%; }
.js .hero__media img { transform: scale(1.04); }
.js .hero.is-ready .hero__media img { transform: scale(1); transition: transform calc(2400ms * var(--motion)) var(--ease); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--night) 0%, rgba(18, 19, 21, 0.55) 16%, rgba(18, 19, 21, 0) 42%); }
@media (min-width: 761px) {
  .hero { padding-top: 0; min-height: min(100svh, 64rem); }
  .hero__media { flex: 1 0 auto; height: auto; min-height: 19rem; }
  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(18, 19, 21, 0.6) 0%, rgba(18, 19, 21, 0) 22%),
      linear-gradient(0deg, var(--night) 0%, rgba(18, 19, 21, 0.62) 15%, rgba(18, 19, 21, 0) 38%);
  }
}
.hero__inner { position: relative; width: min(100% - 2 * var(--gutter), var(--wrap-wide)); margin: -1.25rem auto 0; padding-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem); display: grid; column-gap: clamp(2.5rem, 1rem + 4vw, 5rem); }
.hero__kicker { font-size: 1rem; font-weight: 600; color: var(--gold-300); margin: 0 0 0.85rem; letter-spacing: 0; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 1.2rem + 3.2vw, 4.2rem); line-height: 1.02; }
.hero h1 .lt { color: rgba(255, 255, 255, 0.74); font-weight: 280; }
.hero h1 > span { display: block; }
.hero__side .lead { color: rgba(255, 255, 255, 0.86); margin: 1.25rem 0 1.5rem; max-width: 36rem; }
.hero .cta-micro { color: rgba(255, 255, 255, 0.66); }
@media (min-width: 1400px) {
  .hero__inner { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: end; margin-top: -2.25rem; }
  .hero__facts { grid-column: 1 / -1; }
  .hero__side .lead { margin-top: 0; }
}
.hero__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.16); margin-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem); }
@media (min-width: 900px) { .hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { display: grid; gap: 0.2rem; }
.fact b { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem); font-weight: 640; letter-spacing: -0.02em; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fact b small { font-size: 0.55em; font-weight: 500; color: rgba(255, 255, 255, 0.7); margin-right: 0.25rem; letter-spacing: 0; }
.fact span { font-size: 0.92rem; color: rgba(255, 255, 255, 0.7); line-height: 1.35; }

/* Ladesequenz – der eine orchestrierte Moment */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.reduce-motion) .hero [data-seq] { opacity: 0; transform: translateY(18px); }
  .js:not(.reduce-motion) .hero.is-ready [data-seq] { opacity: 1; transform: none; transition: opacity 900ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--d, 0) * 110ms + 150ms); }
}

/* ---------- Logo-Leiste ---------- */
.trust { padding: 2.25rem 0; border-bottom: 1px solid var(--line); }
.trust__label { font-size: 0.95rem; color: var(--muted); margin: 0 0 1rem; text-align: center; }

/* ---------- Die Leitung (Ertrags-Strecke) ---------- */
.leitung { --n: 6; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); position: relative; counter-reset: none; }
.leitung::before { /* das Rohr */
  content: ""; position: absolute; left: calc(100% / var(--n) / 2); right: calc(100% / var(--n) / 2); top: 13px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold) 30%, var(--gold-300) 50%, var(--gold) 70%, var(--gold-600));
  background-size: 200% 100%;
}
.leitung__node { position: relative; display: grid; justify-items: center; text-align: center; gap: 0.7rem; padding: 0 0.25rem; }
.leitung__fitting { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); border: 3px solid var(--gold); box-shadow: 0 0 0 5px var(--paper); }
.theme-night .leitung__fitting { background: var(--night); box-shadow: 0 0 0 5px var(--night); }
.theme-stone .leitung__fitting { background: var(--stone); box-shadow: 0 0 0 5px var(--stone); }
.leitung__label { font-weight: 620; font-size: 0.98rem; color: var(--ink); line-height: 1.25; }
.theme-night .leitung__label { color: #fff; }
.leitung__sub { font-size: 0.86rem; color: var(--muted); line-height: 1.35; max-width: 11rem; }
.theme-night .leitung__sub { color: var(--night-muted); }
/* Leckstelle: zwischen zwei Knoten, Tropfen fallen */
.leitung__leak { position: absolute; top: 15px; left: 100%; width: 0; height: 0; }
.leitung__leak::before, .leitung__leak::after {
  content: ""; position: absolute; left: -5px; top: 0; width: 10px; height: 13px;
  background: var(--gold); border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; transform-origin: 50% 0;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  [data-state="leak"] .leitung__leak::before { animation: drip 2.4s calc(var(--i, 0) * 0.37s) infinite cubic-bezier(0.5, 0, 0.9, 0.5); }
  [data-state="leak"] .leitung__leak::after { animation: drip 2.4s calc(var(--i, 0) * 0.37s + 1.2s) infinite cubic-bezier(0.5, 0, 0.9, 0.5); }
}
@media (prefers-reduced-motion: reduce) { [data-state="leak"] .leitung__leak::before { opacity: 0.9; top: 14px; } }
@keyframes drip {
  0% { opacity: 0; transform: translateY(0) scale(0.4); }
  15% { opacity: 1; transform: translateY(2px) scale(0.85); }
  70% { opacity: 1; transform: translateY(46px) scale(1); }
  100% { opacity: 0; transform: translateY(70px) scale(0.9); }
}
.leitung__puddle { position: absolute; top: 88px; left: 100%; width: 46px; height: 7px; margin-left: -23px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(203, 178, 106, 0.45), rgba(203, 178, 106, 0) 70%); }
[data-state="sealed"] .leitung__puddle, [data-state="sealed"] .leitung__leak { display: none; }
[data-state="sealed"].leitung::before { animation: flow calc(3.2s / max(var(--motion), 0.0001)) linear infinite; }
[data-state="sealed"] .leitung__fitting { background: var(--gold); border-color: var(--gold); }
[data-state="sealed"] .leitung__fitting::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; opacity: 0.85; }
@keyframes flow { to { background-position: -200% 0; } }
/* Mobile: senkrecht */
@media (max-width: 760px) {
  /* Rohr links mit Luft davor: Tropfen treten nach links aus und fallen nach unten – nie in den Text */
  .leitung { grid-template-columns: 1fr; gap: 1.6rem; padding-left: 1.4rem; }
  .leitung::before { left: calc(1.4rem + 13px); right: auto; top: 15px; bottom: 15px; width: 4px; height: auto; background: linear-gradient(180deg, var(--gold-600), var(--gold) 50%, var(--gold-600)); }
  .leitung__node { grid-template-columns: 30px 1fr; justify-items: start; text-align: left; column-gap: 1rem; row-gap: 0.15rem; padding: 0; }
  .leitung__fitting { grid-row: span 2; }
  .leitung__leak { left: 15px; top: calc(100% + 0.2rem); }
  .leitung__leak::before, .leitung__leak::after { left: -15px; width: 8px; height: 11px; }
  .leitung__puddle { display: none; }
  [data-state="leak"] .leitung__leak::before, [data-state="leak"] .leitung__leak::after { animation-name: drip-side; }
  @keyframes drip-side { 0% { opacity: 0; transform: translate(9px, -4px) scale(0.4); } 18% { opacity: 1; transform: translate(2px, 0) scale(0.85); } 75% { opacity: 1; transform: translate(0, 24px) scale(1); } 100% { opacity: 0; transform: translate(0, 34px) scale(0.9); } }
}

/* ---------- Problem: Ein Tag im Betrieb ---------- */
.day { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
@media (min-width: 1024px) { .day { grid-template-columns: 1fr 1fr; } }
.day__media { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 4.6rem; top: 0.6rem; bottom: 0.6rem; width: 1px; background: var(--line-2); }
.timeline li { display: grid; grid-template-columns: 4.6rem 1fr; gap: 0 1.6rem; padding: 0 0 1.6rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(4.6rem - 5px); top: 0.55rem; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.timeline time { font-weight: 640; font-variant-numeric: tabular-nums; color: var(--ink); font-size: 1.02rem; padding-right: 1rem; }
.timeline p { margin: 0; }
.timeline .loss { display: inline-block; margin-top: 0.35rem; font-size: 0.86rem; font-weight: 600; color: var(--gold-700); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li.is-late time { color: var(--gold-700); }

/* ---------- Der übliche Weg ---------- */
.myths { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--night-line); }
.myth { display: grid; gap: 0.4rem 3rem; padding: 1.75rem 0; border-bottom: 1px solid var(--night-line); }
@media (min-width: 900px) { .myth { grid-template-columns: 0.9fr 1.1fr; align-items: baseline; } }
.myth h3 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2.05rem); font-weight: 600; letter-spacing: -0.025em; color: #fff; position: relative; display: inline; }
.myth h3 .strike { position: relative; }
.myth h3 .strike::after { content: ""; position: absolute; left: -2%; right: -2%; top: 55%; height: 3px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--strike, 0)); transition: transform calc(900ms * var(--motion)) var(--ease); }
.myth.is-in h3 .strike::after { --strike: 1; }
.myth p { margin: 0; color: var(--night-text); }
@media (prefers-reduced-motion: reduce) { .myth h3 .strike::after { transform: scaleX(1); } }

/* ---------- Anti-These ---------- */
.antithesis { display: grid; gap: 2.5rem; }
.antithesis .statement { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.4rem); line-height: 1.04; letter-spacing: -0.038em; font-weight: 650; color: #fff; max-width: 18ch; font-variation-settings: "opsz" 32; }
.antithesis .statement .lt { display: block; font-weight: 280; color: var(--night-muted); }
.antithesis .prose { max-width: 40rem; font-size: var(--fs-lead); }
.pipe-panel { margin-top: 1rem; padding: clamp(2rem, 1.2rem + 2.4vw, 3.25rem) clamp(1rem, 0.5rem + 2vw, 2.5rem) clamp(4.5rem, 3rem + 3vw, 6rem); border: 1px solid var(--night-line); border-radius: var(--r-xl); background: radial-gradient(120% 140% at 50% 0%, rgba(203, 178, 106, 0.08), rgba(203, 178, 106, 0) 60%), var(--night-2); }
.pipe-panel .leitung__fitting { background: var(--night-2); box-shadow: 0 0 0 5px var(--night-2); }
.pipe-panel__legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 3.25rem; font-size: 0.9rem; color: var(--night-muted); }
.pipe-panel__legend .drop { display: inline-block; width: 9px; height: 12px; background: var(--gold); border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; margin-right: 0.45rem; vertical-align: -1px; }
@media (max-width: 760px) { .pipe-panel { padding-bottom: 2rem; } .pipe-panel__legend { margin-top: 2rem; } }

/* ---------- Diagnose ---------- */
.leaks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.leak { display: grid; gap: 0.5rem 2.5rem; padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
@media (min-width: 900px) { .leak { grid-template-columns: 11rem 17rem 1fr; } }
.leak__stage { display: flex; align-items: center; gap: 0.6rem; font-weight: 620; color: var(--ink); }
.leak__stage::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--gold); flex: none; }
.leak__num { font-size: var(--fs-number); line-height: 1; letter-spacing: -0.035em; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 32; }
.leak__num small { font-size: 0.42em; font-weight: 560; letter-spacing: -0.01em; color: var(--muted); margin-left: 0.15rem; }
.leak__text p { margin: 0 0 0.5rem; }
.leak__text .badge-model { margin-right: 0.4rem; }
.calc-note { margin-top: 2rem; }
.calc-note summary { cursor: pointer; font-weight: 600; color: var(--ink); display: inline-flex; gap: 0.7rem; align-items: center; list-style: none; }
.calc-note summary::-webkit-details-marker { display: none; }
.calc-note summary::before { content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2); font-weight: 500; font-size: 1.1rem; line-height: 1; color: var(--ink); transition: border-color var(--t-fast); }
.calc-note summary:hover::before { border-color: var(--ink); }
.calc-note[open] summary::before { content: "\2212"; border-color: var(--gold); }
.calc-note summary span { text-decoration: underline; text-decoration-color: var(--gold-300); text-underline-offset: 4px; }
.calc-note .calc-note__body { margin-top: 1rem; padding: 1.25rem 1.4rem; border-radius: var(--r); background: var(--stone); font-size: 0.95rem; }
.calc-note table { width: 100%; border-collapse: collapse; margin: 0.75rem 0 0; }
.calc-note td { padding: 0.45rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.calc-note td:last-child { text-align: right; font-variant-numeric: tabular-nums; padding-left: 1rem; white-space: nowrap; font-weight: 600; color: var(--ink); }
@media (max-width: 560px) { .calc-note td:last-child { white-space: normal; min-width: 5.5rem; } }

/* ---------- Mechanismus ---------- */
.mech-pipe { margin: 0 0 clamp(3rem, 2rem + 3vw, 4.5rem); padding: clamp(1.75rem, 1rem + 2vw, 2.75rem) clamp(1rem, 0.5rem + 2vw, 2.5rem); border-radius: var(--r-xl); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.mech-pipe .leitung__fitting { box-shadow: 0 0 0 5px var(--paper); background: var(--paper); }
.mech-pipe__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 2.25rem; }
.mech-pipe__status { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 620; color: var(--ink); }
.mech-pipe__status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.mech-pipe__dash { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.9rem; border-radius: 999px; background: var(--stone); font-size: 0.92rem; }
.mech-pipe__dash b { font-weight: 640; }
.modules { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 0.6rem; margin-top: 1.75rem; }
.modules__col { display: grid; gap: 0.5rem; align-content: start; }
.module { display: flex; gap: 0.55rem; align-items: center; padding: 0.6rem 0.7rem; border-radius: 10px; background: var(--gold-50); border: 1px solid var(--gold-200); font-size: 0.88rem; font-weight: 580; color: var(--ink); line-height: 1.25; text-decoration: none; transition: background-color var(--t-fast), border-color var(--t-fast); }
.module:hover { background: var(--gold-100); border-color: var(--gold-300); }
.module svg { width: 18px; height: 18px; flex: none; color: var(--gold-700); }
@media (max-width: 760px) { .modules { display: none; } }
.mech-principles { display: grid; gap: 1.5rem 2.5rem; margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
@media (min-width: 900px) { .mech-principles { grid-template-columns: repeat(4, 1fr); } }
.principle h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.principle p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.principle__mark { width: 34px; height: 34px; margin-bottom: 1rem; color: var(--gold-700); }

/* Anwendungsfälle-Übersicht (Startseite) */
.uc-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .uc-list { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.uc-row { display: grid; grid-template-columns: 2.6rem 1fr auto; gap: 1rem; align-items: start; padding: 1.35rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.uc-row svg.ico { width: 26px; height: 26px; color: var(--gold-700); margin-top: 3px; }
.uc-row h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.uc-row p { margin: 0; font-size: 0.96rem; color: var(--muted); }
.uc-row .go { width: 22px; height: 22px; color: var(--muted); margin-top: 4px; transition: transform var(--t), color var(--t-fast); }
.uc-row:hover h3 { color: var(--gold-700); }
.uc-row:hover .go { transform: translateX(4px); color: var(--ink); }

/* Tabs (Demos) */
.tabs { margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.tabs__list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.tabs__tab { padding: 0.7rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 600; font-size: 0.97rem; }
.tabs__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 760px) {
  /* Reiter nebeneinander wischen statt vier Zeilen stapeln */
  .tabs__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); scroll-padding-inline: var(--gutter); -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .tabs__list::-webkit-scrollbar { display: none; }
  .tabs__tab { flex: 0 0 auto; }
}
.tabs__panel[hidden] { display: none; }
.tabs__panel { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .tabs__panel { grid-template-columns: 0.8fr 1.2fr; gap: 3.5rem; } }
.tabs__panel h3 { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.tabs__panel ol { margin: 1rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.tabs__panel ol li::marker { color: var(--gold-700); font-weight: 650; }

/* ---------- Rechnung + Rechner ---------- */
.result-head { display: grid; gap: 2rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
@media (min-width: 1024px) { .result-head { grid-template-columns: 1fr 1fr; align-items: end; } }
.big-figure { font-size: clamp(3rem, 2rem + 4.5vw, 6.2rem); line-height: 0.95; letter-spacing: -0.045em; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 32; }
.big-figure small { display: block; font-size: 0.2em; letter-spacing: -0.005em; font-weight: 520; color: var(--muted); margin-top: 0.9rem; line-height: 1.4; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-radius: var(--r-xl); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-2); }
@media (min-width: 1024px) { .calc { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.calc__inputs { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); display: grid; gap: 1.6rem; }
.calc__inputs h3 { font-size: 1.25rem; }
.range { display: grid; gap: 0.55rem; }
.range__top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.range label { font-weight: 580; color: var(--ink); font-size: 0.97rem; }
.range output { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.range input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
.range input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--gold) 0 var(--fill, 50%), var(--stone-2) var(--fill, 50%) 100%); }
.range input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--stone-2); }
.range input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--gold); }
.range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow-1); }
.range input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.range input[type="range"]:focus-visible { outline: none; }
.range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--gold-200); }
.choice { border: 0; margin: 0; padding: 0; min-inline-size: 0; display: grid; gap: 0.6rem; }
.choice legend { font-weight: 580; color: var(--ink); font-size: 0.97rem; margin-bottom: 0.55rem; padding: 0; }
.choice__opts { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { padding: 0.5rem 0.85rem; border-radius: 999px; border: 1.5px solid var(--line-2); font-size: 0.92rem; font-weight: 560; cursor: pointer; transition: border-color var(--t-fast), background-color var(--t-fast); }
.choice input:checked + label { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.calc__result { background: var(--night); color: var(--night-text); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); display: grid; gap: 1.5rem; align-content: start; }
.calc__result h3 { color: #fff; font-size: 1.1rem; font-weight: 600; }
.calc__total { font-size: clamp(2.6rem, 2rem + 2.4vw, 3.8rem); font-weight: 650; letter-spacing: -0.04em; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.calc__total-label { color: var(--night-muted); font-size: 0.95rem; margin-top: 0.4rem; }
.calc__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--night-line); }
.calc__rows li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--night-line); font-size: 0.95rem; }
.calc__rows li b { color: #fff; font-weight: 620; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__time { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.calc__time div { background: var(--night-2); border-radius: var(--r); padding: 1rem; }
.calc__time b { display: block; font-size: 1.6rem; color: #fff; font-weight: 640; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc__time span { font-size: 0.86rem; color: var(--night-muted); }
.calc__foot { font-size: 0.85rem; color: var(--night-muted); margin: 0; }
.calc__result .btn { justify-self: start; }

/* ---------- Förderung ---------- */
.funding { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
@media (min-width: 1024px) { .funding { grid-template-columns: 1fr 1fr; } }
.funding__seal { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: min(24rem, 72vw); width: 100%; margin-inline: auto; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--gold-50) 60%, var(--gold-100)); border: 1px solid var(--gold-200); box-shadow: inset 0 0 0 14px rgba(255, 255, 255, 0.65), var(--shadow-2); text-align: center; padding: 3rem; }
.funding__seal b { display: block; font-size: clamp(3.4rem, 2.6rem + 4vw, 6.5rem); line-height: 0.9; letter-spacing: -0.05em; font-weight: 680; color: var(--ink); }
.funding__seal span { display: block; margin-top: 0.75rem; font-weight: 600; color: var(--gold-700); }
.funding__seal small { display: block; margin-top: 0.5rem; color: var(--muted); font-size: 0.88rem; }
.steps-mini { list-style: none; margin: 1.75rem 0; padding: 0; display: grid; gap: 1rem; counter-reset: s; }
.steps-mini li { counter-increment: s; display: grid; grid-template-columns: 2.3rem 1fr; gap: 0.9rem; align-items: start; }
.steps-mini li::before { content: counter(s); display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 2px solid var(--gold); font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.steps-mini b { display: block; color: var(--ink); }
.fineprint { font-size: 0.88rem; color: var(--muted); }

/* ---------- Für wen ---------- */
.fit { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .fit { grid-template-columns: 1fr 1fr; } }
.fit__col { padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); border-radius: var(--r-l); }
.fit__col--yes { background: var(--gold-50); border: 1px solid var(--gold-200); }
.fit__col--no { background: var(--stone); border: 1px solid var(--line); }
.fit__col h3 { font-size: 1.3rem; margin-bottom: 1.25rem; }
.fit__col ul { list-style: none; display: grid; gap: 0.9rem; }
.fit__col li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.6rem; }
.fit__col li svg { width: 20px; height: 20px; margin-top: 3px; }
.fit__col--yes li svg { color: var(--gold-700); }
.fit__col--no li svg { color: var(--muted); }

/* ---------- Bedenken ---------- */
.objections { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
@media (min-width: 900px) { .objections { grid-template-columns: 1fr 1fr; column-gap: 4rem; } }
.objection { padding: 1.75rem 0; border-bottom: 1px solid var(--line-2); }
.objection h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.objection h3::before { content: "„"; color: var(--gold-600); margin-right: 0.05rem; }
.objection h3::after { content: "“"; color: var(--gold-600); }
.objection p { margin: 0; }

/* ---------- Team / Gründer ---------- */
.founders { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .founders { grid-template-columns: 1fr 1fr; } }
.founder { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.5rem; align-items: end; background: var(--night); color: var(--night-text); border-radius: var(--r-xl); overflow: hidden; }
.founder .photo { border-radius: 0; height: 100%; }
.founder__text { padding: 1.75rem 1.75rem 1.75rem 0; }
.founder blockquote { margin: 0 0 1.25rem; font-size: 1.08rem; line-height: 1.5; color: #fff; }
.founder__name { font-weight: 640; color: #fff; }
.founder__role { font-size: 0.92rem; color: var(--night-muted); }
@media (max-width: 560px) { .founder { grid-template-columns: 1fr; } .founder__text { padding: 0 1.5rem 1.75rem; } }
/* Zentrierte Reihen: 2 (Handy), 3 × 3 (Tablet), 5 + 4 (Desktop) – eine ungerade letzte Karte steht mittig statt allein links */
.team-grid { --cols: 2; --gap: 1rem; list-style: none; margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.team-grid > li { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
@media (min-width: 760px) { .team-grid { --cols: 3; --gap: 1.25rem; } }
@media (min-width: 1024px) { .team-grid { --cols: 5; } }
.member { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--stone-2); aspect-ratio: 4 / 5; }
.member img { width: 100%; height: 100%; object-fit: cover; transition: transform calc(700ms * var(--motion)) var(--ease); }
.member:hover img { transform: scale(1.03); }
.member__tile { position: absolute; left: 0.65rem; right: 0.65rem; bottom: 0.65rem; background: rgba(255, 255, 255, 0.96); border-radius: 12px; padding: 0.7rem 0.85rem; box-shadow: var(--shadow-1); }
.member__tile b { display: block; font-weight: 640; color: var(--ink); font-size: 0.98rem; line-height: 1.25; }
.member__tile span { font-size: 0.84rem; color: var(--muted); }

/* ---------- Ablauf + Abschluss ---------- */
.final { position: relative; color: #fff; background: var(--night); overflow: hidden; isolation: isolate; }
.final__media { position: absolute; inset: 0; z-index: -2; }
.final__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 19, 21, 0.96) 0%, rgba(18, 19, 21, 0.88) 45%, rgba(18, 19, 21, 0.55) 100%); }
.final__inner { display: grid; gap: 3rem; }
@media (min-width: 1080px) { .final__inner { grid-template-columns: 1fr 1fr; align-items: center; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.steps li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.steps li::before { content: counter(st); width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; }
.steps b { display: block; color: #fff; font-weight: 640; }
.steps span { color: var(--night-muted); font-size: 0.95rem; }
.final .phone-line { margin-top: 1.25rem; color: var(--night-muted); }
.final .phone-line a { color: #fff; font-weight: 600; }

/* ---------- Unterseiten-Hero ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 6rem)) 0 clamp(3rem, 2rem + 3vw, 5rem); background: var(--night); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 19, 21, 0.95) 0%, rgba(18, 19, 21, 0.8) 50%, rgba(18, 19, 21, 0.35) 100%); }
.page-hero h1 { color: #fff; max-width: 17ch; }
.page-hero h1 .lt { color: rgba(255, 255, 255, 0.7); font-weight: 280; display: block; }
.page-hero .lead { color: rgba(255, 255, 255, 0.85); margin: 1.5rem 0 2rem; }
.page-hero--plain { background: var(--stone); color: var(--text); padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.page-hero--plain::after { display: none; }
.page-hero--plain h1 { color: var(--ink); }
.crumbs { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 1.5rem; }
.crumbs a { color: inherit; }
.page-hero--plain .crumbs { color: var(--muted); }

/* ---------- Anwendungsfälle-Seite ---------- */
.uc-nav { position: sticky; top: var(--header-h); z-index: 30; background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.uc-nav ul { list-style: none; display: flex; gap: 0.35rem; overflow-x: auto; padding: 0.75rem 0; scrollbar-width: none; }
.uc-nav ul::-webkit-scrollbar { display: none; }
.uc-nav a { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; padding: 0.5rem 0.85rem; border-radius: 999px; text-decoration: none; font-size: 0.92rem; font-weight: 580; color: var(--muted); border: 1px solid transparent; }
.uc-nav a[aria-current="true"] { color: var(--ink); background: var(--gold-50); border-color: var(--gold-200); }
.uc-nav a:hover { color: var(--ink); }
.uc { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 64px); }
.uc__grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); }
@media (min-width: 1024px) { .uc__grid { grid-template-columns: 1fr 1fr; align-items: start; } .uc:nth-of-type(even) .uc__media { order: -1; } }
.uc__stage { font-size: 0.95rem; color: var(--gold-700); font-weight: 600; margin: 0 0 0.75rem; }
.uc h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem); letter-spacing: -0.03em; line-height: 1.08; font-weight: 640; margin-bottom: 1rem; }
.uc__kurz { font-size: var(--fs-lead); color: var(--text); }
.uc__compare { display: grid; gap: 1rem; margin: 1.75rem 0; }
@media (min-width: 640px) { .uc__compare { grid-template-columns: 1fr 1fr; } }
.uc__box { border-radius: var(--r); padding: 1.15rem 1.25rem; font-size: 0.97rem; }
.uc__box h3 { font-size: 0.98rem; margin-bottom: 0.4rem; }
.uc__box p { margin: 0; }
.uc__box--today { background: var(--stone); }
.uc__box--auto { background: var(--gold-50); border: 1px solid var(--gold-200); }
.flow { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 0.6rem; }
.flow li { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: 0.75rem; align-items: center; padding: 0.75rem 0.9rem; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 0.96rem; }
.flow li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; justify-self: center; }
.flow li[data-rolle="auto"]::before { background: var(--gold); }
.flow li[data-rolle="du"]::before { border: 2.5px solid var(--ink); }
.flow li em { font-style: normal; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.flow-legend { display: flex; gap: 1.25rem; font-size: 0.86rem; color: var(--muted); }
.flow-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.flow-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.flow-legend .a { background: var(--gold); }
.flow-legend .d { border: 2.5px solid var(--ink); }
.uc__facts { display: grid; gap: 0.9rem; margin: 1.5rem 0 1.75rem; }
.uc__facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; font-size: 0.96rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.uc__facts dt { font-weight: 620; color: var(--ink); }
.uc__facts dd { margin: 0; }
@media (max-width: 560px) { .uc__facts div { grid-template-columns: 1fr; gap: 0.25rem; } }
.uc__media { position: sticky; top: calc(var(--header-h) + 80px); display: grid; gap: 1rem; }

/* ---------- Über uns ---------- */
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.values li { display: grid; gap: 0.4rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .values li { grid-template-columns: 16rem 1fr; } }
.values h3 { font-size: 1.15rem; }
.values p { margin: 0; color: var(--text); }
.gallery-wall { position: relative; height: clamp(26rem, 20rem + 20vw, 40rem); overflow: hidden; border-radius: var(--r-xl); -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.gallery-wall__cols { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 0.9rem; height: 100%; }
@media (max-width: 760px) { .gallery-wall__cols { --cols: 2; } .gallery-wall__col:nth-child(n+3) { display: none; } }
.gallery-wall__col { display: grid; gap: 0.9rem; align-content: start; animation: wall-up calc(60s / max(var(--motion), 0.0001)) linear infinite; }
.gallery-wall__col:nth-child(even) { animation-direction: reverse; animation-duration: calc(75s / max(var(--motion), 0.0001)); }
.gallery-wall.is-paused .gallery-wall__col { animation-play-state: paused; }
.gallery-wall img { width: 100%; border-radius: 14px; aspect-ratio: 3 / 2; object-fit: cover; }
@keyframes wall-up { to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .gallery-wall__col { animation: none; } }
.gallery-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip { padding: 0.5rem 0.9rem; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font-size: 0.92rem; font-weight: 580; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery-grid li[hidden] { display: none; }
.gallery-grid button { display: block; width: 100%; padding: 0; border: 0; background: var(--stone-2); border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.gallery-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 28%; transition: transform calc(600ms * var(--motion)) var(--ease); }
.gallery-grid button:hover img { transform: scale(1.04); }
.gallery-grid li.is-extra { display: none; }
.lightbox { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(12, 13, 14, 0.96); color: #fff; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__top, .lightbox__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem var(--gutter); }
.lightbox__stage { display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.lightbox .icon-btn { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.lightbox__count { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }

/* ---------- Rechtstexte ---------- */
.legal { padding: calc(var(--header-h) + clamp(2.5rem, 2rem + 3vw, 4.5rem)) 0 var(--section); }
.legal h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); letter-spacing: -0.03em; margin-bottom: 2rem; }
.legal h2 { font-size: 1.4rem; letter-spacing: -0.015em; margin: 2.5rem 0 0.8rem; }
.legal h3 { font-size: 1.1rem; margin: 1.6rem 0 0.5rem; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.2rem; margin-bottom: 1em; }
.legal .stand { color: var(--muted); font-size: 0.92rem; }

/* ---------- 404 ---------- */
.notfound { min-height: 80svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 3rem) var(--gutter) 4rem; }
.notfound svg { width: 180px; margin: 0 auto 2rem; }
.notfound .rings circle { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .notfound .ring-t { animation: drift-t 6s ease-in-out infinite alternate; }
  .notfound .ring-l { animation: drift-l 7s ease-in-out infinite alternate; }
  .notfound .ring-r { animation: drift-r 6.5s ease-in-out infinite alternate; }
}
@keyframes drift-t { to { transform: translate(0, -10px); } }
@keyframes drift-l { to { transform: translate(-12px, 8px); } }
@keyframes drift-r { to { transform: translate(12px, 8px); } }

/* ---------- Erstgespräch-Landingpage ---------- */
.landing-hero { padding: calc(var(--header-h) + clamp(2.5rem, 2rem + 3vw, 4.5rem)) 0 var(--section); background: var(--stone); }
.landing-grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
@media (min-width: 1024px) { .landing-grid { grid-template-columns: 1.1fr 0.9fr; } }
.form-card { background: #fff; border-radius: var(--r-xl); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.form-card h2 { font-size: 1.45rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.checks { list-style: none; margin: 1.75rem 0; padding: 0; display: grid; gap: 0.8rem; }
.checks li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.6rem; }
.checks svg { width: 22px; height: 22px; color: var(--gold-700); margin-top: 2px; }

/* ---------- Danke ---------- */
.thanks { padding: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 6rem)) 0 var(--section); }
.thanks__grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
@media (min-width: 1024px) { .thanks__grid { grid-template-columns: 1.1fr 0.9fr; } }

/* UI-Demos: animierte Beispielabläufe im AURYS-Look.
   Ohne JS (oder mit reduzierter Bewegung) ist immer der Endzustand sichtbar. */
.app { --app-bg: #fff; background: var(--app-bg); color: var(--text); border-radius: var(--r-l); border: 1px solid var(--line); box-shadow: var(--shadow-3); overflow: hidden; font-size: 0.9rem; line-height: 1.45; text-align: left; }
.app--glass { --app-bg: rgba(255, 255, 255, 0.97); border-color: rgba(255, 255, 255, 0.6); }
.app__bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); background: #fafaf9; }
.app__dots { display: inline-flex; gap: 5px; }
.app__dots i { width: 9px; height: 9px; border-radius: 50%; background: #dcdcd8; display: block; }
@media (max-width: 420px) { .app__dots { display: none; } }
.app__title { font-weight: 640; color: var(--ink); font-size: 0.9rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__live { margin-left: auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; color: var(--ok); }
.app__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
@media (prefers-reduced-motion: no-preference) { .app.is-playing .app__live::before { animation: pulse 1.6s ease-in-out infinite; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(26, 113, 70, 0.06); } }
.app__body { padding: 0.9rem; display: grid; gap: 0.6rem; }
.app__foot { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.65rem 1rem; border-top: 1px solid var(--line); font-size: 0.76rem; color: var(--muted); background: #fafaf9; }
.app__toggle { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 0.2rem 0.6rem; font-size: 0.76rem; font-weight: 600; color: var(--ink); }

/* Einblend-Logik */
/* Noch nicht erreichte Schritte als blasse Vorschau statt leerer Fläche – der Autopilot „löst“ sie nacheinander auf */
.app.is-armed [data-show] { opacity: 0.13; filter: blur(2.5px); transition: opacity var(--t) var(--ease), filter var(--t) var(--ease); }
.app.is-armed [data-show] [data-show] { opacity: 1; filter: none; }
.app.is-armed [data-show].is-on { opacity: 1; filter: none; }
.app.is-armed .is-on [data-show]:not(.is-on) { opacity: 0.13; filter: blur(2.5px); }
.app.is-armed [data-hide-at].is-off { display: none; }
/* Ohne Animation (kein JS, reduzierte Bewegung) gilt der Endzustand */
.app:not(.is-armed) [data-hide-at] { display: none; }

/* Nachrichten-Zeile */
.msg { display: grid; grid-template-columns: 2.1rem 1fr; gap: 0.7rem; padding: 0.75rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.msg__ava { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.74rem; font-weight: 700; color: var(--ink); background: var(--stone-2); }
.msg__ava--wa { background: #e4f2ea; color: #1f6b44; }
.msg__ava--tel { background: var(--gold-100); color: var(--gold-800); }
.msg__head { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.8rem; color: var(--muted); }
.msg__head b { color: var(--ink); font-weight: 620; font-size: 0.86rem; }
.msg__text { margin: 0.15rem 0 0; color: var(--text); }
.msg__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.tag { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.74rem; font-weight: 620; padding: 0.18rem 0.5rem; border-radius: 6px; background: var(--stone); color: var(--ink); }
.tag--gold { background: var(--gold-100); color: var(--gold-800); }
.tag--ok { background: var(--ok-bg); color: var(--ok); }
.tag--red { background: var(--err-bg); color: var(--err); }
.msg.is-active { border-color: var(--gold-300); box-shadow: 0 0 0 3px var(--gold-50); }

/* Antwortentwurf */
.draft { border-radius: 12px; background: var(--gold-50); border: 1px dashed var(--gold-300); padding: 0.75rem 0.85rem; }
.draft__label { font-size: 0.72rem; font-weight: 700; color: var(--gold-700); margin-bottom: 0.25rem; letter-spacing: 0.01em; }
.draft p { margin: 0; color: var(--ink); }
.draft__actions { display: flex; gap: 0.4rem; margin-top: 0.6rem; }
.mini-btn { font-size: 0.78rem; font-weight: 620; padding: 0.35rem 0.7rem; border-radius: 7px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); }
.mini-btn--gold { background: var(--gold); border-color: var(--gold); }
.mini-btn.is-pressed { background: var(--ink); color: #fff; border-color: var(--ink); }
.typing::after { content: "▍"; color: var(--gold-600); margin-left: 1px; }
.app:not(.is-playing) .typing::after { content: none; }

/* Zähler-Zeile */
.ticker { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.65rem 0.85rem; border-radius: 12px; background: var(--night); color: var(--night-text); font-size: 0.82rem; }
.ticker b { color: #fff; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

/* Telefon-Demo */
.call { display: grid; gap: 0.6rem; }
.call__head { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: 12px; background: var(--night); color: #fff; }
.call__icon { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); }
.call__icon svg { width: 18px; height: 18px; }
.call__head b { display: block; font-size: 0.9rem; }
.call__head span { font-size: 0.78rem; color: var(--night-muted); }
.call__time { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 0.82rem; color: var(--gold-300); }
.bubble { max-width: 88%; padding: 0.55rem 0.75rem; border-radius: 12px; font-size: 0.86rem; }
.bubble--ai { background: var(--stone); color: var(--ink); border-bottom-left-radius: 4px; }
.bubble--caller { justify-self: end; background: var(--gold-100); color: var(--ink); border-bottom-right-radius: 4px; }
.bubble small { display: block; font-size: 0.7rem; color: var(--muted); margin-bottom: 0.15rem; font-weight: 600; }
.wave { display: inline-flex; align-items: center; gap: 2px; height: 14px; margin-left: 0.4rem; vertical-align: -2px; }
.wave i { width: 2px; height: 100%; background: var(--gold); border-radius: 2px; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) { .app.is-playing .wave i { animation: wave 1s ease-in-out infinite; } .wave i:nth-child(2) { animation-delay: 0.15s; } .wave i:nth-child(3) { animation-delay: 0.3s; } .wave i:nth-child(4) { animation-delay: 0.45s; } }
@keyframes wave { 50% { transform: scaleY(0.35); } }
.note-card { border-radius: 12px; border: 1px solid var(--line); padding: 0.75rem; background: #fff; }
.note-card h4 { margin: 0 0 0.4rem; font-size: 0.82rem; color: var(--ink); }
.note-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.75rem; font-size: 0.82rem; }
.note-card dt { color: var(--muted); }
.note-card dd { margin: 0; color: var(--ink); font-weight: 560; }

/* Angebots-Demo */
.offer-lines { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.offer-lines td { padding: 0.4rem 0.3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.offer-lines td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); font-weight: 600; }
.offer-lines tr.is-added td { background: var(--gold-50); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.82rem; }
.check-list li { display: flex; gap: 0.45rem; align-items: center; }
.check-list li::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-2); flex: none; }
.check-list li.is-on::before, .app:not(.is-armed) .check-list li[data-show]::before { background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.3l2.8 2.7 6.2-6.3' fill='none' stroke='%231c1e21' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--gold); }

/* Dashboard-Demo */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
.kpi { border-radius: 12px; border: 1px solid var(--line); padding: 0.7rem 0.8rem; background: #fff; }
.kpi span { display: block; font-size: 0.74rem; color: var(--muted); }
.kpi b { display: block; font-size: 1.35rem; font-weight: 650; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi i { font-style: normal; font-size: 0.74rem; font-weight: 620; }
.kpi i.up { color: var(--ok); }
.kpi i.down { color: var(--err); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; padding: 0.5rem 0.25rem 0; }
.bars i { flex: 1; background: var(--gold-200); border-radius: 4px 4px 0 0; height: var(--h); transform-origin: 50% 100%; }
.bars i:last-child { background: var(--gold); }
@media (prefers-reduced-motion: no-preference) { .app.is-armed .bars i { transform: scaleY(0); transition: transform 700ms var(--ease); } .app.is-armed.is-step-1 .bars i, .app.is-armed[data-step-max] .bars i.is-on { transform: scaleY(1); } }
.hint { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.5rem; font-size: 0.84rem; padding: 0.55rem 0.7rem; border-radius: 10px; background: var(--stone); }
.hint::before { content: ""; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; border: 2px solid var(--gold); justify-self: center; }

/* Einsatzplan-Demo */
.plan { display: grid; grid-template-columns: 6.2rem repeat(5, minmax(0, 1fr)); gap: 4px; font-size: 0.74rem; }
.plan > div { padding: 0.35rem 0.4rem; border-radius: 6px; background: var(--stone); min-height: 2rem; }
.plan .head { background: none; font-weight: 650; color: var(--muted); text-align: center; min-height: 0; }
.plan .who { background: none; font-weight: 620; color: var(--ink); }
.plan .job { background: var(--gold-100); color: var(--gold-800); font-weight: 600; }
.plan .job.is-moved { background: var(--gold); color: var(--ink); }
.plan .sick { background: var(--err-bg); color: var(--err); font-weight: 650; }

/* Kapazität / Wartung */
.cap { display: grid; gap: 0.45rem; }
.cap__row { display: grid; grid-template-columns: 4.5rem 1fr 3rem; gap: 0.6rem; align-items: center; font-size: 0.8rem; }
.cap__bar { height: 10px; border-radius: 6px; background: var(--stone-2); overflow: hidden; }
.cap__bar i { display: block; height: 100%; width: var(--w); background: var(--gold); border-radius: 6px; }
.cap__bar i.over { background: var(--err); }
.cap__row b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
