/* brand/tokens.css + src/blocks.css + src/docs.css, built by the website workshop. Every rule sits under .whk-site. */

/* brand/tokens.css */

/* WHK Controlling design system: tokens. D · Mandat, LOCKED 2026-09-24.
 *
 * Jan picked the merge of A and C ("D · Mandat") and approved it on
 * 2026-09-24. Every Phase 2 page reads only these tokens, through
 * src/blocks.css (sections) and src/docs.css (WHK documents). Inventory,
 * rules and the port notes: BLOCKS.md. Drawn live: system.html.
 *
 * Rules:
 * - WHK is its own brand, separate from controlling.app (Jan, 2026-09-24).
 *   No token aliases the product's --ds-* values; a controlling.app product
 *   frame keeps its own values inside .product-frame.
 * - WHK Blue is the one colour that acts: links, buttons, the second display
 *   line, the numbers we promise. Gold is a hairline, never text or a fill
 *   (2.2:1 on paper). Green and red appear only inside documents, as results.
 * - Changing a value here changes every page. A new token needs a block in
 *   BLOCKS.md that uses it.
 * - Scope: everything lives under .whk-site, an element inside <body>. The
 *   deploy keeps only the body's content (BLOCKS.md §Port), so no rule may
 *   depend on <html> or <body>.
 *
 * Sources: brand/d-mandat.css (Wave 1 pick) and the WHK reference kit
 * (WHK Blue #1A3A8C, Cream #FAF7F1, Gold #C9A55C, Playfair Display and Open
 * Sans). Fonts are self-hosted (SIL OFL); German law penalises loading
 * Google Fonts from Google's servers, so the port ships these files too. */

@font-face { font-family: 'Playfair Display'; src: url('../fonts/whk-site/playfair-display-normal-latin.woff2') format('woff2'); font-style: normal; font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../fonts/whk-site/playfair-display-italic-latin.woff2') format('woff2'); font-style: italic; font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/whk-site/open-sans-normal-latin.woff2') format('woff2'); font-style: normal; font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/whk-site/open-sans-italic-latin.woff2') format('woff2'); font-style: italic; font-weight: 300 800; font-display: swap; }

.whk-site {
  /* ── Surfaces ─────────────────────────────────────────────────────────── */
  --whk-paper: #faf7f1;                 /* WHK Cream: the page */
  --whk-paper-alt: #f3ede2;             /* alternating section, tiles behind documents */
  --whk-raised: #fffdf8;                /* cards, logo tiles, pills, form fields */
  --whk-band: #1a3a8c;                  /* the one blue band: the closing call to action */

  /* ── Ink on paper ─────────────────────────────────────────────────────── */
  --whk-ink: #16213d;                   /* text and headlines, 14.9:1 on paper */
  --whk-muted: #5c6070;                 /* secondary text, 5.8:1 */
  --whk-faint: #8a8d99;                 /* meta on large type only, 3.3:1 */
  --whk-line: #e4dbc9;                  /* hairlines, card edges */
  --whk-line-strong: #d3c7ae;           /* field borders, the table foot */

  /* ── WHK Blue: action and signature ───────────────────────────────────── */
  --whk-blue: #1a3a8c;                  /* buttons, links, second display line, promised numbers, 9.7:1 */
  --whk-blue-strong: #132d70;           /* hover and pressed */
  --whk-blue-wash: #e6ebf6;             /* selected rows, focus fill, badges */
  --whk-blue-soft: #c9d3ea;             /* bars and tracks inside documents */
  --whk-on-blue: #fffdf8;               /* text on the band */
  --whk-on-blue-muted: rgb(255 253 248 / 0.74);
  --whk-on-blue-rule: rgb(255 253 248 / 0.18);

  /* ── Gold: a hairline, never text ─────────────────────────────────────── */
  --whk-gold: #c9a55c;                  /* eyebrow rule, first and last rule of a list, figure rules */

  /* ── Results (inside documents and measured values only) ──────────────── */
  --whk-positive: #2f6b4f;              /* measured, within threshold, 5.9:1 */
  --whk-negative: #b4533a;              /* negative margin, over threshold, 4.6:1 */

  /* ── Type ─────────────────────────────────────────────────────────────── */
  --whk-font-display: 'Playfair Display', Georgia, serif;
  --whk-font-body: 'Open Sans', system-ui, sans-serif;
  --whk-weight-display: 500;
  --whk-weight-strong: 600;
  --whk-tracking-display: -0.015em;
  --whk-tracking-title: -0.01em;
  --whk-type-display: min(clamp(46px, 5vw, 76px), 8.2vh); /* Startseite hero: a benefit in two short sentences; shrinks on short screens so the hero fits */
  --whk-type-display-page: min(clamp(38px, 4vw, 58px), 7.4vh); /* page heroes; shrinks on short screens like the Startseite's */
  --whk-type-title: clamp(32px, 3.4vw, 50px);         /* section title */
  --whk-type-title-s: clamp(26px, 2.6vw, 38px);       /* band title, sub-sections */
  --whk-type-h3: 26px;                                /* service, card and article titles */
  --whk-type-h4: 20px;                                /* list and person titles */
  --whk-type-numeral-l: clamp(34px, 3.2vw, 48px);     /* Lieferzahlen, figure bands */
  --whk-type-numeral: clamp(26px, 2.4vw, 36px);       /* hero figures */
  --whk-type-quote: 20px;                             /* testimonial, italic serif */
  --whk-type-lead: clamp(17px, 1.3vw, 19px);
  --whk-type-body: 17px;
  --whk-type-small: 15px;
  --whk-type-meta: 13px;
  --whk-label: 600 14px/1.3 var(--whk-font-body);     /* eyebrow: sentence case, blue, gold rule */
  --whk-label-s: 600 11px/1.3 var(--whk-font-body);   /* uppercase tags: "gemessen", footer heads */
  --whk-label-tracking: 0.06em;

  /* ── Shape ────────────────────────────────────────────────────────────── */
  --whk-radius-doc: 6px;                /* WHK documents: paper corners */
  --whk-radius-s: 10px;                 /* form fields, small images */
  --whk-radius-m: 16px;                 /* logo tiles, press images, video */
  --whk-radius-l: 20px;                 /* cards and tiles */
  --whk-radius-xl: 28px;                /* photographs */
  --whk-radius-pill: 999px;             /* buttons, fact pills, badges */

  /* ── Depth ────────────────────────────────────────────────────────────── */
  --whk-shadow-edge: 0 1px 0 var(--whk-line);                                        /* tiles, pills */
  --whk-shadow-card: 0 1px 0 var(--whk-line), 0 20px 50px rgb(40 35 60 / 0.06);       /* quotes, cards */
  --whk-shadow-doc: 0 1px 0 #d8cdb6, 0 28px 60px rgb(40 35 60 / 0.18);                /* documents */
  --whk-shadow-frame: 0 2px 0 var(--whk-line), 0 30px 70px rgb(40 35 60 / 0.14);      /* product frames, the form */
  --whk-shadow-float: 0 24px 60px rgb(22 33 61 / 0.18);                               /* phone menu sheet */
  --whk-focus: 0 0 0 3px var(--whk-paper), 0 0 0 5px var(--whk-blue);                 /* focus ring */

  /* ── Space ────────────────────────────────────────────────────────────── */
  --whk-gutter: max(clamp(16px, 4vw, 48px), calc((100% - 1280px) / 2));
  --whk-section: clamp(72px, 9vw, 120px);             /* section padding */
  --whk-section-s: clamp(48px, 6vw, 80px);            /* page hero, band */
  --whk-gap: 20px;                                    /* card grids */
  --whk-gap-l: clamp(28px, 5vw, 72px);                /* two-column sections */
  --whk-gap-xl: clamp(32px, 5vw, 80px);               /* hero columns */
  --whk-measure: 34em;                                /* lead and line width */

  /* ── WHK documents (src/docs.css): paper on paper ─────────────────────── */
  --doc-paper: var(--whk-raised);
  --doc-ink: var(--whk-ink);
  --doc-muted: var(--whk-muted);
  --doc-line: #e6ddca;
  --doc-accent: var(--whk-blue);
  --doc-accent-soft: var(--whk-blue-soft);
  --doc-font-title: var(--whk-font-display);
  --doc-font-body: var(--whk-font-body);
  --doc-radius: var(--whk-radius-doc);
  --doc-shadow: var(--whk-shadow-doc);

  /* The controlling.app board replica reads three marketing variables; they
     stay product values so a product frame's interior is exactly the app. */
  --public-ink: var(--ds-fg);
  --public-cobalt: var(--ds-primary);
  --public-font-display: var(--font-sans);

  background: var(--whk-paper);
  color: var(--whk-ink);
  font-family: var(--whk-font-body);
  font-size: var(--whk-type-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* src/blocks.css */

/* WHK Controlling design system: blocks. D · Mandat, LOCKED 2026-09-24.
 *
 * One section per block, in the order of BLOCKS.md. Every rule reads only
 * the tokens in brand/tokens.css and sits under .whk-site (native nesting),
 * so the stylesheet is inert outside the wrapper, as the port requires
 * (BLOCKS.md §Port). Block text rules target the block's own text
 * (`.service > h3`, not `.service h3`) so they never restyle a WHK document
 * or product view placed inside the block.
 *
 * Extended 2026-09-25 for Wissen, Finanz-Tools, Suche, 404 and the legal
 * pages: Tabellenblatt, Suchfeld, Themen, Seiten, Treffer, Rechtstext and the
 * compact page head (BLOCKS.md). Nothing existing changed its look.
 * Extended 2026-09-26 for the article page: Artikelkopf, Datei, Lesespalte,
 * Fließtext, Artikelfuß and the text page in Tabellenblatt; after the link
 * inventory, Passende Leistung and the numbered listing pager (Seiten).
 *
 * Breakpoints: the Tailwind scale, max-width queries as the exclusive
 * complement of the next stop (1023px against lg 1024, 767px against md 768). */

/* ── Mock chrome (not part of the design; never ported) ─────────────────── */

.whk-site {
  /* ── Base ───────────────────────────────────────────────────────────── */
  /* Rule 8: numbers in lining figures. Playfair defaults to old-style, which
     set "0" like an "o" and "12" at x-height in headlines (fixed 2026-09-25).
     The `font` shorthand resets font-variant-numeric (and the feature
     settings) on the element it styles, so every rule that sets the display
     face through the shorthand repeats lining-nums (2026-09-26). */
  font-variant-numeric: lining-nums;
  *, *::before, *::after { box-sizing: border-box; }
  img { max-width: 100%; }
  a { color: inherit; }
  :focus-visible { outline: none; box-shadow: var(--whk-focus); border-radius: 4px; }
  .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: var(--whk-radius-pill); background: var(--whk-blue); color: var(--whk-on-blue); font-weight: var(--whk-weight-strong); text-decoration: none; }
  .skip:focus { top: 12px; }
  .link { color: var(--whk-blue); font-weight: var(--whk-weight-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
  .link:hover { color: var(--whk-blue-strong); text-decoration-thickness: 2px; }
  .arrow::after { content: ' →'; }
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.whk-site {
  /* The blur sits on ::before: a backdrop-filter on the header itself would
     make it the containing block of the phone sheet (controlling.app trap). */
  .site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--whk-line); }
  .site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: color-mix(in oklab, var(--whk-paper) 90%, transparent); backdrop-filter: blur(14px); }
  .site-header__inner { display: flex; align-items: center; gap: 32px; height: 76px; padding-inline: var(--whk-gutter); }
  .brand { display: inline-flex; align-items: center; gap: 12px; color: var(--whk-ink); text-decoration: none; }
  .brand__mark { display: block; width: auto; height: 26px; }
  .brand__word { display: flex; flex-direction: column; font: 700 15px/1.1 var(--whk-font-body); letter-spacing: -0.005em; }
  .brand__word small { margin-top: 3px; color: var(--whk-muted); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
  .site-nav { display: flex; gap: 28px; margin-inline: auto; }
  .site-nav a { padding-block: 6px; border-bottom: 2px solid transparent; color: var(--whk-muted); font-size: 15px; font-weight: 500; text-decoration: none; }
  .site-nav a:hover { color: var(--whk-ink); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--whk-gold); color: var(--whk-ink); }
  .site-header__actions { display: flex; align-items: center; gap: 10px; }
  /* Phone menu: a disclosure, no script. The sheet hangs under the header. */
  .menu { display: none; }
  .menu > summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--whk-radius-pill); box-shadow: inset 0 0 0 1px var(--whk-line-strong); color: var(--whk-ink); list-style: none; cursor: pointer; }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu > summary svg { width: 20px; height: 20px; }
  .menu[open] > summary { background: var(--whk-ink); box-shadow: none; color: var(--whk-paper); }
  .menu__sheet { position: absolute; top: 100%; right: 0; left: 0; padding: 8px var(--whk-gutter) 24px; border-bottom: 1px solid var(--whk-line); background: var(--whk-raised); box-shadow: var(--whk-shadow-float); }
  .menu__sheet a { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--whk-line); color: var(--whk-ink); font: 500 20px/1.2 var(--whk-font-display); text-decoration: none; font-variant-numeric: lining-nums; }
  .menu__sheet a[aria-current="page"] { color: var(--whk-blue); }
  .menu__sheet .btn { width: 100%; margin-top: 20px; }
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.whk-site {
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 28px; border: 0; border-radius: var(--whk-radius-pill); background: none; font: 600 16px/1 var(--whk-font-body); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.15s, color 0.15s, box-shadow 0.15s; }
  .btn:focus-visible { border-radius: var(--whk-radius-pill); }
  .btn--small { height: 42px; padding: 0 20px; font-size: 14.5px; }
  .btn--primary { background: var(--whk-blue); color: var(--whk-on-blue); }
  .btn--primary:hover { background: var(--whk-blue-strong); }
  .btn--outline { box-shadow: inset 0 0 0 1px var(--whk-line-strong); color: var(--whk-ink); }
  .btn--outline:hover { background: var(--whk-raised); box-shadow: inset 0 0 0 1px var(--whk-ink); }
  .btn--quiet { height: auto; padding: 6px 4px; color: var(--whk-ink); }
  .btn--quiet:hover { text-decoration: underline; text-underline-offset: 5px; }
  /* On the blue band. */
  .btn--light { background: var(--whk-on-blue); color: var(--whk-blue); }
  .btn--light:hover { background: #fff; }
  .btn--quiet-light { height: auto; padding: 6px 4px; color: var(--whk-on-blue); }
  .btn--quiet-light:hover { text-decoration: underline; text-underline-offset: 5px; }
}

/* ── Type: eyebrow, display, titles, lead ───────────────────────────────── */
.whk-site {
  /* A's gold rule, C's sentence case, in WHK Blue. */
  .eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--whk-blue); font: var(--whk-label); letter-spacing: 0.01em; }
  .eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--whk-gold); }
  .display { margin: 0; font-family: var(--whk-font-display); font-size: var(--whk-type-display); font-weight: var(--whk-weight-display); line-height: 1.04; letter-spacing: var(--whk-tracking-display); text-wrap: balance; }
  .display--page { font-size: var(--whk-type-display-page); line-height: 1.06; }
  .display__second { display: block; color: var(--whk-blue); font-style: italic; }
  .lead { max-width: var(--whk-measure); margin: 26px 0 0; color: var(--whk-muted); font-size: var(--whk-type-lead); line-height: 1.6; text-wrap: pretty; }
  .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 34px; }
  .microcopy { margin: 14px 0 0; color: var(--whk-muted); font-size: 14px; }
  .figure-caption { display: block; color: var(--whk-muted); font: italic 400 15px/1.4 var(--whk-font-display); font-variant-numeric: lining-nums; }
}

/* ── Section and section head ────────────────────────────────────────────── */
.whk-site {
  .section { padding: var(--whk-section) var(--whk-gutter); }
  .section--alt { background: var(--whk-paper-alt); }
  .section--flush-top { padding-top: 0; }
  .section-head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 64px); }
  .section-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; max-width: none; }
  .section-head--split > div { max-width: 820px; }
  .section-title { margin: 0; font-family: var(--whk-font-display); font-size: var(--whk-type-title); font-weight: var(--whk-weight-display); line-height: 1.08; letter-spacing: var(--whk-tracking-display); text-wrap: balance; }
  .section-title__second { color: var(--whk-blue); font-style: italic; }
  .section-lead { max-width: var(--whk-measure); margin: 16px 0 0; color: var(--whk-muted); font-size: var(--whk-type-lead); text-wrap: pretty; }
}

/* ── Hero (Startseite) ───────────────────────────────────────────────────── */
.whk-site {
  /* Every hero fits the first screen of a 1366×768 or 1440×900 display, its
     figures, documents and photo included (Jan, 2026-10-18): the headline
     sizes (tokens.css) and the gaps follow the viewport height. The page
     heroes and the Erstgespräch form share the gaps. */
  .hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--whk-gap-xl); align-items: center; padding: clamp(28px, 3.5vw, 52px) var(--whk-gutter) clamp(64px, 8vw, 112px); }
  :is(.hero, .page-hero, .contact) .eyebrow { margin-bottom: min(20px, 2vh); }
  :is(.hero, .page-hero, .contact) .lead { margin-top: min(26px, 2.4vh); }
  :is(.hero, .page-hero) .actions { margin-top: min(34px, 3vh); }
  .page-hero .crumbs { margin-bottom: min(22px, 2vh); }
  /* Tangibles first: three figures, one label each, gold above them. */
  .hero-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: min(34px, 3vh) 0 0; padding-top: min(22px, 2vh); border-top: 1px solid var(--whk-gold); }
  .hero-figures div { display: flex; flex-direction: column-reverse; gap: 4px; padding-right: 16px; }
  .hero-figures div + div { padding-left: 18px; border-left: 1px solid var(--whk-line); }
  .hero-figures dt { color: var(--whk-muted); font-size: 13px; line-height: 1.35; }
  .hero-figures dd { margin: 0; font-family: var(--whk-font-display); font-size: var(--whk-type-numeral); font-weight: var(--whk-weight-display); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
  .hero-figures sup { font-size: 0.55em; vertical-align: 0.7em; }
  .hero-figures small { color: var(--whk-muted); font-size: 0.5em; }
  /* C's composition: the team photo in colour, the document on its corner. */
  .hero__visual { position: relative; display: grid; align-self: start; min-width: 0; margin: min(56px, 5vh) 0 0; }
  .hero__photo { grid-area: 1 / 1; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--whk-radius-xl); }
  /* Cropped from the left, so the three faces sit right of the document. */
  .hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; }
  /* The three faces sit in the upper right of the photo: the document takes
     the lower left corner (desk and jeans) and hangs a little below it; the
     caption sits beside it, under the photo. */
  .hero__doc { position: relative; z-index: 2; grid-area: 1 / 1; display: flex; align-self: end; justify-self: start; margin: 0 0 -96px -28px; }
  .hero__doc > .doc { flex: none; zoom: 0.66; }
  .hero__visual > .figure-caption { margin-top: 12px; padding-left: 72%; }
}

