/* ==========================================================================
   QP Automation AG – Design System
   Gebäudeautomation · Aussenbeleuchtung · Wasser · Sicherheit
   ========================================================================== */

/* ---------- Schriften (lokal gehostet, keine Verbindung zu Google) ---------- */
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-normal-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #050b08;
  --bg-2: #08120d;
  --surface: #0b1712;
  --surface-2: #10211a;
  --surface-3: #152a21;
  --line: rgba(214, 255, 233, 0.09);
  --line-2: rgba(214, 255, 233, 0.17);
  --text: #eaf2ee;
  --text-2: #a7bab1;
  --text-3: #6f857a;
  --accent: #46f0a8;
  --accent-2: #1fcf86;
  --accent-ink: #02140b;
  --accent-text: #46f0a8;
  --accent-soft: rgba(70, 240, 168, 0.1);
  --accent-line: rgba(70, 240, 168, 0.24);
  --gold: #f2c877;
  --gold-2: #d9a54b;
  --gold-soft: rgba(242, 200, 119, 0.12);
  --danger: #ff6b5e;
  --brand: #12271e;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, 0.85);

  color-scheme: dark;
}

.theme-light {
  --bg: #f3f5f1;
  --bg-2: #eaeee8;
  --surface: #ffffff;
  --surface-2: #f7f9f6;
  --surface-3: #eef2ed;
  --line: rgba(10, 22, 16, 0.1);
  --line-2: rgba(10, 22, 16, 0.18);
  --text: #08130e;
  --text-2: #43524a;
  --text-3: #6b7a72;
  --accent-text: #08804f;
  --accent-soft: rgba(8, 128, 79, 0.08);
  --accent-line: rgba(8, 128, 79, 0.22);
  --shadow-lg: 0 30px 70px -40px rgba(8, 30, 20, 0.35);
  color-scheme: light;
  background: var(--bg);
  color: var(--text);
}

/* ---------- Reset & 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) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
strong, b { font-weight: 620; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.theme-light :focus-visible { outline-color: var(--accent-text); }

.visually-hidden { 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: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 16px; }

.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 28px; height: 28px; }

/* ---------- Layout ---------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(860px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(84px, 11vw, 168px); }
.section--tight { padding-block: clamp(64px, 8vw, 112px); }
.section--flush-top { padding-top: 0; }
.section--line { border-top: 1px solid var(--line); }
.stack > * + * { margin-top: var(--stack, 1rem); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.grid { display: grid; gap: clamp(14px, 1.6vw, 20px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4, h5 { margin: 0; font-weight: 560; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
.h-display { font-size: clamp(3rem, 8.4vw, 8.2rem); letter-spacing: -0.058em; line-height: 0.9; font-weight: 600; }
.h1 { font-size: clamp(2.5rem, 5.9vw, 5.5rem); letter-spacing: -0.05em; line-height: 0.96; font-weight: 580; }
.h2 { font-size: clamp(2rem, 4.3vw, 3.9rem); letter-spacing: -0.045em; line-height: 1; }
.h3 { font-size: clamp(1.28rem, 1.85vw, 1.62rem); letter-spacing: -0.028em; line-height: 1.16; }
.h4 { font-size: 1.12rem; letter-spacing: -0.018em; line-height: 1.3; font-weight: 600; }
.lead { font-size: clamp(1.1rem, 1.45vw, 1.32rem); line-height: 1.55; color: var(--text-2); max-width: 64ch; text-wrap: pretty; }
.lead--lg { font-size: clamp(1.2rem, 1.9vw, 1.6rem); line-height: 1.45; letter-spacing: -0.015em; }
.muted { color: var(--text-2); }
.small { font-size: 0.9rem; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.012em; }
.accent { color: var(--accent-text); }
.gold { color: var(--gold); }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2);
  margin: 0 0 22px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 14px rgba(70, 240, 168, 0.8);
}
.theme-light .eyebrow::before { background: var(--accent-text); box-shadow: 0 0 0 3px var(--accent-soft); }
.eyebrow--gold::before { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft), 0 0 14px rgba(242, 200, 119, 0.8); }
.eyebrow--plain::before { display: none; }

.section-head { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 84px); max-width: 980px; }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; column-gap: clamp(32px, 6vw, 96px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head .eyebrow { margin: 0; }
.section-head .lead { margin: 0; }

.idx { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--text-3); }

/* ---------- Buttons & Links ---------- */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.65em;
  height: var(--h); padding: 0 1.35em 0 1.5em; border-radius: 999px;
  font-weight: 580; font-size: 0.98rem; letter-spacing: -0.012em; line-height: 1;
  border: 1px solid transparent; background: none; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease);
  will-change: transform;
}
.btn .icon { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 34px -14px rgba(70, 240, 168, 0.7); }
.btn--primary:hover { background: #74f8bf; box-shadow: 0 0 0 6px rgba(70, 240, 168, 0.14), 0 20px 44px -16px rgba(70, 240, 168, 0.75); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.025); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--text-2); background: rgba(255, 255, 255, 0.06); }
.theme-light .btn--ghost { background: rgba(255, 255, 255, 0.6); }
.theme-light .btn--ghost:hover { background: #fff; border-color: var(--text-3); }
.btn--dark { background: var(--text); color: var(--bg); }
.btn--dark:hover { background: var(--accent-text); color: #fff; }
.btn--gold { background: var(--gold); color: #1d1405; box-shadow: 0 12px 34px -14px rgba(242, 200, 119, 0.7); }
.btn--gold:hover { background: #f7d797; box-shadow: 0 0 0 6px rgba(242, 200, 119, 0.15), 0 20px 44px -16px rgba(242, 200, 119, 0.7); }
.btn--sm { --h: 42px; font-size: 0.9rem; padding: 0 1.05em 0 1.15em; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 580; letter-spacing: -0.01em; color: var(--text); position: relative; }
.link-arrow .icon { width: 17px; height: 17px; transition: transform .4s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow::after { content: ""; position: absolute; left: 0; right: 26px; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); opacity: .5; }
.link-arrow:hover::after { transform: scaleX(1); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 0.84rem; color: var(--text-2); background: rgba(255, 255, 255, 0.02);
  transition: color .25s, border-color .25s, background .25s;
}
a.chip:hover, button.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip .icon { width: 14px; height: 14px; }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--accent-line); color: var(--accent-text); background: var(--accent-soft); }
.badge--gold { border-color: rgba(242, 200, 119, 0.35); color: var(--gold); background: var(--gold-soft); }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); display: inline-block; flex: none; animation: led 2.4s ease-in-out infinite; }
@keyframes led { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.ico-tile {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-text);
}
.ico-tile .icon { width: 22px; height: 22px; }
.ico-tile--gold { background: var(--gold-soft); border-color: rgba(242, 200, 119, 0.3); color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: transform .5s var(--ease), background-color .35s, border-color .35s, backdrop-filter .35s;
}
.site-header.is-scrolled, .site-header.menu-open {
  background: rgba(5, 11, 8, 0.74);
  backdrop-filter: saturate(170%) blur(18px); -webkit-backdrop-filter: saturate(170%) blur(18px);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-101%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; color: var(--text); }
.brand-mark { height: 28px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.brand-name { font-weight: 640; font-size: 1.02rem; letter-spacing: -0.025em; }
.brand-sub { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); margin-top: 3px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav-item { position: static; }
.nav-link {
  height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: none;
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.93rem; font-weight: 480; color: var(--text-2);
  transition: color .25s, background-color .25s;
}
.nav-link:hover, .nav-item.is-open > .nav-link, .nav-link[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-link[data-active] { color: var(--text); }
.nav-link .icon { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.nav-item.is-open > .nav-link .icon { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 10px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.8rem; color: var(--text-2); padding: 0 10px; height: 40px; border-radius: 999px; transition: color .25s; }
.header-phone:hover { color: var(--text); }
.header-phone .icon { width: 16px; height: 16px; color: var(--accent); }

.mega {
  position: absolute; left: 0; right: 0; top: calc(100% - 6px);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .25s, transform .45s var(--ease), visibility 0s linear .45s;
  pointer-events: none;
}
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; pointer-events: auto; }
.mega-panel {
  margin-top: 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.05fr); gap: 22px;
  padding: 26px; border-radius: 26px; border: 1px solid var(--line);
  background: rgba(8, 16, 12, 0.96); backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9);
}
.mega-panel--2 { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.05fr); }
.mega-title { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin: 6px 10px 10px; }
.mega-link { display: flex; gap: 12px; align-items: flex-start; padding: 9px 10px; border-radius: 12px; transition: background-color .2s; }
.mega-link:hover, .mega-link:focus-visible { background: rgba(255, 255, 255, 0.05); }
.mega-link .ico-tile { width: 34px; height: 34px; border-radius: 10px; }
.mega-link .ico-tile .icon { width: 17px; height: 17px; }
.mega-link strong { display: block; font-size: 0.93rem; font-weight: 560; color: var(--text); letter-spacing: -0.01em; line-height: 1.3; }
.mega-link span { display: block; font-size: 0.8rem; color: var(--text-3); line-height: 1.35; margin-top: 2px; }
.mega-feature {
  position: relative; overflow: hidden; border-radius: 18px; min-height: 250px; padding: 22px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; isolation: isolate;
  border: 1px solid var(--line);
}
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.mega-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 11, 8, 0) 20%, rgba(5, 11, 8, 0.92) 100%); }
.mega-feature:hover img { transform: scale(1.05); }
.mega-feature strong { font-size: 1.15rem; letter-spacing: -0.02em; font-weight: 600; }
.mega-feature span { font-size: 0.85rem; color: var(--text-2); }

