/* aijogi.de — site stylesheet for home and legal pages.
   Direction and token sources: docs/guidelines/design.md (reference: cursor, adapted to aijogi forest). */

@font-face { font-family: "Fraunces Soft"; src: url("/assets/fonts/fraunces-soft.woff2") format("woff2"); font-weight: 500 650; font-display: swap; }
/* Arrow glyphs come from Geist Mono; each arrow face repeats its family's weight range so it joins the same composite font. */
@font-face { font-family: "Fraunces Soft"; src: url("/assets/fonts/geist-mono-500.woff2") format("woff2"); font-weight: 500 650; font-display: swap; unicode-range: U+2190-2199; }
@font-face { font-family: "Plex"; src: url("/assets/IBMPlexSans-Latin.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/assets/fonts/geist-mono-500.woff2") format("woff2"); font-weight: 100 700; font-display: swap; unicode-range: U+2190-2199; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-500.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* Surfaces (cursor stack) and the forest dark role */
  --canvas: #f7f7f4;
  --surface: #f2f1ed;
  --forest: #203f34;
  /* Text */
  --ink: #26392f;
  --muted: #626b61;
  --on-dark: #f7f7f4;
  --on-dark-muted: #aebcb0;
  /* The one accent: marks only */
  --orange: #f54e00;
  /* Hairlines as ink rings */
  --line: rgb(38 57 47 / 0.14);
  --line-strong: rgb(38 57 47 / 0.3);
  --line-dark: rgb(247 247 244 / 0.16);
  --line-dark-strong: rgb(247 247 244 / 0.34);
  /* Type */
  --display: "Fraunces Soft", "Iowan Old Style", Georgia, serif;
  --sans: "Plex", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  /* Shape */
  --r: 4px;
  --shadow-window: 0 28px 70px rgb(0 0 0 / 0.14), 0 14px 32px rgb(0 0 0 / 0.1), 0 0 0 1px rgb(38 37 30 / 0.1);
  --shadow-float: 0 22px 70px 4px rgb(0 0 0 / 0.3), 0 0 0 0.5px rgb(0 0 0 / 0.15);
  --shadow-pop: 0 8px 30px rgb(0 0 0 / 0.35), 0 0 0 0.5px rgb(0 0 0 / 0.15);
  /* Layout */
  --max: 1304px;
  --gutter: 40px;
  --section: 88px;
  --header: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  letter-spacing: 0.005em;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 560; margin: 0; font-optical-sizing: auto; text-wrap: balance; }