/* ── Page hero (Karriere, Presse, Erstgespräch) ──────────────────────────── */
.whk-site {
  .page-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--whk-gap-xl); align-items: center; padding: clamp(28px, 3.5vw, 52px) var(--whk-gutter) clamp(64px, 8vw, 112px); }
  .page-hero__visual { display: grid; min-width: 0; margin: 0; }
  .page-hero__photo { grid-area: 1 / 1; }
  .page-hero__photo img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--whk-radius-xl); }
  .page-hero__doc { position: relative; z-index: 2; grid-area: 1 / 1; display: flex; align-self: end; justify-self: end; margin: 0 -24px -48px 0; }
  .page-hero__doc > .doc { flex: none; zoom: 0.72; }
  /* The Finanz-Check's nine findings are the tallest document of a hero. */
  @media (min-width: 1024px) and (max-height: 720px) {
    .page-hero .delivery__visual > .doc { zoom: 0.86; }
  }
  /* Short facts under the lead, a gold dash before each. */
  .facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 30px 0 0; padding: 0; color: var(--whk-muted); font-size: 15px; list-style: none; }
  .facts li { display: inline-flex; align-items: center; gap: 10px; }
  .facts li::before { content: ''; width: 14px; height: 2px; background: var(--whk-gold); }
  .contact-line { display: flex; flex-direction: column; gap: 2px; margin: 30px 0 0; }
  .contact-line span { color: var(--whk-muted); font-size: 14px; }
  .contact-line a { color: var(--whk-ink); font: 500 22px/1.3 var(--whk-font-display); text-decoration: none; font-variant-numeric: lining-nums; }
  .contact-line a:hover { color: var(--whk-blue); }
  /* One column for listing, search and text pages: title, one line, the search.
     The first row of content follows within the first screen. */
  .page-hero--compact { grid-template-columns: minmax(0, 1fr); padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(28px, 4vw, 48px); }
  .page-hero--compact > div { max-width: 880px; }
}

/* ── Product frame (a controlling.app view; everything inside is product) ── */
.whk-site {
  .product-frame { position: relative; overflow: hidden; border: 1px solid var(--whk-line); border-radius: var(--whk-radius-m); background: var(--ds-bg-card); box-shadow: var(--whk-shadow-frame); color: var(--ds-fg); font-family: var(--font-sans); font-size: 14px; line-height: 1.4; letter-spacing: normal; }
  .product-frame .sx-frame { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
}

/* ── Kunden: logo wall, voices, rating, credentials ──────────────────────── */
.whk-site {
  .logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 clamp(36px, 5vw, 56px); padding: 0; list-style: none; }
  .logos li { display: grid; place-items: center; height: 92px; padding: 20px 28px; border-radius: var(--whk-radius-m); background: var(--whk-raised); box-shadow: var(--whk-shadow-edge); }
  .logos img { width: auto; max-height: 38px; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: 0.78; mix-blend-mode: multiply; }
  .quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); margin: 0; padding: 0; list-style: none; }
  .quote { display: flex; flex-direction: column; gap: 14px; padding: 12px 12px 22px; border-radius: 24px; background: var(--whk-raised); box-shadow: var(--whk-shadow-card); }
  .quote__media { position: relative; display: block; }
  .quote__media img, .quote__media video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--whk-radius-m); background: var(--whk-ink); }
  .quote > blockquote { margin: 0; padding-inline: 10px; font: italic 400 var(--whk-type-quote)/1.4 var(--whk-font-display); text-wrap: pretty; font-variant-numeric: lining-nums; }
  .quote__who { display: flex; flex-direction: column; margin: auto 0 0; padding-inline: 10px; font-size: 15px; }
  .quote__who span { color: var(--whk-muted); }
  /* A video starts from a pill on the still. */
  .play { position: absolute; bottom: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 8px; border-radius: var(--whk-radius-pill); background: rgb(255 253 248 / 0.94); color: var(--whk-ink); font: 600 13.5px/1 var(--whk-font-body); text-decoration: none; box-shadow: 0 4px 14px rgb(22 33 61 / 0.18); }
  .play::before { content: ''; width: 24px; height: 24px; border-radius: 50%; background: var(--whk-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 7.5v9l7-4.5z' fill='%23fffdf8'/%3E%3C/svg%3E") center / 24px no-repeat; }
  .play--large { bottom: 20px; left: 20px; height: 48px; padding: 0 20px 0 10px; font-size: 15px; }
  .play--large::before { width: 30px; height: 30px; background-size: 30px; }
  .proof__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: clamp(28px, 4vw, 40px); }
  .proof__note { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--whk-muted); font-size: 14px; }
  .proof__note::before { content: ''; flex: none; width: 28px; height: 1px; background: var(--whk-gold); }
  .rating { display: inline-flex; align-items: center; gap: 12px; color: var(--whk-ink); text-decoration: none; }
  .rating img { width: auto; height: 22px; }
  .rating b { font: 500 26px/1 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .rating small { color: var(--whk-muted); font-size: 13.5px; }
}

/* ── Leistungen: services and the two bars ───────────────────────────────── */
.whk-site {
  .services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin: 0; padding: 0; list-style: none; }
  .services--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { display: flex; flex-direction: column; min-width: 0; }
  .service__visual { position: relative; display: flex; justify-content: center; height: 320px; overflow: hidden; padding: 28px 22px 0; border-radius: var(--whk-radius-l); background: var(--whk-paper-alt); }
  .service__visual::after { content: ''; position: absolute; inset: auto 0 0; height: 64px; background: linear-gradient(to bottom, transparent, var(--whk-paper-alt)); pointer-events: none; }
  .service__visual > .doc { flex: none; zoom: 0.8; }
  .section--alt .service__visual { background: var(--whk-paper); }
  .section--alt .service__visual::after { background: linear-gradient(to bottom, transparent, var(--whk-paper)); }
  .service__step { display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 4px; color: var(--whk-blue); font: var(--whk-label); }
  .service__step::before { content: ''; width: 18px; height: 2px; background: var(--whk-gold); }
  .service > h3 { margin: 0 0 6px; font: var(--whk-weight-display) var(--whk-type-h3)/1.2 var(--whk-font-display); letter-spacing: var(--whk-tracking-title); font-variant-numeric: lining-nums; }
  .service__line { margin: 0; color: var(--whk-muted); font-size: 16px; }
  .service > .btn { align-self: flex-start; margin-top: 18px; }
  .service > h3 a { text-decoration: none; }
  .service > h3 a:hover { color: var(--whk-blue); }
  .service > .service__more { align-self: flex-start; margin-top: 18px; }
  .service__note { margin: 18px 0 0; color: var(--whk-muted); font-size: 14px; }
  /* Fact pills: a label and a serif figure. */
  .pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
  .pills div { display: inline-flex; align-items: baseline; gap: 8px; padding: 5px 12px; border-radius: var(--whk-radius-pill); background: var(--whk-raised); box-shadow: var(--whk-shadow-edge); font-size: 14px; }
  .pills dt { color: var(--whk-muted); }
  .pills dd { margin: 0; font: 500 16px/1.2 var(--whk-font-display); font-variant-numeric: tabular-nums lining-nums; }
  .bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: clamp(28px, 4vw, 44px) 0 0; }
  .bars p { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin: 0; padding: 16px 24px; border-radius: var(--whk-radius-pill); background: var(--whk-raised); box-shadow: var(--whk-shadow-edge); color: var(--whk-muted); font-size: 15px; }
  .bars b { color: var(--whk-ink); font-weight: var(--whk-weight-strong); }
  .bars a { color: var(--whk-blue); font-weight: var(--whk-weight-strong); text-decoration: none; white-space: nowrap; }
  .bars a:hover { text-decoration: underline; text-underline-offset: 4px; }
}

/* ── Callouts: one document, numbered pins, the answers beside it ───────── */
.whk-site {
  .callouts { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--whk-gap-l); align-items: center; }
  .callouts--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .callouts--flip .callouts__visual { order: 2; }
  .callouts__visual { display: flex; justify-content: center; min-width: 0; padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 40px); border-radius: var(--whk-radius-l); background: var(--whk-paper-alt); }
  .section--alt .callouts__visual { background: var(--whk-paper); }
  .callouts__visual > .doc { flex: none; }
  .callouts__list { display: grid; margin: 0; padding: 0; list-style: none; }
  .callouts__list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 16px; padding: 20px 0; border-top: 1px solid var(--whk-line); }
  .callouts__list li:first-child { border-top-color: var(--whk-gold); }
  .callouts__list li:last-child { border-bottom: 1px solid var(--whk-line); }
  .callouts__list b { font: var(--whk-weight-display) var(--whk-type-h4)/1.3 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .callouts__list span:not(.pin) { grid-column: 2; color: var(--whk-muted); font-size: 16px; }
  .pin { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--whk-blue); color: var(--whk-on-blue); font: 700 13px/1 var(--whk-font-body); font-style: normal; box-shadow: 0 0 0 3px var(--whk-raised); }
  .callouts__list .pin { grid-row: span 2; }
  .has-pin { position: relative; }
  /* Pins sit in the document's margin, beside the part they explain. */
  .has-pin > .pin { position: absolute; top: -3px; left: -44px; z-index: 1; }
  .calendar li.has-pin > .pin { top: 50%; left: -40px; margin-top: -14px; }
}

/* ── Lieferzahlen: each promise beside its measured value ────────────────── */
.whk-site {
  .delivery { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
  .delivery__visual { display: flex; justify-content: center; }
  .delivery__visual > .doc { flex: none; transform: rotate(-1deg); }
  .promises { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; margin: 0; padding: 0; list-style: none; }
  .promises li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; column-gap: 18px; padding: 18px 0; border-top: 1px solid var(--whk-line); }
  .promises li:first-child { border-top-color: var(--whk-gold); }
  .promises li:last-child { border-bottom: 1px solid var(--whk-gold); }
  .promises strong { color: var(--whk-blue); font: var(--whk-weight-display) var(--whk-type-numeral-l)/1 var(--whk-font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
  .promises span { color: var(--whk-muted); font-size: 16px; }
  .promises em { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: var(--whk-positive); font-size: 15px; font-style: normal; font-weight: var(--whk-weight-strong); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
  .promises em small { color: var(--whk-muted); font: var(--whk-label-s); letter-spacing: var(--whk-label-tracking); text-transform: uppercase; }
  .promises__note { margin: 14px 0 0; color: var(--whk-muted); font-size: 13px; }
}

/* ── Figures: a row of large numerals ────────────────────────────────────── */
.whk-site {
  .figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 0; padding: 24px 0 0; border-top: 1px solid var(--whk-gold); }
  .figures div { display: flex; flex-direction: column-reverse; gap: 8px; padding: 0 20px 0 0; }
  .figures div + div { padding-left: 22px; border-left: 1px solid var(--whk-line); }
  .figures dt { color: var(--whk-muted); font-size: 14px; line-height: 1.4; }
  .figures dd { margin: 0; font: var(--whk-weight-display) var(--whk-type-numeral-l)/1 var(--whk-font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
  .figures sup { font-size: 0.5em; vertical-align: 0.8em; }
}

/* ── Team: the people behind the numbers ─────────────────────────────────── */
.whk-site {
  .team { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--whk-gap-l); align-items: center; }
  .team__photo { margin: 0; }
  .team__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--whk-radius-xl); }
  .team__photo figcaption { margin-top: 12px; }
  .timeline-facts { display: grid; margin: 28px 0 0; }
  .timeline-facts div { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--whk-line); }
  .timeline-facts div:first-child { border-top-color: var(--whk-gold); }
  .timeline-facts dt { color: var(--whk-blue); font: var(--whk-weight-display) 22px/1.25 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .timeline-facts dd { margin: 0; color: var(--whk-muted); font-size: 16px; }
  .badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
  .badges li { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--whk-radius-pill); background: var(--whk-raised); box-shadow: var(--whk-shadow-edge); font-size: 13.5px; font-weight: var(--whk-weight-strong); }
  .badges img { width: auto; height: 16px; filter: brightness(0); opacity: 0.82; }
  .team__more { margin: 22px 0 0; }
}

/* ── Media: an interview or talk ─────────────────────────────────────────── */
.whk-site {
  .media { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--whk-gap-l); align-items: center; }
  .media__video { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--whk-radius-l); background: var(--whk-ink); box-shadow: var(--whk-shadow-frame); }
  .media__video img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .media__meta { margin: 0; color: var(--whk-muted); font-size: 14px; }
  .media__links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 22px 0 0; padding: 0; list-style: none; }
}

/* ── Place: the office ───────────────────────────────────────────────────── */
.whk-site {
  .place { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--whk-gap-l); align-items: center; }
  .place__photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--whk-radius-xl); }
  .address { margin: 24px 0 0; font: var(--whk-weight-display) 24px/1.35 var(--whk-font-display); font-style: normal; font-variant-numeric: lining-nums; }
}

/* ── Articles: Wissen teaser ─────────────────────────────────────────────── */
.whk-site {
  .articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); margin: 0; padding: 0; list-style: none; }
  .article { position: relative; display: flex; flex-direction: column; gap: 10px; }
  .article > img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--whk-radius-m); background: var(--whk-paper-alt); box-shadow: var(--whk-shadow-edge); }
  .article__meta { margin: 6px 0 0; color: var(--whk-muted); font-size: 13px; }
  .article > h3 { margin: 0; font: var(--whk-weight-display) 22px/1.3 var(--whk-font-display); letter-spacing: var(--whk-tracking-title); text-wrap: balance; font-variant-numeric: lining-nums; }
  .article > h3 a { text-decoration: none; }
  .article > h3 a::after { content: ''; position: absolute; inset: 0; }
  .article:hover > h3 { color: var(--whk-blue); }
  /* In the CMS a card shows the post's image, else the screenshot its article
     shows (a workbook's top left), else its topic on a calm tile (Jan, 2026-10-18). */
  .article > img.article__image--workbook, .article > img.article__image--document { object-position: left top; background: #fff; }
  /* On a topic page a post without a picture shows its summary on paper,
     where a tile would only repeat the page's own topic (Jan, 2026-10-18). */
  .article:has(> .article__excerpt) { padding: 22px 24px; border-radius: var(--whk-radius-m); background: var(--whk-paper-alt); box-shadow: var(--whk-shadow-edge); }
  .section--alt .article:has(> .article__excerpt) { background: var(--whk-paper); }
  .article__excerpt { order: 1; display: -webkit-box; margin: 0; overflow: hidden; color: var(--whk-muted); font-size: 15px; line-height: 1.5; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
  .article__tile { display: flex; align-items: flex-end; aspect-ratio: 1200 / 630; padding: clamp(16px, 2vw, 22px); border-radius: var(--whk-radius-m); background: var(--whk-paper-alt); box-shadow: var(--whk-shadow-edge); }
  .section--alt .article__tile { background: var(--whk-paper); }
  .article__tile > span { padding-top: 10px; border-top: 2px solid var(--whk-gold); color: var(--whk-blue); font: var(--whk-weight-display) 19px/1.25 var(--whk-font-display); text-wrap: balance; }
  /* Listings and the Finanz-Tools: a template's lead visual is its file (.sheet);
     a tool adds one line and where it opens. */
  .article__line { display: -webkit-box; margin: 0; overflow: hidden; color: var(--whk-muted); font-size: 15px; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; }
  .article__open { margin-top: auto; padding-top: 2px; color: var(--whk-blue); font-size: 14.5px; font-weight: var(--whk-weight-strong); }
  .article[hidden] { display: none; }
  .articles--many { row-gap: clamp(36px, 4vw, 52px); }
}

/* ── Tabellenblatt: the lead visual of a template that has no image ──────── */
.whk-site {
  /* Drawn, not a picture: header row, a label column and three value columns.
     The port shows the file's own preview instead once it exists. */
  .sheet { position: relative; display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 1200 / 630; overflow: hidden; border-radius: var(--whk-radius-m); background: var(--whk-paper-alt); box-shadow: var(--whk-shadow-edge); }
  .section--alt .sheet { background: var(--whk-paper); }
  .sheet__paper { position: relative; width: 74%; height: 76%; overflow: hidden; border-radius: var(--whk-radius-doc) var(--whk-radius-doc) 0 0; background:
      linear-gradient(to right, transparent 0 36%, var(--doc-line) 36% calc(36% + 1px), transparent 0 57%, var(--doc-line) 57% calc(57% + 1px), transparent 0 78%, var(--doc-line) 78% calc(78% + 1px), transparent 0),
      repeating-linear-gradient(to bottom, transparent 0 calc(16.6% - 1px), var(--doc-line) calc(16.6% - 1px) 16.6%),
      var(--doc-paper);
    box-shadow: 0 1px 0 #d8cdb6, 0 16px 34px rgb(40 35 60 / 0.12); }
  .sheet__name { position: absolute; inset: 0 0 auto; display: block; height: 17%; min-height: 20px; padding: 0 12px; overflow: hidden; background: var(--whk-blue-wash); color: var(--whk-blue); font: 600 11.5px/1 var(--whk-font-body); white-space: nowrap; text-overflow: ellipsis; align-content: center; }
  .sheet__type { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: var(--whk-radius-pill); background: var(--whk-raised); box-shadow: var(--whk-shadow-edge); color: var(--whk-ink); font: 600 12.5px/1.3 var(--whk-font-body); }
  .sheet__type::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--whk-blue); }
  /* A tool's own example: two inputs and its result, in place of empty rows. */
  .sheet__paper--figures { background: var(--doc-paper); }
  .sheet__figures { position: absolute; inset: max(17%, 20px) 0 0; display: flex; flex-direction: column; padding: 4px 14px 0; }
  .sheet__figure { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--doc-line); color: var(--whk-muted); font: 500 11.5px/1.2 var(--whk-font-body); font-variant-numeric: tabular-nums lining-nums; }
  .sheet__figure > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .sheet__figure > b { color: var(--doc-ink); font-weight: 600; white-space: nowrap; }
  .sheet__figure--result { border-bottom: 0; color: var(--doc-ink); font-weight: 600; }
  .sheet__figure--result > b { color: var(--whk-blue); }
  /* A text post without an image: a page with its topic and text lines. */
  .sheet--page .sheet__paper { width: 56%; background:
      repeating-linear-gradient(to bottom, var(--doc-line) 0 2px, transparent 2px 16px) 16px 34% / calc(100% - 32px) 60% no-repeat,
      var(--doc-paper); }
  .sheet--page .sheet__type::before { border-radius: 50%; }
}

