/* ═══════════════════════════════════════════════════════════════════════════
   Kontor — Knowledge articles  (/wissen · /en/knowledge)
   ───────────────────────────────────────────────────────────────────────────
   Long-form editorial layer on top of /landing.css. Same design language as
   the rest of the marketing surface (Fraunces display + Geist body), only
   denser: these pages carry tables, worked examples and inline diagrams.

   Colours come from /theme.css. The diagram palette the inline SVGs address
   (--kontor-tier-1 and friends) is declared there too; this file adds no
   colour of its own.

   Weight cap in this file is 500. Fraunces is display only (h1, h2 and the hub
   card headings) and never enters the SVGs.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Article shell ────────────────────────────────────────────────────────────
   ONE column, 820px, shared by text, tables and figures. Nothing on these pages
   is wider than the prose: every element's left and right edge is the same edge
   all the way down. Nothing uses a rule to separate anything either, so the
   divisions are made by space, weight and tint.

   The diagrams have a 780 viewBox, which fits inside 820 without scaling up.
   ─────────────────────────────────────────────────────────────────────────── */
.kn-article { padding: 40px 0 72px; background: var(--card); }
.kn-body { max-width: 876px; margin: 0 auto; padding: 0 28px; }   /* 820px column + gutters */

.kn-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); margin-bottom: 26px; }
.kn-crumbs a { color: var(--text-2); }
.kn-crumbs a:hover { color: var(--blue); text-decoration: none; }
.kn-crumbs span { color: var(--border); }
.kn-crumbs .kn-crumb-current { color: var(--text-3); }

.kn-article h1 {
  font-family: 'Fraunces', 'Times New Roman', Georgia, serif;
  font-weight: 400; letter-spacing: -0.025em; line-height: 1.08;
  font-size: clamp(31px, 4.1vw, 46px);
  color: var(--text); margin-bottom: 22px;
}

/* First paragraph of the article: the standfirst. Also the meta description. */
.kn-lead { font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.62; color: var(--text-2); margin-bottom: 14px; }

/* ── Prose ────────────────────────────────────────────────────────────────── */
.kn-prose { font-size: 16px; line-height: 1.78; color: var(--text); }
.kn-prose p { margin: 0 0 20px; }
.kn-prose strong, .kn-prose b { font-weight: 500; color: var(--text); }   /* <b> too: the UA default is 700, above the cap */
.kn-prose em { font-style: italic; color: var(--text-2); }
.kn-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--blue-mid); }
.kn-prose a:hover { text-decoration-color: var(--blue); }

/* No rule above the heading. The space does the separating. */
.kn-prose h2 {
  font-family: 'Fraunces', 'Times New Roman', Georgia, serif;
  font-weight: 400; letter-spacing: -0.015em; line-height: 1.18;
  font-size: clamp(23px, 2.5vw, 29px);
  color: var(--text); margin: 72px 0 18px;
}
.kn-prose h3 {
  font-family: 'Geist', system-ui, sans-serif;
  font-weight: 500; letter-spacing: -0.01em; line-height: 1.32;
  font-size: 17.5px; color: var(--text); margin: 36px 0 12px;
}

.kn-prose ul { list-style: none; margin: 0 0 20px; padding: 0; }
.kn-prose ul li { position: relative; padding-left: 22px; margin-bottom: 13px; }
.kn-prose ul li::before { content: ""; position: absolute; left: 3px; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-mid); }

/* ── Tables ───────────────────────────────────────────────────────────────────
   Row delineation is padding plus a zebra tint. No horizontal rules anywhere,
   including between rows.

   table-layout: fixed with a per-column-count <colgroup> is what makes two
   tables that follow each other line up to the pixel: the widths come from the
   colgroup, not from the widest cell, so neighbouring tables cannot disagree.
   ─────────────────────────────────────────────────────────────────────────── */
/* No scroll wrapper at reading widths: the table fits the column. Below 900px
   the overflow rule and the min-width below restore in-place scrolling. */
.kn-table-wrap { margin-block: 30px 34px; }
.kn-table {
  width: 100%; table-layout: fixed;
  border-collapse: separate; border-spacing: 0;
  font-size: 14px; line-height: 1.55;
  border-radius: var(--radius-xl); overflow: hidden; background: var(--card);
}
.kn-table th, .kn-table td { padding: 14px 18px; text-align: left; vertical-align: top; overflow-wrap: break-word; }
/* Weight cap 500 everywhere, so the browser's default bold <th> is overridden
   rather than inherited. The total row separates itself by tint, not weight. */
