/* ==========================================================================
   KANTWERK Trockenbau - Demo-Webseite
   Design-System: Gips-Grau + Graphit + Signalorange, scharfe Kanten (2px)
   Schriften: Archivo (Display breit, Text normal), IBM Plex Mono (Technik)
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f1f1ef;
  --bg-2: #e8e8e5;
  --surface: #fafaf9;
  --surface-2: #ffffff;
  --ink: #15171a;
  --ink-2: #3c4148;
  --muted: #5f656d;
  --line: rgba(21, 23, 26, 0.12);
  --line-strong: rgba(21, 23, 26, 0.24);
  --accent: #ee6a2f;
  --accent-ink: #15171a;
  --accent-text: #b4461a;
  --accent-soft: rgba(238, 106, 47, 0.12);
  --success: #1f7a4d;
  --danger: #b42318;
  --shadow: 0 1px 2px rgba(30, 33, 38, 0.06), 0 12px 32px -12px rgba(30, 33, 38, 0.18);
  --shadow-lg: 0 30px 80px -30px rgba(30, 33, 38, 0.35);
  --overlay: rgba(14, 15, 17, 0.62);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 2px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1360px;
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* z-index scale */
  --z-base: 1;
  --z-sticky: 20;
  --z-header: 50;
  --z-float: 60;
  --z-overlay: 80;
  --z-modal: 90;
  --z-toast: 100;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111315;
    --bg-2: #16191c;
    --surface: #1a1d21;
    --surface-2: #20242a;
    --ink: #ecedea;
    --ink-2: #c4c7cb;
    --muted: #9ba1a8;
    --line: rgba(236, 237, 234, 0.12);
    --line-strong: rgba(236, 237, 234, 0.26);
    --accent: #f07a43;
    --accent-ink: #111315;
    --accent-text: #f4915f;
    --accent-soft: rgba(240, 122, 67, 0.14);
    --success: #4cc38a;
    --danger: #ff7a6b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111315;
  --bg-2: #16191c;
  --surface: #1a1d21;
  --surface-2: #20242a;
  --ink: #ecedea;
  --ink-2: #c4c7cb;
  --muted: #9ba1a8;
  --line: rgba(236, 237, 234, 0.12);
  --line-strong: rgba(236, 237, 234, 0.26);
  --accent: #f07a43;
  --accent-ink: #111315;
  --accent-text: #f4915f;
  --accent-soft: rgba(240, 122, 67, 0.14);
  --success: #4cc38a;
  --danger: #ff7a6b;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 650; font-stretch: 112%; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: var(--z-toast); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

.ic { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--alt { background: var(--bg-2); }
.section--surface { background: var(--surface); }

.h-xl { font-size: clamp(2.5rem, 5.6vw, 5.2rem); }
.h-lg { font-size: clamp(2rem, 4.2vw, 3.6rem); }
.h-md { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.h-sm { font-size: clamp(1.2rem, 1.7vw, 1.45rem); letter-spacing: -0.015em; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--ink-2); max-width: 62ch; line-height: 1.6; }
.body { color: var(--ink-2); max-width: 65ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-feature-settings: "zero" 1; letter-spacing: -0.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.accent-text { color: var(--accent-text); }
em.hl { font-style: normal; color: var(--accent-text); }

.stack-sm > * + * { margin-top: 12px; }
.stack > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 32px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover, var(--accent));
  transform: translateY(101%); transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--btn-hover-fg, var(--accent-ink)); }