/* ── Suchfeld: one field and one button, to the first-party /search ─────── */
.whk-site {
  .search { display: flex; align-items: center; gap: 10px; width: min(100%, 640px); margin: 30px 0 0; padding: 6px 6px 6px 20px; border-radius: var(--whk-radius-pill); background: #fff; box-shadow: inset 0 0 0 1px var(--whk-line-strong), var(--whk-shadow-edge); }
  .search:focus-within { box-shadow: inset 0 0 0 1.5px var(--whk-blue), 0 0 0 4px var(--whk-blue-wash); }
  .search > svg { flex: none; width: 20px; height: 20px; color: var(--whk-muted); }
  .search__input { flex: 1; min-width: 0; height: 46px; padding: 0; border: 0; background: none; color: var(--whk-ink); font: 400 17px/1.4 var(--whk-font-body); outline: none; appearance: none; }
  .search__input:focus-visible { box-shadow: none; }
  .search__input::placeholder { color: var(--whk-muted); }
  .search__input::-webkit-search-decoration { appearance: none; }
  .search > .btn { flex: none; }
}

/* ── Themen: topic links with their counts ───────────────────────────────── */
.whk-site {
  /* The runtime writes a.category-tab with span.category-count into the target
     (declarative-content.ts, renderCategoryNavigation); the block styles exactly
     that markup. On Finanz-Tools the same pills are filter buttons. */
  .topics { margin: 0 0 clamp(28px, 4vw, 44px); }
  .topics__list { display: flex; flex-wrap: wrap; gap: 8px; }
  .topics .category-tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: var(--whk-radius-pill); background: var(--whk-raised); box-shadow: inset 0 0 0 1px var(--whk-line-strong); color: var(--whk-ink); font: 500 14.5px/1 var(--whk-font-body); text-decoration: none; white-space: nowrap; cursor: pointer; }
  .topics .category-tab:hover { box-shadow: inset 0 0 0 1px var(--whk-ink); }
  .topics .category-tab:focus-visible { border-radius: var(--whk-radius-pill); }
  .topics .category-count { color: var(--whk-muted); font: 500 15px/1 var(--whk-font-display); font-variant-numeric: tabular-nums lining-nums; }
  .topics .category-tab.active, .topics .category-tab[aria-pressed="true"] { background: var(--whk-blue); box-shadow: none; color: var(--whk-on-blue); }
  .topics .category-tab.active .category-count, .topics .category-tab[aria-pressed="true"] .category-count { color: var(--whk-on-blue-muted); }
  /* Listings: the topics as a rail beside the cards, like a table of contents
     with counts. From tablet width down the rail turns back into pills. */
  .listing { display: grid; grid-template-columns: minmax(220px, 270px) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
  .listing .bars, .bars--stack { grid-template-columns: minmax(0, 1fr); }
  .listing > .topics--rail { position: sticky; top: 100px; margin: 0; }
  .topics__head { margin: 0 0 12px; color: var(--whk-ink); font: var(--whk-label-s); letter-spacing: var(--whk-label-tracking); text-transform: uppercase; }
  .topics--rail .topics__list { flex-direction: column; flex-wrap: nowrap; gap: 0; border-left: 1px solid var(--whk-line); }
  .topics--rail .category-tab { justify-content: space-between; width: 100%; height: auto; min-height: 36px; margin-left: -1px; padding: 7px 0 7px 14px; border-left: 2px solid transparent; border-radius: 0; background: none; box-shadow: none; color: var(--whk-muted); font-size: 14.5px; line-height: 1.35; white-space: normal; text-align: left; }
  .topics--rail .category-tab:hover { border-left-color: var(--whk-gold); box-shadow: none; color: var(--whk-ink); }
  .topics--rail .category-tab.active { border-left-color: var(--whk-blue); background: none; color: var(--whk-ink); font-weight: var(--whk-weight-strong); }
  .topics--rail .category-tab.active .category-count { color: var(--whk-blue); }
}

/* ── Seiten: Zurück and Weiter on listings, page numbers in the search ───── */
.whk-site {
  /* Listings render only Zurück and Weiter (updatePaginationControls); the
     search runtime writes nav.custom-pagination with a.pagination-btn,
     a.page-btn(.active) and span.page-btn.disabled (siteSearchPaginationHtml). */
  .pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: clamp(40px, 5vw, 60px); padding-top: 22px; border-top: 1px solid var(--whk-gold); }
  .pager__note { margin: 0; color: var(--whk-muted); font-size: 14.5px; }
  .pager nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  /* The listing runtime writes the numbers into one wrapper (data-content-pagination-pages); it takes no box of its own. */
  .pager__pages { display: contents; }
  .pager .pagination-btn, .pager .page-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 18px; border-radius: var(--whk-radius-pill); background: var(--whk-raised); box-shadow: inset 0 0 0 1px var(--whk-line-strong); color: var(--whk-ink); font: 600 15px/1 var(--whk-font-body); text-decoration: none; }
  .pager .page-btn { padding: 0 12px; font: 500 17px/1 var(--whk-font-display); font-variant-numeric: tabular-nums lining-nums; }
  .pager a:hover { box-shadow: inset 0 0 0 1px var(--whk-ink); }
  .pager a:focus-visible { border-radius: var(--whk-radius-pill); }
  .pager .page-btn.active { background: var(--whk-blue); box-shadow: none; color: var(--whk-on-blue); }
  .pager .page-btn.disabled { min-width: 20px; padding: 0; background: none; box-shadow: none; color: var(--whk-muted); }
  .pager .pagination-btn svg { width: 16px; height: 16px; }
}

/* ── Treffer: search results, newest first ───────────────────────────────── */
.whk-site {
  /* The count line is written by the runtime as plain text (#results-count or
     [data-search-results-count]); the card is authored and repeated per hit. */
  .results-count { margin: 0 0 18px; font: var(--whk-weight-display) var(--whk-type-h4)/1.3 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .results { max-width: 880px; margin: 0; padding: 0; border-top: 1px solid var(--whk-gold); list-style: none; }
  .result { position: relative; display: grid; gap: 6px; padding: 22px 0 24px; border-bottom: 1px solid var(--whk-line); }
  .result__meta { margin: 0; color: var(--whk-muted); font-size: 13.5px; }
  .result__meta b { color: var(--whk-blue); font-weight: var(--whk-weight-strong); }
  .result > h3 { margin: 0; font: var(--whk-weight-display) 22px/1.3 var(--whk-font-display); letter-spacing: var(--whk-tracking-title); text-wrap: balance; font-variant-numeric: lining-nums; }
  .result > h3 a { text-decoration: none; }
  .result > h3 a::after { content: ''; position: absolute; inset: 0; }
  .result:hover > h3 { color: var(--whk-blue); }
  .result__excerpt { display: -webkit-box; max-width: 46em; margin: 0; overflow: hidden; color: var(--whk-muted); font-size: 15.5px; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
  .results + .pager { max-width: 880px; }
  .results:not(:has(li)), .pager:not(:has(a)) { display: none; }
  /* No hits: the runtime toggles the wrapper (display:block), the design sits inside. */
  .results-empty > .empty { max-width: 880px; margin-bottom: 24px; }
  .results-empty > .section-head { margin-top: clamp(48px, 6vw, 80px); }
}

/* ── Rechtstext: Impressum, Datenschutz, AGB ─────────────────────────────── */
.whk-site {
  /* Contents on the left (sticky under the header), the text at reading width.
     Impressum is short and runs without contents (.legal--single). */
  .legal { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 46em); gap: clamp(32px, 6vw, 96px); align-items: start; }
  .legal--single { grid-template-columns: minmax(0, 46em); }
  .legal__toc { position: sticky; top: 100px; max-height: calc(100vh - 124px); overflow: auto; }
  .legal__toc > p { margin: 0 0 12px; color: var(--whk-ink); font: var(--whk-label-s); letter-spacing: var(--whk-label-tracking); text-transform: uppercase; }
  .legal__toc ol { margin: 0; padding: 0; border-left: 1px solid var(--whk-line); list-style: none; }
  .legal__toc a { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; color: var(--whk-muted); font-size: 14px; line-height: 1.4; text-decoration: none; }
  .legal__toc a:hover { border-left-color: var(--whk-gold); color: var(--whk-ink); }
  .legal__text { min-width: 0; font-size: 16.5px; line-height: 1.75; }
  .legal__text > h2 { margin: 44px 0 14px; padding-top: 28px; border-top: 1px solid var(--whk-line); font: var(--whk-weight-display) clamp(22px, 2vw, 26px)/1.25 var(--whk-font-display); letter-spacing: var(--whk-tracking-title); scroll-margin-top: 100px; font-variant-numeric: lining-nums; }
  .legal__text > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
  .legal__text > .legal__facts + h2 { margin-top: 40px; padding-top: 0; border-top: 0; }
  .legal__text > h3 { margin: 28px 0 8px; font: var(--whk-weight-strong) 17.5px/1.4 var(--whk-font-body); }
  .legal__text > p, .legal__text > ul { margin: 0 0 16px; }
  .legal__text > ul { padding-left: 22px; }
  .legal__text li { margin: 6px 0; }
  .legal__text li::marker { color: var(--whk-muted); }
  .legal__text a { color: var(--whk-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
  .legal__text strong { font-weight: var(--whk-weight-strong); }
  .legal__facts { display: grid; margin: 0 0 28px; border-top: 1px solid var(--whk-gold); }
  .legal__facts > div { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--whk-line); }
  .legal__facts dt { color: var(--whk-muted); font-size: 14.5px; font-weight: var(--whk-weight-strong); }
  .legal__facts dd { margin: 0; }
  .legal__note { margin: 20px 0 24px; padding: 18px 22px; border-radius: var(--whk-radius-s); background: var(--whk-paper-alt); font-size: 15.5px; line-height: 1.65; }
  .legal__note > p { margin: 0 0 8px; }
  .legal__note > p:last-child { margin-bottom: 0; }
  .legal__stand { margin: 18px 0 0; color: var(--whk-muted); font-size: 14px; }
}

/* ── Artikelkopf: the article's head, in the renderer's five cases ───────── */
.whk-site {
  /* The renderer names the case on the root (data-attachment-state,
     template-composition.ts): with a featured image or a workbook the visual
     stands beside the text; with neither the head is one column and the text
     follows at once. Image and workbook together: the workbook wins, the image
     stays for cards and social. The root keeps .hero-container, the slots
     .hero-image, .hero-viewer and .hero-download, the renderer's defaults. */
  .post-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--whk-gap-xl); align-items: center; padding: clamp(24px, 3vw, 44px) var(--whk-gutter) clamp(28px, 3vw, 48px); }
  .post-head:is([data-attachment-state="text-only"], [data-attachment-state="download-only"]) { grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(24px, 3vw, 40px); }
  .post-head:is([data-attachment-state="text-only"], [data-attachment-state="download-only"]) > .post-head__copy { max-width: 880px; }
  /* The title may run wide; the byline's rule keeps the lead's measure. */
  .post-head:is([data-attachment-state="text-only"], [data-attachment-state="download-only"]) .byline { max-width: var(--whk-measure); }
  /* Article titles run long ("Deckungsbeitragsrechnung:"): German hyphenation, never a break inside a syllable. */
  .post-head__title { margin: 0; font: var(--whk-weight-display) var(--whk-type-title)/1.1 var(--whk-font-display); letter-spacing: var(--whk-tracking-display); text-wrap: balance; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; font-variant-numeric: lining-nums; }
  /* The head stays short: the article's first paragraph belongs on the first
     screen, on a phone too (Gate A, 2026-11-25). */
  .post-head .crumbs { margin-bottom: 14px; }
  .post-head .lead { margin-top: 14px; }
  .post-head__media { min-width: 0; }
  /* The featured image is drawn on the page's cream: an edge and a shadow
     lift it off the page. */
  .post-head__image img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: var(--whk-radius-l); background: var(--whk-paper); box-shadow: 0 0 0 1px var(--whk-line), var(--whk-shadow-card); }
  .post-head[data-attachment-state="featured-image-and-spreadsheet-viewer"] .post-head__image { display: none; }
  .post-head__download { margin-top: 20px; }
  /* Byline: who wrote it, when, how long. The gold rule opens it. */
  .byline { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 2px 14px; margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--whk-gold); }
  .byline__img { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--whk-raised); box-shadow: 0 0 0 3px var(--whk-raised), 0 0 0 4px var(--whk-line); }
  .byline__who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin: 0; }
  .byline__who a { font-weight: var(--whk-weight-strong); text-decoration: none; }
  .byline__who a:hover { color: var(--whk-blue); text-decoration: underline; text-underline-offset: 3px; }
  .byline__role { color: var(--whk-muted); font-size: 14px; }
  .byline__facts { display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 0; color: var(--whk-muted); font-size: 14px; }
  .byline__facts div { display: flex; gap: 6px; }
  .byline__facts dd { margin: 0; color: var(--whk-ink); font-variant-numeric: lining-nums; }
}

/* ── Datei: the file of a download page, and its preview ─────────────────── */
.whk-site {
  /* The renderer's own markup (attachments.ts downloadCards, heroViewer) with
     its class names. The viewer rules name .attachment-viewer--hero so they
     outrank the style block the viewer brings (data-attachment-viewer-styles).
     The file cards still carry inline styles: the port renders them
     class-only (BLOCKS.md §Port). */
  .attachment-cards { display: grid; gap: 10px; }
  .attachment-download-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: var(--whk-radius-l); background: var(--whk-raised); box-shadow: 0 0 0 1px var(--whk-line), var(--whk-shadow-edge); }
  .attachment-download-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--whk-blue-wash); color: var(--whk-blue); }
  .attachment-download-card__icon svg { width: 24px; height: 24px; }
  .attachment-download-card__info { display: flex; flex-direction: column; min-width: 0; }
  .attachment-download-card__filename { font-weight: var(--whk-weight-strong); line-height: 1.3; overflow-wrap: anywhere; }
  .attachment-download-card__filemeta { color: var(--whk-muted); font-size: 13.5px; }
  .attachment-download-card__cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: var(--whk-radius-pill); background: var(--whk-blue); color: var(--whk-on-blue); font: 600 14.5px/1 var(--whk-font-body); text-decoration: none; white-space: nowrap; }
  .attachment-download-card__cta::before { content: '↓'; font-weight: 700; }
  .attachment-download-card__cta:hover { background: var(--whk-blue-strong); }
  .attachment-download-card__cta:focus-visible { border-radius: var(--whk-radius-pill); }
  .attachment-viewer--hero { display: block; margin: 0; }
  .attachment-viewer--hero .attachment-viewer__preview { position: relative; overflow: hidden; border-radius: var(--whk-radius-l); background: #fff; box-shadow: 0 0 0 1px var(--whk-line), var(--whk-shadow-frame); }
  .attachment-viewer--hero .attachment-viewer__preview-media { display: block; width: 100%; height: auto; aspect-ratio: 40 / 21; object-fit: cover; object-position: top; }
  .attachment-viewer--hero .attachment-viewer__load-trigger { position: absolute; bottom: 18px; left: 50%; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 0; border-radius: var(--whk-radius-pill); background: var(--whk-raised); box-shadow: 0 0 0 1px var(--whk-line), 0 8px 22px rgb(22 33 61 / 0.16); color: var(--whk-blue); font: 600 14.5px/1 var(--whk-font-body); white-space: nowrap; transform: translateX(-50%); cursor: pointer; }
  .attachment-viewer--hero .attachment-viewer__load-trigger:hover { background: #fff; box-shadow: 0 0 0 1px var(--whk-blue), 0 8px 22px rgb(22 33 61 / 0.16); }
  .attachment-viewer--hero .attachment-viewer__load-trigger svg { width: 16px; height: 16px; }
  /* The PDF frame: the viewer's own 320px minimum height at 40 / 21 asks for
     610px of width, wider than a phone; keep it inside the column. */
  .attachment-viewer--hero .attachment-viewer__interactive { max-width: 100%; }
  /* At the end of the article: the same card under a head. */
  .post__download { margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--whk-gold); }
  /* A post without a file: the renderer leaves the block empty, so it takes no room. */
  .post__download:not(:has(.attachment-download-card)) { display: none; }
  /* The article's contents list only its sections (h2): the renderer also nests h3 and h4. */
  :is(.post__toc, .post__toc-mobile) :is(.toc-sublist, .toc-toggle) { display: none; }
  .post__download-head { margin: 0 0 14px; font: var(--whk-weight-display) var(--whk-type-h4)/1.3 var(--whk-font-display); font-variant-numeric: lining-nums; }
}

