/* ==========================================================================
   8-Solutions · Stylesheet (Version 3: Chrom / Schwarz / Weiß, Liquid Glass)
   Keine externen Schriften, keine externen Ressourcen (DSGVO-freundlich).

   Farben:   Hellgrau #F5F5F7 (Grund), Schwarz #000 / #1D1D1F (Schrift, dunkle Abschnitte),
             Chrom (Silber-Verläufe) als einziger Akzent. Keine Buntfarbe.
   Material: Liquid Glass = durchscheinend + Unschärfe + heller Lichtrand.
             In Chromium-Browsern zusätzlich Lichtbrechung am Rand (assets/js/main.js).
   Formen:   Buttons und Kopfleiste = Kapsel, Karten = 28px, Felder = 14px.
   Ebenen:   Abschnitts-Hintergrund (0) < Hintergrund-Canvas (1) < Inhalt (2) < Header (50)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --white: #ffffff;
  --paper: #f5f5f7;
  --ink: #1d1d1f;
  --black: #000000;

  /* Chrom. Hell: Flächen und Schrift auf Schwarz. Dunkel ("ink"): Schrift auf Hell, >= 3:1 für große Schrift. */
  --chrome: linear-gradient(135deg, #fbfbfc 0%, #c9ccd1 16%, #8d929a 32%, #f1f2f4 48%, #a7abb2 64%, #e3e5e8 80%, #8a8f97 100%);
  --chrome-text: linear-gradient(100deg, #ffffff 0%, #c7cad0 18%, #868b93 34%, #f4f5f7 50%, #a4a9b0 68%, #ffffff 84%, #9aa0a7 100%);
  --chrome-ink: linear-gradient(100deg, #121315 0%, #4b4f56 22%, #80858e 38%, #2a2c30 54%, #6a6f77 72%, #17181a 100%);
  --black-gloss: linear-gradient(180deg, #48484c 0%, #1d1d1f 46%, #000 100%);

  /* helle Abschnitte (Standard) */
  --bg: var(--paper);
  --text: var(--ink);
  --text-2: #424245;
  --text-3: #6e6e73;
  --text-placeholder: #6e6e73;
  --line: rgb(0 0 0 / 0.08);
  --line-strong: rgb(0 0 0 / 0.18);
  --hover: rgb(0 0 0 / 0.05);
  --focus: var(--ink);
  --title-fill: var(--chrome-ink);
  --bar: linear-gradient(180deg, #dcdde1, #b9bcc2);
  --bar-hl: linear-gradient(180deg, #55585e 0%, #1d1d1f 55%, #000 100%);

  /* Liquid Glass, hell */
  --glass-tint: rgb(255 255 255 / 0.4);
  --glass-tint-hover: rgb(255 255 255 / 0.66);
  --glass-tint-clear: rgb(255 255 255 / 0.3);
  --glass-tint-strong: rgb(250 250 252 / 0.84);
  --glass-rim: rgb(255 255 255 / 0.95);
  --glass-rim-soft: rgb(255 255 255 / 0.2);
  --glass-edge: rgb(0 0 0 / 0.07);
  --glass-inner: inset 0 1px 1px rgb(255 255 255 / 0.85), inset 0 -1px 1px rgb(0 0 0 / 0.04);
  --glass-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 18px 40px -18px rgb(0 0 0 / 0.22);
  --glass-shadow-lift: 0 2px 4px rgb(0 0 0 / 0.05), 0 30px 60px -24px rgb(0 0 0 / 0.3);
  --glow: rgb(255 255 255 / 0.8);

  --r-card: 28px;
  --r-field: 14px;
  --r-pill: 999px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 52px;
  --header-gap: 10px;
  --header-space: calc(var(--header-h) + var(--header-gap));

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-liquid: cubic-bezier(0.32, 0.72, 0, 1);
}

/* dunkle Abschnitte und Kopfleiste über dunklen Abschnitten: gleiche Tokens, andere Werte */
[data-theme="dark"],
.site-header.on-dark,
.modal {
  color-scheme: dark;
  --bg: var(--black);
  --text: var(--paper);
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --text-placeholder: #98989d;
  --line: rgb(255 255 255 / 0.12);
  --line-strong: rgb(255 255 255 / 0.24);
  --hover: rgb(255 255 255 / 0.1);
  --focus: var(--paper);
  --title-fill: var(--chrome-text);
  --bar: linear-gradient(180deg, #5a5a5e, #3a3a3c);
  --bar-hl: var(--chrome);

  --glass-tint: rgb(40 40 44 / 0.42);
  --glass-tint-hover: rgb(60 60 66 / 0.5);
  --glass-tint-clear: rgb(255 255 255 / 0.06);
  --glass-tint-strong: rgb(28 28 30 / 0.86);
  --glass-rim: rgb(255 255 255 / 0.5);
  --glass-rim-soft: rgb(255 255 255 / 0.05);
  --glass-edge: rgb(255 255 255 / 0.08);
  --glass-inner: inset 0 1px 1px rgb(255 255 255 / 0.16), inset 0 -1px 1px rgb(0 0 0 / 0.3);
  --glass-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.8);
  --glass-shadow-lift: 0 30px 60px -24px rgb(0 0 0 / 0.9);
  --glow: rgb(255 255 255 / 0.14);
}
[data-theme="dark"] { background: var(--bg); color: var(--text); }

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-space) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, canvas { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p, li, dd, figcaption, summary { text-wrap: pretty; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--ink); color: var(--white); }
[data-theme="dark"] ::selection { background: var(--paper); color: var(--black); }

.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;
}

/* Verlaufs-Definitionen für SVG (Logo) */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-pill);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Hintergrund: Datenströme + Architektur (Canvas, per JS gezeichnet) */
.backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.backdrop.is-ready { opacity: 1; }

.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(88px, 12vw, 168px); }

/* Weicher Übergang zwischen schwarzen und hellen Abschnitten.
   Der helle Nachbar bekommt zusätzlichen Innenabstand, in dem ein Verlauf von Schwarz zu Hellgrau liegt.
   S-Kurve (Smoothstep): flach an beiden Enden, damit weder oben noch unten eine Kante sichtbar wird. */
:root {
  --fade: clamp(200px, 38vh, 400px);
  --scrim: rgb(0 0 0 / 1.000) 0%, rgb(0 0 0 / 0.993) 5%, rgb(0 0 0 / 0.972) 10%, rgb(0 0 0 / 0.939) 15%, rgb(0 0 0 / 0.896) 20%,
    rgb(0 0 0 / 0.844) 25%, rgb(0 0 0 / 0.784) 30%, rgb(0 0 0 / 0.718) 35%, rgb(0 0 0 / 0.648) 40%, rgb(0 0 0 / 0.575) 45%,
    rgb(0 0 0 / 0.500) 50%, rgb(0 0 0 / 0.425) 55%, rgb(0 0 0 / 0.352) 60%, rgb(0 0 0 / 0.282) 65%, rgb(0 0 0 / 0.216) 70%,
    rgb(0 0 0 / 0.156) 75%, rgb(0 0 0 / 0.104) 80%, rgb(0 0 0 / 0.061) 85%, rgb(0 0 0 / 0.028) 90%, rgb(0 0 0 / 0.007) 95%,
    rgb(0 0 0 / 0.000) 100%;
}
@media (max-width: 699px) { :root { --fade: clamp(140px, 26vh, 240px); } }
[data-theme="dark"] + .section:not([data-theme]),
.section:not([data-theme]):has(+ [data-theme="dark"]) { position: relative; }
[data-theme="dark"] + .section:not([data-theme]) { padding-top: calc(var(--fade) + clamp(40px, 5vw, 72px)); }
.section:not([data-theme]):has(+ [data-theme="dark"]) { padding-bottom: calc(var(--fade) + clamp(40px, 5vw, 72px)); }
[data-theme="dark"] + .section:not([data-theme])::before,
.section:not([data-theme]):has(+ [data-theme="dark"])::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: calc(var(--fade) + 2px); /* 2px Überlappung in den schwarzen Abschnitt: keine helle Haarlinie an der Kante */
  z-index: 0;
  pointer-events: none;
}
[data-theme="dark"] + .section:not([data-theme])::before { top: -2px; background: linear-gradient(to bottom, var(--scrim)); }
.section:not([data-theme]):has(+ [data-theme="dark"])::after { bottom: -2px; background: linear-gradient(to top, var(--scrim)); }

