/* ============================================================================
   SCALING LLC — scalingpages.de
   High-End 2026. Dunkel, dicht, handwerklich.
   Design-System + Stylesheet. Reines CSS, keine Frameworks.
   ============================================================================ */

/* ===== FONTS — Phase 2: LOKAL eingebunden (WOFF2 in assets/fonts/).
   Keine Verbindung zu Google Fonts / gstatic — alle Schriften vom eigenen
   Server. Nur dieser Block betrifft die Einbindung; die Variablen unten
   (--font-display / --font-body / --font-mono) NICHT anfassen. ===== */
@font-face { font-family:"Unbounded"; font-style:normal; font-weight:400; font-display:swap; src:url("../fonts/unbounded-v12-latin-regular.woff2") format("woff2"); }
@font-face { font-family:"Unbounded"; font-style:normal; font-weight:600; font-display:swap; src:url("../fonts/unbounded-v12-latin-600.woff2") format("woff2"); }
@font-face { font-family:"Unbounded"; font-style:normal; font-weight:800; font-display:swap; src:url("../fonts/unbounded-v12-latin-800.woff2") format("woff2"); }
@font-face { font-family:"Instrument Sans"; font-style:normal; font-weight:400; font-display:swap; src:url("../fonts/instrument-sans-v4-latin-regular.woff2") format("woff2"); }
@font-face { font-family:"Instrument Sans"; font-style:normal; font-weight:500; font-display:swap; src:url("../fonts/instrument-sans-v4-latin-500.woff2") format("woff2"); }
@font-face { font-family:"Instrument Sans"; font-style:normal; font-weight:600; font-display:swap; src:url("../fonts/instrument-sans-v4-latin-600.woff2") format("woff2"); }
@font-face { font-family:"IBM Plex Mono"; font-style:normal; font-weight:400; font-display:swap; src:url("../fonts/ibm-plex-mono-v20-latin-regular.woff2") format("woff2"); }
@font-face { font-family:"IBM Plex Mono"; font-style:normal; font-weight:500; font-display:swap; src:url("../fonts/ibm-plex-mono-v20-latin-500.woff2") format("woff2"); }

:root {
  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body:    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
/* ===== ENDE FONT-BLOCK ===== */

:root {
  color-scheme: dark;

  /* Farbwelt */
  --ink:      #0A0C11;
  --graphite: #12151D;
  --slate:    #1A1F2A;
  --bone:     #EEF0F4;
  --steel:    #868DA0;
  --cobalt:   #2F4BFF;
  --live:     #2BD25B;
  --amber:    #E8A33D;

  --bone-dim: rgba(238,240,244,.62);
  --hairline: rgba(238,240,244,.10);
  --hairline-soft: rgba(238,240,244,.06);

  /* Typo-Skala (keine Inline-Größen) */
  --fs-mono-xs: .68rem;
  --fs-mono:    .78rem;
  --fs-body:    1.0625rem;
  --fs-lead:    clamp(1.05rem, .6rem + 1.4vw, 1.28rem);
  --fs-h3:      clamp(1.35rem, 1rem + 1.4vw, 1.85rem);
  --fs-h2:      clamp(2.1rem, 1.2rem + 3.6vw, 3.9rem);
  --fs-display: clamp(2.8rem, 1rem + 8vw, 7rem);
  --fs-price:   clamp(3rem, 1.4rem + 6vw, 5.5rem);

  /* Raster & Rhythmus */
  --wrap: 1200px;
  --wrap-wide: 1320px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 76px;
  --radius: 18px;
  --radius-sm: 12px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-1: 0 10px 30px rgba(0,0,0,.35);
  --shadow-2: 0 30px 70px rgba(0,0,0,.5);
}

/* ============================== RESET ============================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); overflow-x: clip; max-width: 100%; }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--bone);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
}
img, svg, iframe, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1; letter-spacing: -.03em; }

/* ============================== TEXTUR: NOISE ============================== */
/* Feines Grain-Overlay über der gesamten Seite (~2.5%). Nimmt dem Schwarz das Digitale. */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  mix-blend-mode: overlay;
}

/* ============================== HELFER ============================== */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: var(--wrap-wide); }
.section { position: relative; padding-block: clamp(72px, 10vw, 140px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

/* Durchgehendes, kaum sichtbares Raster (technische Präzision) */
.has-grid::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--hairline-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline-soft) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 78%);
}
.section > .wrap { position: relative; z-index: 1; }