/* ── Lesespalte: contents beside the text, the text at reading width ─────── */
.whk-site {
  /* The Rechtstext geometry. The runtime fills #toc-list (and on small
     screens #toc-list-mobile) with li.toc-item > a.toc-link and marks the
     current heading .active; the template sets its heading selector to h2. */
  .post { display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 44em); gap: clamp(32px, 6vw, 96px); align-items: start; padding: 0 var(--whk-gutter) var(--whk-section); }
  .post__toc { position: sticky; top: 100px; max-height: calc(100vh - 124px); overflow: auto; }
  .post__toc > p { margin: 0 0 12px; color: var(--whk-ink); font: var(--whk-label-s); letter-spacing: var(--whk-label-tracking); text-transform: uppercase; }
  .post__toc .toc-list { margin: 0; padding: 0; border-left: 1px solid var(--whk-line); list-style: none; }
  .post__toc .toc-link { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; color: var(--whk-muted); font-size: 14px; line-height: 1.4; text-decoration: none; }
  .post__toc .toc-link:hover { border-left-color: var(--whk-gold); color: var(--whk-ink); }
  .post__toc .toc-link.active { border-left-color: var(--whk-blue); color: var(--whk-ink); font-weight: var(--whk-weight-strong); }
  .post__body { min-width: 0; }
  .post__toc-mobile { display: none; margin: 0 0 32px; border-radius: var(--whk-radius-l); background: var(--whk-raised); box-shadow: 0 0 0 1px var(--whk-line); }
  .post__toc-mobile > summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: var(--whk-weight-strong); list-style: none; cursor: pointer; }
  .post__toc-mobile > summary::-webkit-details-marker { display: none; }
  .post__toc-mobile > summary span { color: var(--whk-muted); font-weight: 400; }
  .post__toc-mobile > summary::after { content: '+'; margin-left: auto; color: var(--whk-blue); font: 400 24px/1 var(--whk-font-body); }
  .post__toc-mobile[open] > summary::after { content: '−'; }
  .post__toc-mobile .toc-list { margin: 0; padding: 0 18px 10px; list-style: none; }
  .post__toc-mobile .toc-link { display: block; padding: 10px 0; border-top: 1px solid var(--whk-line); color: var(--whk-ink); font-size: 15px; line-height: 1.4; text-decoration: none; }
}

/* ── Fließtext: the article body as the CMS stores it ────────────────────── */
.whk-site {
  /* Rules reach into the stored HTML, so they name only its own elements and
     the classes the article generator writes. Figures, formulas, tables,
     calculators and questions get a D frame; what they draw stays the
     article's. Tables carry inline colours and borders (#073763, Arial), so
     only their rules use !important. */
  .prose { font-size: 18px; line-height: 1.7; overflow-wrap: break-word; }
  .prose > * { margin-top: 0; }
  .prose > p, .prose > ul, .prose > ol { margin-bottom: 1.1em; }
  .prose > h2 { margin: 56px 0 16px; padding-top: 28px; border-top: 1px solid var(--whk-line); font: var(--whk-weight-display) clamp(26px, 2.4vw, 32px)/1.2 var(--whk-font-display); letter-spacing: var(--whk-tracking-title); text-wrap: balance; scroll-margin-top: 100px; font-variant-numeric: lining-nums; }
  .prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
  .prose h3 { margin: 36px 0 10px; font: var(--whk-weight-display) 22px/1.3 var(--whk-font-display); letter-spacing: var(--whk-tracking-title); scroll-margin-top: 100px; font-variant-numeric: lining-nums; }
  .prose > ul, .prose > ol { padding-left: 1.4em; }
  .prose li { margin: 0.45em 0; }
  .prose li::marker { color: var(--whk-blue); }
  .prose ol > li::marker { font-weight: var(--whk-weight-strong); }
  .prose strong, .prose b { font-weight: var(--whk-weight-strong); }
  .prose a { color: var(--whk-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
  .prose a:hover { text-decoration-thickness: 2px; }
  .prose a[target="_blank"]::after { content: ' ↗'; font-size: 0.85em; }
  .prose blockquote { margin: 32px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--whk-gold); font: italic 400 21px/1.5 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .prose code { padding: 1px 6px; border-radius: 6px; background: var(--whk-paper-alt); font: 0.88em/1.5 ui-monospace, 'SF Mono', Menlo, monospace; }
  .prose img { max-width: 100%; height: auto; }
  /* Figures and the generator's drawn visuals: a raised tile. */
  .prose > :is(figure, .hero-visual, .summary-visual, .svg-container) { margin: 36px 0; padding: clamp(10px, 2vw, 18px); border-radius: var(--whk-radius-l); background: var(--whk-raised); box-shadow: 0 0 0 1px var(--whk-line); }
  .prose > :is(.hero-visual, .summary-visual, .svg-container) > svg { display: block; width: 100%; height: auto; }
  .prose > figure img { display: block; margin-inline: auto; border-radius: var(--whk-radius-s); }
  .prose figcaption { margin-top: 10px; color: var(--whk-muted); font: italic 400 15px/1.4 var(--whk-font-display); text-align: center; font-variant-numeric: lining-nums; }
  /* Formulas: server-rendered KaTeX on a quiet tile; wide ones scroll. */
  .prose > .mathjax-embed-styles { margin: 28px 0; padding: 18px 22px; overflow-x: auto; border-radius: var(--whk-radius-l); background: var(--whk-paper-alt); }
  .prose > .mathjax-embed-styles > p { margin: 0 0 8px; font-size: 16px; line-height: 1.6; }
  .prose > .mathjax-embed-styles > p:has(> strong:only-child) { margin-bottom: 2px; color: var(--whk-muted); font-size: 14px; }
  .prose > .mathjax-embed-styles > ul { margin: 0 0 4px; padding-left: 1.3em; font-size: 16px; }
  .prose .katex-display { margin: 10px 0; }
  .prose .katex { font-size: 1.12em; }
  /* Tables: rules and type from D, over the stored inline styles. */
  .prose div:has(> table) { margin: 32px 0; overflow-x: auto; border-radius: var(--whk-radius-l); background: var(--whk-raised); box-shadow: 0 0 0 1px var(--whk-line); }
  .prose table { width: 100%; border-collapse: collapse; font-family: inherit !important; font-size: 15.5px; line-height: 1.5; }
  .prose :is(th, td) { padding: 12px 16px !important; border: 0 !important; border-bottom: 1px solid var(--whk-line) !important; background: none !important; color: inherit !important; text-align: left; vertical-align: top; }
  .prose thead th { border-bottom-color: var(--whk-gold) !important; font-weight: var(--whk-weight-strong); }
  .prose tbody tr:last-child > * { border-bottom: 0 !important; }
  /* Rechner: generated per article with their own style block. The frame,
     the type, the fields and the one action colour are D's; the arithmetic
     and the layout inside stay the article's. */
  .prose :is(.calculator-widget, .liquidity-calculator) { max-width: none; margin: 36px 0; padding: clamp(18px, 3vw, 28px); border: 0; border-radius: var(--whk-radius-l); background: var(--whk-raised); box-shadow: 0 0 0 1px var(--whk-line), var(--whk-shadow-card); color: var(--whk-ink); font-family: var(--whk-font-body); font-size: 16px; }
  .prose :is(.calculator-widget, .liquidity-calculator) .calculator-widget { margin: 0; padding: 0; background: none; box-shadow: none; }
  .prose :is(.calculator-widget, .liquidity-calculator) :is(h3, h4, .calc-title) { margin: 0 0 18px; padding: 0; border: 0; color: var(--whk-ink); font: var(--whk-weight-display) 22px/1.3 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .prose :is(.calculator-widget, .liquidity-calculator) label { color: var(--whk-ink); font-size: 14px; font-weight: var(--whk-weight-strong); }
  .prose :is(.calculator-widget, .liquidity-calculator) :is(input, select) { height: 46px; padding: 0 14px; border: 1px solid var(--whk-line-strong); border-radius: var(--whk-radius-s); background: #fff; color: var(--whk-ink); font: 400 16px/1.4 var(--whk-font-body); }
  .prose :is(.calculator-widget, .liquidity-calculator) :is(input, select):focus { border-color: var(--whk-blue); outline: none; box-shadow: 0 0 0 3px var(--whk-blue-wash); }
  .prose :is(.calculator-widget, .liquidity-calculator) button { height: 46px; padding: 0 22px; border: 0; border-radius: var(--whk-radius-pill); background: var(--whk-blue); color: var(--whk-on-blue); font: 600 15px/1 var(--whk-font-body); cursor: pointer; }
  .prose :is(.calculator-widget, .liquidity-calculator) button:hover { background: var(--whk-blue-strong); }
  .prose :is(.calculator-widget, .liquidity-calculator) :is(.calc-result, .results-area) { border: 0; border-left: 3px solid var(--whk-blue); border-radius: var(--whk-radius-s); background: var(--whk-paper); }
  /* A calculator whose markup names a grid of fields but brings no styles
     (no style block, no inline styles) takes its layout from here: the
     fields in a grid, each under its label, the results set apart. Only
     with the extra class, so a calculator with its own layout stays as it
     is (the same rules without it moved 100 of 235 of them). */
  .prose .calculator-widget--plain :is(div, form):has(> div > label + :is(input, select)) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); align-items: start; gap: 16px 18px; margin: 0 0 20px; }
  .prose .calculator-widget--plain label:has(+ input, + select) { display: block; margin: 0 0 6px; }
  .prose .calculator-widget--plain label + :is(input, select) { width: 100%; }
  .prose .calculator-widget--plain [aria-live]:has(> *) { padding: 14px 16px; border-left: 3px solid var(--whk-blue); border-radius: var(--whk-radius-s); background: var(--whk-paper); }
  .prose .calculator-widget--plain [aria-live] :is(div, p, li):has(> :is(span, strong, b, output) + :is(span, strong, b, output)) { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; margin: 0; }
  .prose .calculator-widget--plain [aria-live] :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
  /* Grafik vergrößern (Jan, 2026-11-28): a wide diagram keeps its place in
     the text; on a phone, where its labels arrive at 3 to 8 px, a button
     opens it on the whole screen at a size that reads. artikel.html's script
     adds the button after the diagram and moves the diagram into the dialog
     and back. No box wraps the diagram, so an article's own rules for it
     keep matching. The button shows on phones only (below); desktop stays
     as it is. */
  .prose button.diagram-zoom__btn { display: none; }
  .diagram-dialog { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; color: var(--whk-ink); font-family: var(--whk-font-body); }
  .diagram-dialog[open] { display: flex; flex-direction: column; }
  .diagram-dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--whk-line); }
  .diagram-dialog__title { min-width: 0; margin: 0; overflow: hidden; color: var(--whk-ink); font: var(--whk-label); text-overflow: ellipsis; white-space: nowrap; }
  .prose button.diagram-zoom__btn, .diagram-dialog__close { flex: none; align-items: center; gap: 6px; width: max-content; white-space: nowrap; height: auto; min-height: 36px; padding: 0 13px; border: 1px solid var(--whk-blue); border-radius: var(--whk-radius-pill); background: #fff; color: var(--whk-blue); font: 600 13px/1 var(--whk-font-body); cursor: pointer; }
  .prose button.diagram-zoom__btn:focus-visible, .diagram-dialog__close:focus-visible { border-radius: var(--whk-radius-pill); }
  .diagram-dialog__pan { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 12px; }
  .diagram-dialog__hint { margin: 0; padding: 8px 14px; border-top: 1px solid var(--whk-line); color: var(--whk-muted); font-size: 12px; line-height: 1.3; }
  .prose :is(.db-positive, .status-ok) { color: var(--whk-positive); }
  .prose :is(.db-negative, .status-warn) { color: var(--whk-negative); }
  /* Questions: the FAQ look, open, because the answers are content. */
  .prose > .faq-section { margin: 20px 0 1.1em; border-top: 1px solid var(--whk-gold); }
  .prose > .faq-section > h3 { margin: 0; padding: 20px 0 6px; font-size: var(--whk-type-h4); line-height: 1.35; }
  .prose > .faq-section > h3:not(:first-child) { border-top: 1px solid var(--whk-line); }
  .prose > .faq-section > p { margin: 0 0 20px; color: var(--whk-muted); font-size: 16.5px; }
}

/* ── Artikelfuß: legal note, topics, share, the author ───────────────────── */
.whk-site {
  /* The renderer emits the note for the categories in the global
     disclaimerCategories (template-composition.ts legalDisclaimerCard). */
  .disclaimer-legal-card { display: block; margin: 44px 0 0; padding: 18px 22px; border-radius: var(--whk-radius-s); background: var(--whk-paper-alt); color: var(--whk-muted); font-size: 14.5px; line-height: 1.6; }
  .disclaimer-legal-card > strong { display: block; margin-bottom: 4px; color: var(--whk-ink); font-weight: var(--whk-weight-strong); }
  .disclaimer-legal-card > p { margin: 0; }
  .post-foot { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--whk-line); }
  .post-foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
  .post-foot__topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
  .post-foot__topics .article-category-link { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: var(--whk-radius-pill); background: var(--whk-raised); box-shadow: inset 0 0 0 1px var(--whk-line-strong); color: var(--whk-ink); font-size: 14px; font-weight: 500; text-decoration: none; }
  .post-foot__topics .article-category-link:hover { box-shadow: inset 0 0 0 1px var(--whk-ink); }
  .post-foot__topics .article-category-link:focus-visible { border-radius: var(--whk-radius-pill); }
  .share { display: flex; align-items: center; gap: 20px; }
  .author { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: 18px; margin-top: 28px; padding: 24px 26px; border-radius: var(--whk-radius-l); background: var(--whk-raised); box-shadow: var(--whk-shadow-edge); }
  .author__img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--whk-paper); box-shadow: 0 0 0 3px var(--whk-raised), 0 0 0 4px var(--whk-line); }
  .author__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0; }
  .author__name > a { font: var(--whk-weight-display) 20px/1.3 var(--whk-font-display); text-decoration: none; font-variant-numeric: lining-nums; }
  .author__name > a:hover { color: var(--whk-blue); }
  .author__role { color: var(--whk-muted); font-size: 14px; }
  .author__bio { max-width: 40em; margin: 8px 0 0; color: var(--whk-muted); font-size: 15.5px; line-height: 1.6; }
}

/* ── Passende Leistung: the service an article leads to ─────────────────── */
.whk-site {
  /* One line under every article, chosen by the article's topics (related.mjs
     serviceFor): the service's promise, its line, the link, its document. */
  .post-service { display: grid; grid-template-columns: minmax(0, 1fr) 232px; overflow: hidden; margin: 44px 0 0; border-radius: var(--whk-radius-l); background: var(--whk-raised); box-shadow: 0 0 0 1px var(--whk-line), var(--whk-shadow-card); }
  .post-service__copy { padding: 24px 26px 26px; }
  .post-service__label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--whk-blue); font: var(--whk-label); }
  .post-service__label::before { content: ''; width: 18px; height: 2px; background: var(--whk-gold); }
  .post-service__title { margin: 0; font: var(--whk-weight-display) 24px/1.2 var(--whk-font-display); letter-spacing: var(--whk-tracking-title); font-variant-numeric: lining-nums; text-wrap: balance; }
  .post-service__second { display: block; color: var(--whk-blue); font-style: italic; }
  .post-service__line { margin: 10px 0 14px; color: var(--whk-muted); font-size: 15.5px; line-height: 1.55; }
  .post-service__visual { position: relative; display: flex; justify-content: center; overflow: hidden; padding: 24px 0 0; background: var(--whk-paper-alt); }
  .post-service__visual::after { content: ''; position: absolute; inset: auto 0 0; height: 48px; background: linear-gradient(to bottom, transparent, var(--whk-paper-alt)); pointer-events: none; }
  .post-service__visual > .doc { flex: none; zoom: 0.5; }
}

/* ── Steps: numbered, each with its time ─────────────────────────────────── */
.whk-site {
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--whk-gap); margin: 0; padding: 0; list-style: none; }
  .steps--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px 26px; border-radius: var(--whk-radius-l); background: var(--whk-raised); box-shadow: var(--whk-shadow-edge); }
  .step__no { color: var(--whk-blue); font: italic var(--whk-weight-display) 40px/1 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .step > h3 { margin: 6px 0 0; font: var(--whk-weight-display) var(--whk-type-h4)/1.3 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .step > p { margin: 0; color: var(--whk-muted); font-size: 15px; }
  .step__time { align-self: flex-start; margin-top: auto; padding: 4px 12px; border-radius: var(--whk-radius-pill); background: var(--whk-paper-alt); color: var(--whk-ink); font-size: 13px; font-weight: var(--whk-weight-strong); }
  .section--alt .step__time { background: var(--whk-paper); }
}

/* ── Perks: what the job gives, title and one line ───────────────────────── */
.whk-site {
  .perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--whk-gap-l); margin: 0; padding: 0; list-style: none; }
  .perks li { display: flex; flex-direction: column; gap: 4px; padding: 20px 0 24px; border-top: 1px solid var(--whk-line); }
  .perks li:nth-child(-n + 3) { border-top-color: var(--whk-gold); }
  .perks b { font: var(--whk-weight-display) var(--whk-type-h4)/1.3 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .perks span { color: var(--whk-muted); font-size: 15px; }
  /* Numbered: a serif numeral before each title (the audit's eight areas). */
  .perks--numbered { counter-reset: perk; }
  .perks--numbered li { counter-increment: perk; }
  .perks--numbered b::before { content: counter(perk) '  '; color: var(--whk-blue); font-style: italic; }
  /* A product's results under its document: title, the question it answers, what it is. */
  .perks--results { margin-top: clamp(40px, 5vw, 64px); }
  .perks--results span { color: var(--whk-ink); }
  .perks small { color: var(--whk-muted); font-size: 14px; }
}

