/* =========================================================
   SecureWeb.ch — Stylesheet
   Zwei Modi: html[data-mode="kreativ"] (Standard) & "minimal"
   ========================================================= */

:root {
  --paper: #ECE8E1;
  --paper-2: #E1DCD2;
  --ink: #0C0C0C;
  --ink-soft: #2A2926;
  --muted: #6E6A63;
  --accent: #FF4A1C;
  --accent-ink: #0C0C0C;
  --line: rgba(12, 12, 12, .16);

  --f-display: 'Archivo', system-ui, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --h-wght: 820;
  --h-wdth: 115;
  --h-case: uppercase;
  --h-track: -.045em;
  --grain: .075;

  --gutter: clamp(16px, 3vw, 44px);
  --nav-h: 76px;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html[data-mode="minimal"] {
  --paper: #F6F5F2;
  --paper-2: #ECEAE4;
  --accent: #0C0C0C;
  --accent-ink: #F6F5F2;
  --h-wght: 360;
  --h-wdth: 88;
  --h-case: none;
  --h-track: -.055em;
  --grain: 0;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 100;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Körnung (nur Kreativ-Modus) */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  opacity: var(--grain); transition: opacity .6s;
  will-change: transform;   /* eigene Ebene: das Rauschen wird EINMAL gerastert statt bei jedem Frame */
  /* statisch: kein Dauer-Animieren einer bildschirmfüllenden Ebene */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); }
  40% { transform: translate(5%, -7%); } 60% { transform: translate(-3%, 8%); }
  80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); }
}

/* View-Transition für Modus-Wechsel */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* ---------- Typo ---------- */
.display {
  font-family: var(--f-display);
  font-weight: var(--h-wght);
  font-variation-settings: 'wdth' var(--h-wdth);
  text-transform: var(--h-case);
  letter-spacing: var(--h-track);
  line-height: .86;
  transition: font-weight .6s var(--ease), letter-spacing .6s var(--ease);
}
.display em, .serif-em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: -.02em; color: var(--accent);
  font-variation-settings: normal;
}
html[data-mode="minimal"] .display em { color: var(--muted); }
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; display: inline-flex; gap: .7em; align-items: center;
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.mono { font-family: var(--f-mono); font-size: 13px; }
.muted { color: var(--muted); }
.lead { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; max-width: 34ch; }

/* Split-Text */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .02em .04em .2em 0; margin-bottom: -.2em; }
.c, .wi { display: inline-block; }

.wrap { padding-inline: var(--gutter); }
section { position: relative; }

