/* Erzeugt von tools/render_behoerdenakte.py — Änderungen dort vornehmen.
   write_css() überschreibt diese Datei bei jedem Lauf vollständig; eine
   Korrektur, die nur hier steht, ist beim nächsten Rendern weg (adf8dfe). */
/* Ergänzungen für die Behördenakte; alle Farben über die Tokens von style.css. */
:root { --copy-muted: var(--ink-soft); }
.benchmark-hero .hero-copy h1 { max-width: none; }
.hero-shot { max-width: 62rem; }

.chart-frame svg { width: 100%; height: auto; }
/* style.css begrenzt img nur über max-width; ohne height:auto bliebe die
   Attributhöhe stehen und die Screenshots würden gestaucht. Gemessen am
   18.09.2026 im Browser: 5 von 35 Bildern verzerrt davor, 0 danach.
   Die Regel gehört hierher und nicht in die erzeugte Datei — ein erneuter
   Lauf des Renderers überschreibt css/behoerdenakte.css vollständig. */
.shot .media-frame img, .hero-shot img { display: block; width: 100%; height: auto; }
.benchmark-data-figure .media-frame.chart-frame { background: #f4f2e8; }
.benchmark-data-figure svg text { font-family: "Noto Sans", sans-serif; }

td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-table tbody th small { display: block; font-weight: 400; color: var(--copy); }

.medal {
  display: inline-block; margin: 0 0.3rem 0.3rem 0; padding: 0.1rem 0.55rem;
  border: 1px solid currentColor; border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.m-gold { color: #b08a2e; }
.m-silver { color: #7d8b8f; }
.m-bronze { color: #9a6135; }
.m-pass { color: var(--accent); }
.m-fail { color: #b9562b; background: color-mix(in srgb, #b9562b 12%, transparent); }
.tone-dark .m-gold { color: #e3c06a; }
.tone-dark .m-fail { color: #f0a07a; }

.result-interpretation { margin-top: clamp(2rem, 4vw, 3rem); }

/* Fallen */
.finding-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.finding { display: grid; align-content: start; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--rule); background: var(--night-soft); }
.finding h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
.finding blockquote {
  margin: 0; padding-left: 1rem; border-left: 2px solid var(--accent);
  color: var(--night-ink); font-family: var(--font-display); font-size: 1.05rem; line-height: 1.5;
}
.finding.is-fail blockquote { border-left-color: #f0a07a; }
.finding.is-qwen blockquote { border-left-color: #b9a0d6; }
.finding-note { font-size: 0.86rem; }
.finding-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.section .finding-tag.ok, .finding-tag.ok { color: var(--accent); }
.section .finding-tag.bad, .finding-tag.bad { color: #f0a07a; }

/* Aufgabenakten */
.dossiers { border-top: 1px solid var(--rule); }
.task-dossier { border-bottom: 1px solid var(--rule); }
.task-dossier > summary {
  display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: 0.25rem 1.5rem; align-items: baseline;
  padding-block: 1.5rem; cursor: pointer; list-style: none;
}
.task-dossier > summary::-webkit-details-marker { display: none; }
.task-dossier > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.task-id { grid-row: span 2; color: var(--accent); font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.task-title { font-family: var(--font-display); font-size: clamp(1.3rem, 2.3vw, 1.9rem); font-weight: 700; line-height: 1.15; color: var(--ink); }
.task-meta { grid-column: 2; color: var(--copy); font-size: 0.8rem; }
.task-medals { grid-column: 3; grid-row: 1 / span 2; align-self: center; text-align: right; }
.task-medals .mlabel { display: inline-block; min-width: 5.5rem; color: var(--copy); font-size: 0.7rem; text-align: right; margin-right: 0.3rem; }
.task-inner { display: grid; gap: 1.75rem; padding-bottom: 2.5rem; }

.prompt-box { border: 1px solid var(--rule); background: var(--paper-strong); }
.prompt-box summary { padding: 0.7rem 1rem; color: var(--accent); font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.prompt-box pre { margin: 0; padding: 0 1rem 1rem; white-space: pre-wrap; font-size: 0.82rem; line-height: 1.6; color: var(--ink); }

.run-card { border: 1px solid var(--rule); background: var(--paper-strong); }
.run-card.is-fail { border-color: color-mix(in srgb, #b9562b 55%, var(--rule)); }
.run-card > header {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 1.5rem; align-items: center;
  padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--rule);
}
.run-card .eyebrow { margin: 0; }
.run-score { display: flex; align-items: center; gap: 0.75rem; grid-row: span 2; grid-column: 2; }
.run-score strong { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.run-score .medal { margin: 0; }
.run-facts { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; font-size: 0.8rem; color: var(--copy); }
.run-facts b { color: var(--ink); font-variant-numeric: tabular-nums; }
.comp-bar { grid-column: 1 / -1; display: flex; gap: 3px; height: 0.45rem; }
.comp-bar span { background: var(--paper-muted); border-radius: 2px; overflow: hidden; }
.comp-bar i { display: block; height: 100%; }
.comp-bar .flex-5 { flex: 5; }
.comp-bar .flex-10 { flex: 10; }
.comp-bar .flex-20 { flex: 20; }
.comp-bar .flex-60 { flex: 60; }
.comp-bar i.comp-hard { background: #0D665F; }
.comp-bar i.comp-inv { background: #2E8275; }
.comp-bar i.comp-skill { background: #80AA9A; }
.comp-bar i.comp-wasted { background: #B6A45E; }
.comp-bar i.comp-redundant { background: #53636D; }
.comp-bar i.w-0 { width: 0%; }
.comp-bar i.w-1 { width: 1%; }
.comp-bar i.w-2 { width: 2%; }
.comp-bar i.w-3 { width: 3%; }
.comp-bar i.w-4 { width: 4%; }
.comp-bar i.w-5 { width: 5%; }
.comp-bar i.w-6 { width: 6%; }
.comp-bar i.w-7 { width: 7%; }
.comp-bar i.w-8 { width: 8%; }
.comp-bar i.w-9 { width: 9%; }
.comp-bar i.w-10 { width: 10%; }
.comp-bar i.w-11 { width: 11%; }
.comp-bar i.w-12 { width: 12%; }
.comp-bar i.w-13 { width: 13%; }
.comp-bar i.w-14 { width: 14%; }
.comp-bar i.w-15 { width: 15%; }
.comp-bar i.w-16 { width: 16%; }
.comp-bar i.w-17 { width: 17%; }
.comp-bar i.w-18 { width: 18%; }
.comp-bar i.w-19 { width: 19%; }
.comp-bar i.w-20 { width: 20%; }
.comp-bar i.w-21 { width: 21%; }
.comp-bar i.w-22 { width: 22%; }
.comp-bar i.w-23 { width: 23%; }
.comp-bar i.w-24 { width: 24%; }
.comp-bar i.w-25 { width: 25%; }
.comp-bar i.w-26 { width: 26%; }
.comp-bar i.w-27 { width: 27%; }
.comp-bar i.w-28 { width: 28%; }
.comp-bar i.w-29 { width: 29%; }
.comp-bar i.w-30 { width: 30%; }
.comp-bar i.w-31 { width: 31%; }
.comp-bar i.w-32 { width: 32%; }
.comp-bar i.w-33 { width: 33%; }
.comp-bar i.w-34 { width: 34%; }
.comp-bar i.w-35 { width: 35%; }
.comp-bar i.w-36 { width: 36%; }
.comp-bar i.w-37 { width: 37%; }
.comp-bar i.w-38 { width: 38%; }
.comp-bar i.w-39 { width: 39%; }
.comp-bar i.w-40 { width: 40%; }
.comp-bar i.w-41 { width: 41%; }
.comp-bar i.w-42 { width: 42%; }
.comp-bar i.w-43 { width: 43%; }
.comp-bar i.w-44 { width: 44%; }
.comp-bar i.w-45 { width: 45%; }
.comp-bar i.w-46 { width: 46%; }
.comp-bar i.w-47 { width: 47%; }
.comp-bar i.w-48 { width: 48%; }
.comp-bar i.w-49 { width: 49%; }
.comp-bar i.w-50 { width: 50%; }
.comp-bar i.w-51 { width: 51%; }
.comp-bar i.w-52 { width: 52%; }
.comp-bar i.w-53 { width: 53%; }
.comp-bar i.w-54 { width: 54%; }
.comp-bar i.w-55 { width: 55%; }
.comp-bar i.w-56 { width: 56%; }
.comp-bar i.w-57 { width: 57%; }
.comp-bar i.w-58 { width: 58%; }
.comp-bar i.w-59 { width: 59%; }
.comp-bar i.w-60 { width: 60%; }
.comp-bar i.w-61 { width: 61%; }
.comp-bar i.w-62 { width: 62%; }
.comp-bar i.w-63 { width: 63%; }
.comp-bar i.w-64 { width: 64%; }
.comp-bar i.w-65 { width: 65%; }
.comp-bar i.w-66 { width: 66%; }
.comp-bar i.w-67 { width: 67%; }
.comp-bar i.w-68 { width: 68%; }
.comp-bar i.w-69 { width: 69%; }
.comp-bar i.w-70 { width: 70%; }
.comp-bar i.w-71 { width: 71%; }
.comp-bar i.w-72 { width: 72%; }
.comp-bar i.w-73 { width: 73%; }
.comp-bar i.w-74 { width: 74%; }
.comp-bar i.w-75 { width: 75%; }
.comp-bar i.w-76 { width: 76%; }
.comp-bar i.w-77 { width: 77%; }
.comp-bar i.w-78 { width: 78%; }
.comp-bar i.w-79 { width: 79%; }
.comp-bar i.w-80 { width: 80%; }
.comp-bar i.w-81 { width: 81%; }
.comp-bar i.w-82 { width: 82%; }
.comp-bar i.w-83 { width: 83%; }
.comp-bar i.w-84 { width: 84%; }
.comp-bar i.w-85 { width: 85%; }
.comp-bar i.w-86 { width: 86%; }
.comp-bar i.w-87 { width: 87%; }
.comp-bar i.w-88 { width: 88%; }
.comp-bar i.w-89 { width: 89%; }
.comp-bar i.w-90 { width: 90%; }
.comp-bar i.w-91 { width: 91%; }
.comp-bar i.w-92 { width: 92%; }
.comp-bar i.w-93 { width: 93%; }
.comp-bar i.w-94 { width: 94%; }
.comp-bar i.w-95 { width: 95%; }
.comp-bar i.w-96 { width: 96%; }
.comp-bar i.w-97 { width: 97%; }
.comp-bar i.w-98 { width: 98%; }
.comp-bar i.w-99 { width: 99%; }
.comp-bar i.w-100 { width: 100%; }

.run-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 0.9fr); gap: 1.5rem; padding: 1.25rem; }
.run-body h4 { margin: 0 0 0.6rem; color: var(--accent); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }
.run-body h4:not(:first-child) { margin-top: 1.25rem; }
.checks { display: grid; gap: 0.55rem; list-style: none; }
.section .checks li { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); gap: 0.4rem; color: var(--ink); font-size: 0.8rem; line-height: 1.4; }
.checks b { color: var(--accent); }
.checks li.bad b, .checks li.bad > span { color: #b9562b; }
.checks small { display: block; color: var(--copy); font-size: 0.72rem; overflow-wrap: anywhere; }
.kv { display: grid; gap: 0.35rem; }
.kv div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0.75rem; padding-bottom: 0.35rem; border-bottom: 1px dotted var(--rule); font-size: 0.8rem; }
.kv dt { color: var(--copy); overflow-wrap: anywhere; font-family: ui-monospace, "Noto Sans", monospace; font-size: 0.72rem; }
.kv dd { margin: 0; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.figure-notes p { font-size: 0.8rem; overflow-wrap: anywhere; }
.tools { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tools code { padding: 0.05rem 0.4rem; border: 1px solid var(--rule); font-size: 0.68rem; color: var(--ink); }
.section p.skills { margin-top: 0.6rem; font-size: 0.78rem; }
.shots { display: grid; gap: 1rem; align-content: start; }
.shot figcaption { grid-template-columns: 1fr; gap: 0.1rem; padding-top: 0.45rem; font-size: 0.72rem; overflow-wrap: anywhere; }
.section p.no-shot { font-size: 0.8rem; font-style: italic; }

/* Methode */
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.method-grid div { padding: 1.25rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.method-grid dt { margin-bottom: 0.5rem; color: var(--accent); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.method-grid dd { margin: 0; color: var(--copy); font-size: 0.86rem; line-height: 1.6; }

@media (max-width: 70rem) {
  .run-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .shots { grid-column: 1 / -1; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
}
@media (max-width: 46rem) {
  .finding-grid, .method-grid, .run-body { grid-template-columns: minmax(0, 1fr); }
  .task-dossier > summary { grid-template-columns: 3rem minmax(0, 1fr); }
  .task-medals { grid-column: 2; grid-row: auto; text-align: left; }
  .run-card > header { grid-template-columns: minmax(0, 1fr); }
  .run-score { grid-column: 1; grid-row: auto; }
  .hero-metrics { grid-template-columns: minmax(0, 1fr); }
  .hero-metrics li + li { padding-left: 0; border-left: 0; }
  figcaption { grid-template-columns: 1fr; }
}
.sum-row th, .sum-row td { border-top: 2px solid var(--rule); }
.result-table thead th[colspan] { text-align: left; }
