/* DAGGRS – "Fachbuch mit Tafelteil". Handgeschrieben, kein Build, keine Inline-Styles (CSP). */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/SourceSerif4-opsz-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/SourceSerif4-italic-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Papier, Tinte, Bronze. Kontraste werden in docs/TESTBERICHT.md gemessen. */
  --paper: #f5f0e6;
  --paper-hi: #fbf8f1;
  --paper-2: #e9e4d9;
  --paper-3: #ddd6c6;
  --rule: #c4bca9;
  --rule-strong: #6f6a5e;
  --ink: #22252a;
  --ink-2: #4a4a47;
  --ink-soft: #3a3e45;
  --bronze: #7d5e30;
  --bronze-dark: #5f4520;
  --bronze-light: #cda566;
  --error: #9b2c1f;
  --ok: #2e5a3c;
  --focus: #22252a;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-body: clamp(1.0625rem, 1.03rem + 0.14vw, 1.125rem); /* 17–18 px */
  --fs-small: 0.9375rem;
  --fs-h1-home: clamp(2.25rem, 1.2rem + 4.4vw, 4.25rem);
  --fs-h1: clamp(2rem, 1.35rem + 2.7vw, 3.375rem);
  --fs-h2: clamp(1.625rem, 1.3rem + 1.35vw, 2.375rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --fs-lead: clamp(1.1875rem, 1.1rem + 0.45vw, 1.4375rem);

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 6.5rem;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
  scrollbar-color: var(--rule-strong) var(--paper);
  scroll-padding-top: 1.5rem;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-optical-sizing: auto;
  hyphens: auto;
  overflow-wrap: break-word;
  min-width: 20rem;
}

::selection {
  background: var(--bronze);
  color: var(--paper-hi);
}
input,
textarea {
  caret-color: var(--bronze);
}
input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--bronze);
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
  hyphens: manual;
  margin: 0;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-size: 1.125rem; line-height: 1.25; }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 650; }

a {
  color: var(--bronze);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover {
  color: var(--bronze-dark);
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
main:focus { outline: none; }
[tabindex="-1"]:focus { outline: none; }
.hinweisbox[tabindex="-1"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--s-4);
  top: -4rem;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: var(--paper);
  font: 600 1rem var(--sans);
  text-decoration: none;
}
.skip:focus { top: var(--s-3); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.text { max-width: 66ch; }
.text--nach { margin-top: var(--s-5); }
.hint {
  font: var(--fs-small) / 1.5 var(--sans);
  color: var(--ink-2);
  margin-bottom: var(--s-3);
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  max-width: 44rem;
  margin-top: var(--s-5);
}

.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.2em; }
.icon--nach { margin-left: 0.4em; transition: transform 0.35s var(--ease-out); }
a:hover .icon--nach { transform: translateX(0.25em); }

/* ---- Vorschau- und Entwurfshinweise --------------------------------------------------- */
.vorschau {
  background: var(--paper-3);
  border-bottom: 1px dashed var(--ink-2);
  font: var(--fs-small) / 1.4 var(--sans);
  color: var(--ink);
}
.vorschau p { margin: 0; padding: var(--s-2) var(--gutter); text-align: center; }
.entwurfhinweis {
  background: var(--paper-2);
  border-bottom: 1px dashed var(--ink-2);
  font: var(--fs-small) / 1.5 var(--sans);
  padding-block: var(--s-3);
}
.entwurfhinweis p { margin: 0 0 var(--s-1); }
.entwurfhinweis__titel { font-weight: 600; }

.chip {
  display: inline-block;
  font: 600 0.8125rem / 1.2 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border: 1px dashed currentColor;
  color: var(--ink-2);
  vertical-align: 0.12em;
  white-space: nowrap;
  hyphens: none;
}
.chip--offen { color: var(--bronze-dark); }

/* ---- Kopf ------------------------------------------------------------------------------- */
.kopf {
  border-top: 6px solid var(--ink);
  border-bottom: 3px double var(--ink);
  background: var(--paper);
}
.kopf__zeile {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: var(--s-5);
  padding-block: var(--s-4);
}
.kopf__marke { color: var(--ink); display: block; line-height: 0; justify-self: start; }
.kopf__zusatz { display: none; }

.wordmark { display: block; width: clamp(9rem, 38vw, 11.5rem); height: auto; }
.wordmark__letters { fill: currentColor; }
.wordmark__blade { fill: var(--bronze); }

.menuebtn {
  display: none;
  align-items: center;
  gap: var(--s-2);
  min-height: 3rem;
  padding: 0 var(--s-4);
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font: 600 1rem var(--sans);
  cursor: pointer;
}
.menuebtn:hover { background: var(--ink); color: var(--paper); }
.menuebtn__icon { display: inline-flex; }
.js .menuebtn { display: inline-flex; }

.hauptnav { grid-column: 1 / -1; margin-top: var(--s-4); }
.js .hauptnav { display: none; }
.js .kopf.is-open .hauptnav { display: block; }
.hauptnav ul { list-style: none; margin: 0; padding: 0; }
.hauptnav li { border-top: 1px solid var(--rule); }
.hauptnav li a { width: 100%; }
.hauptnav a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
  padding: var(--s-3) 0;
  font: 600 1.125rem var(--sans);
  color: var(--ink);
  text-decoration: none;
}
.hauptnav a:hover { color: var(--bronze-dark); }
.hauptnav a[aria-current] { color: var(--bronze-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.sprachwahl { grid-column: 1 / -1; justify-self: end; margin-top: var(--s-3); }
.sprachen { display: flex; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
.sprachen li { border: 0; }
.sprachen a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: var(--s-2); color: var(--ink); font: 600 1rem var(--sans); text-decoration: none; }
.sprachen a:hover, .sprachen a[aria-current] { color: var(--bronze-dark); text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 2px; }
.btn.kopf__cta { display: none; }

@media (min-width: 64rem) {
  .kopf__zeile { grid-template-columns: auto auto 1fr auto; column-gap: var(--s-6); padding-block: var(--s-5); }
  .kopf__zusatz {
    display: block;
    margin: 0;
    padding-left: var(--s-5);
    border-left: 1px solid var(--ink);
    font: 600 0.8125rem / 1.2 var(--sans);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-2);
    align-self: center;
  }
  .menuebtn, .js .menuebtn { display: none; }
  .hauptnav, .js .hauptnav { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-6); margin: 0; grid-column: auto; }
  .hauptnav ul { display: flex; gap: var(--s-6); }
  .hauptnav li { border: 0; }
  .hauptnav li a { width: auto; }
  .hauptnav a { padding: var(--s-2) 0; font-size: 1.0625rem; }
  .hauptnav a[aria-current] { text-decoration: none; box-shadow: 0 2px 0 var(--bronze); }
  .hauptnav a:hover { box-shadow: 0 2px 0 var(--ink); }
  .sprachen { margin: 0; }
  .sprachwahl { margin: 0; grid-column: auto; }
  .kopf--sprachen .kopf__zeile { grid-template-columns: auto 1fr auto; column-gap: var(--s-5); }
  .kopf--sprachen .kopf__zusatz { display: none; }
  .kopf--sprachen .hauptnav { grid-column: 2; grid-row: 1; }
  .kopf--sprachen .sprachwahl { grid-column: 3; grid-row: 1; }
  .btn.kopf__cta { display: inline-flex; }
}
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .kopf__zeile { grid-template-columns: 1fr auto; }
}