.kn-table thead th { font-weight: 500; color: var(--text); background: var(--blue-lt); font-size: 13px; letter-spacing: 0.005em; }
.kn-table tbody th { font-weight: 500; color: var(--text); }
/* Zebra, from an existing surface token. This is the row separator. */
.kn-table tbody tr:nth-child(even) th, .kn-table tbody tr:nth-child(even) td { background: var(--bg); }
.kn-table tbody tr:hover th, .kn-table tbody tr:hover td { background: color-mix(in srgb, var(--blue-lt) 55%, transparent); }
.kn-table .num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.kn-table thead th.num { text-align: right; white-space: normal; }   /* headers wrap, never truncate */
.kn-table .kn-total th, .kn-table .kn-total td { font-weight: 500; background: var(--blue-lt); }
.kn-table .kn-total strong { color: var(--blue); }
/* Accepted mobile fallback: below 900px a wide table scrolls in place, and the
   min-width is what keeps the fixed columns from collapsing into each other. */
@media (max-width: 900px) {
  .kn-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .kn-table { min-width: 560px; }
}

/* ── Figures (inline SVG + visible caption) ───────────────────────────────── */
.kn-figure { margin-block: 38px 34px; }
/* 20px gutters leave exactly 780px inside the 820 column, which is the SVG's
   natural viewBox width: the diagrams are neither scaled up nor squeezed. */
.kn-figure-frame { background: var(--bg); border-radius: var(--radius-xl); padding: 20px; }
/* Natural width, centred, never stretched: the 780 viewBox sits inside the
   820 column with room to spare, so `width: 100%` would only ever scale it up. */
.kn-figure-frame svg { display: block; width: 100%; max-width: 780px; height: auto; margin: 0 auto; }
@media (max-width: 900px) {
  .kn-figure-frame { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .kn-figure-frame svg { min-width: 560px; }
}
.kn-figure figcaption { font-size: 14px; line-height: 1.7; color: var(--text-2); margin-top: 16px; }

/* ── Footnote paragraph (the italic source note) ──────────────────────────── */
.kn-note { font-size: 13.5px; line-height: 1.7; color: var(--text-3); font-style: italic; margin: 30px 0 0; }

/* ── Related questions ────────────────────────────────────────────────────── */
/* The tint change from the article surface is the separator, not a rule. */
.kn-related { background: var(--bg); padding: 56px 0 64px; }
.kn-related h2 { font-family: 'Fraunces', 'Times New Roman', Georgia, serif; font-weight: 400; font-size: 24px; letter-spacing: -0.015em; margin-bottom: 20px; }
.kn-related ul { list-style: none; margin: 0; padding: 0; }
.kn-related li { padding: 11px 0; font-size: 15px; line-height: 1.6; }
.kn-related li a { color: var(--blue); font-weight: 500; }
.kn-related li a:hover { color: var(--blue-hover); text-decoration: underline; text-underline-offset: 3px; }
.kn-related li.kn-soon { color: var(--text-3); }

/* ── Language switch (article foot) ───────────────────────────────────────── */
.kn-langswitch { margin: 48px 0 0; font-size: 14px; color: var(--text-2); }
.kn-langswitch a { color: var(--blue); font-weight: 500; }
.kn-langswitch a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Hub ──────────────────────────────────────────────────────────────────── */
.kn-hub-head { max-width: 860px; margin: 0 auto 44px; padding: 0 28px; }
.kn-hub-head h1 { font-family: 'Fraunces', 'Times New Roman', Georgia, serif; font-weight: 400; letter-spacing: -0.025em; line-height: 1.06; font-size: clamp(34px, 4.4vw, 50px); margin-bottom: 18px; }
.kn-hub-head p { font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.62; color: var(--text-2); }

.kn-hub-list { max-width: 860px; margin: 0 auto; padding: 0 28px; display: grid; gap: 20px; }
.kn-hub-item {
  display: block; background: var(--card); border: 1px solid var(--border-lt);
  border-radius: var(--radius-2xl); padding: 30px 32px; color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.kn-hub-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); border-color: var(--blue-mid); text-decoration: none; color: var(--text); }
