/* =====================================================================
   IWZ ecoprojects — main.css
   "Future Circular": premium, futuristic, clean. Glass + mesh-gradient +
   glow, soft-rounded. Fully themeable (dark default + light). Every colour
   is a token so the theme toggle inverts cleanly — never hardcode #fff/rgba
   that bypasses the tokens.
   ===================================================================== */

/* ----------------------------------------------------------------- TOKENS */
:root,
:root[data-theme="dark"] {
  /* surfaces — cool blue-grey-black (the palette the client liked) */
  --bg:        #0b1116;
  --bg-2:      #0e151b;
  --bg-3:      #111a21;
  --card:      #121b22;
  --card-2:    #16212a;
  --glass-bg:      rgba(255, 255, 255, 0.045);
  --glass-bg-2:    rgba(255, 255, 255, 0.06);
  --glass-border:  rgba(255, 255, 255, 0.10);
  --glass-hi:      rgba(255, 255, 255, 0.16);
  --line:      rgba(255, 255, 255, 0.09);
  --line-2:    rgba(255, 255, 255, 0.05);

  /* text */
  --text:      #eef3f1;
  --text-dim:  #a3b4af;
  --text-faint:#6d807b;
  --on-brand:  #ffffff;

  /* brand — green CI (stays per client) + a luminous signal green for glow */
  --brand:        #3a9d4e;
  --brand-2:      #2f7d3f;
  --brand-bright: #58b873;   /* calmer accent green (not neon) */
  --brand-soft:   #a7cfb1;
  --teal:         #4aa58f;
  --brand-glow:   rgba(88, 184, 115, 0.18);
  --brand-tint:   rgba(88, 184, 115, 0.09);

  /* gradient atmospheres — very subtle */
  --mesh-1: rgba(58, 120, 78, 0.10);
  --mesh-2: rgba(60, 130, 120, 0.06);
  --mesh-3: rgba(110, 130, 150, 0.05);

  --shadow:    0 26px 64px -32px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 12px 30px -20px rgba(0, 0, 0, 0.5);
  --glow:      0 22px 50px -30px rgba(0, 0, 0, 0.55);

  --grid-line: rgba(255, 255, 255, 0.028);

  /* geometry — soft rounded (less angular, per Nils) */
  --radius:    16px;
  --radius-sm: 11px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --pill:      999px;

  --container: 1240px;
  --gutter:    clamp(1.25rem, 4vw, 3rem);

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
  /* --font-body injected by _layout_head from global.fontFamily (IBM Plex Sans) */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
  --bg:        #f3f7f4;
  --bg-2:      #ffffff;
  --bg-3:      #eef3ef;
  --card:      #ffffff;
  --card-2:    #f6faf7;
  --glass-bg:      rgba(255, 255, 255, 0.70);
  --glass-bg-2:    rgba(255, 255, 255, 0.85);
  --glass-border:  rgba(16, 42, 28, 0.10);
  --glass-hi:      rgba(255, 255, 255, 0.95);
  --line:      rgba(16, 42, 28, 0.12);
  --line-2:    rgba(16, 42, 28, 0.07);

  --text:      #0e1a14;
  --text-dim:  #43564d;
  --text-faint:#73857c;
  --on-brand:  #ffffff;

  --brand:        #2f7d3f;
  --brand-2:      #245f30;
  --brand-bright: #2f8f4a;
  --brand-soft:   #2c6e3a;
  --teal:         #2a8f78;
  --brand-glow:   rgba(31, 80, 45, 0.12);
  --brand-tint:   rgba(47, 125, 63, 0.07);

  --mesh-1: rgba(58, 130, 80, 0.08);
  --mesh-2: rgba(60, 140, 120, 0.05);
  --mesh-3: rgba(120, 150, 140, 0.05);

  --shadow:    0 26px 56px -34px rgba(20, 50, 35, 0.18);
  --shadow-sm: 0 12px 28px -20px rgba(20, 50, 35, 0.12);
  --glow:      0 22px 46px -30px rgba(20, 50, 35, 0.20);

  --grid-line: rgba(16, 42, 28, 0.035);
}

