/* ═══ Essel · Website ═══════════════════════════════════════════════════
   Werte aus DESIGN.md. Farben nach Kontrastpruefung (DESIGN.md 3.3b).
   Umschaltpunkte: bis 767 Handy · ab 768 Tablet · ab 1024 Desktop-Navigation
   und Desktop-Raster · ab 1100 volle Desktop-Typografie.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Schriften: lokal, keine Verbindung zu Google ─────────────────────── */
@font-face { font-family: "Chivo"; src: url("../fonts/chivo.woff2") format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

:root {
  --ink-900: #101114;  --ink-700: #3C3F44;  --ink-500: #686D75;  --ink-400: #8A8F96;  --ink-300: #9DA1A8;
  --line: #E4E2DC;     --paper: #F4F2EC;    --white: #FFFFFF;
  --dark: #101114;     --dark-2: #191B1F;   --line-dark: #2B2E34;  --on-dark: #F4F2EC;
  --pass: #1F9D6B;     --pass-text: #177A50;
  --fail: #D6453C;     --fail-text: #BF3A31; --fail-text-dark: #E86A62;
  --display: "Chivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: 20px;
  --section-y: 64px;
  --header-h: 72px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}
@media (min-width: 768px)  { :root { --gutter: 40px; --section-y: 96px; } }
@media (min-width: 1100px) { :root { --gutter: 80px; --section-y: 128px; --header-h: 80px; } }

/* ─── Grundlagen ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink-700); font-family: var(--text); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); color: var(--ink-900); text-wrap: balance; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--ink-900); text-decoration: none; }
img, svg { display: block; }
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 2px; }
.section--dark :focus-visible, .site-footer :focus-visible { outline-color: var(--on-dark); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 12px 16px; background: var(--ink-900); color: var(--white); }
.skip:focus { left: 8px; }

.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.stack { display: flex; flex-direction: column; }

/* ─── Typografie ───────────────────────────────────────────────────────── */
.label { font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); }
.label--dark { color: var(--ink-400); }
.label--light-on-dark { color: var(--ink-300); }
.label--red-dark { color: var(--fail-text-dark); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pass); flex-shrink: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; }

.h2 { font-size: 28px; line-height: 30px; font-weight: 800; letter-spacing: -0.02em; }
.h2--lg { font-size: 32px; line-height: 34px; }
.h3 { font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: -0.015em; }
.h3--lg { font-size: 24px; line-height: 28px; font-weight: 800; letter-spacing: -0.02em; }
.lead { font-size: 16px; line-height: 24px; }
.muted { color: var(--ink-300); }
.strong { color: var(--on-dark); font-weight: 500; }
.statement { font-size: 18px; line-height: 27px; font-weight: 500; color: var(--ink-900); max-width: 720px; }
.section--dark .h2, .section--dark .h3, .section--dark .h3--lg { color: var(--on-dark); }
@media (min-width: 768px) {
  .h2 { font-size: 34px; line-height: 38px; }
  .h2--lg { font-size: 44px; line-height: 46px; }
  .h3--lg { font-size: 28px; line-height: 32px; }
  .lead { font-size: 18px; line-height: 27px; }
}
@media (min-width: 1100px) {
  .h2 { font-size: 40px; line-height: 44px; }
  .h2--lg { font-size: 56px; line-height: 54px; }
  .h3 { font-size: 24px; line-height: 30px; }
  .h3--lg { font-size: 32px; line-height: 34px; }
}

.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; max-width: 900px; }
.section-head .lead { max-width: 640px; }
@media (min-width: 1100px) { .section-head { gap: 24px; margin-bottom: 64px; } }