.btn:active { transform: scale(0.98); }
.btn .ic { transition: transform 0.45s var(--ease); }
.btn:hover .ic--arrow { transform: translateX(4px); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-hover: var(--ink); --btn-hover-fg: var(--bg); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); --btn-hover: var(--ink); --btn-hover-fg: var(--bg); }
.btn--light { --btn-bg: rgba(255, 255, 255, 0.08); --btn-fg: #f4f4f2; border-color: rgba(255, 255, 255, 0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); --btn-hover: #f4f4f2; --btn-hover-fg: #15171a; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease);
  padding-bottom: 2px;
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow .ic { transition: transform 0.4s var(--ease); }
.link-arrow:hover .ic { transform: translate(3px, -3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  height: var(--header-h);
  transition: transform 0.5s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  color: var(--ink);
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.has-dark-hero .site-header:not(.is-solid) { color: #f4f4f2; }
.site-header:has(.nav__item.is-open) { background: var(--surface); color: var(--ink) !important; border-bottom-color: var(--line); }
.site-header:has(.nav__item.is-open) .icon-btn { border-color: var(--line) !important; }
.menu-open .fab, .menu-open .to-top { opacity: 0; pointer-events: none; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-stretch: 125%; letter-spacing: 0.02em; font-size: 1.12rem; line-height: 1; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo small { display: block; font-family: var(--font-mono); font-weight: 400; font-stretch: 100%; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; margin-top: 4px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 12px; font-size: 0.94rem; font-weight: 500; border-radius: var(--radius); white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__item.is-open > .nav__link::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: inherit; }
.nav__link .ic { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.nav__item.is-open .nav__link .ic { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--radius);
  border: 1px solid var(--line); transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.has-dark-hero .site-header:not(.is-solid) .icon-btn { border-color: rgba(255,255,255,.3); }
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn .ic { width: 20px; height: 20px; }
.theme-toggle .ic--moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ic--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic--moon { display: block; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.86rem; padding: 0 8px; }
.menu-toggle { display: none; }

/* Mega menu */
.nav__item { position: relative; }
.mega {
  position: fixed; left: 0; right: 0; top: var(--header-h);
  background: var(--surface); color: var(--ink);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.35s;
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__inner { display: grid; grid-template-columns: 1.1fr 2fr; gap: 48px; padding-block: 40px; }
.mega__intro p { color: var(--ink-2); margin-top: 12px; max-width: 34ch; }
.mega__intro .btn { margin-top: 24px; }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mega__card { position: relative; display: grid; grid-template-rows: 120px auto; gap: 12px; padding: 8px; border-radius: var(--radius); transition: background-color 0.3s var(--ease); }
.mega__card:hover { background: var(--bg-2); }
.mega__card figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.mega__card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.mega__card:hover img { transform: scale(1.06); }
.mega__card strong { display: block; font-family: var(--font-display); font-stretch: 110%; font-weight: 600; font-size: 1rem; }
.mega__card span { display: block; color: var(--muted); font-size: 0.86rem; line-height: 1.4; margin-top: 2px; }

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: calc(var(--z-header) - 1);
  background: var(--bg); color: var(--ink);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 24px; overflow-y: auto;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s linear 0.7s;
}
.menu-open .mobile-nav { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
.menu-open .site-header { color: var(--ink) !important; background: var(--bg); }
.mobile-nav__list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-stretch: 115%; font-weight: 600; font-size: clamp(1.4rem, 6vw, 2rem); letter-spacing: -0.02em;
}
.mobile-nav__sub { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; padding: 12px 0 4px; }
.mobile-nav__sub a { font-family: var(--font-body); font-size: 1rem; font-weight: 500; padding: 8px 0; border: 0; color: var(--ink-2); }
.mobile-nav__foot { margin-top: auto; display: grid; gap: 12px; }
.mobile-nav__list > li { opacity: 0; transform: translateY(20px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.menu-open .mobile-nav__list > li { opacity: 1; transform: none; }
.menu-open .mobile-nav__list > li:nth-child(1) { transition-delay: 0.15s; }
.menu-open .mobile-nav__list > li:nth-child(2) { transition-delay: 0.2s; }
.menu-open .mobile-nav__list > li:nth-child(3) { transition-delay: 0.25s; }
.menu-open .mobile-nav__list > li:nth-child(4) { transition-delay: 0.3s; }
.menu-open .mobile-nav__list > li:nth-child(5) { transition-delay: 0.35s; }
.menu-open .mobile-nav__list > li:nth-child(6) { transition-delay: 0.4s; }
.menu-open .mobile-nav__list > li:nth-child(7) { transition-delay: 0.45s; }
.menu-open { overflow: hidden; }

@media (max-width: 1440px) { .header-phone { display: none; } }
@media (max-width: 1260px) {
  .nav, .header-phone, .header-cta { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
}
.menu-toggle .ic--x { display: none; }
.menu-open .menu-toggle .ic--x { display: block; }
.menu-open .menu-toggle .ic--list { display: none; }

/* ---------- Home Hero ---------- */
.hero {
  position: relative; min-height: 100dvh; min-height: max(640px, 100dvh);
  display: grid; align-items: end;
  color: #f4f4f2; background: #0f1012; overflow: hidden; isolation: isolate;
}
.hero__stage { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__layer { position: absolute; inset: -3%; will-change: transform; }
.hero__layer img { width: 100%; height: 100%; object-fit: cover; }
.hero__raw img { filter: saturate(0.85) contrast(1.05); }
.hero__slices { position: absolute; inset: -3%; }
.hero__slice { position: absolute; inset: 0; will-change: clip-path; }
.hero__slice img { width: 100%; height: 100%; object-fit: cover; }
.hero__slice::after {
  /* Plattenkante: feiner Schattenschlag an der Stoßfuge */
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px; left: var(--edge, 0);
  background: linear-gradient(rgba(0,0,0,.0), rgba(0,0,0,.25) 20%, rgba(0,0,0,.25) 80%, rgba(0,0,0,0));
  opacity: var(--seam, 1);
}
.hero__laser {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 12%, var(--accent) 88%, transparent);
  box-shadow: 0 0 18px 2px rgba(238, 106, 47, 0.45);
  opacity: 0; will-change: transform, opacity;
}
.hero__laser--v { left: 0; top: 0; bottom: 0; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, transparent, var(--accent) 12%, var(--accent) 88%, transparent); }
.hero__trowel {
  position: absolute; top: 0; bottom: 0; width: 26%; left: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22) 50%, transparent);
  mix-blend-mode: soft-light; opacity: 0; will-change: transform, opacity;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 13, 15, 0.86) 0%, rgba(12, 13, 15, 0.62) 38%, rgba(12, 13, 15, 0.08) 72%),
    linear-gradient(0deg, rgba(12, 13, 15, 0.7) 0%, rgba(12, 13, 15, 0) 42%);
}
.hero__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero__content { position: relative; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(40px, 7vh, 88px); }
.hero__copy { max-width: 860px; }
.hero .eyebrow { color: #f6a27a; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1.02; font-weight: 650; margin-top: 22px; }
.hero__sub { margin-top: 24px; font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: rgba(244, 244, 242, 0.82); max-width: 50ch; }
.hero .btn-row { margin-top: 36px; }
.hero__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(40px, 8vh, 88px); padding-right: 88px; }
.build-steps { display: flex; gap: 6px; align-items: stretch; }
.build-step { min-width: 150px; padding-top: 12px; position: relative; font-size: 0.84rem; color: rgba(244,244,242,.55); transition: color 0.4s var(--ease); }
.build-step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.18); }
.build-step::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
.build-step.is-active, .build-step.is-done { color: #f4f4f2; }
.build-step b { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(244,244,242,.5); }
.replay-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; color: rgba(244,244,242,.7); padding: 8px 0; }
.replay-btn:hover { color: #fff; }
.replay-btn .ic { width: 16px; height: 16px; }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-word > span { display: inline-block; will-change: transform; }

@media (max-width: 760px) {
  .hero__shade { background: linear-gradient(0deg, rgba(12,13,15,.92) 0%, rgba(12,13,15,.7) 45%, rgba(12,13,15,.25) 100%); }
  .build-steps { display: none; }
  .hero__bottom { margin-top: 32px; }
}

/* ---------- Page Hero (Unterseiten) ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 72px)); padding-bottom: clamp(48px, 6vw, 88px); position: relative; overflow: hidden; }
.page-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); margin-top: 18px; }
.page-hero .lead { margin-top: 24px; }
.page-hero .btn-row { margin-top: 32px; }
.page-hero__media { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.page-hero__media img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; }
.page-hero--wide .page-hero__grid { grid-template-columns: 1fr; }
.page-hero--wide .page-hero__media { aspect-ratio: 21 / 8; margin-top: clamp(32px, 4vw, 56px); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .ic { width: 12px; height: 12px; }
.fact-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.fact-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.86rem; background: var(--surface); }
.fact-chip .ic { width: 16px; height: 16px; color: var(--accent-text); }
.fact-chip b { font-family: var(--font-mono); font-weight: 500; }
@media (max-width: 900px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__media { aspect-ratio: 4 / 3; }
  .page-hero--wide .page-hero__media { aspect-ratio: 4 / 3; }
}

/* ---------- Statement + Stats ---------- */
.statement { font-family: var(--font-display); font-stretch: 108%; font-weight: 500; font-size: clamp(1.6rem, 3.3vw, 2.9rem); line-height: 1.18; letter-spacing: -0.02em; max-width: 28ch; text-wrap: balance; }
.statement .w { opacity: 0.18; transition: opacity 0.2s linear; }
.no-js .statement .w, .reduced .statement .w { opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line-strong); }
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__num { font-family: var(--font-display); font-stretch: 118%; font-weight: 600; font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__num sup { font-size: 0.45em; vertical-align: top; position: relative; top: 0.3em; color: var(--accent-text); margin-left: 2px; }
.stat__label { margin-top: 10px; color: var(--muted); font-size: 0.94rem; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
}

/* ---------- Service list with hover preview ---------- */
.svc-head { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.svc-list { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-strong); }
.svc-row {
  position: relative; display: grid; grid-template-columns: 56px 1.2fr 1.4fr auto; gap: 24px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  transition: color 0.3s var(--ease);
}
.svc-row::before { content: ""; position: absolute; inset: 0; background: var(--surface); transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease); z-index: -1; }
.svc-row:hover::before { transform: scaleY(1); }
.svc-row > * { transition: transform 0.5s var(--ease); }
.svc-row:hover > :not(.svc-row__go) { transform: translateX(16px); }
.svc-row:hover > .svc-row__go { transform: translateX(-16px) rotate(-45deg); }
.svc-row__icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--accent-text); transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease); }
.svc-row:hover .svc-row__icon { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.svc-row__icon .ic { width: 24px; height: 24px; }
.svc-row h3 { font-size: clamp(1.4rem, 2.3vw, 2.1rem); }
.svc-row p { color: var(--muted); font-size: 0.98rem; max-width: 46ch; }
.svc-row__go { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform 0.5s var(--ease), background-color 0.4s var(--ease), color 0.4s var(--ease); }
.svc-row:hover .svc-row__go { background: var(--ink); color: var(--bg); }
.svc-row__go .ic { width: 20px; height: 20px; }
.svc-preview {
  position: fixed; left: 0; top: 0; z-index: var(--z-float); pointer-events: none;
  width: 320px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
  opacity: 0; transform: translate(-50%, -50%) scale(0.85); box-shadow: var(--shadow-lg);
}
.svc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s var(--ease); }
.svc-preview img.is-active { opacity: 1; }
@media (max-width: 900px) {
  .svc-row { grid-template-columns: 48px 1fr auto; gap: 16px; }
  .svc-row p { grid-column: 2 / -1; grid-row: 2; }
  .svc-row:hover > :not(.svc-row__go) { transform: none; }
  .svc-preview { display: none; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; background: var(--bg); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 48px; font-family: var(--font-display); font-stretch: 120%; font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: -0.02em; white-space: nowrap; }
.marquee__item::after { content: ""; width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg); }
.marquee__label { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Process scrollytelling ---------- */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.process__media { position: sticky; top: calc(var(--header-h) + 32px); height: calc(100dvh - var(--header-h) - 64px); max-height: 760px; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.process__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 0.8s var(--ease), transform 1.4s var(--ease); }
.process__media img.is-active { opacity: 1; transform: scale(1); }
.process__counter { position: absolute; left: 20px; bottom: 20px; display: flex; gap: 6px; }
.process__counter span { width: 28px; height: 3px; background: rgba(255,255,255,.4); transition: background-color 0.4s var(--ease); }
.process__counter span.is-active { background: var(--accent); }
.process__steps > header { padding-bottom: 32px; }
.process-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding-block: 32px; opacity: 0.32; transition: opacity 0.6s var(--ease); }
.process-step.is-active { opacity: 1; }
.process-step__icon { width: 56px; height: 56px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); border-radius: var(--radius); margin-bottom: 24px; }
.process-step__icon .ic { width: 28px; height: 28px; }
.process-step h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.process-step p { margin-top: 16px; color: var(--ink-2); max-width: 46ch; }
.process-step ul { margin-top: 20px; display: grid; gap: 8px; }
.process-step li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 0.96rem; }
.process-step li .ic { width: 18px; height: 18px; margin-top: 4px; color: var(--accent-text); }
.process-step__img { display: none; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; }
  .process__media { display: none; }
  .process-step { min-height: 0; opacity: 1; padding-block: 28px; border-top: 1px solid var(--line); }
  .process-step__img { display: block; aspect-ratio: 16/10; object-fit: cover; width: 100%; border-radius: var(--radius); margin-bottom: 20px; }
}

