/* ==========================================================================
   belirog.de — Startseite
   Visual authority: DESIGN.md ("Design System: Marvin Arnold — belirog.de")
   Tokens below are the normative frontmatter values from that file.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Primary — Cool Blue */
  --primary-50:#ECF3FE; --primary-100:#D6E6FC; --primary-200:#AECFF9;
  --primary-300:#7FB0F1; --primary-400:#4F8EE6; --primary-500:#2470D4;
  --primary-600:#175CB8; --primary-700:#124A96; --primary-800:#103C77;
  --primary-900:#0E2F5B;

  /* Secondary — Quiet Teal */
  --teal-100:#C6F2ED; --teal-300:#57D2C6; --teal-500:#0E9B92;
  --teal-600:#0B7E78; --teal-700:#0C6560;

  /* Tertiary — Signature Violet */
  --violet-100:#E0DAF7; --violet-500:#6246C4; --violet-600:#4F38A6;
  --violet-700:#402E86;

  /* Neutrals */
  --neutral-0:#FFFFFF;  --neutral-50:#F7F9FC;  --neutral-100:#EFF2F7;
  --neutral-200:#E1E6EE; --neutral-300:#CBD3DF; --neutral-400:#9AA5B5;
  --neutral-500:#616B7C; --neutral-600:#4C5567; --neutral-700:#363E4D;
  --neutral-800:#232A36; --neutral-900:#141922;

  /* Semantic */
  --success-500:#1F9D57; --warning-500:#E8A317; --error-600:#C4302F;

  /* Roles */
  --text-primary:#1A2230;
  --text-secondary:#4C5567;
  --text-muted:#616B7C;
  --link:#124A96;
  --border:#E1E6EE;
  --border-strong:#CBD3DF;
  --surface:var(--neutral-0);
  --paper:var(--neutral-50);
  --ink:var(--neutral-900);

  /* On dark */
  --onDark-text:#CBD3DF;
  --onDark-kicker:#8FD6E6;

  /* Signature gradient — exact stops, per DESIGN.md's Signature Gradient Rule */
  --brand-gradient:linear-gradient(90deg,#5A4BC4 0%,#2C6FD4 52%,#12B5CE 100%);
  --brand-gradient-135:linear-gradient(135deg,#5A4BC4 0%,#2C6FD4 50%,#12B5CE 100%);

  /* Type */
  --font-display:"Space Grotesk","Segoe UI",system-ui,sans-serif;
  --font-body:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --font-mono:"JetBrains Mono","SFMono-Regular",Consolas,monospace;

  /* Space */
  --space-1:4px;  --space-2:8px;  --space-3:12px; --space-4:16px;
  --space-5:20px; --space-6:24px; --space-8:32px; --space-10:40px;
  --space-12:48px; --space-16:64px; --space-18:72px; --space-24:96px;

  /* Shape */
  --radius-sm:6px; --radius-md:10px; --radius-lg:14px;
  --radius-xl:20px; --radius-pill:999px;

  /* Elevation */
  --shadow-sm:0 2px 6px rgba(16,24,40,.07);
  --shadow-md:0 6px 16px rgba(16,24,40,.09);
  --shadow-lg:0 16px 32px rgba(16,24,40,.11);
  /* Focus is a solid outline, not a translucent glow — see .btn:focus-visible.
     The styleguide's --shadow-focus composited below 2:1 and is not used. */

  /* Motion */
  --ease:cubic-bezier(.2,.8,.2,1);
  --dur:.18s;

  /* Layout */
  --wrap:1120px;
  --gutter:24px;
  /* Sticky chrome. --head-h is the header’s 72px min-height plus its 1px
     hairline; --jump-h is the Leistungen jump bar. Every anchor measures its
     scroll-margin from the sum, so both live here rather than in two places
     that can drift apart. */
  --head-h:73px;
  --jump-h:48px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing:border-box; }

html {
  scroll-behavior:smooth;
  /* The sticky header's own clearance, valid on every page. Leistungen's
     jump bar adds its own incremental clearance via scroll-margin-top on
     its targets rather than a second scroll-padding-top here — the two
     compose (they don't override each other), so stacking a page-specific
     value on top of this one would double-count the header. */
  scroll-padding-top:var(--head-h);
  -webkit-text-size-adjust:100%;
}

body {
  margin:0;
  font-family:var(--font-body);
  font-size:1rem;
  line-height:1.6;
  color:var(--text-primary);
  background:var(--surface);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-feature-settings:"cv05" 1;   /* Inter: single-storey l disambiguation */
}

h1, h2, h3, h4 {
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.15;
  margin:0;
  text-wrap:balance;
}

/* German compounds are long: give every text block wrap safety.
   lang="de" on <html> drives the hyphenation dictionary. */
h1, h2, h3, h4, p, li { overflow-wrap:break-word; }
p, li, .hero__sub { hyphens:auto; }

p { margin:0 0 var(--space-3); }
p:last-child { margin-bottom:0; }

ul, ol { margin:0; padding:0; list-style:none; }
dl, dt { margin:0; }

img, svg, canvas { display:block; max-width:100%; }

a { color:var(--link); }

/* --- Browser surfaces: theme what we didn't draw ------------------------- */
::selection { background:var(--primary-200); color:var(--primary-900); }

:root { accent-color:var(--primary-600); caret-color:var(--primary-600); }

@supports (scrollbar-color: auto) {
  html { scrollbar-color:var(--neutral-300) var(--neutral-50); }
}
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width:12px; height:12px; }
  ::-webkit-scrollbar-track { background:var(--neutral-50); }
  ::-webkit-scrollbar-thumb {
    background:var(--neutral-300);
    border:3px solid var(--neutral-50);
    border-radius:var(--radius-pill);
  }
  ::-webkit-scrollbar-thumb:hover { background:var(--neutral-400); }
}

:focus-visible {
  outline:2px solid var(--primary-500);
  outline-offset:3px;
}

.skip {
  position:absolute; left:var(--gutter); top:-100px; z-index:100;
  background:var(--primary-600); color:#fff;
  padding:var(--space-3) var(--space-5);
  border-radius:var(--radius-md); font-weight:600; font-size:.9375rem;
  text-decoration:none;
  transition:top var(--dur) var(--ease);
}
.skip:focus { top:var(--space-3); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width:100%;
  max-width:var(--wrap);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

.blk { padding-block:var(--space-18); background:var(--surface); }
.blk--paper { background:var(--paper); border-block:1px solid var(--border); }

/* --------------------------------------------------------------------------
   4. Typography components
   -------------------------------------------------------------------------- */
/* Mono label — DESIGN.md's recurring technical-detail signature.
   Pinned by the brief; the `//` prefix is drawn, not typed into the copy. */
.kicker {
  font-family:var(--font-mono);
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--primary-700);
  margin:0 0 var(--space-3);
  line-height:1.5;
  max-width:62ch;
}
.kicker::before { content:"// "; color:var(--primary-600); }

.kicker--onDark { color:var(--onDark-kicker); }
.kicker--onDark::before { color:var(--teal-500); }

