/* ============================================================
   Jonatan Reiners · KI-Beratung
   Technisch-präzise: IBM Plex Sans + IBM Plex Mono
   Themes via [data-theme], Akzent via [data-accent]
   ============================================================ */

:root {
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* default accent = copper */
  --accent: oklch(0.62 0.13 50);
  --accent-strong: oklch(0.54 0.13 48);
  --accent-soft: oklch(0.62 0.13 50 / 0.12);
  --on-accent: oklch(0.99 0.01 80);

  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 64px);
  --r: 4px;
  --ease: cubic-bezier(.4, .7, .3, 1);
}

/* ---- Accent variants ------------------------------------ */
[data-accent="blue"] {
  --accent: oklch(0.56 0.13 250);
  --accent-strong: oklch(0.48 0.13 252);
  --accent-soft: oklch(0.56 0.13 250 / 0.12);
}
[data-accent="green"] {
  --accent: oklch(0.57 0.11 158);
  --accent-strong: oklch(0.49 0.11 158);
  --accent-soft: oklch(0.57 0.11 158 / 0.12);
}
[data-accent="slate"] {
  --accent: oklch(0.52 0.045 250);
  --accent-strong: oklch(0.44 0.05 250);
  --accent-soft: oklch(0.52 0.045 250 / 0.12);
}

/* ---- Themes --------------------------------------------- */
/* engineering (default light, warm paper, doc-like) */
:root,
[data-theme="engineering"] {
  --bg: oklch(0.984 0.004 75);
  --bg-alt: oklch(0.965 0.006 75);
  --surface: oklch(1 0 0);
  --ink: oklch(0.24 0.012 60);
  --ink-soft: oklch(0.46 0.012 60);
  --ink-faint: oklch(0.62 0.01 60);
  --line: oklch(0.885 0.006 70);
  --line-strong: oklch(0.80 0.008 70);
  --shadow: 0 1px 2px oklch(0.4 0.02 60 / 0.05), 0 8px 28px oklch(0.4 0.02 60 / 0.06);
  --grid: oklch(0.40 0.01 60 / 0.045);
}

[data-theme="dark"] {
  --bg: oklch(0.205 0.012 60);
  --bg-alt: oklch(0.24 0.012 60);
  --surface: oklch(0.255 0.013 60);
  --ink: oklch(0.94 0.006 80);
  --ink-soft: oklch(0.74 0.01 75);
  --ink-faint: oklch(0.58 0.012 70);
  --line: oklch(0.34 0.012 60);
  --line-strong: oklch(0.42 0.014 60);
  --shadow: 0 1px 2px oklch(0 0 0 / 0.3), 0 10px 34px oklch(0 0 0 / 0.34);
  --grid: oklch(0.9 0.01 80 / 0.04);
  --on-accent: oklch(0.99 0.01 80);
}

[data-theme="soft"] {
  --bg: oklch(0.962 0.009 72);
  --bg-alt: oklch(0.94 0.012 72);
  --surface: oklch(0.992 0.005 72);
  --ink: oklch(0.30 0.015 55);
  --ink-soft: oklch(0.49 0.014 58);
  --ink-faint: oklch(0.64 0.012 60);
  --line: oklch(0.89 0.01 70);
  --line-strong: oklch(0.82 0.012 70);
  --shadow: 0 2px 6px oklch(0.5 0.03 60 / 0.06), 0 18px 50px oklch(0.5 0.03 60 / 0.08);
  --grid: oklch(0.45 0.02 60 / 0.05);
}

