/* Zarevo Komponenten und Layout. Nutzt nur Tokens aus tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.55;
  letter-spacing: var(--track-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, blockquote, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--glow-violet); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--glow-tint); color: var(--ink); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: calc(var(--container-wide) + 2 * var(--gutter)); }
.section { padding-block: var(--section); }
.center { text-align: center; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typografie ---------- */
.display, .h1, .h2, .h3, .quote-text { font-family: var(--font-display); font-weight: 400; color: inherit; }
.display { font-size: var(--text-display); line-height: 0.98; letter-spacing: var(--track-display); }
.h1 { font-size: var(--text-h1); line-height: 1.04; letter-spacing: var(--track-heading); }
.h2 { font-size: var(--text-h2); line-height: 1.08; letter-spacing: var(--track-heading); }
.h3 { font-size: var(--text-h3); line-height: 1.22; letter-spacing: -0.015em; }
.lead { font-size: var(--text-lead); line-height: 1.45; letter-spacing: -0.012em; }
.small { font-size: var(--text-small); line-height: 1.45; }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
}
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

/* ---------- Aktionen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--night); color: var(--paper); }
.btn-primary:hover { background: #2a2c45; }
.btn-inverse { background: var(--paper); color: var(--ink); }
.btn-inverse:hover { background: var(--kalk); }
.btn-ghost { background: transparent; color: var(--ink); padding: 0 14px; }
.btn-ghost:hover { background: var(--kalk); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-ghost.btn-sm { padding: 0 12px; }

.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; letter-spacing: -0.01em; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: 13px;
  line-height: 1;
  color: var(--ink);
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; }
/* Logo- und Zeichen-Dateien aus assets/marke/logo in der Box des 32er-Rasters:
   der Innenabstand ist der Rand, den die Form im Raster hat. */
.logo-img { display: block; height: 28px; width: auto; box-sizing: border-box; padding: 7.438px 0 2.406px 1.75px; }
.mark-img { display: block; width: 1em; height: 1em; box-sizing: border-box; padding: 0.265625em 0.0625em 0.0859375em; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--paper); transition: box-shadow var(--dur) var(--ease); }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: var(--s-2); }
.nav-links { display: flex; gap: 2px; margin-left: 40px; }
.nav-links a { padding: 8px 14px; border-radius: var(--r-md); font-size: 15px; transition: background-color 200ms; }
.nav-links a:hover { background: var(--kalk); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper); align-items: center; justify-content: center; cursor: pointer; }
.nav-sheet { display: none; }
@media (max-width: 980px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-sheet { position: fixed; inset: var(--nav-h) 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; }
  .nav.is-open .nav-sheet { display: block; }
  .nav-sheet a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; }
  .nav-sheet a:last-child { border-bottom: 0; }
}
@media (max-width: 520px) {
  .nav-actions .btn-primary { padding: 0 14px; font-size: 14px; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 7.5vw, 112px); text-align: center; }
.hero .lead { max-width: 720px; margin: 28px auto 0; }
.hero-visual { position: relative; margin-top: clamp(48px, 5.5vw, 80px); height: clamp(460px, 50vw, 1000px); border-radius: var(--r-xl); overflow: hidden; }
.hero-visual .app { position: absolute; left: 0; right: 0; top: 26%; width: min(88%, 1000px); margin-inline: auto; zoom: var(--ui-zoom); }

/* ---------- Bildflächen (glow.js) ---------- */
.art { position: relative; overflow: hidden; background: var(--glow-night); isolation: isolate; }
.art[data-art="field"] { background: #f1ebf0; }
.art-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 900ms var(--ease); }
.art.is-drawn .art-canvas { opacity: 1; }
.rounded { border-radius: var(--r-xl); }

/* ---------- App-Beispiele ---------- */
/* Custom-Web-Apps, wie wir sie für Kunden bauen, im Design des Kundenportals
   (zarevo-kundenportal): Karten mit --r-ui, Status als runde Pille, Kennzahlen in Geist halbfett,
   Buttons klein mit --r-sm. Generische Inhalte, nie echte oder erfundene Kundennamen. */
