/* =============================================================
   Schaffwerk — Website Styles
   Klar, modern, viel Weißraum. Light + Dark Mode.
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f4;
  --bg-elev: #ffffff;
  --surface-muted: #f0efeb;
  --text: #0e1114;
  --text-soft: #3b4047;
  --muted: #6b7079;
  --border: #e6e5e0;
  --border-strong: #d3d2cc;
  --accent: #ff4f49;        /* Schaffwerk Brand Red */
  --accent-ink: #ffffff;
  --accent-soft: rgba(255, 79, 73, 0.10);
  --shadow-sm: 0 1px 2px rgba(14, 17, 20, 0.04);
  --shadow-md: 0 6px 20px rgba(14, 17, 20, 0.06);
  --radius: 4px;
  --radius-sm: 3px;
  --radius-lg: 6px;
  --container-max: 1280px;
  --gap: 28px;
  --section-y: clamp(72px, 11vw, 144px);
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-body);
  /* Statement-Sektionen — im Light Mode warmer Stein-Ton, im Dark Mode leicht erhabt */
  --dark-bg: #ebe7df;
  --dark-bg-elev: #ffffff;
  --dark-text: #0e1114;
  --dark-text-soft: #3b4047;
  --dark-border: #d3d2cc;
}

html[data-theme="dark"] {
  --bg: #0e1114;
  --bg-alt: #141820;
  --bg-elev: #171c24;
  --surface-muted: #1b2029;
  --text: #f4f5f6;
  --text-soft: #cdd1d7;
  --muted: #8b919a;
  --border: #232a34;
  --border-strong: #323a46;
  --accent: #ff4f49;
  --accent-ink: #0e1114;
  --accent-soft: rgba(255, 79, 73, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  /* Statement-Sektionen folgen jetzt dem Theme */
  --dark-bg: #1a1f27;
  --dark-bg-elev: #20262e;
  --dark-text: #f4f5f6;
  --dark-text-soft: #cdd1d7;
  --dark-border: #2a313c;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 0.4em; font-family: var(--font-display); }
h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}
h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
h4 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
p { margin: 0 0 1em; color: var(--text-soft); }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  font-variant-numeric: tabular-nums;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow-on-dark { color: var(--accent); }

.accent { color: var(--accent); }

.muted { color: var(--muted); }

/* ---------- Buttons (Apple-inspired) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 980px; /* Pill */
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: opacity .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.btn-primary:hover { color: var(--accent-ink); opacity: 0.85; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text); color: var(--text); opacity: 0.9; }

.btn-on-dark { color: #fff; border-color: rgba(255,255,255,0.22); }
.btn-on-dark:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

/* WhatsApp-Buttons — offizielles WA-Grün, Hover etwas dunkler. Auf Light wie Dark gleich kräftig. */
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: transparent;
}
.btn-whatsapp:hover { background: #1FAE54; color: #fff; border-color: transparent; opacity: 1; }
.btn-whatsapp:focus-visible { outline: 2px solid #128C7E; outline-offset: 3px; }

.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease, gap .15s ease;
}
.link-arrow:hover { color: var(--accent); border-bottom-color: var(--accent); gap: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--border);
}
/* Header — Logo + Nav als Einheit, Actions rechts isoliert */
.site-header .nav-wrap {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);   /* Abstand Logo ↔ Nav — enger für Einheit */
  height: 160px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 40px);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
/* Actions werden nach rechts gedrückt — das erzeugt Ruhe, nicht Leere */
.nav-actions { margin-left: auto; }
.brand-logo {
  height: 128px;
  width: auto;
  transition: opacity .2s ease;
}
.brand:hover .brand-logo { opacity: 0.8; }
/* Zwei Logo-Varianten — Schrift schwarz im Light Mode, weiß im Dark Mode.
   Die Footer-Selektoren brauchen extra Spezifität, weil .footer-brand .brand-logo-footer (0,2,0) sonst die Hide-Regel überschreibt. */
.brand-logo--dark,
html .footer-brand .brand-logo-footer--dark { display: none; }
html[data-theme="dark"] .brand-logo--light,
html[data-theme="dark"] .footer-brand .brand-logo-footer--light { display: none; }
html[data-theme="dark"] .brand-logo--dark,
html[data-theme="dark"] .footer-brand .brand-logo-footer--dark { display: block; }

@media (max-width: 1100px) {
  .site-header .nav-wrap { height: 128px; }
  .brand-logo { height: 96px; }
}
@media (max-width: 720px) {
  .site-header .nav-wrap { height: 104px; gap: 16px; }
  .brand-logo { height: 76px; }
}
@media (max-width: 480px) {
  .site-header .nav-wrap { height: 88px; }
  .brand-logo { height: 60px; }
}