/* ---------- Before / After ---------- */
.ba { position: relative; aspect-ratio: 16 / 8; overflow: hidden; border-radius: var(--radius); user-select: none; touch-action: pan-y; background: #222; --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff;
  cursor: ew-resize;
}
.ba__knob {
  position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; color: #15171a; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform 0.3s var(--ease);
}
.ba:hover .ba__knob { transform: translate(-50%, -50%) scale(1.08); }
.ba__knob .ic { width: 26px; height: 26px; }
.ba__tag { position: absolute; top: 20px; padding: 6px 12px; background: rgba(15, 16, 18, 0.72); color: #f4f4f2; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; border-radius: var(--radius); backdrop-filter: blur(6px); }
.ba__tag--l { left: 20px; }
.ba__tag--r { right: 20px; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-caption { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 20px; color: var(--muted); font-size: 0.94rem; }
@media (max-width: 760px) { .ba { aspect-ratio: 4 / 3.2; } .ba__knob { width: 52px; height: 52px; } }

/* ---------- Horizontal references ---------- */
.hpan { overflow: hidden; display: flex; align-items: center; min-height: 100dvh; padding-block: calc(var(--header-h) + 24px) 48px; }
.hpan__track { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); padding-inline: var(--gutter); width: max-content; will-change: transform; }
.hpan__track > * { flex: none; }
.hpan__intro { width: clamp(300px, 30vw, 440px); padding-right: 2vw; }
.ref-card { --h: min(56vh, 520px); width: calc(var(--h) * 0.8); display: block; }
.ref-card:nth-child(odd) { transform: translateY(4vh); }
.ref-card:nth-child(3n) { width: var(--h); }
.ref-card figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); height: var(--h); background: var(--bg-2); }
.ref-card img { width: 112%; max-width: none; margin-left: -6%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.ref-card:hover img { scale: 1.06; }
.ref-card__meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; align-items: baseline; }
.ref-card h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); }
.ref-card__loc { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.ref-card__tags { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); text-align: right; white-space: nowrap; }
.hpan__end { width: clamp(280px, 26vw, 380px); display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 32px; border: 1px solid var(--line-strong); border-radius: var(--radius); align-self: stretch; }
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .hpan { display: block; min-height: 0; padding-block: clamp(72px, 10vw, 120px); }
  .hpan__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; align-items: stretch; scroll-padding-inline: var(--gutter); }
  .hpan__track::-webkit-scrollbar { display: none; }
  .hpan__track > * { scroll-snap-align: start; }
  .hpan__intro { width: min(85vw, 440px); }
  .ref-card, .ref-card:nth-child(3n) { width: 78vw; max-width: 420px; transform: none !important; }
  .ref-card figure { height: auto; aspect-ratio: 4 / 5; }
  .ref-card img { width: 100%; margin-left: 0; }
  .hpan__end { width: 78vw; max-width: 420px; }
}