/* Radialer Cobalt-Glow hinter Sektions-Überschriften (extrem schwach) */
.glow { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(20px); }
.glow--head {
  width: 900px; height: 900px; left: 50%; top: -280px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(47,75,255,.06) 0%, rgba(47,75,255,0) 60%);
}

/* Verlaufskante für Karten (Lichteinfall) — 1px-Rand aus Verlauf */
.edge {
  position: relative;
  background: var(--graphite);
  border-radius: var(--radius);
}
.edge::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(238,240,244,.22), rgba(238,240,244,.03) 45%, rgba(0,0,0,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: background .4s var(--ease);
}
.edge--cobalt::before {
  background: linear-gradient(180deg, rgba(47,75,255,.9), rgba(47,75,255,.25) 45%, rgba(47,75,255,.08));
}

/* Labels / Mono-System */
.mono { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-mono); letter-spacing: .16em; text-transform: uppercase; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-mono);
  letter-spacing: .22em; text-transform: uppercase; color: var(--steel);
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--cobalt); box-shadow: 0 0 8px rgba(47,75,255,.8); }
.eyebrow--center { justify-content: center; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); margin-top: 20px; }
.section-head p { margin-top: 18px; color: var(--steel); font-size: var(--fs-lead); line-height: 1.5; }

.text-cobalt { color: var(--cobalt); }
.text-steel { color: var(--steel); }

/* ============================== BUTTONS ============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  border: 1.5px solid transparent; letter-spacing: .005em;
  transition: transform .35s var(--ease), background .25s var(--ease), box-shadow .3s var(--ease), border-color .25s;
  will-change: transform;
}
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--cobalt { background: var(--cobalt); color: #fff; box-shadow: 0 10px 30px rgba(47,75,255,.34), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--cobalt:hover { background: #3d57ff; box-shadow: 0 16px 44px rgba(47,75,255,.5), inset 0 1px 0 rgba(255,255,255,.3); }
.btn--ghost { border-color: var(--hairline); color: var(--bone); background: rgba(238,240,244,.02); }
.btn--ghost:hover { border-color: rgba(238,240,244,.4); background: rgba(238,240,244,.06); }
.btn--block { width: 100%; }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 1.02rem; }

.link-cobalt { display: inline-flex; align-items: center; gap: 8px; color: var(--cobalt); font-weight: 600; font-size: .95rem; }
.link-cobalt svg { transition: transform .3s var(--ease); }
.link-cobalt:hover svg { transform: translateX(4px); }

/* ============================== NAV ============================== */
.nav {
  position: sticky; top: 0; z-index: 200; isolation: isolate;
  background: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .nav { background: rgba(10,12,17,.72); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }
}
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__word { font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.02em; color: var(--bone); }
.brand__sub { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .28em; color: var(--steel); margin-top: 6px; text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav__links a { font-size: .95rem; color: var(--steel); transition: color .2s; position: relative; padding: 6px 0; }
.nav__links a:hover, .nav__links a:focus-visible { color: var(--bone); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px; background: var(--cobalt); transition: right .25s var(--ease); }
.nav__links a:hover::after { right: 0; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__cta-mobile { display: none; }

.burger { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--hairline); position: relative; }
.burger span, .burger span::before, .burger span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 1.6px; background: var(--bone); transform: translate(-50%,-50%); transition: .25s var(--ease); }
.burger span::before { transform: translate(-50%,-7px); } .burger span::after { transform: translate(-50%,5px); }
.nav.open .burger span { background: transparent; }
.nav.open .burger span::before { transform: translate(-50%,-50%) rotate(45deg); }
.nav.open .burger span::after  { transform: translate(-50%,-50%) rotate(-45deg); }