.panel {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  font-size: 14px;
  line-height: 1.43;
  box-shadow: 0 40px 80px -32px rgb(8 8 20 / 0.45), 0 12px 24px -12px rgb(8 8 20 / 0.2);
  text-align: left;
}
.panel.dark { background: rgb(24 25 42 / 0.94); color: var(--on-night); border-color: rgb(255 255 255 / 0.08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head > div { min-width: 0; }
.panel-title { font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: -0.025em; line-height: 1.2; }
.panel .sub { color: var(--muted); font-size: 13px; }
.panel.dark .sub { color: var(--on-night-muted); }
/* Marke für Platzhalter (Fallstudien), wird vor dem Livegang ersetzt */
.demo-tag { flex: none; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); border: 1px dashed var(--line-strong); border-radius: var(--r-pill); padding: 4px 9px; white-space: nowrap; }
.section-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 10px; font-size: 14px; font-weight: 500; }
.section-label span { font-size: 13px; font-weight: 400; color: var(--muted); }

/* Liste: eine Karte, Zeilen durch Linien getrennt */
.rows { display: grid; border: 1px solid var(--line); border-radius: var(--r-ui); overflow: hidden; box-shadow: 0 2px 2px rgb(0 0 0 / 0.04); }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; }
.row + .row { border-top: 1px solid var(--line); }
.panel.dark .rows { border-color: rgb(255 255 255 / 0.1); box-shadow: none; }
.panel.dark .row + .row { border-top-color: rgb(255 255 255 / 0.1); }
.row-name { font-weight: 500; }
.row > div > .sub { display: block; margin-top: 2px; }
.row-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--kalk); color: var(--ink); }
.panel.dark .row-ico { background: rgb(255 255 255 / 0.08); color: var(--on-night); }
.row-ico .icon { width: 16px; height: 16px; }

/* Status als runde Pille mit Punkt */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--kalk); color: var(--muted); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ok { background: color-mix(in srgb, var(--ok) 12%, var(--paper)); color: var(--ok-text); }
.chip.warn { background: color-mix(in srgb, var(--warn) 13%, var(--paper)); color: var(--warn-text); }
.chip.off { background: transparent; color: var(--subtle); box-shadow: inset 0 0 0 1px var(--line-strong); }
.panel.dark .chip { background: rgb(255 255 255 / 0.07); color: var(--on-night-muted); }
.panel.dark .chip.ok { background: color-mix(in srgb, var(--ok-night) 16%, transparent); color: var(--ok-night); }
.panel.dark .chip.warn { background: color-mix(in srgb, var(--warn-night) 16%, transparent); color: var(--warn-night); }
.panel.dark .chip.off { background: transparent; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16); }

/* Kleine Buttons */
.mini-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500; border: 1px solid var(--line-strong); background: var(--paper); }
.mini-btn.solid { background: var(--night); color: var(--on-night); border-color: var(--night); }
.panel.dark .mini-btn { background: transparent; color: var(--on-night); border-color: rgb(255 255 255 / 0.18); }
.panel.dark .mini-btn.solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* Kennzahl-Kacheln */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--line); border-radius: var(--r-ui); padding: 14px 16px; box-shadow: 0 2px 2px rgb(0 0 0 / 0.04); }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi b { font-size: 26px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 12px; color: var(--muted); }
.panel.dark .kpi { border-color: rgb(255 255 255 / 0.1); box-shadow: none; }
.panel.dark .kpi span, .panel.dark .kpi small { color: var(--on-night-muted); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }

