/* KI-Akte · Komponenten. Leitbild: Papierakte mit Registern, Laufzettel und Fristenlineal. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--t-m)/1.55 var(--font-text);
  font-feature-settings: "kern", "lnum";
}
img, svg { max-width: 100%; }
a { color: var(--action); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--action-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -100px; background: var(--ink); color: var(--on-spine); padding: var(--s2) var(--s4); z-index: 10; }
.skip:focus { top: var(--s2); }
.num, td.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: 0.01em; }

/* ---------- Kopf ---------- */
.masthead { background: var(--ink); color: var(--on-spine); }
.masthead__in { max-width: 1240px; margin: 0 auto; padding: var(--s3) var(--s5); display: flex; gap: var(--s5); align-items: center; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: var(--s3); color: inherit; text-decoration: none; }
.brand__mark { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.01em; }
.brand__sub { font-size: var(--t-xs); opacity: 0.85; }
.mainnav { margin-left: auto; display: flex; gap: var(--s1); flex-wrap: wrap; }
.mainnav a { color: var(--on-spine); text-decoration: none; padding: var(--s2) var(--s3); font-size: var(--t-s); border-bottom: 2px solid transparent; }
.mainnav a:hover { border-bottom-color: var(--rule); color: var(--on-spine); }
.mainnav a[aria-current="page"] { border-bottom-color: var(--on-spine); font-weight: 600; }
.masthead :focus-visible, .spine :focus-visible { outline-color: var(--focus-on-dark); }
.notice { display: block; background: var(--seal-soft); color: var(--ink); border-bottom: 1px solid var(--rule); font-size: var(--t-xs); }
.notice__in { max-width: 1240px; margin: 0 auto; padding: var(--s2) var(--s5); display: flex; gap: var(--s4); flex-wrap: wrap; align-items: center; }
.notice button { margin-left: auto; }

main { max-width: 1240px; margin: 0 auto; padding: var(--s6) var(--s5) var(--s8); }
main:focus { outline: none; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }

/* ---------- Typografie ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.012em; line-height: 1.15; margin: 0; }
h1 { font-size: var(--t-xxl); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-l); }
.kicker { font-family: var(--font-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); margin: 0 0 var(--s2); }
.lede { max-width: var(--measure); color: var(--ink-2); font-size: 1.0625rem; margin: var(--s3) 0 0; }
.pagehead { display: grid; grid-template-columns: 1fr auto; gap: var(--s5); align-items: end; margin-bottom: var(--s6); }
@media (max-width: 720px) { .pagehead { grid-template-columns: 1fr; } }

/* ---------- Knöpfe ---------- */
.btn { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); border-radius: var(--radius);
  font: 500 var(--t-s)/1 var(--font-text); cursor: pointer; text-decoration: none; border: 1px solid var(--action); background: var(--sheet); color: var(--action); }