.kn-hub-item h2 { font-family: 'Fraunces', 'Times New Roman', Georgia, serif; font-weight: 400; font-size: clamp(21px, 2.2vw, 25px); letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 10px; }
.kn-hub-item p { font-size: 15px; line-height: 1.68; color: var(--text-2); margin: 0; }
.kn-hub-item .kn-hub-more { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--blue); }

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .kn-article { padding: 28px 0 56px; }
  .kn-body, .kn-hub-head, .kn-hub-list { padding-left: 20px; padding-right: 20px; }
  .kn-prose { font-size: 15.5px; }
  .kn-prose h2 { margin-top: 40px; }
  .kn-figure-frame { padding: 12px; }
  .kn-hub-item { padding: 24px 22px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Article building blocks first used by /wissen/e-rechnung-europa-golfstaaten-lateinamerika
   (and its EN twin). Scoped to .kn-einv where a rule would otherwise change
   an existing article; the rest are new classes no other page uses yet.
   Same rules as above: tokens from /theme.css only, weight cap 500, no rules
   (lines) as separators, only space and tint.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Eyebrow above the H1. landing.css sets .eyebrow at 600; the cap here is 500. */
.kn-article .eyebrow { font-weight: 500; margin-bottom: 12px; }

/* The nav is fixed; keep jumped-to headings clear of it. */
.kn-einv [id] { scroll-margin-top: 96px; }

/* ── Table of contents ───────────────────────────────────────────────────── */
.kn-toc { background: var(--bg); border-radius: var(--radius-xl); padding: 20px 24px; margin: 30px 0 8px; }
.kn-prose .kn-toc-title { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin: 0 0 10px; }
.kn-toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.kn-toc li { margin: 0 0 6px; break-inside: avoid; font-size: 15px; line-height: 1.5; }
.kn-prose .kn-toc a { text-decoration: none; }
.kn-prose .kn-toc a:hover { text-decoration: underline; }

/* ── Short sections in two columns (six of them: three full rows) ────────── */
.kn-basics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 36px; margin: 0 0 20px; }
.kn-prose .kn-basics h3 { margin: 22px 0 8px; font-size: 16.5px; }
.kn-prose .kn-basics p { margin: 0; font-size: 15px; line-height: 1.7; }

/* ── Four equal columns ──────────────────────────────────────────────────── */
.kn-models { list-style: none; margin: 26px 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
/* Each card spans three rows of the list grid (heading, text, examples) and takes them over as a subgrid, so the
   examples begin at the same height in every card of a row. */
.kn-models li { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-content: start; background: var(--bg); border-radius: var(--radius-xl); padding: 18px 16px; }
.kn-prose .kn-models h3 { margin: 0 0 8px; font-size: 15.5px; }
.kn-prose .kn-models p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.kn-prose .kn-models .kn-models-ex { margin: 0; font-size: 13.5px; color: var(--text); }
.kn-models-ex span { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }

/* ── Status dots (country table and its legend) ──────────────────────────────
   Four states by fill, never by hue alone, and never green or red: green is
   the live indicator's, red is errors'. The status is also written out next
   to every dot. */
.kn-dot { display: inline-block; flex: none; box-sizing: border-box; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--blue); background: transparent; }
.kn-dot-live { background: var(--blue); }
.kn-dot-phased { background: linear-gradient(90deg, var(--blue) 50%, transparent 50%); }
.kn-dot-planned { border-style: dashed; }
.kn-dot-none { border-color: var(--text-3); background: var(--border); }

.kn-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 4px 0 18px; font-size: 13.5px; color: var(--text-2); }
.kn-legend-title { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.kn-prose .kn-legend ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; }
.kn-prose .kn-legend li { display: flex; align-items: center; gap: 7px; padding: 0; margin: 0; }
.kn-prose .kn-legend li::before { content: none; }

/* ── Region filter chips. Hidden until the page script reveals them. ─────── */
.kn-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.kn-filter[hidden] { display: none; }
.kn-filter-label { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-right: 4px; }
.kn-chip {
  font: inherit; font-size: 13.5px; font-weight: 400; line-height: 1.3;
  padding: 7px 14px; border-radius: var(--radius-pill); cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--text-2);
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.kn-chip:hover { border-color: var(--blue-mid); color: var(--text); }
.kn-chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--card); font-weight: 500; }
.kn-chip:focus-visible, .kn-ct-scroll:focus-visible, .kn-faq summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ── Country table ───────────────────────────────────────────────────────────
   Six text columns need about 1150px, more than the 820px column. Where the
   viewport is wide enough the table breaks out of the column (see the
   min-width: 1000px block below), centred and at most 1200px, and from about
   1214px it shows all six columns without scrolling. Narrower than that it
   scrolls inside its own container, never the page, and the first column
   stays put while it scrolls. Below 760px it turns into cards.
   This is the only element on the knowledge pages wider than the column;
   the exception is scoped to this table and touches no other article.
   .kn-table's overflow:hidden would make the table its own scroll container
   and break position:sticky, so the clipping moves to the wrapper. */