/* Deckenplaner */
.ceil-viz { height: 230px; display: flex; align-items: flex-end; justify-content: center; padding: 16px 16px 0; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.ceil-viz__room { position: relative; width: 72%; height: calc(var(--rh, 0.66) * 100%); border: 2px solid var(--ink); border-bottom: 0; }
.ceil-viz__void { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--cv, 0.05) * 100%); background: repeating-linear-gradient(45deg, var(--line-strong) 0 1px, transparent 1px 7px); }
.ceil-viz__ceiling { position: absolute; left: 0; right: 0; top: calc(var(--cv, 0.05) * 100%); height: 3px; background: var(--accent); }
.ceil-viz__label { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); font-family: var(--font-mono); font-size: 0.9rem; color: var(--ink-2); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(220px, auto); gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.bento__cell { position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(24px, 2.6vw, 36px); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; isolation: isolate; }
.bento__cell h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); }
.bento__cell p { color: var(--ink-2); font-size: 0.96rem; max-width: 40ch; }
.bento__cell--img { color: #f4f4f2; border: 0; }
.bento__cell--img p { color: rgba(244,244,242,.82); }
.bento__cell--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.bento__cell--img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12,13,15,.85), rgba(12,13,15,.1) 70%); }
.bento__cell--img:hover img { transform: scale(1.05); }
.bento__cell--accent { background: var(--accent); color: var(--accent-ink); border: 0; }
.bento__cell--accent p { color: color-mix(in srgb, var(--accent-ink) 80%, transparent); }
.bento__cell--ink { background: #15171a; color: #f1f1ef; border: 1px solid rgba(255,255,255,.08); }
.bento__cell--ink p { color: rgba(241, 241, 239, 0.75); }
.bento__cell--grid { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 31.25px 31.25px; background-position: -1px -1px; }
.bento__big { font-family: var(--font-display); font-stretch: 120%; font-weight: 650; font-size: clamp(3rem, 6vw, 5.6rem); line-height: 0.9; letter-spacing: -0.04em; }
.bento__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-text); margin-bottom: auto; }
.bento__cell--accent .bento__icon, .bento__cell--ink .bento__icon { background: rgba(255,255,255,.14); color: inherit; }
.bento__icon .ic { width: 24px; height: 24px; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .row-2 { grid-row: span 2; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .span-2, .span-3, .span-4 { grid-column: span 2; }
  .bento .half-m { grid-column: span 1; }
  .row-2 { grid-row: span 1; min-height: 360px; }
}
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento .half-m, .span-2, .span-3, .span-4 { grid-column: span 1; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.quotes__rating { display: flex; flex-direction: column; gap: 12px; }
.stars { display: flex; gap: 2px; color: var(--accent); }
.stars .ic { width: 20px; height: 20px; }
.quote-slider { position: relative; min-height: 290px; }
.quote { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s; }
.quote.is-active { opacity: 1; visibility: visible; transition-delay: 0s; position: relative; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-stretch: 105%; font-weight: 500; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.3; letter-spacing: -0.015em; }
.quote .ic--quote { width: 40px; height: 40px; color: var(--accent); margin-bottom: 24px; }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.quote figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote figcaption .initials { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-family: var(--font-display); font-weight: 650; font-stretch: 115%; }
.quote figcaption strong { display: block; }
.quote figcaption span { color: var(--muted); font-size: 0.92rem; }
.quote .line-reveal > span { display: inline-block; }
.slider-nav { display: flex; align-items: center; gap: 12px; margin-top: 36px; }
.slider-nav .icon-btn { border-color: var(--line-strong); }
.slider-progress { flex: 1; max-width: 220px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.slider-progress span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.slider-count { font-family: var(--font-mono); font-size: 0.84rem; color: var(--muted); min-width: 48px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } .quote-slider { min-height: 340px; } }

/* ---------- Accordion ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid > header { position: sticky; top: calc(var(--header-h) + 32px); }
.accordion { border-top: 1px solid var(--line-strong); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; font-family: var(--font-display); font-stretch: 105%; font-weight: 600; font-size: clamp(1.05rem, 1.4vw, 1.25rem); letter-spacing: -0.01em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--accent-text); }
.acc__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform 0.45s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease); }
.acc__icon .ic { width: 16px; height: 16px; }
.acc[open] .acc__icon { transform: rotate(45deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.acc__body { overflow: hidden; }
.acc__body > div { padding: 0 56px 28px 0; color: var(--ink-2); }
.acc__body p + p { margin-top: 12px; }
.acc.is-hidden { display: none; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid > header { position: static; } .acc__body > div { padding-right: 0; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; color: #f4f4f2; background: #121417; isolation: isolate; }
.cta-band__bg { position: absolute; inset: -10% 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,15,17,.92), rgba(14,15,17,.55)); }
.cta-band__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.cta-band p { color: rgba(244,244,242,.8); margin-top: 20px; max-width: 48ch; }
.cta-contact { display: grid; gap: 4px; }
.cta-contact a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-family: var(--font-display); font-stretch: 110%; font-weight: 600; font-size: clamp(1.1rem, 1.8vw, 1.5rem); transition: color 0.3s var(--ease); }
.cta-contact a > span { transition: transform 0.4s var(--ease); }
.cta-contact a:hover { color: var(--accent); }
.cta-contact a:hover > span { transform: translateX(8px); }
.cta-contact small { display: block; font-family: var(--font-mono); font-weight: 400; font-stretch: 100%; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(244,244,242,.55); margin-bottom: 2px; }
@media (max-width: 900px) { .cta-band__grid { grid-template-columns: 1fr; } }

/* ---------- Generic grids / cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 64px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--wide-media { grid-template-columns: 1.2fr 1fr; }
.split__media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3.6; background: var(--bg-2); }
.split__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
@media (max-width: 900px) { .split, .split--wide-media { grid-template-columns: 1fr; } .split--rev .split__media { order: -1; } }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-strong); }
.benefit { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line); }
.benefit:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.benefit .ic { width: 28px; height: 28px; color: var(--accent-text); }
.benefit h3 { font-size: 1.2rem; font-stretch: 108%; margin-top: 20px; }
.benefit p { color: var(--ink-2); margin-top: 10px; font-size: 0.96rem; }
@media (max-width: 900px) {
  .benefits { grid-template-columns: 1fr 1fr; }
  .benefit, .benefit:not(:nth-child(3n+1)) { padding: 28px 20px 28px 0; border-left: 0; }
  .benefit:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } .benefit:nth-child(even) { padding-left: 0; border-left: 0; } }

.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.check-list .ic { width: 20px; height: 20px; color: var(--accent-text); margin-top: 3px; }

/* ---------- Tabs (Systeme) ---------- */
.tabs { margin-top: clamp(40px, 5vw, 64px); }
.tabs__list { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line-strong); scrollbar-width: none; position: relative; }
.tabs__list::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 16px 20px; font-weight: 600; white-space: nowrap; color: var(--muted); transition: color 0.3s var(--ease); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform 0.45s var(--ease); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab:hover { color: var(--ink); }
.tabpanel { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 80px); padding-top: 40px; }
.tabpanel[hidden] { display: none; }
.tabpanel h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.tabpanel p { color: var(--ink-2); margin-top: 16px; max-width: 58ch; }
.tabpanel .check-list { margin-top: 24px; }
.spec-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.spec-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.spec-card span { display: block; font-size: 0.82rem; color: var(--muted); }
.spec-card strong { display: block; margin-top: 6px; font-family: var(--font-mono); font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; }
.spec-card--wide { grid-column: 1 / -1; }
.tabpanel.is-entering > * { animation: panel-in 0.6s var(--ease) both; }
.tabpanel.is-entering > *:nth-child(2) { animation-delay: 0.08s; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 900px) { .tabpanel { grid-template-columns: 1fr; } }