.burger { display: none; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); align-items: center; justify-content: center; margin-left: auto; color: var(--text); }
.burger .icon { width: 20px; height: 20px; }
.burger .i-close { display: none; }
.menu-open .burger .i-menu { display: none; }
.menu-open .burger .i-close { display: block; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: rgba(5, 11, 8, 0.985);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  overflow-y: auto; overscroll-behavior: contain; padding: 12px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s, transform .45s var(--ease), visibility 0s linear .45s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-nav details { border-bottom: 1px solid var(--line); }
.mobile-nav summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 18px 2px; font-size: 1.35rem; font-weight: 560; letter-spacing: -0.03em; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary .icon { transition: transform .3s; color: var(--text-3); }
.mobile-nav details[open] summary .icon { transform: rotate(45deg); color: var(--accent); }
.mobile-nav .m-links { display: grid; gap: 2px; padding: 0 0 16px; }
.mobile-nav .m-links a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; color: var(--text-2); font-size: 1rem; }
.mobile-nav .m-links a .icon { color: var(--accent); width: 18px; height: 18px; }
.mobile-nav .m-group-title { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); padding: 10px 4px 4px; }
.mobile-nav .m-single { display: block; padding: 18px 2px; font-size: 1.35rem; font-weight: 560; letter-spacing: -0.03em; border-bottom: 1px solid var(--line); }
.mobile-nav .m-cta { display: grid; gap: 10px; margin-top: 28px; }
.mobile-nav .m-contact { margin-top: 26px; font-family: var(--mono); font-size: 0.8rem; color: var(--text-3); line-height: 1.8; }
body.no-scroll { overflow: hidden; }

/* Scroll-Fortschritt */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 101; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), #b6ffd9); pointer-events: none; }

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 60px); overflow: hidden; isolation: isolate; background: var(--bg);
}
.hero-canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 70% at 85% 30%, rgba(70, 240, 168, 0.07), transparent 60%),
    linear-gradient(90deg, rgba(5, 11, 8, 0.96) 0%, rgba(5, 11, 8, 0.72) 38%, rgba(5, 11, 8, 0.1) 70%, rgba(5, 11, 8, 0.25) 100%),
    linear-gradient(0deg, rgba(5, 11, 8, 1) 0%, rgba(5, 11, 8, 0) 32%);
}
.hero-content { position: relative; max-width: 940px; padding-bottom: clamp(36px, 6vh, 72px); }
.hero-top { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.h-hero { font-size: clamp(2.3rem, 7.1vw, 6.6rem); letter-spacing: -0.055em; line-height: 0.95; font-weight: 600; margin-bottom: 30px; }
.hero h1 .line { display: block; }
.rotator { position: relative; display: inline-block; vertical-align: top; height: 1em; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; min-width: 6ch; }
.rotator span { position: absolute; left: 0; top: 0; white-space: nowrap; color: var(--accent); transform: translateY(105%); opacity: 0; transition: transform .8s var(--ease-out), opacity .5s; }
.rotator span.is-active { position: relative; transform: none; opacity: 1; }
.rotator span.is-leaving { transform: translateY(-105%); opacity: 0; }
.no-js .rotator span:first-child { position: relative; transform: none; opacity: 1; }
.hero .lead { margin-bottom: 36px; }
.hero-bar {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(5, 11, 8, 0.2), rgba(5, 11, 8, 0.85));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-stat { padding: 26px clamp(14px, 2vw, 28px); border-right: 1px solid var(--line); }
.hero-stat:last-child { border-right: 0; }
.hero-stat b { display: block; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 560; letter-spacing: -0.05em; line-height: 1; margin-bottom: 8px; font-feature-settings: "tnum"; }
.hero-stat > span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 130px; display: flex; flex-direction: column; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); writing-mode: vertical-rl; }
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--accent), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Page-Hero (Unterseiten) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(48px, 7vw, 100px)) 0 clamp(64px, 8vw, 120px); overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  mask-image: radial-gradient(90% 80% at 70% 20%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(90% 80% at 70% 20%, #000 10%, transparent 70%);
  opacity: 0.55;
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -200px; top: -380px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(70, 240, 168, 0.13), transparent);
}
.page-hero--gold::after { background: radial-gradient(closest-side, rgba(242, 200, 119, 0.14), transparent); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.page-hero--text .page-hero-grid { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.page-hero h1 { margin-bottom: 26px; }
.page-hero .lead { margin-bottom: 34px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 30px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { opacity: .5; }
.page-hero-visual { position: relative; }
.media-frame { position: relative; overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--line); background: var(--surface); aspect-ratio: 4 / 3.3; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5, 11, 8, 0.55)); pointer-events: none; }
.page-hero-visual .ui-panel--float { position: absolute; left: -36px; bottom: -34px; width: min(330px, 80%); }
.hero-tag { position: absolute; top: 18px; left: 18px; z-index: 2; }