.nav-main ul {
  display: flex;
  gap: clamp(18px, 2vw, 28px);
  flex-wrap: nowrap;
  align-items: center;
}
.nav-main li { flex-shrink: 0; }
.nav-main a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  padding: 8px 0;
  position: relative;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: color .15s ease;
}
.nav-main a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-main a:hover { color: var(--accent); }
.nav-main a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, transform .3s ease;
}
.theme-toggle:hover { color: var(--text); background: var(--surface-muted); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle .icon { width: 18px; height: 18px; stroke-width: 1.6; transition: transform .3s ease, opacity .2s ease; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
/* Hero ist ein hoher Scroll-Container (200vh). Der innere .hero-sticky
   bleibt am Viewport-Top kleben — die Animation spielt komplett ab,
   während der Nutzer scrollt, bevor die nächste Sektion sichtbar wird.
   Auf Mobile wird der Pin deaktiviert (siehe Media-Query unten). */
.hero {
  position: relative;
  /* Genau 1 Viewport hoch. Der Scroll-Lock entsteht jetzt durch das
     Frame-Hijacking in hero-3d.js (Wheel/Keys werden abgefangen, bis
     der finale Frame erreicht ist) — kein Sticky-Pin mehr nötig.
     Vorteil: Jedes Wheel-Tick rastet einen klaren Schritt weiter,
     unabhängig von Scroll-Distanz oder Trackpad-Inertia. */
  height: 100vh;
  background:
    radial-gradient(1100px 520px at 88% -8%, var(--accent-soft), transparent 62%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  isolation: isolate;
  overflow: hidden;
}

.hero-sticky {
  /* Layout-Wrapper, kein Sticky mehr — der frühere Sticky-Pin wurde
     durch das Frame-Hijacking ersetzt. Klassenname bleibt aus
     Kompatibilitätsgründen erhalten. */
  position: relative;
  top: auto;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
}

@media (max-width: 767px) {
  /* Mobile: Hero wächst frei, kein Hijacking. */
  .hero { height: auto; }
  .hero-sticky {
    height: auto;
  }
}

/* 3D-Animations-Canvas (siehe hero-3d.js). Liegt hinter Hero-Text und
   Overlay. Funktioniert in beiden Themes — Materialien werden in JS
   theme-abhängig getauscht. */
.hero-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Verlauf zwischen 3D und Hero-Text. Text sitzt links → Overlay ist
   links satt (für Lesbarkeit) und rechts durchsichtig (für Animation).
   Übergang sitzt erst um die 55 %-Marke, damit der Text-Block (links bis
   ca. 50 %) vollständig auf opakem Grund liegt. */
.hero-3d-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      rgba(14, 17, 20, 0.95) 0%,
      rgba(14, 17, 20, 0.92) 38%,
      rgba(14, 17, 20, 0.55) 60%,
      rgba(14, 17, 20, 0.10) 88%,
      rgba(14, 17, 20, 0.00) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(14, 17, 20, 0.35) 0%,
      rgba(14, 17, 20, 0.00) 25%,
      rgba(14, 17, 20, 0.00) 70%,
      rgba(14, 17, 20, 0.50) 100%
    );
}

/* Light-Theme: Overlay tönt mit Hintergrund-Weiß für Text-Lesbarkeit.
   Im hellen Modus muss der weiße Block links satt opak bleiben — sonst
   schimmert die Halle durch und kontrastiert mit der schwarzen Headline. */
[data-theme="light"] .hero-3d-overlay {
  background:
    linear-gradient(
      to right,
      rgba(246, 246, 244, 0.99) 0%,
      rgba(246, 246, 244, 0.97) 42%,
      rgba(246, 246, 244, 0.70) 60%,
      rgba(246, 246, 244, 0.20) 88%,
      rgba(246, 246, 244, 0.00) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(246, 246, 244, 0.30) 0%,
      rgba(246, 246, 244, 0.00) 25%,
      rgba(246, 246, 244, 0.00) 70%,
      rgba(246, 246, 244, 0.45) 100%
    );
}

.hero-inner {
  position: relative;
  z-index: 2;
  /* Text-Block sitzt linksbündig, nicht zentriert — `margin-left:0`
     überschreibt das `margin: 0 auto` der `.container`-Klasse, damit die
     rechte Bildhälfte für die Animation frei wird. Die Original-Breite
     (1100 px) bleibt erhalten; die einzelnen Inhalte limitieren sich
     sowieso intern (Title 22ch, Sub 62ch), darum wirkt der Block trotz
     hoher max-width nicht zerlaufen. */
  max-width: 1100px;
  margin-left: 0;
  margin-right: auto;
}
.hero-title {
  /* Großzügige Abstände rundum, damit die Headline weder dem Eyebrow
     darüber noch dem Sub-Text darunter zu nahe kommt. Globaler h1 hat
     line-height: 0.95 — bei zweizeiliger Headline ragen die Unterlängen
     („g", „p") sonst in den Folgetext hinein. 1.10 schafft genug Luft,
     ohne den Block optisch zu zerreißen. */
  margin: 24px 0 56px;
  max-width: 22ch;
  line-height: 1.10;
}
/* Variante: Headline steht ganz oben im Hero (kein Eyebrow darüber).
   Top-Margin entfällt, Bottom-Margin enger, weil direkt darunter die
   Service-Tagline (eyebrow--below-title) folgt. */
.hero-title--lead {
  margin: 0 0 22px;
}
/* Eyebrow als Service-Tagline UNTER der Headline statt darüber.
   Andere Optik: feiner, ohne den dicken Akzent-Strich davor, dafür
   auf Sub-Text-Niveau eingerückt mit klarem Abstand. */
.eyebrow--below-title {
  margin: 0 0 28px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.eyebrow--below-title::before {
  display: none;
}

/* Akzentwort, das im Hero-Titel zyklisch wechselt
   (Neues → Dich → Uns → …). Fade + leichte vertikale Bewegung. */
.rotating-word {
  display: inline-block;
  /* Punkt sitzt direkt am Wort — keine fixe Mindestbreite */
  text-align: left;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.rotating-word.is-leaving {
  animation: rotateWordOut 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.rotating-word.is-entering {
  animation: rotateWordIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes rotateWordOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
@keyframes rotateWordIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .rotating-word.is-leaving,
  .rotating-word.is-entering {
    animation: none;
  }
}
.hero-sub {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--text-soft);
  max-width: 62ch;
  margin-bottom: 36px;
  line-height: 1.5;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 72px; }

/* ---------- Hero: Abbruchanimation + CTA ---------- */
.demo-cta {
  --slab-w: 380px;
  --slab-h: 96px;
  --slab-split: 14px;
  --crack-color: var(--accent);
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 0 0 72px;
}
.demo-cta-stage {
  position: relative;
  width: var(--slab-w);
  height: var(--slab-h);
  display: grid;
  place-items: center;
  isolation: isolate;
}
/* Beton-Slab — zwei Hälften, Trennlinie zackig (matched mit SVG-Pfad) */
.demo-slab {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.demo-slab-piece {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(0, 0, 0, 0.05), transparent 65%),
    linear-gradient(180deg, var(--surface-muted) 0%, color-mix(in srgb, var(--surface-muted) 88%, var(--text)) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.demo-slab-piece--left {
  clip-path: polygon(0 0, 50% 0, 47% 12%, 53% 25%, 48% 38%, 55% 52%, 47% 65%, 54% 78%, 48% 90%, 52% 100%, 0 100%);
}
.demo-slab-piece--right {
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 52% 100%, 48% 90%, 54% 78%, 47% 65%, 55% 52%, 48% 38%, 53% 25%, 47% 12%);
}
html[data-theme="dark"] .demo-slab-piece {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.04), transparent 65%),
    linear-gradient(180deg, var(--surface-muted) 0%, color-mix(in srgb, var(--surface-muted) 90%, #000) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4);
}
/* SVG-Riss — exakt entlang der clip-path-Trennlinie */
.demo-crack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}
.demo-crack-main,
.demo-crack-branch {
  fill: none;
  stroke: var(--crack-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--crack-color) 60%, transparent));
}
.demo-crack-main { stroke-width: 2; }
.demo-crack-branch { stroke-width: 1.2; opacity: 0.75; }

/* Button im Zentrum der Bühne */
.demo-cta-btn {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.demo-cta-btn::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: var(--radius);
  background: var(--accent);
  opacity: 0;
  z-index: -1;
  filter: blur(18px);
  pointer-events: none;
}

/* Animations-Trigger */
.demo-cta.is-animated .demo-crack-main {
  animation: demoDrawCrack 1.0s 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.demo-cta.is-animated .demo-crack-branch--1 {
  animation: demoDrawCrack 0.5s 1.05s ease-out forwards;
}
.demo-cta.is-animated .demo-crack-branch--2 {
  animation: demoDrawCrack 0.5s 1.20s ease-out forwards;
}
.demo-cta.is-animated .demo-crack-branch--3 {
  animation: demoDrawCrack 0.5s 1.35s ease-out forwards;
}
.demo-cta.is-animated .demo-slab-piece--left {
  transform: translateX(calc(var(--slab-split) * -1));
  transition-delay: 1.2s;
}
.demo-cta.is-animated .demo-slab-piece--right {
  transform: translateX(var(--slab-split));
  transition-delay: 1.2s;
}
.demo-cta.is-animated .demo-cta-btn {
  opacity: 1;
  transform: scale(1);
  transition-delay: 1.45s;
}
.demo-cta.is-animated .demo-cta-btn::after {
  /* Erst der dramatische Initial-Puls (forwards = Endzustand bleibt erhalten),
     anschließend ein ruhiges, dauerhaftes Glow-Loop. */
  animation:
    demoGlowEntrance 2.4s 1.85s ease-out forwards,
    demoGlowIdle 3.6s 4.25s ease-in-out infinite;
}

@keyframes demoDrawCrack {
  to { stroke-dashoffset: 0; }
}
@keyframes demoGlowEntrance {
  0%   { opacity: 0;    transform: scale(0.96); }
  25%  { opacity: 0.55; transform: scale(1.04); }
  60%  { opacity: 0.30; transform: scale(1.02); }
  100% { opacity: 0.20; transform: scale(1.00); }
}
@keyframes demoGlowIdle {
  0%, 100% { opacity: 0.20; transform: scale(1.00); }
  50%      { opacity: 0.32; transform: scale(1.03); }
}

/* Sekundär-Link */
.demo-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.demo-cta-secondary:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.demo-cta-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.demo-cta-secondary:hover .demo-cta-arrow {
  transform: translateX(4px);
}

/* Reduced Motion: alles statisch im Endzustand */
@media (prefers-reduced-motion: reduce) {
  .demo-slab-piece { transition: none; }
  .demo-cta-btn { opacity: 1; transform: none; transition: none; }
  .demo-crack-main, .demo-crack-branch {
    stroke-dashoffset: 0;
    animation: none;
  }
  .demo-cta-btn::after { animation: none; }
}

/* Responsive: kleinere Bühne */
@media (max-width: 720px) {
  .demo-cta {
    --slab-w: 320px;
    --slab-h: 88px;
    --slab-split: 10px;
  }
}
@media (max-width: 420px) {
  .demo-cta {
    --slab-w: 280px;
    --slab-h: 80px;
    --slab-split: 8px;
  }
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--text);
  color: var(--text-soft);
}
.fact-row li {
  padding: 24px 28px 24px 0;
  border-right: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.4;
}
.fact-row li:last-child { border-right: 0; }
.fact-row li + li { padding-left: 28px; }
.fact-row li strong {
  display: block;
  color: var(--text);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .fact-row { grid-template-columns: 1fr; }
  .fact-row li { border-right: 0; border-bottom: 1px solid var(--border); padding: 20px 0; }
  .fact-row li + li { padding-left: 0; }
  .fact-row li:last-child { border-bottom: 0; }
}

/* ---------- Section base ---------- */
.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border);
}
.section-alt { background: var(--bg-alt); }