/* App-Fenster: Seitenleiste mit Marke des Kunden, Inhalt */
.app { display: grid; grid-template-columns: 224px minmax(0, 1fr); padding: 0; overflow: hidden; }
.app-side { display: flex; flex-direction: column; gap: 2px; padding: 16px 12px 12px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--kalk) 50%, var(--paper)); }
.app-brand { display: flex; align-items: center; gap: 10px; padding: 0 4px 14px; }
.app-brand .logo-sq { width: 28px; height: 28px; flex: none; border-radius: var(--r-sm); background: var(--night); color: var(--on-night); display: grid; place-items: center; }
.app-brand .logo-sq .icon { width: 16px; height: 16px; }
.app-brand b { display: block; font-weight: 500; }
.app-brand small, .app-user small { display: block; font-size: 12px; color: var(--muted); }
.app-side a { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px; border-radius: var(--r-sm); color: var(--muted); }
.app-side a.on { background: color-mix(in srgb, var(--kalk-deep) 50%, var(--kalk)); color: var(--ink); font-weight: 500; }
.app-side a .icon { width: 16px; height: 16px; }
.app-side .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--night); color: var(--on-night); font-size: 11px; font-weight: 500; display: grid; place-items: center; }
.app-side .label { padding: 14px 8px 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.app-side .dot { width: 8px; height: 8px; margin: 0 4px; border-radius: 50%; background: var(--ok); }
.app-side .dot.warn { background: var(--warn); }
.app-side .dot.off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.app-user { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px 4px 0; border-top: 1px solid var(--line); }
.app-user .av { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--kalk); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.app-user b { display: block; font-weight: 500; }
.app-content { padding: 24px 24px 28px; }
.app-content > .panel-title { font-size: 30px; margin-bottom: 18px; }

/* Ablauf-Schritte */
.flow { display: grid; gap: 0; }
.fstep { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 0; }
.fstep + .fstep { border-top: 1px dashed var(--line); }
.fstep .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--muted); background: var(--paper); }
.fstep.done .dot { background: var(--night); color: var(--paper); border-color: var(--night); }
.fstep.done .dot .icon { width: 14px; height: 14px; stroke-width: 2; }
.fstep.wait .dot { border-color: var(--warn); color: var(--warn-text); }
.fstep b { display: block; font-weight: 500; letter-spacing: -0.01em; }

/* Aufwand-Nutzen-Matrix */
.matrix { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); border: 1px solid rgb(255 255 255 / 0.1);
  background:
    linear-gradient(rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.1)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.1)) 0 50% / 100% 1px no-repeat,
    linear-gradient(color-mix(in srgb, var(--ok-night) 8%, transparent), color-mix(in srgb, var(--ok-night) 8%, transparent)) 0 0 / 50% 50% no-repeat; }
.matrix .q { position: absolute; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-night-muted); }
.matrix .q1 { left: 12px; top: 10px; color: var(--ok-night); }
.matrix .q2 { right: 12px; top: 10px; }
.matrix .q3 { left: 12px; bottom: 10px; }
.matrix .q4 { right: 12px; bottom: 10px; }
.matrix .pt { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 8px; font-size: 12.5px; white-space: nowrap; transform: translate(calc(var(--s) / -2), -50%); }
.matrix .pt::before { content: ""; width: var(--s); height: var(--s); border-radius: 50%; background: var(--on-night); box-shadow: 0 0 0 4px rgb(255 255 255 / 0.08); }
.matrix .pt.off { color: var(--on-night-muted); }
.matrix .pt.off::before { background: transparent; box-shadow: inset 0 0 0 1px var(--on-night-muted); }
.matrix-axes { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--on-night-muted); }

