/* ==========================================================================
   ZIDDEX – OnePager · Block-Layout
   Schriften lokal gehostet (SIL Open Font License), keine externen Requests
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"),
       url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg:        #ffffff;
  --surface:   #f4f5f7;
  --ink:       #0a0c10;
  --ink-2:     #262b33;
  --muted:     #5c6370;
  --line:      #e1e3e8;

  --cyan:      #00a8f0;   /* Markenblau, elektrisch aufgefrischt */
  --cyan-text: #0074ad;   /* Cyan als Text auf Weiß (AA) */
  --cyan-glow: #3cc8ff;   /* Cyan auf Dunkel */
  --volt:      #c9f73a;   /* Signalfarbe, sparsam */

  --dark:      #0a0c10;
  --dark-2:    #14171d;
  --dark-line: #262a33;
  --dark-muted:#9aa2b0;

  --font-head: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --container: 1400px;
  --gutter: clamp(16px, 3.5vw, 40px);
  --section: clamp(56px, 7vw, 104px);
  --header-h: 72px;
  --pad: clamp(24px, 2.8vw, 40px);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: hidden;
  counter-reset: section;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan-text); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-stretch: 112%;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 750;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 6.2rem); font-weight: 820; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 3.4rem); letter-spacing: -0.03em; }
h3 { font-size: 1.3rem; font-stretch: 106%; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding: 0; margin: 0; list-style: none; }
strong { font-weight: 650; }

::selection { background: var(--volt); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }

/* Mono-Labels */
.eyebrow, .masthead, .index-label, .role-for, .chip, .num,
.form-hint, .no-cookies, .step::before, .filter button {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .04em;
}

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  font: 600 1rem/1 var(--font-body);
  padding: 1.05em 1.5em;
  border: 1px solid var(--ink);
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

.text-link {
  display: inline-block;
  font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 2px;
  transition: background-color .2s ease, border-color .2s ease;
}
.text-link:hover { color: var(--ink); background: var(--volt); border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 32px; width: auto; }

.nav-list { display: flex; align-items: center; gap: 0; }
.nav-list a {
  display: block;
  padding: .7em 1.05em;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
}
.nav-list a:not(.btn)::after {
  content: ""; position: absolute; left: 1.05em; right: 1.05em; bottom: .35em;
  height: 2px; background: var(--cyan);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-list a:not(.btn):hover::after, .nav-list a[aria-current="true"]::after { transform: scaleX(1); }
.nav-list a:hover { color: var(--ink); }
.nav-list a[aria-current="true"] { color: var(--ink); }
.nav-list .btn { margin-left: 14px; padding: .85em 1.25em; color: #fff; }
.nav-list .btn:hover { color: var(--ink); }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--ink); background: #fff; cursor: pointer; place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink);
  position: relative; transition: transform .25s ease, background-color .25s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--ink);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { padding: 1em 0; border-bottom: 1px solid var(--line); }
  .nav-list a:not(.btn)::after { display: none; }
  .nav-list .btn { margin: 16px 0 0; justify-content: center; }
}

/* ---------- Abschnitte ---------- */
section { padding-block: var(--section); position: relative; }
main > section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 860px; margin-bottom: clamp(32px, 4vw, 56px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .9em;
  font-size: .8rem; text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.section-head .eyebrow::before {
  counter-increment: section;
  content: counter(section, decimal-leading-zero);
  display: inline-grid; place-items: center;
  min-width: 2.6em; height: 2em;
  background: var(--ink); color: var(--cyan-glow);
}
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--ink-2); line-height: 1.6; margin-bottom: 0; }

/* Markierung im Hero */
.scribble-word {
  white-space: nowrap;
  background: linear-gradient(transparent 62%, var(--volt) 62%, var(--volt) 92%, transparent 92%);
  padding-inline: .04em;
}
.scribble-word svg { display: none; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(28px, 4vw, 56px); }
.masthead {
  display: flex; flex-wrap: wrap; gap: 8px 32px;
  padding-bottom: 14px; margin-bottom: clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--ink);
  font-size: .78rem; text-transform: uppercase; color: var(--ink);
}
.masthead span::before { content: "/ "; color: var(--cyan-text); }
.hero h1 { max-width: 17ch; margin-bottom: clamp(36px, 5vw, 64px); }

.hero-row {
  display: grid;
  grid-template-columns: 4.4fr 4.6fr 3fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.hero-row > * {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--pad);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 32px; }