/* ============================== HERO ============================== */
.hero { position: relative; min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; overflow: hidden; padding-block: clamp(56px, 9vw, 96px); }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg::before { /* radialer Cobalt-Glow oben rechts */
  content: ""; position: absolute; width: 1100px; height: 1100px; right: -220px; top: -420px;
  background: radial-gradient(circle, rgba(47,75,255,.16) 0%, rgba(47,75,255,.05) 34%, transparent 62%);
  filter: blur(10px);
}
.hero__bg::after { /* Raster nur im Hero, sehr schwach */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--hairline-soft) 1px, transparent 1px), linear-gradient(90deg, var(--hairline-soft) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(90% 90% at 80% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(90% 90% at 80% 0%, #000, transparent 70%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; }
.hero__eyebrow { margin-bottom: 26px; }
.hero h1 { font-size: var(--fs-display); max-width: 15ch; }
/* maskiert einfahrende Zeilen */
.line-mask { display: block; overflow: hidden; padding-block: .04em; }
.line-mask > span { display: block; transform: translateY(110%); transition: transform .9s var(--ease); }
.reveal-lines.is-in .line-mask:nth-child(1) > span { transition-delay: .05s; }
.reveal-lines.is-in .line-mask:nth-child(2) > span { transition-delay: .16s; }
.reveal-lines.is-in .line-mask:nth-child(3) > span { transition-delay: .27s; }
.reveal-lines.is-in .line-mask > span { transform: translateY(0); }
.hero__lead { margin-top: 28px; max-width: 52ch; color: var(--steel); font-size: var(--fs-lead); line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero__stats { margin-top: clamp(44px, 6vw, 72px); border-top: 1px solid var(--hairline); padding-top: 26px; display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 80px); }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1rem + 3.6vw, 3.2rem); letter-spacing: -.03em; line-height: 1; color: var(--bone); }
.stat__num .u { color: var(--cobalt); }
.stat__label { margin-top: 10px; font-family: var(--font-mono); font-size: var(--fs-mono-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--steel); }

/* ============================== PORTFOLIO ============================== */
.pf__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 34px); }
.pf__card { display: flex; flex-direction: column; padding: 14px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.pf__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.pf__card:hover.edge::before { background: linear-gradient(180deg, rgba(238,240,244,.4), rgba(238,240,244,.05) 45%, rgba(0,0,0,.4)); }

/* Browser-Chrome-Mockup */
.mock { border-radius: 12px; overflow: hidden; background: #0d0f14; border: 1px solid var(--hairline); }
.mock__bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: linear-gradient(180deg, #191d27, #12151d); border-bottom: 1px solid var(--hairline); }
.mock__dots { display: flex; gap: 7px; flex-shrink: 0; }
.mock__dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a2f3b; }
.mock__dots i:nth-child(1){ background:#3a2020; } .mock__dots i:nth-child(2){ background:#3a3320; } .mock__dots i:nth-child(3){ background:#203a26; }
.mock__addr { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; background: #0c0e13; border: 1px solid var(--hairline); border-radius: 7px; padding: 6px 12px; font-family: var(--font-mono); font-size: .72rem; color: var(--steel); letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock__addr svg { flex-shrink: 0; color: var(--live); }

/* Viewport-Fenster mit skaliertem iframe / Screenshot */
/* Wrapper klippt den skalierten iframe — keine Layout-Breite nach außen (kein Overflow) */
.mock__viewport { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #0d0f14; touch-action: pan-y; }
.mock__shot { position: absolute; inset: 0; z-index: 0; }
.mock__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* 1400px Design-Breite * --s == Wrapper-Breite (per JS/ResizeObserver gesetzt) */
.mock__scaler { position: absolute; top: 0; left: 0; width: 1400px; transform: scale(var(--s, .24)); transform-origin: top left; z-index: 1; will-change: transform; }
/* Standbild + Hover-Scroll: iframe nicht interaktiv; sanftes Durchscrollen per translateY */
.mock__scaler iframe { display: block; width: 1400px; height: 3500px; border: 0; background: #fff; pointer-events: none; transform: translateY(0); transition: transform var(--scroll-dur, 9s) linear; }
.pf__card:hover .mock__scaler iframe { transform: translateY(var(--ty-end, 0px)); }
.mock__guard { position: absolute; inset: 0; z-index: 2; } /* pointer-events-Overlay, verhindert Navigation im iframe */
.mock__viewport .mock__scaler { display: none; }         /* per JS aktiviert */
.mock__viewport.iframe-on .mock__scaler { display: block; }
.mock__viewport.iframe-on .mock__shot { z-index: 0; }     /* Screenshot bleibt als Fallback darunter */

.pf__meta { padding: 20px 8px 6px; display: grid; gap: 10px; }
.pf__toprow { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pf__name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); letter-spacing: -.02em; }
.pf__branch { font-family: var(--font-mono); font-size: var(--fs-mono-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--cobalt); white-space: nowrap; }
.pf__result { color: var(--steel); font-size: .98rem; }
.pf__more { display: flex; justify-content: center; margin-top: 40px; }
.pf__hidden { display: none; }

/* ============================== WARUM WIR (narrative Blöcke) ============================== */
.why { display: grid; gap: 0; }
.why__row { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,2fr); gap: clamp(20px, 5vw, 80px); padding-block: clamp(34px, 4vw, 52px); border-top: 1px solid var(--hairline); align-items: start; }
.why__row:last-child { border-bottom: 1px solid var(--hairline); }
.why__num { font-family: var(--font-mono); font-weight: 500; font-size: clamp(1rem, 2vw, 1.3rem); color: var(--cobalt); letter-spacing: .1em; padding-top: .3em; }
.why__body h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); letter-spacing: -.02em; line-height: 1.1; }
.why__body p { margin-top: 16px; color: var(--steel); font-size: var(--fs-lead); line-height: 1.55; max-width: 60ch; }

/* ============================== ABLAUF (Timeline) ============================== */
.timeline { position: relative; }
.timeline__track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
/* Basislinie + Fortschritt */
.timeline__line { position: absolute; top: 21px; left: 0; right: 0; height: 2px; background: var(--hairline); z-index: 0; }
.timeline__line::after { content: ""; position: absolute; inset: 0; width: var(--progress, 0%); background: linear-gradient(90deg, var(--cobalt), #5f76ff); box-shadow: 0 0 12px rgba(47,75,255,.6); transition: width .2s linear; }
.tstep { position: relative; z-index: 1; }
.tstep__dot { width: 44px; height: 44px; border-radius: 50%; background: var(--graphite); border: 1px solid var(--hairline); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 500; font-size: .82rem; color: var(--steel); transition: .4s var(--ease); }
.tstep.on .tstep__dot { border-color: var(--cobalt); color: #fff; background: var(--cobalt); box-shadow: 0 0 20px rgba(47,75,255,.55); }
.tstep h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; margin-top: 22px; }
.tstep .when { font-family: var(--font-mono); font-size: var(--fs-mono-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--cobalt); margin-top: 8px; }
.tstep p { margin-top: 12px; color: var(--steel); font-size: .96rem; }

/* ============================== PREISE ============================== */
.price__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 30px); align-items: stretch; }
.price { padding: clamp(30px, 4vw, 44px); display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.price:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.price__badge { align-self: flex-start; font-family: var(--font-mono); font-size: var(--fs-mono-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--cobalt); border: 1px solid rgba(47,75,255,.4); border-radius: 999px; padding: 5px 12px; margin-bottom: 18px; }
.price__badge--ghost { color: var(--steel); border-color: var(--hairline); }
.price__name { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--steel); }
.price__fig { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-price); letter-spacing: -.04em; line-height: .95; margin: 14px 0 6px; }
.price__fig .cur { font-size: .42em; vertical-align: .5em; color: var(--steel); margin-left: .1em; }
.price__for { color: var(--steel); font-size: 1rem; min-height: 3em; }
.price__list { list-style: none; margin: 26px 0; display: grid; gap: 13px; }
.price__list li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.price__list svg { flex-shrink: 0; margin-top: 3px; color: var(--cobalt); }
.price__foot { margin-top: auto; }
.price__note { text-align: center; margin-top: 30px; font-family: var(--font-mono); font-size: var(--fs-mono-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--steel); }

/* ============================== FAQ ============================== */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item { padding: 0; overflow: hidden; }
.faq__q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.02rem, 1.5vw, 1.22rem); letter-spacing: -.02em; }
.faq__icon { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; background: var(--cobalt); transform: translate(-50%,-50%); transition: transform .35s var(--ease); border-radius: 2px; }
.faq__icon::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq__item[aria-expanded="true"] .faq__icon::after { transform: translate(-50%,-50%) rotate(0); }
/* grid-template-rows 0fr -> 1fr Trick */
.faq__ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq__item[aria-expanded="true"] .faq__ans { grid-template-rows: 1fr; }
.faq__ans > div { overflow: hidden; }
.faq__ans p { padding: 0 26px 24px; color: var(--steel); font-size: 1rem; line-height: 1.6; max-width: 68ch; }