/* ─── Buttons und Links ────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 32px; border-radius: 2px; background: var(--ink-900); color: var(--white); font-size: 16px; line-height: 20px; font-weight: 500; transition: background-color 120ms var(--ease); }
.btn:hover { background: var(--ink-700); color: var(--white); }
.btn--sm { min-height: 44px; padding: 12px 20px; font-size: 14px; }
.link-u { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-700); }
.link-u span { border-bottom: 1px solid var(--ink-300); padding-bottom: 2px; transition: border-color 200ms var(--ease); }
.link-u:hover span { border-color: var(--ink-900); }
.navlink { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--ink-700); transition: color 120ms var(--ease); }
.navlink:hover { color: var(--ink-900); }
.mail-u { color: var(--ink-900); border-bottom: 1px solid var(--ink-300); }

/* ─── Sprachumschalter ─────────────────────────────────────────────────── */
.lang { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-500); }
.lang__active { color: var(--ink-900); font-weight: 500; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; margin-inline: -12px; color: var(--ink-500); transition: color 120ms var(--ease); }
.lang a:hover { color: var(--ink-900); }
.site-footer .lang { color: var(--ink-400); }
.site-footer .lang__active { color: var(--on-dark); }
.site-footer .lang a { color: var(--ink-300); }
.site-footer .lang a:hover { color: var(--on-dark); }

/* ─── Kopfzeile ────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--display); font-weight: 900; font-size: 32px; line-height: 1; letter-spacing: -0.02em; color: var(--ink-900); }
.logo__svg { display: block; height: 0.75em; width: auto; }
.nav-desktop { display: none; align-items: center; gap: 32px; }
.nav-mobile { display: flex; align-items: center; gap: 12px; }
.menu-btn { width: 44px; height: 44px; margin-right: -10px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--ink-900); transition: transform 200ms var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: var(--white); }
.mobile-menu nav { display: flex; flex-direction: column; padding-block: 8px 24px; }
.mobile-menu nav > a:not(.btn) { display: flex; align-items: center; min-height: 52px; font-size: 18px; font-weight: 500; color: var(--ink-900); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 24px; }
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .nav-mobile, .mobile-menu { display: none !important; }
}
@media (min-width: 1100px) { .logo { font-size: 40px; } }

/* ─── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding-block: 64px 48px; }
.hero__inner { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { display: flex; flex-direction: column; gap: 4px; }
.hero__title { font-size: 40px; line-height: 40px; font-weight: 800; letter-spacing: -0.025em; color: var(--ink-900); max-width: 1060px; }
.hero__sub { font-size: 28px; line-height: 32px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-400); }
.hero__lead { max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 4px; }
.cursor { display: inline-block; width: 14px; height: 4px; margin-left: 7px; vertical-align: 6px; background: var(--ink-900); animation: blink 1.1s steps(1) infinite; }
@media (max-width: 767px) { .hero__actions .btn { width: 100%; } .hero__actions .link-u { margin-inline: auto; } }
@media (min-width: 768px) {
  .hero { padding-block: 96px 64px; }
  .hero__title { font-size: 60px; line-height: 58px; }
  .hero__sub { font-size: 44px; line-height: 48px; }
  .cursor { width: 18px; height: 5px; vertical-align: 8px; }
}
@media (min-width: 1100px) {
  .hero { padding-block: 120px 80px; }
  .hero__inner { gap: 40px; }
  .hero__title { font-size: 80px; line-height: 76px; }
  .hero__sub { font-size: 56px; line-height: 60px; }
  .cursor { width: 22px; height: 6px; margin-left: 10px; vertical-align: 10px; }
}

/* ─── Bild: laufende Pipeline ──────────────────────────────────────────── */
.pipeline-wrap { padding-bottom: 64px; }
.pipeline { background: var(--dark); border-radius: 2px; padding: 24px 20px; overflow: hidden; color: var(--on-dark); }
.pipeline__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line-dark); }
.pipeline__status { display: flex; align-items: center; gap: 8px; color: var(--pass); }
.pipeline__nodes { display: flex; align-items: center; padding: 24px 0 20px; }
.pipe-node { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 9px; border: 1px solid var(--line-dark); border-radius: 2px; color: var(--ink-400); white-space: nowrap; animation: nodeOn 7s var(--ease) infinite; }
.pipe-node:nth-of-type(2) { animation-delay: 0.5s; } .pipe-node:nth-of-type(3) { animation-delay: 1s; } .pipe-node:nth-of-type(4) { animation-delay: 2.2s; }
.pipe-line { flex-grow: 1; height: 1px; margin: 0 3px; background: var(--line-dark); }
.pipeline__track { position: relative; height: 2px; overflow: hidden; background: var(--line-dark); }
.pipeline__track::after { content: ""; position: absolute; inset: 0; background: var(--on-dark); transform-origin: left center; animation: sweep 7s var(--ease) infinite; }
.pipeline__tests { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }
.cells { display: flex; flex-wrap: wrap; gap: 4px; }
.tc, .tc-fail { width: 14px; height: 14px; border-radius: 1px; background: var(--line-dark); animation: passfill 7s linear infinite; }
.tc-fail { animation-name: failfill; }
.pipeline__note { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-400); }
@media (min-width: 768px) {
  .pipeline { padding: 40px; }
  .pipe-node { padding: 12px 18px; letter-spacing: 0.08em; }
  .pipe-line { margin: 0 4px; }
  .cells { gap: 5px; } .tc, .tc-fail { width: 16px; height: 16px; }
}
@media (min-width: 1100px) { .pipeline-wrap { padding-bottom: 120px; } .pipeline { padding: 48px 56px; } .pipeline__nodes { padding: 40px 0 32px; } .pipeline__tests { padding-top: 40px; gap: 16px; } }