/* Balkendiagramm */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-bottom: 24px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.bars div { position: relative; flex: 1; height: var(--h); background: var(--kalk-deep); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.bars div.on { background: var(--night); }
.bars span { position: absolute; left: 0; right: 0; bottom: -22px; text-align: center; font-size: 11px; color: var(--muted); }

/* ---------- Systemleiste ---------- */
.strip { padding-block: clamp(72px, 8vw, 112px); text-align: center; }
.strip p { font-size: 17px; }
.logos { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 18px clamp(28px, 3.6vw, 56px); max-width: 1180px; }
/* Systeme als Namen in Text: Logos nur mit schriftlicher Erlaubnis der Marken (assets/logos/QUELLEN.md) */
.logos li { font-family: var(--font-display); font-size: clamp(19px, 1.5vw, 24px); letter-spacing: -0.01em; color: var(--ink); opacity: 0.62; white-space: nowrap; transition: opacity var(--dur) var(--ease); }
.logos li:hover { opacity: 1; }

/* ---------- Geteilter Bildabschnitt ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(560px, 52vw, 960px); }
.split > .art { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 3vw, 40px); color: var(--on-night); }
.split > .art:first-child::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(7 8 14 / 0.72), rgb(7 8 14 / 0.15) 55%, transparent 75%); }
.split .h1 { max-width: 16ch; }
.split .lead { max-width: 34ch; margin-top: 24px; color: rgb(244 242 238 / 0.86); }
.split .btn { margin-top: 36px; align-self: flex-start; }

/* ---------- Leistungen: gestapelte Karten ---------- */
.stack-section { background: var(--kalk); }
.stack { margin-top: clamp(48px, 6vw, 88px); display: grid; gap: 48px; }
.stack-card {
  --i: 0;
  position: sticky;
  top: calc(var(--nav-h) + 20px + var(--i) * 60px);
  min-height: min(860px, calc(100vh - var(--nav-h) - 140px));
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  box-shadow: 0 -1px 0 rgb(0 0 0 / 0.06);
}
.stack-card > .art { position: absolute; inset: 0; z-index: 0; }
.stack-card .copy, .stack-card .visual { position: relative; z-index: 1; }
.stack-card .copy { padding: clamp(32px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; color: var(--on-night); }
.stack-card.light .copy { color: var(--ink); }
.stack-card .eyebrow { position: absolute; top: 22px; left: clamp(32px, 6vw, 88px); }
.stack-card .h2 { max-width: 17ch; text-wrap: balance; }
.stack-card .copy p { margin-top: 20px; max-width: 42ch; font-size: 17px; line-height: 1.55; }
.stack-card:not(.light) .copy p { color: rgb(244 242 238 / 0.82); }
.stack-card .copy .btn { margin-top: 36px; align-self: flex-start; }
.stack-card .visual { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: clamp(24px, 4vw, 56px); }
.stack-card .visual .panel { width: min(100%, 500px); zoom: var(--ui-zoom); }

/* ---------- Einsatzfelder: Akkordeon ---------- */
.uses { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; margin-top: clamp(48px, 6vw, 88px); }
.uses-visual { aspect-ratio: 1 / 1.02; border-radius: var(--r-xl); display: grid; place-items: center; padding: clamp(20px, 3vw, 44px); }
.uses-visual .panel { width: min(100%, 470px); zoom: var(--ui-zoom); display: none; box-shadow: 0 30px 60px -30px rgb(60 40 90 / 0.35); }
.uses-visual .panel.on { display: block; animation: rise 600ms var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.acc { border-bottom: 1px solid var(--ink); }
.acc-item { position: relative; border-top: 1px solid var(--ink); }
.acc-item::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease); }
.acc-item.on::before { transform: scaleX(1); }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.02em; line-height: 1.15; }
.acc-btn .icon { width: 22px; height: 22px; transition: transform var(--dur) var(--ease); }
.acc-item.on .acc-btn .icon { transform: rotate(45deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.acc-item.on .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-body .lead { max-width: 36ch; }
.checks { display: grid; gap: 10px; margin: 24px 0 32px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; }
.checks .icon { width: 19px; height: 19px; margin-top: 2px; }

/* ---------- Grundsätze: Karten mit Kerbe ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.section-head .h1 { max-width: 14ch; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(40px, 5vw, 72px); }
.ncard { --bite: var(--paper); position: relative; display: flex; flex-direction: column; background: var(--kalk); border-radius: var(--r-xl); padding: 16px 16px 28px; min-height: 500px; }
.ncard:has(.ncard-mark)::after { content: ""; position: absolute; right: -12px; bottom: -12px; width: 92px; height: 92px; border-radius: 50%; background: var(--bite); }
.ncard-art { height: clamp(230px, 16vw, 400px); border-radius: var(--r-lg); }
.ncard .eyebrow { margin: 26px 8px 0; color: var(--muted); }
.ncard .h3 { margin: 14px 8px 0; text-wrap: balance; }
.ncard p { margin: 16px 8px 0; color: var(--muted); max-width: 34ch; padding-right: 40px; }
.ncard-mark { position: absolute; z-index: 1; right: 6px; bottom: 6px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--kalk); color: var(--ink); }
.ncard-mark .icon { width: 22px; height: 22px; }

/* Fallstudien: ganze Karte ist der Link, die Kerbe trägt den Pfeil */
.ncard.case { min-height: 0; padding-bottom: 96px; color: inherit; transition: background-color var(--dur) var(--ease); }
.ncard.case:hover { background: var(--kalk-deep); }
.ncard.case .ncard-mark { background: var(--night); color: var(--paper); transition: transform var(--dur) var(--ease); }
.ncard.case:hover .ncard-mark { transform: translateX(3px); }
.ncard.case .ncard-art { display: grid; place-items: center; }
.case-logo { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--ink); background: rgb(255 255 255 / 0.85); border-radius: var(--r-pill); padding: 10px 18px; }
.ncard .eyebrow .demo-tag { margin-left: 8px; vertical-align: 1px; }
.cards2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: clamp(40px, 5vw, 72px); }
/* Fallstudie ohne Detailseite: kein Link, keine Kerbe, die Eckdaten stehen auf der Karte */
article.ncard.case { padding-bottom: 32px; }
article.ncard.case:hover { background: var(--kalk); }
article.ncard.case p { max-width: 62ch; padding-right: 0; }
.case-logo img { display: block; width: 150px; height: auto; }
.case-name { font-family: var(--font-sans); font-size: 18px; letter-spacing: 0; }
.case-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 8px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.case-facts dt { font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
.case-facts dd { margin: 8px 0 0; font-size: var(--text-small); line-height: 1.45; text-wrap: pretty; }

/* Platzhalter, die vor dem Livegang ersetzt werden müssen (scripts/build.sh bricht sonst ab) */
[data-platzhalter] { outline: 1px dashed var(--line-strong); outline-offset: 6px; }

/* ---------- Haltung / Gründer ---------- */
.quote { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.founders { display: grid; gap: 28px; margin-top: 24px; }
.founder b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 400; letter-spacing: -0.02em; }
.founder span { color: var(--muted); font-size: 15px; }
.quote-text { font-size: var(--text-quote); line-height: 1.16; letter-spacing: -0.022em; text-indent: -0.42em; }
.quote cite { display: block; margin-top: 32px; font-style: normal; font-size: 16px; color: var(--muted); }

/* ---------- Dunkles Band: Kontrolle ---------- */
.band { background: var(--night); color: var(--on-night); text-align: center; }
.band .lead { max-width: 620px; margin: 24px auto 0; color: var(--on-night-muted); }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: clamp(56px, 7vw, 96px); text-align: left; }
.band-item { border-top: 1px solid rgb(255 255 255 / 0.16); padding-top: 24px; }
.band-item .icon { width: 28px; height: 28px; stroke-width: 1.25; }
.band-item b { display: block; margin-top: 20px; font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: -0.015em; }
.band-item p { margin-top: 10px; color: var(--on-night-muted); font-size: 15px; line-height: 1.5; }