/* ============================== KONTAKT / FORMULAR ============================== */
.contact__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: clamp(30px, 5vw, 64px); align-items: start; }
.contact__aside .lead { font-size: var(--fs-lead); color: var(--steel); margin-top: 18px; line-height: 1.55; max-width: 44ch; }
.contact__facts { margin-top: 34px; display: grid; gap: 20px; }
.fact { display: grid; gap: 5px; }
.fact .k { font-family: var(--font-mono); font-size: var(--fs-mono-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--steel); }
.fact .v { font-size: 1.08rem; }
.fact .v a:hover { color: var(--cobalt); }

.form { padding: clamp(24px, 3.5vw, 38px); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: var(--fs-mono-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.field label .req { color: var(--cobalt); }
.field input, .field select, .field textarea {
  background: var(--ink); border: 1px solid var(--hairline); border-radius: 10px; padding: 13px 15px; width: 100%;
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(47,75,255,.22); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23868DA0' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 42px; }
.field .err { font-family: var(--font-mono); font-size: var(--fs-mono-xs); letter-spacing: .06em; color: #ff6b6b; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255,107,107,.18); }
.field.invalid .err { display: block; }
/* Honeypot: off-screen, nicht display:none */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--steel); }
.check input { width: 22px; height: 22px; margin-top: 1px; flex-shrink: 0; accent-color: var(--cobalt); }
.check a { color: var(--cobalt); text-decoration: underline; }
.form__hint { margin-top: 6px; font-size: .84rem; color: var(--steel); }
.form__ok { display: none; text-align: center; padding: 30px 10px; }
.form__ok svg { color: var(--live); margin-inline: auto; }
.form__ok h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin-top: 16px; letter-spacing: -.02em; }
.form__ok p { color: var(--steel); margin-top: 10px; }
.form.sent .form__body { display: none; }
.form.sent .form__ok { display: block; }

/* ============================== FOOTER ============================== */
.footer { position: relative; border-top: 1px solid var(--hairline); padding-block: clamp(56px, 7vw, 90px) 34px; background: var(--ink); }
.footer__word { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 12vw, 9rem); letter-spacing: -.04em; line-height: .85; color: var(--bone); opacity: .96; }
.footer__word .dot { color: var(--cobalt); }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-top: 56px; }
.footer h4 { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-mono-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--steel); margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer a { color: var(--bone-dim); font-size: .96rem; }
.footer a:hover { color: var(--bone); }
.footer__blurb { color: var(--steel); font-size: .96rem; max-width: 40ch; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer__bottom .cr { font-size: .88rem; color: var(--steel); }
/* B2B-Hinweis: bewusst unauffällig, reine Sachinformation */
.footer__b2b { margin-top: 18px; font-size: .82rem; color: var(--steel); font-weight: 400; max-width: 70ch; }

/* ============================== SCROLL-REVEALS ============================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================== COOKIE-CONSENT ============================== */
.cc-toggle {
  position: fixed; left: 16px; bottom: 16px; z-index: 400;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: rgba(18,21,29,.9); border: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: var(--fs-mono-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--steel);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: color .2s, border-color .2s;
}
.cc-toggle:hover { color: var(--bone); border-color: rgba(238,240,244,.3); }
.cc-toggle svg { color: var(--cobalt); }

/* Reopen-Button ausblenden, solange das Banner offen ist (verhindert Überlappung) */
body:has(#cc.show) .cc-toggle { display: none; }

/* Kompakte, unten angedockte Leiste — kein zentriertes Modal */
.cc { position: fixed; left: 24px; bottom: 24px; right: auto; z-index: 500; width: min(480px, calc(100vw - 48px)); display: none; }
.cc.show { display: block; }
.cc__panel { padding: 20px; max-height: 70vh; overflow-y: auto; display: flex; flex-direction: column; }
.cc__title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; }
.cc__text { color: var(--steel); font-size: .88rem; margin-top: 8px; line-height: 1.5; }
.cc__text a { color: var(--cobalt); text-decoration: underline; white-space: nowrap; }
/* Akzeptieren + Ablehnen: EINE Reihe, gleich groß, gleich prominent (DSGVO) */
.cc__primary { display: flex; gap: 10px; margin-top: 16px; }
.cc__primary .btn { flex: 1 1 0; min-height: 48px; padding-inline: 12px; }
/* Einstellungen: darunter, textlink-artig, kleiner, aber klar sichtbar */
.cc__more-btn { display: block; width: 100%; margin-top: 10px; min-height: 40px; color: var(--steel); font-family: var(--font-mono); font-size: var(--fs-mono-xs); letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.cc__more-btn:hover { color: var(--bone); }
/* Einstellungen-Panel: NUR im settings-open-Zustand, animiert (0fr -> 1fr) */
.cc__settings { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.cc.settings-open .cc__settings { grid-template-rows: 1fr; margin-top: 14px; }
.cc__settings-inner { overflow: hidden; display: grid; gap: 14px; }
.cc.settings-open .cc__settings-inner { border-top: 1px solid var(--hairline); padding-top: 16px; }
.cc-cat { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cc-cat__info h5 { font-size: .95rem; }
.cc-cat__info p { color: var(--steel); font-size: .82rem; margin-top: 3px; }
/* Mobil: volle Breite minus 16px, unten angedockt, Safe-Area */
@media (max-width: 720px) {
  .cc { left: 8px; right: 8px; bottom: 8px; width: auto; }
  .cc__panel { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
/* Sehr schmal: Akzeptieren/Ablehnen in zwei Reihen */
@media (max-width: 360px) {
  .cc__primary { flex-wrap: wrap; }
  .cc__primary .btn { flex: 1 1 100%; }
}
/* Switch */
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; background: var(--slate); border: 1px solid var(--hairline); border-radius: 999px; transition: .25s var(--ease); }
.switch .track::before { content: ""; position: absolute; top: 50%; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--steel); transform: translateY(-50%); transition: .25s var(--ease); }
.switch input:checked + .track { background: rgba(47,75,255,.3); border-color: var(--cobalt); }
.switch input:checked + .track::before { left: 24px; background: var(--cobalt); }
.switch input:disabled + .track { opacity: .55; }
.switch input:focus-visible + .track { outline: 2px solid var(--cobalt); outline-offset: 2px; }

/* ============================== LEGAL ============================== */
.legal { padding-block: clamp(48px, 7vw, 90px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.03em; margin-top: 16px; }
.legal h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.02em; margin: 42px 0 12px; }
.legal p, .legal address, .legal li { color: var(--steel); margin-top: 12px; font-style: normal; line-height: 1.65; }
.legal ul { margin-top: 12px; padding-left: 22px; }
.legal a { color: var(--cobalt); text-decoration: underline; }
.legal .back { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .1em; color: var(--cobalt); display: inline-flex; gap: 8px; margin-bottom: 8px; text-decoration: none; }
.legal .todo { outline: 1px dashed rgba(232,163,61,.7); background: rgba(232,163,61,.1); border-radius: 4px; padding: 0 5px; color: var(--amber); }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1000px) {
  .pf__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols .footer__brandcol { grid-column: 1 / -1; }
  .timeline__track { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .timeline__line { display: none; }
}
@media (max-width: 720px) {
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--hairline);
    padding: 8px var(--gutter) 20px; box-shadow: var(--shadow-1);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .35s var(--ease), opacity .25s, padding .35s var(--ease);
  }
  @supports ((backdrop-filter: blur(10px))) { .nav__links { background: rgba(10,12,17,.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); } }
  .nav.open .nav__links { max-height: 460px; opacity: 1; pointer-events: auto; }
  .nav__links li { border-bottom: 1px solid var(--hairline-soft); }
  .nav__links li:last-child { border-bottom: 0; }
  .nav__links a { display: block; padding: 16px 2px; font-size: 1.05rem; color: var(--bone); }
  .nav__links a::after { display: none; }
  .nav__cta-mobile { display: inline-flex; margin-top: 16px; }
  .nav__actions .btn:not(.nav__cta-mobile) { display: none; }
  .burger { display: block; }

  .why__row { grid-template-columns: 1fr; gap: 12px; }
  .price__grid { grid-template-columns: 1fr; }
  .timeline__track { grid-template-columns: 1fr; gap: 8px; }
  .tstep { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; align-items: start; padding-bottom: 26px; position: relative; }
  .tstep::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: -4px; width: 2px; background: var(--hairline); }
  .tstep:last-child::before { display: none; }
  .tstep h3 { margin-top: 0; grid-column: 2; }
  .tstep .when, .tstep p { grid-column: 2; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; gap: 34px; }
}

/* ============================== REDUCED MOTION ============================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .line-mask > span { transform: none; }
  .mock__scaler iframe { transition: none; }
  .pf__card:hover .mock__scaler iframe { transform: translateY(0); }
}