.btn:hover { background: var(--k-transparenz-bg); color: var(--action-hover); }
.btn--primary { background: var(--action); color: var(--on-action); }
.btn--primary:hover { background: var(--action-hover); color: var(--on-action); }
.btn--quiet { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 0.2em; padding: 0 var(--s2); }
.btn--small { min-height: 36px; padding: 0 var(--s3); font-size: var(--t-xs); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.notice .btn { min-height: 32px; }

/* ---------- Fristenlineal ---------- */
.ruler { background: var(--sheet); border: 1px solid var(--rule); padding: var(--s5) var(--s5) var(--s4); margin-bottom: var(--s6); }
.ruler__head { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.ruler__head h2 { font-size: var(--t-l); }
.ruler__track { position: relative; height: 128px; margin: 0 var(--s3); }
.ruler__line { position: absolute; left: 0; right: 0; top: 64px; height: 0; border-top: 2px solid var(--ink); }
.ruler__tick { position: absolute; top: 58px; width: 1px; height: 12px; background: var(--ink); }
.ruler__tick--year { top: 52px; height: 24px; width: 2px; }
.ruler__year { position: absolute; top: 80px; transform: translateX(-50%); font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-2); }
.ruler__ms { position: absolute; transform: translateX(-50%); text-align: center; width: 132px; font-size: var(--t-xs); line-height: 1.3; }
.ruler__ms--up { bottom: 70px; }
.ruler__ms--down { top: 100px; }
.ruler__ms b { display: block; font-family: var(--font-mono); font-weight: 500; }
.ruler__ms--past { color: var(--ink-2); }
.ruler__ms--next b { color: var(--seal); }
.ruler__dot { position: absolute; top: 58px; width: 14px; height: 14px; margin-left: -7px; border: 2px solid var(--ink); background: var(--sheet); border-radius: 50%; }
.ruler__dot--past { background: var(--ink); }
.ruler__dot--next { border-color: var(--seal); background: var(--seal); }
.ruler__today { position: absolute; top: 62px; height: 38px; width: 0; border-left: 2px dashed var(--seal); }
.ruler__today span { position: absolute; bottom: -2px; left: 8px; font: 500 var(--t-xs)/1 var(--font-mono); color: var(--seal); white-space: nowrap; }
.ruler__list { display: none; margin: 0; padding: 0; list-style: none; }
.ruler__list li { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--rule); font-size: var(--t-s); }
.ruler__list li:first-child { border-top: 0; }
.ruler__list .past { color: var(--ink-2); }
.ruler__list .next .mono { color: var(--seal); font-weight: 500; }
@media (max-width: 1080px) {
  .ruler__track { display: none; }
  .ruler__list { display: block; }
}

/* ---------- Tabelle (Mandanten) ---------- */
.ledger { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--rule); }
.ledger caption { text-align: left; padding: 0 0 var(--s3); font-size: var(--t-s); color: var(--ink-2); }
.ledger th, .ledger td { text-align: left; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--rule); vertical-align: top; }
.ledger thead th { font: 500 var(--t-xs)/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); border-bottom: 2px solid var(--ink); background: var(--sheet); }
.ledger tbody tr:hover { background: #FBF6EA; }
.ledger td.az { font-family: var(--font-mono); font-size: var(--t-s); white-space: nowrap; }
.ledger .name a { font-weight: 600; font-size: 1.0625rem; }
.ledger .meta { display: block; color: var(--ink-2); font-size: var(--t-s); }
@media (max-width: 860px) {
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: 100%; }
  .ledger caption { display: block; width: auto; padding: var(--s3) var(--s4); }
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger tr { border-bottom: 2px solid var(--rule); padding: var(--s3) 0; }
  .ledger td { border: 0; padding: var(--s1) var(--s4); }
  .ledger td[data-label]::before { content: attr(data-label); display: block; font: 500 var(--t-xs)/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
}

/* ---------- Einordnungsmarken ---------- */
.klasse { display: inline-flex; align-items: center; gap: 0.4em; padding: 2px var(--s2); border-radius: var(--radius); font: 500 var(--t-xs)/1.5 var(--font-text); white-space: nowrap; border: 1px solid currentColor; }
.klasse__z { flex: none; }
.klasse--verboten { color: var(--k-verboten); background: var(--k-verboten-bg); }
.klasse--hochrisiko { color: var(--k-hoch); background: var(--k-hoch-bg); }
.klasse--transparenz { color: var(--k-transparenz); background: var(--k-transparenz-bg); }
.klasse--minimal { color: var(--k-minimal); background: var(--k-minimal-bg); }
.klasse--offen { color: var(--k-offen); background: var(--k-offen-bg); border-style: dashed; }
.tally { display: flex; flex-wrap: wrap; gap: var(--s1); }

.frist { font-family: var(--font-mono); font-size: var(--t-s); white-space: nowrap; }
.frist--nah { color: var(--seal); font-weight: 500; }
.frist small { display: block; font-family: var(--font-text); font-size: var(--t-xs); color: var(--ink-2); font-weight: 400; }

/* ---------- Akte ---------- */
.akte { display: grid; grid-template-columns: var(--spine-w) 1fr; min-height: 60vh; }
.spine { background: var(--spine); color: var(--on-spine); display: flex; flex-direction: column; align-items: center; padding: var(--s5) 0; gap: var(--s4); }
.spine__az { writing-mode: vertical-rl; transform: rotate(180deg); font: 500 var(--t-s)/1 var(--font-mono); letter-spacing: 0.12em; }
.spine__hole { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); margin-top: auto; }
.spine__hole + .spine__hole { margin-top: var(--s5); }
.akte__body { min-width: 0; }
.akte__head { padding: 0 0 var(--s4) var(--s5); }
.akte__facts { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: var(--s3) 0 0; padding: 0; list-style: none; font-size: var(--t-s); color: var(--ink-2); }
.akte__facts b { color: var(--ink); font-weight: 500; }
.tabs { display: flex; gap: 2px; padding-left: var(--s5); overflow-x: auto; scrollbar-width: thin; }
.tabs a { flex: none; display: block; padding: var(--s2) var(--s4) var(--s2); background: #E7E0D1; color: var(--ink); text-decoration: none; font-size: var(--t-s); font-weight: 500;
  border: 1px solid var(--rule); border-bottom: 0; border-radius: 6px 6px 0 0; min-height: 40px; }
