/* ============================================================
   Raice — Ulrich Bauch · shared styles
   IBM Plex superfamily · light · ink-blue accent
   ============================================================ */

/* Lokal gehostete Schriften (kein Google-Fonts-CDN mehr — keine
   Drittanbieter-Verbindung, keine Einwilligung nötig). */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-variable.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-serif-300.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-serif-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
}

:root {
  /* color — light neutral grays + brand accent #439ab7 */
  --bg:          oklch(0.988 0.002 230);
  --bg-2:        oklch(0.965 0.004 230);
  --surface:     #ffffff;
  --border:      oklch(0.900 0.006 230);
  --border-soft: oklch(0.940 0.004 230);
  --text:        oklch(0.240 0.010 230);
  --text-mid:    oklch(0.430 0.010 230);
  --text-muted:  oklch(0.580 0.010 230);
  --accent:      #439ab7;
  --accent-deep: #326f84;
  --accent-soft: oklch(0.955 0.028 220);

  /* single-hue accent used everywhere (no rainbow) */
  --c-blue:    var(--accent);
  --c-cyan:    var(--accent);
  --c-teal:    var(--accent);
  --c-green:   oklch(0.58 0.130 150);
  --c-violet:  var(--accent);
  --c-amber:   oklch(0.66 0.145 75);
  --c-red:     oklch(0.585 0.165 25);
  /* dark showcase ink */
  --ink:       oklch(0.205 0.020 230);
  --ink-2:     oklch(0.255 0.022 230);
  --ink-line:  oklch(0.34 0.024 230);
  --on-ink:    oklch(0.965 0.006 230);
  --on-ink-mid:oklch(0.74 0.014 230);

  /* type */
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* metrics */
  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }

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

/* ---------- layout primitives ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(64px, 11vw, 132px); }
.section.tint { background: var(--bg-2); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.section-head { max-width: 720px; }
.section-head .eyebrow { margin-bottom: 22px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; }

.h-display {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.018em;
}
.h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

p { margin: 0; }
.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.62;
  color: var(--text-mid);
  max-width: 54ch;
}
.muted { color: var(--text-muted); }

strong, .em { color: var(--text); font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-deep); }

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

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gut);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { height: 26px; width: auto; display: block; mix-blend-mode: multiply; }
.brand .mark {
  width: 11px; height: 11px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateY(1px);
}
.brand .name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand .sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14.5px;
  color: var(--text-mid);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text) !important;
  transition: border-color .15s ease, background .15s ease;
}
.nav-cta:hover { border-color: var(--text); background: var(--surface); }
.nav-burger { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-visual { position: relative; }
.hero-blueprint { width: 100%; height: auto; display: block; }
.hero::before {
  /* faint blueprint grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 30% 20%, #000 0%, transparent 62%);
          mask-image: radial-gradient(120% 90% at 30% 20%, #000 0%, transparent 62%);
  opacity: 0.55;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(58px, 9vw, 116px);
}
.hero h1 { margin: 26px 0 0; }
.hero .lede { margin-top: 28px; }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

/* portrait card */
.portrait {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
  box-shadow: 0 1px 2px rgba(20,24,40,.04), 0 24px 48px -28px rgba(20,24,40,.18);
}
.ph {
  position: relative;
  width: 100%;
  background-color: var(--bg-2);
  background-image: repeating-linear-gradient(
    -45deg,
    var(--border-soft) 0, var(--border-soft) 1px,
    transparent 1px, transparent 11px
  );
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.portrait .ph { aspect-ratio: 4 / 5; }
.portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 2px;
}
.ph .ph-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  padding: 5px 9px;
  margin: 12px;
  border-radius: 3px;
}
.portrait .cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 4px 4px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}
.portrait .cap .nm { color: var(--text); font-weight: 500; }

/* ---------- credibility strip ---------- */
.cred {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--accent-soft);
}
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.cred-item {
  padding: 34px var(--gut) 34px 0;
  border-right: 1px solid var(--border);
}
.cred-item:first-child { padding-left: 0; }
.cred-item:last-child { border-right: 0; padding-right: 0; }
.cred-item .k {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.cred-item .k .accent { color: var(--accent); }
.cred-item .v {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ---------- nutzen (business value, foregrounded) ---------- */
.nutzen { position: relative; }
.nutzen .section-head .lede { margin-top: 24px; }
.nutzen-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(40px, 6vw, 96px);
  row-gap: clamp(36px, 4vw, 52px);
}
.nutzen-item { padding-top: 26px; border-top: 1px solid var(--border); }
.nutzen-item .kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}
.nutzen-item h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(23px, 2.4vw, 30px);
  letter-spacing: -0.018em;
  line-height: 1.18;
  margin: 16px 0 12px;
}
.nutzen-item p { font-size: 15.5px; color: var(--text-mid); line-height: 1.6; max-width: 46ch; }