/* Always-dark surfaces (hero + header over hero) — own tokens regardless of
   page theme, so a light-mode site keeps the dark industrial hero. */
.invert-dark,
.hero,
.header:not(.header--scrolled) {
  --bg: #0b1116; --bg-2: #0e151b; --bg-3: #111a21;
  --card: #121b22; --card-2: #16212a;
  --glass-bg: rgba(255,255,255,0.06); --glass-bg-2: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.14); --glass-hi: rgba(255,255,255,0.18);
  --line: rgba(255,255,255,0.13); --line-2: rgba(255,255,255,0.07);
  --text: #f1f5f3; --text-dim: #b4c2bd; --text-faint: #82948e; --on-brand: #ffffff;
  --brand-bright: #6cc585; --brand-soft: #a7cfb1;
  --brand-glow: rgba(108,197,133,0.18); --brand-tint: rgba(108,197,133,0.12);
}

/* ------------------------------------------------------------------- BASE */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Lenis required styles — without these, html{scroll-behavior:smooth} fights
   Lenis' per-frame scrollTo and the page freezes. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body, 'IBM Plex Sans', system-ui, sans-serif);
  font-size: clamp(1rem, 0.97rem + 0.18vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text);
}

::selection { background: var(--brand-bright); color: var(--on-brand); }

/* ----------------------------------------------------------- ATMOSPHERE BG */
/* Mesh / aurora gradient field + faint tech grid, fixed behind everything. */
.site-atmos {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(55% 48% at 84% 2%,  var(--mesh-1) 0%, transparent 62%),
    radial-gradient(42% 42% at 6% 12%,  var(--mesh-2) 0%, transparent 60%),
    radial-gradient(80% 52% at 50% 114%, var(--mesh-3) 0%, transparent 62%);
}
.site-atmos::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 78%);
}
@keyframes atmosDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, 1.5%, 0) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .site-atmos { animation: none; } }

/* film grain overlay (very subtle, organic) */
.site-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ----------------------------------------------------------------- LAYOUT */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  position: relative;
  padding-block: clamp(5rem, 9vw, 9rem);
}
.section--tight { padding-block: clamp(3.5rem, 6vw, 6rem); }
.section--alt { background: var(--bg-2); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* section head ------------------------------------------------------------ */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-bright);
}
.kicker::before {
  content: "";
  width: 1.6rem; height: 1px;
  background: linear-gradient(90deg, var(--brand-bright), transparent);
}
.section-head { max-width: 56rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker::before { display: none; }
.section-title {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem);
  margin-top: 1.1rem;
}
.section-intro {
  margin-top: 1.1rem;
  color: var(--text-dim);
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem);
  max-width: 44rem;
}
.section-head--center .section-intro { margin-inline: auto; }

.text-grad {
  color: var(--brand-bright);
}