/* ---- Reset ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--accent-soft); color: var(--ink); }

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

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

.section { padding-block: clamp(64px, 9vw, 132px); position: relative; }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 740px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 {
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-top: 18px;
  text-wrap: balance;
}
.section-head p {
  margin-top: 20px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-soft);
  max-width: 62ch;
  text-wrap: pretty;
}

/* ---- Header / Nav --------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav[data-scrolled="1"] { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 14px var(--gut);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -0.01em; }
.brand .mark {
  width: 30px; height: 30px; flex: none;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  display: grid; place-items: center;
  position: relative;
  background: var(--surface);
}
.brand .mark::before {
  content: ""; width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 18%, transparent);
}
.brand b { font-size: 15.5px; }
.brand .sub {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-faint); display: block; margin-top: -2px;
}
.brand .txt { line-height: 1.05; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  font-size: 14.5px; color: var(--ink-soft);
  padding: 8px 12px; border-radius: var(--r);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-alt); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 500;
  padding: 11px 18px; border-radius: var(--r);
  border: 1px solid transparent;
  transition: transform .15s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-faint); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.nav-cta { margin-left: 4px; }
.nav-burger {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border: 1px solid var(--line-strong);
  border-radius: var(--r); background: var(--surface);
  align-items: center; justify-content: center;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 18px; height: 1.8px; background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-burger span { position: relative; }
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after { position: absolute; top: 6px; }
body[data-menu="1"] .nav-burger span { background: transparent; }
body[data-menu="1"] .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
body[data-menu="1"] .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* mobile menu sheet */
.mobile-menu {
  display: none;
  position: fixed; inset: 0; top: 0; z-index: 90;
  background: var(--bg);
  padding: 92px var(--gut) 40px;
  flex-direction: column; gap: 4px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
}
body[data-menu="1"] .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-size: 22px; font-weight: 500; letter-spacing: -0.01em;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink);
}
.mobile-menu a .n { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.mobile-menu .btn-primary { margin-top: 26px; justify-content: center; font-size: 17px; padding: 15px; }

/* ---- Hero ----------------------------------------------- */
.hero { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(56px, 8vw, 110px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 90% at 78% 0%, #000 0%, transparent 68%);
  mask-image: radial-gradient(120% 90% at 78% 0%, #000 0%, transparent 68%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 6.2vw, 70px);
  line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 600; margin-top: 26px;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent-strong); }
.hero-lead {
  margin-top: 26px; font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-soft); max-width: 52ch; text-wrap: pretty;
}
.hero-cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 40px; display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint);
  padding-top: 26px; border-top: 1px solid var(--line);
}
.hero-meta b { color: var(--ink); font-weight: 600; }

/* manifest card */
.manifest {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
}
.manifest-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.manifest-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.manifest-bar i:nth-child(1) { background: var(--accent); }
.manifest-bar .fname { margin-left: 8px; color: var(--ink-faint); font-size: 12px; letter-spacing: 0.03em; }
.manifest-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 13px; }
.mrow { display: grid; grid-template-columns: 116px 1fr; gap: 12px; align-items: baseline; }
.mkey { color: var(--ink-faint); }
.mval { color: var(--ink); }
.mval .pill {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong);
  border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent);
  font-size: 12px; margin-right: 5px;
}
.manifest-foot {
  border-top: 1px dashed var(--line-strong); padding: 14px 20px;
  color: var(--ink-soft); font-size: 12.5px; line-height: 1.5;
}
.manifest-foot .c { color: var(--accent-strong); }

/* ---- Pledge strip --------------------------------------- */
.pledge h2 {
  font-size: clamp(26px, 4vw, 44px); font-weight: 600;
  letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance;
  max-width: 16ch;
}
.pledge h2 .muted { color: var(--ink-faint); }
.cap-grid {
  margin-top: clamp(40px, 5vw, 60px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.cap {
  padding: 28px 26px 30px; border-right: 1px solid var(--line);
  position: relative;
}
.cap:last-child { border-right: 0; }
.cap .num { font-family: var(--font-mono); font-size: 12px; color: var(--accent-strong); letter-spacing: 0.08em; }
.cap h3 { font-size: 18px; font-weight: 600; margin-top: 14px; letter-spacing: -0.01em; }
.cap p { font-size: 14.5px; color: var(--ink-soft); margin-top: 9px; text-wrap: pretty; }

/* ---- Approach ------------------------------------------- */
.layers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.layer-core {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
}
.layer-core .lc-head {
  padding: 22px 24px; background: var(--accent); color: var(--on-accent);
}
.layer-core .lc-head .t { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; opacity: 0.85; text-transform: uppercase; }
.layer-core .lc-head h3 { font-size: 22px; font-weight: 600; margin-top: 7px; letter-spacing: -0.01em; }
.layer-core .lc-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.tool-line { display: flex; align-items: center; gap: 12px; }
.tool-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.tool-line b { font-size: 15.5px; font-weight: 600; }
.tool-line span { font-size: 14px; color: var(--ink-soft); }

.layer-ext { display: flex; flex-direction: column; }
.layer-ext .ext-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink-faint); text-transform: uppercase; margin-bottom: 4px;
}
.layer-ext h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 18px; }
.ext-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ext-list .chip {
  font-family: var(--font-mono); font-size: 12.5px;
  padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--ink-soft); background: var(--surface);
}
.cond-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.cond-list li { list-style: none; padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line); position: relative; font-size: 14.5px; color: var(--ink-soft); }
.cond-list li::before {
  content: "→"; position: absolute; left: 0; top: 13px;
  color: var(--accent-strong); font-family: var(--font-mono);
}