.index-label { font-size: .75rem; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.system-index li + li { border-top: 1px solid var(--line); }
.system-index a {
  display: grid; grid-template-columns: 2.6em 7em 1fr auto; align-items: baseline; gap: 10px;
  padding: 11px 8px;
  text-decoration: none; color: var(--ink-2);
  transition: background-color .15s ease;
}
.system-index a::after { content: "→"; color: var(--ink); opacity: 0; transition: opacity .15s ease; }
.system-index a:hover { background: var(--surface); }
.system-index a:hover::after { opacity: 1; }
.system-index .num { font-size: .78rem; color: var(--cyan-text); }
.system-index .name { font: 700 1.1rem/1.2 var(--font-head); font-stretch: 108%; color: var(--ink); }
.system-index .desc { font-size: .92rem; color: var(--muted); }

.portrait { margin: 0; padding: 0 !important; display: flex; flex-direction: column; }
.portrait-img {
  aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--dark);
  color: var(--cyan-glow);
  font: 800 3.6rem/1 var(--font-head); font-stretch: 125%; letter-spacing: -0.02em;
  position: relative;
}
.portrait-img::after {
  content: "PORTRAIT FOLGT";
  position: absolute; left: 14px; bottom: 12px;
  font: 500 .68rem/1 var(--font-mono); letter-spacing: .08em; color: var(--dark-muted);
}
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.portrait figcaption { padding: 18px 20px 20px; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.portrait figcaption strong { display: block; font: 700 1.05rem/1.3 var(--font-head); font-stretch: 108%; color: var(--ink); margin-bottom: 4px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip {
  font-size: .72rem; text-transform: uppercase;
  padding: .45em .7em;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: #fff;
}

/* ---------- Block-Raster (gemeinsame Linien statt Abstände) ---------- */
.bento, .roles, .steps {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.glass { background: var(--bg); }

/* ---------- Leistungen ---------- */
.bento { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; }
.card {
  padding: var(--pad);
  display: flex; flex-direction: column;
  position: relative;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--cyan); transition: width .3s ease;
}
.card:hover::before { width: 100%; }
.card h3 { margin-bottom: .5em; }
.card p { color: var(--muted); font-size: 1rem; margin-bottom: 0; }
.card .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  margin-bottom: 28px;
}
.card .icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }
.span-2 { grid-column: span 2; }
.row-2 { grid-row: span 2; }
.card-feature { background: var(--dark); color: #fff; }
.card-feature h3 { color: #fff; font-size: clamp(1.4rem, 2.2vw, 1.9rem); max-width: 18em; }
.card-feature p { color: var(--dark-muted); }
.card-feature .icon { border-color: var(--cyan-glow); color: var(--cyan-glow); }
.card-feature::before { background: var(--volt); }
.ticks { margin-top: auto; padding-top: 32px; display: grid; }
.ticks li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 12px 0; border-top: 1px solid var(--dark-line);
  color: #fff; font-weight: 500;
}
.ticks li::before { content: "+"; font-family: var(--font-mono); color: var(--cyan-glow); }

/* ---------- KI ---------- */
.ki-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.ki-item { background: #fff; }
.ki-item h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-top: 22px; }
.ki-item p { max-width: 56ch; }
.ki-item .chips { margin-top: auto; padding-top: 24px; }
.ki-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ki-done {
  display: inline-flex; align-items: center; gap: .5em;
  font: 500 .72rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  padding: .6em .7em; border: 1px solid var(--cyan); color: var(--cyan-text);
}
.ki-done::before { content: ""; width: 7px; height: 7px; background: var(--cyan); }
.ki-code {
  align-self: flex-start;
  font: 500 .78rem/1 var(--font-mono); letter-spacing: .06em;
  padding: .55em .7em;
  background: var(--ink); color: var(--volt);
}
.ki-principles {
  background: var(--dark); color: var(--dark-muted);
  padding: var(--pad);
  border: 1px solid var(--dark); border-top: 0;
}
.ki-principles-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px;
  margin-bottom: 28px;
}
.ki-principles-head h3 { color: #fff; font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 0; }
.ki-principles .btn-primary { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.ki-principles .btn-primary:hover { background: var(--volt); border-color: var(--volt); }
.ki-principles-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--dark-line); }
.ki-principles-list li {
  padding: 22px 24px 4px 0; font-size: .96rem; line-height: 1.55;
}
.ki-principles-list li + li { padding-left: 24px; border-left: 1px solid var(--dark-line); }
.ki-principles-list strong {
  display: block; color: #fff; margin-bottom: 8px;
  font-family: var(--font-head); font-stretch: 106%; font-size: 1.05rem;
}
.ki-principles-list strong::before { content: "› "; color: var(--cyan-glow); font-family: var(--font-mono); }