/* ---------- Abschluss-CTA ---------- */
.cta { min-height: clamp(600px, 88vh, 1100px); display: grid; place-items: start center; text-align: center; color: var(--on-night); padding: clamp(96px, 15vh, 150px) var(--gutter) 96px; }
.cta .display { font-size: clamp(44px, 6vw, 108px); max-width: 14ch; margin-inline: auto; }
.cta p { margin: 24px auto 0; max-width: 46ch; color: rgb(244 242 238 / 0.82); }
.cta .btn { margin-top: 40px; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--on-night); padding: clamp(72px, 8vw, 112px) 0 40px; }
.footer-grid { display: grid; grid-template-columns: 4fr repeat(4, 2fr); gap: 40px; }
.footer .mark-img { font-size: 44px; }
.footer h4 { font-size: 13px; font-weight: 400; color: var(--on-night-muted); margin-bottom: 20px; }
.footer li + li { margin-top: 14px; }
.footer li a { font-size: 15px; transition: opacity 200ms; }
.footer li a:hover { opacity: 0.7; }
.footer-bottom { margin-top: clamp(64px, 8vw, 120px); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--on-night-muted); }
.footer-bottom a { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom nav { display: flex; gap: 24px; }

/* ---------- Textseiten (Impressum, Datenschutz) ---------- */
.prose { max-width: 760px; padding-top: clamp(56px, 7vw, 104px); padding-bottom: var(--section); }
.prose h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-h1); line-height: 1.05; letter-spacing: var(--track-heading); margin-bottom: 40px; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: -0.015em; line-height: 1.2; margin: 48px 0 14px; }
.prose h3 { font-size: 17px; font-weight: 500; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink); line-height: 1.65; }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 22px; margin: 10px 0; }
.prose li + li { margin-top: 6px; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose .table-wrap { overflow-x: auto; margin: 16px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-small); line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 500; color: var(--muted); }
.prose .hinweis { margin: 20px 0; padding: 20px 24px; background: var(--kalk); border-radius: var(--r-lg); }
.prose .hinweis p:first-child { margin-top: 0; }