/* ---------------------------------------------------------------- BUTTONS */
.btn {
  --btn-bg: var(--brand);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);           /* soft rounded, not sharp */
  border: 1px solid transparent;
  background-origin: border-box;   /* gradient fills under the border — no flipped edge lines */
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--brand-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--text-dim);
  color: var(--text);
  transform: translateY(-2px);
}
.btn--lg { padding: 1rem 1.8rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn__icon { transition: transform 0.35s var(--ease); }
.btn:hover .btn__icon--right { transform: translateX(4px); }

/* ----------------------------------------------------------------- HEADER */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  padding-block: 0.6rem;
}
.header--scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 56px;
}
.header__nav { display: flex; align-items: center; gap: 0.35rem; }
.header__nav-link {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  color: var(--text-dim);
  border-radius: var(--pill);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.header__nav-link::after {
  content: "";
  position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.32rem;
  height: 1.5px; border-radius: 2px;
  background: var(--brand-bright);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.header__nav-link:hover { color: var(--text); }
.header__nav-link:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 0.5rem; }

/* theme + lang controls */
.ctrl {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; min-width: 38px; padding: 0 0.5rem;
  border-radius: var(--pill);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-dim);
  font-size: 0.8rem; font-weight: 600;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.ctrl:hover { color: var(--text); border-color: var(--brand-bright); transform: translateY(-1px); }
.lang-switch { font-family: var(--font-mono); letter-spacing: 0.04em; gap: 0.15rem; }
.lang-switch__sep { opacity: 0.4; }
.lang-switch__on { color: var(--brand-bright); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun  { display: none; }

/* logo */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__word-iwz {
  font-family: var(--font-display); font-weight: 900; font-size: 1.32rem;
  letter-spacing: 0.02em; color: var(--text);
}
.brand__word-sub {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.28em;
  text-transform: lowercase; color: var(--brand-bright); margin-top: 2px;
}

.header__burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  align-items: center; justify-content: center;
}
.header__burger span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--text); position: relative;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.header__burger span::before, .header__burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  border-radius: 2px; background: var(--text);
  transition: transform 0.3s var(--ease);
}
.header__burger span::before { top: -6px; }
.header__burger span::after  { top: 6px; }
.header__burger[aria-expanded="true"] span { background: transparent; }
.header__burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.header__burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* mobile sheet — CLOSED must be non-interactive (hard rule) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  display: flex; flex-direction: column; justify-content: center;
  gap: 0.4rem; padding: 6rem var(--gutter) 3rem;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu__link {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.8rem, 8vw, 2.6rem); letter-spacing: -0.02em;
  color: var(--text); padding: 0.4rem 0;
  border-bottom: 1px solid var(--line-2);
}
.mobile-menu__link:last-of-type { border-bottom: 0; }
.mobile-menu__cta { margin-top: 1.6rem; }

/* ------------------------------------------------------------------- HERO */
/* hero — full-bleed dark industrial (their mockup direction), always dark */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 86vh, 920px);
  padding: clamp(7.5rem, 15vh, 10.5rem) 0 clamp(2.5rem, 5vh, 4rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.hero__media--fallback { background: radial-gradient(72% 95% at 82% 32%, var(--brand-tint), transparent 60%), var(--bg); }
.hero__dial-accent {
  position: absolute; top: 50%; right: -9%; transform: translateY(-50%);
  width: min(56vw, 740px); aspect-ratio: 1; opacity: 0.4;
}
.hero__dial-accent .hero__dial { width: 100%; height: 100%; display: block; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(96deg, var(--bg) 6%, color-mix(in srgb, var(--bg) 84%, transparent) 40%, color-mix(in srgb, var(--bg) 38%, transparent) 68%, color-mix(in srgb, var(--bg) 14%, transparent) 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 60%, transparent), transparent 26%);
}
.hero__inner { width: 100%; }
.hero__content { max-width: 41rem; }
.hero__kicker { margin-bottom: 1.5rem; }
.hero__title {
  font-size: clamp(2.7rem, 1.1rem + 6.6vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.hero__title .text-grad { display: inline-block; }
.hero__sub {
  margin-top: 1.6rem;
  max-width: 36rem;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  line-height: 1.6;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.2rem; }

/* spec strip — stats under hero */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(3rem, 6vw, 5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.spec {
  background: var(--bg);
  padding: 1.5rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.spec__value {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem);
  letter-spacing: -0.03em; color: var(--text);
  line-height: 1;
}
.spec__value sup { color: var(--brand-bright); font-size: 0.55em; top: -0.5em; }
.spec__label {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-faint);
}

/* --------------------------------------------------------------- CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.glass-card {
  position: relative;
  padding: 2rem 1.9rem;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 26%, var(--glass-border));
  box-shadow: var(--shadow);
}

.svc__icon, .icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--brand-tint);
  color: var(--brand-bright);
  margin-bottom: 1.5rem;
  transition: transform 0.4s var(--ease);
}
.svc__icon svg, .icon-badge svg { width: 24px; height: 24px; }
.glass-card:hover .svc__icon { transform: translateY(-2px); }
.svc__title { font-size: 1.22rem; font-weight: 700; margin-bottom: 0.55rem; letter-spacing: -0.01em; }
.svc__index {
  position: absolute; top: 1.4rem; right: 1.5rem;
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-faint);
  letter-spacing: 0.05em;
}
.svc__desc { color: var(--text-dim); font-size: 0.97rem; }

/* ---------------------------------------------------------------- PROZESS */
.prozess__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.2rem);
}
/* the glowing pipeline behind the phases */
.prozess__line {
  position: absolute;
  top: 36px; left: 8%; right: 8%;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}