/* ---- Knöpfe und Links ------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 3.25rem;
  padding: 0.7rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 2px;
  font: 600 1.0625rem / 1.25 var(--sans);
  text-decoration: none;
  cursor: pointer;
  hyphens: none;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.btn--primary { background: var(--bronze); color: var(--paper-hi); border-color: var(--bronze); }
.btn--primary:hover { background: var(--bronze-dark); border-color: var(--bronze-dark); color: var(--paper-hi); }
.btn--hell { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--hell:hover { background: var(--bronze-light); border-color: var(--bronze-light); color: var(--ink); }
.btn--leise { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--leise:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--klein { min-height: 2.75rem; padding: 0.45rem 1rem; font-size: 1rem; }
.btn--voll { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.textlink {
  display: inline-flex;
  align-items: center;
  font: 600 1.0625rem / 1.3 var(--sans);
  color: var(--bronze);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.textlink--gross { font-size: 1.1875rem; }
.extern__mark .icon { width: 0.85em; height: 0.85em; margin-left: 0.3em; vertical-align: -0.05em; }

.aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); margin-top: var(--s-6); }

/* ---- Seitenkopf und Abschnitte ----------------------------------------------------------- */
.seitenkopf { padding-top: clamp(2.5rem, 6vw, 4.75rem); padding-bottom: var(--s-6); }
.seitenkopf h1 { max-width: 22ch; }

.abschnitt { border-top: 1px solid var(--rule); padding-block: clamp(2.5rem, 6vw, 5rem); }
.abschnitt__kopf { max-width: 46rem; margin-bottom: var(--s-6); }
.abschnitt__kopf h2 { margin-bottom: var(--s-3); }
.abschnitt__kopf .text { margin-bottom: 0; }
.abschnitt--tafeln { background: var(--paper-2); border-top-color: var(--rule); }
.abschnitt--schluss { padding-bottom: clamp(3rem, 7vw, 6rem); }
.abschnitt--ergebnis { background: var(--paper-2); }
.abschnitt--formular { background: var(--paper-2); }
.abschnitt--recht h2 { margin-top: var(--s-6); margin-bottom: var(--s-3); font-size: var(--fs-h3); }
.abschnitt--recht h2:first-child { margin-top: 0; }
.abschnitt--quellen { background: var(--paper-2); }

