@charset "utf-8";
/* ==========================================================================
   Scanready — „Der Befund, hell"
   Eine Schriftfamilie (Instrument Sans), Geist Mono nur als Auszeichnung.
   Drei Nichtfarben auf Weiss, zwei Signalfarben. Rhythmus ueber die
   Grundflaeche, nicht ueber Karten: keine Schatten, kein Radius ueber 4px.
   ========================================================================== */

/* --- Schriften, lokal ---------------------------------------------------- */
@font-face {
  font-family: "Instrument Sans";
  src: url(/assets/schriften/sans-latin.woff2) format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url(/assets/schriften/sans-latinext.woff2) format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  src: url(/assets/schriften/mono-latin.woff2) format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  src: url(/assets/schriften/mono-latinext.woff2) format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* --- Farbmarken ---------------------------------------------------------- */
:root {
  /* Bewusst nur hell: Compliance-Kontext, dunkle Fassung von Ingo abgelehnt.
     Ohne diese Zeile faerbt der Browser Formularfelder und Rollbalken dunkel. */
  color-scheme: light;
  --grund:   #FFFFFF;
  --flaeche: #F6F6F4;
  --text:    #111214;
  --sek:     #6B6F76;   /* 5,05:1 auf Weiss · 4,66:1 auf #F6F6F4 */
  --linie:   #D9DBDE;   /* nur Haarlinien, nie Text, nie Bedienrahmen */
  --kante:   #767B82;   /* Bedienrahmen, >= 3:1 */
  --rot:     #C2381C;   /* Fundstelle  5,42:1 */
  --gruen:   #0E6B4F;   /* behoben / CTA  6,49:1, Weiss darauf 6,49:1 */
  --auf-gruen: #FFFFFF;
  --auf-rot:   #FFFFFF;

  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system,
          "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas,
          monospace;

  --breit: 1200px;
  --weit:  1340px;
  --luft:  clamp(1.25rem, 4vw, 3rem);

  --gross: clamp(2.4rem, 5.2vw, 4.5rem);
  --h2:    clamp(1.85rem, 3.4vw, 3rem);
  --h3:    clamp(1.15rem, 1.5vw, 1.3125rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  /* clip statt hidden: hidden macht den Body zum Scrollcontainer und
     schaltet damit jedes position:sticky darin ab. */
  overflow-x: clip;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.05;
  text-wrap: balance;
}
h1 { font-size: var(--gross); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.25; letter-spacing: -0.012em; }
p  { margin: 0 0 1em; }
p, li, dd, td, th, h1, h2, h3, blockquote { overflow-wrap: break-word; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

strong, b { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--rot);
  outline-offset: 2px;
  border-radius: 1px;
}

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

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

.sprung {
  position: absolute; left: 0; top: -100%;
  z-index: 60; padding: 0.85rem 1.4rem;
  background: var(--text); color: var(--grund);
  font-size: 0.9375rem; text-decoration: none;
}
.sprung:focus { top: 0; }

/* --- Baender und Container ----------------------------------------------- */
.band { padding: clamp(3.5rem, 8vw, 7.5rem) 0; scroll-margin-top: 2rem; }
.band--grau { background: var(--flaeche); }
.band--eng  { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }

.mitte { width: 100%; max-width: var(--breit); margin: 0 auto; padding: 0 var(--luft); }
.mitte--weit { max-width: var(--weit); }

.satz  { max-width: 34em; }
.satz--kurz { max-width: 26em; }

.vorspann { font-size: clamp(1.125rem, 1.6vw, 1.375rem); color: var(--sek); }

.klein { font-size: 0.875rem; line-height: 1.55; color: var(--sek); }

.code {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

/* Abschnittskopf: Auszeichnung, Ueberschrift, Vorspann. */
.kopfzeile-abschnitt { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.kopfzeile-abschnitt .code { display: block; color: var(--sek); margin-bottom: 1.1rem; }
.kopfzeile-abschnitt h2 { max-width: 16em; }
.kopfzeile-abschnitt .vorspann { margin-top: 1.1rem; max-width: 34em; }

/* --- Knoepfe: immer dieselben zwei --------------------------------------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.6rem;
  border: 1px solid var(--gruen); border-radius: 3px;
  background: var(--gruen); color: var(--auf-gruen);
  font: inherit; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.knopf:hover { background: #0B573F; border-color: #0B573F; text-decoration: none; }

.knopf[disabled] { opacity: .55; cursor: default; }

.knopf--geist {
  background: transparent; color: var(--text); border-color: var(--kante);
}
.knopf--geist:hover { background: var(--text); color: var(--grund); border-color: var(--text); }

.knopfreihe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }

/* --- Kopfzeile ----------------------------------------------------------- */
.kopf {
  position: relative; z-index: 30;
  background: var(--grund);
  border-bottom: 1px solid var(--linie);
}
.kopf__zeile {
  max-width: var(--weit); margin: 0 auto; padding: 0.9rem var(--luft);
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
}
.wortmarke {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.03em;
  text-decoration: none; margin-right: auto;
}
.wortmarke svg { display: block; width: 22px; height: 22px; }
.hauptnav ul {
  list-style: none; display: flex; gap: clamp(1rem, 2.2vw, 1.9rem);
  margin: 0; padding: 0;
}
.hauptnav a {
  font-size: 0.9375rem; text-decoration: none; color: var(--sek);
  padding: 0.3rem 0; display: inline-block;
}
.hauptnav a:hover { color: var(--text); }
.hauptnav a[aria-current="page"] {
  color: var(--text); font-weight: 600;
  box-shadow: inset 0 -2px 0 0 var(--text);
}
.kopf .knopf { min-height: 2.6rem; font-size: 0.9375rem; padding: 0 1.1rem; }

@media (max-width: 780px) {
  .kopf__zeile { flex-wrap: wrap; row-gap: 0.6rem; }
  .wortmarke { margin-right: auto; }
  .hauptnav { order: 3; width: 100%; }
  .hauptnav ul { gap: 1.15rem; }
  .hauptnav a { font-size: 0.875rem; }
}

/* --- Brotkrumen ---------------------------------------------------------- */
.krumen { max-width: var(--breit); margin: 0 auto; padding: 1.4rem var(--luft) 0; }
.krumen ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem;
             margin: 0; padding: 0; font-size: 0.875rem; color: var(--sek); }
.krumen li + li::before { content: "/"; margin-right: 0.5rem; color: var(--linie); }
.krumen a { color: var(--sek); }

/* ==========================================================================
   Der Held — Prueffenster
   ========================================================================== */
.held {
  /* Vertikal mittig statt oben klebend. min-height statt height, damit ein
     langer Vorspann die Flaeche waechst statt abgeschnitten zu werden.
     4.5rem = Hoehe der Kopfleiste. */
  padding: clamp(1.75rem, 4vw, 3rem) 0;
  min-height: calc(100vh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 900px) {
  /* Auf kleinen Schirmen wuerde die Zentrierung nur Leerraum erzeugen,
     weil der Inhalt ohnehin hoeher ist als das Sichtfeld. */
  .held { min-height: 0; display: block; }
}
.held h1 { max-width: 19ch; }
.held .vorspann { margin: clamp(1rem, 2vw, 1.5rem) 0 0; max-width: 40em;
                  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem); }
.held .knopfreihe { margin-top: clamp(1.4rem, 2.4vw, 1.9rem); }
.held__norm { margin-top: 1rem; color: var(--sek); }

.held__raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 23rem);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

/* --- Die Lage: was gerade passiert, was es kostet, wer ausgenommen ist ---- */
/* Keine Karte, kein Schatten, keine Alarmflaeche — eine Liste an einer
   kraeftigen Oberkante. Die Farbe steckt nur in der Auszeichnung: schwarz
   fuer die Tatsache, rot fuer den Betrag, gruen fuer die Ausnahme. */
.lage { border-top: 2px solid var(--text); padding-top: 1rem; }
.lage__h { font-size: 1.0625rem; line-height: 1.3; margin-bottom: 1rem; }
.lage__liste { margin: 0; }
.lage__zeile { padding: 0.85rem 0; border-top: 1px solid var(--linie); }
.lage__zeile:first-of-type { border-top: 0; padding-top: 0; }
.lage__zeile:last-of-type { padding-bottom: 0; }
.lage dt {
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
  margin-bottom: 0.35rem; color: var(--text);
}
.lage__zeile--geld dt { color: var(--rot); }
.lage__zeile--frei dt { color: var(--gruen); }
.lage dd { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--sek); }
.lage dd b { color: var(--text); font-weight: 600; }
.lage__link {
  display: inline-block; margin-top: 0.45rem;
  color: var(--text); font-weight: 600;
}

@media (max-width: 900px) {
  .held__raster { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .lage { max-width: 34em; }
}

/* --- Der Lauf: Buehne klebt, Fundstellen ziehen vorbei -------------------- */
.lauf { padding-top: clamp(1.75rem, 3vw, 2.5rem); }
.lauf__raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}
.lauf__buehne {
  /* Mittig statt am oberen Rand: Der klebende Kasten ist so hoch wie das
     Sichtfeld und zentriert den Rahmen darin. Ein blosses top:50% wuerde
     nicht zentrieren, sondern die Oberkante auf die Mitte setzen. */
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lauf__buehne > * {
  /* Damit ein hoher Rahmen im Sichtfeld bleibt statt oben und unten
     abgeschnitten zu werden. */
  max-height: 88vh;
}

/* --- Der Browserrahmen --------------------------------------------------- */
.rahmen {
  border: 1px solid var(--kante);
  border-radius: 4px;
  background: #FFFFFF;
  overflow: hidden;
}
.rahmen__leiste {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: #F1F1EF;
  border-bottom: 1px solid #D9DBDE;
}
.rahmen__punkte { display: flex; gap: 0.35rem; flex: none; }
.rahmen__punkte i { width: 9px; height: 9px; border-radius: 50%; background: #C7C9CC; }
.rahmen__adresse {
  flex: 1 1 auto; min-width: 0;
  padding: 0.28rem 0.7rem;
  background: #FFFFFF; border: 1px solid #D9DBDE; border-radius: 3px;
  font-family: var(--mono); font-size: 0.8125rem; color: #3A3D42;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rahmen__stand {
  flex: none; font-family: var(--mono); font-size: 0.75rem;
  color: #B4351A; letter-spacing: 0.02em; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.rahmen__stand--gut { color: #0C5E45; }

.buehne {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
}
.buehne__bild {
  display: block; width: 100%; height: auto;
  transform: scale(var(--zoom, 1));
  transform-origin: var(--fx, 50%) var(--fy, 50%);
  transition: transform .85s cubic-bezier(.22,.61,.36,1);
}
.buehne__feld {
  position: absolute; inset: 0;
  transform: scale(var(--zoom, 1));
  transform-origin: var(--fx, 50%) var(--fy, 50%);
  transition: transform .85s cubic-bezier(.22,.61,.36,1);
}

/* Scanlinie */
.scanlinie {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--rot);
  box-shadow: none;
  opacity: 0;
}
.buehne--laeuft .scanlinie { animation: scanfahrt 2.6s cubic-bezier(.5,0,.5,1) forwards; }
@keyframes scanfahrt {
  0%   { top: 0;    opacity: 1; }
  92%  { top: 100%; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Marker */
.marke {
  position: absolute;
  left: var(--x); top: var(--y);
  /* Der Anker ist die Mitte der Nummernflaeche (0.775rem = halbe Kantenlaenge),
     nicht die Mitte aus Nummer + Chip - sonst rutscht der Marker neben die
     Stelle, auf die er zeigt. */
  transform-origin: 0.775rem center;
  transform: translate(-0.775rem, -50%) scale(var(--gegen, 1));
  display: flex; align-items: center; gap: 0;
  opacity: 0;
  transition: transform .85s cubic-bezier(.22,.61,.36,1), opacity .3s linear;
}
.marke--links {
  flex-direction: row-reverse;
  transform-origin: calc(100% - 0.775rem) center;
  transform: translate(calc(-100% + 0.775rem), -50%) scale(var(--gegen, 1));
}
.buehne--fertig .marke { opacity: 1; }
.buehne--laeuft .marke { animation: markeauf .45s ease-out both; animation-delay: var(--verzug); }
@keyframes markeauf {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.marke__nr {
  flex: none;
  width: 1.55rem; height: 1.55rem;
  display: grid; place-items: center;
  background: var(--rot); color: var(--auf-rot);
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  transition: background-color .5s ease;
  transition-delay: var(--kippverzug, 0s);
}
.marke__code {
  flex: none;
  background: #FFFFFF; color: #111214;
  border: 1px solid #111214; border-left-width: 0;
  padding: 0.2rem 0.5rem;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  white-space: nowrap;
}
.marke--links .marke__code { border-left-width: 1px; border-right-width: 0; }
.buehne--behoben .marke__nr { background: var(--gruen); color: var(--auf-gruen); }
.marke.ist-aktiv .marke__code { background: #111214; color: #FFFFFF; }

/* Zaehler unter dem Rahmen */
.zaehler {
  display: flex; align-items: baseline; gap: 0.75rem;
  margin-top: 1.1rem; flex-wrap: wrap;
}
.zaehler__wert {
  font-family: var(--mono); font-weight: 600;
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--rot);
  transition: color .5s ease;
}
.zaehler--behoben .zaehler__wert { color: var(--gruen); }
.zaehler__text { font-size: 1rem; color: var(--sek); }
.zaehler__text b { color: var(--text); font-weight: 600; }

/* --- Die Spur: Fundstellen ----------------------------------------------- */
/* Anlauf: solange der Held steht, ist keine Fundstelle aktiv - das Fenster
   bleibt unbeschnitten und zeigt den ganzen Shop. */
.lauf__spur { padding-top: 26vh; padding-bottom: 6vh; }
.fundliste { list-style: none; margin: 0; padding: 0; }
.fund {
  min-height: 58vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--linie);
}
.fund:first-child { border-top: 0; }
.fund__kopf { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.8rem; }
.fund__nr {
  flex: none; width: 1.55rem; height: 1.55rem;
  display: grid; place-items: center;
  background: var(--rot); color: var(--auf-rot);
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
}
.fund__code { font-family: var(--mono); font-size: 0.8125rem; font-weight: 500;
              color: var(--sek); letter-spacing: 0.02em;
              transition: color .35s ease; }
.fund.ist-aktiv .fund__code { color: var(--rot); }
.fund h3 { margin-bottom: 0.7rem; color: var(--sek); transition: color .35s ease; }
.fund.ist-aktiv h3 { color: var(--text); }
.fund p { font-size: 1rem; color: var(--sek); }
/* Der Beleg aus dem Code. Kein Rollbereich, sondern Umbruch: ein scrollender
   Kasten muesste tastaturbedienbar sein (WCAG 2.1.1). */
.fund__beleg {
  margin-top: 0.85rem; padding: 0.5rem 0.7rem;
  background: var(--flaeche); border-left: 2px solid var(--kante);
  font-family: var(--mono); font-size: 0.8125rem; line-height: 1.5;
  color: var(--text) !important;
  overflow-wrap: anywhere;
}
.fund__beleg code { font: inherit; }
.fund__wirkung {
  margin-top: 0.9rem; padding-left: 0.9rem;
  border-left: 2px solid var(--rot);
  color: var(--text) !important;
}

/* Ueberschrift der Fundstellenliste: am Schreibtisch traegt die Zeichnung den
   Zusammenhang, dort ist sie nur fuer Vorlesesoftware da. Mobil faellt die
   Zeichnung weg — dann muss sie sichtbar sein. */
.lauf__h {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wende {
  min-height: 78vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--linie);
}
.wende__code { font-family: var(--mono); font-size: 0.8125rem; font-weight: 500;
               color: var(--gruen); margin: 0 0 0.9rem; letter-spacing: 0.02em; }
.wende h2 { font-size: clamp(1.6rem, 2.4vw, 2.25rem); margin-bottom: 0.9rem; }
.wende p { font-size: 1rem; color: var(--sek); }
.wende .knopfreihe { margin-top: 1.5rem; }

/* Mobil: eigene Fassung, keine geschrumpfte Choreografie.
   Unter 900 px waere die Ladenzeichnung rund 320 px breit — ihre 14-px-Texte
   landen bei knapp 4 px, die Marker zeigen dann auf nichts Erkennbares und
   sind Deko statt Beleg. Die Zeichnung entfaellt deshalb ganz; den Beweis
   tragen der Zaehler, die Nummern und der Codeausschnitt je Fundstelle.
   Fuer Vorlesesoftware geht nichts verloren: die Zeichnung ist ein role="img"
   mit einer Textalternative, die Fundstellen stehen ohnehin als Liste. */
@media (max-width: 900px) {
  .lauf { padding-top: 0; }
  .lauf__raster { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .lauf__buehne { position: static; }
  .rahmen { display: none; }
  .lauf__h { position: static; width: auto; height: auto; margin: 0 0 1.25rem;
             overflow: visible; clip: auto; clip-path: none; white-space: normal;
             font-size: clamp(1.5rem, 6vw, 2rem); max-width: 18ch; }
  .zaehler { margin-top: 0; align-items: center; }
  .zaehler__wert { font-size: 3.25rem; }
  .zaehler__text { font-size: 0.9375rem; max-width: 12em; line-height: 1.35; }
  .lauf__spur { padding-top: 0; padding-bottom: 0; }
  .fund { min-height: 0; padding: 1.6rem 0; }
  .fund h3 { color: var(--text); font-size: 1.1875rem; }
  .fund__code { color: var(--rot); }
  .fund p { font-size: 0.9375rem; }
  .wende { min-height: 0; padding: 2rem 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .buehne__bild, .buehne__feld { transform: none !important; transition: none; }
  .buehne--laeuft .scanlinie { animation: none; opacity: 0; }
  .buehne--laeuft .marke { animation: none; opacity: 1; }
  .marke, .marke__nr, .zaehler__wert, .fund,
  .fund h3, .fund__code { transition: none; }
}

/* ==========================================================================
   Pruefauftrag — das Formular
   ========================================================================== */
.auftrag__raster {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
@media (max-width: 860px) { .auftrag__raster { grid-template-columns: 1fr; } }

.feldname {
  display: block; font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.01em; margin-bottom: 0.55rem;
}
.eingabe { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.eingabe input {
  flex: 1 1 14rem; min-width: 0;
  min-height: 3.25rem; padding: 0 0.95rem;
  border: 1px solid var(--kante); border-radius: 3px;
  background: var(--grund); color: var(--text);
  font: inherit; font-size: 1.0625rem;
}
.eingabe input::placeholder { color: var(--sek); opacity: 1; }
.eingabe input:focus-visible { outline-offset: 1px; }
.fussnote { margin-top: 0.8rem; font-size: 0.875rem; color: var(--sek); max-width: 40em; }
.stoerung {
  margin-top: 1rem; padding: 0.85rem 1rem;
  border-left: 3px solid var(--rot); background: var(--flaeche);
  font-size: 0.9375rem;
}
.band--grau .stoerung { background: var(--grund); }
.lauftext { margin-top: 1rem; font-size: 0.9375rem; color: var(--sek); }
.erledigt {
  padding: 1.1rem 1.25rem; border-left: 3px solid var(--gruen);
  background: var(--grund); font-size: 1rem;
}

.ankreuz { display: flex; gap: 0.65rem; margin-top: 1.1rem; align-items: flex-start; }
.ankreuz input { margin: 0.28rem 0 0; width: 1.05rem; height: 1.05rem; flex: none;
                 accent-color: var(--gruen); }
.ankreuz label { font-size: 0.875rem; color: var(--sek); }
.ankreuz label strong { color: var(--text); }

/* Der Beleg — Ergebnis des echten Scans */
.beleg__kopf { display: flex; flex-wrap: wrap; align-items: baseline;
               gap: 0.5rem 1.2rem; margin-bottom: 1.5rem; }
.beleg__objekt { font-family: var(--mono); font-size: 0.875rem; color: var(--sek);
                 overflow-wrap: anywhere; }
.beleg h3 { margin-bottom: 1.25rem; }

/* --- Tabellen ------------------------------------------------------------ */
.tabellenfeld { overflow-x: auto; }
.tabellenfeld:focus-visible { outline-offset: 0; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
caption { text-align: left; font-size: 0.875rem; color: var(--sek);
          padding-bottom: 0.8rem; }
th, td { text-align: left; padding: 0.95rem 1rem 0.95rem 0;
         border-bottom: 1px solid var(--linie); vertical-align: baseline; }
thead th { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em;
           text-transform: uppercase; color: var(--sek); padding-bottom: 0.6rem; }
tbody th { font-weight: 600; }
.zahlfeld { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
.zahl {
  font-family: var(--mono); font-weight: 600; font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}
.zahl--rot { color: var(--rot); }
.zusatz { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--sek); }

/* --- Gegenueberstellung, Schritte, Listen -------------------------------- */
.gegenueber {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
}
.gegenueber > div { padding-top: 1.4rem; border-top: 2px solid var(--linie); }
.gegenueber .wir { border-top-color: var(--gruen); }
.gegenueber h3 { margin-bottom: 0.7rem; }
.gegenueber p { color: var(--sek); font-size: 1rem; }

.schritte { list-style: none; margin: 0; padding: 0;
            display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
            gap: clamp(1.5rem, 3vw, 2.75rem); }
.schritte li { padding-top: 1.2rem; border-top: 1px solid var(--linie); }
.schritte .pos { display: block; font-family: var(--mono); font-size: 0.8125rem;
                 color: var(--sek); margin-bottom: 0.8rem; }
.schritte h3 { margin-bottom: 0.55rem; }
.schritte p { font-size: 0.9375rem; color: var(--sek); }

.punkte { list-style: none; margin: 0; padding: 0; }
.punkte li { padding: 1rem 0 1rem 1.6rem; border-bottom: 1px solid var(--linie);
             position: relative; font-size: 1rem; }
.punkte li::before {
  content: ""; position: absolute; left: 0; top: 1.55rem;
  width: 0.6rem; height: 1px; background: var(--text);
}
.punkte li:first-child { padding-top: 0; }
.punkte li:first-child::before { top: 0.55rem; }
.punkte--haken li::before { background: var(--gruen); height: 2px; }

.rechtstext h3 { margin: 2.4rem 0 0.7rem; }
.rechtstext h3:first-child { margin-top: 0; }
.rechtstext p, .rechtstext li { font-size: 1rem; }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext { max-width: 40em; overflow-wrap: anywhere; }

/* Platzhalter in den Rechtstexten: was noch fehlt, muss man SEHEN.
   Rot auf hellrotem Grund — #C2381C auf #FBEDEA sind 4,75:1, also ueber
   der Schwelle fuer normalen Text. Kein Radius ueber 4px, keine Flaeche
   ohne Kante. */
.platzhalter {
  background: #FBEDEA;
  color: var(--rot);
  border: 1px solid #E7C4BB;
  border-radius: 2px;
  padding: 0.05em 0.35em;
  font-family: var(--mono);
  font-size: 0.88em;
}

/* --- Preise -------------------------------------------------------------- */
.gebuehren {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
}
.gebuehren > div { padding-top: 1.5rem; border-top: 2px solid var(--linie); }
.gebuehren .haupt { border-top-color: var(--gruen); }
.posnr { display: block; font-family: var(--mono); font-size: 0.8125rem;
         color: var(--sek); margin-bottom: 0.9rem; }
.gebuehren h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: 0.5rem; }
.claim { color: var(--sek); font-size: 1rem; }
.satzzahl { font-family: var(--mono); font-weight: 600;
            font-size: clamp(2rem, 3.4vw, 2.75rem); letter-spacing: -0.03em;
            margin: 1.2rem 0 0.25rem; font-variant-numeric: tabular-nums; }
.satzzahl small { font-family: var(--sans); font-size: 0.9375rem; font-weight: 400;
                  letter-spacing: 0; color: var(--sek); }
.anmerkung { font-size: 0.8125rem; color: var(--sek); }
.gebuehren .punkte { margin-top: 1.4rem; }

/* --- Fragen (Register) --------------------------------------------------- */
.register { border-top: 1px solid var(--linie); }
.register details { border-bottom: 1px solid var(--linie); }
.register summary {
  display: flex; gap: 1rem; align-items: baseline;
  padding: 1.35rem 0; cursor: pointer;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem); font-weight: 600;
  letter-spacing: -0.012em;
  list-style: none;
}
.register summary::-webkit-details-marker { display: none; }
.register summary .lfd { font-family: var(--mono); font-size: 0.8125rem;
                         font-weight: 500; color: var(--sek); flex: none; }
.register summary .zeichen { margin-left: auto; flex: none; color: var(--sek);
                             font-family: var(--mono); font-weight: 400; }
.register details[open] summary .zeichen::before { content: "\2013"; }
.register details:not([open]) summary .zeichen::before { content: "+"; }
.register .antwort { padding: 0 0 1.6rem 2.6rem; max-width: 44em; }
.register .antwort p { font-size: 1rem; color: var(--sek); }
@media (max-width: 600px) { .register .antwort { padding-left: 0; } }

/* --- Formblatt (bin ich betroffen) --------------------------------------- */
.formblatt { max-width: 44em; }
.frage { padding: 1.75rem 0; border-bottom: 1px solid var(--linie); }
.frage:first-child { padding-top: 0; }
.frage fieldset { border: 0; margin: 0; padding: 0; }
.frage legend { font-size: var(--h3); font-weight: 600; letter-spacing: -0.012em;
                padding: 0; margin-bottom: 0.5rem; }
.fragehilfe { font-size: 0.9375rem; color: var(--sek); margin-bottom: 1rem; }
.wahl { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.wahl label {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.65rem 1rem; border: 1px solid var(--kante); border-radius: 3px;
  font-size: 0.9375rem; cursor: pointer;
}
.wahl input { accent-color: var(--gruen); width: 1rem; height: 1rem; margin: 0; }
.wahl label:has(input:checked) { border-color: var(--gruen); border-width: 2px;
                                 padding: calc(0.65rem - 1px) calc(1rem - 1px); }
.befund { margin-top: 2rem; padding: 1.5rem 0 0; border-top: 2px solid var(--linie); }
.befund.pflicht { border-top-color: var(--rot); }
.befund.frei { border-top-color: var(--gruen); }
.befund h3 { margin-bottom: 0.7rem; }
.befund p { font-size: 1rem; color: var(--sek); }

/* --- Siegel im gemockten Shopfuss ---------------------------------------- */
.shopfuss {
  border: 1px solid var(--kante); border-radius: 4px;
  background: #FFFFFF; color: #111214; overflow: hidden;
}
.shopfuss__inhalt {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem;
  padding: 1.5rem 1.6rem;
}
.shopfuss__spalten {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem;
  font-size: 0.8125rem; color: #4A4E55; margin-right: auto;
}
.shopfuss__marke { font-weight: 600; font-size: 0.9375rem; color: #111214;
                   width: 100%; letter-spacing: -0.02em; }
.shopfuss__siegel { flex: none; }
.shopfuss__siegel img { display: block; width: 132px; height: auto; }
.shopfuss__linie { height: 1px; background: #D9DBDE; }
.shopfuss__unten { padding: 0.75rem 1.6rem; font-size: 0.75rem; color: #6B6F76;
                   font-family: var(--mono); }

/* --- Schlussbild --------------------------------------------------------- */
.schluss { text-align: left; }
.schluss h2 { max-width: 14ch; }
.schluss .vorspann { margin-top: 1.1rem; max-width: 32em; }
.schluss .knopfreihe { margin-top: 2rem; }

.weiter {
  margin-top: 2rem; display: grid; gap: 1.75rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.weiter__punkt { border-top: 1px solid var(--linie); padding-top: 1rem; }
.weiter__punkt h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.weiter__punkt h3 a { text-decoration: none; }
.weiter__punkt h3 a:hover { text-decoration: underline; }
.weiter__punkt p { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--sek); }

/* --- Fuss ---------------------------------------------------------------- */
.fuss { border-top: 1px solid var(--linie); padding: clamp(2.5rem, 5vw, 4rem) 0 3rem; }
.fuss__raster { display: grid; gap: 2rem;
                grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .fuss__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fuss__raster { grid-template-columns: 1fr; } }
.fuss h2 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em;
           text-transform: uppercase; color: var(--sek); margin-bottom: 1rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 0.5rem; }
.fuss a { font-size: 0.9375rem; text-decoration: none; color: var(--sek); }
.fuss a:hover { color: var(--text); text-decoration: underline; }
.fuss__tag { font-size: 0.9375rem; color: var(--sek); max-width: 26em; }
.fuss__hinweis { margin-top: 2.5rem; padding-top: 1.5rem;
                 border-top: 1px solid var(--linie);
                 font-size: 0.8125rem; color: var(--sek); max-width: 46em; }
.sprachen ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.sprachen li { margin: 0; }
.sprachen a { font-family: var(--mono); font-size: 0.8125rem; }
.sprachen a[aria-current="true"] { color: var(--text); font-weight: 600;
                                   text-decoration: underline; }

/* --- Klebender Handlungsaufruf ------------------------------------------- */
/* Unten, nicht im Kopf — die Kopfzeile bleibt ruhig und nichts klebt doppelt.
   Im Ruhezustand `visibility: hidden`: so ist der Knopf nicht im
   Tabulator-Lauf, solange die Leiste nicht zu sehen ist. app.js schaltet
   `ist-da` um. Der Platz im Fuss ist fest reserviert, damit das Ein- und
   Ausblenden die Seitenhoehe nicht veraendert. */
.sprungleiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--flaeche);
  border-top: 1px solid var(--kante);
  transform: translateY(101%);
  visibility: hidden;
  transition: transform .22s ease-out, visibility 0s linear .22s;
}
.sprungleiste.ist-da {
  transform: translateY(0);
  visibility: visible;
  transition: transform .22s ease-out, visibility 0s linear 0s;
}
.sprungleiste__zeile {
  max-width: var(--weit); margin: 0 auto;
  padding: 0.65rem var(--luft);
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
}
.sprungleiste__text { margin: 0; min-width: 0; font-size: 0.9375rem; color: var(--sek); }
.sprungleiste .knopf { flex: none; min-height: 2.875rem; padding: 0 1.25rem;
                       font-size: 1rem; }
body.mit-leiste .fuss { padding-bottom: calc(3rem + 4.25rem); }

@media (max-width: 640px) {
  .sprungleiste__text { display: none; }
  .sprungleiste .knopf { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .sprungleiste, .sprungleiste.ist-da { transition: none; }
}

/* --- Sprachweiche (Deckblatt) -------------------------------------------- */
.deckblatt { max-width: var(--breit); margin: 0 auto;
             padding: clamp(3rem, 10vw, 8rem) var(--luft); }
.deckblatt .wortmarke { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.deckblatt h1 { max-width: 12ch; }
.deckblatt .vorspann { margin-top: 1.4rem; max-width: 34em; }
.deckblatt nav { margin-top: clamp(2.5rem, 5vw, 4rem); }
.deckblatt ul { list-style: none; margin: 0; padding: 0;
                display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
                gap: 0; }
.deckblatt li a {
  display: flex; align-items: baseline; gap: 0.85rem;
  padding: 1.15rem 0; border-top: 1px solid var(--linie);
  text-decoration: none;
}
.deckblatt li a:hover { color: var(--gruen); }
.deckblatt .kuerzel { font-family: var(--mono); font-size: 0.8125rem;
                      color: var(--sek); flex: none; }
.deckblatt .eigen { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; }
.deckblatt .fremd { display: block; font-size: 0.8125rem; font-weight: 400;
                    color: var(--sek); letter-spacing: 0; }

/* --- Druck --------------------------------------------------------------- */
@media print {
  .kopf, .fuss, .knopfreihe, .scanlinie, .sprungleiste { display: none; }
  body { font-size: 11pt; }
  .band { padding: 1.5rem 0; }
}

/* --- Nachtrag: vierter Navigationseintrag (Erklaerungs-Generator) --------- */
/* Bei 360 px passen vier Eintraege nicht mehr in eine Zeile. Ohne diese
   Umbrucherlaubnis laeuft die Kopfzeile waagerecht ueber. */
.hauptnav ul { flex-wrap: wrap; }
