/* ==========================================================================
   artisancms.de · Leon Zeidler, Software & Automatisierung
   One stylesheet for every page (index, impressum, datenschutz, 404).
   --------------------------------------------------------------------------
   COLOUR   paper  #FFFFFF   page ground
            plate  #F3F3F5   the only tinted surface, diagrams and website screenshots
            rule   #E3E3E6   hairlines inside a section
            ink    #141414   headlines, section opener rules, buttons
            graphite #424242 running text (10:1 on white)
            muted  #555555   secondary text (7.5:1 on white)
            orange #F87A2F   surfaces and fills only: hero portrait field,
                             contact band, 3px "next deadline" rule, frame mark,
                             one explained highlight per diagram
            orange-type #E2621A  large orange type (countdown numeral, 3.5:1); the one
                             exception is the numeral on the ink result panel of
                             the Selbstversuch: #F87A2F, 6.9:1 on ink (block 12a)
            orange-ink  #C04E12  small orange text (hover of text links)
            on-orange   #0A0A0A  all text on orange (7.4:1)
   TYPE     Geist variable 300–700, one family, no monospace.
            Display 64→112 (vw/vh fitted) · H2 34→72 · Contact 46→104
            H3 23→30 · Lede 19→22 · Body 17→18 (18 from 1000px) · Secondary 16 · floor 15
   GRID     12 columns, gutter 16→24, margin 20→64, content max 1520px.
            Section heads: label cols 1–3, headline from col 4 (≥1100px).
   SPACE    4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96 · 128
            section rhythm 80 (phone) → 120 (desktop)
   BREAKS   700 two-column · 1000 desktop header + two-column hero (desktop
            portrait crop) · 1100 desktop grid · 1240 header descriptor
   MOTION   CSS only, gated by prefers-reduced-motion: no-preference.
            Content is never hidden at rest; reduce = no transforms/animations.
   ========================================================================== */

/* ---------- 1. Fonts (self-hosted Geist, SIL OFL 1.1, see /fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/geist-latin-ext.woff2?v=58a6b173") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/geist-latin.woff2?v=9b6f5ff4") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-adjusted fallback while Geist loads (measured against Arial in Chrome) */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 101.55%;
  ascent-override: 99.46%;
  descent-override: 28.56%;
  line-gap-override: 0%;
}

/* ---------- 2. Tokens ---------- */
:root {
  --paper: #FFFFFF;
  --plate: #F3F3F5;
  --rule: #E3E3E6;
  --rule-mid: #C9C9CE;
  --ink: #141414;
  --graphite: #424242;
  --muted: #555555;
  --orange: #F87A2F;
  --orange-type: #E2621A;
  --orange-ink: #C04E12;
  --on-orange: #0A0A0A;
  --leader: rgba(20, 20, 20, .32);

  --font: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-display: clamp(42px, 13.4vw, 64px);
  --fs-h2: clamp(34px, 5vw, 72px);
  --fs-contact: clamp(46px, 7vw, 104px);
  --fs-h3: clamp(23px, 1.9vw, 30px);
  --fs-h4: clamp(21px, 1.6vw, 24px);
  --fs-lede: clamp(19px, 1.5vw, 22px);
  --fs-body: clamp(17px, 1.25vw, 18px);
  --fs-small: 16px;

  --m: clamp(20px, 4.4vw, 64px);
  --g: clamp(16px, 1.67vw, 24px);
  --maxw: 1520px;
  --header-h: 64px;
  --s-section: clamp(64px, 7.5vw, 108px);
  --s-block: clamp(36px, 3.9vw, 56px);

  --ease: cubic-bezier(.16, 1, .3, 1);
}
/* desktop running text is 18px from the desktop header on (spec §2.8); the clamp only scales phones/tablets */
@media (min-width: 1000px) { :root { --header-h: 80px; --fs-body: 18px; } }
@media (max-width: 699px) { body { line-height: 1.55; } }

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
img, svg, picture { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
strong, b { font-weight: 600; }
p, li, dd, figcaption { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
[hidden] { display: none !important; }
/* neutral selection, visible on white, on the plate and on the orange band */
::selection { background: var(--ink); color: #fff; }
.contact ::selection { background: var(--on-orange); color: #fff; }
.btn--ink::selection, .skip::selection { background: #fff; color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.nobr { white-space: nowrap; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--m)); margin-inline: auto; padding-inline: var(--m); }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.g12 > * { grid-column: 1 / -1; min-width: 0; }

.skip {
  position: absolute; left: var(--m); top: 12px; z-index: 100;
  transform: translateY(-160%);
  background: var(--ink); color: #fff; padding: 12px 18px; font-size: 16px; font-weight: 500;
}
.skip:focus, .skip:focus-visible { transform: none; }

/* ---------- 4. Buttons and text links ---------- */
.btn {
  --h: 56px;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--h); padding: 0 22px 0 24px;
  font-size: 17px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25;
  text-align: left; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (hover: hover) { .btn--ink:hover { background: var(--orange); border-color: var(--orange); color: var(--on-orange); } }
.btn--outline { background: transparent; border-color: currentColor; color: var(--ink); }
@media (hover: hover) { .btn--outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; } }
.btn--sm { --h: 44px; font-size: 16px; padding: 0 16px 0 18px; gap: 14px; }
.btn--sm .i { width: 16px; height: 16px; }
/* big buttons wrap instead of overflowing when the column is too narrow (e.g. WCAG 1.4.12 text spacing) */
.btn:not(.btn--sm) { white-space: normal; max-width: 100%; }
@media (min-width: 1100px) { .btn:not(.btn--sm) { --h: 58px; } }
@media (max-width: 699px) {
  .btn:not(.btn--sm) { text-wrap: balance; }
}

.tlink {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--ink); font-size: 17px; font-weight: 500; letter-spacing: -.01em;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 9px) / 100% 1px no-repeat;
  transition: color .3s var(--ease);
}
.tlink .i { width: 16px; height: 16px; }
.tlink:hover { color: var(--orange-ink); }
/* the underline is a gradient, which forced colours remove: use a real underline there */
@media (forced-colors: active) { .tlink { background: none; text-decoration: underline; text-underline-offset: 5px; } }

.micro { font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }

/* ---------- 5. Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--rule); opacity: 0; transition: opacity .35s var(--ease);
}
.site-header.is-scrolled::after, .menu-open .site-header::after { opacity: 1; }
/* Header controls sit inside the html scroll-padding zone. Focusing one while the page is scrolled
   (Tab, Shift+Tab, focus returning from the menu) would make Chrome "center" it and jump the page
   by ~430px. The scroll-margin box shifted below the padding counts as visible: nothing scrolls. */
.site-header a, .site-header button { scroll-margin-top: calc(-1 * (var(--header-h) + 16px)); scroll-margin-bottom: calc(var(--header-h) + 16px); }
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
/* min-width 0 + wrapping name: under WCAG 1.4.12 text spacing the wordmark wraps instead of pushing the
   menu toggle off screen; at normal spacing it fits on one line at every width from 320px */
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; min-height: 44px; color: var(--ink); }
.brand-name { font-size: 20px; font-weight: 650; letter-spacing: -.03em; line-height: 1; }
/* Logo = the wordmark itself. The full stop is an orange square: decorative, not part of the text (README, Leitplanken) */
.brand-name::after { content: ""; display: inline-block; width: .28em; height: .28em; margin-left: .07em; background: var(--orange); }
@media (forced-colors: active) { .brand-name::after { forced-color-adjust: none; background: CanvasText; } }
.brand-desc { display: none; font-size: 16px; line-height: 1; color: var(--muted); padding-left: 14px; margin-left: 4px; border-left: 1px solid var(--rule); white-space: nowrap; }
.nav { display: none; }
.nav ul { display: flex; gap: 30px; }
.nav a { position: relative; display: block; font-size: 16px; color: var(--ink); padding: 10px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: 0 50%; }
.header-cta { display: none; }
.header-contact { flex: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: none;
  min-width: 44px; height: 44px; padding: 0 4px; font-size: 16px; font-weight: 500; color: var(--ink);
}
.menu-bars { position: relative; width: 22px; height: 10px; }
.menu-bars::before, .menu-bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-bars::before { top: 0; }
.menu-bars::after { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { top: 4.25px; transform: rotate(-45deg); }
@media (max-width: 379px) {
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .header-contact { padding: 0 12px; }
}
/* open menu below 410px: "Schließen" does not fit beside wordmark and Kontakt, so the toggle shows
   only the × (the label stays as its accessible name, as below 380px) */
@media (max-width: 409px) {
  .menu-open .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 359px) { .header-inner { gap: 8px; } }
@media (min-width: 1000px) {
  .nav { display: block; margin-right: 8px; }
  .header-cta { display: inline-flex; }
  .header-contact, .menu-toggle { display: none; }
}
@media (min-width: 1240px) { .brand-desc { display: inline; } }

/* Mobile menu: full screen below the header, modal (site.js sets inert on main/footer) */
.menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  display: flex; flex-direction: column;
  background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px var(--m) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
}
.menu-list li { border-bottom: 1px solid var(--rule); }
.menu-list a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0 15px;
  font-size: clamp(30px, 8.4vw, 40px); line-height: 1.08; letter-spacing: -.03em; font-weight: 460; color: var(--ink);
}
.menu-no { min-width: 26px; font-size: 16px; letter-spacing: 0; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.menu-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 14px; }
.menu-foot .btn { width: 100%; }
.menu-contact { display: grid; gap: 2px; margin-top: 6px; }
.menu-contact a { display: inline-flex; align-items: center; min-height: 40px; font-size: 18px; color: var(--ink); }
/* root only: its overflow goes to the viewport, so body never becomes a scroll container
   (that would detach the sticky header from the screen while the menu is open) */
.menu-open { overflow: hidden; }
@media (min-width: 1000px) { .menu { display: none !important; } }