/* Industrial statement slab — dark, for breaking up rhythm */
.section-dark {
  background: var(--dark-bg);
  color: var(--dark-text);
  border-top: 0;
  border-bottom: 0;
  position: relative;
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--dark-text); }
.section-dark p { color: var(--dark-text-soft); }
.section-dark .section-lead { color: var(--dark-text-soft); }
.section-dark .eyebrow { color: var(--accent); }
.section-dark .link-arrow { color: var(--dark-text); }
.section-dark .link-arrow:hover { color: var(--accent); border-bottom-color: var(--accent); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head-wide { max-width: 900px; }
.section-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-soft);
  margin-top: 16px;
  max-width: 60ch;
  line-height: 1.55;
}

/* ---------- Cards grid ---------- */
.cards { display: grid; gap: var(--gap); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 3.2vw, 40px);
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s ease, transform .2s ease;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--accent);
  transition: width .25s ease;
}
.card:hover { border-color: var(--text); }
.card:hover::after { width: 100%; }
.card h3 { margin-bottom: 6px; }
.card p { margin-bottom: 0; color: var(--text-soft); }
.card .link-arrow { margin-top: auto; padding-top: 18px; }

.section-dark .card {
  background: var(--dark-bg-elev);
  border-color: var(--dark-border);
}
.section-dark .card:hover { border-color: var(--dark-text); }
.section-dark .card h3 { color: var(--dark-text); }
.section-dark .card p { color: var(--dark-text-soft); }