.prozess__line::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
  transform: scaleX(var(--fill, 0)); transform-origin: left;
  transition: transform 1.4s var(--ease);
}
.phase { position: relative; padding-top: 0; }
.phase__node {
  position: relative; z-index: 1;
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem;
  color: var(--brand-bright);
  background: var(--bg);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 0 0 6px var(--bg-2);
  margin-bottom: 1.5rem;
  transition: border-color 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.phase.in .phase__node {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 6px var(--bg-2);
}
.phase__lead {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand-bright); margin-bottom: 0.5rem;
}
.phase__title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.7rem; }
.phase__desc { color: var(--text-dim); font-size: 0.98rem; }

/* ------------------------------------------------------------- KOMPETENZEN */
.kompetenz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.kompetenz-group__label {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand-bright);
  padding-bottom: 0.9rem; margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 0.6rem;
}
.kompetenz-group__label span {
  font-family: var(--font-mono); color: var(--text-faint); font-size: 0.7rem;
  margin-left: auto;
}
.kompetenz-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.1rem 0.3rem;
  border-bottom: 1px solid var(--line-2);
  transition: padding-left 0.35s var(--ease);
}
.kompetenz-item:hover { padding-left: 0.7rem; }
.kompetenz-item__icon {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-bright);
}
.kompetenz-item__icon svg { width: 19px; height: 19px; }
.kompetenz-item__text { color: var(--text); font-size: 0.98rem; padding-top: 0.45rem; }

/* ---------------------------------------------------------------- PROJEKTE */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.project {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--card);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.project:hover { transform: translateY(-6px); box-shadow: var(--glow); border-color: color-mix(in srgb, var(--brand-bright) 45%, transparent); }
.project__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 90% at 30% 0%, var(--brand-tint), transparent 60%),
    linear-gradient(150deg, var(--card-2), var(--bg-3));
  display: grid; place-items: center;
  overflow: hidden;
}
.project__media img { width: 100%; height: 100%; object-fit: cover; }
.project__media-ghost { width: 38%; height: 38%; color: var(--brand-bright); opacity: 0.5; }
.project__media::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 26px 26px; opacity: 0.6;
}
.project__tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 1;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.7rem; border-radius: var(--pill);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border: 1px solid var(--brand-tint);
  color: var(--brand-bright);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.project__body { padding: 1.5rem; }
.project__loc {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em;
  color: var(--text-faint); margin-bottom: 0.5rem;
}
.project__loc svg { width: 13px; height: 13px; }
.project__title { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.project__desc { color: var(--text-dim); font-size: 0.95rem; }

/* ------------------------------------------------------------------ ÜBER */
.ueber__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.ueber__lead p { color: var(--text-dim); font-size: 1.08rem; }
.cred {
  display: grid; gap: 0.9rem; margin-top: 2rem;
}
.cred__row {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
}
.cred__label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); min-width: 11rem; }
.cred__value { color: var(--text); font-weight: 600; }