/* ---------- 6. Section scaffolding ---------- */
/* anchors land 16px under the sticky header via html { scroll-padding-top } alone */
.section { margin-top: var(--s-section); }
.sec-head { position: relative; padding-top: clamp(16px, 1.4vw, 20px); row-gap: 12px; }
.sec-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); transform-origin: 0 50%; }
.sec-label { font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--graphite); }
.h2 { font-size: var(--fs-h2); line-height: 1.03; letter-spacing: -.038em; font-weight: 470; color: var(--ink); hyphens: manual; }
.sec-intro { margin-top: clamp(16px, 1.7vw, 24px); font-size: var(--fs-lede); line-height: 1.45; letter-spacing: -.01em; color: var(--graphite); max-width: 34em; }
.lede { font-size: var(--fs-lede); line-height: 1.45; letter-spacing: -.01em; color: var(--graphite); }
@media (min-width: 1100px) {
  .sec-head .sec-label { grid-column: 1 / 4; padding-top: .1em; }
  .sec-head > .h2, .sec-head > .sec-main { grid-column: 4 / 13; }
  .sec-head > .h2, .sec-main > .h2 { margin-top: -.06em; }
}

/* ---------- 7. Hero ---------- */
.hero { padding-top: clamp(20px, 3.4vw, 32px); }
.hero-grid { align-items: start; }
.hero-eyebrow { display: flex; align-items: flex-start; gap: 14px; font-size: 16px; line-height: 1.4; color: var(--ink); }
.hero-eyebrow::before { content: ""; flex: none; width: 28px; height: 2px; margin-top: calc(.7em - 1px); background: var(--orange); }
.hero-title {
  margin-top: 18px; font-size: var(--fs-display); line-height: .94; letter-spacing: -.05em; font-weight: 450; color: var(--ink);
  text-wrap: initial;
}
.hero-title .ln { display: block; }
.hero-title .ln > span { display: block; }
.hero-figure { margin-top: 28px; }
.hero-field { position: relative; overflow: hidden; background: var(--orange); aspect-ratio: 4 / 5; }
.hero-field picture, .hero-field img { width: 100%; height: 100%; }
.hero-field img { object-fit: cover; object-position: 50% 0%; }
.hero-cap { margin-top: 10px; font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.hero-body { margin-top: 28px; }
.hero-body .lede { max-width: 33em; color: var(--graphite); }
.hero-actions { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "p" "m" "s"; justify-items: start; row-gap: 12px; }
.hero-actions .btn { grid-area: p; }
.hero-actions .micro { grid-area: m; }
.hero-actions .tlink { grid-area: s; margin-top: 4px; }
.hero-foot { margin-top: 28px; padding-top: 0; border-top: 1px solid var(--rule); }
/* Proof points: one wrapping row of plain text. Every item carries its separator in front;
   the list is shifted left by one separator and clipped there, so no separator ever starts
   or ends a line, however the row wraps. */
.proof {
  --pg: 14px; --sep: calc(2 * var(--pg) + 1px);
  display: flex; flex-wrap: wrap; row-gap: 4px; padding-top: 14px;
  margin-left: calc(-1 * var(--sep)); clip-path: inset(0 0 0 var(--sep));
  font-size: var(--fs-small); line-height: 1.4; font-weight: 500; color: var(--ink);
}
.proof li { display: flex; align-items: center; }
.proof li::before { content: ""; flex: none; width: 1px; height: 16px; margin: 0 var(--pg); background: var(--rule-mid); }

@media (max-width: 699px) {
  .hero-actions { justify-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .tlink { justify-self: start; }
}
@media (min-width: 700px) {
  .hero-title { margin-top: 22px; }
  .proof { --pg: 20px; padding-top: 0; row-gap: 6px; }
  .proof li { min-height: 56px; }
}
@media (min-width: 700px) and (max-width: 999px) {
  :root { --fs-display: clamp(60px, 9.6vw, 96px); }
  .hero-figure { grid-column: 7 / 13; grid-row: 3; margin-top: 36px; }
  .hero-body { grid-column: 1 / 7; grid-row: 3; margin-top: 36px; }
  .hero-foot { grid-row: 4; margin-top: 40px; }
  .hero-actions { margin-top: 28px; }
}
/* two-column hero from the desktop header on (1000px): portrait beside the headline */
@media (min-width: 1000px) {
  :root { --fs-display: clamp(64px, min(7.2vw, 10.9vh), 124px); }
  .hero { padding-top: clamp(16px, 2.6vh, 32px); }
  .hero-grid { grid-template-rows: auto auto 1fr auto; }
  .hero-eyebrow { grid-column: 1 / 8; grid-row: 1; }
  .hero-title { grid-column: 1 / 8; grid-row: 2; margin-top: clamp(14px, 2.2vh, 22px); }
  .hero-title { line-height: .92; }
  .hero-body { grid-column: 1 / 8; grid-row: 3; align-self: start; margin-top: clamp(20px, 3.2vh, 30px); padding-bottom: clamp(22px, 3.6vh, 40px); }
  .hero-body .lede { max-width: 32em; }
  .hero-actions { margin-top: clamp(20px, 3.2vh, 30px); grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "p s ." "m m m"; align-items: center; column-gap: 34px; row-gap: 12px; }
  .hero-actions .tlink { margin-top: 0; }
  /* the portrait field stands on the hero rule: field = rows 1-3, caption = row 4 (subgrid) */
  .hero-figure { grid-column: 8 / 13; grid-row: 1 / 5; margin-top: 0; display: grid; grid-template-rows: subgrid; align-self: stretch; }
  .hero-field { grid-row: 1 / 4; aspect-ratio: auto; min-height: 480px; }
  .hero-field picture { position: absolute; inset: 0; }
  .hero-field img { object-position: 50% 32%; }
  .hero-cap { grid-row: 4; margin-top: 0; align-self: center; padding-block: 14px; }
  .hero-foot { grid-column: 1 / 13; grid-row: 4; margin-top: 0; padding-top: 0; display: grid; grid-template-columns: subgrid; }
  .proof { --pg: clamp(10px, calc(10px + (100vw - 1100px) * .03), 20px); grid-column: 1 / 8; min-height: 56px; }
}
@media (min-width: 1000px) and (max-width: 1099px) {
  /* columns 1-7 are too narrow for all three proof points: two compact lines */
  .proof { padding-block: 14px; row-gap: 4px; }
  .proof li { min-height: 0; }
}
/* right-aligned caption keeps clear of the proof text until the columns are wide enough */
@media (min-width: 1000px) and (max-width: 1239px) { .hero-cap { text-align: right; } }

/* ---------- 8. E-Rechnung ---------- */
.er-grid { margin-top: var(--s-block); row-gap: 40px; align-items: end; }
.countdown { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 24px; row-gap: 14px; }
.cd-num {
  --cd: min(56vw, 420px);
  font-size: calc(var(--cd) * 2 / max(2, var(--chars, 2)));
  line-height: .74; letter-spacing: -.065em; font-weight: 400; color: var(--orange-type);
  margin-left: -.04em; font-variant-numeric: proportional-nums;
}
.cd-cap { font-size: var(--fs-lede); line-height: 1.3; letter-spacing: -.012em; color: var(--ink); padding-bottom: .06em; }
.cd-cap strong { display: block; font-weight: 500; }
.er-text .lede { max-width: 31em; }
.er-cta { margin-top: 30px; display: grid; justify-items: start; row-gap: 12px; }
.er-note { font-size: var(--fs-body); line-height: 1.55; color: var(--muted); max-width: 31em; text-wrap: pretty; }
@media (max-width: 699px) { .er-cta .btn { width: 100%; } }
.source { margin-top: 22px; font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }

.milestones { margin-top: var(--s-block); display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px var(--g); }
.ms { position: relative; padding-top: clamp(16px, 1.6vw, 22px); }
.ms::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); }
.ms[data-state="future"]::before { background: var(--rule-mid); }
.ms[data-state="next"]::before { height: 3px; background: var(--orange); }
.ms-date { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.05; letter-spacing: -.035em; font-weight: 500; color: var(--ink); }
.ms-title { margin-top: clamp(10px, 1.4vw, 18px); font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.ms-text { margin-top: 8px; font-size: var(--fs-body); line-height: 1.55; max-width: 34ch; }
.ms-status { margin-top: clamp(10px, 1.3vw, 18px); display: flex; align-items: center; gap: 8px; font-size: var(--fs-small); line-height: 1.4; color: var(--muted); }
.ms-status .i { width: 16px; height: 16px; display: none; }
.ms[data-state="done"] .ms-status .i { display: block; }
.ms[data-state="next"] .ms-status { color: var(--ink); font-weight: 500; }

@media (min-width: 700px) {
  .milestones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .er-grid .er-text { grid-column: 1 / 11; }
}
@media (min-width: 1100px) {
  .er-grid .er-text { grid-column: 4 / 11; }
  .er-grid:has(.countdown:not([hidden])) .countdown { grid-column: 1 / 8; }
  .er-grid:has(.countdown:not([hidden])) .er-text { grid-column: 8 / 13; }
  /* the text column is taller than the numeral since 17.11.2026: numeral and lede share the top edge */
  .er-grid:has(.countdown:not([hidden])) .countdown { align-self: start; }
  .cd-num { --cd: min(27vw, 390px); }
}

/* Invoice drawing: an invoice set like a technical drawing */
.inv-fig { margin-top: clamp(56px, 6vw, 84px); }
.inv-head { align-items: start; row-gap: 10px; margin-bottom: 28px; }
.inv-kicker { font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--graphite); }
.inv-headline { font-size: var(--fs-h3); line-height: 1.18; letter-spacing: -.026em; font-weight: 500; color: var(--ink); max-width: 31em; text-wrap: balance; }
@media (min-width: 1100px) {
  .inv-head .inv-kicker { grid-column: 1 / 4; padding-top: .3em; }
  .inv-head .inv-headline { grid-column: 4 / 12; }
}
.inv-stage { background: var(--plate); padding: clamp(16px, 3.6vw, 52px) clamp(16px, 5vw, 80px); }
.inv { --sheet: 100%; --pad: 20px; position: relative; font-size: 16px; line-height: 22px; color: var(--ink); }
.inv::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--sheet); background: #fff; }
.inv-row { position: relative; z-index: 1; }
.inv-f { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 16px; padding: 5px var(--pad); }
.inv-f .k { color: var(--graphite); }
.inv-f .v { font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-l { display: none; }
.inv-a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 0 var(--pad) 8px; font-size: 15px; line-height: 20px; color: var(--graphite); }
.inv-a .bt { font-weight: 600; color: var(--graphite); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.inv-a .val { display: none; }
.inv-row--head .inv-f { padding: 0; height: calc(var(--pad) - 4px); }
.inv-seller { font-weight: 600; letter-spacing: -.01em; }
.inv-sub { color: var(--muted); }
.inv-row--title .inv-f { padding-top: 20px; padding-bottom: 10px; }
.inv-title { font-size: 30px; line-height: 1; letter-spacing: -.04em; font-weight: 500; }
.inv-colhead { display: none; }
.inv-row--items, .inv-row--item, .inv-rule { display: none; }
.inv-row--sum .inv-f { padding-top: 18px; }
.inv-row--total .inv-f { font-weight: 600; font-size: 17px; }
.inv-row--total .inv-a { padding-bottom: calc(var(--pad) + 4px); }
.inv-cap { margin-top: 18px; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); max-width: 62ch; }