/* ---------- skills ---------- */
.skills-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.skill-card {
  background: var(--surface);
  padding: clamp(28px, 3vw, 40px);
}
.skill-card .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.skill-card h3 { margin: 14px 0 6px; }
.skill-card .desc {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.55;
  max-width: 42ch;
}
.tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-mid);
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  padding: 6px 11px;
  border-radius: 3px;
  transition: border-color .15s ease, color .15s ease;
}
.skill-card:hover .tag { border-color: var(--border); }

/* ---------- ansatz / principles ---------- */
.ansatz { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.principles {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.principle .pn {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.principle .pbar { height: 1px; background: var(--border); margin: 18px 0 20px; }
.principle h3 { margin-bottom: 10px; }
.principle p { font-size: 15.5px; color: var(--text-mid); line-height: 1.6; }

/* ---------- contact CTA ---------- */
.cta { position: relative; }
.cta-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(40px, 6vw, 76px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  box-shadow: 0 1px 2px rgba(20,24,40,.04), 0 30px 60px -40px rgba(20,24,40,.2);
}
.cta-box h2 { margin-bottom: 18px; }
.cta-side { display: flex; flex-direction: column; gap: 14px; }
.cta-side .line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 15px;
}
.cta-side .line:last-child { border-bottom: 0; }
.cta-side .line .lab { font-family: var(--mono); font-size: 12.5px; color: var(--text-muted); letter-spacing: 0.03em; }
.cta-side .line .val { color: var(--text); font-weight: 500; }

/* ---------- color accents across light sections ---------- */
.skill-card { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease; position: relative; }
.skill-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--hue, var(--accent)); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.skill-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -30px rgba(20,24,40,.28); z-index: 1; }
.skill-card:hover::before { transform: scaleX(1); }
.skill-card:nth-child(1) { --hue: var(--c-blue); }
.skill-card:nth-child(2) { --hue: var(--c-violet); }
.skill-card:nth-child(3) { --hue: var(--c-teal); }
.skill-card:nth-child(4) { --hue: var(--c-amber); }
.skill-card:nth-child(5) { --hue: var(--c-green); }
.skill-card:nth-child(6) { --hue: var(--accent); }
.skill-card:nth-child(1) .num { color: var(--c-blue); }
.skill-card:nth-child(2) .num { color: var(--c-violet); }
.skill-card:nth-child(3) .num { color: var(--c-teal); }
.skill-card:nth-child(4) .num { color: var(--c-amber); }
.skill-card:nth-child(5) .num { color: var(--c-green); }
.skill-card:nth-child(6) .num { color: var(--accent); }
.skill-card:hover .tag { border-color: color-mix(in oklab, var(--hue) 35%, var(--border)); }

.nutzen-item:nth-child(1) { --hue: var(--c-blue); }
.nutzen-item:nth-child(2) { --hue: var(--c-cyan); }
.nutzen-item:nth-child(3) { --hue: var(--c-green); }
.nutzen-item:nth-child(4) { --hue: var(--c-violet); }
.nutzen-item { border-top-color: var(--hue); border-top-width: 2px; transition: transform .25s ease; }
.nutzen-item .kicker { color: var(--hue); }
.nutzen-item h3 .dot { color: var(--hue); }

.principle:nth-child(1) .pn { color: var(--c-blue); }
.principle:nth-child(2) .pn { color: var(--c-teal); }
.principle:nth-child(3) .pn { color: var(--c-amber); }