/* ---------- UI-Panel (Bedienoberflächen-Mock) ---------- */
.ui-panel {
  position: relative; border-radius: 22px; border: 1px solid rgba(214, 255, 233, 0.14);
  background: linear-gradient(180deg, rgba(20, 38, 30, 0.92), rgba(9, 18, 14, 0.94));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 16px; color: #eaf2ee; font-size: 0.88rem;
}
.ui-panel--hero { max-width: 520px; margin-left: auto; padding: 20px; }
.ui-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 14px; border-bottom: 1px solid rgba(214, 255, 233, 0.09); margin-bottom: 8px; }
.ui-head .ui-title { font-weight: 600; letter-spacing: -0.01em; }
.ui-head .ui-sub { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: #6f857a; font-weight: 400; }
.ui-status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: #46f0a8; }
.ui-rows { list-style: none; display: grid; gap: 4px; }
.ui-rows li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; transition: background .3s; }
.ui-rows li:hover { background: rgba(255, 255, 255, 0.04); }
.ui-rows .icon { width: 18px; height: 18px; color: #a7bab1; }
.ui-rows li.is-on .icon { color: #46f0a8; }
.ui-rows li.is-gold .icon { color: #f2c877; }
.ui-rows li.is-alert .icon { color: #ff8a7e; }
.ui-label { flex: 1; min-width: 0; color: #d6e3dc; }
.ui-label small { display: block; color: #6f857a; font-size: 0.74rem; margin-top: 1px; }
.ui-val { font-family: var(--mono); font-size: 0.78rem; color: #a7bab1; white-space: nowrap; }
.is-on .ui-val { color: #46f0a8; }
.is-gold .ui-val { color: #f2c877; }
.is-alert .ui-val { color: #ff8a7e; }
.ui-toggle { position: relative; width: 38px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); flex: none; transition: background .3s; }
.ui-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #eaf2ee; transition: transform .35s var(--ease); }
.is-on .ui-toggle, .ui-toggle.is-on { background: #1fcf86; }
.is-on .ui-toggle::after, .ui-toggle.is-on::after { transform: translateX(16px); }
.ui-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 12px 6px 2px; border-top: 1px solid rgba(214, 255, 233, 0.09); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: #6f857a; }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); padding: 24px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 480; letter-spacing: -0.025em; color: var(--text-2); white-space: nowrap; }
.marquee-item .icon { color: var(--accent); width: 22px; height: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Karten ---------- */
.card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 2.5vw, 34px);
  transition: border-color .35s, transform .5s var(--ease), box-shadow .5s var(--ease), background-color .35s;
}
.theme-light .card { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 18px 40px -34px rgba(8, 30, 20, 0.35); }
a.card:hover, .card--hover:hover { border-color: var(--line-2); transform: translateY(-3px); }
.theme-light a.card:hover, .theme-light .card--hover:hover { box-shadow: 0 30px 60px -36px rgba(8, 30, 20, 0.4); }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .45s;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(70, 240, 168, 0.11), transparent 42%);
}
.theme-light .spot::before { background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(8, 128, 79, 0.07), transparent 42%); }
.spot:hover::before { opacity: 1; }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--text-2); font-size: 0.98rem; }
.card .link-arrow { margin-top: 18px; }
.card-num { position: absolute; top: 22px; right: 24px; font-family: var(--mono); font-size: 0.72rem; color: var(--text-3); }

/* Feature-Grid */
.features { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.feature { display: flex; flex-direction: column; }
.feature h3 { font-size: 1.18rem; letter-spacing: -0.022em; margin: 20px 0 10px; line-height: 1.25; font-weight: 580; }
.feature p { font-size: 0.97rem; }

/* Checkliste */
.checklist { list-style: none; display: grid; gap: 0; }
.checklist li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); margin-top: 1px; }
.checklist .tick .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.checklist strong { display: block; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 2px; }
.checklist span { color: var(--text-2); }
.checklist--compact li { padding: 12px 0; }
.checklist--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.checklist--cols li:nth-child(2) { border-top: 1px solid var(--line); }

/* Intro (2-spaltig) */
.intro-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 7vw, 120px); align-items: start; }
.intro-grid .h2 { position: sticky; top: calc(var(--header-h) + 40px); }
.intro-copy { font-size: 1.08rem; color: var(--text-2); }
.intro-copy p { margin-bottom: 1.15em; }
.intro-copy p strong { color: var(--text); }
.intro-copy .lead-first { color: var(--text); font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.45; letter-spacing: -0.015em; }

/* Statement */
.statement { font-size: clamp(1.8rem, 4.2vw, 3.6rem); letter-spacing: -0.045em; line-height: 1.06; font-weight: 520; max-width: 22ch; text-wrap: balance; }
.statement em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent-text); letter-spacing: -0.02em; }
.statement-wrap { display: grid; gap: 28px; }

/* Split (Bild/Text) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.split + .split { margin-top: clamp(64px, 9vw, 130px); }
.split--reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media .media-frame { aspect-ratio: 5 / 4; }
.split-copy .h2 { margin-bottom: 22px; }
.split-copy > p { color: var(--text-2); }
.split-copy .checklist { margin-top: 26px; }
.split-copy .btn-row { margin-top: 32px; }

/* Szenario / Timeline */
.timeline { position: relative; display: grid; gap: 0; max-width: 940px; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--accent-line), var(--line) 80%, transparent); }
.t-step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 26px; padding-bottom: 38px; }
.t-step:last-child { padding-bottom: 0; }
.t-dot { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--accent-line); color: var(--accent-text); }
.t-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--accent-line); opacity: 0; transform: scale(.8); transition: opacity .6s, transform .8s var(--ease); }
.t-step.is-in .t-dot::after { opacity: .6; transform: scale(1); }
.t-dot .icon { width: 20px; height: 20px; }
.t-time { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; padding-top: 4px; }
.t-step h3 { font-size: 1.2rem; letter-spacing: -0.022em; margin-bottom: 6px; font-weight: 580; }
.t-step p { color: var(--text-2); }