/* ---------- Fallstudie ---------- */
.case-hero { padding-top: clamp(56px, 7vw, 104px); }
.case-hero .h1 { max-width: 20ch; margin-top: 20px; font-size: clamp(36px, 4.4vw, 64px); }
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; border-top: 1px solid var(--line); padding-top: 24px; }
.case-meta span { display: block; color: var(--muted); font-size: var(--text-small); }
.case-meta b { font-weight: 500; }
.case-visual { height: clamp(320px, 38vw, 820px); border-radius: var(--r-xl); margin-top: clamp(40px, 5vw, 72px); display: grid; place-items: center; }
.case-body { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 6vw, 96px); padding-block: var(--section); }
.case-body h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; letter-spacing: -0.02em; }
.case-body section + section { margin-top: 56px; }
.case-body p { margin-top: 14px; font-size: 17px; line-height: 1.6; max-width: 62ch; }
.case-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.case-results div { background: var(--kalk); border-radius: var(--r-lg); padding: 24px; }
.case-results b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 40px; letter-spacing: -0.02em; line-height: 1.1; }
.case-results span { color: var(--muted); font-size: var(--text-small); }

/* ---------- Einblenden beim Scrollen ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
  .hero-visual { height: auto; padding: clamp(120px, 17vw, 190px) clamp(20px, 6%, 64px) clamp(20px, 6%, 64px); }
  .hero-visual .app { position: relative; left: auto; right: auto; top: auto; width: 100%; }
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .band-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split > .art:last-child { min-height: 280px; }
  .split > .art:first-child { min-height: 520px; }
  .stack { gap: 20px; }
  .stack-card { position: relative; top: 0; grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .stack-card .eyebrow { position: static; margin-bottom: 20px; }
  .stack-card .visual { padding-top: 0; }
  .uses { grid-template-columns: 1fr; }
  .uses-visual { aspect-ratio: auto; min-height: 420px; }
  .cards3, .cards2 { grid-template-columns: 1fr; }
  .case-meta, .case-results { grid-template-columns: 1fr 1fr; }
  .case-body { grid-template-columns: 1fr; }
  .ncard { min-height: 0; padding-bottom: 88px; }
  .quote { grid-template-columns: 1fr; }
  .founders { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .case-facts { grid-template-columns: 1fr; gap: 14px; }
  .hero-visual { padding: 160px 20px 20px; }
  .app-content .row:nth-child(n+4) { display: none; }
  .quote-text { text-indent: 0; }
  .row-ico { display: none; }
  .row { grid-template-columns: 1fr auto; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .kpi { padding: 10px; }
  .kpi b { font-size: 20px; }
  .app-content { padding: 18px 16px 20px; }
  .app .kpis { grid-template-columns: 1fr 1fr; }
  .app .kpi:nth-child(3) { display: none; }
  .app-content > .panel-title { font-size: 24px; }
  .app .row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .app .row > :last-child { justify-self: start; }
  .band-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .founders { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .panel-title { font-size: 19px; }
  .matrix { aspect-ratio: 1 / 1; }
  .matrix .pt { font-size: 11px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