/* ---------- KI agents (dark showcase) ---------- */
.agents {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-ink);
  border-top: 1px solid var(--ink);
}
.agents::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--ink-2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ink-2) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(110% 80% at 70% 50%, #000 0%, transparent 70%);
          mask-image: radial-gradient(110% 80% at 70% 50%, #000 0%, transparent 70%);
  opacity: 0.6; pointer-events: none;
}
.agents-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.agents .eyebrow { color: var(--c-cyan); }
.agents .eyebrow::before { background: var(--c-cyan); }
.agents h2 { color: var(--on-ink); }
.agents .lede { color: var(--on-ink-mid); max-width: 50ch; }
.agent-benefits { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.agent-benefits li { position: relative; padding-left: 28px; color: var(--on-ink-mid); font-size: 15.5px; line-height: 1.55; }
.agent-benefits li strong { color: var(--on-ink); font-weight: 600; }
.agent-benefits li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 9px; height: 9px; border-radius: 2px;
  background: var(--bmark, var(--c-cyan));
  box-shadow: 0 0 12px var(--bmark, var(--c-cyan));
}
.agent-benefits li:nth-child(1) { --bmark: var(--c-cyan); }
.agent-benefits li:nth-child(2) { --bmark: var(--c-violet); }
.agent-benefits li:nth-child(3) { --bmark: var(--c-amber); }
.agents .btn-ghost { color: var(--on-ink); border-color: var(--ink-line); }
.agents .btn-ghost:hover { border-color: var(--on-ink); background: var(--ink-2); }

/* diagram */
.agents-stage { position: relative; width: 100%; max-width: 520px; margin-inline: auto; aspect-ratio: 1 / 1; }
.agents-stage svg { width: 100%; height: 100%; overflow: visible; }
.a-link { fill: none; stroke-width: 1.4; stroke-linecap: round; opacity: 0.55; }
.a-flow { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 3 11; animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.a-pulse { filter: drop-shadow(0 0 5px currentColor); }
.a-node-box {
  fill: color-mix(in oklab, var(--ink-2) 78%, transparent);
  stroke: var(--nh, var(--c-cyan));
  stroke-width: 1.3;
}
.a-node-g { transform-box: fill-box; transform-origin: center; animation: floaty 6s ease-in-out infinite; }
.a-node-dot { fill: var(--nh, var(--c-cyan)); filter: drop-shadow(0 0 6px var(--nh, var(--c-cyan))); }
.a-node-label { fill: var(--on-ink); font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
.a-core-ring { fill: none; stroke: var(--c-cyan); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: coreRing 3.2s ease-out infinite; }
.a-core-disc { fill: var(--ink-2); stroke: var(--c-cyan); stroke-width: 1.6; filter: drop-shadow(0 0 16px color-mix(in oklab, var(--c-cyan) 60%, transparent)); }
.a-core-label { fill: var(--on-ink); font-family: var(--mono); font-size: 12px; font-weight: 500; }
.a-core-sub { fill: var(--c-cyan); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes coreRing { 0% { transform: scale(0.7); opacity: 0.55; } 100% { transform: scale(2.1); opacity: 0; } }

/* ---------- EU AI Act & Governance ---------- */
.govern-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.govern-copy .lede { margin-top: 22px; }
.govern-list { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.govern-list li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--text-mid); line-height: 1.55; }
.govern-list li strong { color: var(--text); font-weight: 600; }
.govern-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, var(--border));
}
.govern-list li::after {
  content: ""; position: absolute; left: 6px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* risk ladder */
.risk-ladder { display: flex; flex-direction: column; gap: 8px; }
.risk-tier {
  --rh: var(--c-blue);
  position: relative;
  border: 1px solid var(--border);
  border-left: 3px solid var(--rh);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.risk-tier:hover { transform: translateX(4px); box-shadow: 0 14px 30px -24px rgba(20,24,40,.3); }
.risk-tier .rt-bar { width: 8px; align-self: stretch; border-radius: 3px; background: var(--rh); opacity: 0.18; flex: none; }
.risk-tier .rt-main { flex: 1; }
.risk-tier .rt-name { font-family: var(--sans); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.risk-tier .rt-desc { font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }
.risk-tier .rt-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--rh); background: color-mix(in oklab, var(--rh) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--rh) 30%, transparent);
  padding: 5px 9px; border-radius: 3px; white-space: nowrap; flex: none;
}
.risk-tier.t-unaccept { --rh: var(--c-red); }
.risk-tier.t-high     { --rh: var(--c-amber); }
.risk-tier.t-limited  { --rh: var(--c-blue); }
.risk-tier.t-minimal  { --rh: var(--c-green); }
.risk-caption { font-family: var(--mono); font-size: 12px; color: var(--text-muted); margin-top: 14px; display: flex; align-items: center; gap: 8px; }
.risk-caption::before { content: ""; width: 16px; height: 1px; background: var(--border); }

/* ---------- Qualitätssicherung (quality gates) ---------- */
.qa { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.qa-pipeline {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.qa-gate {
  background: var(--surface);
  padding: clamp(24px, 2.6vw, 34px);
  position: relative;
}
.qa-gate .qg-step {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em;
}
.qa-gate .qg-step .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--qh, var(--accent));
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--qh, var(--accent)) 16%, transparent);
}
.qa-gate:nth-child(1) { --qh: var(--c-blue); }
.qa-gate:nth-child(2) { --qh: var(--c-violet); }
.qa-gate:nth-child(3) { --qh: var(--c-teal); }
.qa-gate:nth-child(4) { --qh: var(--c-green); }
.qa-gate h3 { font-family: var(--sans); font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; margin: 16px 0 8px; }
.qa-gate p { font-size: 14px; color: var(--text-mid); line-height: 1.55; }
.qa-gate .qg-arrow {
  position: absolute; right: -7px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--text-muted);
  background: var(--bg-2); z-index: 2; display: flex; align-items: center; justify-content: center;
}
.qa-gate:last-child .qg-arrow { display: none; }
.qa-metrics {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.qa-metric {
  font-family: var(--mono); font-size: 13px; color: var(--text-mid);
  background: var(--surface); border: 1px solid var(--border);
  padding: 9px 14px; border-radius: 3px;
  display: inline-flex; align-items: center; gap: 9px;
}
.qa-metric .mk { color: var(--accent); font-weight: 500; }

/* ---------- contact form / page ---------- */
.page-head { padding-top: clamp(48px, 7vw, 96px); }
.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 64px);
}
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form .btn-primary { align-self: flex-start; margin-top: 4px; }
.form-note { font-size: 13.5px; color: var(--text-muted); }
.form-success {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.form-success .h3 { margin-bottom: 8px; }
.form-success p { color: var(--text-mid); font-size: 15px; }

.info-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: clamp(28px, 3vw, 38px);
}
.info-panel .info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.info-panel .info-row:first-child { padding-top: 0; }
.info-panel .info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-panel .info-row .lab { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.info-panel .info-row .val { font-size: 16px; color: var(--text); font-weight: 500; }
.info-panel .info-row a.val { color: var(--accent); }

.impressum { border-top: 1px solid var(--border); background: var(--bg-2); }
.impressum .imp-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.impressum h2 { margin-bottom: 8px; }
.imp-body { font-size: 15px; color: var(--text-mid); line-height: 1.7; }
.imp-body .imp-block { margin-bottom: 22px; }
.imp-body .imp-block .imp-lab { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 5px; }

/* ---------- legal content (datenschutz, etc.) ---------- */
.legal-toc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 28px 32px;
  margin-bottom: 48px;
}
.legal-toc h3 { margin: 0 0 14px; }
.legal-toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal-toc a { font-size: 14.5px; color: var(--text-mid); }
.legal-toc a:hover { color: var(--accent); }