.card-mini h3 { font-size: 1.1rem; }
.card-mini p { font-size: 0.95rem; }

/* ---------- Services: kompakte 2-Spalten-Liste ---------- */
.services {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 4vw, 64px);
  border-top: 2px solid var(--text);
}
.service {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px) 0 clamp(20px, 2.4vw, 28px) 18px;
  border-bottom: 1px solid var(--border);
  transition: background-color .2s ease;
}
.service::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 2px;
  background: transparent;
  transition: background-color .2s ease;
}
.service:hover::before { background: var(--accent); }
.service:hover .service-title { color: var(--accent); }

.service-title {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--text);
  transition: color .15s ease;
}
.service-desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 56ch;
}

@media (max-width: 720px) {
  .services { grid-template-columns: 1fr; }
}

/* ---------- Reasons (Warum Schaffwerk) ---------- */
.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 4vw, 64px);
}
.reason {
  position: relative;
  padding-top: 22px;
}
.reason::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--accent);
}
/* Wenn das Pillar ein Icon trägt, übernimmt das Icon die visuelle Markierung — Akzentbalken weg */
.reason:has(.reason-icon) { padding-top: 0; }
.reason:has(.reason-icon)::before { display: none; }
.reason-icon {
  display: block;
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin: 0 0 18px;
  stroke-width: 1.6;
}
.reason-title {
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--dark-text);
  max-width: 22ch;
}
.reason-body {
  margin: 0;
  line-height: 1.6;
  color: var(--dark-text-soft);
  max-width: 50ch;
}

/* Light-Variante (falls .reasons mal außerhalb section-dark genutzt wird) */
.section:not(.section-dark) .reason-title { color: var(--text); }
.section:not(.section-dark) .reason-body { color: var(--text-soft); }