/* process formula */
.formula { margin-top: clamp(48px, 6vw, 76px); }
.formula-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--ink-faint); text-transform: uppercase; margin-bottom: 20px; }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: step; }
.step {
  position: relative; padding: 22px 18px 24px; border: 1px solid var(--line);
  border-right: 0; background: var(--surface);
}
.step:first-child { border-radius: 10px 0 0 10px; }
.step:last-child { border-right: 1px solid var(--line); border-radius: 0 10px 10px 0; }
.step .sn { font-family: var(--font-mono); font-size: 12px; color: var(--accent-strong); }
.step b { display: block; margin-top: 12px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.step p { margin-top: 6px; font-size: 13px; color: var(--ink-soft); line-height: 1.45; }

/* ---- Security ------------------------------------------- */
.sec-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.sec-quote {
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.2; text-wrap: balance;
}
.sec-quote .c { color: var(--accent-strong); }
.sec-note { margin-top: 20px; color: var(--ink-soft); font-size: 16px; max-width: 42ch; text-wrap: pretty; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.check {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 15px 16px 15px 0; border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.check:nth-child(odd) { padding-right: 24px; }
.check .ic {
  flex: none; width: 20px; height: 20px; border-radius: 5px; margin-top: 1px;
  border: 1px solid color-mix(in oklch, var(--accent) 40%, var(--line));
  background: var(--accent-soft); display: grid; place-items: center;
}
.check .ic svg { width: 12px; height: 12px; stroke: var(--accent-strong); }

/* ---- Use cases ------------------------------------------ */
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.uc {
  background: var(--surface); padding: 30px 26px 32px;
  transition: background .25s var(--ease);
}
.uc:hover { background: var(--bg-alt); }
.uc .uc-n { font-family: var(--font-mono); font-size: 12px; color: var(--accent-strong); letter-spacing: 0.08em; }
.uc h3 { font-size: 19px; font-weight: 600; margin-top: 16px; letter-spacing: -0.01em; }
.uc p { font-size: 14.5px; color: var(--ink-soft); margin-top: 10px; text-wrap: pretty; }

/* ---- Differentiation ------------------------------------ */
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.diff {
  border: 1px solid var(--line); border-radius: 12px; padding: 26px 26px 28px;
  background: var(--surface); position: relative; overflow: hidden;
}
.diff::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: 0.7; }
.diff .vs { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-faint); text-transform: uppercase; }
.diff h3 { font-size: 19px; font-weight: 600; margin-top: 8px; letter-spacing: -0.01em; }
.diff p { font-size: 15px; color: var(--ink-soft); margin-top: 12px; text-wrap: pretty; }

/* ---- About / roles -------------------------------------- */
.about-intro { max-width: 60ch; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(36px, 5vw, 56px); }
.role {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
}
.role .photo {
  aspect-ratio: 4 / 3; position: relative;
  background:
    repeating-linear-gradient(135deg, var(--bg-alt) 0 11px, transparent 11px 22px),
    var(--surface);
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center; text-align: center; padding: 20px;
}
.role .photo .ph {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint);
  line-height: 1.5; max-width: 30ch;
}
.role .photo .ph b { color: var(--ink-soft); display: block; margin-bottom: 4px; letter-spacing: 0.04em; }
.role .r-body { padding: 24px 26px 28px; }
.role .r-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--accent-strong); text-transform: uppercase; }
.role .r-name { font-size: 22px; font-weight: 600; margin-top: 8px; letter-spacing: -0.01em; }
.role .r-role { font-size: 14.5px; color: var(--ink-soft); margin-top: 2px; }
.role ul { margin-top: 18px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.role li { list-style: none; font-size: 14.5px; color: var(--ink-soft); padding-left: 20px; position: relative; }
.role li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.together {
  margin-top: 24px; padding: 24px 26px; border-radius: 12px;
  background: var(--bg-alt); border: 1px solid var(--line);
  font-size: 16px; color: var(--ink-soft); text-wrap: pretty;
}
.together b { color: var(--ink); }

/* ---- Contact -------------------------------------------- */
.contact { background: var(--bg-alt); }
.ask-grid { max-width: 760px; }
.ask-intro h2 { font-size: clamp(28px, 4.2vw, 48px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.06; text-wrap: balance; }
.ask-intro p { margin-top: 20px; color: var(--ink-soft); font-size: 17px; max-width: 44ch; text-wrap: pretty; }
.ask-contacts { margin-top: 32px; display: flex; flex-direction: column; gap: 2px; font-family: var(--font-mono); font-size: 13.5px; }
.ask-contacts a, .ask-contacts span { padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink-soft); display: flex; gap: 14px; }
.ask-contacts .k { color: var(--ink-faint); width: 92px; flex: none; }
.ask-contacts a:hover { color: var(--accent-strong); }

/* ---- Footer --------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-block: 48px 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand { margin-bottom: 0; }
.footer-tag { color: var(--ink-soft); font-size: 14.5px; max-width: 36ch; margin-top: 14px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.03em; }

/* ---- Self-hosted fonts ---------------------------------- */
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---- Legal pages (Impressum / Datenschutz) -------------- */
.legal-hero {
  padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.legal-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(110% 90% at 85% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(110% 90% at 85% 0%, #000 0%, transparent 70%);
}
.legal-hero h1 {
  font-size: clamp(32px, 5vw, 54px); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.04; margin-top: 20px; text-wrap: balance;
}
.legal-hero .legal-sub { margin-top: 16px; color: var(--ink-soft); font-size: 16px; max-width: 56ch; text-wrap: pretty; }
.legal-hero .legal-updated { margin-top: 22px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.04em; }

.legal-body { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 100px); }
.legal-grid { display: grid; grid-template-columns: 230px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }

.legal-toc { position: sticky; top: 92px; }
.legal-toc .toc-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.legal-toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); counter-reset: toc; }
.legal-toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.legal-toc a { display: flex; gap: 11px; padding: 10px 0; font-size: 14px; color: var(--ink-soft); transition: color .2s; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-strong); flex: none; }
.legal-toc a:hover { color: var(--ink); }

