@import url("/fonts.css?v=32b283e8d9");

/* Annehmbar. One accent (--accent), status colours only for verdicts, everything else ink on paper.
   All colour pairs meet WCAG 2.1 AA (text >= 4.5:1, UI >= 3:1) in light and dark. */
:root {
  --paper: #f6f7f8;
  --sheet: #ffffff;
  --ink: #14212e;
  --ink-2: #4a5866;
  --rule: #c9d1d9;
  --rule-soft: #e4e8ec;
  --accent: #0b57a4;
  --accent-soft: #6f9fd3;
  --accent-bg: #eaf1fa;
  --on-accent: #ffffff;
  --bad: #b3122e;
  --ok: #17693f;
  --warn: #8a5a00;
  --marker: #ffe25c;
  --focus: #0b57a4;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --code: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --measure: 68ch;
  --radius: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1720; --sheet: #15212c; --ink: #e8eef3; --ink-2: #a6b4c1; --rule: #34495b; --rule-soft: #223240;
    --accent: #8cbcff; --accent-soft: #4d7fb8; --accent-bg: #172a3f; --on-accent: #0e1720;
    --bad: #ff8190; --ok: #5fd39a; --warn: #f0b64a; --marker: #6b5a00; --focus: #8cbcff; color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
a { color: inherit; text-decoration-color: var(--accent-soft); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }  /* headings that receive focus after a result (not interactive) */
code, .rid { font-family: var(--code); font-size: .88em; font-weight: 500; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; background: var(--sheet); padding: .5rem 1rem; z-index: 9; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: 72rem; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
h1 { font: 700 clamp(2.2rem, 4.4vw, 3.4rem)/1.04 var(--display); margin: 0 0 1rem; letter-spacing: -.005em; max-width: 24ch; text-wrap: balance; }
h2 { font: 700 clamp(1.6rem, 3vw, 2.1rem)/1.1 var(--display); margin: 0 0 .75rem; }
h3 { font: 600 1.25rem/1.2 var(--display); margin: 1.5rem 0 .5rem; }
p, li { max-width: var(--measure); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 56ch; margin: 0 0 1.5rem; text-wrap: pretty; }
.eyebrow { font: 600 .85rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 .9rem; }
.fine { font-size: .9rem; color: var(--ink-2); }
.crumbs { font-size: .9rem; color: var(--ink-2); margin: 0 0 1rem; }
.nw { white-space: nowrap; }
mark { background: var(--marker); color: inherit; padding: 0 .15em; }

/* logo mark (infra/brand.py) and wordmark */
.mark { flex: none; display: block; }
.mark .m-sheet { fill: var(--accent); } .mark .m-fold { fill: var(--accent-soft); } .mark .m-check { stroke: var(--on-accent); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .word { font: 700 1.5rem/1 var(--display); letter-spacing: .01em; }
.brand small { font: 600 .72rem/1 var(--body); color: var(--ink-2); border: 1px solid var(--rule); border-radius: 3px; padding: .2rem .35rem; letter-spacing: .04em; text-transform: uppercase; }

/* top bar */
.bar { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.bar-in { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; padding-block: .85rem; }
.bar nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; font-weight: 600; font-size: .98rem; }
.bar nav a { text-decoration: none; padding-block: .35rem; }
.bar nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(2rem, 5vw, 3.5rem) 3rem; align-items: start; }

/* upload sheet */
.sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.75rem); box-shadow: 0 1px 2px rgb(0 0 0 / .04); }
.drop { position: relative; display: grid; place-content: center; justify-items: center; text-align: center; gap: .4rem; min-height: 10.5rem; border: 2px dashed color-mix(in srgb, var(--ink-2) 70%, var(--sheet)); border-radius: var(--radius); cursor: pointer; padding: 1.5rem; }
.drop:hover, .drop.hover { border-color: var(--accent); background: var(--accent-bg); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--accent); }
.drop-ico { color: var(--accent); }
.drop strong { font: 600 1.35rem/1.2 var(--display); }
.drop .hint { color: var(--ink-2); font-size: .95rem; }
.drop-btn { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }
@media (prefers-reduced-motion: no-preference) { .drop { transition: border-color .15s, background-color .15s; } }
.plainline { font-size: 1.05rem; color: var(--ink); max-width: 56ch; margin: 0 0 1rem; text-wrap: pretty; }
.promise { list-style: none; counter-reset: p; padding: 0; margin: 0 0 .75rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.promise li { counter-increment: p; display: grid; gap: .15rem; align-content: start; background: var(--sheet); border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: .7rem .9rem; max-width: none; font-size: .95rem; }
.promise li strong::before { content: counter(p) ". "; color: var(--accent); }
.promise li span { color: var(--ink-2); font-size: .9rem; }
.promise-note { margin: 0 0 1rem; }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.fixline { margin: 1rem 0 0; max-width: 64ch; font-size: .98rem; color: var(--ink-2); text-wrap: pretty; }
.samples { margin: 1rem 0 0; font-size: .95rem; color: var(--ink-2); }
.linkbtn { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-color: var(--accent-soft); text-underline-offset: .18em; cursor: pointer; }
.linkbtn:hover { color: var(--accent); text-decoration-color: currentColor; }

/* trust strip: facts only (see index.html); each one is true and checked on the linked page */
.trust { list-style: none; margin: 1.25rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--rule-soft); display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .45rem 1.25rem; font-size: .92rem; color: var(--ink-2); }
.trust li { position: relative; padding-left: 1.5rem; max-width: none; }
.trust li::before { content: ""; position: absolute; left: .1rem; top: .38em; width: .8rem; height: .45rem; border: solid var(--ok); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.trust a { text-decoration-color: var(--rule); }

/* rule-set plate */
.plate { position: sticky; top: 1rem; background: var(--sheet); border: 1px solid var(--rule); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.plate dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.25rem; }
.plate dt { color: var(--ink-2); font-size: .92rem; }
.plate dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.plate .version { font: 700 2.2rem/1 var(--display); margin: .2rem 0 1rem; }
.plate p { font-size: .92rem; color: var(--ink-2); margin: 1rem 0 0; }

/* sections */
section.block, article.block { padding-block: 2.75rem; border-top: 1px solid var(--rule); }
.block.first { border-top: 0; }
.changes li { margin: .35rem 0; }
.steps3 { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.steps3 li { counter-increment: s; max-width: none; }
.steps3.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* four steps: 2 × 2 (/e-rechnung-empfangen) */
.steps3 li::before { content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 1.1rem/1 var(--display); }
.steps3 h3 { margin: .75rem 0 .35rem; }
.steps3 p, .card p { margin: 0; color: var(--ink-2); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.card h3 { margin-top: 0; }
.who { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 2.5rem; align-items: start; }
.who .facts { margin-top: 0; }
.who p { margin: 0; }
.links li { margin: .4rem 0; }

/* offers: alerts is the product thesis, the API the second door */
.offers { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.offer { padding: 1.5rem; border-radius: var(--radius); }
.offer h3 { margin-top: 0; }
.offer.primary { background: var(--sheet); border: 1px solid var(--rule); border-top: 4px solid var(--accent); }
.offer.secondary { border: 1px solid var(--rule); }
.price { font: 700 2rem/1 var(--display); margin: .25rem 0; }
.price small { font: 400 1rem var(--body); color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; font: 600 1rem/1.2 var(--body); background: var(--accent); color: var(--on-accent); border: 0; border-radius: var(--radius); padding: .7rem 1.2rem; cursor: pointer; text-decoration: none; margin-top: .75rem; }
.btn:hover { color: var(--on-accent); background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn.ghost:hover { background: var(--accent-bg); color: var(--accent); }

/* forms */
form.signup { margin-top: 1.5rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; max-width: 40rem; }
form.signup[hidden] { display: none; }
.field { display: grid; gap: .3rem; margin: 0 0 1rem; font-weight: 600; font-size: .95rem; }
.field input, .field select, .search { font: 400 1rem var(--body); color: var(--ink); background: var(--sheet); border: 1px solid var(--ink-2); border-radius: var(--radius); padding: .65rem .75rem; width: 100%; }
fieldset { border: 1px solid var(--rule); border-radius: var(--radius); padding: .75rem 1rem; margin: 0 0 1rem; }
legend { font-weight: 600; font-size: .95rem; padding: 0 .3rem; }
.choice { display: inline-flex; gap: .4rem; align-items: center; margin-right: 1.25rem; font-weight: 400; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; margin: 0 0 1rem; }
.consent input { margin-top: .3rem; }
.err { color: var(--bad); font-weight: 600; }
pre { background: var(--rule-soft); padding: 1rem; border-radius: var(--radius); overflow-x: auto; font: 500 .85rem/1.5 var(--code); }
pre.key { font-size: 1rem; }

/* FAQ */
details { border-top: 1px solid var(--rule-soft); padding: .9rem 0; max-width: 52rem; }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
summary:hover { color: var(--accent); }
details p { margin: .6rem 0 0; }

/* tables (log, rule index) */
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--rule-soft); }
th { font-weight: 600; color: var(--ink-2); font-size: .85rem; }
.search { width: min(100%, 28rem); margin-bottom: 1rem; }

/* rule page */
.rulehead .rid { font-size: 1rem; }
.rulehead .rulesub { display: block; font-size: 1.15rem; font-weight: 500; color: var(--ink-2); margin-top: .35rem; overflow-wrap: anywhere; }
.codes { display: flex; flex-wrap: wrap; gap: .3rem .5rem; list-style: none; padding: 0; margin: .5rem 0 1rem; } .codes code { font-size: .85rem; }
.official { background: var(--sheet); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; font-size: 1.1rem; max-width: 52rem; margin: 1rem 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.5rem; margin: 1rem 0; }
.facts dt { color: var(--ink-2); } .facts dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.facts.xpath dd, .land .facts dd { font-weight: 400; }
.land { margin-top: 1.75rem; } .land h3 { margin-bottom: .25rem; }
.steps li { margin: .5rem 0; }

/* result: reads like a test report. Verdict first, then what was checked, then findings with fixes */
.result { margin-top: 1.5rem; scroll-margin-top: 1rem; }
.result[hidden] { display: none; }
.result:focus { outline: none; }
.busy { color: var(--ink-2); }
.verdict { --v: var(--ink-2); display: flex; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border: 1px solid color-mix(in srgb, var(--v) 45%, transparent); border-left: 6px solid var(--v); border-radius: var(--radius); background: color-mix(in srgb, var(--v) 8%, var(--sheet)); }
.verdict.ok { --v: var(--ok); } .verdict.bad { --v: var(--bad); } .verdict.warn { --v: var(--warn); } .verdict.neutral { --v: var(--ink-2); }
.v-ico { flex: none; width: 2.5rem; height: 2.5rem; padding: .45rem; border-radius: 50%; background: var(--v); fill: none; stroke: var(--sheet); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.v-kicker { margin: 0; font: 600 .78rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.v-title { margin: .3rem 0 0; font: 700 clamp(1.6rem, 3.2vw, 2rem)/1.05 var(--display); color: var(--v); }
.v-count { margin: .35rem 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.v-meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .25rem 1.25rem; margin: 1rem 0 0; font-size: .92rem; }
.v-meta dt { color: var(--ink-2); } .v-meta dd { margin: 0; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) {
  .verdict { animation: v-in .25s ease-out both; }
  @keyframes v-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
.meta { color: var(--ink-2); font-size: .92rem; margin: 0 0 1rem; }
.f-head { font: 600 .85rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 1.5rem 0 .25rem; }
.findings { list-style: none; padding: 0; margin: 0; }
.findings li { padding: .8rem 0; border-top: 1px solid var(--rule-soft); max-width: none; }
.findings .rid { display: inline-block; min-width: 8.5rem; font-weight: 600; }
.findings .lvl { font-size: .8rem; font-weight: 600; padding: .05rem .4rem; border-radius: 3px; margin-right: .5rem; border: 1px solid currentColor; }
.lvl.error, .lvl.fatal { color: var(--bad); } .lvl.warning { color: var(--warn); } .lvl.information { color: var(--ink-2); }
.findings .loc { display: block; color: var(--ink-2); font-size: .82rem; font-family: var(--code); overflow-wrap: anywhere; margin-top: .2rem; }
.findings .fix { margin: .5rem 0 0; padding: .5rem .8rem; border-left: 3px solid var(--ok); background: color-mix(in srgb, var(--ok) 6%, transparent); font-size: .95rem; max-width: 64ch; }
.findings .fix .fine { display: block; margin-top: .25rem; }
.findings .fix, .findings .fix code { overflow-wrap: anywhere; }  /* long CII element names and examples wrap on phones */

/* inline CTA under a result, and guidance boxes */
.cta { margin-top: 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--accent-bg); }
.cta p { margin: 0; } .cta .btn { margin: .75rem .5rem 0 0; } .cta .terms { margin-top: .5rem; }
.guide { margin-top: 1rem; border: 1px solid var(--rule); border-left: 4px solid var(--warn); border-radius: var(--radius); padding: 1rem 1.25rem; }
.guide h3 { margin-top: 0; } .guide p:last-child { margin-bottom: 0; }
/* "Rechnung korrigieren lassen" (2026-10-17, infra/korrektur.py): our own offer under a failed check reads as a work order, the strongest box after the verdict */
.fixbox { margin-top: 1.5rem; padding: 1.1rem 1.25rem 1.25rem; border: 2px solid var(--accent); border-radius: var(--radius); background: var(--sheet); }
.fixbox h3 { margin: 0; font: 700 clamp(1.45rem, 2.8vw, 1.75rem)/1.1 var(--display); color: var(--ink); }
.fix-lede { margin: .4rem 0 1rem; max-width: 60ch; }
.fix-terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .75rem 1.5rem; margin: 0 0 .25rem; padding: .8rem 0; border-block: 1px solid var(--rule-soft); }
.fix-terms dt { font: 700 1.3rem/1.1 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
.fix-terms dd { margin: .2rem 0 0; font-size: .92rem; color: var(--ink-2); }
.fixpass { border-width: 1px; padding: .9rem 1.25rem 1rem; } .fixpass .fix-lede { margin: 0 0 .75rem; }
#fix-out { margin-top: 1rem; } #fix-out[hidden] { display: none; }
.fix-sent code { overflow-wrap: anywhere; }
.fixbox textarea { font: 400 1rem/1.5 var(--body); color: var(--ink); background: var(--sheet); border: 1px solid var(--ink-2); border-radius: var(--radius); padding: .65rem .75rem; width: 100%; resize: vertical; }
.fixbox .field small { font-weight: 400; font-size: .85rem; color: var(--ink-2); }
.fixbox textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.fix-again { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--rule-soft); }
.fix-again .btn { margin: 0 .5rem .25rem 0; }
.fix-data { margin: .9rem 0 0; font-size: .92rem; color: var(--ink-2); max-width: 60ch; }
/* the data agreement for the fix (2026-10-20, web/avv-korrektur.html): a form to fill in, print and sign */
.avv-form { border-collapse: collapse; width: 100%; max-width: 40rem; margin: 1rem 0; }
.avv-form th, .avv-form td { border: 1px solid var(--ink-2); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.avv-form th { width: 12rem; } .avv-form td { height: 2.6rem; min-width: 12rem; }
@media (max-width: 480px) { .avv-form th { width: 40%; } .avv-form td { min-width: 0; } }
@media print { .noprint { display: none; } }
/* partner placements (EXPANSION #8): set apart from the validator's result (dashed, neutral), every paid link labelled */
.partners { margin-top: 1.5rem; padding: .9rem 1.25rem; border: 1px dashed var(--rule); border-radius: var(--radius); font-size: .95rem; }
.partners p { margin: 0 0 .4rem; } .partners p:last-child { margin-bottom: 0; }
.partners .more { margin-left: .5rem; white-space: nowrap; }
.partners.bank { margin: 2rem 0; } .partners.bank h2 { margin-top: 0; font-size: 1.25rem; } .partners.bank ul { margin: .25rem 0 .5rem; padding-left: 1.2rem; }
.ad { font-size: .75rem; font-weight: 600; padding: 0 .35rem; border: 1px solid var(--ink-2); border-radius: 3px; color: var(--ink-2); white-space: nowrap; }
.adnote { margin-top: .6rem; }
table.compare th[scope=row] { color: var(--ink); font-size: .95rem; min-width: 9rem; }
table.compare .src { font-size: .78rem; color: var(--ink-2); }
.suits li { margin: .3rem 0; }
.swlink { margin-top: .75rem; }

/* readable invoice view under a result (parsed in the browser) */
details.inv { margin-top: 1rem; max-width: none; border-top: 1px solid var(--rule-soft); }
details.inv summary .fine { font-weight: 400; margin-left: .5rem; }
details.inv td.nw, details.inv th:nth-child(n+2) { text-align: right; }

/* developer iteration: source excerpt per finding, change against the previous upload, printable Prüfbericht */
details.src { border: 0; padding: .35rem 0 0; max-width: none; }
details.src summary { font-size: .85rem; font-weight: 600; color: var(--ink-2); font-family: var(--code); }
.xml { margin-top: .35rem; }
.xml pre { display: grid; margin: 0; padding: .6rem .75rem; font-size: .8rem; line-height: 1.45; white-space: pre; }
.xml pre span { display: block; }
.xml pre i { display: inline-block; min-width: 4.5ch; padding-right: 1ch; font-style: normal; color: var(--ink-2); text-align: right; user-select: none; -webkit-user-select: none; }
.xml pre .hit { background: color-mix(in srgb, var(--marker) 55%, transparent); }
.xml .copy { font-size: .85rem; margin-top: .3rem; }
.chg { font-size: .75rem; font-weight: 600; padding: .05rem .4rem; border-radius: 3px; margin-right: .5rem; }
.chg.new { background: var(--bad); color: var(--sheet); } .chg.open { background: var(--rule-soft); color: var(--ink); }
.diff { margin: 1rem 0 .75rem; padding: .6rem .9rem; border-left: 4px solid var(--ok); background: color-mix(in srgb, var(--rule-soft) 45%, transparent); }
.diff p { margin: 0; } .diff .fixed { margin-top: .3rem; font-size: .92rem; }
.tools { margin: 1rem 0 0; } .tools .btn { margin: 0 .5rem .25rem 0; }
#report { display: none; }
/* EXPANSION #2a: the letter to the supplier under a rejected result */
.letter { margin-top: 1.25rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.letter h3 { margin: 0 0 .4rem; }
.letter p { max-width: 62ch; }
#letter-out { margin-top: 1rem; }
#letter-out[hidden] { display: none; }
.letter textarea { font: 400 .95rem/1.5 var(--body); color: var(--ink); background: var(--sheet); border: 1px solid var(--ink-2); border-radius: var(--radius); padding: .65rem .75rem; width: 100%; resize: vertical; }
.letter .field small { font-weight: 400; font-size: .85rem; color: var(--ink-2); }
.letter input:focus-visible, .letter textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }

/* footer */
.foot { margin-top: 1rem; background: var(--sheet); border-top: 1px solid var(--rule); padding-block: 2.5rem 3rem; font-size: .95rem; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 2rem; }
.foot-brand p { color: var(--ink-2); margin: .6rem 0 0; max-width: 22ch; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.foot-cols h2 { font: 600 .8rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 .6rem; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { margin: 0 0 .4rem; }
.foot-cols a { text-decoration: none; } .foot-cols a:hover { text-decoration: underline; }
.foot-note { color: var(--ink-2); font-size: .88rem; margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--rule-soft); max-width: none; }

@media (max-width: 52rem) {
  .hero, .offers, .who, .foot-top { grid-template-columns: minmax(0, 1fr); }
  .steps3, .steps3.four, .cards, .promise, .why-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plate { position: static; }
}
@media (max-width: 36rem) {
  .facts, .v-meta { grid-template-columns: minmax(0, 1fr); gap: 0; } .facts dd, .v-meta dd { margin-bottom: .6rem; }
  .bar nav { gap: .25rem 1rem; }
  .verdict { padding: .9rem 1rem; }
}
@media (forced-colors: active) { .verdict, .sheet, .card, .plate { border: 1px solid CanvasText; } .mark .m-check { stroke: Canvas; } }

@media print {
  :root { --paper: #fff; --sheet: #fff; --ink: #000; --ink-2: #333; --rule: #999; --rule-soft: #ccc; color-scheme: light; }
  body.printing > :not(#report) { display: none !important; }
  body.printing #report { display: block; font-size: 10pt; line-height: 1.4; }
  #report h1 { font-size: 20pt; margin: 0 0 8pt; max-width: none; }
  #report h2 { font-size: 13pt; margin: 14pt 0 6pt; }
  #report table { width: 100%; font-size: 9.5pt; }
  #report th, #report td { padding: 3pt 6pt 3pt 0; border-bottom: .5pt solid #bbb; }
  #report tr { break-inside: avoid; }
  #report .rh th { width: 9rem; color: #333; }
  #report .rid { white-space: nowrap; }
  #report code { overflow-wrap: anywhere; }
  #report .loc { color: #333; font-family: var(--code); font-size: 8pt; overflow-wrap: anywhere; }
  #report p { max-width: none; }
  #report .lp { white-space: pre-wrap; font-size: 11pt; line-height: 1.5; }
}

/* facts with a date, primary sources, contact */
.stand { font-size: .9rem; color: var(--ink-2); margin: -.75rem 0 1.25rem; }
.sources { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-soft); font-size: .95rem; }
.sources h2 { font: 600 .85rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 .6rem; }
.sources ul { margin: 0; padding-left: 1.1rem; } .sources li { margin: .25rem 0; }
.foot-contact { margin: .6rem 0 0; }
article.block h2 { margin-top: 2.25rem; }

/* XRechnung erstellen (EXPANSION #1): the invoice form */
.create fieldset { padding: 1rem 1.1rem .25rem; margin-bottom: 1.25rem; }
.create legend { font: 700 1.2rem/1.2 var(--display); }
.create .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0 1rem; }
.create .field.wide { grid-column: span 2; }
.create .field small, .create small.hint { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-2); margin: -.1rem 0 .9rem; }
.create .field small { margin: 0; }
.create textarea { font: 400 1rem var(--body); color: var(--ink); background: var(--sheet); border: 1px solid var(--ink-2); border-radius: var(--radius); padding: .65rem .75rem; width: 100%; resize: vertical; }
.create [aria-invalid="true"] { border: 2px solid var(--bad); }
.create input:focus-visible, .create select:focus-visible, .create textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.create .choices { margin: 0 0 1rem; } .create .choices > span { font-weight: 600; margin-right: .75rem; }
.parties { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1.25rem; }
.line { display: grid; grid-template-columns: minmax(0, 3fr) minmax(4.5rem, .8fr) minmax(6rem, 1fr) minmax(7rem, 1.1fr) minmax(7.5rem, 1fr) minmax(6.5rem, .9fr) auto; gap: 0 .75rem; align-items: end; border-bottom: 1px solid var(--rule-soft); margin-bottom: .75rem; }
.line .l-sum { margin: 0 0 1.6rem; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line .l-del { margin: 0 0 1.6rem; font-size: .92rem; }
.line .l-del[hidden] { display: inline; visibility: hidden; }
.totals { display: grid; grid-template-columns: 1fr max-content; gap: .3rem 1.5rem; max-width: 30rem; margin: .5rem 0 1rem auto; font-variant-numeric: tabular-nums; }
.totals dt { color: var(--ink-2); text-align: right; } .totals dd { margin: 0; text-align: right; font-weight: 600; }
.totals .gross { font-size: 1.15rem; color: var(--ink); border-top: 1px solid var(--rule); padding-top: .3rem; }
#cr-err ul { margin: .4rem 0 0; font-weight: 400; } #cr-err a { color: inherit; }
details.xml pre { max-height: 24rem; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 52rem) {
  .parties { grid-template-columns: 1fr; }
  .line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-bottom: .5rem; }
  .line .l-name { grid-column: 1 / -1; }
  .line .l-sum, .line .l-del { margin-bottom: .75rem; text-align: left; }
  .create .field.wide { grid-column: 1 / -1; }
}
.create .field[hidden] { display: none; }
.create .grid, .create .field { align-content: start; align-items: start; }
/* BACKLOG #28 (2026-10-04): the live check. A legend chip per section, a field's own message, the running count above the button */
/* the chip's width is reserved from the first paint (the widest text, "vollständig"), so filling it never moves the form (no CLS) */
.create legend .chip { display: inline-block; min-width: 6.2em; font: 600 .8rem/1 var(--body); color: var(--ink-2); margin-left: .45rem; white-space: nowrap; vertical-align: .12em; }
.create legend .chip.done { color: var(--ok); }
.create .field small.ferr, .create small.ferr { display: block; margin: .1rem 0 0; color: var(--bad); font-weight: 600; font-size: .85rem; }
.create .todo { margin: 0 0 .5rem; }
.create .todo summary { cursor: pointer; font-weight: 600; padding: .6rem 0; width: fit-content; }
.create .todo summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.create .todo.bad summary { color: var(--bad); }   /* after a held-back send: the one list of what is still open */
.create .todo ul { margin: 0 0 .75rem; padding-left: 1.2rem; font-size: .92rem; }
.create .todo li { margin: 0 0 .25rem; }
.create .todo-done { margin: 0 0 .5rem; padding: .6rem 0; color: var(--ok); font-weight: 600; }
/* BACKLOG #29: "Diese Angaben auf diesem Gerät merken" under the seller block */
.create .remember { margin: .25rem 0 .5rem; }
.create .remember-note { margin: 0 0 1rem; }
.buy { margin: 1rem 0 0; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: var(--radius); }
.buy .consent { margin: .75rem 0 0; }
.buy .tools { margin: .75rem 0 .25rem; }
/* the offer (Gil, 2026-10-04): price strip above the form; buy box and partner box side by side, same weight */
.pricestrip { display: flex; flex-wrap: wrap; gap: .25rem 0; margin: 0 0 1.25rem; padding: .55rem .9rem; border-left: 4px solid var(--accent); background: var(--accent-bg); font-size: .98rem; }
.pricestrip > * + *::before { content: "·"; margin: 0 .55rem; color: var(--ink-2); }
.buyrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: stretch; margin-top: 1rem; }
.buyrow .buy, .buyrow .partners { margin: 0; }
.partners.buyside { border-style: solid; padding: 1rem 1.1rem; font-size: inherit; }
.buy .offer-line { margin: 0 0 .5rem; }
.buy .safe { margin: .5rem 0 0; color: var(--ink-2); font-size: .92rem; }
.buy .packcode { margin: .6rem 0 0; } .buy .packcode summary { cursor: pointer; color: var(--ink-2); font-size: .95rem; }
.buy .packcode .field { display: flex; gap: .5rem; align-items: end; flex-wrap: wrap; margin-top: .5rem; }
.buy .packcode input { min-width: 16rem; flex: 1; font-family: var(--code); font-size: .85rem; }
@media (max-width: 760px) { .buyrow { grid-template-columns: minmax(0, 1fr); } }
.paid { margin: 1rem 0 0; padding: .6rem .9rem; border-left: 4px solid var(--ok); }
/* Bestehende Rechnung laden (EXPANSION #1 slice 3) */
.import { margin: 0 0 1.25rem; padding: .9rem 1.1rem .4rem; border: 1px dashed var(--rule); border-radius: var(--radius); }
.import p { margin: 0 0 .6rem; }
#cr-import-out { margin: .25rem 0 .6rem; padding: .6rem .9rem; border-left: 4px solid var(--ok); }
#cr-import-out.warn { border-left-color: var(--warn); } #cr-import-out.bad { border-left-color: var(--bad); }
#cr-import-out ul { margin: .4rem 0 0; padding-left: 1.1rem; } #cr-import-out li { margin: .2rem 0; }

/* expansion test pages (infra/testpages.py, web/offers.js): the create box under a result, the Leitweg-ID check, the batch table */
.offer.next { margin-top: 1.5rem; }
.offer.next h3 { margin-top: 0; }
.lw-form .field { max-width: 34rem; }
.lw-form input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.lw-live { display: block; font-weight: 600; font-size: .9rem; }
.lw-live.ok { color: var(--ok); } .lw-live.bad { color: var(--bad); }
.batch td, .batch th { vertical-align: top; }
.batch .st { font-weight: 600; white-space: nowrap; }
.batch .st.ok { color: var(--ok); } .batch .st.bad { color: var(--bad); } .batch .st.neutral { color: var(--ink-2); }
.batch details.bfind { margin-top: .4rem; padding: .3rem 0 0; border-top: 0; max-width: none; }
.batch .bfind > summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .92rem; }
.batch .bfind .findings li { padding: .6rem 0; }
.batch .bfind .findings .fine { display: block; margin-top: .3rem; overflow-wrap: anywhere; }
.batch .bfind .fix code { overflow-wrap: anywhere; }
.found dd code { font-size: .95rem; }

/* EXPANSION #3: the readiness check /e-rechnung-pflicht (web/pflicht.js) */
.pflicht fieldset[hidden] { display: none; }
.pflicht .choice { margin: .25rem 1.25rem .25rem 0; min-height: 2.75rem; }
.pflicht .choice input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.pf-result .v-title { font: 700 clamp(1.5rem, 4vw, 2rem)/1.15 var(--display); margin: 0 0 .25rem; }
.pf-count { margin: 0 0 1.25rem; color: var(--ink-2); font-size: 1.1rem; }
.pf-count strong { color: var(--accent); font: 700 1.6rem/1 var(--display); }
.pf-steps { list-style: none; padding: 0 0 0 1.5rem; margin: 0 0 1.25rem; border-left: 3px solid var(--rule); }
.pf-steps li { position: relative; margin: 0 0 1.4rem; max-width: var(--measure); }
.pf-steps li::before { content: ""; position: absolute; left: calc(-1.5rem - 9px); top: .3rem; width: 15px; height: 15px; border-radius: 50%; background: var(--sheet); border: 3px solid var(--accent); }
.pf-steps li.pf-now::before { background: var(--accent); }
.pf-steps li.pf-info::before { border-color: var(--ink-2); }
.pf-steps h3 { margin: .1rem 0 .3rem; font-size: 1.1rem; }
.pf-steps p { margin: 0 0 .4rem; }
.pf-when { font: 600 .9rem var(--body); color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.pf-links .btn { margin: .25rem .4rem .25rem 0; min-height: 2.5rem; padding: .5rem .9rem; font-size: .95rem; }
.pf-notes { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--ink-2); max-width: var(--measure); }
.pf-notes li { margin: .4rem 0; }
.pf-acts .btn { margin-right: .5rem; }
@media print { .pflicht form, .pf-acts, .bar, .foot, .crumbs, .lede, .stand, .facts, .steps3, .faq, .sources, h2:not(.v-title) { display: none !important; } .pf-links { display: none; } }
/* Leitweg-ID finden (infra/leitweg.py, web/leitweg-suche.js): the directory table, the ID plate of a body page */
.lw-search label { display: block; font-weight: 600; margin-bottom: .35rem; }
.lw-search .search { margin-bottom: .5rem; }
.lw-list { max-height: 30rem; overflow-y: auto; border-top: 1px solid var(--rule-soft); }
.lw-list thead th { position: sticky; top: 0; background: var(--sheet); }
.lw-list td code { white-space: nowrap; }
.lw-list td:last-child a { white-space: nowrap; font-size: .9rem; }
.lw-id + .lw-id { margin-top: .75rem; }
.lw-big { font-size: 1.35rem; margin: 0 0 .25rem; }
.lw-big code { font-weight: 600; letter-spacing: .02em; word-break: break-all; }
.lw-id .btn { margin-right: .75rem; }
.lw-lands, .lw-near { columns: 2 16rem; column-gap: 2rem; }
.lw-lands li, .lw-near li { break-inside: avoid; }
@media (max-width: 40rem) {
  #lw-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #lw-table tr { display: grid; grid-template-columns: 1fr auto; gap: .1rem .75rem; padding: .6rem 0; border-bottom: 1px solid var(--rule-soft); }
  #lw-table tr[hidden] { display: none; }
  #lw-table td { display: block; border: 0; padding: 0; }
  #lw-table td:first-child { grid-column: 1 / -1; font-weight: 600; }
  #lw-table td:last-child { grid-column: 1 / -1; }
}

/* sample invoices (/xrechnung-beispiel, infra/samples.py): the verdict plate, downloads, the invoice as a sheet of paper, the BT table */
.verdict-plate { margin: 0 0 2rem; padding: 1rem 1.25rem; background: var(--sheet); border: 1px solid var(--rule); border-left: 4px solid var(--ok); border-radius: var(--radius); max-width: 52rem; }
.verdict-plate p { margin: 0 0 .5rem; } .verdict-plate p:last-child { margin-bottom: 0; }
.verdict-plate .btn { margin: .25rem .5rem .25rem 0; }
.badge-ok, .ok-cell { color: var(--ok); font-weight: 600; }
.badge-ok { display: inline-block; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 3px; padding: 0 .4rem; margin-right: .25rem; }
.dl-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .6rem; }
.dl-list li { max-width: none; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .9rem; }
.dl-list .btn { margin: 0; }
.dl-list .fine { overflow-wrap: anywhere; }
.points { padding-left: 1.2rem; margin: 0 0 2rem; } .points li { margin: .45rem 0; }
.invoice { background: var(--sheet); border: 1px solid var(--rule); border-radius: 2px; padding: clamp(1rem, 3vw, 2rem); margin: 1rem 0 2.5rem; max-width: 52rem;
           box-shadow: 0 1px 0 var(--rule-soft), 0 6px 18px -12px color-mix(in srgb, var(--ink) 35%, transparent); font-size: .95rem; }
.invoice h3 { margin: 0 0 .35rem; font-size: 1rem; color: var(--ink-2); font-family: var(--body); letter-spacing: .06em; text-transform: uppercase; }
.invoice p { margin: 0 0 .5rem; }
.inv-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 2rem; border-bottom: 1px solid var(--rule-soft); margin-bottom: 1.25rem; }
.inv-top .facts { margin: 0 0 1rem; gap: .2rem 1rem; font-size: .9rem; }
.inv-kind { font: 700 1.6rem/1.1 var(--display); margin: 0 0 1rem; }
.inv-kind .rid { font-size: 1rem; font-weight: 600; margin-left: .35rem; }
.inv-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 1.25rem; overflow-wrap: anywhere; }
table .num, .inv-lines th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.inv-lines td:last-child, .inv-lines th:last-child { padding-right: 0; }
.inv-sum { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1.5rem; margin: 1rem 0 1.25rem auto; max-width: 30rem; font-variant-numeric: tabular-nums; }
.inv-sum dt { color: var(--ink-2); } .inv-sum dd { margin: 0; text-align: right; }
.inv-sum dt:nth-last-of-type(1), .inv-sum dd:last-child { font-weight: 700; color: var(--ink); }
.bt-table { font-size: .9rem; margin-bottom: 2rem; }
.bt-table td.rid { white-space: nowrap; }
.bt-table .val { font-weight: 600; overflow-wrap: anywhere; min-width: 9rem; }
.bt-table code.path { font-size: .78rem; font-weight: 400; color: var(--ink-2); overflow-wrap: anywhere; display: inline-block; max-width: 34rem; }
.bt-table td a.rid { display: inline-block; margin: 0 .4rem .2rem 0; font-size: .8rem; white-space: nowrap; }
.samples-table th[scope=row] { font-size: 1rem; color: var(--ink); min-width: 12rem; }
.partner-cols td { min-width: 9rem; } .partner-cols td:nth-child(4) { min-width: 15rem; }   /* partner fact tables (infra/datev.py): readable rows on a phone, the wrapper scrolls */
.compare-x th[scope=row] { color: var(--ink); min-width: 10rem; }
.compare-x td { min-width: 14rem; overflow-wrap: anywhere; }
.others { padding-left: 1.2rem; columns: 2 18rem; } .others li { margin: .3rem 0; break-inside: avoid; }
.src-note { margin: 1.5rem 0 2rem; padding-left: .9rem; border-left: 3px solid var(--rule); max-width: 52rem; }
@media (max-width: 36rem) { .inv-parties { grid-template-columns: minmax(0, 1fr); } .inv-sum { max-width: none; } }
/* phones: each BT row becomes a small card (number + name, value, path, rules), so long XML paths wrap across the full width */
@media (max-width: 44rem) {
  .bt-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bt-table, .bt-table tbody { display: block; }
  .bt-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .1rem .75rem; padding: .6rem 0; border-bottom: 1px solid var(--rule-soft); }
  .bt-table td { border: 0; padding: 0; }
  .bt-table td:nth-child(n+3) { grid-column: 1 / -1; }
  .bt-table .val { min-width: 0; }
  .bt-table code.path { max-width: none; }
}
@media print { .verdict-plate .btn, .dl-list, .sheet { display: none; } .invoice { box-shadow: none; } }
/* /xrechnung-oder-zugferd: the decision table stacks on phones (Sie schreiben an … over Sie brauchen …) */
@media (max-width: 600px) { .decide thead { display: none; } .decide tr, .decide th, .decide td { display: block; } .decide th[scope="row"] { padding-bottom: 0; border-bottom: 0; } .decide td { padding-top: .25rem; } }
@media print { .pf-noprint { display: none !important; } }
@media (max-width: 600px) { .pf-table td:first-of-type { color: var(--ink-2); padding-bottom: 0; border-bottom: 0; } }
/* /xrechnung-oder-zugferd: comparison and profile tables stack on phones; each cell shows its column name (data-label) */
@media (max-width: 600px) { .stack thead { display: none; } .stack tr, .stack th, .stack td { display: block; } .stack tr { padding: .5rem 0; border-bottom: 1px solid var(--rule-soft); } .stack th[scope="row"], .stack td { border: 0; padding: .15rem 0; } .stack td[data-label]::before { content: attr(data-label); display: block; font-size: .78rem; color: var(--ink-2); } }