@media (max-width: 960px) {
  .reasons { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Referenzen ---------- */
.refs {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.ref {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ref:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.ref-meta {
  display: flex; gap: 10px; font-size: 0.8rem; color: var(--muted);
  margin-bottom: 12px;
}
.ref-meta span + span::before { content: "· "; margin-right: 4px; }
.ref h3 { font-size: 1.1rem; margin-bottom: 10px; }
.ref-tag {
  margin-top: 14px; margin-bottom: 0;
  font-size: 0.85rem; color: var(--accent); font-weight: 600;
}

/* ---------- Two column layout ---------- */
.two-col {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1.15fr 1fr;
  align-items: start;
}
.two-col-text p { max-width: 60ch; }
.two-col-aside { display: grid; gap: 20px; }
.aside-box {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.aside-box h3 { font-size: 1rem; margin-bottom: 10px; }
.aside-box p, .aside-box ul { margin-bottom: 0; }

.certs { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.cert {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  min-width: 180px;
  background: var(--bg-elev);
}
.cert strong { display: block; color: var(--accent); font-size: 0.9rem; letter-spacing: 0.08em; }
.cert span { color: var(--text-soft); font-size: 0.9rem; }

.kpi-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi-list li { text-align: left; }
.kpi-list strong {
  display: block;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.kpi-list span { font-size: 0.82rem; color: var(--muted); }

/* ==================================================================
   KPI-Panel "Was wir bewegt haben" — Industrial HUD Readout

   Das Standard-aside-box wird zu einem prominenten Brand-rot
   gerahmten Console-Panel: monospace Index-Marker, große rote
   Zahlen mit Glow, dünne Scanline-Textur, dezente Akzentleiste oben.
   Wirkt wie ein Industrie-Display — auf Linie mit dem Schaffwerk-
   Brutalist-Look, ohne kitschig-sci-fi zu werden.
   ================================================================== */
.aside-box--kpi {
  position: relative;
  padding: clamp(28px, 3vw, 36px) clamp(24px, 3vw, 32px) clamp(24px, 3vw, 30px);
  background:
    linear-gradient(180deg, rgba(255, 79, 73, 0.08), transparent 38%),
    var(--bg-elev);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 79, 73, 0.18),
    0 14px 40px -16px rgba(255, 79, 73, 0.30);
}

/* Subtile Scanline-Textur über dem Panel — HUD-Feeling */
.aside-box--kpi::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(255, 79, 73, 0.030) 3px,
    rgba(255, 79, 73, 0.030) 4px
  );
  pointer-events: none;
}

/* Tech-Akzentleiste oben links — kurze, glühende Linie */
.aside-box--kpi::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 64px;
  height: 3px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(255, 79, 73, 0.65);
  pointer-events: none;
}

/* Monospace-Heading mit "//" Pre-Marker */
.kpi-heading {
  position: relative;
  z-index: 1;
  margin: 0 0 26px;
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.kpi-heading::before {
  content: "// ";
  opacity: 0.55;
}

/* Liste vertikal stapeln statt 3-Spalten-Grid — gibt Platz für große Zahlen */
.aside-box--kpi .kpi-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.aside-box--kpi .kpi-list li {
  display: block;
  padding: 18px 0 16px;
  border-top: 1px dashed color-mix(in srgb, var(--accent) 32%, transparent);
}
.aside-box--kpi .kpi-list li:first-child {
  border-top: none;
  padding-top: 4px;
}

/* Die Zahl: groß, brand-rot, monospace tabular, mit Glow */
.aside-box--kpi .kpi-num {
  display: block;
  margin: 0;
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, 'JetBrains Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: clamp(1.95rem, 3.6vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--accent);
  font-variant-numeric: tabular-nums slashed-zero;
  text-shadow:
    0 0 1px rgba(255, 79, 73, 0.6),
    0 0 24px rgba(255, 79, 73, 0.38);
}

/* Label darunter: gedämpft, monospace uppercase, letter-spaced */
.aside-box--kpi .kpi-label {
  display: block;
  margin-top: 8px;
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* Light-Mode: Glow zurücknehmen, bleibt sonst zu schreiend auf Weiß */
[data-theme="light"] .aside-box--kpi {
  box-shadow:
    0 0 0 1px rgba(255, 79, 73, 0.10),
    0 8px 28px -12px rgba(255, 79, 73, 0.20);
}
[data-theme="light"] .aside-box--kpi .kpi-num {
  text-shadow:
    0 0 1px rgba(255, 79, 73, 0.40),
    0 0 14px rgba(255, 79, 73, 0.18);
}
[data-theme="light"] .aside-box--kpi::before {
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(255, 79, 73, 0.020) 3px,
    rgba(255, 79, 73, 0.020) 4px
  );
}

/* ---------- Karriere / Jobs ---------- */
.jobs { margin-top: clamp(40px, 5vw, 56px); }
.jobs h3 { margin-bottom: 16px; }
.job-list {
  border-top: 1px solid var(--border);
  margin-bottom: 20px;
}
.job-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.job-title { font-weight: 600; color: var(--text); }
.job-meta { color: var(--muted); font-size: 0.9rem; }
.jobs-hint { color: var(--muted); font-size: 0.95rem; max-width: 60ch; margin-bottom: 20px; }
.jobs-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Kontakt ---------- */
.kontakt-head {
  max-width: 900px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.kontakt-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 22ch;
}
.kontakt-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.kontakt-ctas .btn { flex: 0 1 auto; }

.two-col-contact { grid-template-columns: 1fr 1fr; }
.contact-info {
  font-style: normal;
  color: var(--text-soft);
  padding: 20px 0 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 0 24px;
}
.contact-info a { color: var(--text); border-bottom: 1px solid var(--border-strong); }
.contact-info a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.hours-title { font-size: 1rem; margin-bottom: 8px; }
.hours { color: var(--text-soft); }

.contact-form {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  gap: 16px;
}
.contact-form h3 { margin-bottom: 4px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--text-soft);
}
.check input { margin-top: 3px; }
.form-hint { font-size: 0.82rem; color: var(--muted); text-align: center; margin: 4px 0 0; }

/* Field — file upload */
.field-optional {
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}
.dropzone {
  position: relative;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 22px 18px;
  text-align: center;
  transition: border-color .2s ease, background-color .2s ease;
  cursor: pointer;
}
.dropzone:hover,
.dropzone:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}
.dropzone.is-dragover {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-soft);
}
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}
.dropzone-inner {
  pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.dropzone-icon { color: var(--muted); margin-bottom: 2px; }
.dropzone:hover .dropzone-icon,
.dropzone.is-dragover .dropzone-icon { color: var(--accent); }
.dropzone-title {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}
.dropzone-browse {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dropzone-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.file-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.file-list:empty { margin: 0; }
.file-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text);
}
.file-list .file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-list .file-size {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.file-list .file-remove {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s ease, background-color .15s ease;
}
.file-list .file-remove:hover {
  color: var(--text);
  background: var(--border);
}

.file-error {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: #c53030;
}
html[data-theme="dark"] .file-error { color: #ff8a80; }

/* Honeypot — hidden from users and assistive tech */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Form submission feedback */
.contact-form.is-submitting .dropzone { pointer-events: none; opacity: 0.6; }
#submitBtn[disabled] { opacity: 0.65; cursor: progress; }

.form-success,
.form-failure {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.5;
}
.form-success {
  background: var(--accent-soft);
  color: var(--text);
  border-left: 3px solid var(--accent);
}
.form-failure {
  background: rgba(197, 48, 48, 0.08);
  color: var(--text);
  border-left: 3px solid #c53030;
}
html[data-theme="dark"] .form-failure { background: rgba(255, 138, 128, 0.10); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: clamp(56px, 7vw, 88px) 0 28px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* Main 4-column grid: brand + 3 link columns */
.footer-grid {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.footer-brand { min-width: 0; }
.footer-brand .brand-logo-footer {
  height: 144px;
  width: auto;
  display: block;
  /* Das neue SVG hat ~21% Leerraum unter dem sichtbaren Schriftzug — negativer margin-bottom zieht den Layout-Block soweit hoch, dass die Tagline kurz unter dem Schriftzug sitzt, ohne ihn zu überschneiden. */
  margin: 0 0 -24px;
  transition: opacity .2s ease;
}
.footer-brand p {
  max-width: 34ch;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-soft);
}
/* brand-stack: Logo + Tagline werden zur eigenständigen Einheit, Tagline mittig auf Logo-Achse */
.brand-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
/* Höhere Spezifität, damit das Brand-Orange das allgemeine .footer-brand p überschreibt. */
.footer-brand .footer-tagline {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  line-height: 1.4;
  white-space: nowrap;
  text-align: center;
}

.footer-grid h4 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-list li { margin-bottom: 10px; }
.footer-list a { color: var(--text-soft); }
.footer-list a:hover { color: var(--accent); }

/* Social-Links: kleine Icon-Liste unter Kontakt-Block.
   Icon + Wort als Pille, hover hebt Akzent-Farbe hervor. */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.footer-social svg {
  display: block;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--accent); }

@media (max-width: 1100px) {
  .footer-brand .brand-logo-footer { height: 120px; margin-bottom: -20px; }
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand .brand-logo-footer { height: 104px; margin-bottom: -17px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand .brand-logo-footer { height: 80px; margin-bottom: -13px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .two-col, .two-col-contact { grid-template-columns: 1fr; }
  .kpi-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1160px) {
  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 20px;
    box-shadow: 0 20px 40px -10px rgba(14, 17, 20, 0.1);
  }
  .nav-main.open { display: block; }
  .nav-main ul { flex-direction: column; gap: 2px; }
  .nav-main a {
    display: block;
    padding: 14px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-main li:last-child a { border-bottom: 0; }
  .nav-main a::after { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  .nav-cta { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .kontakt-ctas .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 520px) {
  .nav-actions { gap: 6px; }
  .hero-ctas .btn { flex: 1 1 auto; }
}

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal {
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--border);
}
.legal-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.legal-header { margin-bottom: clamp(32px, 4vw, 48px); }
.legal-header .eyebrow { margin-bottom: 10px; }
.legal-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 16px;
}
.legal-header .legal-intro {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 60ch;
}
.legal-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.92rem; color: var(--muted);
  margin-bottom: 28px;
}
.legal-back:hover { color: var(--accent); }

.legal h2 {
  font-size: 1.35rem;
  margin: 40px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.legal h2:first-of-type { padding-top: 0; border-top: 0; margin-top: 0; }
.legal h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
  color: var(--text);
}
.legal p, .legal ul, .legal ol, .legal address, .legal dl { color: var(--text-soft); }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { padding-left: 1.3em; margin: 0 0 16px; list-style: disc; }
.legal ul li, .legal ol li { margin-bottom: 6px; }
.legal ol { list-style: decimal; }
.legal a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  transition: color .15s ease, border-color .15s ease;
}
.legal a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.legal address {
  font-style: normal;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  margin: 0 0 20px;
}
.legal dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 0 0 16px;
}
.legal dt { font-weight: 600; color: var(--text); }
.legal dd { margin: 0; }
.legal-callout {
  background: var(--surface-muted);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-size: 0.95rem;
}
.legal-callout p:last-child { margin-bottom: 0; }
.legal-meta {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 520px) {
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dt { margin-top: 8px; }
}

/* ---------- Cookie / Datenschutz-Hinweis ---------- */
.cookie-notice {
  position: fixed;
  left: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  max-width: 560px;
  margin: 0 auto 0 clamp(16px, 3vw, 28px);
  z-index: 100;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 40px -10px rgba(14, 17, 20, 0.18), 0 2px 6px rgba(14, 17, 20, 0.06);
  padding: 18px 20px;
  animation: cookieSlideIn .35s cubic-bezier(0.22, 1, 0.36, 1);
}
html[data-theme="dark"] .cookie-notice {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.cookie-notice[hidden] { display: none; }

.cookie-notice-inner {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cookie-notice-text { flex: 1; min-width: 0; }
.cookie-notice-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.cookie-notice-text p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0;
}
.cookie-notice-text a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  transition: color .15s ease, border-color .15s ease;
}
.cookie-notice-text a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.cookie-notice-ok {
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: 0.9rem;
}

@keyframes cookieSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .cookie-notice {
    margin: 0 auto;
    max-width: none;
  }
  .cookie-notice-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cookie-notice-ok { width: 100%; }
}