@media (min-width: 700px) {
  .inv { --sheet: 54%; --pad: clamp(24px, 3.2vw, 44px); display: grid; grid-template-columns: var(--sheet) minmax(28px, 1fr) minmax(220px, 380px); }
  .inv-row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
  .inv-row--items, .inv-row--item { display: grid; }
  .inv-rule { display: block; grid-column: 1; height: 1px; background: var(--rule); margin: 0 var(--pad); position: relative; z-index: 1; }
  .inv-f { grid-column: 1; }
  .inv-l { display: block; grid-column: 2; position: relative; }
  .inv-l::before {
    content: ""; position: absolute; left: 0; right: 16px; top: calc(var(--lt, 6px) + 11px); height: 1px;
    background: var(--ink); opacity: .3; transition: opacity .3s, background-color .3s;
  }
  .inv-l::after {
    content: ""; position: absolute; left: -3.5px; top: calc(var(--lt, 6px) + 8px); width: 7px; height: 7px;
    border-radius: 50%; background: var(--ink); transition: background-color .3s;
  }
  .inv-a { grid-column: 3; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: 12px; padding: 6px 0; font-size: 15px; line-height: 22px; color: var(--ink); }
  .inv-row--items .inv-f { padding-top: 20px; font-size: 15px; color: var(--muted); }
  .inv-row--sum .inv-a { padding-top: 18px; }
  .inv-row--sum .inv-l { --lt: 18px; }
  .inv-row--total .inv-f { padding-bottom: calc(var(--pad) + 6px); }
  .inv-row--total .inv-a { padding-bottom: 6px; }
  .inv-row--head .inv-f { height: var(--pad); }
  .inv-colhead {
    display: grid; grid-column: 3; grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: 12px; align-self: end;
    padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--rule-mid);
    font-size: 15px; line-height: 20px; color: var(--graphite);
  }
  .inv-colhead .vh { display: none; }
  .inv-row:hover .inv-l::before, .inv-row:focus-within .inv-l::before { background: var(--orange); opacity: 1; }
  .inv-row:hover .inv-l::after, .inv-row:focus-within .inv-l::after { background: var(--orange); }
}
@media (min-width: 1100px) {
  .inv { --sheet: min(540px, 48%); }
  .inv-a .val, .inv-colhead .vh { display: block; text-align: right; }
  .inv-a .val { font-variant-numeric: tabular-nums; color: var(--graphite); }
}

/* ---------- 9. Leistungen ---------- */
/* Flow schematic. Geometry is fixed in px rows so the hairlines meet exactly:
   narrow (<900): one vertical bus on the left, sources -> hub -> targets
   wide  (>=900): sources | bracket | E-Rechnung | bracket | targets
   One orange path, the shared trunk: the links into and out of E-Rechnung.
   Every source and target stub stays grey. */
.flow-fig { margin-top: var(--s-block); }
.flow-stage { background: var(--plate); padding: clamp(20px, 4vw, 52px) clamp(20px, 5vw, 72px); }
.flow { --row: 40px; --rg: 6px; --arm: 30px; --gap: 24px; position: relative; padding-left: var(--arm); color: var(--ink); }
.flow-col { position: relative; display: grid; grid-auto-rows: var(--row); row-gap: var(--rg); }
.flow-node { position: relative; display: flex; align-items: center; font-size: 17px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }
.flow-node::before { content: ""; position: absolute; top: 50%; left: calc(-1 * var(--arm)); width: calc(var(--arm) - 12px); height: 1px; background: var(--leader); }
.flow-col::before { content: ""; position: absolute; left: calc(-1 * var(--arm)); width: 1px; top: calc(var(--row) / 2); bottom: calc(var(--row) / 2); background: var(--leader); }
.flow-hub { position: relative; margin-block: var(--gap); padding: 18px 22px 20px; background: #fff; }
.flow-hub-t { font-size: clamp(22px, 2vw, 26px); line-height: 1.1; letter-spacing: -.025em; font-weight: 550; color: var(--ink); }
.flow-hub-s { margin-top: 6px; font-size: 16px; line-height: 1.35; color: var(--graphite); }
/* narrow: the bus runs on grey past the hub; only the stretch beside the hub box and the arm into it are orange */
.flow-hub::before { content: ""; position: absolute; left: calc(-1 * var(--arm)); width: 1px; top: calc(-1 * var(--gap) - var(--row) / 2); bottom: calc(-1 * var(--gap) - var(--row) / 2); background: var(--leader); }
.flow-hub::after { content: ""; position: absolute; left: calc(-1 * var(--arm) - .5px); width: 2px; top: 0; bottom: 0; background: var(--orange); }
.flow-hub-in { position: absolute; left: calc(-1 * var(--arm)); width: var(--arm); top: 50%; height: 2px; margin-top: -1px; background: var(--orange); }
.flow-cap { margin-top: 18px; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); max-width: 62ch; }
@media (min-width: 600px) and (max-width: 899px) {
  .flow { --row: 48px; --rg: 10px; max-width: 460px; margin-inline: auto; }
  .flow-node { font-size: 18px; }
}

@media (min-width: 900px) {
  .flow { --row: 56px; --rg: 12px; --arm: 44px; --link: clamp(96px, 11vw, 160px); padding-left: 0; max-width: 1040px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) var(--link) auto var(--link) minmax(0, 1fr); align-items: center; }
  .flow-src { grid-column: 1; justify-items: end; }
  .flow-dst { grid-column: 5; justify-items: start; }
  .flow-hub { grid-column: 3; margin: 0; padding: 26px 40px 28px; text-align: center; }
  .flow-node { font-size: clamp(18px, 1.5vw, 21px); }
  .flow-hub-t { font-size: clamp(24px, 2.3vw, 32px); }
  .flow-hub-s { font-size: 17px; }
  .flow-src .flow-node { text-align: right; }
  .flow-src .flow-node::before { left: calc(100% + 14px); width: calc(var(--arm) - 14px); }
  .flow-dst .flow-node::before { left: auto; right: calc(100% + 14px); width: calc(var(--arm) - 14px); }
  /* grey brackets from the first to the last node; the orange trunk joins them in the middle */
  .flow-src::before { left: calc(100% + var(--arm)); }
  .flow-dst::before { left: calc(-1 * var(--arm)); }
  .flow-hub::before, .flow-hub::after { top: 50%; bottom: auto; height: 2px; margin-top: -1px; width: calc(var(--link) - var(--arm)); background: var(--orange); }
  .flow-hub::before { left: auto; right: 100%; }
  .flow-hub::after { left: 100%; }
  .flow-hub-in { display: none; }
}

.svc-list { margin-top: var(--s-block); }
.svc { padding: 18px 0 22px; border-top: 1px solid var(--rule); row-gap: 6px; }
.svc-kicker { font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--graphite); }
.svc-title { font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -.026em; font-weight: 500; color: var(--ink); }
.svc-body p { max-width: 46ch; }
/* every tag carries its slash in front; shifted left by one slash and clipped there, so a
   wrapped list never ends or starts a line with a slash (same pattern as .proof) */