/* ── Positions: open roles, fed by JOIN ──────────────────────────────────── */
.whk-site {
  .jobs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .positions { margin: 0; padding: 0; border-top: 1px solid var(--whk-gold); list-style: none; }
  .position { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 28px; padding: 22px 0; border-bottom: 1px solid var(--whk-line); }
  .position > h3 { margin: 0; font: var(--whk-weight-display) 22px/1.3 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .position__meta { grid-column: 1; margin: 0; color: var(--whk-muted); font-size: 14px; }
  .position > .btn { grid-column: 2; grid-row: 1 / span 2; }
  .empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 26px 30px; border-radius: var(--whk-radius-l); background: var(--whk-raised); box-shadow: var(--whk-shadow-card); }
  .empty b { display: block; font: var(--whk-weight-display) var(--whk-type-h4)/1.3 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .empty span { color: var(--whk-muted); font-size: 15px; }
}

/* ── Person: one named contact ───────────────────────────────────────────── */
.whk-site {
  .person { display: flex; align-items: center; gap: 22px; }
  .person__photo { flex: none; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; object-position: top; box-shadow: 0 0 0 4px var(--whk-raised), 0 0 0 5px var(--whk-line); }
  .person__who { display: flex; flex-direction: column; gap: 2px; }
  .person__who b { font: var(--whk-weight-display) 24px/1.25 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .person__who span { color: var(--whk-muted); font-size: 15px; }
  .person__who a { margin-top: 6px; }
  .person--card { padding: 26px 30px; border-radius: var(--whk-radius-l); background: var(--whk-raised); box-shadow: var(--whk-shadow-card); }
}

/* ── Press: mentions ─────────────────────────────────────────────────────── */
.whk-site {
  /* Five publications as clippings: two wide, then three. The page itself sits
     on a tile like a document, cropped to masthead and headline. */
  .press { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px clamp(16px, 2vw, 24px); margin: 0; padding: 0; list-style: none; }
  .press-item { position: relative; display: flex; flex-direction: column; gap: 8px; grid-column: span 2; }
  .press-item:nth-child(-n + 2) { grid-column: span 3; }
  .press-item__clip { display: flex; justify-content: center; margin-bottom: 8px; padding: 22px 22px 0; overflow: hidden; border-radius: var(--whk-radius-l); background: var(--whk-paper-alt); }
  .section--alt .press-item__clip { background: var(--whk-paper); }
  .press-item__clip > img { display: block; width: min(100%, 300px); aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--whk-radius-doc) var(--whk-radius-doc) 0 0; background: #fff; box-shadow: var(--whk-shadow-doc); }
  .press-item:nth-child(-n + 2) .press-item__clip > img { width: min(100%, 340px); aspect-ratio: 16 / 11; }
  .press-item__clip--top > img { object-position: 50% 0; }
  .press-item__clip--middle > img { object-position: 50% 22%; }
  .press-item__clip--bottom > img { object-position: 50% 88%; }
  .press-item__outlet { display: flex; align-items: center; min-height: 40px; margin: 0; }
  .press-item__logo { width: auto; height: 26px; filter: brightness(0); opacity: 0.82; }
  /* A logo with a tagline under its name needs more height for the same name size. */
  .press-item__logo--tall { height: 40px; }
  .press-item__wordmark { color: var(--whk-ink); font: var(--whk-weight-display) 16px/1 var(--whk-font-display); letter-spacing: -0.01em; }
  .press-item > h3 { margin: 0; font: var(--whk-weight-display) 19px/1.3 var(--whk-font-display); text-wrap: balance; font-variant-numeric: lining-nums; }
  .press-item:nth-child(-n + 2) > h3 { font-size: 23px; }
  .press-item > h3 a { text-decoration: none; }
  .press-item > h3 a::after { content: ''; position: absolute; inset: 0; }
  .press-item:hover > h3 { color: var(--whk-blue); }
  .press-item__date { margin: 0; color: var(--whk-muted); font-size: 13px; }
  /* The profile pages and the post: a quiet list under the clippings. */
  .press-more { max-width: 760px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--whk-gold); }
  .press-more__title { margin: 0 0 8px; color: var(--whk-muted); font: var(--whk-label); }
  .press-more ul { margin: 0; padding: 0; list-style: none; }
  .press-more li { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--whk-line); font-size: 15px; }
  .press-more small { color: var(--whk-blue); font: var(--whk-label); }
  .press-more span { color: var(--whk-muted); font-size: 13px; }
}

/* ── Kit: Mediadaten ─────────────────────────────────────────────────────── */
.whk-site {
  .kit { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--whk-gap-l); align-items: start; }
  .downloads { margin: 0; padding: 0; border-top: 1px solid var(--whk-gold); list-style: none; }
  .download { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--whk-line); }
  .download__thumb { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 12px; background: var(--whk-raised); box-shadow: var(--whk-shadow-edge); }
  .download__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .download__thumb--logo img { width: 80%; height: auto; object-fit: contain; }
  .download__thumb--blue { background: var(--whk-band); }
  .download b { display: block; font-weight: var(--whk-weight-strong); }
  .download small { color: var(--whk-muted); font-size: 13px; }
  .download > a { color: var(--whk-blue); font-weight: var(--whk-weight-strong); text-decoration: none; }
  .download > a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .boiler { padding: 26px 28px; border-radius: var(--whk-radius-l); background: var(--whk-raised); box-shadow: var(--whk-shadow-card); }
  .boiler__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
  .boiler__head b { font: var(--whk-weight-display) var(--whk-type-h4)/1.3 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .boiler > p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.65; }
  .boiler > p:last-child { margin-bottom: 0; }
}

/* ── Inquiry: the Erstgespräch form ──────────────────────────────────────── */
.whk-site {
  .inquiry { padding: min(clamp(24px, 3vw, 36px), 3.2vh) clamp(24px, 3vw, 36px); border-radius: var(--whk-radius-l); background: var(--whk-raised); box-shadow: var(--whk-shadow-frame); }
  .inquiry__title { margin: 0 0 4px; font: var(--whk-weight-display) var(--whk-type-h3)/1.2 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .inquiry__sub { margin: 0 0 min(22px, 2vh); color: var(--whk-muted); font-size: 15px; }
  .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .field { display: grid; align-content: start; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
  .field--full { grid-column: 1 / -1; }
  .field > label, .field > legend { padding: 0; font-size: 14px; font-weight: var(--whk-weight-strong); }
  .field__hint { color: var(--whk-muted); font-size: 13px; }
  .input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--whk-line-strong); border-radius: var(--whk-radius-s); background: #fff; color: var(--whk-ink); font: 400 16px/1.4 var(--whk-font-body); }
  .input::placeholder { color: var(--whk-faint); }
  .input:focus { border-color: var(--whk-blue); outline: none; box-shadow: 0 0 0 3px var(--whk-blue-wash); }
  textarea.input { height: 112px; padding-block: 12px; resize: vertical; }
  /* One choice among a few: pill radios, no dropdown. */
  .choices { display: flex; flex-wrap: wrap; gap: 8px; }
  .choice { position: relative; }
  .choice input { position: absolute; opacity: 0; inset: 0; }
  .choice span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: var(--whk-radius-pill); background: #fff; box-shadow: inset 0 0 0 1px var(--whk-line-strong); font-size: 14.5px; cursor: pointer; }
  .choice input:checked + span { background: var(--whk-blue-wash); box-shadow: inset 0 0 0 1.5px var(--whk-blue); color: var(--whk-blue); font-weight: var(--whk-weight-strong); }
  .choice input:focus-visible + span { box-shadow: var(--whk-focus); }
  .consent { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; color: var(--whk-muted); font-size: 13.5px; }
  .consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--whk-blue); }
  .inquiry .btn { width: 100%; margin-top: 20px; }
  .inquiry__note { margin: 12px 0 0; color: var(--whk-muted); font-size: 13px; text-align: center; }
  .inquiry__embed { min-height: 520px; }
  /* The app's lead form (src/components/website-runtime/lead-form.tsx) in the
     card: the field, pill and button look above, on the markup it renders. */
  .inquiry .public-lead-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: min(16px, 1.5vh) 16px; max-width: none; }
  .inquiry .public-lead-form > label { display: grid; align-content: start; gap: 6px; min-width: 0; font-size: 14px; font-weight: var(--whk-weight-strong); }
  .inquiry .public-lead-form > label:has(textarea), .inquiry .public-lead-form__choice, .inquiry .public-lead-form > :is(.public-btn, [role="alert"], .public-lead-form__stop) { grid-column: 1 / -1; }
  .inquiry .public-lead-form__stop { margin: 4px 0 0; padding: 14px 16px; border-radius: var(--whk-radius-s); background: var(--whk-blue-wash); color: var(--whk-ink); font-size: 15px; }
  .inquiry [data-wp-runtime-island] [role="status"] a { color: var(--whk-blue); font-weight: var(--whk-weight-strong); }
  .inquiry .public-lead-form :is(input:not([type="radio"]), textarea) { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--whk-line-strong); border-radius: var(--whk-radius-s); background: #fff; color: var(--whk-ink); font: 400 16px/1.4 var(--whk-font-body); }
  .inquiry .public-lead-form :is(input:not([type="radio"]), textarea):focus { border-color: var(--whk-blue); outline: none; box-shadow: 0 0 0 3px var(--whk-blue-wash); }
  .inquiry .public-lead-form textarea { height: 112px; padding-block: 12px; resize: vertical; }
  .inquiry .public-lead-form__choice { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
  .inquiry .public-lead-form__choice legend { width: 100%; margin-bottom: 6px; padding: 0; font-size: 14px; font-weight: var(--whk-weight-strong); }
  .inquiry .public-lead-form__choice label { position: relative; display: inline-flex; }
  .inquiry .public-lead-form__choice input { position: absolute; inset: 0; margin: 0; opacity: 0; }
  .inquiry .public-lead-form__choice span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: var(--whk-radius-pill); background: #fff; box-shadow: inset 0 0 0 1px var(--whk-line-strong); font-size: 14.5px; cursor: pointer; }
  .inquiry .public-lead-form__choice input:checked + span { background: var(--whk-blue-wash); box-shadow: inset 0 0 0 1.5px var(--whk-blue); color: var(--whk-blue); font-weight: var(--whk-weight-strong); }
  .inquiry .public-lead-form__choice input:focus-visible + span { box-shadow: var(--whk-focus); }
  .inquiry .public-lead-form .public-btn { width: 100%; height: 50px; margin-top: 4px; padding: 0 28px; border: 0; border-radius: var(--whk-radius-pill); background: var(--whk-blue); color: var(--whk-on-blue); font: 600 16px/1 var(--whk-font-body); cursor: pointer; }
  .inquiry .public-lead-form .public-btn:hover { background: var(--whk-blue-strong); }
  .inquiry .public-lead-form [role="alert"], .inquiry [data-wp-runtime-island] [role="status"] { margin: 0; font-size: 15px; }
  .inquiry [data-wp-runtime] > p { margin: 0; font-size: 15px; }
  .contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--whk-gap-xl); align-items: start; padding: clamp(40px, 3.5vw, 52px) var(--whk-gutter) var(--whk-section); }
  .contact__doc { display: flex; margin: 32px 0 0; }
  .contact__doc > .doc { flex: none; transform: rotate(-1deg); }
  .alt-path { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin: 30px 0 0; padding: 16px 22px; border-radius: var(--whk-radius-l); background: var(--whk-raised); box-shadow: var(--whk-shadow-edge); color: var(--whk-muted); font-size: 15px; }
  .alt-path b { color: var(--whk-ink); }
  .alt-path a { color: var(--whk-blue); font-weight: var(--whk-weight-strong); text-decoration: none; white-space: nowrap; }
}

/* ── Band: the closing call to action, the one blue surface ──────────────── */
.whk-site {
  .band { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--whk-gap-l); align-items: center; padding: var(--whk-section-s) var(--whk-gutter); background: var(--whk-band); color: var(--whk-on-blue); }
  .band .eyebrow { color: var(--whk-on-blue); }
  .band__title { margin: 0; font: var(--whk-weight-display) var(--whk-type-title)/1.08 var(--whk-font-display); letter-spacing: var(--whk-tracking-display); text-wrap: balance; font-variant-numeric: lining-nums; }
  .band__title em { display: block; color: var(--whk-on-blue-muted); }
  .band__line { max-width: var(--whk-measure); margin: 18px 0 0; color: var(--whk-on-blue-muted); font-size: var(--whk-type-lead); }
  .band .actions { margin-top: 28px; }
  .band__figure { display: flex; flex-direction: column; align-items: flex-end; margin: 0; text-align: right; }
  .band__figure b { font: var(--whk-weight-display) clamp(72px, 9vw, 136px)/0.9 var(--whk-font-display); letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
  .band__figure small { max-width: 16em; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--whk-gold); color: var(--whk-on-blue-muted); font-size: 15px; }
  .band :focus-visible { box-shadow: 0 0 0 3px var(--whk-band), 0 0 0 5px var(--whk-on-blue); }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.whk-site {
  .site-footer { padding: clamp(48px, 6vw, 72px) var(--whk-gutter) 28px; border-top: 1px solid var(--whk-line); background: var(--whk-paper-alt); color: var(--whk-muted); font-size: 14px; }
  .site-footer__top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); gap: 32px; }
  .site-footer__brand img { display: block; width: auto; height: 30px; }
  .site-footer__brand p { max-width: 26em; margin: 16px 0 0; }
  .site-footer__brand address { margin: 14px 0 0; font-style: normal; }
  .site-footer h2 { margin: 0 0 14px; color: var(--whk-ink); font: var(--whk-label-s); letter-spacing: var(--whk-label-tracking); text-transform: uppercase; }
  .site-footer ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
  .site-footer a { color: var(--whk-muted); text-decoration: none; }
  .site-footer a:hover { color: var(--whk-ink); text-decoration: underline; text-underline-offset: 3px; }
  .site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--whk-line); font-size: 13px; }
  .site-footer__base ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
}

/* ── Crumbs: where a service page sits ───────────────────────────────────── */
.whk-site {
  .crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; color: var(--whk-muted); font-size: 14px; list-style: none; }
  .crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--whk-faint); }
  .crumbs a { color: var(--whk-muted); text-decoration: none; }
  .crumbs a:hover { color: var(--whk-blue); text-decoration: underline; text-underline-offset: 3px; }
  .crumbs [aria-current="page"] { color: var(--whk-ink); }
}

/* ── Document stack: several WHK documents fanned, one picture ──────────── */
.whk-site {
  .doc-stack { position: relative; display: grid; min-height: 460px; margin: 0; }
  .doc-stack > .doc { grid-area: 1 / 1; flex: none; zoom: 0.72; }
  /* One document per product: the Finanz-Check's findings, the Bankpaket's Kreditspiegel over its corner. */
  .doc-stack > .doc:nth-child(1) { justify-self: start; align-self: start; transform: rotate(-2deg); }
  .doc-stack > .doc:nth-child(2) { position: relative; z-index: 1; justify-self: end; align-self: end; transform: rotate(1.5deg); }
}

/* ── Feature: one service per row, the document beside its facts ───────── */
.whk-site {
  .features { display: grid; gap: clamp(56px, 8vw, 112px); }
  .feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--whk-gap-l); align-items: center; }
  .feature--flip .feature__visual { order: 2; }
  .feature__visual { display: flex; justify-content: center; min-width: 0; padding: clamp(28px, 4vw, 56px) 16px; border-radius: var(--whk-radius-l); background: var(--whk-paper-alt); }
  .section--alt .feature__visual { background: var(--whk-paper); }
  .feature__visual > .doc { flex: none; }
  .feature__step { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--whk-blue); font: var(--whk-label); }
  .feature__step b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--whk-blue); color: var(--whk-on-blue); font-size: 13px; }
  .feature__copy > h2, .feature__copy > h3 { margin: 0; font: var(--whk-weight-display) var(--whk-type-title-s)/1.12 var(--whk-font-display); letter-spacing: var(--whk-tracking-display); text-wrap: balance; font-variant-numeric: lining-nums; }
  .feature__line { max-width: var(--whk-measure); margin: 14px 0 0; color: var(--whk-muted); font-size: var(--whk-type-lead); text-wrap: pretty; }
  .feature__copy > .btn, .feature__copy > .link { margin-top: 24px; }
  .feature__copy > h2 a { text-decoration: none; }
  .feature__copy > h2 a:hover { color: var(--whk-blue); }
}