.section-title {
  font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4rem);
  max-width: 18ch;
}

/* Chrom-Schrift für hervorgehobene Wörter */
.hero-title em,
.section-title em,
.statement-text em,
.statement-text.is-split em .w {
  font-style: normal;
  color: var(--text);
  background: var(--title-fill);
  background-size: 200% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* nach dem Aufteilen in Wörter trägt jedes Wort den Verlauf selbst (sonst blendet es nicht ein) */
.statement-text.is-split em { background: none; -webkit-text-fill-color: currentColor; }

.lead {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.45;
  color: var(--text-2);
  max-width: 52ch;
  letter-spacing: -0.01em;
}

.center { text-align: center; }
.center .section-title, .center .lead { margin-inline: auto; }

/* ---------- Liquid Glass: gemeinsame Bausteine ----------
   Fläche: durchscheinend + Unschärfe. Rand: heller Lichtverlauf oben links und unten rechts. */
.tile,
.chart-card,
.form,
.btn-ghost,
.gallery-btn {
  background: var(--glass-tint);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 0 0 1px var(--glass-edge), var(--glass-inner), var(--glass-shadow);
}

.tile::after,
.chart-card::after,
.form::after,
.btn-ghost::after,
.gallery-btn::after,
.site-header .header-inner::after,
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(150deg, var(--glass-rim) 0%, var(--glass-rim-soft) 26%, transparent 50%, var(--glass-rim-soft) 74%, var(--glass-rim) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--r-pill);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), background-position 0.8s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease), transform 0.4s var(--ease-liquid);
}
.btn:active { transform: scale(0.96); }

/* auf Hell: schwarzer Lack */
.btn-primary {
  color: var(--white);
  background: var(--black-gloss);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), inset 0 -1px 0 rgb(0 0 0 / 0.5), 0 0 0 1px rgb(0 0 0 / 0.65), 0 10px 24px -10px rgb(0 0 0 / 0.45);
}
.btn-primary:hover { background: linear-gradient(180deg, #5c5c61 0%, #2a2a2d 46%, #0a0a0b 100%); }

/* auf Schwarz: Chrom-Kapsel, der Glanz wandert beim Darüberfahren */
[data-theme="dark"] .btn-primary,
.site-header.on-dark .btn-primary,
.modal .btn-primary {
  color: var(--black);
  background: var(--chrome);
  background-size: 220% 220%;
  background-position: 0% 50%;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.95), inset 0 -1px 0 rgb(0 0 0 / 0.22), 0 0 0 1px rgb(255 255 255 / 0.22), 0 12px 30px -12px rgb(255 255 255 / 0.3);
}
[data-theme="dark"] .btn-primary:hover,
.site-header.on-dark .btn-primary:hover,
.modal .btn-primary:hover { background: var(--chrome); background-size: 220% 220%; background-position: 100% 50%; }

/* Glas-Kapsel */
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--glass-tint-hover); }

.btn-sm { min-height: 36px; padding: 6px 16px; font-size: 0.875rem; }