p { margin: 0; }
strong { font-weight: 600; }
.arr { font-family: var(--mono); font-weight: 500; display: inline-block; transition: transform 0.2s var(--ease); }
.skip { position: absolute; left: 12px; top: -120px; z-index: 100; background: var(--canvas); color: var(--ink); padding: 12px 16px; border-radius: var(--r); box-shadow: var(--shadow-pop); font-weight: 600; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.icon { flex: none; width: 18px; height: 18px; color: var(--orange); }
.btn-lg .icon { width: 20px; height: 20px; }

.wrap { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: var(--section); }
.band { background: var(--surface); }
.dark { background: var(--forest); color: var(--on-dark); }

/* Type helpers */
.t-hero { font-size: clamp(48px, 6.1vw, 88px); line-height: 1.02; letter-spacing: -0.03em; }
.t-display { font-size: clamp(48px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(36px, 4.1vw, 58px); line-height: 1.06; letter-spacing: -0.025em; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.005em; }
.soft { color: var(--muted); }
.dark .soft { color: var(--on-dark-muted); }
h1 .soft, h2 .soft { display: block; }
.keep { white-space: nowrap; }
.dot { color: var(--orange); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font: 500 12px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; align-self: flex-start; margin-top: calc((1.6em - 8px) / 2); }
.dark .eyebrow { color: var(--on-dark-muted); }
.section-lead { font-size: 18px; line-height: 1.6; color: var(--muted); }
.dark .section-lead { color: var(--on-dark-muted); }
.fine { font-size: 13px; line-height: 1.55; color: var(--muted); }
.dark .fine { color: var(--on-dark-muted); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 12px 20px; border-radius: var(--r); border: 0;
  font: 500 16px/1.2 var(--sans); letter-spacing: 0.005em; text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:hover .arr, .link:hover .arr, .btn:focus-visible .arr, .link:focus-visible .arr { transform: translate(2px, -2px); }
.btn-light { background: var(--canvas); color: var(--forest); }
.btn-light:hover { background: #fff; box-shadow: var(--shadow-pop); }
.btn-outline { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-outline:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.dark .btn-outline, .site-header .btn-outline { color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--line-dark-strong); }
.dark .btn-outline:hover, .site-header .btn-outline:hover { box-shadow: inset 0 0 0 1px var(--on-dark); background: rgb(247 247 244 / 0.06); }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 16px 24px; font-size: 18px; }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); }
.link:hover { text-decoration-color: var(--orange); }
.dark .link { text-decoration-color: var(--line-dark-strong); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--forest); color: var(--on-dark); border-bottom: 1px solid var(--line-dark); }
.bar { height: var(--header); display: flex; align-items: center; gap: 24px; }
.wordmark { font-family: var(--display); font-weight: 640; font-size: 28px; line-height: 1; letter-spacing: -0.03em; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; font-variation-settings: "opsz" 48; }
.wordmark .dot { color: var(--orange); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r); font-size: 16px; color: var(--on-dark-muted); text-decoration: none; transition: color 0.2s, background-color 0.2s; }
.nav a:hover { color: var(--on-dark); background: rgb(247 247 244 / 0.08); }
.nav a[aria-current="page"] { color: var(--on-dark); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
/* Call and mail stay one tap away: the header is sticky on every page. */
.bar-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.bar-actions .btn { gap: 8px; white-space: nowrap; }
.call-short, .mail-short, .icon-mail { display: none; }

/* Hero */
.hero { position: relative; padding: 64px 0 var(--section); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgb(247 247 244 / 0.045) 1px, transparent 1px), linear-gradient(90deg, rgb(247 247 244 / 0.045) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center top;
  -webkit-mask-image: radial-gradient(70% 80% at 72% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 80% at 72% 35%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr); gap: 72px; align-items: center; }
.hello { font-size: 20px; line-height: 1.4; color: var(--on-dark-muted); margin-bottom: 16px; }
.hero h1 { margin-bottom: 28px; }
.hero .lead { font-size: 20px; line-height: 1.55; color: var(--on-dark-muted); max-width: 33em; }
.hero .lead strong { color: var(--on-dark); font-weight: 600; }
.credential { margin-top: 20px; padding-left: 16px; max-width: 36em; border-left: 1px solid var(--line-dark-strong); font-size: 16px; line-height: 1.5; color: var(--on-dark); }
.hero .actions { margin-top: 40px; }
.note { margin-top: 16px; font-size: 14px; color: var(--on-dark-muted); }

.hero-visual { position: relative; width: 100%; max-width: 480px; margin-left: auto; }
.portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-float); background: #2c4a3f; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.portrait::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(to bottom, rgb(15 26 22 / 0), rgb(15 26 22 / 0.62)); pointer-events: none; }
.ai-label { position: absolute; top: 12px; right: 12px; z-index: 1; padding: 6px 8px; border-radius: var(--r); background: rgb(247 247 244 / 0.94); color: var(--ink); font: 500 11px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.portrait figcaption { position: absolute; right: 20px; bottom: 18px; z-index: 1; display: grid; justify-items: end; text-align: right; font-size: 13px; line-height: 1.45; color: var(--on-dark); }
.portrait figcaption strong { font-family: var(--display); font-weight: 560; font-size: 22px; line-height: 1.2; letter-spacing: -0.005em; margin-bottom: 2px; }
/* Sourced figure under the portrait: data in on-dark ink, no orange; the text sits behind the credential's hairline. */
.fact { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 20px; align-items: center; margin-top: 24px; }
.fact-figure { font-family: var(--display); font-weight: 560; font-size: 58px; line-height: 1; letter-spacing: -0.025em; white-space: nowrap; }
.fact-text { padding-left: 16px; border-left: 1px solid var(--line-dark-strong); font-size: 16px; line-height: 1.5; }
.fact-text strong { display: block; }
.fact-source { grid-column: 1 / -1; font-size: 13px; line-height: 1.55; color: var(--on-dark-muted); }
.fact-source a { text-decoration-color: var(--line-dark-strong); }

/* Project case: a compact dossier on the surface band, lower on the page */
.project-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 88px; align-items: start; }
.project-copy h2 { font-size: 36px; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 20px; }
.project-note { max-width: 32em; font-size: 18px; line-height: 1.6; color: var(--muted); }
.dossier { padding: 28px; border-radius: var(--r); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); }
.dossier h3 { font-size: 26px; line-height: 1.2; letter-spacing: -0.012em; margin: 20px 0 8px; }
.dossier-lead { margin-bottom: 20px; }
.dossier-link { margin-top: 12px; }
/* Inline rather than the flex .link, so the arrow keeps its own box off the underline; 24px line + 2 × 10px = the 44px target. */
.dossier-link .link { display: inline-block; padding-block: 10px; }
.dossier-link .arr { line-height: 1; } /* the mono arrow must not grow the 24px line */