/* ---------- Referenzen ---------- */
.filter { display: flex; flex-wrap: wrap; margin-bottom: 24px; border: 1px solid var(--ink); width: max-content; max-width: 100%; }
.filter button {
  font-size: .78rem; text-transform: uppercase;
  padding: .95em 1.3em;
  border: 0; border-right: 1px solid var(--ink);
  background: #fff; color: var(--ink);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.filter button:last-child { border-right: 0; }
.filter button:hover { background: var(--surface); }
.filter button[aria-pressed="true"] { background: var(--ink); color: #fff; }


/* Langjährige Projekte */
.lt { margin-bottom: clamp(48px, 5vw, 72px); }
.lt-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.lt-head h3, .ref-list-head h3 { font-size: 1.6rem; margin: 0; }
.lt-head p { margin: 0; color: var(--muted); }
.lt-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.lt-card { background: #fff; padding: var(--pad); display: flex; flex-direction: column; position: relative; }
.lt-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--cyan); transition: width .3s ease; }
.lt-card:hover::before { width: 100%; }
.lt-years { margin: 0; font: 600 1rem/1 var(--font-head); color: var(--muted); }
.lt-years strong {
  font: 820 clamp(3rem, 5vw, 4.4rem)/1 var(--font-head); font-stretch: 125%;
  color: var(--ink); letter-spacing: -0.03em; margin-right: 4px;
}
.lt-time { margin: 10px 0 22px; font: 500 .75rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cyan-text); }
.lt-card h4 { font-size: 1.15rem; font-stretch: 106%; margin: 0 0 6px; line-height: 1.25; }
.lt-meta { margin: 0 0 18px; font-size: .92rem; color: var(--muted); }
.lt-card .chips { margin-top: auto; }
.lt-summary { background: var(--dark); color: var(--dark-muted); }
.lt-summary .lt-years { color: var(--dark-muted); margin-bottom: 18px; }
.lt-summary .lt-years strong { color: var(--volt); }
.lt-summary p:last-child { margin: 0; }
.lt-summary::before { background: var(--volt); }

.ref-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 20px; }
.ref-list-head .filter { margin-bottom: 0; }

.ref-more {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  padding: 18px 14px; margin: 0; cursor: pointer;
  background: #fff; border: 0; border-bottom: 1px solid var(--ink);
  font: 500 .8rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  transition: background-color .15s ease;
}
.ref-more:hover { background: var(--surface); }
.ref-more[aria-expanded="true"] span[aria-hidden] { transform: rotate(45deg); }
.ref-more span[aria-hidden] { font-size: 1.2rem; color: var(--cyan-text); transition: transform .2s ease; }
.ref-more[hidden] { display: none; }
.ref-table td.ref-time { width: 13%; white-space: nowrap; font: 500 .82rem/1.4 var(--font-mono); color: var(--ink-2); }

/* Referenzen als Tabelle */
.ref-table-wrap { border-top: 1px solid var(--ink); }
.ref-table { width: 100%; border-collapse: collapse; }
.ref-table thead th {
  text-align: left; padding: 14px 16px 14px 0;
  font: 500 .74rem/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line);
}
.ref-table tbody th, .ref-table tbody td {
  text-align: left; vertical-align: middle;
  padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line);
  font-weight: 400; color: var(--ink-2); font-size: .98rem;
}
.ref-table tbody tr { transition: background-color .15s ease; }
.ref-table tbody tr:hover { background: var(--surface); }
.ref-table tbody tr:hover .ref-num { box-shadow: inset 3px 0 0 var(--cyan); }
.ref-table tbody th { width: 30%; }
.ref-table .ref-num { width: 64px; padding-left: 14px; font: 500 .78rem/1 var(--font-mono); color: var(--cyan-text); }
.ref-branch { display: block; margin-top: 3px; font-size: .9rem; color: var(--muted); }
.ref-link { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--cyan); }
.ref-link:hover { color: var(--ink); background: var(--volt); }
.ref-table tbody tr.ref-named + tr.ref:not(.ref-named) > * { border-top: 1px solid var(--ink); }
.ref-name { font: 700 1.08rem/1.3 var(--font-head); font-stretch: 106%; color: var(--ink); }
.ref-table td:last-child { width: 14%; }
.ref-table .chips { margin: 0; }
.ref-table tr[hidden] { display: none; }