.usp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.usp {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.usp:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand-bright) 40%, transparent); }
.usp__icon { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand-bright); margin-bottom: 1rem; }
.usp__icon svg { width: 22px; height: 22px; }
.usp__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.35rem; }
.usp__text { color: var(--text-dim); font-size: 0.92rem; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.member {
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.member:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--brand-bright) 45%, transparent); box-shadow: var(--glow); }
.member__avatar {
  width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  color: var(--on-brand);
  background: linear-gradient(150deg, var(--brand-bright), var(--brand-2));
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.2rem;
}
.member__name { font-size: 1.18rem; font-weight: 700; }
.member__role {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em;
  color: var(--brand-bright); margin: 0.3rem 0 0.9rem;
}
.member__note { color: var(--text-dim); font-size: 0.92rem; }

/* ---------------------------------------------------------------- KONTAKT */
.contact__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact__panel {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--radius-lg);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.field { margin-bottom: 1.1rem; }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-dim); margin-bottom: 0.45rem; }
.input, .textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit; font-size: 0.96rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .textarea:focus {
  outline: none; border-color: var(--brand-bright);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.textarea { resize: vertical; min-height: 130px; }

.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.3rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 0.5rem 0.9rem;
  border-radius: var(--pill); border: 1px solid var(--line);
  background: var(--bg); color: var(--text-dim);
  font-size: 0.85rem; transition: all 0.25s var(--ease);
}
.chip input:checked + span {
  border-color: var(--brand-bright); color: var(--brand-bright);
  background: var(--brand-tint);
}
.consent { display: flex; gap: 0.65rem; align-items: flex-start; margin: 1.2rem 0; font-size: 0.86rem; color: var(--text-dim); }
.consent input { margin-top: 0.25rem; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.consent a { color: var(--brand-bright); text-decoration: underline; text-underline-offset: 2px; }
.form-status { margin-top: 1rem; font-size: 0.9rem; min-height: 1.2rem; }
.form-status.is-ok { color: var(--brand-bright); }
.form-status.is-err { color: #ff8a7a; }
.field__error { color: #ff8a7a; font-size: 0.8rem; margin-top: 0.35rem; }

.contact__aside { display: grid; gap: 1rem; }
.contact-card {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--brand-tint), transparent), var(--glass-bg);
  border: 1px solid var(--glass-border);
}
.contact-card__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.3rem; }
.contact-card__sub { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 1.3rem; }
.contact-line { display: flex; align-items: center; gap: 0.85rem; padding: 0.7rem 0; color: var(--text); border-top: 1px solid var(--line-2); }
.contact-line:first-of-type { border-top: 0; }
.contact-line svg { width: 19px; height: 19px; color: var(--brand-bright); flex: none; }
.contact-line span { font-size: 0.95rem; }
.contact-line__addr { display: flex; flex-direction: column; line-height: 1.4; }