/* Shared card parts: the mono head of dossier and price slip, and a statement with an orange status dot */
.card-head { display: flex; justify-content: space-between; gap: 16px; font: 500 12px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-bottom: 16px; border-bottom: 1px dashed var(--line-strong); }
.card-brand { font-family: var(--display); font-weight: 640; font-size: 18px; letter-spacing: -0.02em; text-transform: none; color: var(--ink); line-height: 1.2; }
.point { display: flex; gap: 10px; font-weight: 600; }
.point::before { content: ""; width: 8px; height: 8px; margin-top: calc((1.5em - 8px) / 2); border-radius: 50%; background: var(--orange); flex: none; }

/* Video (#video): two fictional films side by side, process automation first. Each card names its use case above a
   native player whose poster is a real frame of that film; nothing loads before Play. Subgrid rows keep label, title,
   text and player level across both cards. */
.video-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px 88px; align-items: end; }
.video-head .fine { margin-top: 20px; }
.video-cases { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.video-case { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
.video-case .card-head { align-items: center; }
.video-case .card-head .icon { width: 24px; height: 24px; }
.video-case h3 { margin-top: 20px; }
.video-case h3 + p { margin-top: 8px; color: var(--muted); }
.video-frame { margin: 24px 0 0; }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); background: var(--forest); box-shadow: var(--shadow-window); }
.video-frame figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* AI examples (#beispiele): two static illustrations with invented data, nothing clickable. Surface panels on the canvas,
   forest tool windows, canvas paper; orange only marks: highlighter (14 % alpha behind ink), the matching manual's ring, icons, dot.
   The section shares the canvas with #video, so it drops its top padding: one section rhythm between them, not two. */
.ki-examples { padding-top: 0; }
.ki-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 64px; align-items: end; }
.ki-label { padding: 6px 10px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-strong); font: 500 12px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ki-label > span:not(.sr-only) { white-space: nowrap; } /* a separator never starts a line */
.ki-case { margin-top: 56px; padding: 32px 40px 40px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ki-case + .ki-case { margin-top: 24px; }
.ki-case > .card-head { align-items: center; }
.ki-case > .card-head .icon { width: 24px; height: 24px; }
.ki-case h3 { margin: 24px 0 40px; font-size: 26px; line-height: 1.2; letter-spacing: -0.012em; }
.ki-flow { display: grid; grid-template-columns: minmax(0, 5fr) 24px minmax(0, 6fr); gap: 32px; align-items: center; }
.ki-invoice .ki-flow { grid-template-columns: minmax(0, 6fr) 24px minmax(0, 5fr); }
.ki-arrow { width: 24px; height: 24px; }
.ki-in, .ki-out { display: grid; gap: 32px; align-content: start; }
.ki-say, .ki-pile, .ki-doc { margin: 0; }
.ki-tag { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 500 12px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ki-say blockquote { margin: 0; padding: 16px 20px; border-radius: var(--r); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--display); font-weight: 560; font-size: 22px; line-height: 1.3; letter-spacing: -0.005em; }
.ki-you blockquote { box-shadow: inset 0 0 0 1px var(--line-strong); }
/* 48 manuals: 12×4 here, 8×6 on phones; each a canvas sheet with three ink lines, the one match ringed in orange. */
.ki-tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.ki-tiles span { aspect-ratio: 3 / 4; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line);
  background: linear-gradient(var(--line-strong) 0 0) 50% 30% / 56% 1px no-repeat, linear-gradient(var(--line-strong) 0 0) 50% 45% / 56% 1px no-repeat,
    linear-gradient(var(--line-strong) 0 0) 34% 60% / 36% 1px no-repeat, var(--canvas); }