.kn-ct-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-xl); margin: 0 0 26px; }
/* hyphens: auto breaks long compound words (Kleinbetragsrechnungen,
   Unternehmensserviceportal) at syllables instead of leaving ragged gaps in
   the narrow columns. Needs the page's lang attribute, which both pages set. */
.kn-table.kn-ct { width: 100%; min-width: 1150px; font-size: 13.5px; line-height: 1.55; overflow: visible; border-radius: 0; -webkit-hyphens: auto; hyphens: auto; }
.kn-ct col.kn-ct-c1 { width: 13.5%; }
.kn-ct col.kn-ct-c2, .kn-ct col.kn-ct-c3 { width: 17.2%; }
.kn-ct col.kn-ct-c4 { width: 14.3%; }
.kn-ct col.kn-ct-c5 { width: 18.5%; }
.kn-ct col.kn-ct-c6 { width: 19.3%; }
/* Breakout: as wide as the viewport allows minus 32px a side, at most
   1200px, centred on the column. Centred on the column rather than on 100vw,
   so a classic scrollbar (which 100vw includes) cannot push the right edge
   past the page; the 32px gutter absorbs it. */
@media (min-width: 1000px) {
  .kn-ct-scroll {
    --kn-ct-w: min(1200px, calc(100vw - 64px));
    width: var(--kn-ct-w);
    margin-left: calc(50% - var(--kn-ct-w) / 2);
  }
}
.kn-ct th, .kn-ct td { padding: 13px 16px; }
.kn-ct td b { font-weight: 500; font-variant-numeric: tabular-nums; }

/* Sticky first column: needs an opaque background in every row state. */
.kn-ct thead th:first-child { position: sticky; left: 0; z-index: 2; }
.kn-ct tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--card); }
/* Edge shadow only while the table is actually scrolled sideways (the page
   script sets .is-scrolled). Unscrolled, at any width, it would only read as
   a vertical rule, and these pages separate nothing with rules. */
.kn-ct-scroll.is-scrolled .kn-ct tbody th[scope="row"] { box-shadow: 8px 0 10px -10px color-mix(in srgb, var(--text) 35%, transparent); }
.kn-ct tbody tr:nth-child(even) th[scope="row"] { background: var(--bg); }
.kn-ct tbody tr:hover th[scope="row"] { background: color-mix(in srgb, var(--blue-lt) 55%, var(--card)); }

.kn-ct-name { display: block; font-weight: 500; color: var(--text); }
.kn-ct-status { display: flex; align-items: center; gap: 7px; margin-top: 5px; font-size: 12px; font-weight: 400; line-height: 1.4; color: var(--text-2); }

/* Region group rows: label sticks to the left edge while the table scrolls. */
.kn-ct tbody tr.kn-ct-group th, .kn-ct tbody tr.kn-ct-group:hover th { background: var(--card); padding: 24px 16px 8px; }
.kn-ct-group-label { position: sticky; left: 16px; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.kn-ct tbody[hidden] { display: none !important; }

/* ── Info box (ViDA) ─────────────────────────────────────────────────────── */
.kn-box { background: var(--blue-lt); border-radius: var(--radius-xl); padding: 22px 24px; margin: 0 0 20px; }
.kn-prose .kn-box h3 { margin: 0 0 8px; font-size: 16.5px; }
.kn-prose .kn-box p { margin: 0; font-size: 15px; line-height: 1.7; }
.kn-box b { font-variant-numeric: tabular-nums; }

/* ── Timeline ────────────────────────────────────────────────────────────────
   Past entries dimmed, entries in the current month tinted. */
.kn-timeline { list-style: none; margin: 22px 0 20px; padding: 0; }
.kn-timeline li { position: relative; padding: 10px 14px 10px 34px; border-radius: var(--radius-lg); font-size: 15px; line-height: 1.6; }
.kn-timeline li::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: var(--border-lt); }
.kn-timeline li:first-child::before { top: 18px; }
.kn-timeline li:last-child::before { bottom: calc(100% - 18px); }
.kn-timeline li::after { content: ""; position: absolute; left: 7px; top: 13px; box-sizing: border-box; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--blue); background: var(--card); }
.kn-prose .kn-timeline b { display: block; font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--blue); }
.kn-timeline li.is-past { color: var(--text-3); }
.kn-prose .kn-timeline li.is-past b { color: var(--text-3); }
.kn-timeline li.is-past::after { border-color: var(--border); }
.kn-timeline li.is-now { background: var(--blue-lt); }
.kn-timeline li.is-now::after { background: var(--blue); }