/* ─── Kennzahlen und Logos ─────────────────────────────────────────────── */
.stats-band { background: var(--paper); border-block: 1px solid var(--line); padding-block: 40px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__num { font-family: var(--mono); font-size: 28px; line-height: 32px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-900); }
.only-wide { display: none; }
/* Kurzfassung fuers Handy: desk-only erst ab 768 px, mob-only nur darunter */
@media (max-width: 767px) {
  .desk-only { display: none !important; }
  #leistungen { border-top: 1px solid var(--line); } /* ohne die Rechnung dazwischen stehen Problem und Leistungen direkt untereinander */
}
@media (min-width: 768px) { .mob-only { display: none !important; } }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-500); }
.logos svg { width: auto; flex-shrink: 0; }
.logo-db { height: 30px; } .logo-word { height: 16px; }
.logos__text { font-family: var(--display); font-weight: 800; font-size: 12px; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
@media (min-width: 768px) {
  .stats-band { padding-block: 56px; }
  .stats { gap: 0; }
  .stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
  .stat { padding-right: 32px; }
  .stat__num { font-size: 40px; line-height: 44px; }
  .only-wide { display: inline; } .only-narrow { display: none; }
  .logos { gap: 24px 48px; margin-top: 40px; padding-top: 40px; }
  .logo-db { height: 36px; } .logo-word { height: 22px; } .logos__text { font-size: 16px; }
}
@media (min-width: 1100px) { .logos { gap: 24px 64px; } }

/* ─── Problem ──────────────────────────────────────────────────────────── */
.problem__grid { display: grid; gap: 40px; margin-bottom: 40px; }
.points { border-top: 1px solid var(--line); }
.point { display: flex; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.point__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-500); padding-top: 4px; }
.point__title { font-family: var(--text); font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-900); margin-bottom: 6px; text-wrap: wrap; }
.sprint { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 20px; overflow: hidden; align-self: start;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 100%; animation: driftGrid 9s linear infinite; }
.sprint__head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 16px; }
.sprint__late { color: var(--fail-text); }
.sprint__lanes { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px 0; container-type: inline-size; }
.sprint__lanes::before { content: ""; position: absolute; left: 62%; top: 0; bottom: 0; width: 1px; background: var(--ink-900); }
.slip { height: 22px; border-radius: 1px; animation: slipRight 8s var(--ease-io) infinite; }
.sprint__foot { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-500); }
.sprint__foot span:last-child { color: var(--ink-900); }
@media (min-width: 1024px) {
  .problem__grid { grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: 80px; margin-bottom: 64px; }
  .point { gap: 24px; padding: 28px 0; }
  .point__title { font-size: 20px; }
  .sprint { padding: 32px; } .sprint__lanes { gap: 10px; padding: 16px 0; } .slip { height: 26px; }
}