.ki-tiles .is-match { box-shadow: 0 0 0 2px var(--orange); }
.ki-tool { padding: 20px 24px 24px; border-radius: var(--r); background: var(--forest); color: var(--on-dark); box-shadow: var(--shadow-window); }
.ki-tool-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-bottom: 16px; border-bottom: 1px dashed var(--line-dark-strong); font: 500 12px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-muted); }
.ki-query { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 12px 16px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-dark-strong); }
.ki-sheet { margin-top: 16px; padding: 20px; border-radius: var(--r); background: var(--canvas); color: var(--ink); }
.ki-sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font: 500 12px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ki-sheet-title { margin: 8px 0 12px; font-family: var(--display); font-weight: 560; font-size: 20px; line-height: 1.25; letter-spacing: -0.005em; }
.ki-codes { margin: 0; display: grid; gap: 4px; }
.ki-codes div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 8px 12px; border-radius: var(--r); font-size: 14px; line-height: 1.5; color: var(--muted); }
.ki-codes dt { font-family: var(--mono); font-weight: 500; }
.ki-codes dd { margin: 0; }
.ki-codes .is-hit { background: rgb(245 78 0 / 0.14); color: var(--ink); }
/* The incoming invoice: canvas paper with the window shadow (as the price slip), turned slightly so it reads as a document. */
.ki-doc { width: 100%; max-width: 480px; justify-self: center; }
.ki-paper { padding: 28px; border-radius: var(--r); background: var(--canvas); box-shadow: var(--shadow-window); transform: rotate(-1.5deg); font-size: 14px; line-height: 1.5; }
.ki-paper mark { margin: 0 -4px; padding: 2px 4px; border-radius: var(--r); background: rgb(245 78 0 / 0.14); color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ki-paper-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 12px 16px; }
.ki-from mark { font-size: 16px; font-weight: 600; }
.ki-from span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.ki-paper-title { font-family: var(--display); font-weight: 560; font-size: 22px; line-height: 1.2; letter-spacing: -0.005em; }
.ki-meta { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 20px 0 0; }
.ki-meta div { display: flex; gap: 8px; }
.ki-meta dt { color: var(--muted); }
.ki-meta dd { margin: 0; }
.ki-items { width: 100%; margin-top: 16px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ki-items th, .ki-items td { padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; vertical-align: top; }
.ki-items thead th { padding-top: 0; font: 500 12px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ki-items td, .ki-items thead th:last-child { text-align: right; white-space: nowrap; }
.ki-items tbody th > span { display: block; font-size: 13px; color: var(--muted); }
.ki-items tfoot th { padding-right: 24px; text-align: right; color: var(--muted); }
.ki-items tfoot tr:last-child > * { border-bottom: 0; font-weight: 600; color: var(--ink); }
.ki-due { margin-top: 12px; }
.ki-fields { margin: 8px 0 0; }
.ki-fields div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.ki-fields dt { font: 500 12px/2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-muted); }
.ki-fields dd { margin: 0; font-variant-numeric: tabular-nums; }
.ki-check, .ki-status { display: flex; align-items: center; gap: 8px; }
.ki-check { margin-top: 20px; }
.ki-status { margin-top: 8px; font-weight: 600; }
.ki-status::before { content: ""; width: 8px; height: 8px; margin-inline: 5px; border-radius: 50%; background: var(--orange); flex: none; }

/* Profile list (dossier facts) */
.profile { margin: 0; border-top: 1px solid var(--line); }
.profile div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.profile dt { font: 500 12px/1.9 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.profile dd { margin: 0; font-size: 16px; }

/* Services: problem cards on the surface band, each tagged with the offer it maps to */
.services-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px 88px; align-items: end; }
.services { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.services li { padding: 24px 24px 28px; border-radius: var(--r); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); }
.services .card-head { align-items: center; margin-bottom: 20px; }
.services .icon { width: 24px; height: 24px; }
.services h3 { margin-bottom: 8px; }
.services li > p:last-child { color: var(--muted); }

/* Work + price slip */
.work-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 88px; align-items: start; }
.work-copy { position: sticky; top: calc(var(--header) + 32px); }
.work-copy h2 { margin-bottom: 48px; }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.timeline li { position: relative; padding: 0 0 36px 64px; counter-increment: step; }
.timeline li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 500 12px/1 var(--mono); color: var(--ink); }
.timeline li::after { content: ""; position: absolute; left: 20px; top: 48px; bottom: 8px; width: 1px; background: var(--line-strong); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline h3 { font-size: 22px; margin: 6px 0 8px; }
.timeline p { color: var(--muted); max-width: 34em; }

.slip { position: relative; padding: 36px 32px 28px; border-radius: 0 0 var(--r) var(--r); background: var(--surface); box-shadow: var(--shadow-window); }
.slip::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 12px; background: radial-gradient(circle at 8px 0, var(--canvas) 5px, transparent 5.5px) 0 0 / 16px 12px repeat-x; }
.slip h3 { font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; margin: 24px 0 8px; }
.slip .point { margin-top: 16px; }
.slip-lines { margin: 20px 0 0; border-top: 1px dashed var(--line-strong); }
.slip-lines div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 20px 0; border-bottom: 1px dashed var(--line-strong); }
.slip-lines dt { font-weight: 600; }
.slip-lines .amount { margin: 0; font-family: var(--display); font-weight: 560; font-size: 22px; line-height: 1.2; letter-spacing: -0.005em; text-align: right; white-space: nowrap; }
.slip-lines .per { display: block; margin-top: 4px; font: 500 14px/1.4 var(--sans); letter-spacing: 0.005em; color: var(--muted); }
.slip-lines .detail { grid-column: 1 / -1; margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.pilot { margin-top: 24px; padding: 20px; border-radius: var(--r); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); }
.pilot .eyebrow { margin-bottom: 8px; }
.pilot-offer { font-family: var(--display); font-weight: 560; font-size: 26px; line-height: 1.2; letter-spacing: -0.012em; }
.pilot-offer + p { margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.slip-note { margin-top: 20px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.slip-note strong { color: var(--ink); }
.slip-fine { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* Contact */
.contact { text-align: center; padding-block: 112px; position: relative; overflow: hidden; isolation: isolate; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgb(247 247 244 / 0.045) 1px, transparent 1px), linear-gradient(90deg, rgb(247 247 244 / 0.045) 1px, transparent 1px); background-size: 48px 48px; background-position: center; -webkit-mask-image: radial-gradient(50% 60% at 50% 45%, #000 10%, transparent 80%); mask-image: radial-gradient(50% 60% at 50% 45%, #000 10%, transparent 80%); }
.contact-inner { display: grid; justify-items: center; }
.contact .eyebrow { justify-content: center; }
.contact h2 { max-width: 13em; margin-bottom: 24px; }
.contact .section-lead { max-width: 34em; }
.contact .actions { justify-content: center; margin-top: 40px; }
.contact-address { margin-top: 20px; font-size: 18px; }
.contact-address a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-color: var(--line-dark-strong); }
.prompts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 0; padding: 0; counter-reset: prompt; }
.prompts li { counter-increment: prompt; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: var(--r); background: rgb(247 247 244 / 0.06); box-shadow: inset 0 0 0 1px var(--line-dark); font-size: 14px; }
.prompts li::before { content: counter(prompt); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--orange); color: var(--on-dark); font: 500 12px/1 var(--mono); }
.prompts-title { margin-top: 36px; font: 500 12px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-muted); }
.prompts-title + .prompts { margin-top: 12px; }
.contact-note { margin-top: 24px; max-width: 36em; font-size: 14px; color: var(--on-dark-muted); }
.signature { margin-top: 40px; font-family: var(--display); font-weight: 560; font-size: 26px; letter-spacing: -0.012em; }