.btn-arrow { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Lichtbrechung (nur Chromium, per JS freigeschaltet): klares Glas, Rand bricht den Hintergrund */
.btn-ghost.has-lens,
.gallery-btn.has-lens {
  background: var(--glass-tint-clear);
  backdrop-filter: var(--lens) blur(2px) saturate(170%) brightness(1.05);
}
.btn-ghost.has-lens:hover,
.gallery-btn.has-lens:hover { background: var(--glass-tint); }

/* ---------- Header: schwebende Glas-Kapsel ---------- */
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: var(--header-gap) var(--gutter) 0;
  color: var(--text);
  pointer-events: none;
}
.site-header .header-inner {
  pointer-events: auto;
  isolation: isolate;
  max-width: 1040px;
  height: var(--header-h);
  padding-inline: 20px 6px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header .header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--glass-tint);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 0 0 1px var(--glass-edge), var(--glass-inner), var(--glass-shadow);
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header .header-inner.has-lens::before {
  backdrop-filter: var(--lens) blur(7px) saturate(180%) brightness(1.04);
}
.site-header.is-scrolled .header-inner::before { box-shadow: 0 0 0 1px var(--glass-edge), var(--glass-inner), var(--glass-shadow-lift); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}
.brand { min-height: 44px; }
/* Logo A (Ring & Punkt): viewBox 17 8 66 124, Zeichen eng beschnitten */
.brand-mark { width: 12.8px; height: 24px; flex: none; }
.brand-mark .ring { fill: none; stroke: currentColor; stroke-width: 10; }
.brand-mark .dot { fill: url(#g-chrome-ink); }
[data-theme="dark"] .brand-mark .dot,
.site-header.on-dark .brand-mark .dot { fill: url(#g-chrome); }

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-menu a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-menu a:not(.btn):hover { color: var(--text); background: var(--hover); }
.nav-cta-item { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.nav-toggle:hover { background: var(--hover); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px; height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), background-color 0.2s var(--ease);
}
.nav-toggle-bars { position: relative; background: transparent; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -4px; }
.nav-toggle-bars::after { top: 4px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 899px) {
  .site-header .header-inner { padding-inline: 18px 4px; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed;
    top: calc(var(--header-space) + 8px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    border-radius: var(--r-card);
    background: var(--glass-tint-strong);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 0 0 1px var(--glass-edge), var(--glass-inner), var(--glass-shadow-lift);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.3s var(--ease), transform 0.5s var(--ease-liquid), visibility 0s linear 0.5s;
  }
  .nav-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.5s var(--ease-liquid), visibility 0s;
  }
  .nav-menu a:not(.btn) {
    display: flex;
    width: 100%;
    min-height: 52px;
    padding: 12px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
  }
  .nav-menu a:not(.btn):hover { background: transparent; }
  .nav-cta-item { margin: 20px 0 0; }
  .nav-cta-item .btn { width: 100%; min-height: 48px; font-size: 1.0625rem; }
}

/* ---------- Hero (schwarz, Chrom-Schrift) ---------- */
.hero {
  position: relative;
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding-block: calc(var(--header-space) + clamp(40px, 7vw, 80px)) clamp(80px, 10vw, 128px);
  text-align: center;
}
.hero-title {
  font-size: clamp(2.25rem, 0.9rem + 7.2vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 17ch;
  margin-inline: auto;
}
.hero > .container { min-width: 0; }
.hero-text { margin: 28px auto 0; max-width: 44ch; }
.hero-note { margin-top: 18px; font-size: 0.9375rem; color: var(--text-2); }

/* Kontakt-Angebot am Ende eines Abschnitts */
.section-cta { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.section-cta p { color: var(--text-2); font-size: 0.9375rem; }

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contact-person img {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.contact-person p { display: grid; gap: 1px; line-height: 1.35; }
.contact-person b { font-weight: 600; }
.contact-person span { font-size: 0.9375rem; color: var(--text-2); }

/* dunkler Schleier hinter dem Hero-Text: Linien bleiben sichtbar, Text bleibt ruhig */
.hero .container::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12% 0;
  background: radial-gradient(closest-side, rgb(0 0 0 / 0.86), rgb(0 0 0 / 0.5) 55%, transparent);
  pointer-events: none;
}

/* Scroll-Hinweis: ein Datenpaket läuft eine Linie hinab */
.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(20px, 4vh, 40px);
  width: 1px;
  height: 56px;
  overflow: hidden;
  background: var(--line-strong);
  transform: translateX(-50%);
}
.scroll-cue span {
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 20px;
  background: linear-gradient(to bottom, transparent, var(--text));
  animation: cue-flow 2.4s var(--ease) infinite;
}
@keyframes cue-flow {
  from { transform: translateY(-20px); }
  to { transform: translateY(56px); }
}
@media (max-height: 640px) { .scroll-cue { display: none; } }

/* Glanz wandert langsam über das Chrom-Wort */
@media (prefers-reduced-motion: no-preference) {
  .hero-title em { animation: chrome-sheen 8s ease-in-out infinite alternate; }
}
@keyframes chrome-sheen {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

/* ---------- Scroll-Story: Objekte wechseln beim Scrollen ---------- */
.story-list { list-style: none; display: grid; gap: 56px; }
.story-step h3 { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
.story-step p { margin-top: 18px; }
.story-stage { display: none; }
.story-stage canvas { width: 100%; height: 100%; }
.story-dots { display: none; }

/* Ohne JS oder bei reduzierter Bewegung: einfache Liste. Sonst (html.story-on) angepinnte Bühne. */
.story-on .story { height: 300vh; padding: 0; } /* 4 Schritte, je gut eine halbe Bildschirmhöhe */
.story-on .story-pin {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 100dvh;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.story-on .story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
}
.story-on .story-list { position: relative; display: block; min-height: 22rem; }
.story-on .story-step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.story-on .story-step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.story-on .story-stage {
  display: block;
  aspect-ratio: 1;
  width: 100%;
  max-width: min(560px, 62dvh);
  margin-inline: auto;
}
.story-on .story-dots {
  position: absolute;
  z-index: 2;
  right: clamp(12px, 2.5vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
}
.story-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.story-dots span.is-active { background: var(--text); transform: scale(1.5); }

@media (max-width: 859px) {
  .story-on .story-grid { grid-template-columns: 1fr; gap: 12px; }
  .story-on .story-stage { order: -1; max-width: min(340px, 40dvh); }
  .story-on .story-list { min-height: 15.5rem; }
  .story-on .story-step { justify-content: flex-start; }
  .story-step .lead { font-size: 1.0625rem; }
}

/* Handy quer und andere flache Fenster: Bühne und Text nebeneinander, unter der Kopfleiste */
@media (max-height: 560px) and (min-width: 560px) {
  .story-on .story-pin { padding-top: var(--header-space); }
  .story-on .story-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; }
  .story-on .story-stage { order: 0; max-width: min(300px, calc(100dvh - var(--header-space) - 24px)); }
  .story-on .story-list { min-height: 14rem; }
  .story-on .story-step { justify-content: center; }
  .story-step h3 { font-size: clamp(1.6rem, 1rem + 2.4vw, 2.4rem); }
  .story-step p { margin-top: 12px; }
  .story-step .lead { font-size: 1rem; }
}

/* ---------- Aussage: Wörter füllen sich beim Scrollen ---------- */
.statement-text {
  font-size: clamp(1.9rem, 1rem + 3.6vw, 4.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 21ch;
  text-wrap: balance;
}
.statement-text .w { opacity: 0.16; transition: opacity 0.35s linear; }
.statement-text .w.is-on { opacity: 1; }

.pains {
  list-style: none;
  margin-top: clamp(56px, 8vw, 104px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.pain { padding: clamp(24px, 3vw, 36px); }
.pain h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); letter-spacing: -0.02em; }
.pain p { margin-top: 10px; color: var(--text-2); }

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

/* Zahlen mit Quellenangabe (Ausgangslage, FAQ). Gestaltung der Zahlen kommt von .facts (Über mich). */
.statement-facts { margin-top: clamp(48px, 6vw, 88px); }
.statement-facts li { grid-template-rows: auto 1fr auto; }
.statement-facts span { max-width: 30ch; }
.fact-source {
  display: block;
  max-width: 36ch;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-3);
}
.fact-source a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.fact-source a:hover { color: var(--text); }

/* ---------- KI braucht eine Datenbasis ---------- */
.ki-head { max-width: 900px; }
.ki-head .section-title { max-width: none; }
.ki-head .lead { max-width: 52ch; }
.ki-head .lead { margin-top: 22px; }
.ki-note { margin-top: clamp(40px, 5vw, 64px); max-width: 68ch; display: grid; gap: 14px; color: var(--text-2); }
.ki-note p:last-of-type { color: var(--text); font-weight: 500; }
.ki-note .fact-source { max-width: none; }

/* ---------- Beratung und Dashboards: Excel-Dateien fließen in ein Dashboard ---------- */
.dash-head { max-width: 780px; }
.dash-head .section-title { max-width: 20ch; }
.dash-head .lead { margin-top: 22px; }
.dash-head .lead + .lead { margin-top: 14px; }

.flow {
  margin-top: clamp(48px, 6vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) clamp(56px, 9vw, 130px) minmax(0, 1.25fr);
  align-items: center;
}
.flow figcaption { grid-column: 1 / -1; margin-top: 20px; font-size: 0.8125rem; color: var(--text-3); }

/* Dateien: bewusst etwas unordentlich */
.flow-files {
  list-style: none;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-end;
  gap: 10px;
}
.flow-files li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--glass-tint);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  box-shadow: 0 0 0 1px var(--glass-edge), var(--glass-inner), 0 8px 20px -14px rgb(0 0 0 / 0.3);
  color: var(--text-2);
  font-size: 0.8125rem;
  white-space: nowrap;
}
.flow-files li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 16px;
  border: 1.5px solid var(--text-3);
  border-radius: 3px;
  background:
    linear-gradient(var(--text-3) 0 0) 0 35% / 100% 1px no-repeat,
    linear-gradient(var(--text-3) 0 0) 0 68% / 100% 1px no-repeat,
    linear-gradient(var(--text-3) 0 0) 50% 0 / 1px 100% no-repeat;
}
.flow-files li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.flow-files li:nth-child(1) { transform: rotate(-1.2deg); }
.flow-files li:nth-child(2) { transform: rotate(0.8deg); margin-right: 14px; }
.flow-files li:nth-child(3) { transform: rotate(-0.5deg); margin-right: 4px; }
.flow-files li:nth-child(4) { transform: rotate(1deg); margin-right: 22px; }
.flow-files li:nth-child(5) { transform: rotate(-0.8deg); margin-right: 8px; }
.flow-files li:nth-child(6) { transform: rotate(0.6deg); margin-right: 16px; }

/* Datenströme zwischen Dateien und Dashboard */
.flow-lines { display: block; width: 100%; overflow: visible; }
.flow-lines-h { align-self: stretch; height: 100%; }
.flow-lines-v { display: none; height: 64px; }
.flow-lines path { fill: none; stroke-linecap: round; }
.flow-base path { stroke: var(--line-strong); stroke-width: 1.2; }
.flow-pulse path { stroke: var(--text); stroke-width: 2; stroke-dasharray: 9 91; stroke-dashoffset: 100; opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) {
  .flow-pulse path { animation: flow-run 3.2s linear infinite; animation-delay: calc(var(--i, 0) * -0.55s); }
}
@keyframes flow-run { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* Dashboard-Ausschnitt (Illustration) */
.dash-mock {
  position: relative;
  isolation: isolate;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--r-card);
  background: rgb(255 255 255 / 0.62);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 0 0 1px var(--glass-edge), var(--glass-inner), var(--glass-shadow-lift);
}
.dash-mock::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(150deg, var(--glass-rim) 0%, var(--glass-rim-soft) 26%, transparent 50%, var(--glass-rim-soft) 74%, var(--glass-rim) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.dash-mock-head { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; }
.dash-mock-head b { font-weight: 600; letter-spacing: -0.01em; }
.dash-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--black-gloss); box-shadow: 0 0 0 3px rgb(0 0 0 / 0.06); }
.dash-stamp { margin-left: auto; font-size: 0.75rem; color: var(--text-3); }

.dash-kpis {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.dash-kpis div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.72);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.05);
}
.dash-kpis span { font-size: 0.75rem; color: var(--text-3); }
.dash-kpis b { font-size: clamp(1.05rem, 0.8rem + 0.9vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dash-kpis small { font-size: 0.75rem; color: var(--text-2); font-variant-numeric: tabular-nums; }

.dash-charts { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; }
.dash-chart {
  padding: 12px 14px 10px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.72);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.05);
}
.dash-chart span { display: block; margin-bottom: 8px; font-size: 0.75rem; color: var(--text-3); }
.dash-chart svg { width: 100%; height: auto; overflow: visible; }
.dash-chart .grid { stroke: rgb(0 0 0 / 0.08); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dash-chart .area { fill: url(#dash-area); }
.dash-chart .series { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.dash-chart .end { fill: var(--ink); stroke: var(--white); stroke-width: 2; vector-effect: non-scaling-stroke; }
.dash-chart path:not(.area):not(.series) { fill: #c7c7cc; }
.dash-chart path.is-hl { fill: var(--ink); }


/* Vergleich: Standardlösung und Lösung nach Maß */
.compare-head { margin-top: clamp(64px, 8vw, 112px); max-width: 780px; }
.compare-head h3 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.compare-head .lead { margin-top: 18px; }
.compare {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.compare-col { padding: clamp(24px, 3vw, 36px); }
.compare-col h4 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); letter-spacing: -0.02em; }
.compare-std h4 { color: var(--text-2); }
.compare .compare-std ul li { color: var(--text-3); }
/* eigene Lösung: schwarzer Lack, hebt sich klar ab */
.compare-own {
  background: radial-gradient(120% 90% at 15% 0%, #3a3a3d 0%, #161618 50%, #000 100%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  --glass-rim: rgb(255 255 255 / 0.45);
  --glass-rim-soft: rgb(255 255 255 / 0.04);
  --glow: rgb(255 255 255 / 0.14);
}
.compare-own h4 { color: var(--paper); }
.compare .compare-own ul li { color: #d2d2d7; }
.compare .compare-own ul li::before { background: #a1a1a6; }

@media (max-width: 859px) {
  .flow { grid-template-columns: 1fr; }
  .flow-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .flow-files li { transform: none !important; margin-right: 0 !important; padding: 8px 10px; font-size: 0.75rem; }
  .flow-lines-h { display: none; }
  .flow-lines-v { display: block; margin-block: 6px; }
}
@media (max-width: 699px) {
  .compare { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
  .dash-kpis { grid-template-columns: 1fr; gap: 6px; }
  .dash-kpis div { grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; padding: 10px 12px; }
  .dash-kpis b { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .dash-stamp { display: none; }
  .dash-charts { gap: 6px; }
  .dash-chart { padding: 10px; }
}

/* ---------- Glas-Karte mit Lichtpunkt unter dem Zeiger ---------- */
.tile {
  position: relative;
  border-radius: var(--r-card);
  isolation: isolate;
  transition: transform 0.6s var(--ease-liquid), box-shadow 0.5s var(--ease), background-color 0.4s var(--ease);
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--glow), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
@media (hover: hover) {
  .tile:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--glass-edge), var(--glass-inner), var(--glass-shadow-lift); }
  .tile:hover::before { opacity: 1; }
}

/* ---------- Diagramm-Abschnitt ---------- */
.insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.insight-copy .lead { margin-top: 22px; }

.chart-card {
  position: relative;
  isolation: isolate;
  border-radius: var(--r-card);
  padding: clamp(22px, 3.2vw, 40px);
}
.chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}
.chart-title { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.chart-unit { display: block; margin-top: 2px; font-size: 0.875rem; color: var(--text-3); font-weight: 400; letter-spacing: 0; }

/* Segment-Umschalter: Glas-Daumen in einer vertieften Spur */
.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-pill);
  background: rgb(0 0 0 / 0.06);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.06);
}
.segmented button {
  min-height: 36px;
  padding: 6px 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.4s var(--ease-liquid), color 0.25s var(--ease), box-shadow 0.4s var(--ease-liquid);
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] {
  background: rgb(255 255 255 / 0.94);
  color: var(--text);
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.08), 0 3px 8px rgb(0 0 0 / 0.12), inset 0 1px 0 var(--white);
}

.bars { list-style: none; display: grid; gap: 14px; }
.bar-row {
  position: relative;
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.bar-label {
  font-size: 0.9375rem;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s var(--ease);
}
.bar-row.is-hl .bar-label { color: var(--text); font-weight: 600; }
.bar-track { position: relative; height: 22px; container-type: inline-size; }
/* Balken wird per transform eingeschoben: Datenende bleibt rund, Basislinie gerade. */
.bar-clip { position: absolute; inset: 0; overflow: hidden; }
.bar-fill {
  position: absolute;
  inset: 0;
  border-radius: 0 5px 5px 0;
  background: var(--bar);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5);
  transform: translateX(calc((var(--p, 0) - 1) * 100%));
  transition: transform 0.8s var(--ease);
}
.bar-row.is-hl .bar-fill { background: var(--bar-hl); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22); }
.bar-value {
  position: absolute;
  top: 50%;
  left: 0;
  padding-left: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  white-space: nowrap;
  transform: translate(calc(var(--p, 0) * 100cqi), -50%);
  transition: transform 0.8s var(--ease), color 0.3s var(--ease);
}
.bar-row.is-hl .bar-value { color: var(--text); }

.chart-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 200px;
  padding: 12px 14px;
  border-radius: var(--r-field);
  background: rgb(29 29 31 / 0.94);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 12px 30px -10px rgb(0 0 0 / 0.5);
  color: var(--paper);
  font-size: 0.8125rem;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}
.chart-tooltip.is-visible { opacity: 1; transform: none; }
.chart-tooltip strong { display: block; margin-bottom: 4px; font-size: 0.875rem; }
.chart-tooltip dl { display: grid; grid-template-columns: auto auto; gap: 2px 16px; margin: 0; }
.chart-tooltip dt { opacity: 0.7; }
.chart-tooltip dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.chart-insight {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  min-height: 4.6em;
}
.chart-insight-key { width: 10px; height: 10px; margin-top: 0.45em; border-radius: 3px; background: var(--bar-hl); }
.chart-insight p { font-weight: 500; letter-spacing: -0.01em; }
.chart-note { margin-top: 14px; font-size: 0.8125rem; color: var(--text-3); }

@media (max-width: 959px) { .insight-grid { grid-template-columns: 1fr; } }
@media (max-width: 479px) {
  .bar-row { grid-template-columns: 1fr; gap: 6px; }
  .bars { gap: 16px; }
}

/* ---------- Leistungen: Galerie zum Durchschieben ---------- */
.services-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.gallery-nav { display: flex; gap: 10px; }
.gallery-btn {
  position: relative;
  isolation: isolate;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), opacity 0.2s var(--ease), transform 0.4s var(--ease-liquid);
}
.gallery-btn:hover { background: var(--glass-tint-hover); }
.gallery-btn:active { transform: scale(0.92); }
.gallery-btn[disabled] { opacity: 0.35; cursor: default; }
.gallery-btn svg { width: 18px; height: 18px; }

.gallery {
  position: relative;
  z-index: 2;
  list-style: none;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-block: 8px 28px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }

.service {
  flex: 0 0 min(440px, 82vw);
  scroll-snap-align: start;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(26px, 3vw, 38px);
}
.service h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }
.service > p { color: var(--text-2); }