/* ==================================================================
   MARQUEE-BAND — Endlos-Ticker zwischen Leistungen und Warum
   Bricht das Karten-Raster auf, transportiert Region + Standards.
   Monospace-Optik schließt visuell ans HUD-KPI-Panel an.
   ================================================================== */
.marquee-band {
  position: relative;
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: clamp(18px, 2vw, 26px) 0;
  /* dezenter Verlauf an den Rändern, damit der Lauf nicht hart abbricht */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
[data-theme="dark"] .marquee-band {
  background: var(--bg-alt);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 48s linear infinite;
  will-change: transform;
}
.marquee-band:hover .marquee-track,
.marquee-track:focus-within {
  animation-play-state: paused;
}
.marquee-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(20px, 2.5vw, 36px);
  padding-right: clamp(20px, 2.5vw, 36px);
  margin: 0;
  list-style: none;
  flex-shrink: 0;
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.marquee-row li {
  display: inline-flex;
  align-items: center;
}
.marquee-em {
  color: var(--accent);
  font-weight: 700;
}
.marquee-dot {
  color: var(--accent);
  font-size: 0.55em;
  transform: translateY(-1px);
  opacity: 0.8;
}
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ==================================================================
   SERVICE-LISTE — Hover-Reveal mit Pfeil
   Jede Zeile bekommt rechts einen Pfeil, der beim Hovern aus
   transparent + linksversetzt einrückt. Bewegt das statische
   2-Spalten-Raster aus der reinen Lese-Liste in Richtung „klickbar".
   ================================================================== */
.service { padding-right: clamp(36px, 4vw, 56px); }
.service::after {
  content: "→";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translate(-10px, -50%);
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.service:hover::after,
.service:focus-within::after {
  opacity: 1;
  transform: translate(0, -50%);
}
.service:hover { background-color: color-mix(in srgb, var(--accent) 4%, transparent); }

/* ==================================================================
   REASON-ICON — Line-Draw beim Scroll-Eintritt
   Inline-SVGs werden initial mit voll versetzter Stroke-Länge
   gerendert, beim IntersectionObserver-Trigger zeichnet sich
   die Linie sichtbar. Beim Verlassen des Viewports zurücksetzen,
   damit die Animation beim erneuten Hochscrollen neu loslaufen kann.
   ================================================================== */
.reason-icon path,
.reason-icon circle {
  transition: stroke-dashoffset 1.3s cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .marquee-track { animation: none !important; }
  .reason-icon path, .reason-icon circle { stroke-dashoffset: 0 !important; }
}

/* ---------- Marquee responsiv: kleinere Lücken auf Mobile ---------- */
@media (max-width: 560px) {
  .marquee-row {
    gap: 18px;
    padding-right: 18px;
    font-size: 0.95rem;
  }
}

/* ==================================================================
   LEISTUNGEN — Voxr-inspiriertes Layout
   ------------------------------------------------------------------
   Display-Headline mit dem Akzentwort als Anker, darunter ein
   asymmetrisches 12-Spalten-Grid. Drei Karten markieren wir als
   Akzent-Pop (orange Outline + leichte Drehung), das bricht die
   Monotonie eines reinen Karten-Rasters auf.
   ================================================================== */

/* Etwas mehr Atemraum als Standard-Section, damit das Display-Wort
   wirken kann. */
.leistungen-voxr {
  padding-top: clamp(72px, 9vw, 120px);
  padding-bottom: clamp(72px, 9vw, 120px);
}

.leistungen-stage { position: relative; }

/* ---------- Headline-Block (zentriert) ---------- */
.leistungen-head {
  text-align: center;
  max-width: 920px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}

/* Eyebrow als Pill — abgesetzt vom Standard-Eyebrow, mono + Border. */
.eyebrow-pill {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
[data-theme="light"] .eyebrow-pill { background: #fff; }

.leistungen-title {
  margin: 0 0 18px;
  line-height: 0.95;
  font-family: var(--font-display);
  color: var(--text);
}

/* Erste Zeile: kleine Vor-Aussage, oberhalb des Display-Worts. */
.leistungen-title-line {
  display: block;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-soft);
  margin-bottom: 0.05em;
}

/* Display-Wort — größtes Element der Sektion. „Ein Betrieb." in
   Orange mit dezentem Verlauf, damit es plastisch wirkt statt flach. */
.leistungen-title-display {
  display: block;
  font-size: clamp(3.6rem, 11vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--accent);
  background: linear-gradient(180deg,
    var(--accent) 0%,
    color-mix(in srgb, var(--accent) 80%, var(--text) 20%) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: -0.04em 0 0.05em;
}

/* Dritte Zeile: kleiner Tag im Mono-Stil — knüpft visuell ans
   Marquee-Band an. */
.leistungen-title-tag {
  display: inline-block;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  /* Subtiler Akzent-Strich davor + dahinter, wie ein Badge. */
  padding: 6px 14px;
  border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--border));
  border-radius: 6px;
  margin-top: 8px;
}

.leistungen-lead {
  max-width: 64ch;
  margin: 18px auto 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.55;
}

/* ==================================================================
   Service-Grid — 12-Spalten-Layout mit asymmetrischen Karten
   ================================================================== */
.svc-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

/* Spalten-Spans pro Karte. Reihe 1: 5+4+3, Reihe 2: 4+4+4, Reihe 3: 5+7 */
.svc-card--w3 { grid-column: span 3; }
.svc-card--w4 { grid-column: span 4; }
.svc-card--w5 { grid-column: span 5; }
.svc-card--w6 { grid-column: span 6; }
.svc-card--w7 { grid-column: span 7; }

/* ---------- Einzelne Karte ---------- */
.svc-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(18px, 2vw, 26px);
  transition:
    transform .35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color .25s ease,
    box-shadow .35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 8px 24px -16px rgba(0, 0, 0, 0.16),
    0 1px 3px -1px rgba(0, 0, 0, 0.04);
  /* Innen-Layout: Nummer oben, Titel + Desc darunter. */
  display: flex;
  flex-direction: column;
  gap: 10px;
}
[data-theme="dark"] .svc-card {
  background: var(--surface-muted);
  box-shadow:
    0 10px 28px -16px rgba(0, 0, 0, 0.55),
    0 1px 3px -1px rgba(0, 0, 0, 0.3);
}

.svc-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  box-shadow:
    0 18px 36px -18px rgba(0, 0, 0, 0.22),
    0 3px 8px -2px rgba(0, 0, 0, 0.06);
}
.svc-card:hover .svc-title { color: var(--accent); }