/* Footer */
.site-footer { background: var(--forest); color: var(--on-dark-muted); border-top: 1px solid var(--line-dark); padding: 48px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px 48px; align-items: start; }
.footer-brand .wordmark { color: var(--on-dark); font-size: 26px; }
.footer-brand p { margin-top: 8px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--on-dark); text-decoration-color: var(--line-dark-strong); }
.footer-nav a[aria-current="page"] { text-decoration-color: var(--orange); }
.ai-note { grid-column: 1 / -1; margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 13px; line-height: 1.55; }

/* Legal pages */
.page-hero { padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(48px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -0.03em; }
.page-hero .eyebrow { margin-bottom: 16px; }
.legal { padding-block: 64px var(--section); font-size: 18px; line-height: 1.6; }
.legal > * { max-width: 720px; }
.legal h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.012em; margin: 48px 0 12px; hyphens: auto; overflow-wrap: break-word; }
.legal h2:first-of-type { margin-top: 0; }
.legal p + p { margin-top: 16px; }
.legal a { overflow-wrap: anywhere; text-decoration-color: var(--line-strong); }
.legal a:hover { text-decoration-color: var(--orange); }

/* Motion */
@keyframes blink { 0%, 20% { transform: scale(1); box-shadow: 0 0 0 0 rgb(245 78 0 / 0.35); } 24% { transform: scale(1.5); } 30%, 100% { transform: scale(1); box-shadow: 0 0 0 7px rgb(245 78 0 / 0); } }
/* The hero's orange full stop lands once after the headline ("auf den Punkt"). It stays inline, so line breaks never change. */
@keyframes punkt { from { top: -0.5em; opacity: 0; } 70% { top: 0.04em; opacity: 1; } }
/* #beispiele, while each example scrolls in: the matching manual gets its ring, the highlighter sweeps over the found row
   and the seven read values. Text never moves or fades; without scroll timelines the marks are simply there. */