.zweispaltig { display: grid; gap: var(--s-6); }
@media (min-width: 56rem) {
  .zweispaltig { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
  .zweispaltig--foto { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}

.hinweisbox {
  margin-block: var(--s-5);
  padding: var(--s-4) var(--s-5);
  background: var(--paper-hi);
  border: 1px solid var(--ink);
  font: var(--fs-small) / 1.55 var(--sans);
  max-width: 52rem;
}
.hinweisbox p { margin-bottom: var(--s-2); max-width: 72ch; }
.hinweisbox p:last-child { margin-bottom: 0; }
.hinweisbox__titel { font-weight: 650; font-size: 1.0625rem; display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }
.hinweisbox--entwurf, .hinweisbox--vorschau { border-style: dashed; }
.hinweisbox--fehler { border: 2px solid var(--error); }
.hinweisbox--fehler .hinweisbox__titel { color: var(--error); }
.hinweisbox--erfolg { border: 2px solid var(--ok); }
.hinweisbox--erfolg .hinweisbox__titel { color: var(--ok); }
.referenz { font-family: var(--sans); font-weight: 700; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
/* Köderfeld gegen automatisches Ausfüllen: aus dem Blickfeld, nicht per display:none (das umgehen manche Programme) */
.feld--falle { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.hinweisbox .liste { margin-block: var(--s-2); }

/* ---- Brotkrumen ----------------------------------------------------------------------------- */
.brotkrume { padding-top: var(--s-4); font: var(--fs-small) / 1.4 var(--sans); color: var(--ink-2); }
.brotkrume ol { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); list-style: none; margin: 0; padding: 0; }
.brotkrume li + li::before { content: "/"; margin-right: var(--s-2); color: var(--rule-strong); }
.brotkrume a { color: var(--ink-2); }
.brotkrume [aria-current="page"] { color: var(--ink); }

/* ---- Listen -------------------------------------------------------------------------------- */
.liste { list-style: none; margin: 0 0 var(--s-4); padding: 0; }
.liste li { position: relative; padding-left: 1.6rem; margin-bottom: var(--s-2); }
.liste li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 0.8rem; height: 2px; background: var(--bronze); }
.linkliste { list-style: none; margin: 0; padding: 0; }
.linkliste li { padding-block: var(--s-3); border-bottom: 1px solid var(--rule); }
.linkliste li:first-child { border-top: 1px solid var(--ink); }
.linkliste__link { font: 600 1.125rem var(--sans); }

.fotoliste { list-style: none; counter-reset: foto; margin: 0; padding: 0; }
.fotoliste li {
  counter-increment: foto;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  align-items: baseline;
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--rule);
}
.fotoliste li:first-child { border-top: 2px solid var(--ink); }
.fotoliste li::before { content: counter(foto); font: 600 1.5rem / 1 var(--serif); color: var(--bronze); font-variant-numeric: lining-nums tabular-nums; }

/* ---- Titelblatt (Startseite) ------------------------------------------------------------------ */
.titelblatt { display: grid; gap: var(--s-7); padding-block: clamp(2.25rem, 6vw, 5.5rem); }
.titelblatt h1 { font-size: var(--fs-h1-home); line-height: 1.04; letter-spacing: -0.02em; max-width: 17ch; }
.titelblatt__betreiber {
  margin-top: var(--s-7);
  padding-top: var(--s-3);
  border-top: 1px solid var(--ink);
  font: var(--fs-small) / 1.45 var(--sans);
  color: var(--ink-2);
  max-width: 30rem;
}
@media (min-width: 60rem) {
  .titelblatt { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .titelblatt__tafel { margin-top: var(--s-4); }
}

/* ---- Tafeln und Abbildungen ----------------------------------------------------------------------- */
.tafel { margin: 0; }
.tafel__rahmen {
  position: relative;
  background: var(--paper-hi);
  border: 1px solid var(--ink);
  box-shadow: inset 0 0 0 5px var(--paper-hi), inset 0 0 0 6px var(--ink);
  padding: 10px;
}
.tafel__rahmen img { display: block; width: 100%; height: auto; }
.tafel figcaption {
  margin-top: var(--s-3);
  font: var(--fs-small) / 1.5 var(--sans);
  color: var(--ink-2);
  max-width: 44rem;
}
.tafel__nr { font-weight: 650; color: var(--ink); letter-spacing: 0.04em; margin-right: 0.15rem; }
.tafel__nachweis { display: block; margin-top: 0.15rem; }
.tafel__vermerk { color: var(--ink); }
.tafel__tafelnr {
  position: absolute;
  left: 18px;
  top: 14px;
  font: 600 0.8125rem / 1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.tafelreihe { display: grid; gap: var(--s-6); }
@media (min-width: 40rem) {
  .tafelreihe--zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tafelreihe--drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .tafelreihe--drei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ar-4x3 { aspect-ratio: 4 / 3; }
.ar-3x4 { aspect-ratio: 3 / 4; }
.ar-3x2 { aspect-ratio: 3 / 2; }
.ar-1x1 { aspect-ratio: 1 / 1; }
.ar-16x9 { aspect-ratio: 16 / 9; }

.platzhalter {
  position: relative;
  height: 100%;
  min-height: 11rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-5);
  text-align: center;
  background: var(--paper-2);
  border: 1px dashed var(--rule-strong);
}
.platzhalter__marken::before,
.platzhalter__marken::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid var(--ink);
}
.platzhalter__marken::before { left: 8px; top: 8px; border-width: 2px 0 0 2px; }
.platzhalter__marken::after { right: 8px; bottom: 8px; border-width: 0 2px 2px 0; }
.platzhalter__typ { font: 650 0.8125rem / 1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze-dark); }
.platzhalter__motiv { font: italic 1rem / 1.4 var(--serif); color: var(--ink); max-width: 28ch; hyphens: none; }
.platzhalter__hinweis { font: 0.875rem / 1.4 var(--sans); color: var(--ink-2); max-width: 30ch; }
.tafelreihe--drei .platzhalter { padding: var(--s-4); }

/* Schemazeichnung */
.tafel__rahmen--schema { padding: 38px 14px 14px; }
.schema { display: block; width: 100%; height: auto; max-height: 40rem; margin-inline: auto; }
.sk-part { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.sk-line { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.schema__leader path { fill: none; stroke: var(--bronze); stroke-width: 1; }
.sk-mark circle { fill: var(--paper-hi); stroke: var(--bronze); stroke-width: 1.5; }
.sk-mark text { font: 600 14px var(--sans); fill: var(--bronze-dark); text-anchor: middle; dominant-baseline: central; }

@media (prefers-reduced-motion: no-preference) {
  .schema__marken .sk-mark { animation: marke-ein 0.8s var(--ease-out) backwards; }
  .schema__leader { animation: marke-ein 0.8s var(--ease-out) 0.05s backwards; }
  .sk-mark:nth-child(1) { animation-delay: 0.10s; } .sk-mark:nth-child(2) { animation-delay: 0.15s; }
  .sk-mark:nth-child(3) { animation-delay: 0.20s; } .sk-mark:nth-child(4) { animation-delay: 0.25s; }
  .sk-mark:nth-child(5) { animation-delay: 0.30s; } .sk-mark:nth-child(6) { animation-delay: 0.35s; }
  .sk-mark:nth-child(7) { animation-delay: 0.40s; } .sk-mark:nth-child(8) { animation-delay: 0.45s; }
  .sk-mark:nth-child(9) { animation-delay: 0.50s; } .sk-mark:nth-child(10) { animation-delay: 0.55s; }
  .sk-mark:nth-child(11) { animation-delay: 0.60s; }
}
@keyframes marke-ein { from { opacity: 0; } to { opacity: 1; } }

/* Legende zur Tafel */
.legende { margin-top: var(--s-5); display: grid; gap: var(--s-5); }
.legende__gruppe { min-width: 0; }
.legende__titel {
  margin: 0 0 var(--s-2);
  padding-bottom: var(--s-1);
  border-bottom: 1px solid var(--ink);
  font: 650 0.8125rem / 1.2 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.legende dl { margin: 0; }
.legende__eintrag { padding-block: var(--s-2); border-bottom: 1px solid var(--rule); }
.legende dt { font-weight: 600; display: flex; gap: var(--s-2); align-items: baseline; }
.legende dd { margin: 0.15rem 0 0 calc(1.6rem + var(--s-2)); font: var(--fs-small) / 1.45 var(--sans); color: var(--ink-2); }
.legende__nr {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1.5px solid var(--bronze);
  border-radius: 50%;
  font: 650 0.8125rem / 1 var(--sans);
  color: var(--bronze-dark);
  font-variant-numeric: tabular-nums;
}
.legende__hinweis { margin-top: var(--s-4); font: var(--fs-small) / 1.5 var(--sans); color: var(--ink-2); max-width: 44rem; }
@media (min-width: 40rem) {
  .legende { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
}
.legende--kurz .legende__eintrag { padding-block: 0.3rem; border: 0; }
.legende--kurz dd { display: none; }
.legende--kurz dt { font: 500 1rem / 1.3 var(--sans); }
@media (max-width: 39.99rem) {
  .legende--kurz { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
}

/* ---- Inhaltsverzeichnis ------------------------------------------------------------------------------ */
.inhalt { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.inhalt li { border-bottom: 1px solid var(--rule); }
.inhalt__zeile {
  display: grid;
  grid-template-columns: 3rem 1fr 2rem;
  align-items: start;
  column-gap: var(--s-4);
  padding: var(--s-5) var(--s-2);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.25s var(--ease-out);
}
.inhalt--ohnenr .inhalt__zeile { grid-template-columns: 1fr 2rem; padding-inline: var(--s-3); }
.inhalt__zeile:hover { background: var(--paper-2); color: var(--ink); }
.inhalt__nr { font: 600 2.25rem / 1 var(--serif); color: var(--bronze); font-variant-numeric: lining-nums tabular-nums; }
.inhalt__koerper { display: block; min-width: 0; }
.inhalt__titel { display: block; font: 600 var(--fs-h3) / 1.2 var(--serif); letter-spacing: -0.01em; }
.inhalt__text { display: block; margin-top: var(--s-2); max-width: 52ch; color: var(--ink-2); }
.inhalt__aktion { display: block; margin-top: var(--s-2); font: 600 1.0625rem var(--sans); color: var(--bronze); text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
.inhalt__pfeil { align-self: center; justify-self: end; color: var(--bronze); transition: transform 0.35s var(--ease-out); }
.inhalt__pfeil .icon { width: 1.6rem; height: 1.6rem; }
.inhalt__zeile:hover .inhalt__pfeil { transform: translateX(0.35rem); }

/* ---- Dunkler Abschnitt: Ablauf --------------------------------------------------------------------------- */
.abschnitt--dunkel { background: var(--ink); color: var(--paper); border-top: 0; }
.abschnitt--dunkel a { color: var(--bronze-light); }
.abschnitt--dunkel a:hover { color: var(--paper); }
.abschnitt--dunkel :focus-visible { outline-color: var(--paper); }
.abschnitt--dunkel .btn--hell { color: var(--ink); }
.abschnitt--dunkel .btn--hell:hover { color: var(--ink); }
.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6); }
.schritte__eintrag { border-top: 2px solid var(--bronze-light); padding-top: var(--s-4); }
.schritte__nr { display: block; font: 600 clamp(2.75rem, 2rem + 3vw, 4rem) / 1 var(--serif); color: var(--bronze-light); font-variant-numeric: lining-nums; margin-bottom: var(--s-3); }
.schritte__titel { font-size: var(--fs-h3); margin-bottom: var(--s-2); }
.schritte__eintrag p { max-width: 30ch; margin: 0; color: inherit; }
@media (min-width: 48rem) { .schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .schritte { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); } }
.abschnitt:not(.abschnitt--dunkel) .schritte__eintrag { border-top-color: var(--ink); }
.abschnitt:not(.abschnitt--dunkel) .schritte__nr { color: var(--bronze); }

/* ---- FAQ -------------------------------------------------------------------------------------------------------- */
.faq { border-top: 2px solid var(--ink); max-width: 52rem; }
.faq__eintrag { border-bottom: 1px solid var(--rule); }
.faq__eintrag summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding-block: var(--s-4);
  cursor: pointer;
  list-style: none;
}
.faq__eintrag summary::-webkit-details-marker { display: none; }
.faq__frage { font: 600 clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem) / 1.3 var(--serif); }
.faq__zeichen { position: relative; flex: none; width: 1.25rem; height: 1.25rem; }
.faq__zeichen::before,
.faq__zeichen::after { content: ""; position: absolute; background: var(--bronze); transition: transform 0.3s var(--ease-out); }
.faq__zeichen::before { left: 0; right: 0; top: calc(50% - 1px); height: 2px; }
.faq__zeichen::after { top: 0; bottom: 0; left: calc(50% - 1px); width: 2px; }
.faq__eintrag[open] .faq__zeichen::after { transform: scaleY(0); }
.faq__eintrag p { padding-bottom: var(--s-4); max-width: 62ch; }
.faq__eintrag summary:hover .faq__frage { color: var(--bronze-dark); }

/* ---- Tabellen ----------------------------------------------------------------------------------------------------- */
.tabelle { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font: 1rem / 1.5 var(--sans); background: transparent; }
.tabelle thead th {
  text-align: left;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--ink);
  font: 650 0.8125rem / 1.2 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tabelle td, .tabelle tbody th { padding: var(--s-4); vertical-align: top; border-bottom: 1px solid var(--rule); text-align: left; }
.tabelle tbody tr:last-child td, .tabelle tbody tr:last-child th { border-bottom: 0; }
.tabelle tbody th { font-weight: 650; width: 16%; }
.tabelle--klein { font-size: var(--fs-small); margin-block: var(--s-3); }
.tabelle--klein td, .tabelle--klein tbody th { padding: var(--s-3); }
.urteil { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 650; white-space: nowrap; }
.urteil--passt { color: var(--ok); }
.urteil--weicht_ab { color: var(--error); }
.urteil--offen { color: var(--ink-2); }
@media (max-width: 47.99rem) {
  .tabelle--stapel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tabelle--stapel, .tabelle--stapel tbody, .tabelle--stapel tr { display: block; }
  .tabelle--stapel tr { padding-block: var(--s-3); border-bottom: 1px solid var(--rule); }
  .tabelle--stapel tr:last-child { border-bottom: 0; }
  .tabelle--stapel tbody th { display: block; width: auto; border: 0; padding: var(--s-1) var(--s-3); font: 600 1.125rem / 1.3 var(--serif); }
  .tabelle--stapel td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--s-3); border: 0; padding: var(--s-1) var(--s-3); }
  .tabelle--stapel td::before { content: attr(data-label); font: 650 0.8125rem / 1.5 var(--sans); letter-spacing: 0.04em; color: var(--ink-2); }
  .tabelle--stapel td:empty { display: none; }
}

/* ---- Bestimmungsschlüssel und Ergebnis -------------------------------------------------------------------------------- */
.schluessel { max-width: 60rem; }
.frage { border: 0; border-top: 2px solid var(--ink); margin: 0 0 var(--s-6); padding: var(--s-4) 0 0; min-width: 0; }
.frage legend { display: flex; gap: var(--s-4); align-items: baseline; padding: 0; float: left; width: 100%; margin-bottom: var(--s-3); }
.frage legend + * { clear: both; }
.frage__nr { font: 600 2rem / 1 var(--serif); color: var(--bronze); font-variant-numeric: lining-nums; min-width: 1.5rem; }
.frage__text { font: 600 var(--fs-h3) / 1.25 var(--serif); }
.frage .hint { margin-left: 0; max-width: 60ch; }
.wahlen { display: grid; gap: var(--s-2); }
@media (min-width: 48rem) { .wahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wahl {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  min-height: 3.5rem;
  padding: var(--s-3) var(--s-4);
  background: var(--paper-hi);
  border: 1.5px solid var(--rule-strong);
  border-radius: 2px;
  font: 1.0625rem / 1.4 var(--sans);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out);
}
.wahl:hover { background: var(--paper-2); }
.wahl input { flex: none; width: 1.35rem; height: 1.35rem; margin: 0.1rem 0 0; }
.wahl:has(input:checked) { border-color: var(--bronze); box-shadow: inset 0 0 0 1px var(--bronze); background: #f7f1e1; }
.wahl:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }

.treffer { margin-block: var(--s-5); padding: var(--s-5); background: var(--paper-hi); border: 1px solid var(--ink); max-width: 60rem; }
.treffer h3 { margin-bottom: var(--s-2); display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.treffer__pruefung { margin-top: var(--s-5); font: 650 0.8125rem / 1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.ergebnis__fotos { margin-top: var(--s-6); margin-bottom: var(--s-3); }
.aufklapp { margin-block: var(--s-5); max-width: 60rem; }
.aufklapp summary { cursor: pointer; font: 600 1.0625rem var(--sans); padding-block: var(--s-2); }

/* ---- Randnotiz ------------------------------------------------------------------------------------------------------------- */
.abs { margin-bottom: var(--s-4); }
.randnotiz { margin-block: var(--s-4); padding: var(--s-3) var(--s-4); background: var(--paper-2); border-top: 1px solid var(--ink); font: var(--fs-small) / 1.5 var(--sans); color: var(--ink-2); max-width: 30rem; }
.randnotiz p { margin: 0; }
.randnotiz__titel { font-weight: 650; color: var(--ink); margin-bottom: var(--s-1) !important; }
@media (min-width: 64rem) {
  .abs { display: grid; grid-template-columns: minmax(0, 40rem) minmax(12rem, 16rem); column-gap: var(--s-8); align-items: start; }
  .randnotiz { margin: 0; padding: var(--s-2) 0 0; background: none; }
}

/* ---- Steckbrief, Quellen ------------------------------------------------------------------------------------------------------ */
.steckbrief { margin: 0 0 var(--s-5); max-width: 46rem; border-top: 2px solid var(--ink); }
.steckbrief > div { display: grid; gap: var(--s-1) var(--s-5); padding-block: var(--s-3); border-bottom: 1px solid var(--rule); }
.steckbrief dt { font: 650 0.8125rem / 1.5 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.steckbrief dd { margin: 0; }
@media (min-width: 40rem) { .steckbrief > div { grid-template-columns: minmax(10rem, 15rem) 1fr; } }
.quellen { list-style: none; margin: 0 0 var(--s-5); padding: 0; max-width: 52rem; }
.quellen li { padding-block: var(--s-3); border-bottom: 1px solid var(--rule); }
.quellen li:first-child { border-top: 2px solid var(--ink); }
.quellen__id { display: inline-block; min-width: 2.25rem; font: 650 0.9375rem var(--sans); color: var(--bronze-dark); }

/* ---- Formular ------------------------------------------------------------------------------------------------------------------ */
.anfrage { max-width: 44rem; }
.feld { margin-block: var(--s-6); }
.feld label { display: block; font: 650 1.125rem / 1.3 var(--sans); margin-bottom: var(--s-1); }
.feld__art { font-weight: 400; font-size: var(--fs-small); color: var(--ink-2); margin-left: var(--s-2); }
.feld__art--pflicht { font-weight: 650; color: var(--bronze-dark); }
.feld .hint { margin-bottom: var(--s-2); }
.feld input[type="text"],
.feld input[type="email"],
.feld input[type="tel"],
.feld textarea {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: var(--s-3) var(--s-4);
  background: var(--paper-hi);
  border: 1.5px solid var(--rule-strong);
  border-radius: 2px;
  color: var(--ink);
  font: 1.125rem / 1.4 var(--sans);
  hyphens: none;
}
.feld textarea { resize: vertical; min-height: 9rem; }
.feld input:hover, .feld textarea:hover { border-color: var(--ink); }
.feld input:focus-visible, .feld textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.feld input[type="file"] {
  display: block;
  width: 100%;
  padding: var(--s-4);
  background: var(--paper-hi);
  border: 1.5px dashed var(--rule-strong);
  border-radius: 2px;
  font: 1rem var(--sans);
}
.feld input[type="file"]::file-selector-button {
  margin-right: var(--s-4);
  min-height: 2.75rem;
  padding: 0 var(--s-4);
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  font: 600 1rem var(--sans);
  cursor: pointer;
}
.feld input[type="file"]::file-selector-button:hover { background: var(--ink); color: var(--paper); }
.feld--fehler input, .feld--fehler textarea { border: 2px solid var(--error); }
.feld__fehler { display: flex; gap: var(--s-2); align-items: flex-start; margin: 0 0 var(--s-2); font: 650 var(--fs-small) / 1.45 var(--sans); color: var(--error); }
.feld__fehler .icon { margin-top: 0.1rem; }
.feld__fehler--liste { list-style: none; padding: 0; flex-direction: column; }
.feld__fehler--liste li { display: flex; gap: var(--s-2); }

.vorschauliste { margin-top: var(--s-3); }
.vorschauliste__summe { font: 650 var(--fs-small) var(--sans); margin-bottom: var(--s-2); }
.vorschauliste__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.fotoitem { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-2) var(--s-3); background: var(--paper-hi); border: 1px solid var(--rule-strong); }
.fotoitem img { flex: none; width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--rule); }
.fotoitem__info { flex: 1; min-width: 0; display: flex; flex-direction: column; font: var(--fs-small) / 1.4 var(--sans); }
.fotoitem__name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fotoitem__groesse { color: var(--ink-2); }

/* ---- Fuß -------------------------------------------------------------------------------------------------------------------------- */
.fuss { background: var(--ink); color: var(--paper); margin-top: 0; }
.fuss a { color: var(--paper); text-decoration-color: var(--bronze-light); }
.fuss a:hover { color: var(--bronze-light); }
.fuss :focus-visible { outline-color: var(--paper); }
.fuss .wordmark { color: var(--paper); width: 11rem; }
.fuss .wordmark__blade { fill: var(--bronze-light); }
.fuss__raster { display: grid; gap: var(--s-6); padding-block: var(--s-8) var(--s-6); }
.fuss__marke p { font: var(--fs-small) / 1.55 var(--sans); max-width: 34ch; margin-top: var(--s-3); color: #d9d4c8; }
.fuss__betreiber { color: var(--paper) !important; font-weight: 600 !important; }
.fuss__titel { font: 650 0.8125rem / 1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze-light); margin-bottom: var(--s-3); }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: var(--s-2); font: 1.0625rem / 1.4 var(--sans); }
.fuss__ende { padding-block: var(--s-5) var(--s-6); border-top: 1px solid var(--ink-soft); }
.fuss__ende p { font: var(--fs-small) / 1.55 var(--sans); color: #d9d4c8; max-width: 60ch; margin: 0; }
@media (min-width: 48rem) { .fuss__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .fuss__raster { grid-template-columns: 1.5fr 1fr 1fr 1fr 0.8fr; gap: var(--s-6); } }

/* ---- Mobile Leiste -------------------------------------------------------------------------------------------------------------------- */
.ctabar { display: none; }
@media (max-width: 47.99rem) {
  .ctabar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
    background: var(--paper);
    border-top: 1px solid var(--ink);
    box-shadow: 0 -6px 18px rgba(34, 37, 42, 0.12);
  }
  body:has(.ctabar) { padding-bottom: 5.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .vorschau, .entwurfhinweis, .kopf__cta, .menuebtn, .hauptnav, .ctabar, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .abschnitt--dunkel, .fuss { background: #fff; color: #000; }
  a { color: #000; }
}

/* Aufbau-Tafel auf der Bestimmungsseite: Zeichnung links, Legende rechts */
@media (min-width: 56rem) {
  .tafel--schema:not(.tafel--kurz) {
    display: grid;
    grid-template-columns: minmax(0, 27rem) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas: "plate legend" "cap legend" "rest legend" "rest note";
    column-gap: var(--s-8);
    align-items: start;
  }
  .tafel--schema:not(.tafel--kurz) .tafel__rahmen { grid-area: plate; }
  .tafel--schema:not(.tafel--kurz) figcaption { grid-area: cap; }
  .tafel--schema:not(.tafel--kurz) .legende { grid-area: legend; margin-top: 0; grid-template-columns: 1fr; }
  .tafel--schema:not(.tafel--kurz) .legende__hinweis { grid-area: note; margin-top: 0; }
}
.tafelreihe--zwei { max-width: 56rem; }
.tafelreihe--nach-text { margin-top: var(--s-6); }
.tabelle + .hint { margin-top: var(--s-3); }

/* ---- Schritt 3: Kurzantwort, Quellenmarken, Artikelseiten ------------------------------------------------------------------------------- */
.kurzantwort { margin: 0 0 var(--s-5); padding: var(--s-5); background: var(--paper-hi); border: 1px solid var(--rule); border-top: 3px solid var(--ink); max-width: 52rem; }
.kurzantwort h2 { font-size: var(--fs-h3); margin-bottom: var(--s-3); max-width: 34ch; }
.kurzantwort p { max-width: 62ch; }
.kurzantwort p:last-child { margin-bottom: 0; }
.belege { white-space: nowrap; margin-left: 0.15em; }
.beleg {
  display: inline-block;
  min-width: 1.5rem;
  min-height: 1.5rem;
  padding-inline: 0.25rem;
  text-align: center;
  font: 650 0.875rem / 1.5rem var(--sans);
  color: var(--bronze-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quellen__art { color: var(--ink-2); }
.hinweisbox--grenze { border: 2px solid var(--ink); }
.hinweisbox--grenze .hinweisbox__titel { align-items: center; }
.hinweisbox--grenze .icon { flex: none; }
.chip--moeglich { color: var(--ink); border-style: solid; text-transform: none; letter-spacing: 0.01em; font-size: 0.9375rem; font-weight: 600; }
.schema--streiflicht { max-height: 22rem; }
.sl__strahl { fill: none; stroke: var(--bronze); stroke-width: 1.25; stroke-dasharray: 2 0; }
.sl__texte text { font: 600 15px var(--sans); fill: var(--ink); }
.tafel__rahmen--schema:has(.schema--streiflicht) { padding-top: 14px; }

.seitenmenue { margin-block: 0 var(--s-6); max-width: 52rem; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); padding-block: var(--s-3); }
.seitenmenue__titel { font: 650 0.8125rem / 1.2 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 var(--s-2); }
.seitenmenue ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.seitenmenue li { margin: 0; }
.seitenmenue a { display: inline-block; padding-block: 0.3rem; font: 600 1rem / 1.4 var(--sans); }

.gegenueber { display: grid; gap: var(--s-6); }
@media (min-width: 48rem) { .gegenueber { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7); } }
.gegenueber__spalte { padding-top: var(--s-3); border-top: 3px solid var(--ink); }
.gegenueber__spalte h3 { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-h3); margin-bottom: var(--s-3); }
.gegenueber__icon { display: inline-flex; flex: none; }
.gegenueber__spalte--gut .gegenueber__icon { color: var(--ok); }
.gegenueber__spalte--schlecht .gegenueber__icon { color: var(--error); }
.gegenueber .icon { width: 1.5rem; height: 1.5rem; }
.abschnitt--hinweis { padding-block: var(--s-4); }
.tafelreihe--eins { max-width: 56rem; }
.fachbeitrag { max-width: 52rem; padding: var(--s-5); background: var(--paper-hi); border: 1px solid var(--rule); border-top: 3px solid var(--ink); }
.fachbeitrag h3 { font-size: var(--fs-h3); margin-bottom: var(--s-3); }
.fachbeitrag .liste { margin-bottom: var(--s-4); }