.ref-note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  margin-top: 32px; padding: var(--pad);
  background: var(--surface); border: 1px solid var(--line);
}
.ref-note p { margin: 0; max-width: 70ch; color: var(--ink-2); }
.ref-note strong { color: var(--ink); }

@media (max-width: 760px) {
  .ref-table thead { display: none; }
  .ref-table, .ref-table tbody, .ref-table tr, .ref-table th, .ref-table td { display: block; width: 100% !important; }
  .ref-table tbody tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .ref-table tbody tr[hidden] { display: none; }
  .ref-table tbody th, .ref-table tbody td { border: 0; padding: 3px 0; }
  .ref-table tbody th { padding-bottom: 6px; }
  .ref-table td::before {
    content: attr(data-label); display: block;
    font: 500 .68rem/1.6 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  }
  .ref-table td:last-child::before { display: none; }
  .ref-table td.ref-time.is-empty { display: none; }
  .ref-table td:last-child { padding-top: 8px; }
  .ref-table tbody tr:hover .ref-num { box-shadow: none; }
  .ref-table .ref-num { display: none; }
}

/* ---------- Zusammenarbeit ---------- */
.roles { grid-template-columns: 1fr 1fr; }
.role { padding: var(--pad); display: flex; flex-direction: column; align-items: flex-start; }
.role-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 22px; }
.role-num {
  flex: none; width: 64px; height: 64px;
  display: grid; place-items: center;
  font: 800 1.8rem/1 var(--font-head); font-stretch: 125%;
  background: var(--ink); color: var(--volt);
}
.role-alt .role-num { background: var(--cyan); color: var(--ink); }
.role-for { font-size: .74rem; text-transform: uppercase; color: var(--cyan-text); margin: 4px 0 8px; }
.role h3 { font-size: clamp(1.4rem, 2.2vw, 1.95rem); margin: 0; }
.role > p { color: var(--ink-2); }
.role-list { display: grid; margin: 6px 0 28px; width: 100%; }
.role-list li {
  padding: 12px 0 12px 28px; position: relative; color: var(--muted);
  border-top: 1px solid var(--line);
}
.role-list li:last-child { border-bottom: 1px solid var(--line); }
.role-list li::before {
  content: "+"; position: absolute; left: 4px; top: 12px;
  font-family: var(--font-mono); color: var(--cyan-text);
}
.role-list strong { color: var(--ink); }
.role .text-link { margin-top: auto; }