@keyframes ring-in { from { box-shadow: 0 0 0 0 rgb(245 78 0 / 0); } 70% { box-shadow: 0 0 0 2px var(--orange), 0 0 0 8px rgb(245 78 0 / 0.14); } }
@keyframes mark-in { from { background-size: 0% 100%; } }
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow::before { animation: blink 3s infinite; }
  .hero h1 .dot { position: relative; animation: punkt 0.6s var(--ease) 0.4s both; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ki-tiles .is-match { animation: ring-in linear both; animation-timeline: view(); animation-range: entry 100% cover 35%; }
    .ki-codes .is-hit, .ki-paper mark { background: linear-gradient(rgb(245 78 0 / 0.14) 0 0) 0 0 / 100% 100% no-repeat;
      animation: mark-in linear both; animation-timeline: view(); animation-range: entry 100% cover 35%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .btn:hover { transform: none; }
}

/* Responsive */
@media (max-width: 1260px) {
  .t-hero { font-size: clamp(48px, 9vw, 72px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero .lead { max-width: 36em; }
  .hero-visual { margin-inline: auto; }
  .project-grid, .work-grid { gap: 64px; }
  .services-head { column-gap: 64px; }
  .video-head { column-gap: 64px; }
}
@media (max-width: 1000px) {
  :root { --gutter: 32px; --section: 68px; }
  .nav a { padding: 0 10px; }
  .call-long { display: none; }
  .call-short { display: inline; }
  .project-grid, .work-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .video-head { grid-template-columns: minmax(0, 1fr); }
  .video-cases { grid-template-columns: minmax(0, 1fr); row-gap: 48px; max-width: 720px; }
  .video-case { grid-row: auto; grid-template-rows: none; }
  .services-head { grid-template-columns: minmax(0, 1fr); }
  .ki-head { grid-template-columns: minmax(0, 1fr); }
  .ki-label { justify-self: start; }
  .ki-case { max-width: 720px; padding: 28px 32px 32px; }
  .ki-flow, .ki-invoice .ki-flow { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ki-arrow { justify-self: center; transform: rotate(90deg); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-copy { position: static; }
  .slip, .dossier { max-width: 640px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; --section: 56px; --header: 60px; }
  .nav { display: none; }
  .bar { justify-content: space-between; }
  .bar-actions { margin-left: auto; }
  .mail-long { display: none; }
  .mail-short { display: inline; }
  .icon-mail { display: block; }
  .wordmark { font-size: 26px; }
  .hero { padding-top: 40px; }
  .hero .lead { font-size: 18px; }
  .hero .actions { margin-top: 32px; }
  .slip h3 { font-size: 26px; }
  .contact { text-align: left; padding-block: 72px; }
  .contact-inner { justify-items: start; }
  .contact .eyebrow, .contact .actions, .prompts { justify-content: flex-start; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 600px) {
  .actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .contact .actions { justify-self: stretch; }
  .btn-lg { font-size: 16px; }
  .profile div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .services { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .video-cases { margin-top: 40px; }
  .services li { padding: 20px 20px 24px; }
  .ki-case { margin-top: 40px; padding: 24px 20px 28px; }
  .ki-case h3 { margin: 20px 0 28px; }
  .ki-say blockquote { font-size: 20px; }
  .ki-tiles { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .ki-tool { padding: 16px 16px 20px; }
  .ki-sheet, .ki-paper { padding: 20px 16px; }
  .ki-codes div { grid-template-columns: 32px minmax(0, 1fr); gap: 8px; padding: 8px; }
  .ki-fields div { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
  .fact { grid-template-columns: minmax(0, 1fr); }
  .fact-figure { font-size: 48px; }
  .timeline li { padding-left: 56px; }
  .slip { padding: 32px 20px 24px; }
  .dossier { padding: 24px 20px; }
  .slip-lines div { grid-template-columns: minmax(0, 1fr); }
  .slip-lines .amount { text-align: left; }
  .site-footer { padding-top: 40px; }
}
@media (max-width: 420px) {
  h1, h2, h3 { overflow-wrap: break-word; }
  .keep { white-space: normal; }
  .eyebrow .keep { white-space: nowrap; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .bar-actions .btn { padding-inline: 12px; }
  .bar-actions .icon { display: none; }
  .legal h2 { font-size: 22px; }
  .ki-fields div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* Website examples (#websites): three fictional one-page sites under /beispiele/, one link per card. The previews are
   real captures of those pages. The section shares the canvas with #kosten, so it drops its bottom padding. */
.websites { padding-bottom: 0; }
.web-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 64px; align-items: end; }
.web-label { padding: 6px 10px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-strong); font: 500 12px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.web-label > span { white-space: nowrap; } /* a separator never starts a line */
.web-grid { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.web-link { display: block; text-decoration: none; }
.web-shot { display: block; width: 100%; height: auto; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-window); transition: transform 0.2s var(--ease); }
.web-meta { display: block; margin-top: 28px; padding-bottom: 12px; border-bottom: 1px dashed var(--line-strong); font: 500 12px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.web-link h3 { margin-top: 16px; }
.web-arrow { display: inline-block; font-family: var(--mono); transition: transform 0.2s var(--ease); }
/* Keyboard focus gets the same lift, underline and arrow nudge as the pointer. */
.web-link:hover .web-shot, .web-link:focus-visible .web-shot { transform: translateY(-4px); }
.web-link:hover .web-arrow, .web-link:focus-visible .web-arrow { transform: translate(2px, -2px); }
.web-link:hover h3, .web-link:focus-visible h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--orange); }
.web-card > p { margin-top: 8px; color: var(--muted); }
.web-note { margin-top: 48px; max-width: 46em; }
@media (prefers-reduced-motion: reduce) { .web-shot, .web-arrow { transition: none; } }
@media (max-width: 1000px) {
  .web-head { grid-template-columns: minmax(0, 1fr); }
  .web-label { justify-self: start; }
  .web-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
