@font-face { font-family: "Source Serif 4"; src: url("/fonts/serif.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/sans.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/sans-bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --offwhite: #F8F7F4; --leinen: #EDEBE7; --grau200: #DBD7D0; --grau300: #C2BDB7;
  --tiefe: #1E262E; --stein: #6F6B66; --schiefer: #33404C; --schiefer600: #5A6E82;
  --morgenlicht: #F0A46E; --morgenlicht500: #C96901;
  --ok: #3B7A57; --hinweis: #8F6200; --fehler: #B0382F;
  --reihe1: #33404C; --reihe2: #C96901;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--offwhite); color: var(--tiefe);
  font-family: "Source Sans 3", Calibri, Arial, sans-serif; font-size: 17px; line-height: 1.6; }
.kopf, main, .fuss { max-width: 1200px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; flex-wrap: wrap; }
.logo { display: block; width: 140px; height: auto; }
.kopf-rechts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
h1, h2, h3 { font-family: "Source Serif 4", Georgia, serif; font-weight: 400; color: var(--schiefer); margin: 0; }
h1 { font-size: 35px; line-height: 1.25; margin-top: 16px; }
h2 { font-size: 28px; line-height: 1.3; margin: 48px 0 16px; }
h3 { font-size: 22px; line-height: 1.3; margin: 48px 0 8px; }
.horizont { height: 1px; background: var(--morgenlicht); margin: 24px 0 8px; }
.leise { color: var(--stein); }
.klein { font-size: 15px; }
.knopf { font: 700 15px/1 "Source Sans 3", Arial, sans-serif; color: #fff; background: var(--schiefer);
  border: 0; border-radius: 4px; padding: 12px 20px; cursor: pointer; }
.knopf.zweit { background: var(--offwhite); color: var(--schiefer); }
.knopf:disabled { opacity: .5; cursor: default; }
.symbolknopf { padding: 10px; line-height: 0; }
.symbolknopf .symbol { display: block; }
.symbolknopf.laeuft .symbol { animation: drehen 1s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .symbolknopf.laeuft .symbol { animation: none; } }
.knopf:focus-visible, .link:focus-visible { outline: 2px solid var(--schiefer600); outline-offset: 2px; }
.link { font: inherit; font-size: 15px; background: none; border: 0; padding: 0; color: var(--schiefer600);
  text-decoration: underline; cursor: pointer; }
.meldung { background: var(--leinen); border-radius: 8px; padding: 12px 16px; margin: 16px 0; }

.status { font-weight: 700; white-space: nowrap; }
.status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 8px; vertical-align: middle; background: currentColor; }
.status.ok { color: var(--ok); } .status.hinweis { color: var(--hinweis); } .status.fehler { color: var(--fehler); }
.status.unbekannt { color: var(--stein); }