/* Prozess-Schritte */
.steps { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); counter-reset: step; }
.step { position: relative; padding: 30px 26px 10px 0; }
.step + .step { padding-left: 26px; border-left: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--mono); font-size: 0.74rem; color: var(--accent-text); letter-spacing: 0.1em; margin-bottom: 40px; }
.step::after { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--accent); transition: width 1.2s var(--ease); }
.step.is-in::after { width: 100%; }
.step h3 { font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 10px; font-weight: 580; }
.step p { color: var(--text-2); font-size: 0.95rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-block: 1px solid var(--line); }
.stat { padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(2.2rem, 4.4vw, 3.8rem); font-weight: 540; letter-spacing: -0.055em; line-height: 1; margin-bottom: 12px; font-feature-settings: "tnum"; }
.stat b small { font-size: 0.45em; letter-spacing: -0.02em; margin-left: 2px; color: var(--text-2); }
.stat strong { display: block; font-size: 0.98rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.stat span { display: block; font-size: 0.9rem; color: var(--text-2); }

/* Link-Karten (verwandte Seiten) */
.link-cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.link-card { display: flex; flex-direction: column; min-height: 100%; }
.link-card .lc-media { margin: calc(-1 * clamp(22px, 2.5vw, 34px)); margin-bottom: 22px; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.link-card .lc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.link-card:hover .lc-media img { transform: scale(1.05); }
.link-card h3 { margin: 18px 0 8px; font-size: 1.22rem; }
.link-card .lc-media + h3 { margin-top: 0; }
.link-card p { flex: 1; }
.link-card .lc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 560; font-size: 0.93rem; }
.link-card .lc-foot .icon { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.link-card:hover .lc-foot .icon { transform: translate(3px, -3px); }

/* ---------- Startseite: Bereiche ---------- */
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.area {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(420px, 48vw, 600px);
  border-radius: var(--radius-xl); overflow: hidden; isolation: isolate; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line);
}
.area > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.02); transition: transform 1.4s var(--ease); }
.area::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 11, 8, 0.28) 0%, rgba(5, 11, 8, 0.5) 32%, rgba(5, 11, 8, 0.97) 70%); transition: background .6s; }
.area > img { filter: saturate(.85); }
.area:hover > img { transform: scale(1.08); }
.area-num { position: absolute; top: clamp(20px, 2.6vw, 34px); left: clamp(24px, 3vw, 40px); font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; color: var(--text-2); }
.area-arrow { position: absolute; top: clamp(18px, 2.4vw, 30px); right: clamp(18px, 2.4vw, 30px); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(5, 11, 8, 0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .35s, color .35s, transform .5s var(--ease); }
.area:hover .area-arrow { background: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); border-color: transparent; }
.area h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.045em; margin-bottom: 12px; }
.area .area-tags { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.area p { color: var(--text-2); max-width: 52ch; margin-bottom: 20px; }
.area .chips { position: relative; z-index: 2; }
.area .chip { background: rgba(5, 11, 8, 0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-color: rgba(214, 255, 233, 0.18); color: var(--text); }
.area .chip:hover { border-color: var(--accent); }
.area-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }

/* ---------- Startseite: 1-1-1-1 ---------- */
.ones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.one { padding: 28px 22px 0 0; }
.one + .one { padding-left: 22px; border-left: 1px solid var(--line); }
.one b { display: block; font-size: clamp(4.2rem, 9vw, 8.5rem); font-weight: 300; letter-spacing: -0.08em; line-height: 0.85; color: var(--accent-text); margin-bottom: 18px; }
.one span { display: block; font-size: clamp(1.05rem, 1.6vw, 1.35rem); letter-spacing: -0.025em; font-weight: 520; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.bento .card { display: flex; flex-direction: column; }
.b-4 { grid-column: span 4; } .b-5 { grid-column: span 5; } .b-6 { grid-column: span 6; } .b-7 { grid-column: span 7; } .b-8 { grid-column: span 8; } .b-12 { grid-column: span 12; }
.bento .card h3 { font-size: 1.32rem; margin: 0 0 10px; }
.bento .viz { flex: 1; min-height: 150px; margin: -4px -4px 24px; position: relative; display: grid; place-items: center; }

/* Mini-Visualisierungen */
.viz-browser { width: 100%; max-width: 330px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); overflow: hidden; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.8); }
.viz-browser .bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.viz-browser .bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.viz-browser .bar span { margin-left: 8px; flex: 1; height: 18px; border-radius: 6px; background: rgba(255, 255, 255, 0.04); font-family: var(--mono); font-size: 0.62rem; color: var(--text-3); display: flex; align-items: center; padding: 0 8px; }
.viz-browser .rows { padding: 8px; display: grid; gap: 2px; }
.viz-browser .row { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px; border-radius: 8px; font-size: 0.8rem; color: var(--text-2); }
.viz-browser .row:nth-child(odd) { background: rgba(255, 255, 255, 0.025); }
.viz-redundant { display: flex; align-items: center; gap: 0; width: 100%; max-width: 340px; }
.viz-node { flex: none; width: 92px; padding: 14px 10px; border-radius: 14px; border: 1px solid var(--accent-line); background: var(--accent-soft); text-align: center; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.viz-node .icon { margin: 0 auto 8px; width: 24px; height: 24px; }
.viz-link { flex: 1; height: 2px; position: relative; background: var(--line-2); overflow: hidden; }
.viz-link::before, .viz-link::after { content: ""; position: absolute; top: -2px; width: 22px; height: 6px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.viz-link::before { animation: ping-r 1.8s linear infinite; }
.viz-link::after { animation: ping-l 1.8s linear infinite .9s; }
@keyframes ping-r { from { left: -22px; } to { left: 100%; } }
@keyframes ping-l { from { left: 100%; } to { left: -22px; } }
.viz-scale { width: 100%; max-width: 320px; height: 150px; }
.viz-scale circle { fill: var(--surface-2); stroke: var(--accent-line); stroke-width: 1.5; }
.viz-scale circle.core { fill: var(--accent); stroke: none; filter: drop-shadow(0 0 8px rgba(70, 240, 168, .8)); }
.viz-scale line { stroke: var(--line-2); stroke-width: 1.2; }
.viz-scale .grow { opacity: 0; transform-box: fill-box; transform-origin: center; animation: grow 6s var(--ease) infinite; }
.viz-scale .grow:nth-of-type(2) { animation-delay: .4s; } .viz-scale .grow:nth-of-type(3) { animation-delay: .8s; } .viz-scale .grow:nth-of-type(4) { animation-delay: 1.2s; }
@keyframes grow { 0%, 8% { opacity: 0; } 20%, 85% { opacity: 1; } 100% { opacity: 0; } }
.viz-bars { width: 100%; max-width: 320px; display: grid; gap: 14px; }
.viz-bar { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; font-family: var(--mono); font-size: 0.66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.viz-bar i { height: 8px; border-radius: 999px; background: var(--line); position: relative; overflow: hidden; }
.viz-bar i::after { content: ""; position: absolute; inset: 0; width: var(--w, 50%); border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.is-in .viz-bar i::after { transform: scaleX(1); }
.viz-clock { position: relative; width: 140px; height: 140px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.viz-clock::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: conic-gradient(from 0deg, var(--accent) 0deg, transparent 300deg); opacity: .22; animation: spin 6s linear infinite; }
.viz-clock b { font-size: 2.2rem; letter-spacing: -0.05em; font-weight: 500; position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }
.viz-swiss { width: 92px; height: 92px; border-radius: 22px; background: #e2231a; display: grid; place-items: center; box-shadow: 0 20px 50px -20px rgba(226, 35, 26, .7); }
.viz-swiss::before { content: ""; width: 54px; height: 16px; background: #fff; position: absolute; }
.viz-swiss::after { content: ""; width: 16px; height: 54px; background: #fff; }
.viz-swiss { position: relative; }
.viz-slider { width: 100%; max-width: 300px; display: grid; gap: 18px; }
.viz-slider .sl { display: grid; gap: 8px; font-size: 0.78rem; color: var(--text-2); }
.viz-slider .sl div { height: 6px; border-radius: 99px; background: var(--line); position: relative; }
.viz-slider .sl div::after { content: ""; position: absolute; top: 50%; left: var(--p, 50%); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px var(--accent-soft); animation: slide 5s var(--ease) infinite alternate; }
.viz-slider .sl div::before { content: ""; position: absolute; inset: 0; width: var(--p, 50%); background: var(--accent); border-radius: inherit; animation: slidew 5s var(--ease) infinite alternate; }
.viz-slider .sl:nth-child(2) div::after, .viz-slider .sl:nth-child(2) div::before { animation-delay: -2s; }
@keyframes slide { from { left: 20%; } to { left: 80%; } }
@keyframes slidew { from { width: 20%; } to { width: 80%; } }
.viz-cube { color: var(--accent-text); }
.viz-cube .icon { width: 74px; height: 74px; stroke-width: 1; }

/* ---------- Live-Demo ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.demo-left { display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 20px); min-width: 0; }
.demo-stage { position: relative; flex: 1; border-radius: var(--radius-xl); border: 1px solid var(--line); overflow: hidden; background: #071019; min-height: 420px; transition: box-shadow .4s; }
.demo-stage.is-alarm { box-shadow: inset 0 0 0 2px var(--danger), 0 0 80px -20px rgba(255, 107, 94, .6); }
.house .sig { fill: none; stroke: #46f0a8; stroke-width: 2.6; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(70, 240, 168, .9)); }
.house .sig-dot { fill: none; stroke: #46f0a8; stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.demo-stage svg { width: 100%; height: 100%; display: block; }
.demo-badge { position: absolute; top: 18px; left: 18px; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; }
.demo-clock { position: absolute; top: 18px; right: 20px; z-index: 2; font-family: var(--mono); font-size: 0.8rem; color: #eaf2ee; background: rgba(5, 11, 8, .5); border: 1px solid rgba(214, 255, 233, .14); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.demo-panel { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--radius-xl); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.demo-panel .ui-head { margin-bottom: 0; }
.demo-scenes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.scene-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--text-2); font-size: 0.76rem; font-weight: 520; transition: all .3s; }
.scene-btn .icon { width: 20px; height: 20px; }
.scene-btn:hover { color: var(--text); border-color: var(--line-2); }
.scene-btn.is-active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.demo-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ctl { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); text-align: left; color: var(--text-2); font-size: 0.84rem; transition: border-color .3s, background .3s, color .3s; min-width: 0; }
.ctl .icon { width: 18px; height: 18px; }
.ctl > span:not(.ui-toggle) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctl:hover { border-color: var(--line-2); color: var(--text); }
.ctl[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.ctl[aria-pressed="true"] .icon { color: var(--accent); }
.ctl[data-gold][aria-pressed="true"] { border-color: rgba(242, 200, 119, .35); background: var(--gold-soft); }
.ctl[data-gold][aria-pressed="true"] .icon { color: var(--gold); }
.ctl[data-alert][aria-pressed="true"] { border-color: rgba(255, 107, 94, .4); background: rgba(255, 107, 94, .08); }
.ctl[data-alert][aria-pressed="true"] .icon { color: var(--danger); }
.ctl .ui-toggle { width: 32px; height: 19px; }
.ctl .ui-toggle::after { width: 13px; height: 13px; }
.ctl[aria-pressed="true"] .ui-toggle { background: #1fcf86; }
.ctl[aria-pressed="true"] .ui-toggle::after { transform: translateX(13px); }
.ctl[data-gold][aria-pressed="true"] .ui-toggle { background: var(--gold-2); }
.ctl[data-alert][aria-pressed="true"] .ui-toggle { background: var(--danger); }
.demo-range { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); }
.demo-range label { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-2); }
.demo-range output { font-family: var(--mono); color: var(--text); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--line-2) var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 99px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 99px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--text); margin-top: -7px; box-shadow: 0 0 0 5px var(--accent-soft); transition: box-shadow .2s; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 5px var(--accent-soft); }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(70, 240, 168, .35); }
.demo-log { font-family: var(--mono); font-size: 0.72rem; line-height: 1.5; color: var(--text-3); border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); padding: 12px 14px; height: 128px; overflow: hidden; display: flex; flex-direction: column; gap: 4px; }
.demo-log div { display: flex; gap: 10px; animation: logIn .5s var(--ease); }
.demo-log time { color: var(--text-3); flex: none; }
.demo-log span { color: var(--text-2); }
.demo-log .ok span { color: var(--accent); }
.demo-log .warn span { color: var(--gold); }
.demo-log .alert span { color: var(--danger); }
@keyframes logIn { from { opacity: 0; transform: translateY(-6px); } }
.demo-share { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--accent-line); background: var(--accent-soft); font-size: 0.84rem; color: var(--text-2); }
.demo-share[hidden] { display: none; }
.demo-share code { font-family: var(--mono); color: var(--accent); font-size: 0.8rem; }
.demo-share .icon { color: var(--accent); }
.demo-note { font-size: 0.82rem; color: var(--text-3); margin-top: 14px; }

/* Haus-SVG */
.house .sky { transition: fill 1.2s; }
.house .star { transition: opacity 1.2s; }
.house .sun { transition: transform 1.2s var(--ease), opacity 1.2s; }
.house .room-glow { opacity: 0; transition: opacity .9s var(--ease); }
.house .room.is-on .room-glow { opacity: 1; }
.house .win-light { fill: #18222a; transition: fill .9s; }
.house .room.is-on .win-light { fill: #ffd98a; }
.house .blind { transform-box: fill-box; transform-origin: top; transform: scaleY(var(--blind, 0)); transition: transform 1.4s var(--ease); }
.house .garage-door { transform-box: fill-box; transform-origin: top; transition: transform 1.6s var(--ease); }
.house.garage-open .garage-door { transform: scaleY(0.08); }
.house .car { transition: transform 1.6s var(--ease); }
.house .door-lock { transition: fill .4s; }
.house .heat { opacity: 0; transition: opacity 1.2s; }
.house .g-light { opacity: 0; transition: opacity 1s; }
.house.garden-on .g-light { opacity: 1; }
.house .g-head { fill: #3a4048; transition: fill .6s; }
.house.garden-on .g-head { fill: #ffe1a0; }
.house .alarm-ring { opacity: 0; transform-box: fill-box; transform-origin: center; }
.house.alarm-on .alarm-ring { animation: alarmRing 1.8s ease-out infinite; }
.house .alarm-core { fill: #3a4048; transition: fill .4s; }
.house.alarm-on .alarm-core { fill: #ff6b5e; }
@keyframes alarmRing { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.4); } }
.house .pulse-line { stroke-dasharray: 4 10; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }

/* ---------- Chaos vs. Ordnung ---------- */
.order { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.order-diagram { position: relative; border-radius: var(--radius-xl); border: 1px solid var(--line); background: radial-gradient(70% 70% at 50% 50%, rgba(70, 240, 168, 0.05), transparent), var(--surface); padding: 12px; }
.order-diagram svg { width: 100%; height: auto; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); margin-bottom: 28px; }
.seg button { height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: none; color: var(--text-2); font-size: 0.9rem; font-weight: 540; transition: background .3s, color .3s; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.chaos-g, .order-g { transition: opacity .8s var(--ease); }
.order-diagram[data-state="order"] .chaos-g { opacity: 0; }
.order-diagram[data-state="chaos"] .order-g { opacity: 0; }
.order-g .flow { stroke-dasharray: 3 9; animation: dash 1.4s linear infinite; }
.chaos-g path { animation: jitter 3s ease-in-out infinite alternate; }
.chaos-g path:nth-child(3n) { animation-duration: 2.3s; }
.chaos-g path:nth-child(4n) { animation-duration: 3.7s; }
@keyframes jitter { to { stroke-dashoffset: 30; } }
.order-caption { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.order-caption div { padding: 16px; border-radius: 16px; border: 1px solid var(--line); }
.order-caption b { display: block; font-size: 1.6rem; letter-spacing: -0.04em; font-weight: 520; }
.order-caption span { font-size: 0.85rem; color: var(--text-2); }

/* ---------- Funktionen ---------- */
.fn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fn { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.2vw, 30px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 210px; isolation: isolate; overflow: hidden; transition: background-color .35s; }
.fn:hover { background: var(--surface); }
.fn .icon { width: 28px; height: 28px; color: var(--accent-text); stroke-width: 1.4; transition: transform .5s var(--ease); }
.fn:hover .icon { transform: translateY(-3px) scale(1.06); }
.fn h3 { font-size: 1.08rem; letter-spacing: -0.02em; font-weight: 580; margin-top: auto; line-height: 1.25; }
.fn p { font-size: 0.86rem; color: var(--text-2); line-height: 1.45; margin: 0; }
.fn .fn-idx { position: absolute; top: 18px; right: 20px; font-family: var(--mono); font-size: 0.66rem; color: var(--text-3); }
.fn .fn-go { position: absolute; right: 18px; bottom: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); opacity: 0; transform: translate(-6px, 6px); transition: opacity .35s, transform .45s var(--ease); }
.fn:hover .fn-go { opacity: 1; transform: none; }
.fn .fn-go .icon { width: 14px; height: 14px; color: var(--text); }

/* Funktionen-Detail */
.fn-detail { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); padding: clamp(32px, 4vw, 52px) 0; border-top: 1px solid var(--line); align-items: start; }
.fn-detail:last-child { border-bottom: 1px solid var(--line); }
.fn-detail-head { display: flex; gap: 18px; align-items: center; position: sticky; top: calc(var(--header-h) + 30px); }
.fn-detail-head .ico-tile { width: 58px; height: 58px; border-radius: 16px; }
.fn-detail-head .ico-tile .icon { width: 26px; height: 26px; }
.fn-detail-head h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); letter-spacing: -0.03em; }
.fn-detail-head .idx { display: block; margin-bottom: 4px; }
.fn-detail-body { color: var(--text-2); font-size: 1.05rem; }
.fn-detail-body .chips { margin-top: 18px; }

/* ---------- Beispiele (Karussell) ---------- */
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 400px); gap: clamp(14px, 1.6vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 24px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-nav { display: flex; gap: 10px; }
.carousel-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s; }
.carousel-nav button:hover { background: var(--text); color: var(--bg); }
.carousel-nav button:disabled { opacity: .35; pointer-events: none; }
.carousel-nav .prev .icon { transform: rotate(180deg); }
.example { display: flex; flex-direction: column; gap: 0; }
.notif { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 26px; }
.notif .ico-tile { width: 38px; height: 38px; border-radius: 11px; }
.notif .ico-tile .icon { width: 18px; height: 18px; }
.notif-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; gap: 10px; }
.notif-text { font-size: 0.84rem; line-height: 1.4; color: var(--text); }
.notif-text code { font-family: var(--mono); color: var(--accent-text); font-size: 0.78rem; }
.example h3 { font-size: 1.25rem; margin: 0 0 10px; }
.example p { font-size: 0.95rem; }

/* ---------- xaxada ---------- */
.xax { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.xax .card { display: flex; flex-direction: column; min-height: 280px; }
.xax-name { font-family: var(--mono); font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.03em; font-weight: 500; margin: 22px 0 10px; }
.xax-name span { color: var(--accent-text); }
.xax .card p { flex: 1; }
.gold-partner { display: flex; align-items: center; gap: 20px; padding: 22px 26px; border-radius: var(--radius-lg); border: 1px solid rgba(242, 200, 119, 0.3); background: linear-gradient(135deg, rgba(242, 200, 119, 0.12), rgba(242, 200, 119, 0.02)); margin-bottom: clamp(14px, 1.6vw, 20px); }
.gold-partner .medal { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff3cf, #f2c877 40%, #b98a33 100%); color: #3a2706; box-shadow: 0 10px 30px -10px rgba(242, 200, 119, .7); }
.gold-partner .medal .icon { width: 28px; height: 28px; stroke-width: 1.8; }
.gold-partner strong { display: block; font-size: 1.15rem; letter-spacing: -0.02em; }
.gold-partner span { color: var(--text-2); font-size: 0.95rem; }
.gold-partner .link-arrow { margin-left: auto; }

/* ---------- AMBIENTE / Aussenbeleuchtung ---------- */
.ambiente { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(110px, 14vw, 210px); background: #030604; }
.ambiente-bg { position: absolute; inset: 0; z-index: -2; }
.ambiente-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.18) saturate(0.5); transform: scale(1.08); transition: filter 2.6s var(--ease), transform 3s var(--ease); }
.ambiente.is-lit .ambiente-bg img { filter: brightness(0.82) saturate(1.05); transform: scale(1); }
.ambiente::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3, 6, 4, 0.94) 0%, rgba(3, 6, 4, 0.7) 40%, rgba(3, 6, 4, 0.1) 75%), linear-gradient(0deg, rgba(3, 6, 4, 0.95), transparent 40%); }
.ambiente-inner { max-width: 720px; }
.ambiente h2 { margin-bottom: 26px; }
.ambiente h2 .serif { color: var(--gold); }
.ambiente .lead { color: #cfd8d3; }
.ambiente-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; }
.ambiente-word { font-family: var(--serif); font-size: 2rem; letter-spacing: 0.32em; color: #f3e6c8; line-height: 1; }
.ambiente-word small { display: block; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.3em; color: var(--gold); margin-top: 8px; text-transform: uppercase; }
.ambiente-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid rgba(242, 200, 119, 0.25); }
.ambiente-facts div { padding: 24px 20px 0 0; }
.ambiente-facts div + div { padding-left: 20px; border-left: 1px solid rgba(242, 200, 119, 0.18); }
.ambiente-facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4.4vw, 3.8rem); color: var(--gold); line-height: 1; letter-spacing: -0.02em; margin-bottom: 10px; }
.ambiente-facts strong { display: block; font-size: 0.98rem; margin-bottom: 4px; }
.ambiente-facts span { font-size: 0.86rem; color: #a7b2ac; }
.partner-logos { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(26px, 4vw, 56px); margin-top: 40px; }
.partner-logos a { opacity: .75; transition: opacity .3s; }
.partner-logos a:hover { opacity: 1; }
.partner-logos img { height: 30px; width: auto; }
.partner-logos .invert { filter: invert(1) brightness(1.4); }
.night-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.night-strip figure { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid rgba(242, 200, 119, 0.16); }
.night-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.night-strip figure:hover img { transform: scale(1.06); }

/* ---------- Duo-Karten (Wasser / Sicherheit) ---------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.duo-card { position: relative; min-height: 600px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: var(--radius-xl); overflow: hidden; isolation: isolate; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); background: var(--surface); }
.duo-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.duo-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 11, 8, 0.05), rgba(5, 11, 8, 0.92) 78%); }
.duo-card:hover > img { transform: scale(1.06); }
.duo-card h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.04em; margin: 14px 0 12px; }
.duo-card p { color: var(--text-2); max-width: 46ch; margin-bottom: 20px; }
.duo-card .ui-panel { position: absolute; top: clamp(24px, 3vw, 40px); right: clamp(24px, 3vw, 40px); width: min(330px, calc(100% - 48px)); z-index: -1; }

/* ---------- Referenzen ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filters button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-size: 0.9rem; transition: all .25s; }
.filters button:hover { color: var(--text); border-color: var(--text-3); }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.ref { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; aspect-ratio: 4 / 3.2; border: 1px solid var(--line); background: var(--surface); cursor: zoom-in; padding: 0; width: 100%; text-align: left; color: #eaf2ee; }
.ref img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), filter .6s; }
.ref::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(5, 11, 8, 0.9)); transition: opacity .5s; }
.ref:hover img { transform: scale(1.06); }
.ref-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: grid; gap: 4px; }
.ref-cat { font-family: var(--mono); font-size: 0.66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.ref-title { font-size: 1.18rem; letter-spacing: -0.025em; font-weight: 580; line-height: 1.25; }
.ref-loc { font-size: 0.85rem; color: #a7bab1; display: flex; align-items: center; gap: 6px; }
.ref-loc .icon { width: 14px; height: 14px; }
.ref.is-hidden { display: none; }
.refs--feature .ref:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 70px 20px 40px; background: rgba(2, 5, 3, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s linear .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox figure { max-width: min(1200px, 100%); display: grid; gap: 14px; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 16px; transform: scale(.97); transition: transform .5s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox figcaption { text-align: center; color: var(--text-2); font-size: 0.95rem; }
.lightbox figcaption strong { color: var(--text); display: block; font-size: 1.1rem; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: #fff; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.12); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; margin-top: -25px; }
.lb-prev .icon { transform: rotate(180deg); }
.lb-next { right: 18px; top: 50%; margin-top: -25px; }

/* ---------- Schulung / Partner ---------- */
.train { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.train .card { padding: clamp(28px, 3.4vw, 48px); }
.train .card h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.035em; margin: 26px 0 14px; }
.train .card p { font-size: 1.02rem; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; font-size: clamp(1.05rem, 1.5vw, 1.22rem); font-weight: 540; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s, color .3s; }
.faq summary .pm .icon { width: 16px; height: 16px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.faq .faq-a { padding: 0 60px 26px 0; color: var(--text-2); }

/* ---------- CTA-Band ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-xl); border: 1px solid var(--line); padding: clamp(40px, 7vw, 110px) clamp(24px, 6vw, 96px); background: radial-gradient(80% 120% at 100% 0%, rgba(70, 240, 168, 0.16), transparent 60%), radial-gradient(60% 90% at 0% 100%, rgba(242, 200, 119, 0.08), transparent 60%), var(--surface); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); opacity: .5; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 40px; align-items: end; }
.cta h2 { margin-bottom: 20px; }
.cta-contact { display: grid; gap: 10px; }
.cta-contact a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); transition: border-color .3s, background .3s; }
.cta-contact a:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.cta-contact .icon { color: var(--accent); }
.cta-contact small { display: block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.cta-contact strong { font-weight: 560; letter-spacing: -0.01em; }

/* ---------- Formulare ---------- */
.form-shell { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.form-aside { position: sticky; top: calc(var(--header-h) + 40px); }
.form-card { border-radius: var(--radius-xl); border: 1px solid var(--line); background: var(--surface); padding: clamp(22px, 3.4vw, 46px); box-shadow: var(--shadow-lg); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { position: relative; display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, .fieldset-legend { font-size: 0.86rem; font-weight: 540; color: var(--text); letter-spacing: -0.005em; }
.field label .req, .fieldset-legend .req { color: var(--accent-text); }
.input, .select, .textarea {
  width: 100%; height: 54px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font-size: 1rem; transition: border-color .25s, box-shadow .25s, background .25s;
  -webkit-appearance: none; appearance: none;
}
.textarea { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f857a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.field-hint { font-size: 0.8rem; color: var(--text-3); }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset + .fieldset { margin-top: 30px; }
.fieldset-legend { display: block; margin-bottom: 14px; font-size: 1.05rem; font-weight: 580; letter-spacing: -0.015em; padding: 0; }
.fieldset-legend small { display: block; font-size: 0.86rem; font-weight: 400; color: var(--text-2); margin-top: 4px; }
.opts { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.opt > span { display: flex; align-items: center; gap: 10px; min-height: 54px; height: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 0.9rem; line-height: 1.3; color: var(--text-2); transition: border-color .2s, background .2s, color .2s, box-shadow .2s; }
.opt > span .icon { width: 19px; height: 19px; color: var(--text-3); transition: color .2s; }
.opt > span::after { content: ""; margin-left: auto; flex: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-2); transition: all .2s; background-position: center; background-repeat: no-repeat; background-size: 12px; }
.opt input[type="radio"] + span::after { border-radius: 50%; }
.opt input:hover + span { border-color: var(--text-3); }
.opt input:focus-visible + span { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent-text); }
.opt input:checked + span { border-color: var(--accent-text); background: var(--accent-soft); color: var(--text); }
.opt input:checked + span .icon { color: var(--accent-text); }
.opt input:checked + span::after { background-color: var(--accent-text); border-color: var(--accent-text); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.opts--lg .opt > span { flex-direction: column; align-items: flex-start; min-height: 110px; padding: 16px; gap: 12px; font-size: 0.98rem; font-weight: 540; }
.opts--lg .opt > span .icon { width: 24px; height: 24px; }
.opts--lg .opt > span::after { position: absolute; top: 14px; right: 14px; }
.opts--lg .opt span small { display: block; font-weight: 400; color: var(--text-3); font-size: 0.82rem; margin-top: -6px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--text-2); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent-2); flex: none; }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.form-note { font-size: 0.82rem; color: var(--text-3); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 107, 94, .4); background: rgba(255, 107, 94, .08); color: var(--text); font-size: 0.92rem; }
.form-error.is-visible { display: block; }
.form-success { display: none; text-align: center; padding: clamp(20px, 4vw, 50px) 0; }
.form-success .ok { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 24px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 10px var(--accent-soft); }
.form-success .ok .icon { width: 34px; height: 34px; stroke-width: 2.4; }
.form-success h3 { margin-bottom: 12px; }
.is-sent .form-success { display: block; animation: logIn .6s var(--ease); }
.is-sent .form-body { display: none; }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: var(--danger); }
.fieldset.has-error .fieldset-legend { color: var(--danger); }
.consent.has-error { color: var(--danger); }
.consent.has-error input { outline: 2px solid var(--danger); outline-offset: 2px; }

/* Wizard */
.wizard-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 30px; }
.wizard-progress li { list-style: none; display: grid; gap: 10px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.wizard-progress li::before { content: ""; height: 3px; border-radius: 99px; background: var(--line-2); transition: background .5s; }
.wizard-progress li.is-done::before, .wizard-progress li.is-current::before { background: var(--accent-text); }
.wizard-progress li.is-current { color: var(--text); }
.js .wizard-step { display: none; }
.js .wizard-step.is-current { display: block; animation: stepIn .55s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.wizard-nav .btn[hidden] { display: none; }
.no-js .wizard-nav .js-only { display: none; }
.step-count { font-family: var(--mono); font-size: 0.72rem; letter-spacing: .1em; color: var(--text-3); align-self: center; }

/* Kontakt-Infos */
.contact-list { display: grid; gap: 10px; margin-top: 34px; }
.contact-list a, .contact-list div { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, transform .4s var(--ease); }
.contact-list a:hover { border-color: var(--accent-line); transform: translateX(4px); }
.contact-list small { display: block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.contact-list strong { font-weight: 560; letter-spacing: -0.01em; }

/* ---------- Fliesstext (Rechtliches, Über uns) ---------- */
.prose { max-width: 760px; font-size: 1.04rem; color: var(--text-2); }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); letter-spacing: -0.035em; color: var(--text); margin: 2.2em 0 0.7em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; letter-spacing: -0.02em; color: var(--text); margin: 1.8em 0 0.5em; }
.prose p, .prose ul { margin-bottom: 1.1em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--accent-text); }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent-text); }
.prose strong { color: var(--text); }
.prose .box { padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); margin: 1.4em 0; }
.prose .box p:last-child { margin: 0; }
.legal-grid { display: grid; grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 2px; font-size: 0.9rem; }
.toc a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); background: var(--surface); }
.toc-title { font-family: var(--mono); font-size: 0.68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin: 0 12px 10px; }