.tabs a:hover { background: #EFE9DC; }
.tabs a[aria-current="page"] { background: var(--sheet); position: relative; top: 1px; }
.sheet { background: var(--sheet); border: 1px solid var(--rule); padding: var(--s6) var(--s6) var(--s7); position: relative; }
.sheet::before { content: ""; position: absolute; left: var(--s5); top: 0; bottom: 0; border-left: 1px solid var(--seal-soft); }
@media (max-width: 720px) {
  .akte { grid-template-columns: 1fr; }
  .spine { flex-direction: row; padding: var(--s2) var(--s4); justify-content: flex-start; }
  .spine__az { writing-mode: horizontal-tb; transform: none; }
  .spine__hole { display: none; }
  .akte__head, .tabs { padding-left: 0; }
  .akte__head { padding-top: var(--s4); }
  .sheet { padding: var(--s5) var(--s4) var(--s6); }
  .sheet::before { display: none; }
}

/* Blätter = erfasste KI-Systeme */
.blatt { display: grid; grid-template-columns: 9.5rem 1fr auto; gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--rule); align-items: start; }
.blatt:first-of-type { border-top: 2px solid var(--ink); }
.blatt__rand { padding-top: 2px; }
.blatt h3 { font-family: var(--font-text); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; }
.blatt p { margin: var(--s1) 0 0; color: var(--ink-2); font-size: var(--t-s); }
.blatt__pf { margin: var(--s2) 0 0; padding: 0; list-style: none; font-size: var(--t-s); }
.blatt__pf li { display: flex; gap: var(--s2); }
.blatt__pf .mono { color: var(--ink-2); min-width: 7.5rem; }
@media (max-width: 720px) { .blatt { grid-template-columns: 1fr; gap: var(--s2); } }

/* Stempel */
.stamp { display: inline-block; font: 600 var(--t-xs)/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 8px 5px; border: 2px solid currentColor; border-radius: 3px; transform: rotate(-3deg); white-space: nowrap; }
.stamp--vorl { color: var(--seal); }
.stamp--best { color: var(--ok); }
.stamp small { display: block; font-size: 0.72rem; letter-spacing: 0.04em; margin-top: 3px; text-transform: none; font-weight: 500; }

.empty { border: 2px dashed var(--rule-strong); padding: var(--s6); text-align: left; max-width: 46rem; }
.empty h3 { margin-bottom: var(--s2); }