/* schwarzer Lack */
.service-carbon {
  background: radial-gradient(120% 70% at 20% 0%, #3a3a3d 0%, #161618 45%, #000 100%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  --glass-rim: rgb(255 255 255 / 0.45);
  --glass-rim-soft: rgb(255 255 255 / 0.04);
  --glow: rgb(255 255 255 / 0.14);
}
.service-carbon h3 { color: var(--paper); }
.service-carbon > p { color: #a1a1a6; }

/* gebürstetes Chrom */
.service-chrome {
  background: var(--chrome);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  --glow: rgb(255 255 255 / 0.9);
}
.service-chrome h3 { color: var(--ink); }
.service-chrome > p { color: #2c2c2e; }

.service-visual { margin-top: auto; padding-top: 24px; }
.service-visual figcaption { margin-top: 12px; font-size: 0.8125rem; color: var(--text-3); }
.service-carbon .service-visual figcaption { color: #86868b; }

.mini-line { width: 100%; height: auto; overflow: visible; }
.mini-line .grid { stroke: rgb(255 255 255 / 0.16); stroke-width: 1; }
.mini-line .series { fill: none; stroke: #a1a1a6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mini-line .end { fill: var(--white); stroke: var(--black); stroke-width: 2; }

.mini-cols { width: 100%; height: auto; }
.mini-cols path { fill: #c7c7cc; }
.mini-cols path.is-hl { fill: var(--ink); }

.kpi-figure {
  margin-top: auto;
  padding-top: 24px;
  font-size: clamp(4rem, 3rem + 4vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--ink);
}
.kpi-figure small { display: block; margin-top: 14px; font-size: 0.9375rem; font-weight: 400; letter-spacing: -0.005em; line-height: 1.4; color: #2c2c2e; }

.chips { list-style: none; margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.62);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), inset 0 1px 0 var(--white), 0 2px 6px rgb(0 0 0 / 0.05);
  font-size: 0.9375rem;
  font-weight: 500;
}

@media (max-width: 599px) {
  .gallery-nav { display: none; }
  .service { min-height: 460px; }
}

/* ---------- Vorgehen ---------- */
.process-head .lead { margin-top: 20px; }
.steps {
  list-style: none;
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.step { padding: 28px 26px 30px; display: flex; flex-direction: column; }
.step-mark {
  width: 14px; height: 14px;
  margin-bottom: 44px;
  border-radius: 50%;
  border: 2px solid var(--text);
}
.step:first-child .step-mark { background: var(--black-gloss); border-color: var(--ink); }
.step h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.step p { margin-top: 10px; color: var(--text-2); font-size: 1rem; }
.step-result {
  margin-top: auto;
  padding-top: 22px;
  font-size: 0.9375rem;
  color: var(--text) !important;
  font-weight: 500;
}
.step-result b { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-3); margin-bottom: 2px; }

@media (max-width: 1023px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .steps { grid-template-columns: 1fr; }
  .step-mark { margin-bottom: 24px; }
}

/* ---------- Über mich ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}
/* Porträt bleibt beim Lesen des langen Profiltexts neben dem Text stehen */
@media (min-width: 900px) {
  .about-grid > .portrait { position: sticky; top: calc(var(--header-space) + 24px); }
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-card);
  overflow: hidden;
  background: radial-gradient(120% 80% at 25% 10%, #3a3a3d 0%, #121214 50%, #000 100%);
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.45);
  display: grid;
  place-items: center;
  --glass-rim: rgb(255 255 255 / 0.45);
  --glass-rim-soft: rgb(255 255 255 / 0.04);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portrait-initials {
  font-size: clamp(4.5rem, 3rem + 5vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  background: var(--chrome-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.5;
}
.portrait-hint {
  position: absolute;
  bottom: 18px; left: 0; right: 0;
  text-align: center;
  font-size: 0.8125rem;
  color: rgb(245 245 247 / 0.6);
}
.about-text .lead { margin-top: 24px; }
.about-text .lead + .lead { margin-top: 14px; }

.principles { list-style: none; margin-top: 40px; display: grid; }
.principles li { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding-block: 20px; border-top: 1px solid var(--line); }
.principles b { font-weight: 600; letter-spacing: -0.01em; }
.principles span { color: var(--text-2); }

@media (max-width: 899px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
}
@media (max-width: 599px) { .principles li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Profil (Aufbau wie bei großen Beratungen) ---------- */
.profile-name { max-width: none; }
.profile-degree { font-size: max(0.5em, 1rem); font-weight: 500; letter-spacing: -0.01em; color: var(--text-2); }
.profile-role { margin-top: 10px; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); color: var(--text-2); letter-spacing: -0.01em; }
.profile-tags { list-style: none; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.profile-tags li {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.62);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.07), inset 0 1px 0 var(--white);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
}
.profile-bio { margin-top: 32px; display: grid; gap: 14px; }
.about-text .profile-bio .lead { margin-top: 0; }
.profile-bio p:not(.lead) { max-width: 60ch; color: var(--text-2); }
.profile-meta { margin: 32px 0 0; border-top: 1px solid var(--line); }
.profile-meta div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.profile-meta dt { font-weight: 600; }
.profile-meta dd { margin: 0; color: var(--text-2); }
.experience .principles { max-width: 820px; }
@media (max-width: 599px) { .profile-meta div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Erfahrung: Zahlen und Kompetenzen ---------- */
.experience { margin-top: clamp(72px, 9vw, 128px); }
.facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line-strong);
}
.facts li { display: grid; gap: 10px; align-content: start; }
.facts b {
  justify-self: start;
  font-size: clamp(3.25rem, 2rem + 4vw, 5.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  background: var(--title-fill);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.facts span { max-width: 26ch; color: var(--text-2); }

.experience-title {
  margin-top: clamp(64px, 8vw, 112px);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
}
.skills {
  list-style: none;
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.skill { padding: clamp(24px, 3vw, 36px); }
.skill h4 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); letter-spacing: -0.02em; }
.skill p { margin-top: 10px; color: var(--text-2); }
.skill ul, .compare ul { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.skill ul li, .compare ul li { position: relative; padding-left: 20px; color: var(--text-2); }
.skill ul li::before, .compare ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.78em - 1px);
  width: 9px;
  height: 2px;
  border-radius: 1px;
  background: var(--text-3);
}

@media (max-width: 699px) {
  .facts { grid-template-columns: 1fr; gap: 28px; }
  .skills { grid-template-columns: 1fr; }
}

/* ---------- Aus der Praxis: Projekte als Ausgangslage, Vorgehen, Ergebnis ---------- */
.cases {
  list-style: none;
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.case { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.case-tag { font-size: 0.8125rem; font-weight: 600; color: var(--text-3); }
.case h3 { margin-top: 10px; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); letter-spacing: -0.02em; }
.case dl { margin: 22px 0 0; display: grid; border-top: 1px solid var(--line); }
.case dl div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.case dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.case dt { font-size: 0.875rem; font-weight: 600; padding-top: 1px; }
.case dd { margin: 0; color: var(--text-2); font-size: 1rem; }
.case dl div:last-child dd { color: var(--text); font-weight: 500; }

@media (max-width: 699px) { .cases { grid-template-columns: 1fr; } }
/* Ungerade Anzahl: letzte Kachel über die volle Breite, Text bleibt in lesbarer Zeilenlänge */
@media (min-width: 700px) {
  .case:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .case:last-child:nth-child(odd) dl { max-width: 760px; }
}
@media (max-width: 599px) { .case dl div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; margin-inline: auto; }
.faq-list { margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 20px 0;
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 20px; height: 20px; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 1.5px;
  margin: -0.75px 0 0 -7px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease-liquid);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-item summary:hover { color: var(--text-2); }
.faq-answer { padding: 0 44px 26px 0; color: var(--text-2); max-width: 62ch; }
.faq-answer p + p { margin-top: 12px; }
.faq-answer .fact-source { margin-top: 12px; max-width: none; }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-intro .lead { margin-top: 22px; }
.contact-person { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.next-steps { list-style: none; counter-reset: step; margin-top: 28px; display: grid; border-top: 1px solid var(--line); }
.next-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2rem 1fr;
  column-gap: 6px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.next-steps li::before { content: counter(step); grid-row: span 2; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.next-steps b { font-weight: 600; }
.next-steps span { font-size: 0.9375rem; color: var(--text-2); }
.contact-direct { list-style: none; margin-top: 36px; display: grid; gap: 16px; }
.contact-direct li { display: grid; gap: 2px; }
.contact-direct span { font-size: 0.8125rem; font-weight: 600; color: var(--text-3); }
.contact-direct a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  justify-self: start;
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.2s var(--ease);
}
.contact-direct a:hover { text-decoration-color: var(--text); }

.form {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(22px, 3.4vw, 40px);
  border-radius: var(--r-card);
}
.field { display: grid; gap: 8px; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.9375rem; font-weight: 500; }
.field label .opt { font-weight: 400; color: var(--text-3); }
.field input, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-field);
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.25);
  color: var(--text);
  caret-color: var(--text);
  font: inherit;
  font-size: 1.0625rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-placeholder); opacity: 1; }
.field input:hover, .field textarea:hover { border-color: var(--text-3); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--text);
  background: rgb(255 255 255 / 0.09);
  box-shadow: 0 0 0 4px rgb(255 255 255 / 0.14);
}
/* Fehler ohne Farbe: kräftiger Rand plus Hinweis mit Ausrufezeichen */
.field [aria-invalid="true"] { border-color: var(--text); border-width: 2px; padding: 12px 15px; }
.field-error { min-height: 1.2em; font-size: 0.875rem; font-weight: 500; color: var(--text); }
.field-error:not(:empty)::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 16px; height: 16px;
  margin-right: 6px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: -2px;
}

.form-footer { grid-column: 1 / -1; display: grid; gap: 14px; justify-items: start; }
.form-hint { font-size: 0.875rem; color: var(--text-3); max-width: 60ch; }
.form-hint a { color: var(--text-2); }
.form-status { font-size: 0.9375rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-footer .form-status { order: 1; }
.form-footer .form-hint { order: 2; }
.form-status a { text-decoration: underline; text-underline-offset: 3px; }
.form [type="submit"][aria-busy="true"] { opacity: 0.6; cursor: progress; }

/* Spam-Schutz-Feld: aus dem sichtbaren Bereich geschoben (nicht display:none, das erkennen Bots) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Bestätigung nach dem Senden ersetzt die Felder */
.form-success { display: none; }
.form.is-sent > :not(.form-success) { display: none; }
.form.is-sent .form-success { grid-column: 1 / -1; display: grid; justify-items: start; gap: 12px; padding-block: 8px; outline: none; }
.form-success-mark {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--chrome);
  color: var(--ink);
}
.form-success-mark svg { width: 22px; height: 22px; }
.form-success h3 { margin-top: 6px; font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); letter-spacing: -0.02em; }
.form-success p { color: var(--text-2); }
.form-success .btn { margin-top: 8px; }
.contact-grid [data-close-modal] { display: none; }

