@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; } }
.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 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; }
.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 { font-weight: 400; }
.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; }

/* 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; }

/* 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; }

/* 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, .cards { 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; }
}

/* 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; }