/* Story (Über uns) */
.story { display: grid; gap: 0; }
.chapter { display: grid; grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.chapter:last-child { border-bottom: 1px solid var(--line); }
.chapter-label { font-family: var(--mono); font-size: 0.74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.chapter-label b { display: block; font-family: var(--font); font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.035em; text-transform: none; color: var(--text); font-weight: 560; margin-top: 10px; line-height: 1.1; }
.chapter-body { font-size: 1.06rem; color: var(--text-2); max-width: 70ch; }
.chapter-body p strong { color: var(--text); }
.quote { position: relative; padding: clamp(28px, 4vw, 56px); border-radius: var(--radius-xl); border: 1px solid var(--line); background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
.quote blockquote { margin: 0; font-size: clamp(1.35rem, 2.6vw, 2.1rem); letter-spacing: -0.035em; line-height: 1.22; font-weight: 480; text-wrap: balance; }
.quote blockquote::before { content: "«"; font-family: var(--serif); color: var(--accent-text); font-size: 1.4em; margin-right: 4px; line-height: 0; }
.quote blockquote::after { content: "»"; font-family: var(--serif); color: var(--accent-text); font-size: 1.4em; margin-left: 4px; line-height: 0; }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.quote .avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); font-weight: 600; color: var(--accent-text); letter-spacing: -0.02em; }
.quote figcaption strong { display: block; letter-spacing: -0.01em; }
.quote figcaption span { font-size: 0.88rem; color: var(--text-2); }

/* Wasser */
.params { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.param { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); padding: 20px 18px; display: grid; gap: 14px; }
.param .gauge { position: relative; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.param .gauge::after { content: ""; position: absolute; inset: 0; width: var(--v, 60%); border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.param.is-in .gauge::after { transform: scaleX(1); }
.param b { font-size: 1.05rem; letter-spacing: -0.015em; font-weight: 580; }
.param span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.alarm-chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.alarm-chain > div { padding: 26px 22px; position: relative; background: var(--surface); }
.alarm-chain > div + div { border-left: 1px solid var(--line); }
.alarm-chain .icon { width: 26px; height: 26px; color: var(--accent-text); margin-bottom: 18px; }
.alarm-chain b { display: block; font-size: 1.05rem; letter-spacing: -0.02em; margin-bottom: 6px; font-weight: 580; }
.alarm-chain span { font-size: 0.9rem; color: var(--text-2); }
.alarm-chain .lvl { position: absolute; top: 24px; right: 20px; font-family: var(--mono); font-size: 0.64rem; color: var(--text-3); letter-spacing: .1em; }
.water-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.water-nav a { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, transform .45s var(--ease); }
.water-nav a:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.water-nav a[aria-current="page"] { border-color: var(--accent-text); background: var(--accent-soft); }
.water-nav .icon { color: var(--accent-text); width: 26px; height: 26px; }
.water-nav strong { font-size: 1rem; letter-spacing: -0.015em; font-weight: 580; }

/* Galerie (einfach) */
.gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 12px; }
.gallery figure { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery button { padding: 0; border: 0; background: none; width: 100%; height: 100%; cursor: zoom-in; display: block; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding-top: clamp(70px, 9vw, 120px); background: var(--bg); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 0.7fr)); gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(50px, 6vw, 80px); }
.footer-brand p { color: var(--text-2); margin: 22px 0 24px; max-width: 34ch; font-size: 0.96rem; }
.footer-col h2 { font-family: var(--mono); font-size: 0.68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: var(--text-2); font-size: 0.93rem; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-contact { display: grid; gap: 6px; font-size: 0.93rem; color: var(--text-2); font-style: normal; }
.footer-contact a:hover { color: var(--accent); }
.socials { display: flex; gap: 8px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-2); transition: all .3s; }
.socials a:hover { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.footer-giant { font-size: clamp(5rem, 22vw, 22rem); font-weight: 600; letter-spacing: -0.07em; line-height: 0.78; margin: 0 0 -0.08em; color: transparent; -webkit-text-stroke: 1px rgba(214, 255, 233, 0.13); user-select: none; white-space: nowrap; text-align: center; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--text-3); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-bottom a:hover { color: var(--text); }
.swiss-made { display: inline-flex; align-items: center; gap: 8px; }
.swiss-made i { width: 16px; height: 16px; border-radius: 4px; background: #e2231a; position: relative; display: inline-block; }
.swiss-made i::before, .swiss-made i::after { content: ""; position: absolute; background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.swiss-made i::before { width: 9px; height: 3px; }
.swiss-made i::after { width: 3px; height: 9px; }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 80px; position: relative; overflow: hidden; isolation: isolate; }
.notfound .big { font-size: clamp(7rem, 26vw, 20rem); font-weight: 600; letter-spacing: -0.08em; line-height: .8; background: linear-gradient(180deg, var(--text), rgba(234, 242, 238, 0.05)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound .lead { margin: 20px auto 36px; }
.notfound .btn-row { justify-content: center; }

/* ---------- Reveal-Animationen ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0) * 90ms); }
.js [data-split].is-in .w > span { transform: none; }

/* Sicherheitsnetz: Falls das Skript nicht lädt, bleibt alles sichtbar und bedienbar */
.no-qp [data-reveal], .no-qp [data-split] .w > span { opacity: 1 !important; transform: none !important; filter: none !important; }
.no-qp .wizard-step { display: block !important; }
.no-qp .wizard-nav .js-only { display: none !important; }
.no-qp .wizard-nav [data-wiz-submit] { display: inline-flex !important; }

/* Seitenübergänge (moderne Browser) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .32s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .header-phone span { display: none; }
  .nav-link { padding: 0 11px; }
}
@media (max-width: 1180px) {
  .nav, .header-phone { display: none; }
  .burger { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
  .fn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .params { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .water-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1181px) { .mobile-nav { display: none; } }
@media (min-width: 981px) and (max-width: 1180px) { .form-shell .opts:not(.opts--lg) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.opt > span { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

@media (max-width: 980px) {
  .section-head--split, .intro-grid, .split, .order, .faq-wrap, .form-shell, .cta-grid, .page-hero-grid, .demo, .legal-grid, .chapter, .fn-detail { grid-template-columns: minmax(0, 1fr); }
  .intro-grid .h2, .faq-wrap .section-head, .form-aside, .toc, .fn-detail-head { position: static; }
  .split--reverse .split-media { order: 0; }
  .grid-3, .features, .link-cards, .xax, .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .b-4, .bento .b-5, .bento .b-7 { grid-column: span 6; }
  .bento .b-8, .bento .b-6 { grid-column: span 12; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(odd) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .stat:nth-child(3) { border-left: 0; }
  .stats .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ambiente-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ambiente-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ambiente-facts div:nth-child(n+3) { margin-top: 24px; }
  .page-hero-visual { max-width: 640px; }
  .page-hero-visual .ui-panel--float { left: auto; right: 16px; bottom: -28px; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .demo-stage { min-height: 0; aspect-ratio: 800 / 560; }
  .scroll-cue { display: none; }
  .refs--feature .ref:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  :root { --header-h: 66px; }
  .brand-sub { display: none; }
  .hero-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stat:nth-child(2) { border-right: 0; }
  .hero-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero::before { background: linear-gradient(0deg, rgba(5, 11, 8, 1) 0%, rgba(5, 11, 8, 0.86) 45%, rgba(5, 11, 8, 0.35) 100%); }
  .areas, .grid-2, .grid-3, .features, .link-cards, .xax, .train, .refs, .night-strip, .gallery { grid-template-columns: minmax(0, 1fr); }
  .night-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .refs--feature .ref:first-child { grid-column: auto; }
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .bento .b-4, .bento .b-5, .bento .b-6, .bento .b-7, .bento .b-8 { grid-column: span 12; }
  .fn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fn { min-height: 180px; }
  .fn p { display: none; }
  .ones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .one:nth-child(3) { padding-left: 0; border-left: 0; }
  .one:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding-left: 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .step::before { margin-bottom: 16px; }
  .fields, .checklist--cols { grid-template-columns: minmax(0, 1fr); }
  .checklist--cols li:nth-child(2) { border-top: 0; }
  .opts { --cols: 1 !important; }
  .opts--lg { --cols: 2 !important; }
  .opts--lg .opt > span { min-height: 96px; }
  .demo-scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-badge .badge + .badge { display: none; }
  .ctl { padding: 10px; gap: 8px; font-size: 0.8rem; }
  .alarm-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alarm-chain > div:nth-child(3) { border-left: 0; }
  .alarm-chain > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .params, .water-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gold-partner { flex-wrap: wrap; }
  .gold-partner .link-arrow { margin-left: 0; }
  .wizard-progress li span { display: none; }
  .order-caption { grid-template-columns: minmax(0, 1fr); }
  .faq .faq-a { padding-right: 0; }
  .page-hero-visual .ui-panel--float { position: relative; right: auto; bottom: auto; width: auto; margin: -60px 12px 0; }
  .duo-card { min-height: 560px; }
  .duo-card .ui-panel { left: 20px; right: 20px; width: auto; top: 20px; }
  .area { min-height: 480px; }
}

@media (max-width: 480px) {
  .ctl .ui-toggle { display: none; }
}
@media (max-width: 420px) {
  .btn-row .btn { width: 100%; }
  .hero-top .badge:nth-child(n+3) { display: none; }
  .opts--lg { --cols: 1 !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-split] .w > span { opacity: 1; transform: none; filter: none; }
  .marquee-track { animation: none; }
  @view-transition { navigation: none; }
}

@media print {
  .site-header, .mobile-nav, .progress, .hero-canvas, .site-footer .footer-giant, .cta, .demo { display: none !important; }
  body { background: #fff; color: #000; }
}