/* ---------- Tool panels (interaktive Rechner) ---------- */
.tool { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); margin-top: clamp(40px, 5vw, 64px); }
.tool__controls { padding: clamp(24px, 3vw, 44px); display: grid; gap: 28px; align-content: start; }
.tool__output { padding: clamp(24px, 3vw, 44px); background: var(--bg-2); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; position: relative; }
.tool__note { font-size: 0.84rem; color: var(--muted); margin-top: auto; }
@media (max-width: 900px) { .tool { grid-template-columns: 1fr; } .tool__output { border-left: 0; border-top: 1px solid var(--line); } }

.field-label { display: block; font-weight: 600; font-size: 0.94rem; margin-bottom: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; font-size: 0.92rem; transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease); user-select: none; }
.seg label:hover { border-color: var(--ink); }
.seg input:checked + label { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

.range { width: 100%; }
.range-wrap { display: grid; gap: 10px; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; }
.range-head output { font-family: var(--font-mono); font-size: 1.1rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--line-strong) var(--fill, 50%)); border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 3px; background: var(--line-strong); }
input[type="range"]::-moz-range-progress { height: 3px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9.5px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--ink); transition: transform 0.2s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }

.result-big { font-family: var(--font-display); font-stretch: 118%; font-weight: 650; font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.result-big small { font-size: 0.4em; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.result-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.result-row .spec-card { background: var(--surface); }
@media (max-width: 560px) { .result-row { grid-template-columns: 1fr 1fr; } }

/* Wall configurator section drawing */
.wall-viz { width: 100%; height: 220px; border: 1px dashed var(--line-strong); border-radius: var(--radius); display: grid; place-items: center; background: var(--surface); }
.wall-viz svg { width: 100%; height: 100%; }
.wall-viz .board { fill: var(--surface-2); stroke: var(--ink); stroke-width: 1; transition: all 0.5s var(--ease); }
.wall-viz .board--f { fill: #f2b8b5; }
:root[data-theme="dark"] .wall-viz .board--f { fill: #6b3a39; }
.wall-viz .stud { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.wall-viz .wool { fill: url(#wool); }
.wall-viz .dim { stroke: var(--accent); stroke-width: 1; }
.wall-viz text { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-2); }

/* Acoustic visualizer */
.acoustic-canvas { width: 100%; height: 240px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.86rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 3px; display: inline-block; }

/* Fire timeline */
.fire-scale { position: relative; height: 72px; margin-top: 8px; }
.fire-scale__bar { position: absolute; left: 0; right: 0; top: 30px; height: 10px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.fire-scale__fill { position: absolute; inset: 0; background: linear-gradient(90deg, #f3c34b, var(--accent) 60%, #c2361b); transform-origin: left; transform: scaleX(var(--f, 0.33)); transition: transform 0.4s var(--ease); }
.fire-scale__mark { position: absolute; top: 0; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); text-align: center; }
.fire-scale__mark::after { content: ""; display: block; width: 1px; height: 46px; margin: 4px auto 0; background: var(--line-strong); }
.fire-scale__mark.is-reached { color: var(--ink); font-weight: 600; }

/* Q-Stufen surface */
.q-surface { position: relative; height: 280px; border-radius: var(--radius); overflow: hidden; background: #e9e7e3; }
:root[data-theme="dark"] .q-surface { background: #2a2c2f; }
.q-surface svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.q-surface__light { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 45%, rgba(0,0,0,.12) 100%); mix-blend-mode: soft-light; pointer-events: none; }
.q-surface__seam { position: absolute; top: 0; bottom: 0; width: 60px; transform: translateX(-50%); transition: opacity 0.6s var(--ease); background: linear-gradient(90deg, transparent, rgba(0,0,0,.08) 30%, rgba(255,255,255,.35) 50%, rgba(0,0,0,.08) 70%, transparent); }
.q-surface__label { position: absolute; left: 16px; bottom: 16px; padding: 6px 10px; background: rgba(15,16,18,.72); color: #f4f4f2; font-family: var(--font-mono); font-size: 0.78rem; border-radius: var(--radius); }

/* ---------- Image gallery strip ---------- */
.gallery-3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.gallery-3 figure { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 4; position: relative; }
.gallery-3 figure:first-child { aspect-ratio: auto; }
.gallery-3 img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery-3 figure:hover img { transform: scale(1.05); }
.gallery-3 figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; color: #f4f4f2; font-size: 0.9rem; background: linear-gradient(0deg, rgba(12,13,15,.75), transparent); }
@media (max-width: 760px) { .gallery-3 { grid-template-columns: 1fr 1fr; } .gallery-3 figure:first-child { grid-column: 1 / -1; aspect-ratio: 16/10; } }

/* ---------- Timeline (process horizontal) ---------- */
.steps-h { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: clamp(40px, 5vw, 64px); counter-reset: s; }
.step-h { position: relative; padding: 32px 24px 0 0; }
.step-h::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line-strong); }
.step-h::after { content: ""; position: absolute; top: -5px; left: 0; width: 12px; height: 12px; background: var(--accent); transform: rotate(45deg); }
.step-h .ic { width: 26px; height: 26px; color: var(--accent-text); }
.step-h h3 { font-size: 1.1rem; font-stretch: 108%; margin-top: 16px; }
.step-h p { color: var(--ink-2); font-size: 0.93rem; margin-top: 8px; }
@media (max-width: 1000px) { .steps-h { grid-template-columns: 1fr; } .step-h { padding: 0 0 28px 32px; } .step-h::before { top: 0; bottom: 0; left: 5px; right: auto; width: 2px; height: auto; } .step-h::after { top: 2px; left: 0; } }

/* ---------- Related services ---------- */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.rel-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; padding: 24px; overflow: hidden; border-radius: var(--radius); color: #f4f4f2; isolation: isolate; }
.rel-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.rel-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12,13,15,.85), rgba(12,13,15,.05) 70%); }
.rel-card:hover img { transform: scale(1.06); }
.rel-card h3 { font-size: 1.3rem; }
.rel-card span { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 0.9rem; color: rgba(244,244,242,.8); }
@media (max-width: 900px) { .related { grid-template-columns: 1fr; } .rel-card { min-height: 220px; } }

/* ---------- Leistungen overview ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.svc-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; padding: clamp(24px, 2.5vw, 36px); overflow: hidden; border-radius: var(--radius); color: #f4f4f2; isolation: isolate; }
.svc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.svc-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12,13,15,.9) 0%, rgba(12,13,15,.35) 55%, rgba(12,13,15,.05) 100%); }
.svc-card:hover img { transform: scale(1.06); }
.svc-card h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.svc-card p { color: rgba(244,244,242,.82); margin-top: 10px; max-width: 44ch; font-size: 0.98rem; }
.svc-card .link-arrow { margin-top: 18px; }
.svc-card__icon { position: absolute; top: 24px; left: 24px; width: 48px; height: 48px; border-radius: var(--radius); display: grid; place-items: center; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.svc-card__icon .ic { width: 24px; height: 24px; }
.c-7 { grid-column: span 7; } .c-5 { grid-column: span 5; } .c-4 { grid-column: span 4; } .c-6 { grid-column: span 6; } .c-8 { grid-column: span 8; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } .c-7, .c-5, .c-4, .c-6, .c-8 { grid-column: auto; } .svc-card { min-height: 360px; } }

.extra-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.extra { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 0.3s var(--ease), transform 0.5s var(--ease); }
.extra:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.extra .ic { width: 28px; height: 28px; color: var(--accent-text); }
.extra h3 { font-size: 1.15rem; font-stretch: 108%; margin-top: 18px; }
.extra p { color: var(--ink-2); font-size: 0.95rem; margin-top: 8px; }
@media (max-width: 900px) { .extra-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .extra-list { grid-template-columns: 1fr; } }

/* ---------- Referenzen: Filter + Masonry ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 0.92rem; font-weight: 500; transition: all 0.3s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip sup { font-family: var(--font-mono); font-size: 0.7rem; opacity: 0.6; }
.masonry { columns: 3 320px; column-gap: 16px; margin-top: 40px; }
.project { break-inside: avoid; margin-bottom: 16px; display: block; width: 100%; text-align: left; transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.project.is-hidden { display: none; }
.project figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.project img { width: 100%; height: auto; transition: transform 1.2s var(--ease), filter 0.6s var(--ease); }
.project:hover img { transform: scale(1.05); }
.project__zoom { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); color: #15171a; display: grid; place-items: center; opacity: 0; transform: scale(0.7); transition: all 0.4s var(--ease); }
.project:hover .project__zoom, .project:focus-visible .project__zoom { opacity: 1; transform: none; }
.project__meta { padding: 14px 2px 8px; }
.project__meta h3 { font-size: 1.2rem; font-stretch: 108%; }
.project__meta p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.empty-state { display: none; padding: 64px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); margin-top: 40px; color: var(--muted); }
.empty-state.is-visible { display: block; }

/* ---------- Lightbox / Modal ---------- */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s; }
.modal.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 11, 12, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal__panel { position: relative; width: min(1200px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); transform: translateY(24px) scale(0.98); transition: transform 0.5s var(--ease); overscroll-behavior: contain; }
.modal.is-open .modal__panel { transform: none; }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--surface); }
.lightbox__grid { display: grid; grid-template-columns: 1.6fr 1fr; }
.lightbox__img { background: #111; min-height: 300px; position: relative; }
.lightbox__img img { width: 100%; height: 100%; object-fit: cover; max-height: 80dvh; }
.lightbox__info { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.lightbox__info dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 8px 0 0; font-size: 0.94rem; }
.lightbox__info dt { color: var(--muted); }
.lightbox__info dd { margin: 0; font-weight: 500; }
.lightbox__nav { display: flex; gap: 8px; margin-top: auto; }
.article-modal .modal__panel { width: min(820px, 100%); }
.article { padding: clamp(24px, 4vw, 56px); }
.article h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-top: 16px; }
.article h3 { font-size: 1.2rem; margin-top: 28px; }
.article p, .article li { color: var(--ink-2); margin-top: 14px; }
.article ul { list-style: disc; padding-left: 20px; }
.article__img { aspect-ratio: 16/8; overflow: hidden; }
.article__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .lightbox__grid { grid-template-columns: 1fr; } .lightbox__img img { max-height: 50dvh; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.member figure { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--bg-2); }
.member img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.6s var(--ease), transform 1s var(--ease); }
.member:hover img { filter: none; transform: scale(1.04); }
.member h3 { font-size: 1.08rem; font-stretch: 106%; margin-top: 14px; }
.member p { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .team { grid-template-columns: 1fr 1fr; } }

/* ---------- Timeline (Über uns) ---------- */
.timeline { position: relative; margin-top: clamp(40px, 5vw, 64px); }
.timeline::before { content: ""; position: absolute; left: 120px; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.timeline__progress { position: absolute; left: 120px; top: 0; width: 2px; margin-left: -0.5px; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 40px; padding-bottom: 48px; position: relative; }
.tl-item__year { font-family: var(--font-mono); font-size: 1rem; color: var(--muted); padding-top: 2px; }
.tl-item__body { position: relative; padding-left: 40px; }
.tl-item__body::before { content: ""; position: absolute; left: -46px; top: 8px; width: 11px; height: 11px; background: var(--bg); border: 2px solid var(--accent); transform: rotate(45deg); }
.tl-item h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.tl-item p { color: var(--ink-2); margin-top: 8px; max-width: 60ch; }
@media (max-width: 700px) {
  .timeline::before, .timeline__progress { left: 6px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; padding-left: 32px; }
  .tl-item__body { padding-left: 0; }
  .tl-item__body::before { left: -32px; top: -24px; }
}

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.value { padding: 32px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-height: 260px; display: flex; flex-direction: column; }
.value .mono { color: var(--accent-text); }
.value .mono .ic { width: 30px; height: 30px; }
.value h3 { font-size: 1.3rem; margin-top: auto; padding-top: 32px; }
.value p { color: var(--ink-2); margin-top: 10px; font-size: 0.95rem; }
@media (max-width: 1000px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 600; font-size: 0.92rem; }
.field .req { color: var(--accent-text); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field__error { display: none; color: var(--danger); font-size: 0.86rem; }
.field.has-error .field__error { display: flex; align-items: center; gap: 6px; }
.field__hint { color: var(--muted); font-size: 0.84rem; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.dropzone { position: relative; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 28px; text-align: center; background: var(--surface-2); transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease); cursor: pointer; }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .ic { width: 28px; height: 28px; margin: 0 auto 8px; color: var(--accent-text); }
.dropzone p { font-size: 0.92rem; color: var(--ink-2); }
.file-list { display: grid; gap: 6px; margin-top: 10px; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; background: var(--bg-2); border-radius: var(--radius); font-size: 0.88rem; }
.file-list button { color: var(--muted); }
.file-list button:hover { color: var(--danger); }
.form-success { display: none; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.form-success.is-visible { display: block; animation: panel-in 0.7s var(--ease) both; }
.form-success .ic { width: 48px; height: 48px; color: var(--success); }
.form-success h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 20px; }
.form-success p { color: var(--ink-2); margin-top: 12px; max-width: 54ch; }
.form.is-sent { display: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 12px; }
.info-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.info-card h3 { font-size: 1.15rem; font-stretch: 106%; }
.info-card a, .info-card p { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; color: var(--ink-2); }
.info-card a:hover { color: var(--ink); }
.info-card .ic { width: 20px; height: 20px; margin-top: 3px; color: var(--accent-text); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin-top: 14px; font-size: 0.94rem; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-family: var(--font-mono); font-size: 0.88rem; }
.hours .is-today { color: var(--ink); font-weight: 600; }
.open-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.88rem; font-weight: 600; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.open-status.is-open { color: var(--success); }
.open-status.is-open::before { background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 20%, transparent); animation: pulse 2s ease-in-out infinite; }
.open-status.is-closed { color: var(--muted); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--success) 0%, transparent); } }
@media (max-width: 1000px) { .contact-layout { grid-template-columns: 1fr; } .contact-aside { position: static; } }