.tags { margin: clamp(8px, 1vw, 14px) 0 0 -22px; clip-path: inset(0 0 0 22px); display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.tags li { display: flex; align-items: center; }
.tags li::before { content: "/"; content: "/" / ""; flex: none; width: 22px; text-align: center; color: var(--rule-mid); }
.svc--price { border-top: 1px solid var(--rule); padding-top: 24px; padding-bottom: 0; align-items: baseline; }
.price-text { font-size: clamp(23px, 2vw, 28px); line-height: 1.3; letter-spacing: -.02em; font-weight: 450; color: var(--ink); max-width: 30em; text-wrap: balance; }
@media (min-width: 700px) {
  .svc { padding: 26px 0 30px; }
  .svc-kicker { grid-column: 1 / 13; }
  .svc-title { grid-column: 1 / 7; grid-row: 2; }
  .svc-body { grid-column: 7 / 13; grid-row: 2; }
  .svc--price { padding-bottom: 0; }
  .svc--price .price-text { grid-column: 1 / 12; }
}
@media (min-width: 1100px) {
  .svc { padding: 28px 0 32px; align-items: start; }
  .svc-kicker { grid-column: 1 / 4; grid-row: 1; padding-top: .3em; }
  .svc-title { grid-column: 4 / 8; grid-row: 1; margin-top: -.04em; }
  .svc-body { grid-column: 8 / 13; grid-row: 1; }
  .svc--price { padding-top: 26px; }
  .svc--price .svc-kicker { padding-top: .45em; }
  .svc--price .price-text { grid-column: 4 / 12; grid-row: 1; }
}

/* ---------- 10. Projekte ---------- */
.proj-feature { margin-top: var(--s-block); display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px var(--g); }
.proj { display: flex; flex-direction: column; }
.plate { --pp: clamp(22px, 4vw, 44px); position: relative; background: var(--plate); container-type: inline-size; display: flex; flex-direction: column; justify-content: center; padding: var(--pp); color: var(--ink); }
.proj-meta { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 20px; font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.proj-meta p { font-size: var(--fs-small); }
.proj-status { color: var(--ink); }
.proj h3 { margin-top: 10px; font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -.026em; font-weight: 500; color: var(--ink); max-width: 21em; }
.proj > h3 + p { margin-top: 12px; max-width: 52ch; }
@media (min-width: 1000px) {
  .proj-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto auto; row-gap: 0; }
  .proj { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
}

.dg-h { font-size: 16px; line-height: 1.3; color: var(--graphite); }

/* P1: mail sorting with leaders into folders, plus the daily backup */
.dg-mail { display: grid; grid-template-columns: minmax(0, auto) minmax(40px, 1fr) minmax(0, auto); grid-template-rows: auto auto auto; column-gap: 0; }
.dg-mail .dg-h { margin-bottom: 12px; }
.dg-mail .dg-h--out { grid-column: 3; padding-left: 8px; }
.dg-items { grid-column: 1; grid-row: 2; display: grid; grid-auto-rows: 44px; }
.dg-items li { position: relative; display: flex; align-items: center; padding-right: 16px; font-size: 16px; line-height: 1.2; white-space: nowrap; }
.dg-items b { font-weight: 550; }
.dg-items li span { color: var(--graphite); }
.dg-items .sep { margin: 0 .35em; }
.dg-items li::after { content: ""; position: absolute; right: -3.5px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--ink); }
.dg-wirebox { grid-column: 2; grid-row: 2; position: relative; min-width: 28px; }
.dg-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dg-wires path { fill: none; stroke: var(--ink); stroke-opacity: .32; stroke-width: 1; vector-effect: non-scaling-stroke; }
.dg-folders { grid-column: 3; grid-row: 2; display: grid; grid-template-rows: 1fr 2fr 1fr; }
.dg-folders li { display: flex; align-items: center; padding-left: 8px; }
/* flex: 1 = all three boxes share the widest one's width, so their right edges line up */
.dg-folders span { flex: 1; display: inline-block; padding: 8px 14px 9px; background: #fff; font-size: 16px; line-height: 1.2; font-weight: 500; white-space: nowrap; }
.dg-backup { grid-column: 1 / -1; grid-row: 3; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule-mid); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; font-size: 16px; }
.dg-checks { display: flex; gap: 10px; }
.dg-checks .i { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 1.7; }
@container (max-width: 300px) {
  .dg-items li, .dg-folders span { font-size: 15px; }
}
@container (max-width: 459px) {
  .dg-items { grid-auto-rows: 56px; }
  .dg-items li { flex-direction: column; align-items: flex-start; justify-content: center; white-space: normal; line-height: 1.25; hyphens: manual; }
  .dg-items .sep { display: none; }
  .dg-items li { padding-right: 12px; }
  .dg-folders li { padding-left: 6px; }
  .dg-mail .dg-h--out { padding-left: 6px; }
  .dg-folders span { padding: 6px 9px 7px; }
  .dg-checks { gap: 6px; }
  .dg-checks .i { width: 16px; height: 16px; }
}

/* P2: hours per project against the budget line */
.dg-budget { --track: 82%; }
.dg-bars { position: relative; margin-top: 44px; display: grid; gap: 16px; }
.dg-bars::before { content: ""; position: absolute; top: -12px; bottom: -12px; left: calc(92px + (100% - 92px) * .82); border-left: 1px dashed var(--ink); }
.dg-budget-l { position: absolute; top: -40px; left: calc(92px + (100% - 92px) * .82); transform: translateX(-50%); font-size: 16px; line-height: 1.3; color: var(--ink); white-space: nowrap; }
.dg-bar { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; }
.dg-bar > span:first-child { font-size: 16px; line-height: 1.2; color: var(--ink); }
.dg-track { position: relative; display: flex; height: 14px; }
.dg-track i { display: block; height: 100%; width: calc(var(--track) * var(--v)); background: var(--ink); }
.dg-track i.over { width: calc(var(--track) * var(--o)); background: var(--orange); }
.dg-legend { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; font-size: 16px; line-height: 1.3; color: var(--graphite); }
.dg-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dg-legend i { display: block; width: 16px; height: 10px; background: var(--ink); }
.dg-legend i.o { background: var(--orange); }

/* P3: a website as a pair of screens. From 1000px two plates of equal height, desktop (8 columns)
   and phone (4 columns); below that only the desktop plate, full width like the plates above.
   Both screenshots hang from the same top line and run off the lower edge: desktop cut to its top
   64% (5:2, logo and headline), phone to its top 74% (above the award logos). Below 700px the
   desktop shot is zoomed to 131% from its top left corner (2:1, MENU cut off), so the headline stays
   readable; not taller than about 1.9:1, or the client's mono line (67% down) comes into view.
   Screenshots sit on the plate with a 1px var(--rule) image edge, which keeps their off-white from
   dissolving into the plate: no shadow, no browser frame.
   The sizes attributes in index.html are hand-computed from the 8+4 split, --pp, --g, --m, --maxw
   and the 131% zoom: desktop 918px, calc(60.2vw - 88px), 83.2vw, 109vw, calc(131vw - 112px);
   phone 230px, calc(15vw - 22px). Recheck both whenever any of these change. */
.proj-shots { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--g); }
.plate--shot { padding-bottom: 0; justify-content: flex-start; overflow: hidden; }
/* overflow: hidden also drops the flex item's automatic minimum height, which would otherwise grow
   the desktop shot back to the full 16:10 image and ignore aspect-ratio */