.model { margin-top: clamp(48px, 5vw, 72px); padding: 0; }
.model h3 { font-size: 1.6rem; margin-bottom: 20px; }
.model-flow {
  display: grid;
  grid-template-columns: 1fr 56px 1.3fr 56px 1.5fr;
  align-items: stretch;
}
.model-node { padding: 22px 24px; border: 1px solid var(--line); background: #fff; }
.model-node p { margin: 6px 0 0; font-size: .95rem; color: var(--muted); line-height: 1.5; }
.model-label { font: 700 1.1rem/1.25 var(--font-head); font-stretch: 108%; color: var(--ink); }
.model-core { background: var(--dark); border-color: var(--dark); }
.model-core .model-label { color: #fff; }
.model-core p { color: var(--dark-muted); }
.model-core::before {
  content: "ANSPRECHPARTNER"; display: block; margin-bottom: 10px;
  font: 500 .68rem/1 var(--font-mono); letter-spacing: .08em; color: var(--volt);
}
.model-net { border: 1px dashed var(--ink); }
.model-link { align-self: center; height: 1px; background: var(--ink); position: relative; }
.model-link::after {
  content: ""; position: absolute; right: 0; top: -4px;
  border-left: 8px solid var(--ink); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent;
}
.model-points {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 24px; border-top: 1px solid var(--ink);
}
.model-points p { margin: 0; padding: 20px 24px 0 0; font-size: .98rem; color: var(--muted); }
.model-points strong { display: block; color: var(--ink); font-family: var(--font-head); font-stretch: 106%; font-size: 1.08rem; margin-bottom: 6px; }

.sub-head { font-size: 1.6rem; margin: clamp(48px, 5vw, 72px) 0 20px; }
.steps { grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { padding: var(--pad); }
.step::before {
  counter-increment: step;
  content: "SCHRITT " counter(step, decimal-leading-zero);
  display: inline-block; font-size: .72rem;
  padding: .4em .6em; margin-bottom: 26px;
  border: 1px solid var(--ink); color: var(--ink);
}
.step h3 { font-size: 1.15rem; }
.step p { font-size: .96rem; color: var(--muted); margin: 0; }

.facts-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  margin-top: clamp(48px, 5vw, 72px);
}
.facts, .agencies { padding: var(--pad); background: #fff; }
.facts dl { display: grid; grid-template-columns: max-content 1fr; margin: 20px 0 0; }
.facts dt, .facts dd { padding: 11px 0; border-top: 1px solid var(--line); margin: 0; }
.facts dt { font-weight: 650; color: var(--ink); padding-right: 28px; }
.facts dd { color: var(--muted); }
.agencies .form-hint { font-size: .75rem; text-transform: uppercase; color: var(--muted); margin: 0; }
.agencies ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.agencies li { font-size: .9rem; padding: .5em .8em; border: 1px solid var(--line); color: var(--ink-2); }

.faq { margin-top: clamp(48px, 5vw, 72px); max-width: 1000px; }
.faq h3 { margin-bottom: 16px; font-size: 1.6rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 56px 20px 0;
  font-weight: 600; font-size: 1.05rem; color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font: 500 1.4rem/1 var(--font-mono); color: var(--cyan-text);
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--cyan-text); }
.faq details p { padding: 0 56px 22px 0; margin: 0; color: var(--muted); max-width: 72ch; }

/* ---------- Kontakt (dunkler Block) ---------- */
#kontakt { background: var(--dark); color: var(--dark-muted); }
#kontakt h2, #kontakt h3 { color: #fff; }
#kontakt .lead { color: #c9ced8; }
#kontakt .eyebrow { color: #fff; }
#kontakt .section-head .eyebrow::before { background: var(--cyan); color: var(--ink); }
#kontakt a { color: var(--cyan-glow); }
#kontakt a:hover { color: #fff; }

.contact-grid {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 1px;
  background: var(--dark-line); border: 1px solid var(--dark-line);
}
.contact-info, .form { padding: var(--pad); background: var(--dark); }
.contact-info address { font-style: normal; margin: 18px 0 28px; line-height: 1.75; }
.contact-info address strong { color: #fff; }
.contact-lines { display: grid; border-top: 1px solid var(--dark-line); }
#kontakt .contact-lines a {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--dark-line);
  color: #fff; text-decoration: none; font-weight: 600; font-size: 1.1rem;
  transition: color .15s ease, padding .2s ease;
}
#kontakt .contact-lines a:hover { color: var(--cyan-glow); padding-left: 8px; }
.contact-lines svg { width: 20px; height: 20px; color: var(--cyan-glow); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
.memberships { margin-top: 28px; font-size: .92rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font: 500 .75rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.field label .opt { color: var(--dark-muted); }
.field input, .field select, .field textarea {
  font: 400 1rem/1.4 var(--font-body);
  color: #fff;
  padding: .9em 1em;
  border-radius: 0;
  border: 1px solid #343944;
  background-color: var(--dark-2);
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--cyan-glow) 50%), linear-gradient(135deg, var(--cyan-glow) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
  padding-right: 2.5em;
}
.field select option { background: var(--dark-2); color: #fff; }
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan-glow); box-shadow: 0 0 0 1px var(--cyan-glow);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #ff7a6b; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; margin: 6px 0 26px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cyan); flex: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
#kontakt .btn-primary { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
#kontakt .btn-primary:hover { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.form-hint { font-size: .75rem; text-transform: uppercase; color: var(--dark-muted); margin: 0; }
.form-status { margin-top: 20px; padding: 14px 16px; font-weight: 500; border: 1px solid var(--dark-line); color: #fff; }
.form-status:empty { display: none; }
.form-status.ok  { border-color: var(--volt); color: var(--volt); }
.form-status.err { border-color: #ff7a6b; color: #ffb3aa; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-muted); border-top: 1px solid var(--dark-line); }
.site-footer .bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 26px 30px; font-size: .9rem;
}
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: #fff; text-decoration: none; font-weight: 500; }
.site-footer a:hover { color: var(--cyan-glow); }
.no-cookies { display: inline-flex; align-items: center; gap: 10px; font-size: .75rem; text-transform: uppercase; }
.no-cookies::before { content: ""; width: 8px; height: 8px; background: var(--volt); }

/* ---------- Rechtsseiten ---------- */
.legal { padding-top: clamp(28px, 4vw, 56px); }
.legal .masthead a { color: var(--ink); text-decoration: none; }
.legal .masthead a:hover { color: var(--cyan-text); }
.legal h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); margin-bottom: .3em; }
.legal-intro { max-width: 60ch; margin-bottom: clamp(32px, 4vw, 56px); }
.legal-grid {
  display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 80px);
  border-top: 1px solid var(--ink); padding-top: clamp(24px, 3vw, 40px);
}
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.legal-toc ol { counter-reset: toc; border-top: 1px solid var(--line); }
.legal-toc li { border-bottom: 1px solid var(--line); }
.legal-toc a {
  display: grid; grid-template-columns: 2.4em 1fr; gap: 6px;
  padding: 10px 4px; font-size: .92rem; color: var(--ink-2); text-decoration: none;
  transition: background-color .15s ease;
}
.legal-toc a::before {
  counter-increment: toc; content: counter(toc, decimal-leading-zero);
  font: 500 .75rem/1.6 var(--font-mono); color: var(--cyan-text);
}
.legal-toc a:hover { background: var(--surface); color: var(--ink); }
.legal-body { max-width: 78ch; }
.legal-body article { padding-block: 8px 28px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-body article + article { border-top: 1px solid var(--line); padding-top: 32px; }
.legal-body h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: .7em; }
.legal-body h3 { font-size: 1.1rem; margin: 1.6em 0 .6em; }
.legal-body p, .legal-body li, .legal-body dd { color: var(--ink-2); }
.legal-body address { font-style: normal; line-height: 1.75; margin-bottom: 1em; }
.legal-body address strong { color: var(--ink); }
.legal-list { display: grid; margin: 0 0 1.2em; border-top: 1px solid var(--line); }
.legal-list li { padding: 10px 0 10px 26px; position: relative; border-bottom: 1px solid var(--line); }
.legal-list li::before { content: "+"; position: absolute; left: 4px; top: 10px; font-family: var(--font-mono); color: var(--cyan-text); }
.legal-dl { display: grid; grid-template-columns: max-content 1fr; margin: 0; border-top: 1px solid var(--line); }
.legal-dl dt, .legal-dl dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.legal-dl dt { font: 500 .78rem/1.9 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-right: 32px; }
mark.todo { background: var(--volt); color: var(--ink); padding: .1em .35em; font-family: var(--font-mono); font-size: .9em; }
.site-footer a[aria-current="page"] { color: var(--cyan-glow); }
@media (max-width: 860px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

/* ---------- Einblenden ---------- */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal.is-pending { opacity: 0; transform: translateY(14px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-row { grid-template-columns: 1fr 1fr; }
  .hero-intro { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .bento, .lt-grid { grid-template-columns: repeat(2, 1fr); }
  .row-2 { grid-row: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .ki-principles-list { grid-template-columns: 1fr 1fr; }
  .ki-principles-list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .ki-principles-list li:nth-child(n+3) { border-top: 1px solid var(--dark-line); margin-top: 18px; }
}
@media (max-width: 900px) {
  .roles, .facts-grid, .contact-grid, .ki-grid { grid-template-columns: 1fr; }
  .model-flow { grid-template-columns: 1fr; }
  .model-link { width: 1px; height: 28px; margin-left: 32px; align-self: auto; }
  .model-link::after { right: auto; top: auto; bottom: 0; left: -4px; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 8px solid var(--ink); border-bottom: 0; }
  .model-points { grid-template-columns: 1fr; }
  .model-points p { padding-right: 0; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  h1 { font-stretch: 100%; }
  .hero-row { grid-template-columns: 1fr; }
  .portrait { display: grid !important; grid-template-columns: 110px 1fr; align-items: center; }
  .portrait-img { font-size: 2rem; }
  .portrait-img::after { display: none; }
  .bento, .steps, .ki-grid, .lt-grid { grid-template-columns: 1fr; }
  .ki-principles-list { grid-template-columns: 1fr; }
  .ki-principles-list li, .ki-principles-list li + li { padding: 18px 0 4px; border-left: 0; margin-top: 0; }
  .ki-principles-list li + li { border-top: 1px solid var(--dark-line); margin-top: 14px; }
  .span-2 { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
  .facts dl { grid-template-columns: 1fr; }
  .facts dd { border-top: 0; padding-top: 0; }
  .system-index a { grid-template-columns: 2.6em 1fr; row-gap: 2px; }
  .system-index a::after { display: none; }
  .system-index .desc { grid-column: 2; }
  .masthead { gap: 6px 16px; }
  .logo img { height: 26px; }
  .filter { width: 100%; }
  .filter button { flex: 1 1 auto; }
}