/* ─── Zwei Rechnungen ──────────────────────────────────────────────────── */
.calc { display: grid; gap: 56px; }
.calc__col { display: flex; flex-direction: column; gap: 28px; }
.calc__head { display: flex; flex-direction: column; gap: 14px; }
.ledger__caption { padding-bottom: 20px; border-bottom: 1px solid var(--line-dark); line-height: 18px; }
.ledger__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); color: var(--ink-300); }
.ledger__val { font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--on-dark); white-space: nowrap; }
.ledger__row--total { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 24px; color: var(--on-dark); font-weight: 500; }
.ledger__big { font-family: var(--mono); font-size: 40px; line-height: 44px; font-weight: 500; letter-spacing: -0.02em; color: var(--on-dark); }
.em-red { color: var(--on-dark); font-weight: 500; border-bottom: 1px solid var(--fail); }
.em-line { border-bottom: 1px solid var(--ink-500); }
.em-green { font-weight: 500; border-bottom: 1px solid var(--pass); }
.capacity { display: flex; flex-direction: column; gap: 10px; }
.capacity__bar { height: 36px; display: flex; overflow: hidden; border-radius: 1px; background: var(--dark-2); }
.capacity__bar span:first-child { width: 82%; background: var(--line-dark); }
.capacity__bar span:last-child { width: 18%; background: var(--fail); transform-origin: left center; animation: growBar 2.4s var(--ease) infinite alternate; }
.capacity__legend { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-400); }
.capacity__legend span:last-child { color: var(--fail-text-dark); white-space: nowrap; }
.footnote { font-family: var(--mono); font-size: 12px; line-height: 18px; letter-spacing: 0.04em; color: var(--ink-400); }
.curve { background: var(--dark-2); border-radius: 2px; padding: 20px 16px 14px; }
.curve__plot { position: relative; margin-top: 12px; }
.curve__plot svg { width: 100%; height: auto; }
.curve__lbl { position: absolute; font-family: var(--mono); font-size: 12px; line-height: 16px; letter-spacing: 0.04em; white-space: nowrap; }
.curve__lbl--now { right: 7.4%; top: 5%; color: var(--fail-text-dark); }
.curve__lbl--fix { right: 7.4%; top: 66%; color: var(--pass); }
.curve__lbl--axis { left: 4.3%; bottom: -2px; color: var(--ink-400); }
.calc__close { display: flex; flex-direction: column; gap: 24px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line-dark); }
.calc__close p { max-width: 480px; }
@media (min-width: 768px) { .curve { padding: 28px 24px 20px; } .ledger__row--total { flex-direction: row; align-items: baseline; justify-content: space-between; } }
@media (min-width: 1100px) {
  .calc { grid-template-columns: 1fr 1fr; gap: 0; }
  .calc__col:first-child { padding-right: 64px; }
  .calc__col:last-child { padding-left: 64px; border-left: 1px solid var(--line-dark); }
  .calc__col > :last-child { margin-top: auto; }
  .ledger__big { font-size: 40px; }
  .calc__close { flex-direction: row; gap: 96px; margin-top: 72px; padding-top: 56px; }
  .calc__close .h2 { flex: 1 1 660px; max-width: 660px; }
  .calc__close p { flex: 1 1 480px; padding-top: 4px; }
}

/* ─── Leistungen ───────────────────────────────────────────────────────── */
.cards { display: grid; gap: 16px; }
.card { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 2px; background: var(--white); transition: border-color 200ms var(--ease); }
.card:hover { border-color: var(--ink-900); }
.card--hi { background: var(--paper); border-color: var(--ink-900); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.bars span { width: 12px; background: var(--line); }
.bars .on { background: var(--ink-900); }
.card__tags { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; line-height: 18px; letter-spacing: 0.04em; color: var(--ink-500); }
.card--hi .card__tags { border-color: var(--ink-900); }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } .card { padding: 32px; gap: 20px; } }
@media (min-width: 1100px) { .cards { gap: 40px; } .bars { height: 48px; } .bars span { width: 14px; } }