.legal-content { max-width: 70ch; }
.legal-content section { padding-top: 12px; margin-bottom: clamp(36px, 4vw, 52px); scroll-margin-top: 92px; }
.legal-content section:last-child { margin-bottom: 0; }
.legal-content .sec-n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--accent-strong); }
.legal-content h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.015em; margin-top: 8px; line-height: 1.2; }
.legal-content h3 { font-size: 16.5px; font-weight: 600; margin-top: 26px; letter-spacing: -0.01em; }
.legal-content p { margin-top: 14px; color: var(--ink-soft); font-size: 15.5px; text-wrap: pretty; }
.legal-content p:first-of-type { margin-top: 16px; }
.legal-content a.inline { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal-content a.inline:hover { color: var(--accent); }
.legal-content ul { margin-top: 14px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.legal-content ul li { list-style: none; font-size: 15.5px; color: var(--ink-soft); padding-left: 22px; position: relative; text-wrap: pretty; }
.legal-content ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.legal-content .lead { color: var(--ink); font-size: 16.5px; }

.legal-card {
  margin-top: 18px; padding: 20px 22px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); box-shadow: var(--shadow);
  font-size: 15px; line-height: 1.7; color: var(--ink);
}
.legal-card .row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 5px 0; }
.legal-card .row .k { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); padding-top: 2px; }
@media (max-width: 560px) { .legal-card .row { grid-template-columns: 1fr; gap: 2px; } }

@media (max-width: 860px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: none; }
}

/* ---- Reveal animation ----------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---- Responsive ----------------------------------------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; }
  .layers { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3) { border-radius: 0 10px 0 0; border-right: 1px solid var(--line); }
  .step:nth-child(4) { border-radius: 0 0 0 10px; border-top: 0; }
  .step:nth-child(5), .step:nth-child(6) { border-top: 0; }
  .step:nth-child(6) { border-radius: 0 0 10px 0; }
  .step:nth-child(1) { border-radius: 10px 0 0 0; }
  .uc-grid { grid-template-columns: repeat(2, 1fr); }
  .ask-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu { display: flex; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .cap:nth-child(2) { border-right: 0; }
  .cap:nth-child(1), .cap:nth-child(2) { border-bottom: 1px solid var(--line); }
  .diff-grid { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .check:nth-child(odd) { padding-right: 0; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-right: 1px solid var(--line) !important; border-radius: 0 !important; border-top: 0; }
  .step:nth-child(1) { border-top: 1px solid var(--line); border-radius: 10px 0 0 0 !important; }
  .step:nth-child(2) { border-top: 1px solid var(--line); border-radius: 0 10px 0 0 !important; }
  .step:nth-child(5) { border-radius: 0 0 0 10px !important; }
  .step:nth-child(6) { border-radius: 0 0 10px 0 !important; }
  .uc-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .hero-meta { gap: 18px; }
}