/* ── Checks: what the client receives and keeps ──────────────────────────── */
.whk-site {
  .checks { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
  .checks li { position: relative; padding-left: 32px; font-size: 16px; line-height: 1.5; }
  .checks li::before { content: ''; position: absolute; top: 2px; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--whk-blue-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-7' fill='none' stroke='%231a3a8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
  .checks b { font-weight: var(--whk-weight-strong); }
  .checks--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
}

/* ── Offer: the guarantee beside the price ───────────────────────────────── */
.whk-site {
  .offer { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); overflow: hidden; border-radius: var(--whk-radius-l); background: var(--whk-raised); box-shadow: var(--whk-shadow-card); }
  .offer__guarantee { padding: clamp(28px, 4vw, 48px); }
  .offer__guarantee > p:not(.eyebrow) { max-width: 30em; margin: 0; font: italic var(--whk-weight-display) clamp(24px, 2.4vw, 32px)/1.3 var(--whk-font-display); text-wrap: pretty; font-variant-numeric: lining-nums; }
  .offer__guarantee > small { display: block; max-width: 36em; margin-top: 18px; color: var(--whk-muted); font-size: 15px; }
  .offer__price { display: flex; flex-direction: column; gap: 6px; padding: clamp(28px, 4vw, 48px); border-left: 1px solid var(--whk-line); background: var(--whk-paper-alt); }
  .offer__price > dl { display: flex; flex-direction: column; gap: 6px; margin: 0; }
  .offer__price dt { color: var(--whk-muted); font-size: 14px; }
  .offer__price dd { margin: 0 0 14px; font: var(--whk-weight-display) var(--whk-type-numeral)/1.1 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .offer__price dd small { display: block; margin-top: 6px; color: var(--whk-muted); font: 400 14px/1.45 var(--whk-font-body); }
  .offer__price .btn { align-self: flex-start; margin-top: 6px; }
}

/* ── Fit: for whom it works, and when we say no ──────────────────────────── */
.whk-site {
  .fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--whk-gap); }
  .fit > div { padding: 26px 28px; border-radius: var(--whk-radius-l); background: var(--whk-raised); box-shadow: var(--whk-shadow-edge); }
  .fit h3 { margin: 0 0 14px; font: var(--whk-weight-display) var(--whk-type-h4)/1.3 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .fit ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
  .fit li { position: relative; padding-left: 26px; font-size: 16px; }
  .fit li::before { position: absolute; left: 0; font-weight: 700; }
  .fit__yes li::before { content: '✓'; color: var(--whk-positive); }
  .fit__no li::before { content: '✕'; color: var(--whk-muted); font-size: 13px; top: 2px; }
}

/* ── FAQ: the questions where doubt sits ─────────────────────────────────── */
.whk-site {
  .faq { max-width: 880px; margin: 0; padding: 0; border-top: 1px solid var(--whk-gold); list-style: none; }
  .faq details { border-bottom: 1px solid var(--whk-line); }
  .faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; font: var(--whk-weight-display) var(--whk-type-h4)/1.35 var(--whk-font-display); list-style: none; cursor: pointer; font-variant-numeric: lining-nums; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: '+'; flex: none; color: var(--whk-blue); font: 400 28px/1 var(--whk-font-body); }
  .faq details[open] summary::after { content: '−'; }
  .faq details > p { max-width: 42em; margin: -6px 0 22px; color: var(--whk-muted); font-size: 16px; }
}

/* ── Compare: the services side by side ──────────────────────────────────── */
.whk-site {
  .compare { width: 100%; border-collapse: collapse; font-size: 15px; }
  .compare th, .compare td { padding: 16px 18px; border-bottom: 1px solid var(--whk-line); text-align: left; vertical-align: top; }
  .compare thead th { border-bottom: 1px solid var(--whk-gold); font: var(--whk-weight-display) var(--whk-type-h4)/1.3 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .compare thead th a { text-decoration: none; }
  .compare thead th a:hover { color: var(--whk-blue); }
  .compare tbody th { width: 18%; color: var(--whk-muted); font-weight: var(--whk-weight-strong); }
  .compare td b { font: var(--whk-weight-display) 18px/1.3 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .compare-wrap { overflow-x: auto; border-radius: var(--whk-radius-l); background: var(--whk-raised); box-shadow: var(--whk-shadow-edge); }
}

/* ── Related: the next service ───────────────────────────────────────────── */
.whk-site {
  .related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--whk-gap); margin: 0; padding: 0; list-style: none; }
  .related li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 28px; border-radius: var(--whk-radius-l); background: var(--whk-raised); box-shadow: var(--whk-shadow-edge); transition: box-shadow 0.15s; }
  .related li:hover { box-shadow: var(--whk-shadow-card); }
  .related small { color: var(--whk-blue); font: var(--whk-label); }
  .related h3 { margin: 0; font: var(--whk-weight-display) var(--whk-type-h4)/1.3 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .related h3 a { text-decoration: none; }
  .related h3 a::after { content: ''; position: absolute; inset: 0; }
  .related p { margin: 0; color: var(--whk-muted); font-size: 15px; }
}