/* ----------------------------------------------------------------- FOOTER */
.footer { position: relative; padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer__tag { color: var(--text-dim); font-size: 0.96rem; max-width: 26rem; margin-top: 1.2rem; }
.footer__col-title { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1rem; }
.footer__link { display: block; color: var(--text-dim); padding: 0.35rem 0; transition: color 0.25s, transform 0.25s var(--ease); }
.footer__link:hover { color: var(--brand-bright); transform: translateX(3px); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  font-size: 0.84rem; color: var(--text-faint);
}

/* --------------------------------------------------------------- CTA BAND */
.cta-band {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(2.75rem, 6vw, 4.75rem);
  background: linear-gradient(150deg, var(--brand-2), var(--brand));
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(50% 80% at 80% 0%, rgba(255,255,255,0.22), transparent 60%),
    radial-gradient(60% 90% at 10% 100%, rgba(0,0,0,0.18), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band__title { color: #fff; font-size: clamp(1.8rem, 1.1rem + 2.6vw, 3rem); }
.cta-band__sub { color: rgba(255,255,255,0.85); margin: 1rem auto 2rem; max-width: 38rem; }
.cta-band .btn--primary { background: #fff; color: var(--brand-2); box-shadow: 0 14px 40px -12px rgba(0,0,0,0.4); }
.cta-band .btn--ghost { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); color: #fff; }

/* --------------------------------------------------------------- CONSENT */
/* Floaty glass card, bottom-left (hard-rule pattern), themed. */
.consent-banner {
  position: fixed; left: 1.25rem; bottom: 1.25rem; right: auto; top: auto;
  z-index: 9000; max-width: 340px;
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1.05rem 1.15rem;
  border-radius: var(--radius);
  background: var(--glass-bg-2);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
  box-shadow: var(--shadow);
  animation: consentIn 0.45s var(--ease) both;
}
@keyframes consentIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.consent-banner__text { margin: 0; font-size: 0.85rem; line-height: 1.5; color: var(--text-dim); }
.consent-banner__link { color: var(--brand-bright); text-decoration: underline; text-underline-offset: 2px; }
.consent-banner__actions { display: flex; gap: 0.6rem; }
.consent-banner__btn { flex: 1 1 0; padding: 0.6rem 0.9rem; font-size: 0.85rem; border-radius: var(--pill); }
@media (max-width: 480px) { .consent-banner { left: 0.85rem; right: 0.85rem; max-width: none; } }

/* ----------------------------------------------------------- LEGAL PAGES */
.legal { padding-top: 9rem; padding-bottom: 5rem; }
.legal__inner { max-width: 50rem; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.4rem; margin: 2.2rem 0 0.8rem; }
.legal h3 { font-size: 1.1rem; margin: 1.6rem 0 0.5rem; }
.legal p, .legal li { color: var(--text-dim); }
.legal a { color: var(--brand-bright); text-decoration: underline; text-underline-offset: 2px; }
.legal ul { padding-left: 1.2rem; }

/* ----------------------------------------------------------- CUSTOM CURSOR */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); will-change: transform; }
.cursor-dot { width: 6px; height: 6px; background: var(--text); }
.cursor-ring { width: 30px; height: 30px; border: 1px solid var(--text-faint); opacity: 0.5; transition: width 0.22s var(--ease), height 0.22s var(--ease), opacity 0.22s, background-color 0.22s, border-color 0.22s; }
.cursor-ring.is-active { width: 46px; height: 46px; opacity: 0.95; border-color: var(--brand-bright); background: var(--brand-tint); }
/* hide native cursor only when the custom cursor is active (fine pointers) */
.has-cursor, .has-cursor * { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ----------------------------------------------------------- REVEAL ANIM */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal-stagger].in > * { opacity: 1; transform: none; }
[data-reveal-stagger].in > *:nth-child(2) { transition-delay: 0.08s; }
[data-reveal-stagger].in > *:nth-child(3) { transition-delay: 0.16s; }
[data-reveal-stagger].in > *:nth-child(4) { transition-delay: 0.24s; }
[data-reveal-stagger].in > *:nth-child(5) { transition-delay: 0.32s; }
[data-reveal-stagger].in > *:nth-child(6) { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
}

/* QA static mode (?nofx=1): flatten svh hero + absolute bg for full-page shots */
.iwz-static .hero { min-height: auto; padding-top: 8rem; }
.iwz-static .site-atmos { position: absolute; height: 100%; }

/* ------------------------------------------------------------- RESPONSIVE */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 26rem; margin-inline: auto; order: -1; width: 100%; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .header__nav { display: none; }
  .header__burger { display: inline-flex; }
  .header__cta-desktop { display: none; }
  .ueber__grid { grid-template-columns: 1fr; }
  .kompetenz-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .prozess__track { grid-template-columns: 1fr; }
  .prozess__line { display: none; }
  .usp-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .spec-strip { grid-template-columns: 1fr 1fr; }
  .field__row { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .cred__label { min-width: 8rem; }
}