.map-consent { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.map-consent img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) blur(2px); opacity: 0.5; }
.map-consent__box { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; }
.map-consent__box > div { max-width: 420px; display: grid; gap: 14px; justify-items: center; background: var(--surface); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.map-consent__box p { font-size: 0.9rem; color: var(--ink-2); }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Kostenrechner (Wizard) ---------- */
.calc { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.calc__main { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.calc__progress { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.calc__progress button { padding: 18px 16px; text-align: left; font-size: 0.86rem; color: var(--muted); position: relative; }
.calc__progress button b { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.calc__progress button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.calc__progress button.is-done, .calc__progress button.is-active { color: var(--ink); }
.calc__progress button.is-done::after, .calc__progress button.is-active::after { transform: scaleX(1); }
.calc__progress button:disabled { cursor: not-allowed; }
.calc__step { padding: clamp(24px, 3vw, 44px); display: none; }
.calc__step.is-active { display: block; animation: panel-in 0.55s var(--ease) both; }
.calc__step h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.calc__step > p { color: var(--ink-2); margin-top: 10px; }
.calc__nav { display: flex; justify-content: space-between; gap: 12px; padding: 20px clamp(24px, 3vw, 44px); border-top: 1px solid var(--line); background: var(--bg-2); }
.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 20px; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.3s var(--ease); position: relative; }
.opt label:hover { border-color: var(--ink); }
.opt input:checked + label { border-color: var(--ink); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--ink); }
.opt input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt label .ic { width: 28px; height: 28px; color: var(--accent-text); }
.opt label strong { font-size: 1rem; }
.opt label span { color: var(--muted); font-size: 0.86rem; line-height: 1.4; }
.opt label::after { content: ""; position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong); }
.opt input:checked + label::after { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); }
.opt input[type="checkbox"] + label::after { border-radius: 2px; }
.calc__summary { --bg: #f1f1ef; --ink: #15171a; position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--radius); background: #15171a; color: #f1f1ef; border: 1px solid rgba(255,255,255,.08); padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; }
.calc__summary .result-big small { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.calc__summary dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 0; font-size: 0.92rem; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--bg) 20%, transparent); }
.calc__summary dt { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.calc__summary dd { margin: 0; text-align: right; font-family: var(--font-mono); font-size: 0.86rem; }
.calc__summary .note { font-size: 0.82rem; color: color-mix(in srgb, var(--bg) 60%, transparent); }
.calc__summary .btn--primary { --btn-hover: var(--bg); --btn-hover-fg: var(--ink); }
@media (max-width: 1000px) { .calc { grid-template-columns: 1fr; } .calc__summary { position: static; } .opt-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .opt-grid { grid-template-columns: 1fr; } .calc__progress button { padding: 14px 10px; font-size: 0; } .calc__progress button b { font-size: 0.7rem; } }

/* ---------- Karriere ---------- */
.jobs { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-strong); }
.job summary { list-style: none; display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; padding: 28px 0; cursor: pointer; border-bottom: 1px solid var(--line); }
.job summary::-webkit-details-marker { display: none; }
.job summary h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.job__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.8rem; font-family: var(--font-mono); color: var(--ink-2); }
.tag--accent { border-color: transparent; background: var(--accent-soft); color: var(--accent-text); }
.job__body > div { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 28px 0 40px; border-bottom: 1px solid var(--line); }
.job__body h4 { font-family: var(--font-display); font-size: 1rem; font-stretch: 106%; margin-bottom: 14px; }
@media (max-width: 760px) { .job summary { grid-template-columns: 1fr auto; } .job__tags { grid-column: 1 / -1; grid-row: 2; } .job__body > div { grid-template-columns: 1fr; } }