/* Werkzeugzeile unter den Leistungskarten */
.stack { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.stack__list { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 14px; line-height: 20px; color: var(--ink-700); }
@media (min-width: 768px) { .stack { flex-direction: row; align-items: baseline; gap: 32px; } .stack .label { flex-shrink: 0; width: 96px; } }
.flow { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; padding: 24px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; }
.flow__steps { display: flex; flex-direction: column; }
.flow__box { display: flex; flex-direction: column; gap: 8px; flex: 1 1 0; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 2px; }
.flow__box--dark { background: var(--dark); border-color: var(--dark); }
.flow__title { font-size: 18px; line-height: 24px; font-weight: 600; color: var(--ink-900); }
.flow__box--dark .flow__title { color: var(--on-dark); }
.flow__lines { display: flex; flex-direction: column; gap: 5px; padding-top: 4px; }
.flow__lines i { display: block; height: 6px; border-radius: 1px; background: var(--line); }
.flow__lines b { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.flow__lines b::before { content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--pass); flex-shrink: 0; }
.flow__code { font-family: var(--mono); font-size: 12px; line-height: 18px; color: var(--ink-300); padding-top: 4px; }
.flow__code em { font-style: normal; color: var(--on-dark); }
.flow__code .cursor { width: 7px; height: 12px; margin-left: 3px; vertical-align: -1px; background: var(--pass); }
.flow__conn { position: relative; height: 40px; flex-shrink: 0; }
.flow__conn::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--ink-300); }
.flow__dot { position: absolute; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--ink-900); animation: flowDotV 3.2s var(--ease) infinite; }
.flow__conn + .flow__box + .flow__conn .flow__dot { animation-delay: 0.5s; }
@media (min-width: 1024px) {
  .flow { gap: 28px; margin-top: 40px; padding: 40px 48px; }
  .flow__steps { flex-direction: row; align-items: stretch; }
  .flow__box { padding: 24px; }
  .flow__conn { width: 96px; height: auto; }
  .flow__conn::before { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 1px; }
  .flow__dot { left: 0; top: 50%; margin: -3px 0 0; animation-name: flowDot; }
}

/* ─── Beweise ──────────────────────────────────────────────────────────── */
.cases { border-top: 1px solid var(--ink-900); }
.case { display: flex; flex-direction: column; gap: 16px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.case__head { display: flex; flex-direction: column; gap: 12px; }
.case__head--hi .label { color: var(--ink-900); }
.case__rows { display: flex; flex-direction: column; gap: 16px; }
.case__row { display: flex; flex-direction: column; gap: 4px; }
.case__row dd { color: var(--ink-700); }
.case__row--result dt { color: var(--pass-text); }
.case__row--result dd { color: var(--ink-900); font-weight: 500; }
.qualify { margin-top: 40px; line-height: 18px; }
@media (min-width: 1024px) {
  .case { flex-direction: row; gap: 64px; padding: 48px 0; }
  .case__head { width: 320px; flex-shrink: 0; }
  .case__rows { max-width: 720px; gap: 20px; }
  .case__row { flex-direction: row; gap: 24px; }
  .case__row dt { width: 120px; flex-shrink: 0; padding-top: 3px; }
  .qualify { margin-top: 64px; }
}

/* ─── Warum ich ────────────────────────────────────────────────────────── */
.diff { display: grid; gap: 48px; }
.diff__main, .diff__side { display: flex; flex-direction: column; gap: 24px; }
.diff__main p { color: var(--ink-300); }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; }
.compare th { text-align: left; padding: 0 0 12px; border-bottom: 1px solid var(--line-dark); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-400); }
.compare td { padding: 14px 0; border-bottom: 1px solid var(--line-dark); color: var(--ink-300); vertical-align: top; }
.compare td + td, .compare th + th { width: 44%; padding-left: 16px; }
.compare tr.is-me td { color: var(--on-dark); font-weight: 500; border-bottom-color: var(--on-dark); }
.notfor-list { display: flex; flex-direction: column; }
.notfor-list .label { padding-bottom: 16px; border-bottom: 1px solid var(--line-dark); }
.notfor { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line-dark); }
.notfor h3 { font-family: var(--text); font-size: 16px; line-height: 24px; font-weight: 600; color: var(--on-dark); text-wrap: wrap; }
.notfor p { color: var(--ink-300); }
@media (min-width: 1100px) {
  .diff { grid-template-columns: minmax(0, 660px) minmax(0, 460px); justify-content: space-between; gap: 96px; }
  .diff__main { gap: 32px; }
  .diff__main p { font-size: 18px; line-height: 27px; }
  .diff__side { padding-top: 44px; }
  .compare th + th, .compare td + td { width: 190px; padding-left: 24px; }
  .notfor { padding: 24px 0; }
}