/* ── Rows: heading left, text right. Equal rows rather than a card grid,
   which would leave the fifth item alone on its own line. ─────────────── */
.kn-rows { margin: 22px 0 20px; }
.kn-rows > div { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; padding: 16px 18px; border-radius: var(--radius-lg); }
.kn-rows > div:nth-child(odd) { background: var(--bg); }
.kn-rows dt { font-weight: 500; font-size: 15.5px; line-height: 1.55; color: var(--text); }
.kn-rows dd { margin: 0; font-size: 15px; line-height: 1.7; }

/* ── FAQ (native <details>) ──────────────────────────────────────────────── */
.kn-faq { margin: 18px 0 20px; }
.kn-faq details { background: var(--bg); border-radius: var(--radius-lg); margin-bottom: 8px; }
.kn-faq summary { position: relative; list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 500; line-height: 1.5; border-radius: var(--radius-lg); }
.kn-faq summary::-webkit-details-marker { display: none; }
.kn-faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid var(--blue); border-bottom: 1.5px solid var(--blue); transform: rotate(45deg);
  transition: transform var(--duration-fast) var(--ease-out);
}
.kn-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.kn-prose .kn-faq details p { margin: 0; padding: 0 20px 18px; }

/* ── Sources and disclaimer ──────────────────────────────────────────────── */
.kn-prose .kn-sources li { font-size: 14.5px; margin-bottom: 8px; overflow-wrap: anywhere; }
.kn-prose .kn-disclaimer { font-size: 14px; line-height: 1.65; color: var(--text-2); background: var(--bg); border-radius: var(--radius-lg); padding: 14px 18px; margin: 28px 0 20px; }

/* ── Narrower screens ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .kn-models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Below ~760px the country table becomes one card per country, each value
   with its column name. No sideways scrolling left at all. */
@media (max-width: 760px) {
  .kn-basics { grid-template-columns: 1fr; }
  .kn-rows > div { grid-template-columns: 1fr; gap: 6px; }

  .kn-ct-scroll { overflow: visible; border-radius: 0; }
  .kn-table.kn-ct, .kn-ct tbody, .kn-ct tr, .kn-ct th, .kn-ct td { display: block; width: auto; min-width: 0; }
  .kn-ct colgroup, .kn-ct thead { display: none; }
  .kn-ct tbody tr:not(.kn-ct-group) { background: var(--bg); border-radius: var(--radius-xl); padding: 6px 0; margin-bottom: 10px; }
  .kn-ct tbody tr th, .kn-ct tbody tr td,
  .kn-ct tbody tr:nth-child(even) th, .kn-ct tbody tr:nth-child(even) td,
  .kn-ct tbody tr:hover th, .kn-ct tbody tr:hover td,
  .kn-ct tbody tr th[scope="row"], .kn-ct tbody tr:nth-child(even) th[scope="row"],
  .kn-ct tbody tr:hover th[scope="row"] { background: transparent; }
  .kn-ct tbody th[scope="row"] { position: static; box-shadow: none; padding: 10px 16px 6px; }
  .kn-ct td { padding: 6px 16px; }
  .kn-ct td::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1px; }
  .kn-ct tbody tr.kn-ct-group th, .kn-ct tbody tr.kn-ct-group:hover th { background: transparent; padding: 18px 2px 8px; }
  .kn-ct-group-label { position: static; }
}

@media (max-width: 560px) {
  .kn-models { grid-template-columns: 1fr; }
  .kn-toc ol { columns: 1; }
  .kn-toc { padding: 18px 18px; }
}