/* Akzent-Karte: orange Outline + leichter Tint + dezente Drehung.
   Beim Hover gleitet die Drehung zurück, fühlt sich „angefasst" an. */
.svc-card--accent {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}
[data-theme="dark"] .svc-card--accent {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-muted));
}
/* Jede Akzent-Karte bekommt eine andere Drehrichtung — wirkt natürlicher. */
.svc-card--accent:nth-of-type(1) { transform: rotate(-0.6deg); }
.svc-card--accent:nth-of-type(6) { transform: rotate(0.6deg); }
.svc-card--accent:nth-of-type(8) { transform: rotate(-0.4deg); }
.svc-card--accent:hover { transform: rotate(0deg) translateY(-3px); }

.svc-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  transition: color .15s ease;
}

.svc-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-soft);
}

/* ==================================================================
   Responsive: ab Tablet/Mobile linearisieren wir das Grid.
   ================================================================== */
/* Tablet: 12 → 6 Spalten, Karten werden zu halben Breiten. */
@media (max-width: 960px) {
  .svc-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .svc-card--w3,
  .svc-card--w4 { grid-column: span 3; }
  .svc-card--w5,
  .svc-card--w6,
  .svc-card--w7 { grid-column: span 6; }
}

/* Mobile: 1 Spalte, alles untereinander. Drehungen aus. */
@media (max-width: 600px) {
  .svc-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .svc-card--w3,
  .svc-card--w4,
  .svc-card--w5,
  .svc-card--w6,
  .svc-card--w7 { grid-column: span 1; }
  .svc-card--accent:nth-of-type(1),
  .svc-card--accent:nth-of-type(6),
  .svc-card--accent:nth-of-type(8) { transform: none; }
}

/* Reduzierte Bewegung: Drehungen + Hover-Lifts deaktivieren. */
@media (prefers-reduced-motion: reduce) {
  .svc-card,
  .svc-card--accent,
  .svc-card--accent:nth-of-type(1),
  .svc-card--accent:nth-of-type(6),
  .svc-card--accent:nth-of-type(8) {
    transform: none !important;
    transition: none !important;
  }
}