/* ─── Ablauf ───────────────────────────────────────────────────────────── */
.steps { display: grid; gap: 24px; }
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--line); }
.step--first { border-top-color: var(--ink-900); }
.step--first .label { color: var(--ink-900); }
.note { display: flex; flex-direction: column; gap: 10px; margin-top: 40px; padding: 24px 20px; background: var(--paper); border-radius: 2px; max-width: 900px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step { gap: 16px; padding-top: 24px; }
  .note { flex-direction: row; gap: 24px; margin-top: 64px; padding: 32px; }
  .note .label { width: 100px; flex-shrink: 0; padding-top: 4px; }
}

/* ─── Schluss ──────────────────────────────────────────────────────────── */
.cta { text-align: center; padding-block: 80px; }
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta__inner .h2--lg { max-width: 900px; }
.cta__inner .lead { max-width: 560px; }
.cta__mail { font-size: 14px; line-height: 21px; color: var(--ink-500); }
@media (max-width: 767px) { .cta .btn { width: 100%; } }
@media (min-width: 1100px) { .cta { padding-block: 160px; } .cta__inner { gap: 32px; } }

/* ─── Fusszeile ────────────────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: var(--ink-300); padding-block: 40px; }
.footer__inner { display: flex; flex-direction: column; gap: 24px; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.logo--footer { color: var(--on-dark); font-size: 44px; }
.footer__brand p { font-size: 14px; line-height: 21px; }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; padding-top: 16px; border-top: 1px solid var(--line-dark); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.footlink { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-300); transition: color 120ms var(--ease); }
.footlink:hover { color: var(--on-dark); }
.footer__brand .footlink { min-height: 0; text-transform: none; }
.linkedin { width: 44px; justify-content: center; margin-left: -12px; }
@media (min-width: 768px) {
  .site-footer { padding-block: 64px; }
  .footer__inner { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .footer__links { gap: 0 32px; padding-top: 0; border-top: 0; }
  .linkedin { margin-left: 0; }
}
@media (min-width: 1100px) { .logo--footer { font-size: 56px; } }

/* ─── Rechtsseiten ─────────────────────────────────────────────────────── */
.legal { padding-block: 64px 96px; }
.legal__inner { max-width: 720px; margin-inline: auto; display: flex; flex-direction: column; gap: 32px; }
.legal h1 { font-size: clamp(30px, 8vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: break-word; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); }
.back:hover { color: var(--ink-900); }
@media (min-width: 1100px) { .legal { padding-block: 72px 128px; } }

/* ─── Bewegung ─────────────────────────────────────────────────────────── */
@keyframes sweep     { 0% { transform: scaleX(0); } 55%, 100% { transform: scaleX(1); } }
@keyframes passfill  { 0%, 8% { background: var(--line-dark); } 16%, 92% { background: var(--pass); } 100% { background: var(--line-dark); } }
@keyframes failfill  { 0%, 40% { background: var(--line-dark); } 48%, 92% { background: var(--fail); } 100% { background: var(--line-dark); } }
@keyframes nodeOn    { 0%, 100% { border-color: var(--line-dark); color: var(--ink-400); } 20%, 85% { border-color: var(--on-dark); color: var(--on-dark); } }
@keyframes blink     { 0%, 45% { opacity: 1; } 50%, 100% { opacity: 0.25; } }
@keyframes slipRight { 0%, 10% { transform: translateX(0); } 42%, 60% { transform: translateX(var(--slip)); } 92%, 100% { transform: translateX(0); } }
@keyframes growBar   { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes flowDot   { 0% { left: 0; opacity: 0; } 12%, 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes flowDotV  { 0% { top: 0; opacity: 0; } 12%, 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes driftGrid { 0% { background-position: 0 0; } 100% { background-position: 48px 0; } }
@keyframes drawLine  { 0%, 6% { stroke-dashoffset: 620; } 40%, 70% { stroke-dashoffset: 0; } 94%, 100% { stroke-dashoffset: 620; } }
@keyframes fadeArea  { 0%, 34% { opacity: 0; } 46%, 62% { opacity: 0.16; } 70%, 100% { opacity: 0; } }
.draw { stroke-dasharray: 620; animation: drawLine 11s var(--ease-io) infinite; }
.draw--late { animation-delay: 0.6s; }
.fade-area { animation: fadeArea 11s var(--ease-io) infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .draw { stroke-dashoffset: 0; } .fade-area { opacity: 0.16; }
  .tc { background: var(--pass); } .tc-fail { background: var(--fail); }
}