.shot { overflow: hidden; border: 1px solid var(--rule); border-bottom: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.shot--desktop { aspect-ratio: 5 / 2; }
@media (max-width: 699px) {
  .shot--desktop { aspect-ratio: 2 / 1; }
  .shot--desktop img { width: 131%; max-width: none; height: auto; }
}
.plate--phone { display: none; }
.proj-link { margin-top: 8px; }
/* the link leaves the site: the shared arrow turned to ↗ */
.proj-link .tlink .i { transform: rotate(-45deg); }
@media (prefers-reduced-motion: no-preference) {
  .proj-link .tlink:hover .i { transform: rotate(-45deg) translateX(3px); }
}
@media (min-width: 1000px) {
  .proj--pair { grid-column: 1 / -1; grid-row: auto; display: flex; margin-top: clamp(56px, 4.6vw, 68px); }
  /* 8 + 4 of 12 columns: the phone plate lines up with the third column of .proj-more */
  .proj-shots { grid-template-columns: minmax(0, 1fr) calc((100% - 2 * var(--g)) / 3); }
  .plate--phone { display: flex; }
  /* centred with auto margins rather than translateX(-50%), which can leave the image on a half
     pixel; the width still follows aspect-ratio from the height */
  .shot--phone { position: absolute; top: var(--pp); left: 0; right: 0; margin-inline: auto; height: calc((100% - var(--pp)) / .74); aspect-ratio: 390 / 844; }
  /* the meta row spans the desktop plate, as it spans the plate above it in the other entries */
  .proj--pair .proj-meta { max-width: calc((200% - var(--g)) / 3); }
}

/* P4: a website as one panorama (ZAS Corporate Finance), a layout of its own beside the pair of P3.
   The screenshot is cut to the head of the page at 8:3 (wordmark, menu and the photo with the
   headline, cut while its fade into white is still faint) and runs over all 12 columns, on the
   plate like P3: hanging from the top padding, running off the lower edge, 1px var(--rule) image edge.
   From 1000px the shot takes 80% of the plate, from 6% (room for the phone inset, see below): across the
   full width the client's headline became the loudest type of the whole project list.
   Below 700px the <picture> switches to a second crop, 2:1, the page head zoomed to 119% from its
   top left corner: wordmark, "ÜBER ZAS" and the whole headline (it ends at 80.5% of the width), the
   menu ends cleanly after "ÜBER ZAS". The whole panorama would shrink the headline too far there.
   From 700px the text below is set on the grid instead of as one block: .proj-head (meta and title)
   in columns 1–4, .proj-body (paragraph and link) from column 5, on the edges of the first and
   second column of .proj-more (from 1000px; 700–999px .proj-more has one column). Both hang from the same line under the plate: the first baselines
   of meta and paragraph are aligned. Below 700px the two divs simply stack like any other entry.
   From 1000px the article spans both columns of .proj-feature; grid-row auto and no template rows
   replace the subgrid of .proj (grid-row: span 4); top margin as P3.
   The sizes attributes in index.html, from the shot width = content width - 2 * --pp, with content
   width = 100vw - 2 * --m up to --maxw:
     panorama  80% from 1000px: 1146px (from 1648px), calc(80vw - 173px) (1455–1647),
               calc(72.96vw - 70.4px) (1100–1454), 66.56vw (1000–1099); full plate: 83.2vw (700–999)
     kopf      83.2vw (550–699), calc(91.2vw - 44px) (455–549), calc(100vw - 84px) (below 455)
   Recheck them whenever --m, --pp, --maxw or the switch at 700px change. */
.proj--pano .shot { aspect-ratio: 8 / 3; }
.proj--pano .proj-body > p:first-child { margin-top: 12px; max-width: 52ch; }
@media (max-width: 699px) { .proj--pano .shot { aspect-ratio: 2 / 1; } }
@media (min-width: 700px) {
  .proj--pano { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: none; column-gap: var(--g); }
  .proj--pano > .plate { grid-column: 1 / -1; }
  .proj--pano > .proj-head { grid-column: 1 / 5; align-self: baseline; }
  .proj--pano > .proj-body { grid-column: 5 / -1; align-self: baseline; }
  .proj--pano .proj-meta { flex-direction: column; gap: 2px; }
  .proj--pano .proj-body > p:first-child { margin-top: 20px; }
}
@media (min-width: 1000px) {
  .proj--pano { grid-column: 1 / -1; grid-row: auto; margin-top: clamp(56px, 4.6vw, 68px); }
  .proj--pano .shot { width: 80%; margin-inline: 6% auto; }
}
/* P4 phone inset (from 1000px), layout "groß davor" (Leon, 24.11.2026): the panorama moves left to
   6–86cqw (cqw = the plate's content box), the phone screenshot stands in front of its right edge,
   19cqw wide at 80–99cqw, so it covers only the right 7.5% of the panorama, clear of the client's
   headline (it ends at 80.5%). Top 4cqw below the panorama's top edge, cut by the lower edge of the
   plate like the phone in P3 (about 63% stays visible). A soft shadow sets it in front; the earlier
   ring in plate colour cut a notch into the panorama's white head.
   sizes = 19% of (content width - 2 * 44px): 272px (from 1648px), calc(19vw - 41px) (1455–1647),
   calc(17.33vw - 17px) (1000–1454). Below 1000px display: none, so the lazy image is not loaded. */
.proj--pano .shot--inset { display: none; position: absolute; top: calc(var(--pp) + 4cqw); right: calc(var(--pp) + 1cqw); width: 19cqw; aspect-ratio: 390 / 844; border-bottom: 1px solid var(--rule); box-shadow: 0 18px 40px -12px rgb(20 20 30 / .28), 0 2px 6px rgb(20 20 30 / .10); }
@media (min-width: 1000px) { .proj--pano .shot--inset { display: block; } }

.proj-more { margin-top: clamp(40px, 4.6vw, 68px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px var(--g); }
.proj-sm { padding-top: 20px; border-top: 1px solid var(--rule); }
.proj-sm .proj-meta { margin-top: 0; flex-direction: column; gap: 2px; }
.proj-sm h3 { margin-top: clamp(10px, 1vw, 14px); font-size: var(--fs-h4); line-height: 1.2; letter-spacing: -.022em; font-weight: 500; color: var(--ink); }
.proj-sm > p:last-child { margin-top: 10px; font-size: var(--fs-body); line-height: 1.55; }
@media (min-width: 700px) { .proj-more { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Three entries (Work CRM added, entwurf/ki-belege). 700–999px: one column as below 700px. Three columns
   are too narrow there (headlines break at the hyphen) and two would leave the third entry alone in a
   second row; the paragraph keeps the measure of the ZAS paragraph. From 1000px the 4/4/4 grid with one
   rule across the row, entries under the ZAS head and paragraph. */
@media (min-width: 700px) and (max-width: 999px) { .proj-more { grid-template-columns: minmax(0, 1fr); } .proj-sm > p:last-child { max-width: 52ch; } }
@media (min-width: 1000px) { .proj-more { border-top: 1px solid var(--rule); padding-top: 20px; } .proj-more > .proj-sm { border-top: 0; padding-top: 0; } }

.cta-row { margin-top: clamp(40px, 4.4vw, 64px); padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.cta-row-text { font-size: clamp(23px, 2vw, 28px); line-height: 1.25; letter-spacing: -.02em; font-weight: 450; color: var(--ink); }

/* ---------- 11. Ablauf ---------- */
.steps { margin-top: var(--s-block); display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px var(--g); }
.step { position: relative; padding-top: clamp(14px, 1.4vw, 18px); }
.step-no { font-size: clamp(48px, 7vw, 104px); line-height: .8; letter-spacing: -.06em; font-weight: 300; color: var(--ink); margin-left: -.04em; }
.step h3 { margin-top: clamp(12px, 2.4vw, 36px); font-size: var(--fs-h4); line-height: 1.2; letter-spacing: -.022em; font-weight: 500; color: var(--ink); }
.step p:not(.step-no):not(.step-meta) { margin-top: 10px; font-size: var(--fs-body); line-height: 1.55; max-width: 34ch; }
.step-meta { margin-top: 14px; font-size: var(--fs-small); line-height: 1.4; color: var(--muted); }
.abl-cta { margin-top: clamp(40px, 4.5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
@media (max-width: 699px) {
  .abl-cta .btn { width: 100%; }
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 12. Über mich ---------- */
.about { margin-top: var(--s-block); row-gap: 40px; }
.about-photo { position: relative; overflow: hidden; background: #E9E9EC; aspect-ratio: 4 / 3; }
@media (min-width: 700px) { .about-photo { aspect-ratio: 4 / 5; } }
.about-photo picture, .about-photo img { width: 100%; height: 100%; }
.about-photo img { object-fit: cover; object-position: 50% 6%; }
@media (min-width: 700px) { .about-photo img { object-position: 50% 20%; } }
.about-text .lede { color: var(--ink); }
.about-text p + p { margin-top: 22px; max-width: 36em; }
.facts { margin-top: 40px; }
.facts div { display: grid; grid-template-columns: minmax(84px, auto) minmax(0, 1fr); gap: 4px 16px; padding: clamp(11px, 1vw, 14px) 0 clamp(12px, 1.1vw, 15px); border-top: 1px solid var(--rule); align-items: baseline; }
.facts div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font-size: var(--fs-small); color: var(--muted); }
.facts dd { font-size: var(--fs-body); line-height: 1.5; color: var(--ink); hyphens: auto; overflow-wrap: break-word; }
@media (min-width: 700px) {
  .about-fig { grid-column: 1 / 6; }
  .about-text { grid-column: 7 / 13; }
}
@media (min-width: 1100px) {
  .about-fig { grid-column: 1 / 4; }
  .about-text { grid-column: 4 / 11; }
  .about-text .lede { max-width: 30em; }
  .facts div { grid-template-columns: 150px minmax(0, 1fr); }
}

/* ---------- 12a. Selbstversuch: Abtippen (#abtippen, assets/abtippen.js) ----------
   Without JavaScript the section shows its head, the intro and the invoice. The game (.ab-game:
   clock, five fields, buttons) and both outcome bands (.ab-sim, .ab-result) carry [hidden] in the
   HTML; abtippen.js shows them, marks [data-ab] with [data-ab-ready] and sets the state on it:
   is-running, is-solved, is-auto.
   Invoice: a white sheet with a 1px var(--rule) edge on the plate, like the website screenshots.
   Orange stays a surface in the game: a field that is right fills orange from the left, so does its
   cell in the progress row; in the comparison the software bar is the one orange mark. Text on
   orange is on-orange. Colour never speaks alone: a right field also gets a tick; a wrong one, once
   it has been left, a 3px frame and a message with a "!" mark (like the contact form), no red.
   Result: a panel in ink inside the 12 columns (the orange contact band follows below it at full
   width), white text and one large numeral in var(--orange), the projection per year, like a
   scoreboard. It is the one place with orange type in #F87A2F: 6.9:1 on ink (orange-type #E2621A is
   for large orange type on white). Every colour inside the panel is set here, because the site's
   focus ring, selection and on-orange marks are dark and would vanish on ink. The seconds are large
   only in the clock; on the panel they are a sentence.
   Clock and projection: Geist, no monospace; tabular figures (the clock does not jitter). Both follow
   their container (cqi) and their number of characters (--n, set by abtippen.js), so "1234,5 s" and
   "24.000" fit at 320px; both boxes keep the height of three characters, so nothing below them
   moves when a digit is added. The lead line above the projection always takes two lines, for the
   same reason.
   Layout: stacked below 1000px (game up to 760px wide). From 1000px, once abtippen.js runs, the
   invoice takes columns 1-7 and the game 8-12; the bands run across all 12, and the right part of
   the panel lines up with the game. Without JS (or before abtippen.js has run) the invoice sits
   under the headline from 1100px (columns 4-11). */
.ab-grid { margin-top: var(--s-block); row-gap: clamp(40px, 5vw, 64px); align-items: start; }

/* the invoice */
.ab-plate { background: var(--plate); padding: clamp(12px, 3.4vw, 44px); }
.ab-sheet {
  container: absheet / inline-size;
  max-width: 680px; margin-inline: auto; background: #fff; border: 1px solid var(--rule);
  padding: clamp(18px, 3.4vw, 40px) clamp(14px, 3.4vw, 40px) clamp(20px, 3.4vw, 36px);
  font-size: 16px; line-height: 1.45; color: var(--ink); font-variant-numeric: tabular-nums;
}
.ab-from-name { font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; }
.ab-from-name + p { margin-top: 2px; color: var(--graphite); }
.ab-head { margin-top: clamp(20px, 3vw, 30px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 32px; align-items: start; }
.ab-k { color: var(--muted); }
.ab-meta div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; padding: 5px 0 6px; border-bottom: 1px solid var(--rule); }
.ab-meta div:first-child { border-top: 1px solid var(--rule); }
.ab-meta dt { color: var(--graphite); }
.ab-meta dd { font-weight: 500; white-space: nowrap; }
.ab-title { margin-top: clamp(24px, 3.4vw, 36px); font-size: 28px; line-height: 1; letter-spacing: -.04em; font-weight: 500; }
.ab-items { width: 100%; margin-top: 16px; border-collapse: collapse; }
.ab-items th, .ab-items td { padding: 9px 0; text-align: left; vertical-align: top; font-weight: 400; }
.ab-items thead th { padding: 0 0 8px; color: var(--muted); border-bottom: 1px solid var(--ink); }
.ab-items tbody td { border-bottom: 1px solid var(--rule); }
.ab-items th:first-child, .ab-items td:first-child { width: 2.2em; padding-right: 8px; color: var(--graphite); }
.ab-items th:last-child, .ab-items td:last-child { padding-left: 12px; text-align: right; white-space: nowrap; }
.ab-qty { display: block; margin-top: 2px; color: var(--graphite); }
.ab-sum { margin: 12px 0 0 auto; max-width: 330px; }
.ab-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.ab-sum dt { color: var(--graphite); }
.ab-sum dd { white-space: nowrap; }
.ab-sum .ab-total { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--ink); font-weight: 600; }
.ab-sum .ab-total dt { color: var(--ink); }
.ab-pay { margin-top: clamp(18px, 2.6vw, 28px); color: var(--graphite); }
.ab-cap { margin-top: 14px; font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
/* narrow sheet: street and place on lines of their own (no line ending in the separator), and every
   line of the head written the same way, term above value (else only the invoice number wraps) */
@container absheet (max-width: 249px) {
  .ab-adr { display: block; }
  .ab-sep { display: none; }
}
@container absheet (max-width: 279px) {
  .ab-meta div { display: block; }
}
@container absheet (min-width: 500px) {
  .ab-items th:first-child, .ab-items td:first-child { width: 3em; }
}
@container absheet (min-width: 540px) {
  .ab-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}

/* the game: clock, progress row, five fields, buttons */
.ab-game { container: abgame / inline-size; }
.ab-hud { position: relative; padding-top: clamp(14px, 1.4vw, 18px); }
.ab-hud::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); }
.ab-hud-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; font-size: var(--fs-small); line-height: 1.4; }
.ab-hud-label { font-weight: 500; color: var(--graphite); }
.ab-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.ab-rec { display: none; flex: none; width: 10px; height: 10px; background: var(--orange); }
.is-running .ab-rec { display: block; }
/* min-height: the box keeps the height of three digits, more digits only make them smaller (the
   fields below do not move at 100 s). flex-wrap: the "s" goes under the digits rather than out of
   the column (e.g. with wider letter spacing, WCAG 1.4.12). */
.ab-clock {
  --n: 3; display: flex; flex-wrap: wrap; align-items: baseline; align-content: flex-end; gap: 0 .1em;
  min-height: calc(min(152px, 100cqi / 2.75) * .86); margin-top: clamp(6px, 1vw, 12px);
  font-size: min(152px, calc(100cqi / (var(--n) * .6 + .95)));
  line-height: .86; letter-spacing: -.05em; font-weight: 560; color: var(--ink); font-variant-numeric: tabular-nums;
}
.ab-clock-u { font-size: .28em; letter-spacing: -.01em; font-weight: 500; color: var(--graphite); }
.ab-cells { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: clamp(20px, 2.2vw, 28px); }
.ab-cell {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 36px; padding: 0 10px;
  background: var(--plate); font-size: var(--fs-small); line-height: 1; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums;
}
.ab-cell::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; }
.ab-cell.is-on::before { transform: none; }

.ab-fields { min-width: 0; margin: clamp(26px, 2.8vw, 36px) 0 0; padding: 0; border: 0; }
/* float: the legend then behaves like an ordinary block (no fieldset-border special case) */
.ab-legend { float: left; width: 100%; padding: 0; font-size: var(--fs-body); line-height: 1.45; font-weight: 500; color: var(--ink); }
.ab-fgrid { clear: both; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--g); padding-top: 18px; }
.ab-field { display: grid; align-content: start; min-width: 0; margin-top: 22px; }
.ab-field:first-child { margin-top: 0; }
.ab-lrow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 8px; }
.ab-label { min-width: 0; font-size: var(--fs-body); line-height: 1.35; font-weight: 500; color: var(--ink); }
/* a wrapped label goes on under its words, not under the digit */
.ab-lrow .ab-label { padding-left: 1.4em; text-indent: -1.4em; }
.ab-no { display: inline-block; min-width: 1.4em; text-indent: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
/* the e-invoice term (BT-…) shows only after "Automatisch auslesen", but always keeps its room:
   showing it never re-wraps a label (the fields below would jump) */
.ab-bt { flex: none; visibility: hidden; font-size: 15px; line-height: 1.35; font-weight: 600; letter-spacing: .01em; color: var(--graphite); font-variant-numeric: tabular-nums; }
.is-auto .ab-bt { visibility: visible; }
.ab-box { position: relative; isolation: isolate; }
.ab-box::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; }
.ab-input {
  display: block; width: 100%; min-width: 0; min-height: 56px; margin: 0; padding: 0 15px;
  font: inherit; font-size: 18px; line-height: 1.45; letter-spacing: -.005em; color: var(--ink);
  background: transparent; border: 1.5px solid var(--ink); border-radius: 0; text-overflow: ellipsis;
  -webkit-appearance: none; appearance: none;
}
.ab-input:focus-visible { outline-offset: 2px; }
.ab-input[readonly] { cursor: default; }
/* an error: 3px frame, the padding shrinks by the same 1.5px so the text does not move (as .kf-input) */
.ab-input[aria-invalid="true"] { border-width: 3px; padding-inline: 13.5px; }
.ab-tick { position: absolute; right: 12px; top: 50%; margin-top: -9px; display: none; stroke-width: 2; color: var(--on-orange); pointer-events: none; }
.ab-field.is-ok .ab-box::before { transform: none; }
.ab-field.is-ok .ab-input { padding-right: 40px; color: var(--on-orange); border-color: var(--on-orange); }
.ab-field.is-ok .ab-tick { display: block; }
/* the message under a field: black on white like the form's messages, with the "!" mark, no red */
.ab-msg { position: relative; margin-top: 10px; padding-left: 30px; font-size: var(--fs-small); line-height: 1.4; color: var(--ink); }
.ab-msg::before {
  content: "!"; content: "!" / ""; position: absolute; left: 0; top: .05em; display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; line-height: 1; font-weight: 700;
}
@container abgame (max-width: 479px) {
  /* label and state always on two lines, so the first keystroke ("Läuft") does not move the fields */
  .ab-hud-top { flex-direction: column; align-items: flex-start; }
}
@container abgame (min-width: 480px) {
  .ab-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-field--wide { grid-column: 1 / -1; }
  /* label, box and message of a pair share rows, so both boxes line up when one label wraps */
  .ab-field:not(.ab-field--wide) { grid-row: span 3; grid-template-rows: subgrid; }
  .ab-field:not(.ab-field--wide) > .ab-lrow { align-self: end; }
}
.ab-actions { margin-top: clamp(26px, 2.8vw, 34px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.ab-auto .i { width: 16px; height: 16px; }
.ab-again {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 17px; font-weight: 500; letter-spacing: -.01em;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 9px) / 100% 1px no-repeat; transition: color .3s var(--ease);
}
.ab-again:hover { color: var(--orange-ink); }

/* band 1: the simulation, with the comparison once the visitor has a time */
.ab-sim { position: relative; padding-top: clamp(16px, 1.4vw, 20px); }
.ab-sim::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); }
.ab-sim-label { font-size: var(--fs-small); line-height: 1.4; font-weight: 600; color: var(--ink); }
.ab-sim-body { margin-top: 14px; }
.ab-vs { display: grid; gap: 16px; margin-bottom: clamp(22px, 2.4vw, 30px); }
.ab-vs-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 16px; font-size: var(--fs-body); line-height: 1.35; }
.ab-vs-k { font-weight: 500; color: var(--ink); }
.ab-vs-v { grid-column: 2; grid-row: 1; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.ab-vs-track { grid-column: 1 / -1; grid-row: 2; position: relative; height: 16px; }
.ab-vs-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--rule-mid); }
.ab-vs-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--ink); transform-origin: 0 50%; }
/* the software bar is a sliver on purpose: fractions of a second against the visitor's seconds */
.ab-vs-row--sw .ab-vs-track i { width: 4px; background: var(--orange); }
.ab-sim-text { font-size: var(--fs-lede); line-height: 1.45; letter-spacing: -.01em; color: var(--ink); max-width: 34em; }
.ab-sim-note { margin-top: 12px; font-size: var(--fs-body); line-height: 1.55; color: var(--graphite); max-width: 40em; }
.ab-sim-try { margin-top: 12px; font-size: var(--fs-body); line-height: 1.55; font-weight: 500; color: var(--ink); max-width: 40em; }
.ab-sim-cta { margin-top: clamp(22px, 2.4vw, 30px); }
@media (min-width: 700px) {
  .ab-vs-row { grid-template-columns: 7.5em minmax(0, 1fr) minmax(8em, 12.5em); align-items: center; }
  .ab-vs-track { grid-column: 2; grid-row: 1; }
  .ab-vs-v { grid-column: 3; }
}