/* Kennzahlen */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); margin: 0 0 var(--s6); }
.figures div { padding: var(--s4) var(--s4) var(--s4) 0; }
.figures dt { font: 500 var(--t-xs)/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.figures dd { margin: var(--s1) 0 0; font-family: var(--font-display); font-size: var(--t-xl); line-height: 1.1; }
.figures dd small { display: block; font: 400 var(--t-xs)/1.4 var(--font-text); color: var(--ink-2); margin-top: var(--s1); }

/* ---------- Assistent mit Laufzettel ---------- */
.wizard { display: grid; grid-template-columns: 16rem 1fr; gap: var(--s6); align-items: start; }
.wizard > * { min-width: 0; }
.slip { background: #FBF3D9; border: 1px solid #D9C98F; padding: var(--s4); position: sticky; top: var(--s4); }
.slip h2 { font-family: var(--font-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; margin-bottom: var(--s3); }
.slip ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.slip li { counter-increment: s; display: grid; grid-template-columns: 1.75rem 1fr; gap: var(--s2); padding: var(--s2) 0; border-top: 1px dashed #CDBB7A; font-size: var(--t-s); }
.slip li::before { content: counter(s); font-family: var(--font-mono); font-weight: 500; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: var(--t-xs); }
.slip li.done::before { content: ""; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23FBF3D9' stroke-width='2'/%3E%3C/svg%3E") center / 14px no-repeat; }
.slip li[aria-current="step"] { font-weight: 600; }
.slip li[aria-current="step"]::before { background: var(--seal); border-color: var(--seal); color: #fff; }
.slip__timer { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid #CDBB7A; font-size: var(--t-xs); color: var(--ink-2); }
.slip__timer b { display: block; font: 500 var(--t-l)/1.2 var(--font-mono); color: var(--ink); }
@media (max-width: 860px) {
  .wizard { grid-template-columns: 1fr; gap: var(--s4); }
  .slip { position: static; }
  .slip ol { display: flex; gap: var(--s2); overflow-x: auto; }
  .slip ol { justify-content: space-between; }
  .slip li { border: 0; grid-template-columns: 1fr; justify-items: center; text-align: center; flex: 1 1 0; min-width: 0; font-size: var(--t-xs); }
  .slip li span { display: none; }
  .slip li[aria-current="step"] span { display: block; }
}

.form { max-width: 44rem; }
.form h2 { margin-bottom: var(--s2); }
.form .hint { color: var(--ink-2); font-size: var(--t-s); margin: 0 0 var(--s5); max-width: var(--measure); }
.field { margin-bottom: var(--s5); }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: var(--s1); }
.field .help { display: block; font-size: var(--t-s); color: var(--ink-2); margin-bottom: var(--s2); }
.field input[type="text"], .field input[type="number"], .field select, .field textarea {
  width: 100%; min-height: 44px; padding: var(--s2) var(--s3); font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--rule-strong); border-radius: var(--radius); }
.field textarea { min-height: 6rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--k-verboten); border-width: 2px; }
.error { color: var(--k-verboten); font-size: var(--t-s); font-weight: 500; margin-top: var(--s1); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: grid; gap: var(--s2); }
.field label.choice, .choice { display: grid; font-weight: 400; margin: 0; grid-template-columns: 1.5rem 1fr; gap: var(--s2); align-items: start; padding: var(--s3); border: 1px solid var(--rule); background: #fff; cursor: pointer; border-radius: var(--radius); }
.choice:hover { border-color: var(--rule-strong); }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--action); }
.choice:has(input:checked) { border-color: var(--action); background: var(--k-transparenz-bg); }
.choice > span { font-weight: 500; }
.choice small { display: block; font-weight: 400; color: var(--ink-2); font-size: var(--t-s); }
.choice--none { border-style: dashed; }
.actions { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--rule); }
.actions .spacer { flex: 1; }

/* Ergebnis */
.verdict { border: 2px solid currentColor; padding: var(--s5); margin-bottom: var(--s5); }
.verdict__label { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.verdict h2 { font-size: var(--t-xl); }
.verdict--verboten { color: var(--k-verboten); background: var(--k-verboten-bg); }
.verdict--hochrisiko { color: var(--k-hoch); background: var(--k-hoch-bg); }
.verdict--transparenz { color: var(--k-transparenz); background: var(--k-transparenz-bg); }
.verdict--minimal { color: var(--k-minimal); background: var(--k-minimal-bg); }
.verdict--offen { color: var(--k-offen); background: var(--k-offen-bg); border-style: dashed; }
.verdict ul { color: var(--ink); margin: var(--s3) 0 0; padding-left: 1.2em; }
.duties { width: 100%; border-collapse: collapse; margin: var(--s3) 0 var(--s5); font-size: var(--t-s); }
.duties th, .duties td { text-align: left; padding: var(--s2) var(--s3) var(--s2) 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.duties td.mono { white-space: nowrap; }
.duties th { font: 500 var(--t-xs)/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.disclaimer { font-size: var(--t-s); color: var(--ink-2); border-left: 3px solid var(--seal); padding: var(--s2) var(--s4); background: var(--paper); max-width: var(--measure); }

/* Tabellen stapeln auf schmalen Bildschirmen; Spaltenname kommt aus data-label */
@media (max-width: 720px) {
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { padding: var(--s2) 0; border-bottom: 2px solid var(--rule); }
  table.stack td { border: 0; padding: 2px 0; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font: 500 var(--t-xs)/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2); }
}

/* ---------- Transparenzbausteine ---------- */
.specimens { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); gap: var(--s6); }
.specimen { border-top: 2px solid var(--ink); padding-top: var(--s4); }
.specimen header { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; align-items: baseline; margin-bottom: var(--s3); }
.specimen h2 { font-size: var(--t-l); }
.specimen .rechts { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--ink-2); }
.stage { background: #E9E4D8; padding: var(--s5); border: 1px solid var(--rule); }
.specimen dl { font-size: var(--t-s); margin: var(--s3) 0 0; display: grid; grid-template-columns: 8rem 1fr; gap: var(--s1) var(--s3); }
.specimen dt { color: var(--ink-2); }
.specimen dd { margin: 0; }
.status-offen { color: var(--k-hoch); font-weight: 600; }

/* Bausteine selbst: bewusst produktneutral, erben die Produktschrift */
.ai-chat { background: #fff; border: 1px solid #C9CED6; border-radius: 10px; max-width: 26rem; font-size: var(--t-s); overflow: hidden; }
.ai-chat__bar { display: flex; justify-content: space-between; align-items: center; padding: var(--s2) var(--s3); background: #F4F6F8; border-bottom: 1px solid #C9CED6; font-weight: 600; }
.ai-chip { display: inline-flex; align-items: center; gap: 4px; font: 600 0.75rem/1 var(--font-text); color: #1D4B6B; background: #E1EAF0; border: 1px solid #1D4B6B; padding: 3px 6px; border-radius: 999px; }
.ai-chat__intro { margin: var(--s3); padding: var(--s3); background: #F4F6F8; border-radius: 8px; }
.ai-chat__intro p { margin: 0 0 var(--s2); }
.ai-chat__intro p:last-child { margin: 0; }
.ai-label { display: inline-flex; gap: 6px; align-items: center; font: 500 0.75rem/1.2 var(--font-text); color: #1E2925; background: rgba(255,255,255,0.92); border: 1px solid #1E2925; padding: 4px 8px; border-radius: 4px; }
.ai-figure { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #CFC6B4; }
.ai-figure > svg { display: block; width: 100%; height: 100%; }
.ai-label svg, .ai-chip svg { flex: none; width: 10px; height: 10px; }
.ai-figure .ai-label { position: absolute; left: var(--s2); bottom: var(--s2); }
.ai-figure figcaption { position: absolute; right: var(--s2); top: var(--s2); color: #fff; font-size: var(--t-xs); background: rgba(30,41,37,0.75); padding: 2px 6px; }
.ai-meeting { background: #1E2925; color: #F3EFE6; border-radius: 10px; padding: var(--s4); max-width: 30rem; font-size: var(--t-s); }
.ai-meeting strong { display: block; font-size: 1rem; margin-bottom: var(--s1); }
.ai-meeting p { margin: 0 0 var(--s3); }
.ai-meeting .row { display: flex; gap: var(--s2); flex-wrap: wrap; }
.ai-meeting button { min-height: 40px; padding: 0 var(--s3); border-radius: 6px; font: 500 var(--t-s)/1 var(--font-text); cursor: pointer; border: 1px solid #F3EFE6; background: transparent; color: #F3EFE6; }
.ai-meeting button.primary { background: #F3EFE6; color: #1E2925; }
.ai-meeting button:focus-visible { outline-color: var(--focus-on-dark); }
.ai-doc { background: #fff; border: 1px solid #C9CED6; padding: var(--s4); max-width: 30rem; font-size: var(--t-s); }
.ai-doc__foot { margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid #C9CED6; color: #4B5550; font-size: var(--t-xs); }
code.meta { display: block; margin-top: var(--s3); font: 400 var(--t-xs)/1.5 var(--font-mono); background: var(--sheet); border: 1px solid var(--rule); padding: var(--s2) var(--s3); white-space: pre-wrap; word-break: break-word; color: var(--ink); }

/* ---------- Designsystem-Seite ---------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--s4); margin: var(--s4) 0 var(--s6); padding: 0; list-style: none; }
.swatch { border: 1px solid var(--rule); background: var(--sheet); }
.swatch__chip { height: 64px; display: flex; align-items: flex-end; padding: var(--s2); font: 500 var(--t-s)/1 var(--font-mono); }
.swatch__info { padding: var(--s2) var(--s3); font-size: var(--t-xs); }
.swatch__info b { display: block; font-size: var(--t-s); }
.ratio { font-family: var(--font-mono); }
.ratio--ok { color: var(--ok); }
.ratio--fail { color: var(--k-verboten); font-weight: 600; }
.typescale > div { display: grid; grid-template-columns: 9rem 1fr; gap: var(--s4); align-items: baseline; padding: var(--s3) 0; border-top: 1px solid var(--rule); }
.typescale > div > * { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 720px) { .typescale > div { grid-template-columns: 1fr; gap: var(--s1); } }
.typescale .mono { color: var(--ink-2); font-size: var(--t-xs); }
.section { margin-top: var(--s7); }
.section > h2 { margin-bottom: var(--s2); }
.row-demo { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; margin: var(--s3) 0; }

/* ---------- Bericht (auch Druck) ---------- */
.report { max-width: 52rem; }
.report header { border-bottom: 2px solid var(--ink); padding-bottom: var(--s4); margin-bottom: var(--s5); }
.report h2 { font-size: var(--t-l); margin: var(--s6) 0 var(--s2); }
.report table { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.report th, .report td { text-align: left; padding: var(--s2) var(--s3) var(--s2) 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.report th { font: 500 var(--t-xs)/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.report__foot { margin-top: var(--s6); font-size: var(--t-xs); color: var(--ink-2); }

@media print {
  @page { size: A4; margin: 18mm 16mm; }
  body { background: #fff; font-size: 10.5pt; }
  .masthead, .notice, .tabs, .spine, .no-print, .skip { display: none !important; }
  main { padding: 0; max-width: none; }
  .akte { display: block; }
  .sheet { border: 0; padding: 0; }
  .sheet::before { display: none; }
  .akte__head { padding: 0; }
  .report tr { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .choice, .btn, .tabs a { transition: background-color 120ms ease, border-color 120ms ease; }
}