/* ---------- Ratgeber ---------- */
.boards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.board-card { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 12px; min-height: 280px; overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.board-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.board-card__swatch { height: 64px; border-radius: var(--radius); position: relative; overflow: hidden; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.board-card__swatch::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(0,0,0,.05) 22px 23px); }
.board-card h3 { font-size: 1.15rem; font-stretch: 106%; }
.board-card .mono { font-size: 0.8rem; color: var(--accent-text); }
.board-card p { color: var(--ink-2); font-size: 0.93rem; }
@media (max-width: 1000px) { .boards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .boards { grid-template-columns: 1fr; } }
.q-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 2px solid var(--ink); }
.q-level { padding: 28px 24px 28px 0; }
.q-level + .q-level { padding-left: 24px; border-left: 1px solid var(--line); }
.q-level .mono { font-size: 2.4rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.q-level h3 { font-size: 1.05rem; margin-top: 16px; font-stretch: 106%; }
.q-level p { color: var(--ink-2); font-size: 0.93rem; margin-top: 8px; }
@media (max-width: 900px) { .q-levels { grid-template-columns: 1fr 1fr; } .q-level:nth-child(3) { padding-left: 0; border-left: 0; } }
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 16px; margin-top: clamp(40px, 5vw, 64px); }
.article-card { text-align: left; display: flex; flex-direction: column; gap: 14px; }
.article-card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); }
.article-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.article-card:hover img { transform: scale(1.05); }
.article-card .mono { font-size: 0.78rem; color: var(--muted); }
.article-card h3 { font-size: 1.25rem; font-stretch: 106%; }
.article-card:hover h3 { color: var(--accent-text); }
.article-card p { color: var(--ink-2); font-size: 0.94rem; }
@media (max-width: 900px) { .articles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .articles { grid-template-columns: 1fr; } }
.search { position: relative; max-width: 520px; }
.search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.search .input { padding-left: 48px; }