/* band 2: the result panel in ink; order on the phone = order in the markup: seconds as a sentence,
   the projection per year (one sentence: a lead of two lines, the large orange number, the unit),
   the count, the note and the link */
.ab-result {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; column-gap: var(--g);
  padding: clamp(24px, 4vw, 56px); background: var(--ink); color: #fff;
}
.ab-result ::selection { background: var(--orange); color: var(--on-orange); }
.ab-result :focus-visible { outline-color: #fff; }
.ab-res-time { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.026em; font-weight: 500; color: #fff; max-width: 21em; }
.ab-res-t { font-weight: 620; font-variant-numeric: tabular-nums; }
.ab-res-big { container-type: inline-size; margin-top: clamp(28px, 3vw, 36px); }
/* the lead in two lines, one per part, broken after the count ("Bei 80 Rechnungen / im Monat sind das
   rund"), so typing a count never changes its height: from 320px each part fits on one line (the
   longer, "im Monat sind das rund", needs 10.5em, the column at 320px has 12.2em) */
.ab-res-pre { display: block; font-size: var(--fs-lede); line-height: 1.4; letter-spacing: -.01em; max-width: 24em; text-wrap: balance; }
.ab-res-pre > span { display: block; }
/* the size follows the column and --n (characters, at least 3); the box keeps the 3-character
   height and sets the digits on its foot, so the unit line stays put while the count is typed */
.ab-res-n {
  --n: 3; display: flex; align-items: flex-end;
  min-height: calc(min(240px, 100cqi / 1.95) * .8); margin: 12px 0 14px -.04em;
  font-size: min(240px, calc(100cqi / (var(--n) * .6 + .15)));
  line-height: .8; letter-spacing: -.05em; font-weight: 450; color: var(--orange);
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.ab-res-unit { display: block; font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -.026em; font-weight: 500; }
.ab-calc { margin-top: clamp(28px, 3vw, 36px); }
.ab-calc .ab-label { display: block; padding-bottom: 8px; color: #fff; }
.ab-input--count { max-width: 220px; border-color: #fff; color: #fff; caret-color: var(--orange); }
.ab-result .ab-msg { color: #fff; }
.ab-result .ab-msg::before { background: #fff; color: var(--ink); }
.ab-res-act { margin-top: 32px; }
.ab-note { font-size: var(--fs-body); line-height: 1.55; max-width: 30em; }
.ab-res-cta { margin-top: 24px; }
.ab-result .btn--ink { background: #fff; border-color: #fff; color: var(--ink); }
.ab-result .btn--ink::selection { background: var(--ink); color: #fff; }
@media (hover: hover) { .ab-result .btn--ink:hover { background: var(--orange); border-color: var(--orange); color: var(--on-orange); } }

@media (max-width: 699px) {
  .ab-auto, .ab-res-cta .btn, .ab-sim-cta .btn { width: 100%; }
}
/* from 700px the panel has two parts: left the reading (the sentence, the projection under it; this
   part sets the panel's height), right the count on top, note and link at the foot. The projection
   hangs from the top of its row: when the message under the count makes the right part taller, the
   panel grows at its foot and the large number stays where it is. */
@media (min-width: 700px) {
  .ab-result { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr; }
  .ab-res-time { grid-area: 1 / 1; }
  .ab-res-big { grid-area: 2 / 1; align-self: start; }
  .ab-res-side { grid-area: 1 / 2 / 3 / 3; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; }
  .ab-calc { margin-top: 0; }
}
@media (max-width: 999px) { .ab-game { max-width: 760px; } }
@media (min-width: 1000px) {
  .ab-grid[data-ab-ready] .ab-doc { grid-column: 1 / 8; }
  .ab-game { grid-column: 8 / 13; }
  /* on the page grid: the right part of the panel is the game column above */
  .ab-result { grid-template-columns: subgrid; }
  .ab-res-time, .ab-res-big { grid-column: 1 / 8; }
  .ab-res-side { grid-column: 8 / 13; }
}
@media (min-width: 1100px) {
  .ab-doc { grid-column: 4 / 12; }
  .ab-sim { display: grid; grid-template-columns: subgrid; align-items: start; }
  .ab-sim-label { grid-column: 1 / 4; padding-top: .3em; }
  .ab-sim-body { grid-column: 4 / 13; margin-top: 0; }
}

@media (forced-colors: active) {
  /* the large numerals are taller than their line box: their backplate would cover the lines above
     and below, so they keep their own (system) colour */
  .ab-clock, .ab-res-n { forced-color-adjust: none; color: CanvasText; }
  .ab-clock-u { color: CanvasText; }
  /* without the orange fill the tick marks a right field; the SVG would keep its dark colour */
  .ab-tick { color: CanvasText; }
  .ab-cell { forced-color-adjust: none; color: CanvasText; background: Canvas; border: 1px solid CanvasText; }
  .ab-cell.is-on { background: Highlight; color: HighlightText; }
  .ab-cell::before { display: none; }
  .ab-vs-track i { forced-color-adjust: none; background: CanvasText; }
  .ab-vs-row--sw .ab-vs-track i { background: Highlight; }
  .ab-result { border: 1px solid CanvasText; }
}

@media (prefers-reduced-motion: no-preference) {
  .ab-box::before, .ab-cell::before { transition: transform .4s var(--ease); }
  .is-auto .ab-box::before, .is-auto .ab-cell::before { transition-duration: .18s; }
  /* the recording light blinks four times (4.8 s), then stays on (WCAG 2.2.2) */
  .is-running .ab-rec { animation: ab-blink 1.2s steps(1, end) 4; }
  .ab-result.is-in { animation: ab-wipe .55s var(--ease) both; }
  .ab-result.is-in .ab-res-n { animation: ab-rise .8s var(--ease) .15s both; }
  .ab-sim.is-in .ab-vs-row:first-child .ab-vs-track i { animation: ab-grow 1.6s cubic-bezier(.3, 0, .2, 1) .1s both; }
}
@keyframes ab-blink { 50% { opacity: .15; } }
@keyframes ab-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes ab-rise { from { opacity: 0; transform: translate3d(0, .18em, 0); } to { opacity: 1; transform: none; } }
@keyframes ab-grow { from { transform: scaleX(0); } }
@media print { .ab-game, .ab-sim, .ab-result { display: none !important; } }

/* ---------- 13. Kontakt (closing orange band) ---------- */
.contact { margin-top: var(--s-section); background: var(--orange); color: var(--on-orange); padding-block: clamp(48px, 6vw, 88px) clamp(56px, 6.6vw, 96px); scroll-margin-top: -16px; /* flush under the header */ }
.contact .sec-head::before { background: var(--on-orange); }
.contact .sec-label { color: var(--on-orange); }
.contact-title { margin-top: clamp(20px, 2.4vw, 32px); font-size: var(--fs-contact); line-height: .97; letter-spacing: -.045em; font-weight: 450; color: var(--on-orange); max-width: 12.5em; }
/* Order in the markup and on narrow screens: lede, form, "Lieber direkt?" (mail and phone).
   From 1100px: lede and the direct lines share columns 1-4, the form takes columns 6-12. */
.contact-grid { margin-top: clamp(32px, 3.6vw, 52px); row-gap: clamp(40px, 6vw, 56px); }
.contact-lede { font-size: var(--fs-lede); line-height: 1.45; letter-spacing: -.01em; color: var(--on-orange); max-width: 27em; }
.contact .btn--ink { background: var(--on-orange); border-color: var(--on-orange); color: #fff; }
@media (hover: hover) { .contact .btn--ink:hover { background: var(--paper); border-color: var(--paper); color: var(--on-orange); } }
.contact .btn--outline { color: var(--on-orange); border-color: var(--on-orange); }
@media (hover: hover) { .contact .btn--outline:hover { background: var(--on-orange); color: #fff; } }
.contact .micro { margin-top: 16px; color: var(--on-orange); }
.contact :focus-visible { outline-color: var(--on-orange); }
.c-alt { margin-bottom: clamp(12px, 1.2vw, 16px); font-size: var(--fs-h4); line-height: 1.2; letter-spacing: -.022em; font-weight: 500; color: var(--on-orange); }
.c-row { padding: clamp(12px, 1.2vw, 16px) 0 clamp(14px, 1.5vw, 20px); border-top: 1px solid rgba(10, 10, 10, .35); }
.c-row:last-of-type { border-bottom: 1px solid rgba(10, 10, 10, .35); }
.c-label { font-size: var(--fs-small); line-height: 1.4; color: var(--on-orange); }
.c-line { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; }
.c-value {
  font-size: clamp(26px, 2.9vw, 42px); line-height: 1.15; letter-spacing: -.03em; font-weight: 500; color: var(--on-orange);
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease);
}
.c-value:hover { background-size: 100% 2px; }
.copy { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px; font-size: var(--fs-small); font-weight: 500; color: var(--on-orange); }
.copy .i { width: 16px; height: 16px; stroke-width: 1.5; }
.copy-label { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; }
/* below 1100px form and direct lines stop at 760px, so fields never stretch across a tablet */
@media (max-width: 1099px) { .contact-form, .contact-lines { max-width: 760px; } }
@media (min-width: 1100px) {
  .contact-grid { grid-template-rows: auto 1fr; row-gap: 0; }
  .contact-main { grid-column: 1 / 5; grid-row: 1; }
  .contact-form { grid-column: 6 / 13; grid-row: 1 / 3; }
  /* the direct lines close the left column on the same line as the form's last row */
  .contact-lines { grid-column: 1 / 5; grid-row: 2; align-self: end; padding-top: 56px; }
  .contact-lines .c-value { font-size: clamp(24px, 2.2vw, 34px); }
}

/* ---------- 13a. Kontaktformular (form[data-kform] on the orange band) ----------
   Fields are drawn like .btn--outline: a 1.5px on-orange frame, no fill, square corners, 56px
   tall (58px from 1100px) like the send button, so fields and button read as one set.
   Contrast: all text and every frame is on-orange #0A0A0A on #F87A2F (7.4:1); WCAG asks 4.5:1
   for text and 3:1 for field boundaries and focus. No placeholders (hints stay visible).
   Focus: the site-wide 2px outline, on-orange from .contact :focus-visible.
   Error: never colour alone (the band has only black on orange): frame 3px, a "!" mark and the
   message under the field. Input text 18px (iOS Safari zooms into fields below 16px).
   Two columns once the form is 560px wide (container query); paired fields are subgrids, so the
   two inputs of a row line up even when one label wraps ("Telefon (optional, …)").
   Without JS the browser validates (required, minlength, type, pattern) and the Worker answers
   with 303 to /anfrage-gesendet or /anfrage-fehler. site.js section 7 handles the rest. */
.contact-form { container: kform / inline-size; }
.kform { position: relative; }
.kf-fields { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--g); }
.kf-field { display: grid; align-content: start; min-width: 0; margin-top: 26px; }
.kf-field:first-child { margin-top: 0; }
.kf-label { padding-bottom: 8px; font-size: var(--fs-body); line-height: 1.35; font-weight: 500; color: var(--on-orange); }
.kf-opt { font-weight: 400; }
.kf-hint { margin-top: -4px; padding-bottom: 10px; font-size: var(--fs-small); line-height: 1.45; color: var(--on-orange); }
.kf-input {
  display: block; width: 100%; min-width: 0; min-height: 56px; margin: 0; padding: 0 15px;
  font: inherit; font-size: 18px; line-height: 1.45; letter-spacing: -.005em; color: var(--on-orange);
  background: transparent; border: 1.5px solid var(--on-orange); border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
textarea.kf-input { min-height: 176px; padding-block: 13px; resize: vertical; }
.kf-input:focus-visible { outline-offset: 2px; }
/* 3px frame, padding shrinks by the same 1.5px: the text does not move */
.kf-input[aria-invalid="true"] { border-width: 3px; padding-inline: 13.5px; }
textarea.kf-input[aria-invalid="true"] { padding-block: 11.5px; }
/* Chrome and Safari paint autofilled fields light blue/yellow, which reads as a box on the orange
   band; a full-size inset fill in the band colour paints over it (a fill, not a shadow) */
.kf-input:-webkit-autofill { -webkit-box-shadow: inset 0 0 0 100vmax var(--orange); -webkit-text-fill-color: var(--on-orange); caret-color: var(--on-orange); }
.kf-input:autofill { box-shadow: inset 0 0 0 100vmax var(--orange); -webkit-text-fill-color: var(--on-orange); }
/* the message is ordinary flowing text (no flex: site.js wraps "E-Mail" in span.nobr, and in a flex
   box that span would become a column of its own); the "!" mark sits in the 30px left padding */
.kf-err { position: relative; margin-top: 10px; padding-left: 30px; font-size: var(--fs-small); line-height: 1.4; font-weight: 500; color: var(--on-orange); }
.kf-err::before {
  content: "!"; content: "!" / ""; position: absolute; left: 0; top: .05em; display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--on-orange); color: var(--orange); font-size: 15px; line-height: 1; font-weight: 700;
}
/* honeypot: in the HTML for bots that fill every field, not rendered for people. display: none
   rather than a 1px clip, because password managers and AutoFill may fill a rendered field named
   "website", and the Worker would then drop a real enquiry as spam */
.kf-hp { display: none; }
.kf-send { margin-top: 32px; }
.kf-submit[aria-disabled="true"] { cursor: progress; }
.kf-submit[aria-disabled="true"] .i { visibility: hidden; }
@media (hover: hover) { .contact .kf-submit[aria-disabled="true"]:hover { background: var(--on-orange); border-color: var(--on-orange); color: #fff; } }
/* live region: always rendered so screen readers announce changes; takes no room while empty */
.kf-status:not(:empty) { margin-top: 24px; font-size: var(--fs-body); line-height: 1.5; color: var(--on-orange); max-width: 36em; }
.kf-status.is-quiet { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* a problem with sending: the 3px rule of the site's highlighted blocks (.legal-highlight) */
.kf-status.is-error { padding: 2px 0 4px 18px; border-left: 3px solid var(--on-orange); }
.kf-status a, .kf-privacy a { color: var(--on-orange); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; overflow-wrap: anywhere; }
.kf-status a { font-weight: 500; white-space: nowrap; }
@media (hover: hover) { .kf-status a:hover, .kf-privacy a:hover { text-decoration-thickness: 2px; } }
.kf-privacy { margin-top: 20px; font-size: var(--fs-body); line-height: 1.5; color: var(--on-orange); max-width: 36em; text-wrap: balance; }
/* success: replaces the form in place and takes the focus */
.kf-done { padding-top: clamp(16px, 1.4vw, 20px); border-top: 1px solid var(--on-orange); color: var(--on-orange); }
.kf-done-title { display: flex; align-items: baseline; gap: .32em; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -.035em; font-weight: 500; color: var(--on-orange); }
.kf-done-title .i { width: .74em; height: .74em; stroke-width: 2; transform: translateY(.08em); }
.kf-done p { margin-top: 12px; max-width: 34em; font-size: var(--fs-body); line-height: 1.55; }
.kf-done .kf-done-lede { margin-top: clamp(14px, 1.6vw, 22px); font-size: var(--fs-lede); line-height: 1.45; letter-spacing: -.01em; }
@media (max-width: 699px) {
  .kf-submit { width: 100%; }
}
@container kform (min-width: 560px) {
  .kf-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kf-field--wide { grid-column: 1 / -1; }
  .kf-field:not(.kf-field--wide) { grid-row: span 3; grid-template-rows: subgrid; }
  .kf-field:not(.kf-field--wide) > .kf-label { align-self: end; }
}
@media (min-width: 1100px) {
  .kf-input { min-height: 58px; }
}

/* ---------- 14. Footer ---------- */
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 32px; padding-block: 22px 28px; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
@media (max-width: 699px) {
  .footer-brand { align-items: flex-start; }
  .f-sep { display: none; }
  .f-place { display: block; }
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.footer-links a:hover { background-size: 100% 1px; }
.page-sub .site-footer { margin-top: var(--s-section); }
/* the footer rule stops at the content margins like every other hairline (.footer-inner is the .wrap) */
.page-sub .footer-inner { background: linear-gradient(var(--rule), var(--rule)) var(--m) 0 / calc(100% - 2 * var(--m)) 1px no-repeat; }

/* ---------- 15. Legal pages and 404 ---------- */
.page-head { padding-top: clamp(40px, 6vw, 88px); }
.legal { color: var(--graphite); }
.legal h1, .nf-title { font-size: clamp(40px, 6.4vw, 92px); line-height: .98; letter-spacing: -.045em; font-weight: 450; color: var(--ink); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.legal section { margin-top: clamp(36px, 4vw, 56px); padding-top: 20px; border-top: 1px solid var(--rule); max-width: 46rem; }
.legal h1 + section { margin-top: clamp(44px, 5vw, 72px); border-top-color: var(--ink); }
/* no automatic hyphenation on legal h2: together with text-wrap: balance, Chrome hyphenates headings that
   would fit unbroken ("Verschlüssel-te") just to even out line lengths. Two targeted exceptions, by fragment id:
   "Verbraucherstreitbeilegung" is too long for the margin column at 1100-1180px and may hyphenate there;
   balance would split "E-Mail" at its hard hyphen, so the two headings with "E-Mail(s)" wrap with pretty instead */
.legal h2 { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -.018em; font-weight: 550; color: var(--ink); text-wrap: balance; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; }
#impressum-streitbeilegung > h2 { hyphens: auto; -webkit-hyphens: auto; }
#ds-kontakt > h2, #ds-ki > h2 { text-wrap: pretty; }
/* 35em ≈ 630px at 18px ≈ 70 characters per line (Geist's ch is wide, 68ch came out at ~87) */
.legal p, .legal address, .legal ul { margin-top: 14px; max-width: 35em; }
.legal h2 + p, .legal h2 + address, .legal h2 + ul { margin-top: 12px; }
.legal li { position: relative; padding-left: 22px; margin-top: 6px; }
.legal li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 10px; height: 1px; background: var(--graphite); }
.legal a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; overflow-wrap: anywhere; }
.legal a:hover { color: var(--orange-ink); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .legal-highlight { background: var(--plate); border-top: 0; border-left: 3px solid var(--ink); padding: 22px clamp(18px, 3vw, 32px) 26px; }
@media (min-width: 1100px) {
  .legal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
  .legal > * { grid-column: 1 / -1; }
  .legal h1 { grid-column: 1 / 11; }
  .legal section { grid-column: 1 / 11; max-width: none; display: grid; grid-template-columns: subgrid; align-items: start; }
  .legal section > * { grid-column: 4 / 11; }
  .legal section > h2 { grid-column: 1 / 4; padding-right: 24px; font-size: 20px; line-height: 1.3; margin-top: .1em; }
  .legal section > h2 + * { margin-top: 0; }
  .legal section > h2 + * ~ * { margin-top: 14px; }
  .legal section > ul > li:first-child { margin-top: 0; }
  .legal .legal-highlight { padding-left: 0; padding-right: 0; border-left: 0; position: relative; }
  .legal .legal-highlight::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ink); }
  .legal .legal-highlight > h2 { padding-left: 28px; }
  .legal .legal-highlight > :not(h2) { padding-right: 32px; }
}

.nf { padding-bottom: clamp(24px, 4vw, 48px); }
.nf .sec-label { margin-bottom: 18px; }
.nf .lede { margin-top: clamp(24px, 3vw, 36px); max-width: 33em; color: var(--graphite); }
.nf-note { margin-top: 18px; max-width: 40em; }
.nf-note a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.nf-note a:hover { color: var(--orange-ink); }
.nf-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 14px; }
@media (max-width: 699px) { .nf-actions { display: grid; } .nf-actions .btn { width: 100%; } }
@media (min-width: 1100px) {
  .nf { grid-column: 1 / 9; }
}

/* ---------- 16. Motion (only with prefers-reduced-motion: no-preference) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .btn .i, .tlink .i { transition: transform .45s var(--ease); }
  .btn:hover .i { transform: translateX(3px); }
  .tlink:hover .i { transform: translateY(2px); }

  .hero-eyebrow { animation: fade .9s var(--ease) both; }
  /* one animation name at every width: a width-dependent name would restart on resize */
  .hero-title .ln { overflow: hidden; padding: .08em 0 .14em; margin: -.08em 0 -.14em; }
  .hero-title .ln > span { animation: rise 1.05s var(--ease) both; }
  .hero-title .ln:nth-child(2) > span { animation-delay: .07s; }
  .hero-title .ln:nth-child(3) > span { animation-delay: .14s; }
  .hero-title .ln:nth-child(4) > span { animation-delay: .21s; }
  .hero-body { animation: lift 1s var(--ease) .32s both; }
  .hero-foot { animation: fade 1s var(--ease) .5s both; }

  .inv.is-sweep .inv-l::before { animation: lead-line 1.5s var(--ease) both; animation-delay: calc(var(--n, 0) * 120ms + .1s); }
  .inv.is-sweep .inv-l::after { animation: lead-dot 1.5s var(--ease) both; animation-delay: calc(var(--n, 0) * 120ms + .1s); }

  @supports (animation-timeline: view()) {
    .sec-head::before { animation: draw linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
  }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lift { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translate3d(0, 108%, 0); } to { transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lead-line { 0%, 100% { background-color: var(--ink); opacity: .3; } 30%, 55% { background-color: var(--orange); opacity: 1; } }
@keyframes lead-dot { 0%, 100% { background-color: var(--ink); } 30%, 55% { background-color: var(--orange); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 17. Without JavaScript (mirrored in a <noscript> style in each page) ---------- */
@media (scripting: none) {
  .menu-toggle, .copy, [data-countdown] { display: none !important; }
}
@media (scripting: none) and (max-width: 999px) {
  .site-header { position: relative; }
  .header-inner { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding-block: 10px; row-gap: 4px; }
  .nav { display: block; width: 100%; order: 3; }
  .nav ul { flex-wrap: wrap; gap: 0 22px; }
}

/* ---------- 18. Print ---------- */
@media print {
  .site-header, .menu, .skip, .hero-actions, .copy, .kform, .kf-done { display: none !important; }
  .contact { background: none; }
  body { font-size: 12pt; }
}
