/* Marke: eine Quelle für Farben, Schrift und Gestaltung der Website (Auszug aus dem freigegebenen Prototyp v3 vom 15.11.2026).
   Werte und Regeln stammen wörtlich aus .leitstelle/quellen/prototyp-w1.css. Geändert wurde nur:
   1. Die Variablen stehen auf :root statt auf .seite, damit auch die Verwaltung (/admin) dieselben Werte lesen kann.
   2. Die Schriftdateien liegen lokal in public/schriften/.
   3. Im Blatt „Neueste Akte“ und in der Registerzeile Diesel steht der echte Stempel (SVG der Marke) statt des CSS-Nachbaus
      (Korrektur 1). Die CSS-Regeln „.blatt .stempel“ entfallen damit. Vorher hatte der Stempel im Blatt Papier mit 90 % Deckkraft;
      dort mischte sich der Hintergrund zu #ddd8d1, und Rot darauf hatte nur 2,74:1 (axe, 390 px, M4).
   4. Am Ende steht der Block „Zusatz W1“ für den Stempel als Bild, das Bildfeld im Blatt und die Seite „Noch nicht angelegt“. */

@font-face { font-family: "IBM Plex Sans Condensed"; font-weight: 400; font-style: normal; font-display: swap; src: url(/schriften/ibm-plex-sans-condensed-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url(/schriften/ibm-plex-sans-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(/schriften/ibm-plex-sans-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Courier Prime"; font-weight: 400; font-style: normal; font-display: swap; src: url(/schriften/courier-prime-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Courier Prime"; font-weight: 700; font-style: normal; font-display: swap; src: url(/schriften/courier-prime-latin-700-normal.woff2) format("woff2"); }

:root {
  --grund: #121212;
  --flaeche: #1b1a19;
  --linie: #3a3633;
  --text: #ECE7E1;
  --leise: #a8a098;
  --rot: #E0503F;
  --papier: #F3EEE6;
  --tinte: #1b1917;
  --tinte-leise: #5a534c;
  --display: "IBM Plex Sans Condensed", "Arial Narrow", Arial, sans-serif;
  --mono: "Courier Prime", "Courier New", monospace;
}

body { margin: 0; background: #121212; }
.seite { background: var(--grund); color: var(--text); font-family: var(--display); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.seite *, .seite *::before, .seite *::after { box-sizing: border-box; }
.seite a { color: var(--text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.seite a:hover { color: #ffffff; }
.seite a:focus-visible, .seite button:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; }
.seite p { margin: 0 0 14px; }
.seite h1, .seite h2, .seite h3 { margin: 0; font-weight: 700; text-wrap: balance; }
.seite img { display: block; max-width: 100%; height: auto; }
.rand { max-width: 1240px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.mono { font-family: var(--mono); }
.kenner { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--leise); margin: 0; }
.leise { color: var(--leise); }

/* Kopf */
.kopf { border-bottom: 1px solid var(--linie); }
.kopf-in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px; padding-top: 18px; padding-bottom: 16px; }
.marke { font-weight: 700; font-size: 22px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 17px; }
.nav a, .nav span { text-decoration: none; padding: 10px 0; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--rot); }
.nav span { color: #8d857d; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border-radius: 3px; border: 1px solid var(--papier); background: var(--papier); color: var(--tinte); font: 600 17px var(--display); text-decoration: none; cursor: pointer; }
.seite a.knopf { color: var(--tinte); }
.seite a.knopf:hover, .knopf:hover { background: #ffffff; color: var(--tinte); }
.knopf.zweit { background: transparent; color: var(--text); border-color: #6b645d; }
.seite a.knopf.zweit { color: var(--text); }
.seite a.knopf.zweit:hover, .knopf.zweit:hover { background: #24221f; color: #ffffff; }
.knopf.tinte { background: var(--tinte); color: var(--papier); border-color: var(--tinte); }
.seite a.knopf.tinte { color: var(--papier); }
.seite a.knopf.tinte:hover { background: #000000; color: #ffffff; }

/* Stempel (CSS-Nachbau des Prototyps; die SVG der Marke tragen den Stand fest, siehe Meldung) */
.stempel { display: inline-block; font-family: var(--mono); font-weight: 700; color: var(--rot); border: 3px solid var(--rot); outline: 1.5px solid var(--rot); outline-offset: 3px; padding: 11px 16px 9px; transform: rotate(-6deg); text-transform: uppercase; text-align: center; line-height: 1.05; }
.stempel b { display: block; font-size: 27px; letter-spacing: .12em; }
.stempel i { display: block; font-style: normal; font-size: 12.5px; letter-spacing: .16em; margin-top: 5px; }
.stempel.klein { border-width: 2px; outline-width: 1px; outline-offset: 2px; padding: 9px 10px 8px; transform: rotate(-4deg); }
.stempel.klein b { font-size: 18.7px; letter-spacing: .1em; }

/* Start */
.auftakt { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; padding-top: 72px; padding-bottom: 80px; align-items: end; }
.auftakt h1 { font-size: clamp(44px, 5.2vw, 72px); line-height: .96; letter-spacing: -.012em; margin-top: 22px; }
.auftakt .vorspann { font-size: 21px; line-height: 1.45; max-width: 34em; margin-top: 28px; }
.reihe { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 26px; }
.blatt { background: var(--papier); color: var(--tinte); padding: 14px 14px 18px; position: relative; text-decoration: none; display: block; }
.seite a.blatt, .seite a.blatt:hover { color: var(--tinte); }
.blatt h2 { font-size: 30px; line-height: 1.05; margin-top: 12px; }
.blatt .kenner { color: var(--tinte-leise); margin-top: 14px; }
.blatt p { margin: 8px 0 0; font-size: 17px; line-height: 1.45; }
.blatt .weiter { display: inline-block; margin-top: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.band { border-top: 1px solid var(--linie); padding-top: 44px; padding-bottom: 64px; }
.band-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; margin-bottom: 22px; }
.band-kopf h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; }
.register { width: 100%; border-collapse: collapse; }
.register th { font: 400 12.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--leise); text-align: left; padding: 0 16px 10px 0; border-bottom: 1px solid var(--linie); }
.register td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.register .jahr { font: 700 22px var(--mono); width: 110px; }
.register .fall { font-size: 28px; font-weight: 700; line-height: 1.1; }
.register .fall a { text-decoration: none; }
.register .fall a:hover { text-decoration: underline; }
.register .fall small { display: block; font-size: 16.5px; font-weight: 400; color: var(--leise); margin-top: 4px; line-height: 1.4; }
.register .befund { width: 220px; }
.register .ort { width: 190px; color: var(--leise); }
.urteile { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
.urteile dl { margin: 0; }
.urteil { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--linie); }
.urteil:first-child { border-top: 1px solid var(--linie); }
.urteil dt { margin: 0; }
.urteil dd { margin: 0; }

/* Einwilligung */
.banner { position: sticky; bottom: 0; z-index: 5; background: var(--papier); color: var(--tinte); border-top: 3px solid var(--tinte); }
.banner-in { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.banner p { margin: 0; max-width: 41em; font-size: 16.5px; line-height: 1.42; }
.banner a { color: var(--tinte); }
.banner .wahl { display: flex; flex-wrap: wrap; gap: 10px; }
.banner .knopf { background: transparent; color: var(--tinte); border-color: var(--tinte); min-width: 190px; }
.banner .knopf:hover { background: var(--tinte); color: var(--papier); }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); margin-top: 72px; }
.fuss-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px 56px; padding-top: 36px; padding-bottom: 44px; font-size: 16.5px; }
.fuss .links { display: flex; flex-wrap: wrap; gap: 4px 26px; align-content: start; }
.fuss .links a, .fuss .links span { padding: 8px 0; }
.fuss .links span { color: #8d857d; }
.fuss small { display: block; font: 400 13px var(--mono); color: var(--leise); line-height: 1.5; margin-top: 12px; }

/* Zusatz W1: Platz für das Bild im Blatt „Neueste Akte“ (16:9, Papierton, ohne Ersatzbild) und die Seite
   „Noch nicht angelegt“. Beides ist im Prototyp-CSS nicht vorhanden und nutzt nur dessen Werte. */
.blatt .bild { aspect-ratio: 16 / 9; background: var(--papier); }
/* Echter Stempel (SVG der Marke, rund 1000 x 1000, Drehung -6° steckt in der Datei: hier keine zweite Drehung).
   Kantenlänge so gewählt, dass die Fläche etwa der des CSS-Stempels entspricht (groß ca. 232 x 80 px, klein ca. 155 x 55 px:
   Kreisfläche gleich, also 156 px und 104 px). Im Blatt ragt er rechts oben über die Kante wie zuvor der CSS-Stempel. */
.seite .stempel-bild { display: block; width: 104px; height: 104px; max-width: none; }
.seite .blatt .stempel-bild { position: absolute; right: -14px; top: -48px; width: 156px; height: 156px; }
.leer { padding-top: 72px; padding-bottom: 80px; }
.leer h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; }

/* Zusatz W4: Standbild im Blatt „Neueste Akte“, Aktenmarke als Text (wenn es die SVG nicht gibt), leeres Register, feste Seiten
   (Methode, Über). Nutzt nur Werte dieser Datei. */
.blatt .bild { overflow: hidden; }
.seite .blatt .bild img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.blatt .befundmarke { color: var(--tinte); margin: 0 0 12px; }
.register-leer { margin: 0; color: var(--leise); }
.feste-seite { padding-top: 72px; padding-bottom: 80px; overflow-wrap: break-word; }
.feste-seite h1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -.012em; margin-bottom: 32px; }
.feste-seite .fliesstext { max-width: 38em; }
.feste-seite .fliesstext p, .feste-seite .fliesstext li { text-wrap: pretty; }
.feste-seite .fliesstext h2 { font-size: clamp(27px, 3.2vw, 36px); line-height: 1.1; margin: 40px 0 16px; }
.feste-seite .fliesstext h3 { font-size: 22px; line-height: 1.15; margin: 28px 0 10px; }
.feste-seite .fliesstext ul, .feste-seite .fliesstext ol { margin: 0 0 14px; padding-left: 1.4em; }

@media (max-width: 860px) {
  .seite { font-size: 17.5px; }
  .rand { padding-left: 20px; padding-right: 20px; }
  .auftakt { grid-template-columns: minmax(0, 1fr); gap: 56px; padding-top: 44px; padding-bottom: 56px; }
  .seite .blatt .stempel-bild { right: 8px; }
  .urteile { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .urteil { grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: start; padding: 26px 0 20px; }
  .register .ort { display: none; }
  .register thead { display: none; }
  .register, .register tbody, .register tr, .register td { display: block; width: auto; }
  .register tr { padding: 20px 0 22px; border-bottom: 1px solid var(--linie); }
  .register td { padding: 0; border: 0; }
  .register .jahr { width: auto; font-size: 15px; color: var(--leise); margin-bottom: 4px; }
  .register .fall { font-size: 26px; }
  .register .befund { width: auto; margin-top: 16px; padding-left: 4px; }
  .banner .wahl { width: 100%; }
  .banner .knopf { flex: 1 1 150px; min-width: 0; }
  .fuss-in { grid-template-columns: minmax(0, 1fr); }
  .feste-seite { padding-top: 44px; padding-bottom: 56px; }
}