/* ---------- Kontakt-Fenster (Dialog) ---------- */
.modal {
  width: min(680px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--r-card);
  background: var(--glass-tint-strong);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--glass-edge), var(--glass-inner), 0 40px 80px -24px rgb(0 0 0 / 0.75);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal::backdrop {
  background: rgb(0 0 0 / 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.modal[open] { animation: modal-in 0.5s var(--ease); }
.modal[open]::backdrop { animation: modal-fade 0.3s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
@keyframes modal-fade { from { opacity: 0; } }
html:has(.modal[open]) { overflow: hidden; }

.modal-inner { position: relative; padding: clamp(22px, 3.4vw, 40px); }
.modal-head { display: flex; align-items: center; gap: 16px; padding-right: 52px; }
.modal-head img { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.modal-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.03em; }
.modal-head p { margin-top: 4px; font-size: 0.9375rem; color: var(--text-2); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--hover);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.modal-close:hover { background: var(--line-strong); }
.modal-close svg { width: 16px; height: 16px; }
.modal .form {
  margin-top: 28px;
  padding: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.modal .form::after { display: none; }
@media (max-width: 599px) {
  .modal-head { align-items: flex-start; }
  .modal-head img { width: 44px; height: 44px; }
}

@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 599px) {
  .form { grid-template-columns: 1fr; }
  .form-footer .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { padding-block: 40px 48px; }
[data-theme="dark"].site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.footer-claim { margin-top: 8px; font-size: 0.875rem; color: var(--text-3); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.875rem; color: var(--text-3); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal { padding-block: calc(var(--header-space) + clamp(32px, 5vw, 64px)) clamp(48px, 7vw, 96px); }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(1.9rem, 1.1rem + 4vw, 3.75rem); margin-bottom: 44px; }
.legal h2 { font-size: 1.5rem; margin: 48px 0 14px; letter-spacing: -0.02em; }
.legal h3 { font-size: 1.0625rem; margin: 28px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin-top: 10px; display: grid; gap: 6px; }
.legal address { font-style: normal; color: var(--text-2); }
.legal a { color: var(--text); text-underline-offset: 3px; }
.legal-meta { margin-top: 48px; font-size: 0.875rem; color: var(--text-3); }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 24px; color: var(--text-2); text-decoration: none; font-weight: 500; }
.back-link:hover { color: var(--text); }
.back-link svg { width: 16px; height: 16px; }

/* Platzhalter, die vor Veröffentlichung ersetzt werden müssen */
.todo {
  background: var(--ink);
  color: var(--white);
  padding: 0 6px;
  border-radius: 5px;
  font-weight: 600;
}

/* ---------- Einblenden beim Scrollen ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .tile.reveal.is-visible { transition: opacity 0.9s var(--ease), transform 0.6s var(--ease-liquid), box-shadow 0.5s var(--ease), background-color 0.4s var(--ease); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .statement-text .w { opacity: 1; }
  .scroll-cue span { animation: none; transform: translateY(18px); }
  .flow-pulse path { animation: none; stroke-dashoffset: 60; }
}

/* Weniger Transparenz (Systemeinstellung) oder kein Backdrop-Filter: Glas wird fast deckend */
@media (prefers-reduced-transparency: reduce) {
  .tile, .chart-card, .form, .btn-ghost, .gallery-btn,
  .site-header .header-inner::before, .nav-menu {
    background: var(--glass-tint-strong) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .service-carbon { background: #111 !important; }
  .service-chrome { background: var(--chrome) !important; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tile, .chart-card, .form, .btn-ghost, .gallery-btn,
  .site-header .header-inner::before, .nav-menu { background: var(--glass-tint-strong); }
}

@media (forced-colors: active) {
  .bar-fill { background: CanvasText; }
  .bar-row.is-hl .bar-fill { background: Highlight; }
  .hero-title em, .section-title em, .statement-text em, .statement-text em .w, .portrait-initials, .facts b {
    -webkit-text-fill-color: currentColor;
    background: none;
  }
}

/* ---------- Handy: Feinschliff für kleine Bildschirme und Touch ---------- */
.label-short { display: none; }

@media (pointer: coarse) {
  .segmented button { min-height: 44px; padding-inline: 18px; }
  .btn-sm { min-height: 44px; padding-inline: 18px; }
}

@media (max-width: 599px) {
  /* lange deutsche Wörter sauber trennen statt über den Rand laufen lassen */
  h1, h2, h3, h4, p, li, dd, summary {
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 12 5 5;
  }
  /* Hero-Überschrift passt durch ihre Schriftgröße, dort keine Trennung */
  .hero-title { -webkit-hyphens: manual; hyphens: manual; }
  .section { padding-block: clamp(72px, 18vw, 96px); }
  .chart-head { gap: 12px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
}

@media (max-width: 419px) {
  .flow-files { grid-template-columns: 1fr; }
  .label-long { display: none; }
  .label-short { display: inline; }
  .site-header .header-inner { gap: 12px; }
}