#befunde { display: grid; gap: 12px; margin-bottom: 16px; }
#kosten { padding-top: 32px; }
.befund { background: var(--leinen); border-radius: 8px; padding: 16px 24px; }
.befund-kopf { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.befund-text { font-weight: 700; }
.befund p { margin: 4px 0; }
.befund-details { margin: 8px 0 4px; font-size: 15px; }
.befund-details summary { cursor: pointer; color: var(--schiefer600); font-weight: 700; }
.befund-details summary:focus-visible { outline: 2px solid var(--schiefer600); outline-offset: 2px; }
.befund-details div { margin: 4px 0 0 16px; }
.befund .knoepfe { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; align-items: center; }

.reiter { display: flex; flex-wrap: wrap; gap: 0 32px; border-bottom: 1px solid var(--grau200); margin: 16px 0 0; }
.reiter button { font: 400 17px/1.4 "Source Sans 3", Arial, sans-serif; color: var(--stein); background: none; border: 0;
  border-bottom: 2px solid transparent; padding: 12px 0; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.reiter button[aria-selected="true"] { color: var(--schiefer); font-weight: 700; border-bottom-color: var(--schiefer); }
.reiter button:focus-visible { outline: 2px solid var(--schiefer600); outline-offset: 2px; }
.reiter.unterreiter { gap: 24px; margin: 0 0 8px; }
.reiter.unterreiter button { font-size: 16px; padding: 8px 0; }
.zustand-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.zustand-kopf h2 { margin-top: 48px; }
.zustand-kopf .knopf.zweit { background: var(--leinen); }

.gruppe h3 { font-size: 22px; margin: 32px 0 12px; }
.ampeln { display: flex; flex-wrap: wrap; gap: 8px; }
.ampel { display: inline-flex; align-items: center; gap: 8px; font: 400 16px/1.4 "Source Sans 3", Arial, sans-serif;
  color: var(--tiefe); background: var(--leinen); border: 0; border-radius: 8px; padding: 10px 16px; cursor: default; }
.ampel:focus-visible { outline: 2px solid var(--schiefer600); outline-offset: 2px; }
.ampel .licht { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; }
.ampel.hinweis .licht { background: var(--hinweis); } .ampel.fehler .licht { background: var(--fehler); }
.ampel.unbekannt .licht { background: var(--stein); }
.ampel-wort { font-weight: 700; }
.ampel.hinweis .ampel-wort { color: var(--hinweis); } .ampel.fehler .ampel-wort { color: var(--fehler); }
.ampel.hinweis, .ampel.fehler { cursor: pointer; }

.kennzahl-zeile { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.grosse-zahl { font-family: "Source Serif 4", Georgia, serif; font-size: 56px; line-height: 1.1; color: var(--morgenlicht500); }
.kleine-zahlen { display: flex; gap: 32px; flex-wrap: wrap; }
.kleine-zahlen div { display: flex; flex-direction: column; }
.kleine-zahlen strong { font-family: "Source Serif 4", Georgia, serif; font-weight: 400; font-size: 28px; color: var(--schiefer); }

table.schritte { width: 100%; border-collapse: collapse; margin-top: 32px; font-size: 16px; }
.schritte th { text-align: left; font-weight: 700; color: var(--stein); font-size: 14px; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--grau200); }
.schritte td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--grau200); vertical-align: top; }
.schritte .zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.schritte .erklaerung { font-size: 14px; color: var(--stein); line-height: 1.4; }
.schritte tfoot td { font-weight: 700; border-bottom: 0; }
.balken-spalte { width: 28%; }
table.schritte.akten { margin-top: 16px; }
.schritte.akten th.zahl { white-space: normal; }
.schritte.akten td:first-child { overflow-wrap: anywhere; }
.schritte.akten .aufklappen { background: none; border: 0; padding: 0; margin: 0 8px 0 0; width: 20px; font: inherit; font-size: 20px; line-height: 1; color: var(--schiefer); cursor: pointer; vertical-align: -1px; }
.schritte.akten .aufklappen:focus-visible { outline: 2px solid var(--schiefer600, #5A6E82); outline-offset: 2px; }
.schritte.akten tr.tests-zeile td { font-weight: 700; }
.schritte.akten tr.tests-detail td { padding-top: 6px; padding-bottom: 6px; font-size: 15px; }
.schritte.akten tr.tests-detail td:first-child { padding-left: 28px; }
.schritte.akten tr.tests-kopf td { color: var(--stein); font-size: 14px; }
.schritte.akten tr.tests-gruppe td { font-weight: 700; padding-top: 14px; border-bottom: 0; }
.schritte.akten tr.tests-posten td:first-child { padding-left: 44px; }
.schritte.akten tr.tests-summe td { font-weight: 700; }
.balken { height: 8px; background: var(--schiefer); border-radius: 0 4px 4px 0; margin-top: 8px; min-width: 1px; }

#notbremse { margin-top: 24px; }
.bremse { margin: 8px 0 24px; font-size: 15px; }
.limit-betrag { font: inherit; color: var(--schiefer); background: none; border: 0; padding: 0; margin: 0;
  border-bottom: 1px dashed var(--schiefer600); cursor: text; }
.limit-betrag:hover { color: var(--schiefer600); }
.limit-betrag:focus-visible { outline: 2px solid var(--schiefer600); outline-offset: 2px; }
.limit-feld { font: inherit; width: 96px; padding: 0 4px; border: 1px solid var(--schiefer600); border-radius: 4px;
  background: #fff; color: var(--tiefe); }
.bremse-spur { position: relative; height: 8px; background: var(--grau200); border-radius: 4px; margin: 16px 0 4px; max-width: 480px; }
.bremse-limit, .bremse-stand { position: absolute; left: 0; top: 0; height: 100%; border-radius: 4px; }
.bremse-limit { background: var(--grau300); }
.bremse-stand { background: var(--schiefer); }
.bremse-griff { position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  background: var(--offwhite); border: 3px solid var(--schiefer); cursor: ew-resize; touch-action: none; }
.bremse-griff::before { content: ""; position: absolute; inset: -12px; }
.bremse-griff:focus-visible { outline: 2px solid var(--schiefer600); outline-offset: 2px; }
.bremse.zieht .bremse-griff { cursor: grabbing; border-color: var(--schiefer600); }
.bremse.speichert { opacity: .6; }
.bremse-marke { position: absolute; top: -4px; width: 2px; height: 16px; margin-left: -1px; background: var(--schiefer600); }
.bremse-skala { display: flex; justify-content: space-between; max-width: 480px; font-size: 13px; color: var(--stein); }

.legende { font-size: 14px; color: var(--stein); margin: 4px 0 8px; }
.punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 6px 0 0; vertical-align: -1px; }
.punkt.reihe1 { background: var(--reihe1); } .punkt.reihe2 { background: var(--reihe2); margin-left: 16px; }
.blaettern { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 15px; color: var(--stein); }
.pfeil { font: 400 22px/1 "Source Sans 3", Arial, sans-serif; color: var(--schiefer); background: var(--leinen); border: 0;
  border-radius: 4px; width: 36px; height: 32px; cursor: pointer; }
.pfeil:disabled { opacity: .35; cursor: default; }
.pfeil:focus-visible { outline: 2px solid var(--schiefer600); outline-offset: 2px; }
.diagramm { width: 100%; }
.diagramm svg { display: block; width: 100%; height: auto; overflow: visible; }
.diagramm text { font-family: "Source Sans 3", Arial, sans-serif; font-size: 12px; fill: var(--stein); }
.tooltip { position: fixed; pointer-events: none; background: var(--tiefe); color: #fff; font-size: 14px; line-height: 1.4;
  padding: 8px 12px; border-radius: 4px; max-width: 280px; z-index: 10; }
.tooltip b { font-weight: 700; }

/* Reiter "Zu prüfen": eine Karte je Seite, Bild und Lesung nebeneinander, auf dem Telefon untereinander */
.reiter-zahl { font-variant-numeric: tabular-nums; }
#seiten-karten { display: grid; gap: 16px; margin-top: 16px; }
.seite-geaendert { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 4px;
  padding: 8px 12px; background: var(--offwhite); border-left: 3px solid var(--hinweis); border-radius: 4px; font-size: 15px; }
.seite-geaendert[hidden], .seite-geaendert .knopf[hidden] { display: none; }
.seite-gruende { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.grund { font-size: 14px; font-weight: 700; color: var(--hinweis); background: var(--offwhite); border-radius: 4px; padding: 2px 8px; }
.seite-inhalt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 12px; }
.seite-bild { background: #fff; border: 1px solid var(--grau200); border-radius: 4px; min-height: 120px;
  overflow: auto; display: flex; align-items: flex-start; justify-content: center; }
.seite-bild p { margin: auto; padding: 16px; }
.seite-bild img { display: block; width: 100%; height: auto; cursor: zoom-in; max-width: none; }
/* Stellen (Ben, 02.12.2026): gelbe Kästchen mit Nummer über dem ganzen Seitenbild, rechts nur ihre Lesung */
.seite-bild-spalte { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
/* Bild bleibt beim Scrollen durch die Stellen sichtbar (Ben, 03.12.2026) */
@media (min-width: 701px) {
  .seite-bild-spalte { position: sticky; top: 12px; align-self: start; }
  .seite-bild { max-height: calc(100vh - 72px); }
}
.bild-leiste { display: flex; justify-content: flex-end; gap: 6px; }
.knopf.klein { font-size: 13px; padding: 6px 12px; }
.bild-huelle { position: relative; width: 100%; flex: none; }
.bild-rahmen { position: relative; width: 100%; flex: none; }
/* gedreht (Ben, 03.12.2026): Größen setzt bildAnordnen in Pixeln, gedreht wird um die linke obere Ecke */
.bild-rahmen.gedreht { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.bild-rahmen.gedreht img { width: 100%; max-width: none; }
/* .gross nur noch in der Fundstellen-Ansicht (quelle.js): Klick zeigt die Seite in voller Größe */
.seite-bild.gross { max-height: 720px; }
.seite-bild.gross img { width: auto; max-width: none; cursor: zoom-out; }
.seite-bild.gross .bild-huelle, .seite-bild.gross .bild-rahmen { width: max-content; }
.seite-bild.gross .bild-rahmen.gedreht img { width: 100%; max-width: none; }
/* nur der Rand, damit die Seite darunter lesbar bleibt (Ben, 03.12.2026); gefüllt nur beim Hervorheben */
.stelle-box { position: absolute; border: 2px solid #E6B800; background: transparent; border-radius: 2px;
  cursor: pointer; }
.stelle-box.oben .stelle-box-nr { bottom: auto; top: 100%; border-radius: 0 3px 3px 3px; }
.stelle-box.aktiv { border-width: 3px; background: rgba(230, 184, 0, .25); box-shadow: 0 0 0 2px rgba(230, 184, 0, .45);
  z-index: 2; }
.stelle-box-nr { position: absolute; left: -2px; bottom: 100%; font: 700 12px/1 "Source Sans 3", Arial, sans-serif;
  color: var(--tiefe); background: #E6B800; border-radius: 3px 3px 3px 0; padding: 2px 5px; white-space: nowrap;
  transform: translateX(var(--dx, 0px)) rotate(var(--gegen, 0deg)); z-index: 1; }
.stellen { gap: 8px; }
.stelle { background: #fff; border: 1px solid var(--grau200); border-left: 4px solid #E6B800; border-radius: 4px;
  padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; }
.stelle.aktiv { background: #FFF8DB; }
.stelle:focus { outline: 2px solid var(--schiefer600); outline-offset: 1px; }
.stelle-kopf { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.stelle-nr { font-weight: 700; font-size: 13px; line-height: 1; color: var(--tiefe); background: #E6B800; border-radius: 3px;
  padding: 3px 6px; }
.stelle-art { font-weight: 700; font-size: 15px; color: var(--schiefer); }
.stelle-lesung { margin: 0; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.stelle-wahl { display: flex; flex-direction: column; gap: 4px; border: 0; margin: 0; padding: 0; }
.stelle-option { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 15px; cursor: pointer;
  overflow-wrap: anywhere; }
.stelle-option input { margin: 0; flex: none; transform: translateY(1px); }
.stelle-gewaehlt { font-size: 13px; color: var(--stein); }
.stelle-feld { font: 15px/1.4 "Source Sans 3", Arial, sans-serif; color: var(--tiefe); background: #fff; width: 100%;
  border: 1px solid var(--grau300); border-radius: 4px; padding: 6px 10px; display: block; resize: vertical;
  field-sizing: content; min-height: calc(1.4em + 14px); max-height: 16em; }
.stelle-feld:focus-visible, .vorschlag:focus-visible, .stelle-option input:focus-visible { outline: 2px solid var(--schiefer600);
  outline-offset: 1px; }
.stelle-vorschlaege { display: flex; flex-wrap: wrap; gap: 6px; }
.vorschlag { font: 400 14px/1.3 "Source Sans 3", Arial, sans-serif; color: var(--schiefer); background: var(--offwhite);
  border: 1px solid var(--grau300); border-radius: 12px; padding: 3px 10px; cursor: pointer; overflow-wrap: anywhere;
  text-align: left; }
.seite-lesung { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.seite-text { font: 15px/1.5 "Source Sans 3", Arial, sans-serif; color: var(--tiefe); background: #fff; width: 100%;
  min-height: 240px; flex: 1; border: 1px solid var(--grau300); border-radius: 4px; padding: 8px 12px; resize: vertical; }
.seite-text:focus-visible { outline: 2px solid var(--schiefer600); outline-offset: 1px; }
.typen-titel { margin-top: 12px; }
.typen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.typ { font: 400 15px/1.3 "Source Sans 3", Arial, sans-serif; color: var(--schiefer); background: var(--offwhite);
  border: 1px solid var(--grau300); border-radius: 16px; padding: 6px 14px; cursor: pointer; }
.typ[aria-pressed="true"] { background: var(--schiefer); border-color: var(--schiefer); color: #fff; font-weight: 700; }
.typ:disabled { opacity: .4; cursor: default; }
.typ:focus-visible { outline: 2px solid var(--schiefer600); outline-offset: 2px; }

/* Reiter "Nutzung", "Chat-Auswertung", "Regressionstests" (Ben, 02.12.2026) */
.drei-tafeln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.woche-wahl select { font: inherit; color: var(--tiefe); background: #fff; border: 1px solid var(--grau300); border-radius: 4px; padding: 4px 8px; margin-left: 8px; }
.woche-wahl select:focus-visible { outline: 2px solid var(--schiefer600); outline-offset: 2px; }
#aw-probleme { display: grid; gap: 16px; margin-top: 16px; }
.problem h3 { margin: 0 0 4px; font-size: 22px; }
.problem p { margin: 8px 0; }
.problem .meta { font-size: 15px; color: var(--stein); }
.problem ul { margin: 4px 0 8px; padding-left: 20px; font-size: 15px; }
.problem .entwurf { font: 14px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere;
  background: #fff; border: 1px solid var(--grau200); border-radius: 4px; padding: 8px 12px; margin: 4px 0 8px; }
.problem .loesung-kopf { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-weight: 700; margin-top: 12px; }
.marke { font-size: 13px; font-weight: 700; color: var(--hinweis); background: var(--offwhite); border-radius: 4px; padding: 2px 8px; }
.breit { overflow-x: auto; }
.schritte td.durchgefallen { color: var(--fehler); font-weight: 700; }

/* Reiter "Nutzung" (Ben, 02.12.2026): wie das TTW-Dashboard, im weitsicht-Stil ohne Kästen; Morgenlicht nur bei
   "Tokens diesen Monat" */
#nutzung { padding-top: 32px; }
.nz-karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.nz-zahl { font-family: "Source Serif 4", Georgia, serif; font-size: 44px; line-height: 1.2; color: var(--schiefer); }
.nz-zahl.nz-hervor { color: var(--morgenlicht500); }
.nz-von { font-family: "Source Sans 3", Arial, sans-serif; font-size: 17px; color: var(--stein); }
.nz-steuerung { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 8px 0; }
.nz-steuerung .blaettern { margin: 0; }
.wahl select { font: inherit; color: var(--tiefe); background: var(--offwhite); border: 1px solid var(--grau300); border-radius: 4px; padding: 4px 8px; margin-left: 8px; }
.wahl select:focus-visible { outline: 2px solid var(--schiefer600); outline-offset: 2px; }
.wahl[hidden], .nz-steuerung .blaettern[hidden] { display: none; }
#nz-personen-text, #nz-wochen-text { margin: 0 0 8px; }
.diagramm .nz-fokus { cursor: default; outline: none; }
.diagramm .nz-fokus:focus-visible { stroke: var(--schiefer600); stroke-width: 2; }
.diagramm text.nz-name { font-size: 14px; fill: var(--tiefe); }
.diagramm text.nz-name.gewaehlt { font-weight: 700; fill: var(--schiefer); }
.diagramm text.nz-marke { font-size: 12px; fill: var(--stein); }
.nz-strich { display: inline-block; width: 24px; border-top: 2px dashed var(--stein); margin-right: 8px; vertical-align: 4px; }
.nz-strich.ab { border-top-color: var(--schiefer); }
#nz-nutzer-block .reiter.unterreiter { margin-top: 8px; }
#nz-nutzer { min-width: 600px; }
#nz-nutzer td:first-child { overflow-wrap: normal; white-space: nowrap; }
#nz-nutzer tfoot td { border-top: 1px solid var(--grau300); }

.fuss { padding-top: 64px; padding-bottom: 48px; }

@media (max-width: 700px) {
  .kopf, main, .fuss { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 28px; } h2 { font-size: 24px; }
  .grosse-zahl { font-size: 44px; }
  .balken-spalte, .schritte td.balken-zelle { display: none; }
  .schritte .erklaerung { display: none; }
  .schmal-weg { display: none; }
  .befund { padding: 16px; }
  .reiter { gap: 0 16px; flex-wrap: wrap; }
  .reiter button { font-size: 16px; }
  .seite-inhalt { grid-template-columns: minmax(0, 1fr); }
  .drei-tafeln { grid-template-columns: minmax(0, 1fr); }
  .nz-karten { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .nz-zahl { font-size: 36px; }
  .seite-text { min-height: 200px; }
}
/* "nicht lesbar" je Stelle, rechts im Kopf der Stelle; angehakt treten Lesung und Wahl zurück */
.stelle-unlesbar { display: inline-flex; gap: 6px; align-items: center; font-size: 14px;
  color: var(--stein); cursor: pointer; }
.stelle-unlesbar input { margin: 0; }
.stelle-unlesbar input:focus-visible { outline: 2px solid var(--schiefer600); outline-offset: 1px; }
.stelle.unlesbar .stelle-unlesbar { color: var(--tiefe); font-weight: 700; }
.stelle.unlesbar .stelle-feld, .stelle.unlesbar .stelle-option, .stelle.unlesbar .stelle-vorschlaege { opacity: .45; }
/* Drehpfeile */
.knopf.pfeil { font-size: 18px; line-height: 1; min-width: 36px; padding: 6px 8px; }
/* erledigt je Stelle (Ben, 03.12.2026): zugeklappt auf den Kopf, Kästchen im Bild tritt zurück */
.stelle-haken { margin-left: auto; display: inline-flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.stelle-fertig { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--stein); cursor: pointer; }
.stelle-fertig input { margin: 0; }
.stelle-fertig input:focus-visible { outline: 2px solid var(--schiefer600); outline-offset: 1px; }
.stelle.erledigt { border-left-color: var(--grau300); padding-top: 6px; padding-bottom: 6px; }
.stelle.erledigt > :not(.stelle-kopf), .stelle.erledigt .stelle-unlesbar { display: none; }
.stelle.erledigt .stelle-fertig { color: var(--tiefe); font-weight: 700; }
.stelle.erledigt .stelle-nr { background: var(--grau300); }
.stelle-zusammen { color: var(--stein); font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 120px; }
.stelle-zusammen:empty { display: none; }
.stelle-box.erledigt { border-color: var(--grau300); border-style: dashed; }
.stelle-box.erledigt .stelle-box-nr { background: var(--grau300); }
.stelle-box.erledigt.aktiv { border-color: #E6B800; border-style: solid; }
.stellen-titel { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.stellen-stand { font-weight: 700; }
/* Fundstellen-Ansicht /q/<akte>/<seite> (Ben, 03.12.2026): Seite mit gelben Kästchen aus dem Link */
.quelle-leiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 12px; }
.quelle-leiste .abstand { flex: 1 1 auto; }
.quelle-drehen { display: inline-flex; gap: 6px; }
.quelle-zeile { margin: 8px 0 0; font-weight: 700; }
.quelle-bild { max-height: calc(100vh - 220px); min-height: 240px; }
.quelle-bild.gross { max-height: calc(100vh - 220px); }
.stelle-box.fund-kasten { pointer-events: none; background: rgba(230, 184, 0, .2); }
@media (max-width: 700px) {
  .quelle-bild, .quelle-bild.gross { max-height: none; }
}
/* Zoom (Ben, 03.12.2026): stufenlos, Nummer rechts zoomt auf ihre Stelle */
.seite-bild.gezoomt { justify-content: flex-start; cursor: grab; }
.seite-bild.gezoomt img { cursor: grab; }
.seite-bild.zieht, .seite-bild.zieht img { cursor: grabbing; user-select: none; }
.bild-huelle, .bild-rahmen { flex: none; }
.zoom-wert { min-width: 80px; white-space: nowrap; }
.leiste-luecke { flex: 1; }
button.stelle-nr { border: 0; cursor: zoom-in; font-family: inherit; }
button.stelle-nr:hover { background: #F0C933; }
button.stelle-nr:focus-visible { outline: 2px solid var(--schiefer600); outline-offset: 1px; }
@media (max-width: 700px) { .seite-bild.gezoomt { max-height: 70vh; } }