/* ── Interactive figures (knowledge-fx.js) ────────────────────────────────── */
/* Same palette as the static figures: tier 1 closing rate, tier 2 average rate,
   tier 3 historical rate, the hatched red the translation reserve. No accent
   bars at the edge of a card; state is carried by fill, outline or the title. */
.kn-fx { --fx-hatch: repeating-linear-gradient(135deg, var(--kontor-cta, #C0392B) 0 1.6px, var(--kontor-cta-bg, #F5DADA) 1.6px 7px); }
.kn-fx-title { font-family: 'Fraunces', 'Times New Roman', Georgia, serif; font-weight: 400; font-size: 21px; letter-spacing: -0.01em; line-height: 1.25; color: var(--text); margin: 0 0 6px; }
.kn-fx-sub { font-size: 13.5px; line-height: 1.55; color: var(--text-2); margin: 0 0 18px; }
.kn-fx .num, .kn-fx-blk, .kn-fx-row-v, .kn-fx output { font-variant-numeric: tabular-nums; }

/* zeitachse: three cards under the curve, one per rate */
.kn-fx-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.kn-fx-legend div { background: var(--card); border: 1px solid var(--border-lt); border-radius: var(--radius); padding: 10px 12px; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.kn-fx-legend b { display: block; font-weight: 600; margin: 6px 0 2px; }
.kn-fx-legend i { display: block; width: 10px; height: 10px; border-radius: 50%; }
.kn-fx-legend i.t1 { background: var(--kontor-tier-1, #1B3A6B); }
.kn-fx-legend i.t2 { background: var(--kontor-tier-2, #47598A); }
.kn-fx-legend i.t3 { background: var(--kontor-tier-3, #8494B5); }
@media (max-width: 620px) { .kn-fx-legend { grid-template-columns: 1fr; } }

/* bilanz */
.kn-fx-bs-stage { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: end; }
.kn-fx-sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13.5px; margin-bottom: 8px; }
.kn-fx-sheet-head b { font-weight: 600; color: var(--text); }
.kn-fx-sheet-head span { color: var(--text-2); font-size: 12.5px; }
.kn-fx-sheet-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; align-items: end; }
.kn-fx-col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; }
.kn-fx-col-cap { font-size: 12px; color: var(--text-2); text-align: center; margin-top: 6px; }
.kn-fx-blk { display: flex; flex-direction: column; overflow: hidden; border-top: 2px solid var(--bg); border-radius: 4px; padding: 7px 9px; font-size: 12.5px; line-height: 1.3; color: var(--kontor-on-fill, #FFFFFF); transition: height .45s ease; }
.kn-fx-blk b { font-weight: 500; color: inherit; }
.kn-fx-blk.is-small { padding: 0 9px; justify-content: center; }
.kn-fx-blk.lc { background: color-mix(in srgb, var(--text-2) 72%, var(--bg)); }
.kn-fx-blk.t1 { background: var(--kontor-tier-1, #1B3A6B); }
.kn-fx-blk.t2 { background: var(--kontor-tier-2, #47598A); }
.kn-fx-blk.t3 { background: var(--kontor-tier-3, #8494B5); color: var(--kontor-on-tier-3, #111827); }
.kn-fx-blk.open { background: transparent; border: 1.5px dashed var(--text-3); color: var(--text-2); align-items: center; justify-content: center; text-align: center; }
.kn-fx-blk.reserve { background: var(--fx-hatch); padding: 0; }
.kn-fx-over { position: absolute; top: 0; left: 0; right: 0; border: 1.5px dashed var(--kontor-cta, #C0392B); border-radius: 4px; transition: height .45s ease; }
.kn-fx-over.reserve { border-style: solid; background: var(--fx-hatch); opacity: .92; }
.kn-fx-level { position: absolute; left: -6px; right: -6px; height: 0; border-top: 1px dashed var(--text-2); }
.kn-fx-arrow { align-self: center; text-align: center; font-size: 12.5px; color: var(--text-2); min-width: 104px; }
.kn-fx-rate-name, .kn-fx-rate-val { display: block; }
.kn-fx-rate-val { font-size: 19px; font-weight: 600; color: var(--text); margin-top: 2px; }
.kn-fx-rate-val.c1 { color: var(--kontor-tier-1, #1B3A6B); }
.kn-fx-rate-val.c2 { color: var(--kontor-tier-3, #8494B5); }
.kn-fx-rate-val.c3 { color: var(--kontor-tier-2, #47598A); }
.kn-fx-rate-val.c4 { color: var(--kontor-cta-text, #B43628); }
.kn-fx-note { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--text-2); margin-top: 14px; }
.kn-fx-note i { width: 26px; height: 10px; border-radius: 2px; border: 1.5px dashed var(--kontor-cta, #C0392B); flex: none; }
.kn-fx-note.is-reserve { color: var(--kontor-cta-text, #B43628); font-weight: 500; }
.kn-fx-note.is-reserve i { border-style: solid; background: var(--fx-hatch); }
.kn-fx-ctrl { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-lt); }
.kn-fx-step { flex: 1 1 280px; font-size: 14px; line-height: 1.55; color: var(--text); min-height: 44px; }
.kn-fx-step-no { display: block; font-size: 12px; color: var(--text-2); }
.kn-fx-btns { display: flex; gap: 8px; }
.kn-fx-btn { font: inherit; font-size: 14px; font-weight: 500; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; }
.kn-fx-btn.is-primary { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }
.kn-fx-btn:disabled { opacity: .4; cursor: default; }
.kn-fx-btn:focus-visible, .kn-fx input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* regler */
.kn-fx-grid { display: grid; grid-template-columns: 240px 1fr; gap: 28px; }
.kn-fx-ctl { margin: 0 0 18px; border: 0; padding: 0; }
.kn-fx-ctl-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; font-weight: 500; color: var(--text); }
.kn-fx-ctl-label output { font-size: 19px; font-weight: 600; color: var(--blue); }
.kn-fx input[type="range"] { width: 100%; accent-color: var(--blue); margin: 10px 0 2px; }
.kn-fx-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); }
.kn-fx-ctl legend { font-size: 13.5px; font-weight: 500; color: var(--text); padding: 0; margin-bottom: 8px; }
.kn-fx-opts { display: grid; gap: 6px; }
.kn-fx-opts label { display: flex; align-items: center; gap: 10px; font-size: 14px; background: var(--card); border: 1px solid var(--border-lt); border-radius: var(--radius); padding: 8px 11px; cursor: pointer; }
.kn-fx-opts label:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.kn-fx-opts input { accent-color: var(--blue); margin: 0; }
.kn-fx-opts .r { margin-left: auto; font-size: 12.5px; color: var(--text-2); }
.kn-fx-hint { font-size: 12.5px; line-height: 1.55; color: var(--text-2); margin: 0; }
.kn-fx-rows { display: grid; gap: 16px; align-content: start; }
.kn-fx-row-h { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; margin-bottom: 6px; }
.kn-fx-row-h b { font-weight: 500; color: var(--text); }
.kn-fx-row-v { color: var(--text); white-space: nowrap; }
.kn-fx-track { position: relative; display: flex; height: 24px; background: var(--card); border: 1px solid var(--border-lt); border-radius: 5px; overflow: hidden; }
.kn-fx-bar { height: 100%; transition: width .25s ease, left .25s ease; }
.kn-fx-bar.t1 { background: var(--kontor-tier-1, #1B3A6B); }
.kn-fx-bar.t2 { background: var(--kontor-tier-2, #47598A); }
.kn-fx-bar.t3 { background: var(--kontor-tier-3, #8494B5); }
.kn-fx-bar.rsv { background: var(--fx-hatch); }
.kn-fx-bar.rsv-neg { position: absolute; top: 0; bottom: 0; background: var(--fx-hatch); opacity: .9; }
.kn-fx-bar.inv { background: color-mix(in srgb, var(--text-2) 55%, var(--bg)); }
.kn-fx-bar.rest { position: absolute; top: 0; bottom: 0; background: var(--kontor-cta, #C0392B); }
.kn-fx-keys { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.kn-fx-keys i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.kn-fx-verdict { background: var(--card); border: 1px solid var(--border-lt); border-radius: var(--radius-lg); padding: 12px 14px; font-size: 14px; line-height: 1.55; color: var(--text); }
.kn-fx-verdict b { display: block; font-weight: 600; color: var(--blue); margin-bottom: 2px; }
.kn-fx-verdict.is-bad b { color: var(--kontor-cta-text, #B43628); }

@media (max-width: 760px) {
  .kn-fx-bs-stage { grid-template-columns: 1fr; }
  .kn-fx-arrow { min-width: 0; }
  .kn-fx-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .kn-fx-blk, .kn-fx-over, .kn-fx-bar { transition: none; }
}