.legal-content h2 {
  font-family: var(--sans); font-weight: 600; font-size: 22px; letter-spacing: -0.01em;
  color: var(--text); margin: 52px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 16.5px; margin: 26px 0 10px; }
.legal-content p { font-size: 15.5px; color: var(--text-mid); line-height: 1.7; margin-bottom: 14px; max-width: 68ch; }
.legal-content ul { margin: 8px 0 16px 20px; color: var(--text-mid); font-size: 15.5px; line-height: 1.6; }
.legal-content ul li { margin-bottom: 7px; }
.legal-content a { color: var(--accent); }
.legal-content a:hover { text-decoration: underline; }

.legal-info {
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--border));
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 18px 0 26px;
  font-size: 14.5px;
  color: var(--text-mid);
}
.legal-info strong { color: var(--text); }

.legal-warn {
  background: color-mix(in oklab, var(--c-amber) 12%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--c-amber) 35%, var(--border));
  border-left: 3px solid var(--c-amber);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 18px 0 26px;
  font-size: 14.5px;
  color: var(--text-mid);
}

.legal-table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 14px; }
.legal-table th {
  background: var(--bg-2); color: var(--text); text-align: left;
  padding: 11px 15px; border: 1px solid var(--border); font-weight: 600; font-family: var(--sans);
}
.legal-table td { padding: 10px 15px; border: 1px solid var(--border); color: var(--text-mid); vertical-align: top; }
.legal-table tr:nth-child(even) td { background: var(--bg-2); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer-inner {
  padding-block: 44px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}
.footer .brand .sub { display: block; margin-top: 8px; }
.footer-links { display: flex; gap: 26px; font-size: 14px; }
.footer-links a { color: var(--text-mid); }
.footer-links a:hover { color: var(--text); }
.footer .copy { font-family: var(--mono); font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* ---------- cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -14px 34px -24px rgba(20,24,40,.28);
}
.cookie-banner-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cookie-banner-inner p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.55;
  max-width: 62ch;
}
.cookie-banner-inner a { color: var(--accent); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }
.cookie-banner-actions .btn { padding: 11px 18px; font-size: 14px; }
@media (max-width: 620px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  body { font-size: 16px; }
  .hero-inner { grid-template-columns: 1fr; }
  .portrait { max-width: 360px; }
  .cred-grid { grid-template-columns: 1fr; }
  .cred-item { border-right: 0; border-bottom: 1px solid var(--border); padding: 26px 0; }
  .cred-item:last-child { border-bottom: 0; }
  .skills-grid { grid-template-columns: 1fr; }
  .agents-inner { grid-template-columns: 1fr; }
  .agents-stage { max-width: 420px; order: -1; }
  .govern-inner { grid-template-columns: 1fr; gap: 40px; }
  .qa-pipeline { grid-template-columns: 1fr; }
  .qa-gate .qg-arrow { display: none; }
  .nutzen-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; }
  .impressum .imp-grid { grid-template-columns: 1fr; gap: 16px; }
  .principles { grid-template-columns: 1fr; gap: 38px; }
  .cta-box { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