/* ---------- Übergang / Preloader ---------- */
.transition { position: fixed; inset: 0; z-index: 9500; display: grid; grid-template-columns: repeat(5, 1fr); pointer-events: none; }
html.js .transition { pointer-events: all; animation: swFailsafe 0s 7s forwards; }
@keyframes swFailsafe { to { visibility: hidden; } }
.transition__panel { background: var(--ink); transform: scaleY(0); transform-origin: top; margin-right: -1px; }
html.js .transition__panel { transform: scaleY(1); }
.transition__panel:nth-child(even) { background: #141414; }
html[data-mode="kreativ"] .transition__panel:nth-child(3) { background: var(--accent); }
.transition__label {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  color: #F2EFE9; pointer-events: none; opacity: 0;
  font-family: var(--f-display); font-weight: 800; font-variation-settings: 'wdth' 120;
  font-size: clamp(40px, 9vw, 150px); letter-spacing: -.05em; text-transform: uppercase; line-height: .9;
}
.tl-count { font-variant-numeric: tabular-nums; font-size: clamp(90px, 22vw, 360px); }
.tl-sub { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; font-weight: 400; margin-top: 18px; opacity: .7; }

/* ---------- Cursor ---------- */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9800; pointer-events: none; border-radius: 50%; }
/* kein mix-blend-mode: das würde bei jeder Mausbewegung die ganze Seite darunter neu verrechnen */
.cursor { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #FF4A1C; }
.cursor-ring { width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; }
.cursor-ring__b { position: absolute; inset: 0; border: 1.5px solid #FF4A1C; border-radius: 50%; transition: transform .45s var(--ease-out), background-color .3s, border-radius .3s; }
.cursor-ring span { position: relative; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor-ring.is-hover .cursor-ring__b { transform: scale(1.75); background: rgba(255, 74, 28, .16); }
.cursor-ring.is-label .cursor-ring__b { transform: scale(2.5); background: #FF4A1C; }
.cursor-ring.is-label span { opacity: 1; }
.cursor-ring.is-text .cursor-ring__b { transform: scale(.09, 1.2); border-radius: 2px; background: #FF4A1C; }
@media (pointer: fine) { html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; } html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: text; } }

/* ---------- Fortschrittsbalken ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; z-index: 1001; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center; gap: 28px; padding-inline: var(--gutter);
  /* kein mix-blend-mode (zwingt bei jedem Scroll-Frame die ganze Seite neu zu verrechnen).
     Über dunklen Flächen (Footer, offenes Menü, [data-nav-dark]) setzt main.js die Klasse .is-light */
  color: var(--ink); transition: color .35s;
}
.nav.is-light { color: var(--paper); }
.nav__brand { font-weight: 800; font-variation-settings: 'wdth' 120; font-size: 20px; letter-spacing: -.04em; text-transform: uppercase; display: inline-block; }
.nav__brand span { font-family: var(--f-serif); font-style: italic; text-transform: none; font-weight: 400; letter-spacing: 0; font-size: 1.1em; }
.nav__rotator { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.nav__rot-label { white-space: nowrap; }
.nav__words { position: relative; display: inline-block; height: 1.3em; overflow: hidden; min-width: 15ch; }
@media (max-width: 1240px) { .nav__rot-label { display: none; } }
.nav__words span { position: absolute; left: 0; top: 0; white-space: nowrap; font-family: var(--f-serif); font-style: italic; font-size: 17px; letter-spacing: 0; text-transform: none; line-height: 1.15; }
.nav__links { margin-left: auto; display: flex; gap: 26px; }
.roll { position: relative; display: inline-block; overflow: hidden; font-size: 14px; font-weight: 500; line-height: 1.3; }
.roll > span { display: inline-block; transition: transform .55s var(--ease-out); }
.roll > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; font-family: var(--f-serif); font-style: italic; font-size: 1.12em; }
.roll:hover > span { transform: translateY(-100%); }
.roll.is-active::before { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; }

.mode-toggle {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  border: 1px solid currentColor; border-radius: 99px; padding: 3px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
}
.mode-toggle__opt { position: relative; z-index: 1; padding: 6px 11px; transition: color .4s; }
.mode-toggle__knob { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 99px; background: currentColor; transition: transform .6s var(--ease); }
html[data-mode="kreativ"] .mode-toggle__knob { transform: translateX(100%); }
html[data-mode="minimal"] .mode-toggle__opt:first-of-type,
html[data-mode="kreativ"] .mode-toggle__opt:nth-of-type(2) { color: var(--paper); }
.nav.is-light .mode-toggle__opt:first-of-type, .nav.is-light .mode-toggle__opt:nth-of-type(2) { color: var(--paper); }
html[data-mode="minimal"] .nav.is-light .mode-toggle__opt:first-of-type,
html[data-mode="kreativ"] .nav.is-light .mode-toggle__opt:nth-of-type(2) { color: var(--ink); }
.nav__burger { display: none; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; border: 1px solid currentColor; border-radius: 99px; padding: 8px 14px; }

.menu {
  position: fixed; inset: 0; z-index: 999; background: var(--ink); color: var(--paper);
  clip-path: circle(0% at calc(100% - 50px) 38px); display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) 40px; visibility: hidden;
}
.menu a { display: block; overflow: hidden; font-weight: 800; font-variation-settings: 'wdth' 125; text-transform: uppercase; font-size: clamp(44px, 13vw, 120px); line-height: .92; letter-spacing: -.05em; }
.menu a span { display: inline-block; }
.menu a:hover { color: var(--accent); }
.menu__foot { margin-top: 30px; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; opacity: .6; }

@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-block; }
  .mode-toggle { margin-left: auto; }
}
@media (max-width: 640px) {
  .nav__rotator .nav__rot-label { display: none; }
  .nav__rotator { display: none; }
  .nav { gap: 10px; }
  .nav__brand { font-size: 16px; }
  .mode-toggle__opt { padding: 5px 6px; font-size: 9px; letter-spacing: 0; }
  .nav__burger { padding: 7px 10px; font-size: 11px; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; overflow: hidden; isolation: isolate;
  padding: 18px 28px; border-radius: 99px; border: 1px solid var(--ink); font-weight: 600; font-size: 15px;
  transition: color .5s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0; transform: translateY(101%);
  transition: transform .65s var(--ease), border-radius .65s var(--ease);
}
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn:hover { color: var(--accent-ink); border-color: var(--accent); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { color: var(--accent-ink); }
.btn .arrow { display: inline-block; transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(6px) rotate(-45deg); }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--nav-h) + 40px) var(--gutter) 40px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero > *:not(canvas) { position: relative; z-index: 1; }
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: auto; padding-top: 3vh; }
.hero__title { font-size: clamp(50px, 11.4vw, 230px); margin-block: 3vh 3vh; }
.hero__title .line { display: block; white-space: nowrap; }
.hero__title .line--indent { padding-left: 7vw; }
.hero__bottom { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.scroll-hint { display: flex; align-items: center; gap: 12px; }
.scroll-hint__line { width: 1px; height: 54px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint__line::after { content: ''; position: absolute; inset: 0; background: var(--ink); animation: scrollLine 1.8s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.sticker {
  width: clamp(110px, 11vw, 160px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; text-align: center; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  position: relative;
}
.sticker svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: spin 14s linear infinite; }
.sticker svg text { font-family: var(--f-mono); font-size: 9.6px; letter-spacing: .22em; fill: currentColor; text-transform: uppercase; }
.sticker b { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 34px; text-transform: none; letter-spacing: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
html[data-mode="minimal"] .sticker { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

@media (max-width: 720px) {
  .hero__title .line { white-space: normal; }
  .hero__title .line--indent { padding-left: 0; }
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__top .sticker { display: none; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: 2vw; border-block: 1px solid var(--line); --skew: 0deg; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item {
  display: flex; align-items: center; gap: .35em; padding-right: .35em; white-space: nowrap;
  font-weight: var(--h-wght); font-variation-settings: 'wdth' var(--h-wdth); text-transform: var(--h-case);
  font-size: clamp(56px, 10vw, 180px); letter-spacing: -.05em; line-height: 1;
}
.marquee__item em { font-family: var(--f-serif); font-weight: 400; text-transform: none; letter-spacing: -.02em; }
.marquee__star { color: var(--accent); display: inline-block; font-size: .6em; animation: spin 6s linear infinite; }
.marquee--outline .marquee__item { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.marquee--outline .marquee__item em { color: var(--accent); -webkit-text-stroke: 0; }
.marquee--accent { background: var(--accent); color: var(--accent-ink); border: 0; transform: rotate(-2.5deg) scale(1.05); margin-block: 4vw; }
html[data-mode="minimal"] .marquee--accent { transform: none; }

/* ---------- Sektionen ---------- */
.sec { padding: clamp(90px, 14vw, 200px) var(--gutter); }
.sec__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: clamp(40px, 6vw, 90px); flex-wrap: wrap; }
.sec__title { font-size: clamp(46px, 8.5vw, 150px); }
.scrub { font-size: clamp(30px, 4.4vw, 76px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; max-width: 22ch; font-variation-settings: 'wdth' 92; }
.scrub em { font-family: var(--f-serif); font-weight: 400; font-style: italic; color: var(--accent); }
html[data-mode="minimal"] .scrub { font-weight: 300; }

/* Vergleich Minimal/Kreativ */
.compare { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; --pos: 50%; user-select: none; touch-action: pan-y; border: 1px solid var(--line); }
.compare__layer { position: absolute; inset: 0; }
.compare__layer--b { clip-path: inset(0 0 0 var(--pos)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--accent); z-index: 3; }
html[data-mode="minimal"] .compare__handle { background: #888; }
.compare__knob {
  position: absolute; top: 50%; left: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%;
  background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; cursor: grab;
}
.compare__tag { position: absolute; top: 18px; z-index: 2; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; }
.compare__layer--a .compare__tag { left: 18px; background: #111; color: #fff; }
.compare__layer--b .compare__tag { right: 18px; background: #FFE600; color: #000; }
@media (max-width: 720px) { .compare { aspect-ratio: 3 / 4; } }

/* Mock: Minimal */
.mk-min { height: 100%; background: #FBFBF9; color: #1a1a1a; padding: 5% 6%; display: flex; flex-direction: column; font-family: 'Archivo', sans-serif; }
.mk-min__nav { display: flex; justify-content: space-between; font-size: clamp(9px, 1vw, 13px); color: #777; }
.mk-min__nav b { color: #111; font-weight: 500; }
.mk-min__title { margin-top: auto; font-weight: 250; font-variation-settings: 'wdth' 85; font-size: clamp(34px, 7.4vw, 120px); letter-spacing: -.06em; line-height: .9; }
.mk-min__row { display: flex; justify-content: space-between; align-items: end; margin-top: 4%; font-size: clamp(9px, 1vw, 13px); color: #777; gap: 4%; }
.mk-min__img { width: 34%; aspect-ratio: 4/3; background: linear-gradient(160deg, #E9E7E2, #D7D3CB); position: relative; }
.mk-min__img::after { content: ''; position: absolute; left: 30%; top: 22%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: #CFCAC0; }
.mk-min__line { height: 1px; background: #ddd; margin-top: 4%; }

/* Mock: Kreativ */
.mk-wild { height: 100%; background: #0B0B0B; color: #F2EFE9; overflow: hidden; position: relative; font-family: 'Archivo', sans-serif; }
.mk-wild__circle { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; background: #FF4A1C; right: -6%; top: -16%; animation: bob 5s ease-in-out infinite; }
.mk-wild__ring { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed #FFE600; left: 52%; bottom: 14%; animation: spin 10s linear infinite; }
.mk-wild__title { position: absolute; left: 5%; bottom: 20%; font-weight: 900; font-variation-settings: 'wdth' 125; text-transform: uppercase; font-size: clamp(38px, 8.6vw, 150px); line-height: .82; letter-spacing: -.06em; }
.mk-wild__title span { color: #0B0B0B; background: #FFE600; padding: 0 .08em; display: inline-block; transform: rotate(-3deg); }
.mk-wild__nav { position: absolute; top: 5%; left: 5%; right: 5%; display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: clamp(8px, .9vw, 12px); text-transform: uppercase; }
.mk-wild__band { position: absolute; left: -5%; right: -5%; bottom: 4%; background: #FF4A1C; color: #000; transform: rotate(-3deg); white-space: nowrap; overflow: hidden; font-weight: 800; text-transform: uppercase; font-size: clamp(10px, 1.6vw, 24px); padding: .4em 0; }
.mk-wild__band span { display: inline-block; animation: slide 8s linear infinite; }
.mk-wild__sticker { position: absolute; right: 10%; top: 40%; width: 13%; aspect-ratio: 1; border-radius: 50%; background: #FFE600; color: #000; display: grid; place-items: center; font-weight: 900; font-size: clamp(10px, 1.6vw, 24px); transform: rotate(14deg); animation: wobble 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(8%) scale(1.04); } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes wobble { 50% { transform: rotate(-10deg) scale(1.1); } }

/* Horizontal-Scroll Leistungen */
.hscroll { overflow: hidden; }
.hscroll__track { display: flex; gap: 2vw; padding: 0 var(--gutter); width: max-content; align-items: stretch; }
.hscroll__intro { width: min(40vw, 560px); display: flex; flex-direction: column; justify-content: center; padding-right: 4vw; }
.hcard {
  width: clamp(300px, 34vw, 520px); min-height: 70vh; border-radius: 24px; padding: 34px; display: flex; flex-direction: column;
  background: var(--paper-2); position: relative; overflow: hidden; transition: background-color .5s, color .5s;
}
.hcard:hover { background: var(--ink); color: var(--paper); }
.hcard__num { font-weight: var(--h-wght); font-variation-settings: 'wdth' var(--h-wdth); font-size: clamp(90px, 12vw, 200px); line-height: .8; letter-spacing: -.06em; color: var(--accent); }
html[data-mode="minimal"] .hcard__num { color: transparent; -webkit-text-stroke: 1px currentColor; }
html[data-mode="minimal"] .hcard:hover .hcard__num { -webkit-text-stroke-color: var(--paper); }
.hcard h3 { margin-top: auto; font-size: clamp(28px, 2.6vw, 44px); letter-spacing: -.04em; line-height: 1; font-weight: 700; font-variation-settings: 'wdth' 105; }
.hcard p { margin-top: 14px; max-width: 34ch; opacity: .75; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tags span { font-family: var(--f-mono); font-size: 11px; border: 1px solid currentColor; border-radius: 99px; padding: 4px 10px; opacity: .8; }
.hcard__shape { position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid currentColor; opacity: .25; transition: transform .8s var(--ease); }
.hcard:hover .hcard__shape { transform: scale(2.4); }
@media (max-width: 900px) {
  .hscroll__track { flex-direction: column; width: auto; }
  .hscroll__intro, .hcard { width: auto; min-height: 0; }
  .hcard { min-height: 380px; }
}

/* Zahlen */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 34px 20px 20px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-weight: var(--h-wght); font-variation-settings: 'wdth' var(--h-wdth); font-size: clamp(64px, 9vw, 160px); letter-spacing: -.06em; line-height: .85; }
.stat__num sup { font-size: .35em; vertical-align: top; color: var(--accent); }
.stat p { margin-top: 14px; color: var(--muted); max-width: 22ch; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat { padding-left: 10px; } }

/* Stapel-Karten (Prozess) */
.stack { display: grid; gap: 0; }
.stack__card {
  position: sticky; top: calc(var(--nav-h) + var(--i, 0) * 22px); min-height: 62vh; border-radius: 28px; padding: clamp(26px, 4vw, 60px);
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; margin-bottom: 4vh; transform-origin: center top;
  background: var(--paper-2); color: var(--ink); border: 1px solid var(--line);
}
.stack__card:nth-child(2) { background: var(--ink); color: var(--paper); }
.stack__card:nth-child(3) { background: var(--accent); color: var(--accent-ink); }
.stack__card:nth-child(4) { background: #D8D2C4; }
html[data-mode="minimal"] .stack__card:nth-child(3) { background: #fff; color: var(--ink); }
.stack__num { font-family: var(--f-mono); font-size: 13px; }
.stack__card h3 { font-weight: var(--h-wght); font-variation-settings: 'wdth' var(--h-wdth); text-transform: var(--h-case); font-size: clamp(44px, 7vw, 120px); line-height: .86; letter-spacing: -.05em; margin-top: 16px; }
.stack__card p { font-size: clamp(17px, 1.5vw, 22px); max-width: 32ch; align-self: end; }
@media (max-width: 800px) { .stack__card { grid-template-columns: 1fr; min-height: 56vh; } }

/* Grosser CTA */
.cta { text-align: center; padding: clamp(110px, 16vw, 240px) var(--gutter); overflow: hidden; }
.cta__title { font-size: clamp(54px, 12vw, 230px); }
.cta__btn {
  margin: 50px auto 0; width: clamp(170px, 18vw, 260px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; position: relative; font-weight: 700; font-size: 17px;
}
.cta__btn svg { position: absolute; inset: -34px; width: calc(100% + 68px); height: calc(100% + 68px); animation: spin 18s linear infinite; color: var(--ink); }
.cta__btn:hover svg { animation-duration: 3s; }
.cta__btn svg text { font-family: var(--f-mono); font-size: 8.4px; letter-spacing: .3em; text-transform: uppercase; fill: currentColor; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 80px var(--gutter) 24px; overflow: hidden; border-radius: 32px 32px 0 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .5; font-weight: 400; margin-bottom: 14px; }
.footer a:hover { color: var(--accent); }
html[data-mode="minimal"] .footer a:hover { color: #999; }
.footer li { list-style: none; margin-bottom: 6px; }
.footer__big { font-weight: 900; font-variation-settings: 'wdth' 125; text-transform: uppercase; font-size: 15.4vw; letter-spacing: -.065em; line-height: .8; margin-top: 70px; white-space: nowrap; }
.footer__big .c { display: inline-block; }
.footer__bar { display: flex; justify-content: space-between; gap: 20px; font-family: var(--f-mono); font-size: 11px; opacity: .55; margin-top: 24px; flex-wrap: wrap; }
.footer__mail { font-size: clamp(26px, 3vw, 48px); letter-spacing: -.03em; font-weight: 600; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Seiten-Hero (Unterseiten) ---------- */
.phero { padding: calc(var(--nav-h) + 12vh) var(--gutter) 6vh; position: relative; overflow: hidden; }
.phero__title { font-size: clamp(64px, 16vw, 300px); }
.phero__meta { display: flex; justify-content: space-between; gap: 30px; margin-top: 5vh; align-items: end; flex-wrap: wrap; }
.phero__blob { position: absolute; right: -10vw; top: 8vh; width: 42vw; aspect-ratio: 1; border-radius: 50%; background: var(--accent); z-index: -1; filter: blur(0); }
html[data-mode="minimal"] .phero__blob { background: transparent; border: 1px solid var(--line); }

/* Leistungen-Liste mit Hover-Vorschau */
.svc { border-top: 1px solid var(--line); }
.svc__row { border-bottom: 1px solid var(--line); }
.svc__head { width: 100%; display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 20px; padding: 28px 0; text-align: left; position: relative; }
.svc__head::before { content: ''; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; }
.svc__row:hover .svc__head::before { transform: scaleY(1); }
.svc__row:hover .svc__head { color: var(--paper); }
.svc__head { transition: color .5s; isolation: isolate; }
.svc__n { font-family: var(--f-mono); font-size: 13px; }
.svc__t { font-weight: var(--h-wght); font-variation-settings: 'wdth' var(--h-wdth); text-transform: var(--h-case); font-size: clamp(34px, 6vw, 96px); line-height: .9; letter-spacing: -.05em; transition: transform .6s var(--ease), font-variation-settings .6s; }
.svc__row:hover .svc__t { transform: translateX(24px); }
.svc__plus { width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: 22px; transition: transform .5s var(--ease); }
.svc__row.is-open .svc__plus { transform: rotate(45deg); }
.svc__body { height: 0; overflow: hidden; }
.svc__inner { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 20px; padding: 10px 0 40px; }
.svc__inner p { font-size: 18px; max-width: 46ch; }
.svc__inner ul { list-style: none; }
.svc__inner li { padding: 8px 0; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 13px; }
.svc__inner li::before { content: '→ '; color: var(--accent); }
@media (max-width: 760px) { .svc__head { grid-template-columns: 40px 1fr auto; } .svc__inner { grid-template-columns: 1fr; } }

.float-preview { position: fixed; left: 0; top: 0; width: 300px; height: 220px; border-radius: 18px; z-index: 50; pointer-events: none; overflow: hidden; opacity: 0; transform: scale(.4); }
.float-preview__inner { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.fp-0 { background: radial-gradient(circle at 30% 40%, #FF4A1C 0 22%, transparent 23%), repeating-linear-gradient(0deg, #111 0 2px, #ECE8E1 2px 22px); color: #111; }
.fp-1 { background: conic-gradient(from 90deg, #111, #FF4A1C, #FFE600, #111); color: #fff; }
.fp-2 { background: linear-gradient(135deg, #0B0B0B 50%, #FFE600 50%); color: #fff; }
.fp-3 { background: repeating-linear-gradient(45deg, #FF4A1C 0 18px, #0B0B0B 18px 36px); color: #fff; }
.fp-4 { background: radial-gradient(circle, #111 2px, transparent 2.5px) 0 0 / 18px 18px, #ECE8E1; color: #111; }
.fp-5 { background: linear-gradient(180deg, #1F4FFF, #0B0B0B); color: #fff; }
.fp-6 { background: radial-gradient(circle at 70% 70%, #FFE600 0 30%, #FF4A1C 31% 48%, #111 49%); color: #fff; }
.float-preview__inner b { background: #fff; color: #111; padding: 6px 10px; border-radius: 99px; font-weight: 500; }

/* Pakete */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; perspective: 1200px; }
.pack { border-radius: 24px; padding: 34px; border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 520px; transform-style: preserve-3d; background: var(--paper); }
.pack--hot { background: var(--ink); color: var(--paper); }
.pack__name { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.pack__price { font-weight: var(--h-wght); font-variation-settings: 'wdth' var(--h-wdth); font-size: clamp(44px, 4.6vw, 76px); letter-spacing: -.05em; line-height: .9; margin: 20px 0 6px; transform: translateZ(40px); }
.pack__price small { font-size: 14px; letter-spacing: 0; font-family: var(--f-mono); font-weight: 400; display: block; margin-bottom: 8px; opacity: .6; }
.pack ul { list-style: none; margin: 24px 0 30px; }
.pack li { padding: 10px 0; border-bottom: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 18%, transparent); }
.pack .btn { margin-top: auto; align-self: flex-start; transform: translateZ(30px); }
.pack--hot .btn { border-color: var(--paper); }
.pack__badge { align-self: flex-start; background: var(--accent); color: var(--accent-ink); font-family: var(--f-mono); font-size: 11px; padding: 5px 10px; border-radius: 99px; margin-bottom: 18px; }
html[data-mode="minimal"] .pack__badge { background: var(--paper); color: var(--ink); }
@media (max-width: 900px) { .packs { grid-template-columns: 1fr; } .pack { min-height: 0; } }

/* FAQ */
.faq { max-width: 1100px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; gap: 20px; text-align: left; padding: 26px 0; font-size: clamp(20px, 2vw, 30px); font-weight: 600; letter-spacing: -.02em; }
.faq__q span:last-child { transition: transform .5s var(--ease); font-weight: 300; }
.faq__item.is-open .faq__q span:last-child { transform: rotate(45deg); }
.faq__a { height: 0; overflow: hidden; }
.faq__a p { padding-bottom: 26px; max-width: 60ch; color: var(--muted); font-size: 17px; }

/* ---------- Projekte ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { border: 1px solid var(--ink); border-radius: 99px; padding: 10px 18px; font-size: 14px; transition: background .3s, color .3s; }
.filter.is-active, .filter:hover { background: var(--ink); color: var(--paper); }
.filter sup { font-family: var(--f-mono); font-size: 10px; margin-left: 3px; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: 40px; }
.proj { grid-column: span 6; display: block; }
.proj:nth-child(4n+2), .proj:nth-child(4n+3) { grid-column: span 6; }
.proj.is-wide { grid-column: span 7; }
.proj.is-narrow { grid-column: span 5; }
.proj.is-hidden { display: none; }
.proj__frame { aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; position: relative; }
.proj__mock { position: absolute; inset: 0; transition: transform 1s var(--ease-out); }
.proj:hover .proj__mock { transform: scale(1.06) rotate(-1deg); }
.proj__meta { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px 0; gap: 10px; }
.proj__meta h3 { font-size: clamp(20px, 1.8vw, 28px); letter-spacing: -.03em; font-weight: 700; }
.proj__meta span { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .proj, .proj.is-wide, .proj.is-narrow { grid-column: span 12; } }

/* Projekt-Mockups (reines CSS) */
.pm { position: absolute; inset: 0; padding: 7%; display: flex; flex-direction: column; overflow: hidden; }
.pm small { font-family: 'JetBrains Mono', monospace; font-size: clamp(8px, .8vw, 11px); text-transform: uppercase; letter-spacing: .08em; }
.pm--korn { background: #F2E9DA; color: #3B2A1A; }
.pm--korn h4 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(36px, 5vw, 80px); line-height: .9; margin-top: auto; }
.pm--korn i { position: absolute; right: 10%; top: 18%; width: 30%; aspect-ratio: 1.3; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 40% 35%, #E2B676, #B9803F); box-shadow: inset -10px -14px 0 rgba(0,0,0,.12); }
.pm--pulse { background: #0D0D0D; color: #D7FF3A; align-items: center; justify-content: center; }
.pm--pulse .phone { width: 34%; aspect-ratio: 9 / 19; border-radius: 22px; border: 2px solid #333; background: #161616; padding: 10% 8%; display: flex; flex-direction: column; gap: 8%; transform: rotate(-8deg); }
.pm--pulse .phone b { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: clamp(14px, 2vw, 28px); line-height: .9; text-transform: uppercase; }
.pm--pulse .bar { height: 7%; border-radius: 99px; background: #D7FF3A; }
.pm--pulse .bar:nth-of-type(2) { width: 70%; opacity: .6; } .pm--pulse .bar:nth-of-type(3) { width: 45%; opacity: .35; }
.pm--pulse .ring { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 30px solid #D7FF3A; opacity: .12; right: -14%; bottom: -24%; }
.pm--weiss { background: #FFFFFF; color: #111; background-image: linear-gradient(#eee 1px, transparent 1px), linear-gradient(90deg, #eee 1px, transparent 1px); background-size: 12.5% 16.6%; }
.pm--weiss h4 { font-weight: 200; font-variation-settings: 'wdth' 80; font-size: clamp(34px, 5vw, 84px); letter-spacing: -.06em; margin-top: auto; line-height: .9; }
.pm--weiss i { position: absolute; right: 12.5%; top: 16.6%; width: 25%; height: 50%; background: #111; }
.pm--berg { background: #FF4A1C; color: #0B0B0B; }
.pm--berg h4 { font-weight: 900; font-variation-settings: 'wdth' 125; text-transform: uppercase; font-size: clamp(50px, 8vw, 140px); line-height: .78; letter-spacing: -.07em; transform: rotate(-7deg); margin-top: auto; }
.pm--berg i { position: absolute; inset: auto -10% 20% -10%; height: 40%; background: #0B0B0B; clip-path: polygon(0 100%, 18% 30%, 30% 60%, 48% 0, 64% 55%, 78% 25%, 100% 100%); opacity: .9; }
.pm--berg h4 { position: relative; z-index: 1; color: #FFE600; }
.pm--meier { background: #EEF2FF; color: #0F1E5A; gap: 6%; }
.pm--meier h4 { font-size: clamp(24px, 3vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1; max-width: 70%; margin-top: 8%; }
.pm--meier .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; margin-top: auto; }
.pm--meier .cards span { aspect-ratio: 1.1; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(31, 79, 255, .12); border-top: 4px solid #1F4FFF; }
.pm--ufer { background: #C9D5C3; color: #1F2D1F; align-items: center; justify-content: center; flex-direction: row; gap: 6%; }
.pm--ufer .phone { width: 28%; aspect-ratio: 9 / 19; border-radius: 20px; background: #F6F3EA; padding: 9% 6%; display: flex; flex-direction: column; gap: 6%; box-shadow: 0 30px 60px rgba(0,0,0,.15); }
.pm--ufer .phone:nth-child(2) { transform: translateY(12%); }
.pm--ufer .phone b { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(14px, 1.8vw, 26px); }
.pm--ufer .phone i { flex: 1; border-radius: 10px; background: linear-gradient(160deg, #8BA383, #5E7A5A); }
.pm--velo { background: #FFE600; color: #0B0B0B; }
.pm--velo::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 36%; background: repeating-linear-gradient(-45deg, #0B0B0B 0 20px, #FFE600 20px 40px); }
.pm--velo h4 { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: clamp(40px, 6vw, 110px); text-transform: uppercase; letter-spacing: -.06em; line-height: .82; }
.pm--velo .wheel { position: absolute; width: 30%; aspect-ratio: 1; border-radius: 50%; border: 10px solid #0B0B0B; right: 8%; top: 12%; background: repeating-conic-gradient(#0B0B0B 0 2deg, transparent 2deg 30deg); animation: spin 6s linear infinite; }
.pm--licht { background: radial-gradient(ellipse at 70% 30%, #6B5B45, #0E0D0B 60%); color: #F1EBDF; }
.pm--licht h4 { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; font-size: clamp(40px, 6vw, 100px); margin-top: auto; line-height: .9; }
.pm--licht i { position: absolute; right: 14%; top: 18%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: #F7E7C3; box-shadow: 0 0 80px 30px rgba(247, 231, 195, .35); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; }
.bigmail { font-weight: var(--h-wght); font-variation-settings: 'wdth' var(--h-wdth); font-size: clamp(26px, 6.4vw, 110px); letter-spacing: -.05em; line-height: .95; display: inline-block; max-width: 100%; }
.bigmail .c { transition: transform .4s var(--ease-out), color .3s; }
.bigmail:hover .c { color: var(--accent); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Formular-Felder */
.field { position: relative; margin-bottom: 26px; }
.field label { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0 12px; font-size: 20px; outline: none; transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.45; font-size: 18px; }
.field::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field.is-error input, .field.is-error textarea { border-color: #D7261E; }
.field__err { color: #D7261E; font-size: 13px; margin-top: 6px; display: none; }
.field.is-error .field__err { display: block; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 9600; transform: translate(-50%, 160%); background: var(--ink); color: var(--paper); padding: 14px 22px; border-radius: 99px; font-size: 15px; transition: transform .6s var(--ease); max-width: calc(100vw - 32px); }
.toast.is-on { transform: translate(-50%, 0); }

/* Erfolg-Overlay */
.success { position: fixed; inset: 0; z-index: 9400; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; text-align: center; padding: var(--gutter); clip-path: circle(0% at 50% 50%); visibility: hidden; }
html[data-mode="minimal"] .success { background: var(--ink); color: var(--paper); }
.success h2 { font-size: clamp(56px, 12vw, 200px); }
.success p { margin: 20px auto 30px; max-width: 46ch; font-size: 18px; }
.success .btn { border-color: currentColor; }
.burst { position: fixed; z-index: 9450; pointer-events: none; width: 16px; height: 16px; }

/* =========================================================
   KONFIGURATOR
   ========================================================= */
.cfg-page { padding: calc(var(--nav-h) + 30px) var(--gutter) 60px; }
.cfg-intro { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.cfg-intro h1 { font-size: clamp(48px, 8vw, 140px); }
.cfg { display: grid; grid-template-columns: minmax(340px, 520px) minmax(0, 1fr); gap: 26px; align-items: start; }
.cfg > * { min-width: 0; }
.cfg__panel { background: var(--paper-2); border-radius: 26px; padding: 26px; position: relative; }
.cfg__steps { display: flex; gap: 4px; margin-bottom: 20px; }
.cfg__dot { flex: 1; text-align: left; font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding-top: 10px; position: relative; opacity: .45; transition: opacity .3s; }
.cfg__dot::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--line); }
.cfg__dot::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.cfg__dot.is-done::after, .cfg__dot.is-active::after { transform: scaleX(1); }
.cfg__dot.is-active, .cfg__dot.is-done { opacity: 1; }
.cfg__dot span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cfg__step { display: none; }
.cfg__step.is-active { display: block; }
.cfg__step h2 { font-size: clamp(34px, 3.4vw, 54px); margin-bottom: 8px; }
.cfg__step > p { color: var(--muted); margin-bottom: 24px; }
.cfg__group { margin-bottom: 24px; }
.cfg__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; display: flex; justify-content: space-between; }
.cfg__label output { color: var(--muted); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 10px 14px; font-size: 14px; transition: border-color .25s, background .25s, color .25s, transform .25s var(--ease-out); }
.opt:hover { border-color: var(--ink); transform: translateY(-2px); }
.opt.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.opt--big { flex: 1 1 30%; padding: 18px 14px; text-align: left; }
.opt--big b { display: block; font-size: 17px; letter-spacing: -.02em; }
.opt--big small { opacity: .6; font-size: 12px; }
.chip.is-on::before { content: '✓ '; }

.presets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.preset { border-radius: 16px; overflow: hidden; border: 2px solid transparent; text-align: left; background: var(--paper); transition: border-color .3s, transform .4s var(--ease-out); }
.preset:hover { transform: translateY(-3px) rotate(-.6deg); }
.preset.is-on { border-color: var(--ink); }
.preset__sw { height: 78px; display: grid; place-items: center; font-size: 30px; line-height: 1; }
.preset__name { padding: 10px 12px; font-weight: 600; display: flex; justify-content: space-between; font-size: 14px; }
.preset__name small { font-family: var(--f-mono); font-weight: 400; font-size: 10px; opacity: .55; align-self: center; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line); transition: transform .3s var(--ease-out), box-shadow .3s; }
.swatch:hover { transform: scale(1.12); }
.swatch.is-on { box-shadow: 0 0 0 2px var(--ink); transform: scale(1.1); }
.swatch-custom { position: relative; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); box-shadow: 0 0 0 1px var(--line); }
.swatch-custom input { position: absolute; inset: -10px; width: 60px; height: 60px; opacity: 0; cursor: pointer; }

.fonts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.fontopt { border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 12px; text-align: left; transition: border-color .25s, background .25s, color .25s; }
.fontopt b { display: block; font-size: 24px; line-height: 1.1; font-weight: 700; }
.fontopt small { font-family: var(--f-mono); font-size: 10px; opacity: .6; }
.fontopt.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--line); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 4px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 4px solid var(--paper); cursor: grab; }

.cfg__text { width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 12px 14px; font-size: 16px; outline: none; transition: border-color .25s; }
.cfg__text:focus { border-color: var(--ink); }
textarea.cfg__text { min-height: 170px; resize: vertical; line-height: 1.5; }
.cfg__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cfg__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.cfg__nav .btn { padding: 14px 22px; }
.cfg__tools { display: flex; gap: 14px; margin-top: 14px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.cfg__tools button { opacity: .6; border-bottom: 1px solid currentColor; }
.cfg__tools button:hover { opacity: 1; }
.cfg__group .field__err { display: none; color: #D7261E; font-size: 13px; margin-top: 6px; }
.cfg__group.is-error .field__err { display: block; }
.cfg__group.is-error .cfg__text { border-color: #D7261E; }
.cfg__counter { font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-align: right; margin-top: 6px; }
.helpers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.helpers button { font-size: 12px; border: 1px dashed var(--muted); border-radius: 99px; padding: 5px 10px; color: var(--muted); }
.helpers button:hover { border-style: solid; color: var(--ink); border-color: var(--ink); }

.summary { background: var(--paper); border-radius: 16px; padding: 18px; font-size: 14px; margin-bottom: 20px; }
.summary dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; }
.summary dt { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.price { display: flex; justify-content: space-between; align-items: end; background: var(--ink); color: var(--paper); border-radius: 16px; padding: 18px 20px; margin-bottom: 20px; gap: 10px; }
.price b { font-weight: var(--h-wght); font-variation-settings: 'wdth' var(--h-wdth); font-size: 38px; letter-spacing: -.04em; line-height: 1; }
.price small { font-family: var(--f-mono); font-size: 10px; opacity: .6; display: block; max-width: 24ch; }

.cfg__preview { position: sticky; top: calc(var(--nav-h) + 10px); height: calc(100svh - var(--nav-h) - 30px); display: flex; flex-direction: column; border-radius: 26px; background: #1A1A1A; padding: 12px; }
.cfg__pbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #bbb; padding: 4px 6px 12px; font-family: var(--f-mono); font-size: 11px; }
.cfg__pbar .dots { display: flex; gap: 6px; }
.cfg__pbar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #444; }
.cfg__pbar .dots i:first-child { background: #FF5F57; } .cfg__pbar .dots i:nth-child(2) { background: #FEBC2E; } .cfg__pbar .dots i:nth-child(3) { background: #28C840; }
.cfg__url { flex: 1; background: #262626; border-radius: 99px; padding: 6px 14px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.devices { display: flex; gap: 4px; }
.devices button { color: #888; padding: 5px 10px; border-radius: 99px; font-size: 11px; font-family: var(--f-mono); text-transform: uppercase; }
.devices button.is-on { background: #333; color: #fff; }
.pv-viewport { flex: 1; overflow: auto; border-radius: 14px; background: #111; position: relative; scrollbar-width: thin; }
.pv-viewport.is-mobile { display: flex; justify-content: center; padding: 16px 0; background: #111; }
.pv-stage { position: relative; transform-origin: top left; }
.pv-viewport.is-mobile .pv-stage { border-radius: 34px; overflow: hidden; box-shadow: 0 0 0 10px #2a2a2a, 0 30px 60px rgba(0,0,0,.5); }
.cfg__fab { display: none; }

@media (max-width: 1000px) {
  .cfg { grid-template-columns: 1fr; }
  .cfg__preview { position: fixed; inset: 0; z-index: 1100; height: auto; border-radius: 0; transform: translateY(100%); transition: transform .7s var(--ease); padding-top: 16px; }
  .cfg__preview.is-open { transform: none; }
  .cfg__fab { display: inline-flex; position: fixed; right: 16px; bottom: 16px; z-index: 1050; background: var(--ink); color: var(--paper); border-radius: 99px; padding: 14px 20px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); gap: 8px; align-items: center; }
  .cfg__fab i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
  .cfg__close { display: inline-block !important; }
}
@media (max-width: 520px) { .presets, .fonts { grid-template-columns: 1fr 1fr; } .cfg__panel { padding: 18px; } .cfg__row { grid-template-columns: 1fr; } .summary dl { grid-template-columns: 1fr; } }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .4; } }
.cfg__close { display: none; color: #fff; border: 1px solid #444; border-radius: 99px; padding: 5px 12px; font-family: var(--f-mono); font-size: 11px; }

/* ---------- Mock-Website in der Vorschau (.pv) ---------- */
.pv {
  --p: #111; --a: #FF4A1C; --bg: #FAFAF8; --fg: #141414; --btn: #111; --btnText: #fff; --hf: 'Inter'; --bf: 'Inter'; --hw: 700; --r: 8px; --sp: 1; --sc: 1;
  width: 1280px; background: var(--bg); color: var(--fg); font-family: var(--bf), sans-serif; font-size: 17px; line-height: 1.55; overflow: hidden;
  transition: background-color .5s, color .5s;
}
.pv.is-mobile { width: 390px; font-size: 15px; }
.pv h1, .pv h2, .pv h3, .pv .pv__logo { font-family: var(--hf), sans-serif; font-weight: var(--hw); letter-spacing: -.02em; line-height: 1; }
.pv__nav { display: flex; align-items: center; gap: 28px; padding: calc(22px * var(--sp)) calc(56px * var(--sp)); font-size: 15px; }
.pv.is-mobile .pv__nav { padding: 18px 20px; }
.pv__logo { font-size: 22px; }
.pv__links { display: flex; gap: 24px; margin-left: auto; opacity: .8; }
.pv__extras { display: flex; gap: 12px; align-items: center; font-size: 13px; opacity: .8; }
.pv__burger { display: none; margin-left: auto; width: 26px; height: 14px; border-block: 2px solid currentColor; position: relative; }
.pv__burger::after { content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: currentColor; }
.pv.is-mobile .pv__links, .pv.is-mobile .pv__extras, .pv.is-mobile .pv__nav > .pv__btn { display: none; }
.pv.is-mobile .pv__burger { display: block; }
.pv__nav.nav-centered { justify-content: center; flex-wrap: wrap; text-align: center; }
.pv__nav.nav-centered .pv__logo { width: 100%; order: -1; }
.pv__nav.nav-centered .pv__links { margin-left: 0; }
.pv__nav.nav-bar { border-bottom: 2px solid var(--fg); font-family: 'Space Mono', monospace; text-transform: uppercase; font-size: 13px; }
.pv__nav.nav-burger .pv__links, .pv__nav.nav-burger .pv__extras { display: none; }
.pv__nav.nav-burger .pv__burger { display: block; }

.pv__btn { display: inline-flex; align-items: center; justify-content: center; padding: .85em 1.5em; border-radius: var(--r); background: var(--btn); color: var(--btnText); font-weight: 600; font-size: 15px; white-space: nowrap; border: 2px solid var(--btn); }
.pv__btn.ghost { background: transparent; color: var(--fg); border-color: color-mix(in srgb, var(--fg) 30%, transparent); }
.btn-outline .pv__btn, .pv__btn.btn-outline { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-pill .pv__btn { border-radius: 99px; }
.btn-brutal .pv__btn { border-radius: 0; border: 2px solid var(--fg); box-shadow: 5px 5px 0 var(--fg); }
.btn-brutal .pv__btn.ghost { box-shadow: none; }

.pv__hero { padding: calc(70px * var(--sp)) calc(56px * var(--sp)) calc(80px * var(--sp)); display: grid; gap: 40px; align-items: center; position: relative; }
.pv.is-mobile .pv__hero { padding: 40px 20px 50px; grid-template-columns: 1fr !important; }
.pv__hero small { font-family: 'Space Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--a); display: block; margin-bottom: 18px; }
.pv__hero h1 { font-size: calc(76px * var(--sc)); }
.pv.is-mobile .pv__hero h1 { font-size: calc(44px * var(--sc)); }
.pv__hero p { margin: 22px 0 30px; max-width: 46ch; opacity: .75; font-size: 1.1em; }
.pv__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.pv__media { aspect-ratio: 4 / 3.4; border-radius: var(--r); position: relative; overflow: hidden; background: color-mix(in srgb, var(--p) 14%, var(--bg)); }
.hero-center { text-align: center; justify-items: center; }
.hero-center p { margin-inline: auto; }
.hero-center .pv__ctas { justify-content: center; }
.hero-center .pv__media { width: 100%; aspect-ratio: 21 / 8; }
.hero-split { grid-template-columns: 1.1fr 1fr; }
.hero-bigtype h1 { font-size: calc(150px * var(--sc)); line-height: .85; letter-spacing: -.05em; text-transform: uppercase; }
.pv.is-mobile .hero-bigtype h1 { font-size: calc(46px * var(--sc)); }
.pv h1, .pv h2 { overflow-wrap: anywhere; }
.hero-bigtype .pv__media { aspect-ratio: 21 / 7; }
.hero-full { min-height: 620px; color: #fff; }
.pv.is-mobile .hero-full { min-height: 560px; }
.hero-full .pv__media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; z-index: 0; }
.hero-full .pv__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.65), rgba(0,0,0,.05)); }
.hero-full .pv__htext { position: relative; z-index: 1; align-self: end; max-width: 760px; }
.hero-full .pv__btn.ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.no-media .pv__media { display: none; }
.no-media.hero-split { grid-template-columns: 1fr; }

/* Bildsprache */
.pv__media .s { position: absolute; }
.img-formen .s1 { width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--p); left: 12%; top: 18%; }
.img-formen .s2 { width: 30%; aspect-ratio: 1; background: var(--a); right: 12%; bottom: 14%; border-radius: var(--r); }
.img-formen .s3 { width: 22%; aspect-ratio: 1; border: 6px solid var(--fg); border-radius: 50%; right: 22%; top: 12%; }
.img-foto { background: linear-gradient(160deg, color-mix(in srgb, var(--p) 55%, #fff), color-mix(in srgb, var(--p) 70%, #000)) !important; }
.img-foto .s1 { width: 60%; height: 70%; left: 20%; bottom: 0; border-radius: 50% 50% 0 0; background: rgba(0,0,0,.25); }
.img-foto .s2 { width: 18%; aspect-ratio: 1; border-radius: 50%; right: 14%; top: 14%; background: rgba(255,255,255,.55); filter: blur(2px); }
.img-foto .s3 { left: 14px; bottom: 12px; font-family: 'Space Mono', monospace; font-size: 11px; color: #fff; opacity: .8; }
.img-foto .s3::after { content: 'Ihr Foto hier'; }
.img-illu .s1 { width: 70%; height: 46%; left: 15%; bottom: 0; background: var(--p); clip-path: polygon(0 100%, 25% 20%, 45% 60%, 65% 0, 100% 100%); }
.img-illu .s2 { width: 16%; aspect-ratio: 1; border-radius: 50%; background: var(--a); right: 16%; top: 14%; }
.img-illu .s3 { width: 40%; height: 10px; border-radius: 10px; background: var(--fg); opacity: .2; left: 10%; top: 22%; box-shadow: 30px 24px 0 var(--fg); }

.pv__band { background: var(--a); color: color-mix(in srgb, var(--bg) 0%, #000); white-space: nowrap; overflow: hidden; font-family: var(--hf); font-weight: var(--hw); font-size: 28px; padding: 14px 0; text-transform: uppercase; }
.pv__band span { display: inline-block; }
.pv__sec { padding: calc(70px * var(--sp)) calc(56px * var(--sp)); }
.pv.is-mobile .pv__sec { padding: 40px 20px; }
.pv__sec h2 { font-size: calc(46px * var(--sc)); margin-bottom: 30px; }
.pv.is-mobile .pv__sec h2 { font-size: calc(30px * var(--sc)); }
.pv__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(18px * var(--sp)); }
.pv.is-mobile .pv__cards, .pv.is-mobile .pv__shop { grid-template-columns: 1fr; }
.pv__card { padding: 28px; border-radius: var(--r); background: color-mix(in srgb, var(--fg) 5%, var(--bg)); }
.btn-brutal .pv__card { border: 2px solid var(--fg); box-shadow: 6px 6px 0 var(--fg); background: var(--bg); }
.pv__card i { display: block; width: 44px; height: 44px; border-radius: calc(var(--r) * .7); background: var(--p); margin-bottom: 22px; }
.pv__card:nth-child(2) i { background: var(--a); }
.pv__card h3 { font-size: 24px; margin-bottom: 10px; }
.pv__card p { opacity: .7; font-size: .95em; }
.pv__shop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pv__prod div { aspect-ratio: 1; border-radius: var(--r); background: color-mix(in srgb, var(--p) 20%, var(--bg)); margin-bottom: 10px; }
.pv__prod:nth-child(2) div { background: color-mix(in srgb, var(--a) 30%, var(--bg)); }
.pv__prod b { display: block; font-size: 15px; }
.pv__prod span { opacity: .6; font-size: 14px; }
.pv__strip { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 40px calc(56px * var(--sp)); background: var(--p); color: var(--btnText); flex-wrap: wrap; }
.pv__strip h3 { font-size: 30px; }
.pv__strip .fake-input { flex: 1; min-width: 200px; max-width: 420px; display: flex; background: var(--bg); border-radius: var(--r); padding: 6px; }
.pv__strip .fake-input span { flex: 1; padding: 10px; color: var(--fg); opacity: .5; font-size: 14px; }
.pv__strip .fake-input b { background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: calc(var(--r) * .7); font-size: 14px; }
.pv__book { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; max-width: 560px; }
.pv__book span { aspect-ratio: 1; border-radius: calc(var(--r) * .6); background: color-mix(in srgb, var(--fg) 6%, var(--bg)); display: grid; place-items: center; font-size: 14px; }
.pv__book span.on { background: var(--p); color: var(--btnText); }
.pv__book span.off { opacity: .3; }
.pv__blog { display: grid; gap: 0; }
.pv__blog div { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 15%, transparent); font-size: 18px; }
.pv__blog span { opacity: .5; font-size: 14px; font-family: 'Space Mono', monospace; }
.pv__foot { padding: 50px calc(56px * var(--sp)) 30px; background: var(--fg); color: var(--bg); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.pv__foot b { font-family: var(--hf); font-weight: var(--hw); font-size: 34px; letter-spacing: -.03em; }

/* Animationsstufen */
.anim-subtil .pv__media .s1 { animation: pvFloat 6s ease-in-out infinite; }
.anim-subtil .pv__media .s2 { animation: pvFloat 7s ease-in-out infinite reverse; }
.anim-wild .pv__media .s1 { animation: pvFloat 2.4s ease-in-out infinite; }
.anim-wild .pv__media .s2 { animation: spin 5s linear infinite; }
.anim-wild .pv__media .s3 { animation: pvPulse 1.4s ease-in-out infinite; }
.anim-wild .pv__band span { animation: slide 10s linear infinite; }
.anim-wild .pv__hero h1 { animation: pvSkew 3s ease-in-out infinite; }
.anim-wild .pv__card { animation: pvRise 3s ease-in-out infinite; }
.anim-wild .pv__card:nth-child(2) { animation-delay: .3s; } .anim-wild .pv__card:nth-child(3) { animation-delay: .6s; }
@keyframes pvFloat { 50% { transform: translateY(-12%); } }
@keyframes pvPulse { 50% { transform: scale(1.25); } }
@keyframes pvSkew { 50% { transform: skewX(-6deg); } }
@keyframes pvRise { 50% { transform: translateY(-8px) rotate(-.6deg); } }

/* ---------- Diverses ---------- */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: end; }
@media (max-width: 860px) { .split-2 { grid-template-columns: 1fr; } }
.note { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--paper); z-index: 900; display: grid; place-items: center; transform: scale(0); transition: transform .5s var(--ease); }
.to-top.is-on { transform: scale(1); }

html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }

/* =========================================================
   SMOOTHNESS & NEUE ANIMATIONEN
   ========================================================= */
html.has-lenis { scroll-behavior: auto; }

/* Einstieg: bis Fonts geladen sind unsichtbar (kein Aufblitzen) */
html.js:not(.sw-ready) [data-intro] [data-fade],
html.js:not(.sw-ready) [data-intro-fade] { opacity: 0; animation: swShow 0s 7s forwards; }
@keyframes swShow { to { opacity: 1; } }

/* Fortschrittsleiste */
.progress { height: 3px; z-index: 1003; will-change: transform; background: #FF4A1C; }
html[data-mode="minimal"] .progress { background: #FF4A1C; }

/* Abschnitts-Pille */
.section-pill {
  position: fixed; left: 50%; bottom: 22px; z-index: 1002; pointer-events: none; display: flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 12px; border-radius: 99px; background: var(--ink); color: var(--paper);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}
.section-pill i { width: 7px; height: 7px; border-radius: 50%; background: #FF4A1C; flex: none; }
.section-pill__txt { display: grid; overflow: hidden; height: 1.35em; line-height: 1.35em; }
.section-pill__txt b { grid-area: 1 / 1; font-weight: 500; white-space: nowrap; }
.toast { bottom: 74px; }

/* Pfeile in Bewegung */
.btn--solid .arrow { animation: nudge 1.6s var(--ease) infinite; }
.btn:hover .arrow { animation: none; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.scroll-hint__arrow { display: inline-block; font-size: 16px; animation: bobDown 1.6s ease-in-out infinite; }
@keyframes bobDown { 50% { transform: translateY(7px); } }

/* Selbstzeichnende Linien */
.draw-line { overflow: visible; pointer-events: none; }
.draw-line path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
html[data-mode="minimal"] .draw-line path { stroke: var(--ink); stroke-width: 1.5; }
.doodle { position: absolute; width: clamp(110px, 12vw, 190px); height: auto; }
@media (max-width: 760px) { .doodle { display: none; } }

/* Animierter Unterstrich */
.footer li a, .ulink, .footer__mail { position: relative; display: inline-block; }
.footer li a::after, .ulink::after, .footer__mail::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.footer li a:hover::after, .ulink:hover::after, .footer__mail:hover::after { transform: scaleX(1); transform-origin: left; }

/* Zweite Parallax-Ebene in Seiten-Heros */
.phero__ring { position: absolute; left: 8vw; bottom: -6vw; width: 16vw; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--ink); opacity: .35; z-index: -1; }
.phero__dot { position: absolute; right: 30vw; top: 22vh; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); z-index: -1; }

/* Vorschau: Farben morphen weich (registrierte Custom Properties) */
@property --p { syntax: '<color>'; inherits: true; initial-value: #111111; }
@property --a { syntax: '<color>'; inherits: true; initial-value: #FF4A1C; }
@property --bg { syntax: '<color>'; inherits: true; initial-value: #FAFAF8; }
@property --fg { syntax: '<color>'; inherits: true; initial-value: #141414; }
@property --btn { syntax: '<color>'; inherits: true; initial-value: #111111; }
@property --btnText { syntax: '<color>'; inherits: true; initial-value: #FFFFFF; }
.pv { transition: --p .5s, --a .5s, --bg .5s, --fg .5s, --btn .5s, --btnText .5s; }

/* =========================================================
   HAUS-VIDEO «Wie wir bauen» (scroll-gesteuert, gepinnt)
   Bewegt wird nur transform / opacity / stroke-dashoffset.
   ========================================================= */
.hv { position: relative; background: var(--paper); overflow: clip; }
/* Solange Medien laden: Platz für den Pin reservieren + sticky → kein Sprung, wenn der Pin entsteht */
.hv.is-loading { padding-bottom: var(--hv-reserve, 0px); }
.hv.is-loading .hv__pin { position: sticky; top: 0; }
.hv__pin { height: 100svh; display: flex; flex-direction: column; gap: 14px; padding: calc(var(--nav-h) + 4px) var(--gutter) 22px; }
.hv__head { flex: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hv__title { font-size: clamp(28px, 3.2vw, 56px); line-height: .98; max-width: 24ch; margin-top: 10px; }
.hv__hint { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.hv__hint .scroll-hint__arrow { display: inline-block; }
.hv__frame { flex: 1; min-height: 0; container-type: size; display: grid; place-items: center; padding-left: 64px; }
.hv__stage { position: relative; width: min(100cqw, 100cqh * 1.788); aspect-ratio: 1924 / 1076; }
.hv__media { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: #DCD6CB; }
.hv__video, .hv__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.hv[data-mode="frames"] .hv__video { display: none; }
.hv[data-mode="video"] .hv__canvas, .hv[data-mode="static"] .hv__canvas { display: none; }
.hv__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hv__lines path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.hv__lines circle { fill: var(--accent); stroke: #fff; stroke-width: 4; transform-box: fill-box; transform-origin: center; }
.hv__loader { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 99px; background: var(--paper); color: var(--ink); font-size: 12px; letter-spacing: .04em; }
.hv__loader b { color: var(--accent); font-weight: 500; }

/* Labels direkt auf dem Haus (Position in % des Videobilds, aus HOUSE_CONFIG) */
.hv__labels { position: absolute; inset: 0; list-style: none; pointer-events: none; }
.hv-label { position: absolute; top: var(--y); transform: translateY(-50%); width: max-content; max-width: 26ch; }
.hv-label[data-side="right"] { left: calc(var(--x) + .6%); }
.hv-label[data-side="left"] { right: calc(100% - var(--x) + .6%); }
.hv-label__box { display: flex; gap: 10px; align-items: baseline; padding: 10px 14px 11px; border-radius: 12px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: clamp(12px, .92vw, 15px); line-height: 1.25; transform-origin: 0% 50%; }
.hv-label[data-side="left"] .hv-label__box { transform-origin: 100% 50%; }
.hv-label__num { font-family: var(--f-mono); font-weight: 500; color: #FF4A1C; white-space: nowrap; flex: none; }

/* Bau-Skala 1–4 */
.hv__scale { position: absolute; right: 100%; top: 7%; bottom: 7%; width: 44px; margin-right: 16px; }
.hv__track { position: absolute; left: 22px; top: 0; bottom: 0; width: 3px; border-radius: 3px; overflow: hidden; background: rgba(12,12,12,.12); }
.hv__fill { position: absolute; inset: 0; background: var(--accent); transform-origin: 50% 100%; transform: scaleY(0); }
.hv__ticks { list-style: none; }
.hv__ticks li { position: absolute; left: 0; bottom: calc(var(--i) * 25% + 12.5%); transform: translateY(50%); font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.hv__mover { position: absolute; inset: 0; }
.hv__arrow { position: absolute; left: 28px; bottom: 0; width: 18px; height: 12px; transform: translateY(50%); overflow: visible; }
.hv__arrow path { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Schluss-Karte */
.hv__final { position: absolute; top: 5%; right: 3%; max-width: min(34ch, 42%); display: grid; gap: 14px; justify-items: start; padding: 18px 20px 20px; border-radius: 16px; background: var(--paper); color: var(--ink); }
.hv__final p { font-family: var(--f-serif); font-style: italic; font-size: clamp(18px, 1.6vw, 26px); line-height: 1.1; }

/* Handy: Video oben, Labels als Liste darunter — und «Animationen reduzieren»: statische Liste */
@media (max-width: 900px) {
  .hv__pin { gap: 12px; padding-top: calc(var(--nav-h) - 4px); padding-bottom: 16px; }
  .hv__title { font-size: 27px; }
  .hv__hint, .hv__scale, .hv__lines { display: none; }
  .hv__frame { flex: none; display: block; container-type: normal; padding-left: 0; }
  .hv__stage { width: 100%; aspect-ratio: auto; }
  .hv__media { position: relative; inset: auto; aspect-ratio: 1924 / 1076; border-radius: 16px; }
  .hv__labels { position: static; display: grid; margin-top: 10px; }
  .hv-label { position: static; transform: none; width: auto; max-width: none; }
  .hv-label__box { padding: 9px 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 14px; border-bottom: 1px solid rgba(12,12,12,.1); }
  .hv__final { position: static; max-width: none; margin-top: 12px; padding: 0; background: transparent; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .hv__final p { font-size: 17px; }
}
.hv--static .hv__pin { height: auto; padding-top: clamp(70px, 10vw, 140px); }
.hv--static .hv__hint, .hv--static .hv__scale, .hv--static .hv__lines, .hv--static .hv__loader { display: none; }
.hv--static .hv__frame { display: block; container-type: normal; padding-left: 0; }
.hv--static .hv__stage { width: min(100%, 1100px); aspect-ratio: auto; margin: 0 auto; }
.hv--static .hv__media { position: relative; inset: auto; aspect-ratio: 1924 / 1076; }
.hv--static .hv__labels { position: static; display: grid; margin-top: 14px; }
.hv--static .hv-label { position: static; transform: none; width: auto; max-width: none; }
.hv--static .hv-label__box { padding: 10px 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 16px; border-bottom: 1px solid rgba(12,12,12,.1); }
.hv--static .hv__final { position: static; max-width: none; margin-top: 16px; padding: 0; background: transparent; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
}