/* ── Round 11 (2026-10-18): richer Leistungen components ────────────────── */
.whk-site {
  /* Mappe: the product's lead document in its folder, the parts as index tabs. */
  /* --folder-zoom sizes the document; the tabs start under its right edge. */
  .folder { --folder-zoom: 0.8; --folder-manila: color-mix(in oklab, var(--whk-line-strong) 60%, var(--whk-paper-alt)); position: relative; display: grid; justify-items: start; min-width: 0; margin: 0; padding: 40px 0 26px 22px; }
  .folder::before { content: ''; position: absolute; inset: 22px 0 0 0; border-radius: 4px 18px 18px 18px; background: var(--folder-manila); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--whk-line-strong) 80%, var(--whk-ink) 8%); }
  .folder__label { position: absolute; top: 0; left: 0; z-index: 1; padding: 6px 16px 10px; border-radius: 10px 10px 0 0; background: var(--folder-manila); color: var(--whk-ink); font: var(--whk-label-s); letter-spacing: var(--whk-label-tracking); text-transform: uppercase; }
  .folder > .doc { position: relative; z-index: 2; flex: none; zoom: var(--folder-zoom); transform: rotate(-1deg); }
  .folder__tabs { position: absolute; top: 64px; left: calc(22px + 440px * var(--folder-zoom) - 36px); z-index: 1; display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
  .folder__tabs li { padding: 5px 14px 5px 50px; border-radius: 0 7px 7px 0; background: var(--whk-raised); box-shadow: var(--whk-shadow-edge); color: var(--whk-ink); font-size: 12px; font-weight: var(--whk-weight-strong); white-space: nowrap; }
  .folder__tabs li:nth-child(odd) { background: color-mix(in oklab, var(--whk-blue-wash) 70%, var(--whk-raised)); }
  .folders { position: relative; display: grid; min-height: 480px; margin: 0; }
  .folders > .folder { grid-area: 1 / 1; zoom: 0.74; }
  .folders .folder__tabs { display: none; }
  .folders > .folder:nth-child(1) { justify-self: start; align-self: start; }
  .folders > .folder:nth-child(2) { z-index: 3; justify-self: end; align-self: end; margin-top: 150px; }
  @media (min-width: 1024px) and (max-height: 720px) {
    .page-hero .folder { --folder-zoom: 0.68; }
    .folders > .folder { zoom: 0.64; }
  }
  /* Regal: each result as its own page, number, title and the question. */
  .shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 52px) clamp(20px, 3vw, 36px); margin: 0; padding: 0; list-style: none; }
  .shelf > li { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-content: start; gap: 2px 0; min-width: 0; }
  .shelf__sheet { position: relative; grid-column: 1 / -1; display: flex; justify-content: center; height: 232px; margin-bottom: 16px; overflow: hidden; padding: 24px 16px 0; border-radius: var(--whk-radius-l); background: var(--whk-paper-alt); }
  .section--alt .shelf__sheet { background: var(--whk-paper); }
  .shelf__sheet::after { content: ''; position: absolute; inset: auto 0 0; height: 56px; background: linear-gradient(to bottom, transparent, var(--whk-paper-alt)); pointer-events: none; }
  .section--alt .shelf__sheet::after { background: linear-gradient(to bottom, transparent, var(--whk-paper)); }
  .shelf__sheet > .doc { flex: none; zoom: 0.68; }
  .shelf__no { grid-row: 2; margin: 0; color: var(--whk-blue); font: italic var(--whk-weight-display) 22px/1.25 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .shelf > li > h3 { grid-row: 2; grid-column: 2; margin: 0; font: var(--whk-weight-display) var(--whk-type-h4)/1.3 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .shelf > li > p:last-child { grid-column: 2; margin: 0; color: var(--whk-muted); font-size: 15px; }
  /* Stufen: three piles of paper, as thick as their contents. */
  .binders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin: 0; padding: 0; list-style: none; }
  .binder { display: flex; flex-direction: column; min-width: 0; }
  .binder__stack { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 190px; margin-bottom: 22px; padding-bottom: 26px; border-radius: var(--whk-radius-l); background: var(--whk-paper-alt); }
  .section--alt .binder__stack { background: var(--whk-paper); }
  .binder__stack > span { display: grid; place-content: center; justify-items: center; gap: 4px; width: 60%; height: 82px; border-radius: 4px 4px 0 0; background: var(--whk-raised); box-shadow: inset 0 -1px 0 var(--whk-line), inset 0 3px 0 var(--whk-gold); color: var(--whk-blue); font: italic var(--whk-weight-display) 24px/1 var(--whk-font-display); }
  .binder__stack::after { content: ''; width: 60%; height: calc(var(--sheets) * 4px); border-radius: 0 0 4px 4px; background: repeating-linear-gradient(to bottom, var(--whk-raised) 0 3px, var(--whk-line-strong) 3px 4px); box-shadow: 0 18px 30px rgb(40 35 60 / 0.16); }
  .binder > h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--whk-gold); font: var(--whk-weight-display) var(--whk-type-h3)/1.2 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .binder > h3 b { color: var(--whk-blue); font-weight: var(--whk-weight-display); font-variant-numeric: tabular-nums lining-nums; }
  .binder__case { margin: 12px 0 0; font-size: 15.5px; }
  .binder__days { margin: 6px 0 0; color: var(--whk-blue); font-size: 14px; font-weight: var(--whk-weight-strong); }
  .binder > ul { display: grid; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--whk-muted); font-size: 14.5px; }
  .binder > ul li::before { content: '+ '; color: var(--whk-blue); font-weight: 700; }
  .binder__stack small { color: var(--whk-muted); font: 600 12px/1 var(--whk-font-body); font-style: normal; }
  .binder__plus { margin: 14px 0 0; color: var(--whk-muted); font-size: 13px; }
  .binder__plus + ul { margin-top: 6px; }
  /* Wer macht was: Steuerberater, WHK, Sie. */
  .triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--whk-gap); margin: 0; padding: 0; list-style: none; }
  .triad > li { padding: 26px 28px 30px; border-radius: var(--whk-radius-l); background: var(--whk-raised); box-shadow: var(--whk-shadow-edge); }
  .triad > li.triad__us { box-shadow: inset 0 3px 0 var(--whk-blue), var(--whk-shadow-card); }
  .triad > li > h3 { margin: 0; font: var(--whk-weight-display) var(--whk-type-h3)/1.2 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .triad > li > p { margin: 4px 0 18px; color: var(--whk-blue); font: italic 400 18px/1.35 var(--whk-font-display); }
  .triad ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
  .triad ul li { padding: 9px 14px; border-left: 2px solid var(--whk-line-strong); border-radius: 0 6px 6px 0; background: var(--whk-paper); font-size: 15px; }
  .section--alt .triad ul li { background: var(--whk-paper-alt); }
  .triad__us ul li { border-left-color: var(--whk-blue); }
  /* Zwei Wochen: what happens on which day, your minutes, the date on day 10. */
  .fortnight { min-width: 0; }
  .fortnight__before { margin: 0 0 16px; color: var(--whk-muted); font-size: 15px; }
  .fortnight__before b { margin-right: 10px; padding: 4px 12px; border-radius: var(--whk-radius-pill); background: var(--whk-raised); box-shadow: var(--whk-shadow-edge); color: var(--whk-ink); font-size: 13px; }
  .fortnight__days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
  .day { position: relative; grid-column: span var(--span); display: flex; flex-direction: column; gap: 4px; min-height: 176px; padding: 16px 18px 18px; border-radius: var(--whk-radius-m); background: var(--whk-raised); box-shadow: var(--whk-shadow-edge); }
  .day--you { box-shadow: inset 0 0 0 1.5px var(--whk-blue), var(--whk-shadow-edge); }
  .day__when { display: flex; align-items: baseline; gap: 8px; margin: 0; color: var(--whk-blue); font: var(--whk-label); }
  .day__when small { color: var(--whk-muted); font-weight: 500; }
  .day > h3 { margin: 6px 0 0; font: var(--whk-weight-display) 19px/1.25 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .day > p:not(.day__when) { margin: 0; color: var(--whk-muted); font-size: 14.5px; }
  .day__you, .day__us { align-self: flex-start; margin-top: auto; padding: 4px 12px; border-radius: var(--whk-radius-pill); font-size: 13px; font-weight: var(--whk-weight-strong); }
  .day__you { background: var(--whk-blue); color: var(--whk-on-blue); }
  .day__us { background: var(--whk-paper-alt); color: var(--whk-muted); }
  .owner-time { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--whk-gold); }
  .owner-time > p { margin: 0; color: var(--whk-muted); font-size: 15px; }
  .owner-time > p b { display: block; color: var(--whk-blue); font: var(--whk-weight-display) var(--whk-type-numeral)/1.1 var(--whk-font-display); font-variant-numeric: tabular-nums lining-nums; }
  .owner-time__bar { display: flex; gap: 4px; }
  .owner-time__bar i { display: flex; flex-direction: column; min-width: 0; padding: 10px 14px; border-radius: 8px; background: var(--whk-blue-wash); color: var(--whk-ink); font-size: 13.5px; font-style: normal; }
  .owner-time__bar b { color: var(--whk-blue); font: var(--whk-weight-display) 18px/1.2 var(--whk-font-display); font-variant-numeric: tabular-nums lining-nums; }
  /* Stempel: the date or the guarantee, as a seal in blue ink. */
  .stamp { position: absolute; display: grid; place-content: center; justify-items: center; gap: 2px; width: 128px; height: 128px; border: 2px solid var(--whk-blue); border-radius: 50%; box-shadow: inset 0 0 0 5px var(--whk-raised), inset 0 0 0 6px var(--whk-gold); color: var(--whk-blue); text-align: center; transform: rotate(-9deg); }
  .stamp b { font: 600 27px/1.05 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .stamp small { font: var(--whk-label-s); letter-spacing: var(--whk-label-tracking); text-transform: uppercase; }
  /* On the result day the seal sits on the card's corner, clear of its text. */
  .stamp--small { top: -18px; right: -10px; width: 70px; height: 70px; background: var(--whk-raised); box-shadow: inset 0 0 0 3px var(--whk-raised), inset 0 0 0 4px var(--whk-gold); font: var(--whk-label-s); letter-spacing: var(--whk-label-tracking); text-transform: uppercase; }
  .stamp--small b { font-size: 15px; letter-spacing: 0; text-transform: none; }
  .offer__guarantee:has(> .stamp) { position: relative; padding-right: clamp(28px, 4vw, 48px); }
  .offer__guarantee > .stamp { top: clamp(24px, 3vw, 36px); right: clamp(24px, 3vw, 40px); }
  .offer__guarantee:has(> .stamp) > p:not(.eyebrow), .offer__guarantee:has(> .stamp) > small { max-width: calc(100% - 150px); }
  /* Drei Fragen: the results grouped by the question they answer. */
  .questions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin: 0; padding: 0; list-style: none; }
  .questions > li { display: flex; flex-direction: column; min-width: 0; }
  .questions > li > h3 { margin: 0 0 16px; padding-top: 16px; border-top: 1px solid var(--whk-gold); color: var(--whk-blue); font: italic var(--whk-weight-display) var(--whk-type-h3)/1.2 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .questions__sheet { position: relative; display: flex; justify-content: center; height: 250px; overflow: hidden; padding: 24px 14px 0; border-radius: var(--whk-radius-l); background: var(--whk-paper-alt); }
  .section--alt .questions__sheet { background: var(--whk-paper); }
  .questions__sheet::after { content: ''; position: absolute; inset: auto 0 0; height: 56px; background: linear-gradient(to bottom, transparent, var(--whk-paper-alt)); pointer-events: none; }
  .section--alt .questions__sheet::after { background: linear-gradient(to bottom, transparent, var(--whk-paper)); }
  .questions__sheet > .doc { flex: none; zoom: 0.72; }
  .questions > li > ul { margin: 14px 0 0; padding: 0; list-style: none; }
  .questions > li > ul li { display: grid; grid-template-columns: 26px minmax(0, 1fr); padding: 10px 0; border-bottom: 1px solid var(--whk-line); font-size: 15.5px; font-weight: var(--whk-weight-strong); }
  .questions > li > ul b { color: var(--whk-blue); font: italic var(--whk-weight-display) 17px/1.4 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .questions > li > ul small { grid-column: 2; color: var(--whk-muted); font-size: 14px; font-weight: 400; }
  .questions > li > ul li.is-check b { font: 700 14px/1.6 var(--whk-font-body); font-style: normal; }
  /* Tage und Preis: one rail per offer, a tick per working day. */
  .dayrail { margin: 0; padding: 0; border-top: 1px solid var(--whk-gold); list-style: none; }
  .dayrail > li { display: grid; grid-template-columns: minmax(200px, 3fr) minmax(0, 6fr) minmax(96px, auto); align-items: center; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--whk-line); }
  .dayrail__name { display: flex; flex-direction: column; margin: 0; }
  .dayrail__name b { font: var(--whk-weight-display) var(--whk-type-h4)/1.3 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .dayrail__name small { color: var(--whk-muted); font-size: 14px; }
  .dayrail__track { position: relative; height: 36px; border-radius: var(--whk-radius-pill); background: repeating-linear-gradient(to right, transparent 0 calc(5% - 1px), var(--whk-line) calc(5% - 1px) 5%), var(--whk-raised); box-shadow: var(--whk-shadow-edge); }
  .dayrail__track i { position: absolute; inset: 0 auto 0 0; display: flex; align-items: center; min-width: max-content; padding: 0 16px; border-radius: var(--whk-radius-pill); background: var(--whk-blue); color: var(--whk-on-blue); font: 600 13.5px/1 var(--whk-font-body); font-style: normal; white-space: nowrap; }
  .dayrail__price { font: var(--whk-weight-display) 22px/1 var(--whk-font-display); font-variant-numeric: tabular-nums lining-nums; text-align: right; white-space: nowrap; }
  /* Der Weg: the free first step, the two products, what follows later. */
  .route { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: stop; }
  .route__stop { position: relative; padding: 50px 18px 20px; border: 1px solid transparent; border-radius: var(--whk-radius-m); background: var(--whk-raised); box-shadow: var(--whk-shadow-edge); counter-increment: stop; }
  .route__stop::before { content: counter(stop); position: absolute; top: 16px; left: 18px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--whk-blue); color: var(--whk-on-blue); font: 700 12px/1 var(--whk-font-body); }
  .route__stop.is-here { border-color: var(--whk-blue); }
  .route__stop.is-later { border: 1px dashed var(--whk-line-strong); background: none; box-shadow: none; }
  .route__stop.is-later::before { background: var(--whk-line-strong); color: var(--whk-ink); }
  .route__name { margin: 0; font: var(--whk-weight-display) 19px/1.25 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .route__name a { text-decoration: none; }
  .route__name a:hover { color: var(--whk-blue); }
  .route__name small { display: block; margin-top: 4px; color: var(--whk-blue); font: var(--whk-label); }
  .route__facts { margin: 10px 0 0; color: var(--whk-muted); font-size: 14px; }
  .route__facts b { display: block; color: var(--whk-ink); font: var(--whk-weight-display) 20px/1.25 var(--whk-font-display); font-variant-numeric: tabular-nums lining-nums; }
  .route__stop.is-later .route__facts b { color: var(--whk-muted); }
  /* In a hero column the route runs down, like a timetable. */
  .route--down { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .route--down .route__stop { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 14px 18px 14px 56px; }
  .route--down .route__stop::before { top: 50%; margin-top: -12px; }
  .route--down .route__facts { margin: 0; text-align: right; }
  /* Danach: the finding on the left, the offer it leads to on the right. */
  .next { max-width: 1000px; margin: 0; padding: 0; border-top: 1px solid var(--whk-gold); list-style: none; }
  .next > li { display: grid; grid-template-columns: minmax(0, 5fr) 48px minmax(0, 6fr); align-items: center; padding: 20px 0; border-bottom: 1px solid var(--whk-line); }
  .next > li::before { content: '→'; grid-row: 1; grid-column: 2; color: var(--whk-blue); font-size: 22px; }
  .next__if { grid-row: 1; grid-column: 1; margin: 0; font: var(--whk-weight-display) var(--whk-type-h4)/1.3 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .next__then { grid-row: 1; grid-column: 3; display: flex; flex-direction: column; margin: 0; font-weight: var(--whk-weight-strong); }
  .next__then a { color: var(--whk-blue); }
  .next__then small { color: var(--whk-muted); font-size: 14.5px; font-weight: 400; }
  .next > li.is-later .next__then { color: var(--whk-muted); }
  /* Kacheln: a label, a title and one line; sectors or occasions. */
  .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--whk-gap); margin: 0; padding: 0; list-style: none; }
  .tiles > li { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 26px; border-radius: var(--whk-radius-l); background: var(--whk-raised); box-shadow: var(--whk-shadow-edge); }
  .tiles small { color: var(--whk-blue); font: var(--whk-label); }
  .tiles h3 { margin: 0; font: var(--whk-weight-display) 21px/1.25 var(--whk-font-display); font-variant-numeric: lining-nums; }
  .tiles p { margin: 0; color: var(--whk-muted); font-size: 15px; }
  .fit-note { margin: 22px 0 0; color: var(--whk-muted); font-size: 15px; }
  .fit-note b { color: var(--whk-ink); }
  /* Fragen beside a person or beside what the product is not; in two columns. */
  .faq-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--whk-gap-l); align-items: start; }
  .faq-wrap > .faq { max-width: none; }
  .faq--two { max-width: none; columns: 2; column-gap: var(--whk-gap-l); }
  .faq--two details { break-inside: avoid; }
  .not { padding: 26px 28px; border-radius: var(--whk-radius-l); background: var(--whk-paper-alt); }
  .section--alt .not { background: var(--whk-paper); }
  .not h3 { margin: 0 0 14px; font: var(--whk-weight-display) var(--whk-type-h4)/1.3 var(--whk-font-display); }
  .not ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
  .not li { position: relative; padding-left: 26px; font-size: 15.5px; }
  .not li::before { content: '✕'; position: absolute; top: 2px; left: 0; color: var(--whk-muted); font-size: 13px; font-weight: 700; }
  .person--aside { position: sticky; top: 100px; align-items: flex-start; }
  .person--aside .person__who p { margin: 8px 0 0; font-size: 15.5px; }
  /* Kunden on a product page: the logos in two rows beside one voice. */
  .proof { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--whk-gap-l); align-items: center; }
  .logos--strip { margin: 0; gap: 8px; }
  .logos--strip li { height: 66px; padding: 12px 16px; }
  .logos--strip img { max-height: 26px; }
  .voice { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 6px 20px; margin: 0; padding: 22px 24px; border-radius: 24px; background: var(--whk-raised); box-shadow: var(--whk-shadow-card); }
  .voice img { grid-row: span 2; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
  .voice blockquote { margin: 0; font: italic 400 18px/1.4 var(--whk-font-display); text-wrap: pretty; font-variant-numeric: lining-nums; }
  .voice figcaption { display: flex; flex-direction: column; color: var(--whk-muted); font-size: 14px; }
  .voice figcaption b { color: var(--whk-ink); }
  /* Unterschrift: who signs the report, under the price. */
  .signoff { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding-top: 16px; border-top: 1px solid var(--whk-line-strong); }
  .signoff img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: top; }
  .signoff span { display: flex; flex-direction: column; color: var(--whk-muted); font-size: 14px; }
  .signoff b { color: var(--whk-ink); font: italic var(--whk-weight-display) 18px/1.3 var(--whk-font-display); }
  /* Ein Bild aus controlling.app, als Bild, mit Herkunft. */
  .shot { width: 100%; margin: 0; }

  .shot img { display: block; width: 100%; height: auto; border-radius: var(--whk-radius-m); box-shadow: var(--whk-shadow-frame); }
  .shot figcaption { margin-top: 12px; color: var(--whk-muted); font-size: 13.5px; }
  /* The report beside a list starts at the top (the right column ran ~250 px low). */
  .callouts--top { align-items: start; }
  .perks--stack { grid-template-columns: minmax(0, 1fr); }
  .perks--stack li { padding: 12px 0 14px; }
  .perks--stack li:nth-child(n + 2) { border-top-color: var(--whk-line); }

  @media (max-width: 1023px) {
    .folders { min-height: 0; }
    .folders > .folder:nth-child(2) { display: none; }
    .folders > .folder:nth-child(1) { justify-self: center; zoom: 0.8; }
    .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .binders, .triad, .questions, .proof, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
    .fortnight__days { grid-template-columns: minmax(0, 1fr); }
    .day { grid-column: auto; min-height: 0; }
    .route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .route--down { grid-template-columns: minmax(0, 1fr); }
    .person--aside { position: static; }
  }
  @media (max-width: 767px) {
    .folder { padding-left: 12px; }
    .folder { --folder-zoom: 0.62; }
    .folder__tabs { display: none; }
    .shelf { grid-template-columns: minmax(0, 1fr); }
    .shelf__sheet { height: 200px; }
    .shelf__sheet > .doc, .questions__sheet > .doc { zoom: 0.6; }
    .questions__sheet { height: 210px; }
    .owner-time { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .owner-time__bar { flex-direction: column; }
    .route { grid-template-columns: minmax(0, 1fr); }
    .route .route__stop { padding: 14px 18px 14px 56px; }
    .route .route__stop::before { top: 16px; }
    .route--down .route__stop { grid-template-columns: minmax(0, 1fr); }
    .route--down .route__facts { margin-top: 4px; text-align: left; }
    .route--down .route__facts b { display: inline; margin-right: 8px; }
    .dayrail > li { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
    .dayrail__track { grid-column: 1 / -1; grid-row: 2; }
    .next > li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .next > li::before { display: none; }
    .next__if, .next__then { grid-column: 1; grid-row: auto; }
    .faq--two { columns: 1; }
    .logos--strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .voice { grid-template-columns: 64px minmax(0, 1fr); padding: 18px; }
    .voice img { width: 64px; height: 64px; }
    .stamp { position: static; margin: 0 0 16px; transform: rotate(-6deg); }
    .offer__guarantee:has(> .stamp) > p:not(.eyebrow), .offer__guarantee:has(> .stamp) > small { max-width: none; }
    .stamp--small { position: absolute; }
    /* A tall document (the findings) goes under the photo instead of over the hero's text. */
    .page-hero__visual--stacked .page-hero__doc { grid-area: 2 / 1; justify-self: center; margin: -56px 0 0; }
  }
}

/* ── Tablet and below ────────────────────────────────────────────────────── */
.whk-site {
  @media (max-width: 1023px) {
    .site-nav { display: none; }
    .menu { display: block; }
    .hero, .page-hero, .team, .media, .place, .callouts, .callouts--flip, .kit, .contact, .delivery, .band { grid-template-columns: minmax(0, 1fr); }
    .hero__visual { margin-top: 0; }
    .callouts--flip .callouts__visual { order: 0; }
    .services, .quotes, .bars, .steps, .steps--four, .feature, .offer, .fit, .related { grid-template-columns: minmax(0, 1fr); }
    .feature--flip .feature__visual { order: 0; }
    .offer__price { border-top: 1px solid var(--whk-line); border-left: 0; }
    .doc-stack { min-height: 0; }
    .doc-stack > .doc:nth-child(2) { display: none; }
    .doc-stack > .doc:nth-child(1) { justify-self: center; transform: none; }
    .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .perks li:nth-child(3) { border-top-color: var(--whk-line); }
    .page-hero__doc { justify-self: center; margin: -80px 0 0; }
    .band__figure { align-items: flex-start; text-align: left; }
    .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer__brand { grid-column: 1 / -1; }
    .listing { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .listing > .topics--rail { position: static; margin-bottom: 32px; }
    .topics--rail .topics__head { display: none; }
    .topics--rail .topics__list { flex-direction: row; flex-wrap: wrap; gap: 8px; border-left: 0; }
    .topics--rail .category-tab { width: auto; height: 40px; min-height: 0; margin: 0; padding: 0 16px; border-left: 0; border-radius: var(--whk-radius-pill); background: var(--whk-raised); box-shadow: inset 0 0 0 1px var(--whk-line-strong); color: var(--whk-ink); white-space: nowrap; }
    .topics--rail .category-tab.active { background: var(--whk-blue); box-shadow: none; color: var(--whk-on-blue); }
    .topics--rail .category-tab.active .category-count { color: var(--whk-on-blue-muted); }
    .legal { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .legal__toc { position: static; max-height: none; overflow: visible; }
    .legal__toc ol { border-left: 0; columns: 2 260px; column-gap: 32px; }
    .legal__toc a { margin-left: 0; padding-left: 0; border-left: 0; break-inside: avoid; }
    .post-head { grid-template-columns: minmax(0, 1fr); }
    .post-head__media { max-width: 720px; }
    .post { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .post__toc { display: none; }
    .post__toc-mobile { display: block; }
    /* A table the article did not wrap in a div scrolls in its own box, like
       the wrapped ones (`.prose div:has(> table)`). Before, 66 articles
       scrolled the whole page sideways on phones and 6 on tablets (audit
       after the cutover, 2026-11-28). As a block the table hugs its content
       instead of filling the column, which only shows on short tables. */
    .prose > table, .prose table:not(div > table) { display: block; max-width: 100%; overflow-x: auto; }
  }
}

/* ── Phone ───────────────────────────────────────────────────────────────── */
.whk-site {
  @media (max-width: 767px) {
    font-size: 16px;
    .site-header__inner { justify-content: space-between; gap: 10px; height: 64px; }
    .brand__word { display: none; }
    .display { font-size: clamp(38px, 10.5vw, 52px); }
    .display--page { font-size: clamp(34px, 9.5vw, 44px); }
    .actions .btn--primary, .actions .btn--light { width: 100%; }
    .hero-figures { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .hero-figures div + div { padding-top: 14px; padding-left: 0; border-top: 1px solid var(--whk-line); border-left: 0; }
    .hero__doc { grid-area: 2 / 1; align-self: start; justify-self: center; margin: -48px 0 0; }
    .hero__doc > .doc { zoom: 0.66; }
    .hero__visual > .figure-caption { margin-top: 16px; padding-left: 0; }
    .page-hero__doc > .doc { zoom: 0.6; }
    .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .logos li { height: 68px; padding: 12px 18px; }
    .logos img { max-height: 30px; }
    .service__visual { height: 280px; }
    .service__visual > .doc { zoom: 0.72; }
    .bars p, .alt-path { border-radius: var(--whk-radius-l); }
    .promises { grid-template-columns: minmax(0, 1fr) max-content; }
    .promises li { gap: 4px 12px; }
    .promises strong, .promises span { grid-column: 1; }
    .promises em { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
    .delivery__visual > .doc { transform: none; zoom: 0.72; }
    .contact__doc { justify-content: center; }
    .contact__doc > .doc { transform: none; zoom: 0.76; }
    .callouts__visual { padding: 20px 28px; }
    .callouts__visual > .doc { zoom: 0.6; }
    .callouts__visual > .doc--report { zoom: 0.5; }
    .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }
    .figures div + div { padding-left: 0; border-left: 0; }
    .figures div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--whk-line); }
    .timeline-facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .articles, .perks { grid-template-columns: minmax(0, 1fr); }
    .perks li:nth-child(n + 2) { border-top-color: var(--whk-line); }
    .press { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .press-item, .press-item:nth-child(-n + 2) { grid-column: auto; }
    .press-item:nth-child(-n + 2) > h3 { font-size: 19px; }
    .press-item__clip { padding: 18px 18px 0; }
    .press-more li { grid-template-columns: minmax(0, 1fr) auto; }
    .press-more small { grid-column: 1 / -1; }
    .fields, .inquiry .public-lead-form { grid-template-columns: minmax(0, 1fr); }
    .position { grid-template-columns: minmax(0, 1fr); }
    .position > .btn { grid-column: 1; grid-row: auto; justify-self: start; }
    .person { align-items: flex-start; }
    .person__photo { width: 80px; height: 80px; }
    .band__figure b { font-size: 72px; }
    .site-footer__top { grid-template-columns: minmax(0, 1fr); }
    .feature__visual { padding: 20px 8px; }
    .feature__visual > .doc { zoom: 0.7; }
    .doc-stack > .doc { zoom: 0.62; }
    .checks--two { grid-template-columns: minmax(0, 1fr); }
    .compare th, .compare td { padding: 12px; font-size: 14px; }
    .compare { min-width: 620px; }
    /* Topics scroll sideways inside their row; the page itself never does. */
    .topics .topics__list, .topics--rail .topics__list { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--whk-gutter)); padding: 2px var(--whk-gutter) 8px; scrollbar-width: none; }
    .topics .topics__list::-webkit-scrollbar { display: none; }
    .search { gap: 8px; padding-left: 16px; }
    .search > .btn { padding: 0 16px; }
    /* Listings: each card becomes a row with a small visual. */
    .articles--many .article { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 4px 14px; }
    .articles--many .article:has(> .article__excerpt) { display: flex; }
    .articles--many .article > img, .articles--many .article > .sheet, .articles--many .article > .article__tile { grid-row: 1 / span 4; grid-column: 1; }
    .articles--many .article > :not(img):not(.sheet):not(.article__tile) { grid-column: 2; }
    .articles--many .article__meta { margin: 0; font-size: 12.5px; }
    .articles--many .article > h3 { font-size: 18px; }
    .articles--many .article__line { font-size: 14px; }
    .articles--many .sheet__type, .articles--many .sheet__name, .articles--many .sheet__figure:not(.sheet__figure--result) { display: none; }
    .articles--many .sheet__figures { inset: 0; justify-content: center; padding: 0 8px; }
    .articles--many .sheet__figure--result { flex-direction: column; gap: 2px; font-size: 10px; }
    .articles--many .sheet__figure--result > span { display: -webkit-box; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    /* A thumbnail has no room for the topic: the tile keeps its gold rule. */
    .articles--many .article__tile { padding: 12px; }
    .articles--many .article__tile > span { width: 45%; padding-top: 0; font-size: 0; }
    .pager { justify-content: flex-start; }
    .result > h3 { font-size: 20px; }
    .legal__facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .legal__text { font-size: 16px; }
    .post-head { gap: 20px; }
    .post-head__title { font-size: clamp(28px, 7.6vw, 36px); line-height: 1.12; }
    .post-head .lead { font-size: 16px; line-height: 1.55; }
    /* A smaller picture; the byline puts its dates under the name, full width. */
    .post-head__image { max-width: 260px; }
    .byline { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 12px; }
    .byline__img { grid-row: auto; width: 40px; height: 40px; }
    .byline__facts { grid-column: 1 / -1; gap: 0 12px; font-size: 13.5px; }
    .post__toc-mobile { margin-bottom: 24px; }
    .attachment-download-card { grid-template-columns: 44px minmax(0, 1fr); gap: 10px 12px; padding: 12px; }
    .attachment-download-card__icon { width: 44px; height: 44px; }
    .attachment-download-card__cta { grid-column: 1 / -1; height: 46px; }
    .attachment-viewer--hero .attachment-viewer__load-trigger { bottom: 10px; height: 40px; padding: 0 14px; font-size: 13.5px; }
    .prose { font-size: 17px; }
    .prose > h2 { margin-top: 44px; padding-top: 22px; font-size: 25px; }
    .prose h3 { font-size: 20px; }
    .prose > :is(figure, .hero-visual, .summary-visual, .svg-container) { margin-inline: calc(-1 * var(--whk-gutter) + 8px); }
    .prose :is(th, td) { padding: 10px 12px !important; font-size: 14.5px; }
    /* Columns an article sets inline (pros and cons, comparisons) stack. */
    .prose [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
    /* The diagram's button: out of the flow and without offsets, so it
       stands where it would in the text and takes no space; the script's
       margins carry it to the diagram's lower right corner. */
    .prose button.diagram-zoom__btn { position: absolute; z-index: 1; display: inline-flex; box-shadow: 0 1px 3px rgb(22 33 61 / 0.18); }
    /* Calculators that lay their fields out in two columns get one. */
    .prose :is(.calculator-widget, .liquidity-calculator) :is(.calc-grid, .calc-grid > *) { grid-template-columns: minmax(0, 1fr); grid-column: 1 / -1; min-width: 0; }
    .prose :is(.calculator-widget, .liquidity-calculator) input { min-width: 0; max-width: 100%; }
    /* A dropdown keeps the least width its article gives it. Letting it
       shrink like the fields was tried on the live pages: in a wrapping row
       it shrank to its arrow (din-276-excel-vorlage), and a fixed least
       width pushed it past the card beside a long question
       (compliance-bedeutung). */
    .prose :is(.calculator-widget, .liquidity-calculator) select { max-width: 100%; }
    .post-foot__row { align-items: flex-start; }
    .author { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 20px; }
    .author__img { width: 56px; height: 56px; }
    .post-service { grid-template-columns: minmax(0, 1fr); }
    .post-service__copy { padding: 20px; }
    .post-service__visual { display: none; }
  }
}

/* src/docs.css */

/* WHK Controlling design system: documents. D · Mandat, LOCKED 2026-09-24.
 *
 * What WHK delivers, drawn as paper: the BWA-Brücke, the Fixkosten-Baseline,
 * the audit findings, the Monats-Controlling page, the Monatsbericht, the
 * start timeline, the close calendar, the exception queue and the Fahrplan.
 * Generated by src/docs.mjs with the synthetic "Beispiel GmbH" figures.
 * Documents read the --doc-* tokens (brand/tokens.css), so they carry the
 * brand; rules target the document's own elements only. */

.whk-site {
  .doc { width: 440px; padding: 22px 24px; border-radius: var(--doc-radius); background: var(--doc-paper); box-shadow: var(--doc-shadow); color: var(--doc-ink); font: 400 12.5px/1.5 var(--doc-font-body); letter-spacing: normal; text-align: left; }
  .doc--queue { width: 520px; }
  .doc--report { width: 600px; padding: 26px 28px; }
  .doc--calendar { width: 480px; }
  .doc__head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--doc-line); }
  .doc__mark { display: grid; place-items: center; height: 22px; padding: 0 7px; background: var(--doc-accent); color: #fff; font: 800 11px/1 var(--doc-font-body); font-style: italic; letter-spacing: 0.06em; transform: skewX(-8deg); }
  .doc__heading { flex: 1; min-width: 0; }
  .doc__kicker { margin: 0; color: var(--doc-muted); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
  .doc__client { margin: 1px 0 0; font: 600 15.5px/1.25 var(--doc-font-title); font-variant-numeric: lining-nums; }
  .doc__page { color: var(--doc-muted); font-size: 10px; white-space: nowrap; }
  .doc__title { margin: 14px 0 6px; color: var(--doc-accent); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
  .doc__foot { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--doc-line); color: var(--doc-muted); font-size: 11px; }
  .doc__foot b { color: var(--doc-ink); font-weight: 600; }
  .doc-ok { flex: none; width: 12px; height: 12px; }
  .doc__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 0; }
  .doc__kpis > div { padding: 9px 11px; border: 1px solid var(--doc-line); border-radius: 4px; }
  .doc__kpis dt { color: var(--doc-muted); font-size: 10.5px; }
  .doc__kpis dd { display: flex; flex-direction: column; margin: 2px 0 0; }
  .doc__kpis b { font: 600 16px/1.25 var(--doc-font-title); font-variant-numeric: tabular-nums lining-nums; }
  .doc__kpis dd span { color: var(--doc-muted); font-size: 10.5px; }
  .doc__kpis--four { grid-template-columns: repeat(4, 1fr); }
  .doc__notes { margin: 0; padding-left: 18px; }
  .doc__notes li { margin: 3px 0; padding-left: 2px; }
  .doc__notes li::marker { color: var(--doc-accent); font-weight: 700; }
  .doc__pos { color: var(--whk-positive); }
  .doc__neg { color: var(--whk-negative); }

  /* Die BWA-Brücke: three anchors, the named items between them, the rest. */
  .bridge { margin: 10px 0 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums lining-nums; }
  .bridge li { display: grid; grid-template-columns: 1fr auto 104px; align-items: center; gap: 10px; }
  .bridge__anchor { margin: 6px 0; padding: 8px 10px; border-radius: 4px; background: color-mix(in oklab, var(--doc-accent) 7%, var(--doc-paper)); }
  .bridge__anchor span { display: flex; flex-direction: column; }
  .bridge__anchor b { font: 600 13px/1.2 var(--doc-font-title); font-variant-numeric: lining-nums; }
  .bridge__anchor small { color: var(--doc-muted); font-size: 10.5px; }
  .bridge__anchor strong { font: 600 15px/1 var(--doc-font-title); font-variant-numeric: lining-nums; }
  .bridge__item { padding: 3px 10px 3px 22px; color: var(--doc-muted); }
  .bridge__item strong { color: var(--doc-ink); font-weight: 500; }
  .bridge__rest { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; color: var(--whk-positive); font-size: 10.5px; font-style: normal; font-weight: 600; white-space: nowrap; }

  /* Tables: the fixed-cost baseline, the report's locations, the queue. */
  .doc-table { width: 100%; margin: 10px 0 0; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
  .doc-table th { padding: 6px 8px; border-bottom: 1px solid var(--doc-line); color: var(--doc-muted); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-align: right; text-transform: uppercase; }
  .doc-table th:first-child, .doc-table td:first-child { text-align: left; }
  .doc-table td { padding: 6px 8px; border-bottom: 1px solid color-mix(in oklab, var(--doc-line) 60%, transparent); text-align: right; }
  .doc-table td + td { white-space: nowrap; }
  .doc-table tr.is-flag td:last-child { color: var(--doc-accent); font-weight: 700; }
  .doc-table tr.is-sub td { color: var(--doc-muted); }
  .doc-table tfoot td { border-bottom: 0; color: var(--doc-muted); font-weight: 600; }
  .doc-table tfoot td:nth-child(n + 2) { color: var(--doc-ink); }
  .doc-table small { display: block; color: var(--doc-muted); font-size: 10px; }
  .doc-table--queue td { vertical-align: top; }
  .doc-table--queue td:nth-child(3) { text-align: left; }
  .doc-table--queue tr.is-flag td:last-child { color: inherit; font-weight: 400; }
  .queue__action { display: inline-block; padding: 3px 9px; border-radius: 4px; background: var(--doc-accent); color: #fff; font-size: 10.5px; font-weight: 600; }
  .doc-table--queue tr.is-flag .queue__action { border: 1px solid var(--doc-accent); background: transparent; color: var(--doc-accent); }

  /* Audit findings: eight fields, each with its euro effect, and the total. */
  .findings { margin: 8px 0 0; padding: 0; list-style: none; }
  .findings li { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid color-mix(in oklab, var(--doc-line) 60%, transparent); }
  .findings__no { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in oklab, var(--doc-accent) 12%, var(--doc-paper)); color: var(--doc-accent); font-size: 10px; font-weight: 700; }
  .findings__area { display: flex; flex-direction: column; }
  .findings__area b { font-weight: 600; }
  .findings__area small { color: var(--doc-muted); font-size: 10.5px; }
  .findings strong { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
  .doc__total { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin-top: 12px; }
  .doc__total strong { font: 600 18px/1 var(--doc-font-title); font-variant-numeric: tabular-nums lining-nums; }
  .doc__bar { position: relative; grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--doc-line); }
  .doc__bar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--doc-accent); }
  .doc__bar i.is-threshold { inset: -3px auto -3px 0; width: 2px; border-radius: 0; background: var(--doc-ink); }
  .doc__total small { grid-column: 1 / -1; color: var(--doc-muted); font-size: 10.5px; }

  /* Marge je Standort around a zero line. */
  .segments { margin: 12px 0 0; }
  .segments__row { display: grid; grid-template-columns: 74px 1fr 52px; align-items: center; gap: 10px; margin: 6px 0; font-variant-numeric: tabular-nums lining-nums; }
  .segments__track { position: relative; height: 10px; border-radius: 2px; background: color-mix(in oklab, var(--doc-line) 50%, transparent); }
  .segments__track::after { content: ''; position: absolute; inset: -3px auto -3px 50%; width: 1px; background: var(--doc-muted); }
  .segments__track i { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--doc-accent); }
  .segments__track i.is-neg { background: var(--whk-negative); }
  .segments__row b { font-weight: 600; text-align: right; }

  /* Monatsbericht: three blocks, each answering one question. */
  .report__block { margin-top: 16px; }
  .report__block + .report__block { padding-top: 14px; border-top: 1px solid var(--doc-line); }
  .report__label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 6px; }
  .report__label b { font: 600 13.5px/1.3 var(--doc-font-title); font-variant-numeric: lining-nums; }
  .report__label small { color: var(--doc-muted); font-size: 10.5px; }
  .stock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 0; }
  .stock > div { padding: 8px 10px; border-radius: 4px; background: color-mix(in oklab, var(--doc-accent) 6%, var(--doc-paper)); }
  .stock dt { color: var(--doc-muted); font-size: 10.5px; }
  .stock dd { margin: 2px 0 0; font: 600 15px/1.2 var(--doc-font-title); font-variant-numeric: tabular-nums lining-nums; }
  .stock dd small { display: block; color: var(--doc-muted); font: 400 10.5px/1.3 var(--doc-font-body); }
  /* Thirteen months of closing balances, the low point dated, the credit line dashed. */
  .runway { position: relative; display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); align-items: stretch; gap: 4px; height: 118px; margin: 10px 0 0; padding: 0 0 16px; }
  .runway::before { content: ''; position: absolute; top: var(--zero); right: 0; left: 0; height: 1px; background: var(--doc-muted); }
  .runway::after { content: 'Kreditlinie'; position: absolute; top: var(--limit); right: 0; left: 0; height: 0; border-top: 1px dashed var(--whk-negative); color: var(--whk-negative); font-size: 9px; line-height: 1; text-align: right; transform: translateY(-11px); }
  .runway__bar { position: relative; }
  .runway__bar i { position: absolute; right: 0; left: 0; border-radius: 2px; background: var(--doc-accent-soft); }
  .runway__bar.is-low i { background: var(--doc-accent); }
  .runway__bar small { position: absolute; right: -4px; bottom: -16px; left: -4px; color: var(--doc-muted); font-size: 8.5px; text-align: center; }
  .runway__low { position: absolute; left: 50%; z-index: 1; color: var(--doc-accent); font-size: 10px; font-weight: 700; white-space: nowrap; transform: translate(-50%, 4px); }

  /* Ihr Start: the onboarding steps as the portal shows them. */
  .timeline { margin: 12px 0 0; padding: 0; list-style: none; }
  .timeline li { position: relative; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 7px 0; }
  .timeline li + li::before { content: ''; position: absolute; top: -8px; left: 10px; width: 2px; height: 16px; background: var(--doc-line); }
  .timeline li.is-done + li::before { background: var(--doc-accent); }
  .timeline__dot { display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--doc-line); border-radius: 50%; background: var(--doc-paper); color: #fff; }
  .timeline li.is-done .timeline__dot { border-color: var(--doc-accent); background: var(--doc-accent); }
  .timeline li.is-now b { color: var(--doc-accent); }
  .timeline b { font-weight: 600; }
  .timeline small { color: var(--doc-muted); font-size: 11px; font-variant-numeric: tabular-nums lining-nums; }

  /* Der Monatsabschluss in Werktagen: who does what, by when. */
  .calendar { display: grid; margin: 10px 0 0; padding: 0; list-style: none; }
  .calendar li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid color-mix(in oklab, var(--doc-line) 60%, transparent); }
  .calendar__day { display: grid; place-items: center; height: 24px; border-radius: 4px; background: color-mix(in oklab, var(--doc-accent) 8%, var(--doc-paper)); color: var(--doc-accent); font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums lining-nums; }
  .calendar li.is-done .calendar__day { background: var(--doc-accent); color: #fff; }
  .calendar li.is-now { margin: 0 -8px; padding-inline: 8px; border-radius: 4px; background: color-mix(in oklab, var(--doc-accent) 6%, var(--doc-paper)); }
  .calendar b { font-weight: 600; }
  .calendar small { display: block; color: var(--doc-muted); font-size: 10.5px; }
  .calendar__who { color: var(--doc-muted); font-size: 10.5px; white-space: nowrap; }

  /* Der Fahrplan nach dem Erstgespräch. */
  .plan-steps { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: plan; }
  .plan-steps li { display: grid; grid-template-columns: 22px 1fr auto; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid color-mix(in oklab, var(--doc-line) 60%, transparent); counter-increment: plan; }
  .plan-steps li::before { content: counter(plan); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--doc-accent); color: #fff; font-size: 10px; font-weight: 700; }
  .plan-steps b { font-weight: 600; }
  .plan-steps small { grid-column: 2; color: var(--doc-muted); font-size: 10.5px; }
  .plan-steps strong { grid-row: 1; grid-column: 3; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
}

/* Added 2026-09-25 with the Finanz-Tools and 404 pages. */
.whk-site {
  /* Seitenverzeichnis (404): found routes in green, the requested one missing. */
  .doc__found { display: inline-flex; align-items: center; gap: 4px; color: var(--whk-positive); font-weight: 600; }
  .doc-table tr.is-missing td { background: color-mix(in oklab, var(--whk-negative) 6%, var(--doc-paper)); color: var(--whk-negative); font-weight: 600; }
}

/* Added 2026-10-18 (Round 11): the Finanz-Check's results as their own pages
   and the Bankpaket's lender file. */
.whk-site {
  .doc__kpis--three { grid-template-columns: repeat(3, 1fr); }
  /* Interne Bilanz: Aktiva and Passiva as two bars of the same length. */
  .balance { display: grid; gap: 6px; margin: 12px 0 2px; }
  .balance > div { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 8px; }
  .balance__side { margin: 0; color: var(--doc-muted); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
  .balance__bar { display: flex; gap: 2px; height: 26px; }
  .balance__part { position: relative; display: flex; align-items: center; min-width: 0; overflow: hidden; padding: 0 5px; border-radius: 2px; background: var(--doc-accent-soft); color: var(--doc-ink); font-size: 9px; font-style: normal; white-space: nowrap; }
  .balance__part:nth-child(even) { background: color-mix(in oklab, var(--doc-accent-soft) 55%, var(--doc-paper)); }
  .balance__part.is-equity { background: var(--doc-accent); color: #fff; font-weight: 600; }
  .balance__part span { overflow: hidden; text-overflow: ellipsis; }
  /* Bankfähigkeit: five factors on a five-step meter, the gaps marked. */
  .score { margin: 10px 0 0; padding: 0; list-style: none; }
  .score li { display: grid; grid-template-columns: minmax(0, 1fr) auto 42px; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid color-mix(in oklab, var(--doc-line) 60%, transparent); }
  .score li > span:first-child { display: flex; flex-direction: column; font-weight: 600; }
  .score small { color: var(--doc-muted); font-size: 10.5px; font-weight: 400; font-variant-numeric: tabular-nums lining-nums; }
  .score__meter { display: flex; gap: 3px; }
  .score__meter i { width: 18px; height: 8px; border-radius: 2px; background: color-mix(in oklab, var(--doc-line) 70%, transparent); }
  .score__meter i.is-on { background: var(--doc-accent); }
  .score li.is-gap .score__meter i.is-on { background: var(--whk-negative); }
  .score b { font-size: 10.5px; font-weight: 700; text-align: right; }
  .score li.is-gap b { color: var(--whk-negative); }
  /* Beratungsbericht: a cover with contents and both signatures. */
  .doc--cover { width: 400px; }
  .cover__title { display: flex; flex-direction: column; margin: 22px 0 14px; padding-bottom: 14px; border-bottom: 2px solid var(--whk-gold); font: 600 30px/1.05 var(--doc-font-title); font-variant-numeric: lining-nums; }
  .cover__title span { margin-top: 6px; color: var(--doc-muted); font: 400 11.5px/1.3 var(--doc-font-body); }
  .cover__contents { margin: 0; padding: 0; list-style: none; counter-reset: part; }
  .cover__contents li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 6px; padding: 2px 0; counter-increment: part; }
  .cover__contents span::before { content: counter(part) '  '; color: var(--doc-accent); font-weight: 700; }
  .cover__contents i { border-bottom: 1px dotted var(--doc-line); }
  .cover__contents small { color: var(--doc-muted); font-size: 10.5px; font-variant-numeric: tabular-nums lining-nums; }
  .cover__signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
  .cover__signatures p { display: flex; flex-direction: column; gap: 4px; margin: 0; color: var(--doc-muted); font-size: 10px; }
  .cover__signatures i { display: block; height: 26px; border-bottom: 1px solid var(--doc-ink); }
  .cover__signatures i.is-signed { color: var(--doc-accent); font: italic 500 19px/26px var(--doc-font-title); }
  /* Ihre Unterlagen: the source of each, the ticks right. */
  .doc-table--papers td:nth-child(2) { color: var(--doc-muted); }
  .doc-table--papers td:last-child { width: 20px; }
  /* Kapitaldienst: one bar per year, the yearly cash flow as a dashed line. */
  .service-chart { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; height: 120px; margin: 14px 0 6px; padding: 0 8px 16px; border-bottom: 1px solid var(--doc-muted); }
  .service-chart::after { content: 'Cashflow'; position: absolute; right: 0; bottom: calc(16px + var(--cash)); left: 0; border-top: 1px dashed var(--whk-positive); color: var(--whk-positive); font-size: 9px; text-align: right; transform: translateY(-11px); }
  .service-chart__bar { position: relative; display: flex; align-items: flex-end; }
  .service-chart__bar i { position: relative; width: 100%; border-radius: 2px 2px 0 0; background: var(--doc-accent-soft); }
  .service-chart__bar:first-child i { background: var(--doc-accent); }
  .service-chart__bar b { position: absolute; top: -15px; right: 0; left: 0; font-size: 9.5px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums lining-nums; }
  .service-chart__bar small { position: absolute; right: 0; bottom: -16px; left: 0; color: var(--doc-muted); font-size: 9.5px; text-align: center; }
  /* Unternehmensprofil: label and value per row. */
  .profile { display: grid; margin: 10px 0 0; }
  .profile > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 6px 0; border-bottom: 1px solid color-mix(in oklab, var(--doc-line) 60%, transparent); }
  .profile dt { color: var(--doc-muted); font-size: 10.5px; }
  .profile dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
}