/* ---------- Footer ---------- */
.site-footer { background: #0f1113; color: #d9dbdd; padding-top: clamp(64px, 8vw, 112px); position: relative; overflow: hidden; }
:root[data-theme="dark"] .site-footer { background: #0b0c0e; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; padding-bottom: 64px; }
.footer-top h4 { font-family: var(--font-mono); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8c9297; margin-bottom: 18px; }
.footer-top ul { display: grid; gap: 10px; }
.footer-top a { color: #d9dbdd; transition: color 0.25s var(--ease); }
.footer-top a:hover { color: var(--accent); }
.footer-brand p { margin-top: 18px; color: #9aa0a6; max-width: 36ch; font-size: 0.95rem; }
.footer-brand .logo { color: #f4f4f2; }
.footer-contact { display: grid; gap: 8px; margin-top: 24px; font-size: 0.95rem; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .ic { width: 18px; height: 18px; color: var(--accent); }
.footer-word { font-family: var(--font-display); font-weight: 800; font-stretch: 125%; font-size: min(12.4vw, 13rem); line-height: 0.8; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); white-space: nowrap; user-select: none; margin-bottom: -0.08em; text-align: center; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 0.86rem; color: #8c9297; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #f4f4f2; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Demo info bar ---------- */
.demo-bar { background: var(--accent); color: #15171a; }
.demo-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 18px; }
.demo-bar p { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; line-height: 1.5; max-width: 90ch; }
.demo-bar p .ic { width: 22px; height: 22px; margin-top: 1px; }
.demo-bar strong { font-weight: 700; }
.demo-bar .btn { --btn-bg: #15171a; --btn-fg: #f4f4f2; --btn-hover: #f4f4f2; --btn-hover-fg: #15171a; }

/* ---------- Floating actions ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: var(--z-float); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab__main { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(238,106,47,.55); transition: transform 0.4s var(--ease); }
.fab__main:hover { transform: scale(1.06); }
.fab__main .ic { width: 26px; height: 26px; transition: transform 0.4s var(--ease), opacity 0.3s; }
.fab__main .ic--x { position: absolute; opacity: 0; transform: rotate(-90deg); }
.fab.is-open .fab__main .ic--x { opacity: 1; transform: none; }
.fab.is-open .fab__main .ic--chat { opacity: 0; transform: rotate(90deg); }
.fab__menu { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fab__item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); font-size: 0.92rem; font-weight: 500; opacity: 0; transform: translateY(12px) scale(0.9); pointer-events: none; transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); }
.fab__item .ic { width: 20px; height: 20px; color: var(--accent-text); }
.fab.is-open .fab__item { opacity: 1; transform: none; pointer-events: auto; }
.fab.is-open .fab__item:nth-child(3) { transition-delay: 0s; }
.fab.is-open .fab__item:nth-child(2) { transition-delay: 0.05s; }
.fab.is-open .fab__item:nth-child(1) { transition-delay: 0.1s; }
.to-top { position: fixed; left: 20px; bottom: 20px; z-index: var(--z-float); width: 52px; height: 52px; border-radius: 50%; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg.ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 157; stroke-dashoffset: calc(157 - 157 * var(--p, 0)); }
.to-top .ic { width: 20px; height: 20px; }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: var(--z-toast); width: min(440px, calc(100% - 40px)); padding: 24px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); transform: translateY(calc(100% + 40px)); transition: transform 0.7s var(--ease); }
.cookie.is-visible { transform: none; }
.cookie h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; font-stretch: 106%; }
.cookie h3 .ic { color: var(--accent-text); }
.cookie p { margin-top: 10px; font-size: 0.9rem; color: var(--ink-2); }
.cookie__opts { display: grid; gap: 8px; margin-top: 14px; }
.cookie__opts[hidden] { display: none; }
.cookie .btn-row { margin-top: 18px; }
.cookie .btn-row { display: grid; grid-template-columns: 1fr 1fr; }
.cookie .btn { min-height: 44px; padding: 0 12px; font-size: 0.9rem; }
.cookie [data-cc-all] { grid-column: 1 / -1; order: -1; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; top: calc(var(--header-h) + 16px); z-index: var(--z-toast); transform: translate(-50%, -20px); opacity: 0; padding: 14px 20px; background: var(--ink); color: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 0.92rem; pointer-events: none; transition: all 0.5s var(--ease); display: flex; gap: 10px; align-items: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal (nur mit JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal="fade"] { transform: none; }
.js [data-clip] { clip-path: inset(100% 0 0 0); }
.js [data-split] { opacity: 0; }
.js.reduced [data-reveal], .js.reduced [data-split] { opacity: 1; transform: none; }
.js.reduced [data-clip] { clip-path: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 100dvh; display: grid; place-items: center; text-align: left; padding-top: var(--header-h); }
.notfound__code { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(6rem, 22vw, 16rem); line-height: 0.85; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 2px var(--ink); }

/* ---------- View Transitions (MPA) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-solid { background: var(--bg); backdrop-filter: none; }
}
@media print {
  .site-header, .fab, .to-top, .cookie, .demo-bar { display: none !important; }
}