.sec-head { max-width:44rem; margin-bottom:var(--space-12); }
.sec-head h2 { font-size:clamp(1.625rem,3.4vw,1.875rem); letter-spacing:-.01em; }
.sec-head__intro {
  margin-top:var(--space-4);
  font-size:1.125rem;
  color:var(--text-secondary);
  max-width:60ch;
}
.lede { font-size:1.125rem; color:var(--text-primary); }

.sec-more { margin-top:var(--space-10); }

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:var(--space-2);
  font-family:var(--font-body); font-weight:600; font-size:.9375rem; line-height:1;
  padding:12px 20px;
  border:1px solid transparent;
  border-radius:var(--radius-md);
  text-decoration:none;
  cursor:pointer;
  transition:background var(--dur) var(--ease),
             border-color var(--dur) var(--ease),
             color var(--dur) var(--ease),
             box-shadow var(--dur) var(--ease),
             filter var(--dur) var(--ease),
             transform var(--dur) var(--ease);
}
/* Solid ring, not the translucent glow: the glow composited to ~1.7:1 on
   white and vanished on the dark grounds. Light ring on dark surfaces. */
.btn:focus-visible {
  outline:2px solid var(--primary-500);
  outline-offset:3px;
  box-shadow:none;
}
.hero .btn:focus-visible,
.closing .btn:focus-visible { outline-color:#fff; }
.btn:active { transform:translateY(1px); }

.btn--lg { padding:15px 26px; font-size:1rem; }
.btn--block { display:flex; width:100%; }

.btn--primary { background:var(--primary-600); color:#fff; }
.btn--primary:hover { background:var(--primary-700); }

.btn--secondary { background:var(--surface); color:var(--ink); border-color:var(--border-strong); }
.btn--secondary:hover { background:var(--paper); border-color:var(--neutral-400); }

.btn--gradient { background:var(--brand-gradient-135); color:#fff; }
.btn--gradient:hover { filter:brightness(.94); }

/* Text is --text-muted, not the styleguide's --neutral-400: that pairing
   computes ~1.7:1 on --neutral-200 and is unreadable. This one is a
   deliberate deviation from the inherited disabled spec. */
.btn[aria-disabled="true"],
.btn:disabled {
  background:var(--neutral-200); color:var(--text-muted);
  cursor:not-allowed; pointer-events:none;
}

.textlink {
  display:inline-flex; align-items:baseline; gap:var(--space-2);
  font-weight:600; font-size:.9375rem;
  color:var(--link); text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.textlink:hover { color:var(--primary-500); border-bottom-color:currentColor; }
.textlink__arrow {
  display:inline-block;
  transition:transform var(--dur) var(--ease);
}
.textlink:hover .textlink__arrow { transform:translateX(3px); }

.textlink--onDark { color:#fff; }
.textlink--onDark:hover { color:var(--onDark-kicker); }

/* --------------------------------------------------------------------------
   5b. Deferred / placeholder affordances
   Everything the brief left open is marked ON SCREEN, not only in comments:
   the visitor (and the client reviewing this build) can see what is not
   wired up yet. Delete this block once the targets exist.
   -------------------------------------------------------------------------- */
[data-placeholder-target] {
  text-decoration:underline dotted var(--border-strong);
  text-underline-offset:4px;
}
[data-placeholder-target]::after {
  content:"in Arbeit";
  display:inline-block;
  margin-left:var(--space-2);
  padding:1px 6px;
  border:1px solid var(--border-strong);
  border-radius:var(--radius-sm);
  font-family:var(--font-mono);
  font-size:.6875rem; font-weight:500;
  letter-spacing:.06em;
  color:var(--text-muted);
  text-transform:none;
  vertical-align:1px;
}
.site-foot [data-placeholder-target]::after {
  border-color:var(--neutral-700);
  color:var(--neutral-400);
}

/* Deferred terminal CTA: keeps the design's weight, refuses to pretend. */
/* Scrim the pill, never the label: an inset shadow paints over the gradient
   but under the text, so "inactive" does not mean "unreadable".
   Selector must out-specify `.btn[aria-disabled="true"]` below, which would
   otherwise repaint this as a flat neutral chip at ~1.7:1. */
.btn.btn--pending[aria-disabled="true"] {
  cursor:not-allowed;
  background:var(--brand-gradient-135);
  box-shadow:inset 0 0 0 999px rgba(20,25,34,.55);
  color:#fff;
  filter:none;
}

.pending-note {
  display:flex; align-items:center; justify-content:center; gap:var(--space-2);
  margin-top:var(--space-4);
  font-family:var(--font-mono);
  font-size:.75rem; letter-spacing:.04em;
  color:var(--neutral-400);
}
.pending-note__tag {
  padding:1px 6px;
  border:1px solid var(--neutral-700);
  border-radius:var(--radius-sm);
  font-weight:500;
  color:var(--neutral-300);
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.site-head {
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(1.4) blur(10px);
  border-bottom:1px solid var(--border);
}
@supports not (backdrop-filter:blur(10px)) {
  .site-head { background:var(--surface); }
}

.site-head__in {
  display:flex; align-items:center; gap:var(--space-8);
  min-height:72px;
}

.wordmark {
  font-family:var(--font-display);
  font-weight:600; font-size:1.125rem; letter-spacing:-.01em;
  color:var(--ink); text-decoration:none;
  white-space:nowrap;
  margin-right:auto;
}
.wordmark--onDark { color:#fff; }

.site-nav ul { display:flex; align-items:center; gap:var(--space-6); }
.site-nav a {
  font-size:.9375rem; font-weight:500;
  color:var(--text-secondary); text-decoration:none;
  padding-block:var(--space-2);
  border-bottom:1px solid transparent;
  transition:color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-nav a:hover { color:var(--ink); border-bottom-color:var(--border-strong); }
.site-nav a[aria-current="page"] { color:var(--ink); }

.navtoggle {
  display:none;
  width:44px; height:44px;
  align-items:center; justify-content:center;
  flex-direction:column; gap:5px;
  background:none; border:1px solid var(--border);
  border-radius:var(--radius-md); cursor:pointer;
}
/* Mobile's own stand-in for the header CTA — hidden until the desktop one
   hides, so the two are never both in the DOM's visible flow at once. */
.site-head__cta--mobile { display:none; }
.navtoggle__bar {
  display:block; width:18px; height:1.5px; background:var(--ink);
  transition:transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.navtoggle[aria-expanded="true"] .navtoggle__bar:first-child { transform:translateY(3.25px) rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__bar:last-child  { transform:translateY(-3.25px) rotate(-45deg); }

.mobilnav {
  border-top:1px solid var(--border);
  padding:var(--space-4) var(--gutter) var(--space-6);
  background:var(--surface);
}
.mobilnav ul { margin-bottom:var(--space-4); }
.mobilnav a:not(.btn) {
  display:block;
  padding:var(--space-3) 0;
  font-size:1rem; font-weight:500;
  color:var(--text-primary); text-decoration:none;
  border-bottom:1px solid var(--border);
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position:relative; isolation:isolate; overflow:hidden;
  background:var(--ink);
  padding-block:var(--space-24) var(--space-24);
}
.hero__mesh {
  position:absolute; inset:0; z-index:-2;
  width:100%; height:100%;
  opacity:.62;
}
/* Vignette holds the text column dark while letting the mesh open up to the
   right — heavy enough for contrast, light enough that the field reads as
   a made material rather than noise. */
.hero::after {
  content:""; position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(100deg, rgba(20,25,34,.95) 0%, rgba(20,25,34,.88) 34%, rgba(20,25,34,.46) 72%, rgba(20,25,34,.24) 100%),
    radial-gradient(110% 75% at 10% 34%, rgba(20,25,34,.55), transparent 68%);
}

.hero__in { position:relative; }

.hero__title {
  font-size:clamp(2.125rem,5.4vw,3.25rem);
  letter-spacing:-.025em;
  line-height:1.08;
  color:#fff;
  max-width:17ch;
  margin-bottom:var(--space-5);
}
.hero__sub {
  font-size:clamp(1rem,1.6vw,1.125rem);
  color:var(--onDark-text);
  max-width:62ch;
  margin-bottom:var(--space-10);
}
.hero__actions {
  display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-6);
}

/* --------------------------------------------------------------------------
   8. Andocken
   -------------------------------------------------------------------------- */
/* Section becomes the positioning context for its dot ground. */
.andocken { position:relative; isolation:isolate; overflow:hidden; }

/* Measurement dot lattice — the section's ground. Tiled from a single-dot
   SVG in one exact styleguide hex (#CBD3DF); the 8% is carried here so the
   asset itself stays a pure, reusable value. */
.andocken__grid {
  position:absolute; inset:0; z-index:-1;
  background:url("../img/dot-grid.svg") repeat;
  opacity:.08;
}

/* Single column: eyebrow → headline → rule → chips → one paragraph.
   Nothing sticky here any more; the block reads top to bottom as one unit. */

/* One h2 step, not a bespoke one: uses the documented section-heading clamp. */
.andocken__title {
  font-size:clamp(1.625rem,3.4vw,1.875rem);
  letter-spacing:-.01em;
}

/* One paragraph, one size, one colour. The two former blocks disagreed —
   1.125rem/text-primary against 1rem/text-secondary — and the merge settles
   on the lede step in secondary, the pairing section intros already use. */
.andocken__text {
  font-size:1.125rem;
  color:var(--text-secondary);
  max-width:720px;
  margin-bottom:0;
}
/* The base 12px paragraph gap is too tight under 1.125rem copy. */
.andocken__text + .andocken__text { margin-top:var(--space-5); }
/* Weight only: no colour shift, so the emphasis stays inside the paragraph
   rather than reading as a link. */
.andocken__text strong {
  font-weight:600;
  color:inherit;
}

/* Pain-point chips — the badge recipe in its teal variant, opened up from
   3px/10px to seat a 16px icon. Teal-deep on teal-soft computes 5.6:1.
   Full section width, wrapping onto as many rows as the labels need. */
.chips {
  display:flex; flex-wrap:wrap; gap:var(--space-2);
  margin:var(--space-10) 0 var(--space-8);
}
.chip {
  display:inline-flex; align-items:center; gap:var(--space-2);
  padding:6px 12px;
  border-radius:var(--radius-sm);
  background:var(--teal-100);
  color:var(--teal-700);
  font-size:.875rem; font-weight:500;
  line-height:1.3;
}
.chip svg {
  width:16px; height:16px; flex-shrink:0;
  /* stroke 2 on a 24 viewBox rendered at 16px lands on the same ~1.4px
     optical weight as the 1.5-stroke icons drawn at 22px elsewhere */
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.cards { display:grid; gap:var(--space-6); }

.card {
  position:relative; overflow:hidden;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:var(--space-8);
  box-shadow:var(--shadow-sm);
  transition:box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
/* Signature card: 3px gradient top bar */
.card::before {
  content:""; position:absolute; inset-block-start:0; inset-inline:0;
  height:3px; background:var(--brand-gradient);
}
.card:hover { box-shadow:var(--shadow-md); border-color:var(--border-strong); }

.card h3 {
  font-size:1.25rem;
  letter-spacing:-.005em;
  margin-bottom:var(--space-3);
}
.card p { color:var(--text-secondary); font-size:.9375rem; }

/* --- Services: icon tile + 2×2 grid ------------------------------------- */
.cards--services { grid-template-columns:repeat(2,minmax(0,1fr)); }

.card__ic {
  display:flex; align-items:center; justify-content:center;
  width:44px; height:44px;
  border-radius:var(--radius-md);
  background:var(--primary-50);
  color:var(--primary-600);
  margin-bottom:var(--space-5);
}
.card__ic svg { width:22px; height:22px; }

/* --------------------------------------------------------------------------
   9b. Referenzen — un-boxed editorial entries
   Proof is NOT the service card. No container, no shadow, no radius: three
   columns separated by the world's own hairline rule. This is what keeps
   service / proof / terms / process four shapes instead of one.
   -------------------------------------------------------------------------- */
.worklist {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  /* Opens and closes: the set is bounded, not trailing off. */
  border-top:1px solid var(--border-strong);
  border-bottom:1px solid var(--border-strong);
}
.work {
  padding:var(--space-8) var(--space-8) var(--space-8) 0;
}
.work + .work {
  padding-left:var(--space-8);
  border-left:1px solid var(--border);
}
.work h3 {
  font-size:1.25rem;
  letter-spacing:-.005em;
  margin-bottom:var(--space-4);
  max-width:22ch;
}
.work p { color:var(--text-secondary); font-size:.9375rem; }

/* --- Companion imagery: case schematics -------------------------------
   Each column's diagram draws that case's own topology. Held under the
   copy in weight per the Restrained Imagery Rule: 1px strokes, no fills,
   palette values only. Never the loudest thing in the column. */
.work__dia {
  width:100%; max-width:240px; height:auto;
  margin-bottom:var(--space-5);
  overflow:visible;
}
.dia-line, .dia-node {
  fill:none;
  stroke:var(--primary-600);
  stroke-width:1;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.dia-line { stroke:var(--neutral-400); }
.dia-line--dashed { stroke-dasharray:3 4; }
.dia-node--fade  { opacity:.55; }
.dia-node--faint { opacity:.25; }
.dia-dot { fill:var(--teal-600); stroke:none; }
.dia-dot--alt { fill:var(--violet-500); }

/* --------------------------------------------------------------------------
   10. Abrechnung
   -------------------------------------------------------------------------- */
.terms__head { max-width:44rem; margin-bottom:var(--space-10); }
.terms__head h2 { font-size:clamp(1.625rem,3.4vw,1.875rem); letter-spacing:-.01em; }
/* Was a single four-word line at weight 500; now carries the section's whole
   intro, so it takes the same treatment as every other section intro rather
   than reading as one long emphasised sentence. */
.terms__lede {
  margin-top:var(--space-4);
  font-size:1.125rem;
  color:var(--text-secondary);
  max-width:60ch;
}

/* A tinted fork — the third shape. Not a card (no border, no shadow, no
   white fill) and not the proof columns (no hairline divider): a colour
   field split by the word the headline already used. */
.terms__fork {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  /* start, not center: the two option labels must share a baseline even
     though the two option texts run to different lengths */
  align-items:start;
  gap:var(--space-8);
  background:var(--primary-50);
  border-radius:var(--radius-lg);
  padding:var(--space-10) var(--space-12);
}
.terms__opt { padding:0; }
.terms__or {
  align-self:center;
  font-family:var(--font-display);
  font-size:1.125rem; font-weight:500;
  color:var(--primary-600);
  padding:0 var(--space-2);
  position:relative;
}
.terms__or::before,
.terms__or::after {
  content:""; position:absolute; left:50%;
  width:1px; height:var(--space-8);
  background:var(--primary-200);
}
.terms__or::before { bottom:calc(100% + var(--space-3)); }
.terms__or::after  { top:calc(100% + var(--space-3)); }
.terms__optLabel {
  font-family:var(--font-mono);
  font-size:.75rem; font-weight:600;
  letter-spacing:.12em; text-transform:uppercase;
  color:var(--teal-700);
  margin-bottom:var(--space-3);
}
.terms__opt p:not(.terms__optLabel) { color:var(--text-secondary); font-size:.9375rem; }
.terms__fork .terms__optLabel { color:var(--primary-700); }
.terms__fork .terms__opt p:not(.terms__optLabel) { color:var(--text-secondary); }

/* --------------------------------------------------------------------------
   11. Ablauf
   -------------------------------------------------------------------------- */
/* Spans the wrap like the services grid and the trust row. The old 960px
   centred cap suited a centred header; under a left-aligned one it started
   80px inside the headline and read as a misalignment. */
.steps {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  gap:var(--space-10);
}
.step {
  position:relative;
  /* room for the marker that sits above the text */
  padding-top:calc(34px + var(--space-6));
}
.step__num {
  position:absolute; top:0; left:0;
  z-index:1;
  display:flex; align-items:center; justify-content:center;
  width:34px; height:34px;
  border-radius:var(--radius-pill);
  background:var(--primary-600); color:#fff;
  font-family:var(--font-mono); font-size:.8125rem; font-weight:500;
  font-variant-numeric:tabular-nums;
}
.step__title {
  font-size:1.125rem;
  margin-bottom:var(--space-3);
  /* Deliberately uncapped. The title was never narrower than the copy — it
     had no max-width at all; `text-wrap:balance` was evening out the two
     lines of a long title instead of filling the first, which is what read
     as a premature wrap. `pretty` fills the line and only guards orphans.

     A literal 34ch cap to match the copy would be worse than the bug: the
     copy's 34ch is 322px at 15px, while titles 2 and 3 need 324-326px at
     18px, so matching the caps forces both onto two lines. Uncapped, the
     column is the constraint, and the column is always at least the copy's
     measure — so the title can never be the narrower of the two. */
  text-wrap:pretty;
}
.step p {
  color:var(--text-secondary); font-size:.9375rem;
  max-width:34ch;
  text-wrap:pretty;   /* keeps a short last line from stranding one word */
}

/* --------------------------------------------------------------------------
   12. Über mich
   -------------------------------------------------------------------------- */
.about__in {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,17rem);
  gap:var(--space-16);
  align-items:start;
}
.about__text h2 {
  font-size:clamp(1.625rem,3.4vw,1.875rem);
  letter-spacing:-.01em;
  margin-bottom:var(--space-5);
}
/* :not(.kicker) — without it this rule outranks .kicker and the eyebrow
   renders as 18px body copy instead of a 12px mono label. */
.about__text p:not(.kicker) { max-width:62ch; color:var(--text-secondary); font-size:1.125rem; }

.portrait { margin:0; }
.portrait__frame {
  position:relative; overflow:hidden;
  aspect-ratio:4 / 5;
  border:1px solid var(--border-strong);
  border-radius:var(--radius-lg);
  background:var(--paper);
  display:flex; align-items:flex-end;
}
/* No gradient bar here: it made an empty panel read as a service card whose
   image failed to load. A reserved slot should look reserved, not broken. */
/* Quiet tonal fill — an intentional empty frame, not a broken image */
.portrait__grid {
  position:absolute; inset:0;
  background:linear-gradient(160deg, var(--neutral-100) 0%, var(--paper) 60%);
}
.portrait__cap {
  position:relative;
  width:100%;
  padding:var(--space-4) var(--space-5);
  font-family:var(--font-mono);
  font-size:.6875rem; font-weight:500;
  letter-spacing:.12em; text-transform:uppercase;
  color:var(--text-muted);
  border-top:1px solid var(--border);
  background:var(--surface);
}

/* --------------------------------------------------------------------------
   13. Vertrauens-Zeile
   -------------------------------------------------------------------------- */
/* Coda under a content band, shared by the homepage (between the Leistungen
   overview and Ablauf) and Leistungen itself (mid-price, between the
   retainer tiers and the fixed packages — see "Betreuung & Preise" for why
   that section is split in two around it). Takes the third step of the
   neutral band ladder (white → neutral-50 paper → neutral-100) rather than
   `surface`, which would leave it indistinguishable from the band above it.

   Neutral, not Cool Blue Soft: `#ECF3FE` measures the same separation here,
   but it is the system's device tint — the service-card icon tiles and the
   whole tinted-fork ground. Bands stay neutral so the tint keeps marking
   devices, and the fork stays the page's one tinted field.

   Both hairlines are the trust row's own by default, suppressed on
   whichever side already borders a paper band, so the seam never doubles to
   2px: `.blk--paper + .trust` drops the top, `.trust + .blk--paper` drops
   the bottom. On the homepage only the top needs its own line (the
   following band is paper); on Leistungen neither neighbour is paper, so
   both of the trust row's own hairlines show. */
.trust {
  padding-block:var(--space-12);
  background:var(--neutral-100);
  border-block:1px solid var(--border);
}
.trust__list {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  gap:var(--space-8);
}
.trust__item { display:flex; gap:var(--space-4); align-items:flex-start; }
.trust__ic {
  flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  width:34px; height:34px;
  border-radius:var(--radius-md);
  background:var(--teal-100);
  color:var(--teal-700);
}
.trust__ic svg { width:19px; height:19px; }
.trust__title {
  font-family:var(--font-body);
  font-size:.9375rem; font-weight:600;
  line-height:1.45;
  color:var(--text-primary);
  margin-bottom:var(--space-1);
}
/* Columns are ~340px and the words are not extreme compounds, so auto
   hyphenation only produced ugly breaks ("DSGVO-konfor-men"); the lines
   fit whole without it. */
.trust__item p { font-size:.875rem; color:var(--text-muted); hyphens:manual; }

/* --------------------------------------------------------------------------
   14. Abschluss
   -------------------------------------------------------------------------- */
/* Signature Gradient Rule: the hero mesh is the page's one large gradient
   moment. Here the gradient is a restrained top band, not a full-bleed field. */
.closing {
  position:relative; isolation:isolate; overflow:hidden;
  background:var(--ink);
  padding-block:var(--space-24);
  text-align:center;
}
/* Mesh Echo — static, ≤8% opacity, behind everything. Closes the page on
   the material the hero opened with without competing for attention. */
.closing__echo {
  position:absolute; inset:0; z-index:-1;
  background:url("../img/mesh-echo.svg") center/cover no-repeat;
  opacity:.08;
}
.closing::before {
  content:""; position:absolute; inset-block-start:0; inset-inline:0;
  height:4px; background:var(--brand-gradient);
}
.closing__in { max-width:52rem; }
.closing__title {
  font-size:clamp(1.75rem,4vw,2.5rem);
  letter-spacing:-.02em;
  line-height:1.14;
  color:#fff;
  margin-bottom:var(--space-5);
  text-wrap:balance;
}
.closing__text {
  font-size:1.125rem;
  color:var(--onDark-text);
  margin-bottom:var(--space-10);
  max-width:56ch; margin-inline:auto;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-foot { background:var(--neutral-900); color:var(--neutral-300); }
.site-foot__rule { height:2px; background:var(--brand-gradient); opacity:.5; }
.site-foot__in {
  display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-6) var(--space-10);
  padding-block:var(--space-12);
}
.site-foot__nav { margin-right:auto; }
.site-foot__nav ul,
.site-foot__legal ul { display:flex; flex-wrap:wrap; gap:var(--space-5); }
.site-foot a:not(.wordmark) {
  font-size:.875rem;
  color:var(--neutral-400); text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-foot a:not(.wordmark):hover { color:#fff; border-bottom-color:var(--neutral-600); }

/* --------------------------------------------------------------------------
   15b. Leistungen (Unterseite)
   No new content shape is invented here. The five service blocks and the
   retainer tiers both take the rule-divided editorial device: once as
   full-width rows, once as columns. The three fixed-price packages take the
   signature card, which DESIGN.md reserves for "services and offers".
   Bands stay on the neutral ladder; tint stays on devices.
   -------------------------------------------------------------------------- */

/* --- Seitenkopf ---------------------------------------------------------
   The subpage opens light, not on ink. The dark ground is the homepage's
   signature opening and this page's closing statement; spending it again at
   the top of a long reading page would buy nothing. Same H1 step as the
   hero, so the site keeps one H1 size. */
.pagehead { padding-block:var(--space-24) var(--space-16); }
.pagehead__title {
  font-size:clamp(2.125rem,5.4vw,3.25rem);
  letter-spacing:-.025em;
  line-height:1.08;
  /* A real measure, not a decorative one: 34ch resolves to 1142px at 52px and
     could never bind inside the 1072px column. 26ch is 873px — the headline
     stops short of the column edge and `text-wrap:balance` settles it at three
     lines, with four steps of slack before it would break to four. */
  max-width:26ch;
  margin-bottom:var(--space-6);
}
.pagehead__intro {
  font-size:1.125rem;
  color:var(--text-secondary);
  max-width:64ch;
  margin-bottom:0;
}
/* --- Sprungnavigation ---------------------------------------------------
   Docks flush under the sticky header and stays there. Same 92% white and
   the same saturating blur, but deliberately no border-top: two stacked
   translucent bars each carrying their own hairline read as chrome piled on
   chrome. One continuous surface closed by a single bottom rule reads as the
   page's frame, which is what it is. */
.jumpbar {
  position:sticky; top:var(--head-h); z-index:40;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(1.4) blur(10px);
  border-bottom:1px solid var(--border);
}
@supports not (backdrop-filter:blur(10px)) {
  .jumpbar { background:var(--surface); }
}
/* One row at every width. The bar's height feeds --jump-h, and every anchor
   on the page measures its scroll-margin from that, so it must not reflow. */
.jumpbar__list {
  display:flex; flex-wrap:nowrap; gap:var(--space-2);
  overflow-x:auto; scrollbar-width:none;
  list-style:none; margin:0;
  padding-block:var(--space-2);
}
.jumpbar__list::-webkit-scrollbar { display:none; }
.jumpbar__list li { flex:0 0 auto; }
.jumpbar a {
  display:inline-flex; align-items:center;
  padding:6px 12px;
  border-radius:var(--radius-sm);
  background:var(--primary-50);
  color:var(--primary-700);
  font-size:.875rem; font-weight:600; line-height:1.3;
  text-decoration:none; white-space:nowrap;
  transition:background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.jumpbar a:hover { background:var(--primary-100); color:var(--primary-800); }
/* You-are-here, separated from hover by fill rather than by a deeper tint —
   the hover step and the active step must not resolve to the same colour. */
.jumpbar a[aria-current="location"] { background:var(--primary-600); color:#fff; }

/* Scroll affordance for the row above: a fade plus a chevron at whichever
   edge still has more to scroll to. JS (initJumpbar in main.js) toggles
   `.jumpbar--can-start` / `.jumpbar--can-end` from the row's actual
   scrollLeft/scrollWidth on load, scroll and resize — not a fixed
   breakpoint, so the marks appear only when the row truly overflows,
   at any viewport width, and never on the side already fully shown. */
.jumpbar__edge {
  position:absolute; inset-block:0;
  display:flex; align-items:center;
  width:var(--space-10);
  color:var(--primary-600);
  pointer-events:none;
  opacity:0;
  transition:opacity var(--dur) var(--ease);
}
.jumpbar__edge svg { width:16px; height:16px; }
.jumpbar__edge--start {
  left:0; justify-content:flex-start;
  background:linear-gradient(270deg, rgba(255,255,255,0), rgba(255,255,255,.92));
}
.jumpbar__edge--end {
  right:0; justify-content:flex-end;
  background:linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.92));
}
.jumpbar--can-start .jumpbar__edge--start,
.jumpbar--can-end .jumpbar__edge--end { opacity:1; }

/* Anchor targets clear the jump bar plus a little air. The header's own
   clearance already lives in html's scroll-padding-top — scroll-padding and
   scroll-margin compose rather than override, so repeating --head-h here
   would double-count it and land every anchor jump well short of the bar. */
.chap, #preise, #betreuung, #kontakt {
  scroll-margin-top:calc(var(--jump-h) + var(--space-4));
}

/* --- Leistungskapitel ---------------------------------------------------
   Five full-bleed chapters, where the page previously ran five identical
   rows inside one bounded set. The band alternation is what breaks the page
   into chapters, so the tinted bands span the viewport rather than the
   container. Section padding sits at the top of the scale: generous BETWEEN
   chapters, tight WITHIN one. That contrast is the entire fix, and it does
   not get trimmed to fit more on screen. */
.chap { padding-block:var(--space-24); background:var(--surface); }
.chap--paper { background:var(--paper); border-block:1px solid var(--border); }
/* The jump bar already draws a bottom hairline; the page head adding a top
   border under it would double that seam to 2px. */
.jumpbar + .blk--paper { border-top:0; }

.chap__in {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:var(--space-16);
  align-items:start;
}
.chap__text  { order:1; }
.chap__aside { order:2; }
.chap__foot  { order:3; grid-column:1 / -1; }
/* Mirrored with order only. The DOM is identical across all five blocks, so
   reading order and tab order never change with the visual side. */
.chap--mirror .chap__text  { order:2; }
.chap--mirror .chap__aside { order:1; }

/* The glyph, not the tile. The 44px Cool-Blue-Soft tile is one of the
   Signature Card's two marks, and a tinted rounded square stacked over a
   heading is the feature-card silhouette this page's shape choice exists to
   avoid. Glyph and numeral share one line, so a chapter opens on a
   horizontal mark instead of another stacked eyebrow. Built as a marker and
   not as .kicker: the Drawn Prefix Rule would otherwise set `// ` in front
   of the number. */
.chap__mark {
  display:flex; align-items:center; gap:var(--space-3);
  margin:0 0 var(--space-4);
}
.chap__ic { display:block; color:var(--primary-600); }
/* 34px, not the original 26px: next to a 30px headline and inside a marker
   line whose only other content is a 12px numeral, 26px read as an
   afterthought — thin strokes recede fast against bold display type at
   near-equal height. align-items:center on .chap__mark keeps it centered
   against the numeral regardless of size, so this is a size-only change. */
.chap__ic svg { display:block; width:34px; height:34px; }
.chap__num {
  font-family:var(--font-mono);
  font-size:.75rem; font-weight:600;
  letter-spacing:.12em;
  color:var(--text-muted);
  font-variant-numeric:tabular-nums;
}
.chap h2 {
  margin:0 0 var(--space-4);
  font-size:clamp(1.625rem,3.4vw,1.875rem);
  letter-spacing:-.01em;
}
.chap__text > p { margin:0; color:var(--text-secondary); max-width:56ch; }
.chap__text > p + p { margin-top:var(--space-4); }

/* Closes the chapter on the system's bounding hairline rather than on a
   tinted bar: cool-blue-soft is a device tint, never a band, and it belongs
   to the tinted fork. */
.chap__foot {
  margin:var(--space-12) 0 0;
  padding-top:var(--space-5);
  border-top:1px solid var(--border-strong);
  font-size:.9375rem; color:var(--text-muted);
}
.chap__foot .textlink { margin-left:var(--space-2); }
/* A closing line ends in one link everywhere except block 02, which names
   two prices. Same textlink, just wrapped so the pair can gap without either
   one repeating the base .chap__foot margin awkwardly. */
.chap__footLinks {
  display:inline-flex; flex-wrap:wrap;
  align-items:baseline; gap:var(--space-1) var(--space-4);
}
.chap__footLinks .textlink { margin-left:0; }

/* --- Ablaufschema -------------------------------------------------------
   The Referenzen case schematic (.work__dia) given labels: same 1px stroke,
   same primary-600, same no-fill outline vocabulary, so the site keeps one
   diagram language across both surfaces. No gradient here — the signature
   gradient edges and opens things rather than running inside content, and a
   three-stop ramp across a 24px arrow resolves to one flat colour anyway. */
.dia { margin-bottom:var(--space-10); }
.dia__flow {
  display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-2);
  list-style:none; margin:0; padding:0;
}
.dia__step { display:flex; align-items:center; gap:var(--space-2); min-width:0; }
.dia__node {
  display:inline-flex; align-items:center;
  padding:var(--space-2) var(--space-3);
  border:1px solid var(--border-strong);
  border-radius:var(--radius-sm);
  font-family:var(--font-mono);
  font-size:.6875rem; font-weight:500;
  letter-spacing:.12em; text-transform:uppercase; line-height:1.4;
  color:var(--text-secondary);
}
/* The row stays a row: a node wraps its own label before the flow itself
   breaks, because a trailing arrow pointing off the end of a wrapped line
   reads as a mistake rather than as a sequence. */
.dia__arr { flex:0 0 auto; width:24px; height:12px; }
.dia__arr, .dia__returnHead {
  fill:none; stroke:var(--primary-600); stroke-width:1;
  stroke-linecap:round; stroke-linejoin:round;
}
.dia__cap {
  margin:var(--space-4) 0 0;
  font-size:.9375rem; color:var(--text-muted);
  max-width:52ch;
}

/* Block 05 closes its sequence instead of ending it — a three-sided return
   rule under the flow. This is the block's argument for the retainer, so the
   shape has to carry the cycle even without a spelled-out cadence word.

   The return row shares the step row's own grid columns rather than sizing
   itself against the container: three explicit `max-content` tracks, so
   each column's width always equals that column's own node. Sichern's and
   Prüfen's boxes rarely render the same width, so one line spanning column 1
   to column 3 could only ever land on ONE of their true centers, not both —
   the rule is three separate pieces instead, each confined to its own
   column: a half-width piece under Sichern (from its center rightward), a
   full-width piece under Aktualisieren, and a half-width piece under Prüfen
   (from its center leftward). Composed edge to edge they read as one
   continuous line running center-to-center, correct regardless of how wide
   either end node renders at a given viewport or font size. The arrowhead
   and the return-side tail are separate grid items confined to column 1 and
   column 3 with `justify-self:center`, landing on each node's centerline
   the same way — explicit grid placement lets all of these overlap safely,
   unlike normal flow. */
.dia__flow--loop {
  display:grid;
  grid-template-columns:repeat(3, max-content);
  column-gap:var(--space-2); row-gap:0;
}
.dia__flow--loop .dia__step:nth-child(1) { grid-area:1/1; }
.dia__flow--loop .dia__step:nth-child(2) { grid-area:1/2; }
.dia__flow--loop .dia__step:nth-child(3) { grid-area:1/3; }
.dia__returnSeg {
  grid-row:2;
  height:var(--space-6);
  border-bottom:1px solid var(--primary-600);
}
/* Each piece also reaches across its own column-gap into the next: the
   track boundaries carve the line into two 8px-short segments otherwise,
   which reads as a break in the line rather than as one continuous rule. */
.dia__returnSeg--a { grid-column:1; margin:0 calc(-1 * var(--space-2)) 0 50%; }
.dia__returnSeg--b { grid-column:2; margin-inline:calc(-1 * var(--space-2)); }
.dia__returnSeg--c { grid-column:3; margin:0 50% 0 calc(-1 * var(--space-2)); }
/* One tail per end, each in the same column as its arrowhead/plain-end mark
   so the two overlap: without this, the horizontal rule (drawn at the
   bottom of row 2) and the arrowhead/plain end (pinned near the top, flush
   against the step boxes) never actually touch — the line stops short and
   the mark floats above it with nothing bridging the gap. */
.dia__returnTail {
  grid-row:2;
  justify-self:center;
  width:1px; height:var(--space-6);
  background:var(--primary-600);
}
.dia__returnTail--start { grid-column:1; }
.dia__returnTail--end { grid-column:3; }
.dia__returnMark {
  grid-area:2/1;
  justify-self:center; align-self:start;
  margin-top:-4px;
}
.dia__returnHead { display:block; width:9px; height:6px; }

/* --- Beispiel-Pills -----------------------------------------------------
   A third job for the chip recipe, told apart from the other two by shape as
   well as by hue: the blue 6px chip in the jump bar acts, the teal 6px chip
   on the homepage names a pain point, and this neutral pill only names an
   example — at volume, forty-odd of them per page. Deliberately inert: no
   hover, no cursor, no target. */
.pills {
  display:flex; flex-wrap:wrap; gap:var(--space-2);
  list-style:none; margin:0; padding:0;
}
.pills li {
  padding:6px 12px;
  border:1px solid var(--border);
  border-radius:var(--radius-pill);
  background:var(--neutral-100);
  color:var(--text-secondary);
  font-size:.875rem; line-height:1.4;
}
/* Collapsed by a clipping grid row, never display:none or [hidden]: neither
   can transition, and the hidden pills have to stay in the served markup to
   be indexed. aria-hidden keeps them off the accessibility tree while they
   are clipped. The open state is the default, so without JS every pill is
   visible and nothing is trapped behind a control that never appears. */
.pills__more {
  display:grid; grid-template-rows:1fr;
  transition:grid-template-rows var(--dur) var(--ease);
}
.pills__more[data-open="false"] { grid-template-rows:0fr; }
.pills__more > ul { overflow:hidden; min-height:0; padding-top:var(--space-2); }
.pills__toggle {
  display:inline-flex; align-items:baseline;
  margin-top:var(--space-4);
  padding:0; border:0; background:none;
  border-bottom:1px solid transparent;
  font-family:var(--font-body);
  font-size:.9375rem; font-weight:600;
  color:var(--link); cursor:pointer;
  transition:color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pills__toggle:hover { color:var(--primary-500); border-bottom-color:currentColor; }

/* --- Übergang -----------------------------------------------------------
   A hinge between the chapters and the rest of the page rather than a
   section of its own: reading width, quieter padding, and left aligned like
   every other content band. Centring on this site belongs to the dark
   closing statement alone, and a second centred moment four sections ahead
   of it would only weaken that one.

   Top padding is deliberately tighter than bottom: the chapters above it
   already close on their own generous 96px (the "space between chapters"
   rhythm — see .chap), so stacking this band's full quiet padding on top
   read as an oversized gap belonging to no single rule. The bottom keeps
   the fuller padding, since Und außerdem needs its own clear breathing
   room and nothing before it is already spacious. */
.bridge { padding-top:var(--space-8); padding-bottom:var(--space-16); }
/* Same tint-field language as the Abrechnung fork (§10) — Cool-Blue-Soft
   fill, 14px radius, no border, no shadow — reused here as a one-line CTA
   banner instead of a two-way choice. The band around it now matches
   chapter 05's white, so this tint is the only thing marking the boundary
   between them — it has to read as a distinct moment, not a device choice
   made for its own sake. Copy and button share a row so the button
   occupies the width the text alone left empty on wide viewports. */
.bridge__box {
  display:flex; align-items:center; justify-content:space-between;
  gap:var(--space-8);
  background:var(--primary-50);
  border-radius:var(--radius-lg);
  padding:var(--space-8) var(--space-10);
}
.bridge__copy { max-width:56ch; }
.bridge__title { margin:0 0 var(--space-2); font-size:1.25rem; letter-spacing:-.005em; }
.bridge__text { margin:0; color:var(--text-secondary); }
.bridge__box .btn { flex-shrink:0; }

/* Shared dot marker — drawn, never a glyph or a list-style bullet. */
.dotlist li {
  position:relative;
  padding-left:var(--space-5);
  color:var(--text-secondary);
  font-size:.9375rem;
}
.dotlist li::before {
  content:""; position:absolute; left:0; top:.62em;
  width:5px; height:5px;
  border-radius:var(--radius-pill);
  background:var(--primary-300);
}
.dotlist li + li { margin-top:var(--space-3); }

/* --- Und außerdem -------------------------------------------------------
   Deliberately not a showpiece: no device at all, just a two-column
   definition list at body scale. */
.extras__title { font-size:1.25rem; letter-spacing:-.005em; margin-bottom:var(--space-8); }
.extras__list {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--space-8) var(--space-16);
}
.extras__list dt {
  font-weight:600; font-size:.9375rem;
  color:var(--text-primary);
  margin-bottom:var(--space-1);
}
.extras__list dd { margin:0; font-size:.9375rem; color:var(--text-secondary); max-width:52ch; }
.extras__foot { margin-top:var(--space-10); font-size:.9375rem; color:var(--text-muted); }

/* --- Preise -------------------------------------------------------------- */
/* `.sec-head`'s own 48px margin-bottom (shared with three plain-grid uses on
   the homepage, where nothing competing follows it) collapses with a
   pricegrp's 32px title margin here into a heading-to-heading gap tighter
   than the 64px between pricegrps themselves — "Stundenweise" read closer
   to the section head than to its own siblings. Matching it to the same
   64px fixes the inversion; margin collapsing means this rule alone decides
   the gap, not the two margins summed. */
.sec-head + .pricegrp { margin-top:var(--space-16); }
.pricegrp + .pricegrp { margin-top:var(--space-16); }
.pricegrp__title { font-size:1.25rem; letter-spacing:-.005em; margin-bottom:var(--space-3); }
.pricegrp__text { color:var(--text-secondary); max-width:64ch; margin:0 0 var(--space-4); }
/* Feste Pakete: the signature card, with the price standing in for the icon
   tile. On this page capabilities carry an icon and offers carry a number. */
.cards--packages { grid-template-columns:repeat(3,minmax(0,1fr)); }
.card--pkg .pkg__name { font-size:1.25rem; letter-spacing:-.005em; margin-bottom:var(--space-2); }
.card--pkg .pkg__price {
  font-family:var(--font-display); font-weight:600;
  font-size:1.5rem; letter-spacing:-.01em;
  color:var(--primary-700);
  font-variant-numeric:tabular-nums;
  margin-bottom:var(--space-4);
}
.card--pkg .pkg__lede { margin-bottom:var(--space-5); }
/* Small-print paragraph style: full wrap measure, not the usual 70ch cap.
   Used twice — the small print under the retainer table and the
   bespoke-project note under the packages — sharing one voice even though
   they no longer sit next to each other. */
.pkg__foot { margin-top:var(--space-8); font-size:.9375rem; color:var(--text-muted); max-width:none; }

/* --- Betreuungspakete ---------------------------------------------------
   A comparison matrix, so every column repeats every feature label verbatim.
   That is what holds the rows level across columns without a min-height:
   identical strings in identical widths wrap identically. It is also what
   lets the DOM stay column-major, so the set stacks package by package on a
   phone instead of needing a second copy of the markup. */
.tiers {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0;
  border-top:1px solid var(--border-strong);
  border-bottom:1px solid var(--border-strong);
}
.tier { padding:var(--space-8) var(--space-6); }
.tier:first-child { padding-left:0; }
.tier:last-child { padding-right:0; }
.tier + .tier { border-left:1px solid var(--border); }
/* Recommended tier: a step on the neutral ladder, not a tint. Cool Blue Soft
   is the system's device tint and is already spent on the icon tiles and the
   fork; a tinted column here would read as a second commercial field. */
.tier--hi { background:var(--surface); }
/* Name and badge share one row. Stacked above the name, the badge added 37px
   of height to the recommended column alone and pushed its price, hours and
   every feature row out of line with its neighbours — in a comparison matrix
   that costs the reader the ability to scan across. Reserving an empty badge
   slot in the other two columns would buy the alignment back with dead space;
   one row buys it with none. */
.tier__head {
  display:flex; align-items:center; gap:var(--space-3);
  margin-bottom:var(--space-2);
}
.tier__badge {
  display:inline-block;
  margin-bottom:0;
  padding:2px 8px;
  border-radius:var(--radius-sm);
  background:var(--primary-100);
  color:var(--primary-800);
  font-family:var(--font-mono);
  font-size:.6875rem; font-weight:600;
  letter-spacing:.08em; text-transform:uppercase;
}
.tier__name {
  font-family:var(--font-display); font-weight:600; font-size:1.25rem;
  color:var(--text-primary);
  margin-bottom:0;
}
.tier__price {
  font-family:var(--font-display); font-weight:600; font-size:1.5rem;
  letter-spacing:-.01em;
  color:var(--text-primary);
  font-variant-numeric:tabular-nums;
  margin-bottom:var(--space-1);
}
.tier__per { font-family:var(--font-body); font-size:.9375rem; font-weight:500; color:var(--text-muted); }
.tier__hours { font-size:.9375rem; color:var(--text-secondary); margin-bottom:var(--space-6); }
.tier__feats { border-top:1px solid var(--border); padding-top:var(--space-5); }
.feat { display:flex; gap:var(--space-3); font-size:.875rem; color:var(--text-secondary); }
.feat + .feat { margin-top:var(--space-3); }
/* stroke 2 on a 24 viewBox at 15px matches the ~1.4px optical weight the
   chips already established for icons drawn small. */
.feat__tick { width:15px; height:15px; flex-shrink:0; margin-top:3px; color:var(--primary-600); }
.feat__dash {
  width:11px; height:1px; flex-shrink:0; margin-top:10px;
  background:var(--neutral-400);
}
.feat--out { color:var(--text-muted); }
.tier__extra {
  margin-top:var(--space-6);
  padding-top:var(--space-4);
  border-top:1px solid var(--border);
  font-size:.875rem; color:var(--text-secondary);
}
.tier__extra strong { font-weight:600; color:var(--text-primary); font-variant-numeric:tabular-nums; }

/* A paper band already draws its own bottom hairline; the trust coda adding
   a top border on top of that would double the seam to 2px. Symmetric case
   on the far side: if a paper band follows trust instead, its own top
   border would double against trust's new bottom border (added for
   Leistungen, where trust sits between two `surface` halves — see §13). */
.blk--paper + .trust { border-top:0; }
.trust + .blk--paper { border-top:0; }

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width:960px) {
  /* Andocken is single-column at every width; nothing to collapse here. */
  .about__in { grid-template-columns:1fr; gap:var(--space-10); }
  .portrait { max-width:20rem; }
  .trust__list { grid-template-columns:1fr; gap:var(--space-6); }
  .trust { padding-block:var(--space-10); }
}

@media (max-width:860px) {
  .site-nav, .site-head__cta { display:none; }
  .navtoggle { display:flex; }
  /* Wordmark + "Anfragen" + the 44px toggle at 320px leaves no room for the
     header's usual 32px rhythm between items — the wordmark can't give
     (nowrap, one word) and the toggle can't give (needs the full 44px
     touch target), so the gap is what shrinks here. 8px still clears the
     "at least 8px from the hamburger" floor on both sides. */
  .site-head__in { gap:var(--space-2); }
  /* Same reasoning on the button's own horizontal padding: still `.btn
     .btn--primary`, same colour/weight/radius/font as everywhere else —
     only the padding is trimmed, scoped to this one instance, because the
     default 20px a side is what doesn't fit next to a full-width toggle
     and an unshortenable wordmark at the narrowest supported width.
     min-height guarantees the 44px touch target the reduced vertical
     padding would otherwise fall just short of. */
  .site-head__cta--mobile {
    display:inline-flex;
    min-height:44px;
    padding-inline:var(--space-3);
  }
  .steps { grid-template-columns:1fr; gap:var(--space-8); }

  /* Leistungen: chapters go single column, and order resets so the DOM
     order — text, then diagram and pills, then the closing line — is what
     stacks. */
  .chap__in { grid-template-columns:1fr; gap:var(--space-10); }
  .chap--mirror .chap__text  { order:1; }
  .chap--mirror .chap__aside { order:2; }

  /* Stacked single-column, the flow schematic costs more height than it
     earns: a 3-6 step diagram (vertical here, arrows and all) can run
     longer than the text it illustrates. Text and pills stay; only the
     diagram goes. (Replaces the diagram's own vertical-flow rules, which
     this makes unreachable — nothing to lay out once it's hidden.) */
  .dia { display:none; }

  /* The remaining rule-divided set turns its verticals horizontal, exactly
     as the case-study columns below do. */
  .tiers { grid-template-columns:1fr; }
  .tier { padding:var(--space-8) 0; }
  .tier + .tier { border-left:0; border-top:1px solid var(--border); }
  /* The recommended tier keeps its fill by bleeding to the gutter, so its
     text stays on the same left edge as the two tiers around it. */
  .tier--hi {
    padding-inline:var(--gutter);
    margin-inline:calc(-1 * var(--gutter));
  }
  .cards--packages { grid-template-columns:1fr; }

  /* Rules turn horizontal when the columns stack */
  .worklist { grid-template-columns:1fr; }
  .work { padding:var(--space-6) 0; }
  .work + .work {
    padding-left:0;
    border-left:0;
    border-top:1px solid var(--border);
  }
  .work h3 { max-width:none; }
}

@media (max-width:720px) {
  :root { --gutter:20px; }
  .blk { padding-block:var(--space-12); }
  .hero { padding-block:var(--space-16) var(--space-16); }
  .hero__actions { gap:var(--space-5); }
  .hero__actions .btn { width:100%; }
  .cards--services { grid-template-columns:1fr; }
  .card { padding:var(--space-6); }

  /* Leistungen */
  .pagehead { padding-block:var(--space-16) var(--space-12); }
  .chap { padding-block:var(--space-16); }
  .bridge { padding-top:var(--space-6); padding-bottom:var(--space-12); }
  .bridge__box {
    flex-direction:column; align-items:flex-start;
    gap:var(--space-6);
    padding:var(--space-6);
  }
  .extras__list { grid-template-columns:1fr; gap:var(--space-6); }
  .rate { grid-template-columns:1fr; gap:var(--space-1); padding-block:var(--space-3); }

  .terms__fork {
    grid-template-columns:1fr;
    gap:var(--space-6);
    padding:var(--space-8) var(--space-6);
  }
  .terms__or { text-align:center; padding:0; }
  .terms__or::before, .terms__or::after { display:none; }
  .closing { padding-block:var(--space-16); }
  .site-foot__in { flex-direction:column; align-items:flex-start; }
  .site-foot__nav { margin-right:0; }
}

/* --------------------------------------------------------------------------
   17. Motion preference
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after {
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   18. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-head, .navtoggle, .mobilnav, .hero__mesh, .skip, .jumpbar { display:none !important; }
  .hero, .closing, .site-foot { background:#fff !important; color:#000 !important; }
  .hero__title, .closing__title { color:#000 !important; }
  .hero__sub, .closing__text, .site-foot { color:#333 !important; }
  .card { box-shadow:none; break-inside:avoid; }
}
