/* Oberfläche Preview — übernommen aus Claude Design, Projekt 139dd7b3,
   Blätter `Oberflaeche-*.dc.html` und `Bausteine-*.dc.html` (Läufe 2 und 3).

   Der Entwurf schreibt jeden Wert als Inline-Stil auf ein Muster-Element.
   Hier stehen dieselben Werte als Klassen — 1:1, nichts gerundet, nichts
   ans Bestandsraster angeglichen. Wer einen Wert ändern will, ändert ihn
   im Entwurf, nicht hier.

   Kein Hex-Literal in dieser Datei. Ein Test erzwingt das. */

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

html, body { margin: 0; padding: 0; height: 100%; }

body {
  background: var(--pv-grund);
  color: var(--pv-text);
  font-family: var(--pv-schrift);
  font-size: var(--pv-tx-fliess);
  line-height: var(--pv-tx-fliess-zh);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a { color: var(--pv-aktion); text-decoration: none; }
a:hover { color: var(--pv-aktion-ueber); }

:focus-visible {
  outline: var(--pv-fokus-b) solid var(--pv-aktion-fokus);
  outline-offset: var(--pv-fokus-abstand);
}

@keyframes pv-puls { 0%, 100% { opacity: .30 } 50% { opacity: 1 } }

/* --- Kopfzeile ---------------------------------------------------------- */
.kopf {
  height: var(--pv-k-kopfzeile);
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--pv-raum-7);
  padding: 0 var(--pv-raum-6);
  background: var(--pv-flaeche);
  border-bottom: 1px solid var(--pv-linie);
}

.marke {
  font-size: var(--pv-tx-wortmarke);
  font-weight: var(--pv-tx-wortmarke-gew);
  line-height: var(--pv-tx-wortmarke-zh);
  letter-spacing: var(--pv-tx-wortmarke-sperrung);
  white-space: nowrap;
  color: var(--pv-text);
}
/* Die Wortmarke ist die erste der drei erlaubten Navy-Ausnahmen. */
.marke b { font-weight: inherit; color: var(--pv-aktion); }

.haupt { display: flex; gap: var(--pv-raum-6); align-self: stretch; align-items: center; }

.haupt a {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  font-size: var(--pv-tx-bedienung);
  font-weight: var(--pv-tx-bedienung-gew);
  line-height: var(--pv-tx-bedienung-zh);
  color: var(--pv-text);
  transition: color var(--pv-d-kurz) var(--pv-k-zustand);
}
.haupt a:hover { color: var(--pv-aktion); }

/* Der aktive Reiter ist die dritte Navy-Ausnahme: Farbe UND Strich, damit
   die Auszeichnung nicht allein auf der Farbe liegt. */
.haupt a[aria-current="page"] { color: var(--pv-aktion); }
.haupt a[aria-current="page"]::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--pv-aktion);
}

.kopf .wer { margin-left: auto; }

/* --- Hülle -------------------------------------------------------------- */
.huelle {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--pv-raum-7) var(--pv-raum-6);
  display: flex;
  flex-direction: column;
  gap: var(--pv-raum-6);
}

/* --- Seitenkopf --------------------------------------------------------- */
.seitenkopf {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--pv-raum-4);
  flex-wrap: wrap;
}
.seitenkopf .titelblock { display: flex; flex-direction: column; gap: var(--pv-raum-1); }
.seitenkopf h1 {
  margin: 0;
  font-size: var(--pv-tx-seitentitel);
  font-weight: var(--pv-tx-seitentitel-gew);
  line-height: var(--pv-tx-seitentitel-zh);
  color: var(--pv-text);
}
.seitenkopf .unter, .seitenkopf .notiz {
  font-size: var(--pv-tx-leise);
  line-height: var(--pv-tx-leise-zh);
  color: var(--pv-text-leise);
}
.seitenkopf .notiz { font-variant-numeric: tabular-nums; }

h2 {
  margin: 0;
  font-size: var(--pv-tx-abschnitt);
  font-weight: var(--pv-tx-abschnitt-gew);
  line-height: var(--pv-tx-abschnitt-zh);
  color: var(--pv-text);
}
h3 {
  margin: 0;
  font-size: var(--pv-tx-kartentitel);
  font-weight: var(--pv-tx-kartentitel-gew);
  line-height: var(--pv-tx-kartentitel-zh);
  color: var(--pv-text);
}

.rubrik {
  font-size: var(--pv-tx-klein);
  font-weight: var(--pv-tx-klein-gew);
  line-height: var(--pv-tx-klein-zh);
  letter-spacing: var(--pv-tx-klein-sperrung);
  color: var(--pv-text-leise);
  text-transform: uppercase;
}

.leise { color: var(--pv-text-leise); }
.klein { font-size: var(--pv-tx-leise); line-height: var(--pv-tx-leise-zh); }
.zahl  { font-variant-numeric: tabular-nums; }

/* --- Meldung ------------------------------------------------------------
   Vier Signale, jedes mit Fläche, Rahmen und Punkt. Die Farbe allein trägt
   nie die Bedeutung — davor steht immer ein Wort. */
.meldung {
  display: flex;
  gap: var(--pv-raum-3);
  padding: var(--pv-raum-4);
  border-radius: var(--pv-r-knopf);
  font-size: var(--pv-tx-fliess);
  font-weight: var(--pv-tx-fliess-gew);
  line-height: var(--pv-tx-fliess-zh);
  color: var(--pv-text);
}
.meldung::before {
  content: "";
  width: 6px; height: 6px; flex: none; margin-top: 7px;
  border-radius: var(--pv-r-pille);
}
.meldung b { font-weight: var(--pv-gew-halb); }

.meldung.erfolg  { background: var(--pv-erfolg-flaeche);  border: 1px solid var(--pv-erfolg-rahmen); }
.meldung.erfolg::before  { background: var(--pv-erfolg-text); }
.meldung.erfolg b        { color: var(--pv-erfolg-text); }

.meldung.warnung { background: var(--pv-achtung-flaeche); border: 1px solid var(--pv-achtung-rahmen); }
.meldung.warnung::before { background: var(--pv-achtung-text); }
.meldung.warnung b       { color: var(--pv-achtung-text); }

.meldung.fehler  { background: var(--pv-warnung-flaeche); border: 1px solid var(--pv-warnung-rahmen); }
.meldung.fehler::before  { background: var(--pv-warnung-text); }
.meldung.fehler b        { color: var(--pv-warnung-text); }

.meldung.info    { background: var(--pv-info-flaeche);    border: 1px solid var(--pv-info-rahmen); }
.meldung.info::before    { background: var(--pv-info-text); }
.meldung.info b          { color: var(--pv-info-text); }

/* --- Karte -------------------------------------------------------------- */
.karte {
  background: var(--pv-flaeche);
  border: 1px solid var(--pv-linie);
  border-radius: var(--pv-r-karte);
  box-shadow: var(--pv-erhebung-1);
  padding: var(--pv-raum-5);
  display: flex;
  flex-direction: column;
  gap: var(--pv-raum-4);
}
.kartenkopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--pv-raum-3);
}

/* Zwei gleich breite, gleich hohe Spalten — keine ist die Hauptquelle. */
.quellen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: var(--pv-raum-5);
  align-items: stretch;
}

/* --- Datei-Einwurf, drei Zustände --------------------------------------- */
.einwurf {
  flex: 1;
  border: 1px dashed var(--pv-linie-ueber);
  border-radius: var(--pv-r-eingabegruppe);
  background: var(--pv-flaeche-hoch);
  padding: var(--pv-raum-7) var(--pv-raum-5);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--pv-raum-2);
  text-align: center;
  cursor: pointer;
  transition: background var(--pv-d-kurz) var(--pv-k-zustand),
              border-color var(--pv-d-kurz) var(--pv-k-zustand);
}
.einwurf .was { font-size: var(--pv-tx-bedienung); font-weight: var(--pv-tx-bedienung-gew); color: var(--pv-text); }
.einwurf .wie { font-size: var(--pv-tx-leise); line-height: var(--pv-tx-leise-zh); color: var(--pv-text-leise); }
.einwurf input[type="file"] { display: none; }

.einwurf:hover { border-color: var(--pv-aktiv-rahmen); }
.einwurf.anliegend {
  border: 1px solid var(--pv-aktion);
  background: var(--pv-aktiv-flaeche);
}
.einwurf.anliegend .was { color: var(--pv-aktion); }

.einwurf.voll {
  border: 1px solid var(--pv-linie);
  background: var(--pv-flaeche);
  padding: var(--pv-raum-5);
  align-items: stretch;
  gap: var(--pv-raum-4);
  text-align: left;
  cursor: default;
}
.einwurf.voll .zeile { display: flex; align-items: center; gap: var(--pv-raum-3); }
.einwurf.voll .art {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 44px; flex: none;
  border-radius: var(--pv-r-chip);
  background: var(--pv-flaeche-hoch);
  border: 1px solid var(--pv-linie);
  font-size: var(--pv-tx-klein);
  font-weight: var(--pv-tx-klein-gew);
  letter-spacing: var(--pv-tx-klein-sperrung);
  color: var(--pv-text-leise);
}
.einwurf.voll .name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.einwurf.voll .name b {
  font-size: var(--pv-tx-bedienung); font-weight: var(--pv-tx-bedienung-gew); color: var(--pv-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.einwurf.voll .werte {
  display: flex; flex-wrap: wrap; gap: var(--pv-raum-4);
  font-size: var(--pv-tx-leise); line-height: var(--pv-tx-leise-zh);
  color: var(--pv-text-leise); font-variant-numeric: tabular-nums;
}

/* --- Textfeld ----------------------------------------------------------- */
textarea,
input:not([type]),
input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="url"], input[type="tel"], input[type="number"] {
  width: 100%;
  padding: var(--pv-raum-4);
  border-radius: var(--pv-r-eingabegruppe);
  border: 1px solid transparent;
  background: var(--pv-flaeche-hoch);
  outline: none;
  font-family: var(--pv-schrift);
  font-size: var(--pv-tx-fliess);
  font-weight: var(--pv-tx-fliess-gew);
  line-height: var(--pv-tx-fliess-zh);
  color: var(--pv-text);
  transition: background var(--pv-d-kurz) var(--pv-k-zustand),
              border-color var(--pv-d-kurz) var(--pv-k-zustand);
}
textarea { resize: none; flex: 1; }
textarea:hover,
input:not([type]):hover,
input[type="text"]:hover, input[type="email"]:hover, input[type="password"]:hover,
input[type="search"]:hover, input[type="url"]:hover, input[type="tel"]:hover,
input[type="number"]:hover {
  background: var(--pv-flaeche); border-color: var(--pv-linie-ueber);
}
textarea:focus,
input:not([type]):focus,
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus,
input[type="search"]:focus, input[type="url"]:focus, input[type="tel"]:focus,
input[type="number"]:focus {
  background: var(--pv-flaeche); border-color: var(--pv-aktiv-rahmen);
  outline: var(--pv-fokus-b) solid var(--pv-aktion-fokus);
  outline-offset: var(--pv-fokus-abstand);
}
input:not([type]), input[type="text"], input[type="email"], input[type="password"],
/* Einzeilige Felder tragen die Bedienhoehe statt eines Innenmasses — das
   gilt fuer dieselbe Auswahl wie oben und ersetzt deren `padding`. */
input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="url"], input[type="tel"], input[type="number"],
input:not([type]) {
  height: var(--pv-h-haupt); padding: 0 var(--pv-raum-4);
}

/* --- Knöpfe, drei Rollen ------------------------------------------------
   Jeder trägt 1px durchsichtigen Rahmen, damit Überfahren nicht springt.
   Ein Druckpunkt für alle: --pv-druck-tiefe über --pv-d-druck.
   Überfahren wechselt Fläche und Farbe, nie Größe. */
.knopf, button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--pv-raum-2);
  height: var(--pv-h-standard);
  padding: 0 var(--pv-pad-standard);
  border-radius: var(--pv-r-knopf);
  border: 1px solid var(--pv-linie);
  background: var(--pv-flaeche);
  color: var(--pv-text);
  font-family: var(--pv-schrift);
  font-size: var(--pv-tx-bedienung);
  font-weight: var(--pv-tx-bedienung-gew);
  line-height: var(--pv-tx-bedienung-zh);
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--pv-d-kurz) var(--pv-k-zustand),
              border-color var(--pv-d-kurz) var(--pv-k-zustand),
              color var(--pv-d-kurz) var(--pv-k-zustand),
              transform var(--pv-d-druck) var(--pv-k-zustand);
}
.knopf:hover, button:hover {
  background: var(--pv-aktiv-flaeche);
  border-color: var(--pv-aktiv-rahmen);
  color: var(--pv-aktion);
}
.knopf:active, button:active { transform: var(--pv-druck-tiefe); }

.knopf.haupt, button.haupt {
  height: var(--pv-h-haupt);
  padding: 0 var(--pv-pad-haupt);
  border-color: transparent;
  background: var(--pv-aktion);
  color: var(--pv-auf-aktion);
}
.knopf.haupt:hover, button.haupt:hover {
  background: var(--pv-aktion-ueber); border-color: transparent; color: var(--pv-auf-aktion);
}
.knopf.haupt:active, button.haupt:active { background: var(--pv-aktion-gedr); }

.knopf.klein, button.klein {
  height: var(--pv-h-dicht);
  padding: 0 var(--pv-pad-dicht);
  border-color: transparent;
  background: transparent;
  color: var(--pv-text-leise);
}
.knopf.klein:hover, button.klein:hover {
  background: var(--pv-flaeche-hoch); border-color: transparent; color: var(--pv-text);
}

/* Der gesperrte Hauptknopf wird flächig, nicht Navy mit halber Deckkraft —
   und er nennt den Grund darunter. */
button[disabled], .knopf.gesperrt {
  cursor: default; transform: none;
  background: var(--pv-gesperrt-flaeche);
  border-color: var(--pv-linie);
  color: var(--pv-gesperrt-text);
}
button.haupt[disabled], .knopf.haupt.gesperrt {
  background: var(--pv-gesperrt-haupt);
  border-color: transparent;
  color: var(--pv-auf-aktion);
}
button[disabled]:hover, .knopf.gesperrt:hover {
  background: var(--pv-gesperrt-flaeche); border-color: var(--pv-linie); color: var(--pv-gesperrt-text);
}
button.haupt[disabled]:hover, .knopf.haupt.gesperrt:hover {
  background: var(--pv-gesperrt-haupt); color: var(--pv-auf-aktion);
}

.knopfzeile { display: flex; align-items: center; gap: var(--pv-raum-4); flex-wrap: wrap; }
.knopfzeile .notiz { font-size: var(--pv-tx-leise); line-height: var(--pv-tx-leise-zh); color: var(--pv-text-leise); }

/* Drei Punkte statt eines Kreisels: der Knopf behält seine Breite. */
.puls { display: inline-flex; gap: 3px; }
.puls i {
  width: 4px; height: 4px; border-radius: var(--pv-r-pille);
  background: currentColor;
  animation: pv-puls var(--pv-d-licht) infinite;
}
.puls i:nth-child(2) { animation-delay: var(--pv-d-kurz); }
.puls i:nth-child(3) { animation-delay: var(--pv-d-320); }

/* --- Zustandsmarke ------------------------------------------------------ */
.marke-zustand {
  display: inline-flex; align-items: center; gap: var(--pv-raum-2);
  height: var(--pv-h-kapsel);
  padding: 0 var(--pv-raum-3);
  border-radius: var(--pv-r-pille);
  font-size: var(--pv-tx-leise);
  font-weight: var(--pv-gew-halb);
  white-space: nowrap;
}
.marke-zustand::before { content: ""; width: 6px; height: 6px; border-radius: var(--pv-r-pille); background: currentColor; }
.marke-zustand.erfolg  { background: var(--pv-erfolg-flaeche);  border: 1px solid var(--pv-erfolg-rahmen);  color: var(--pv-erfolg-text); }
.marke-zustand.warnung { background: var(--pv-achtung-flaeche); border: 1px solid var(--pv-achtung-rahmen); color: var(--pv-achtung-text); }
.marke-zustand.fehler  { background: var(--pv-warnung-flaeche); border: 1px solid var(--pv-warnung-rahmen); color: var(--pv-warnung-text); }
.marke-zustand.ruhe    { background: var(--pv-flaeche-hoch);    border: 1px solid var(--pv-linie);          color: var(--pv-text-leise); }

/* --- Verlauf ------------------------------------------------------------ */
.abschnitt { display: flex; flex-direction: column; gap: var(--pv-raum-4);
             border-top: 1px solid var(--pv-linie); padding-top: var(--pv-raum-6); }

.verlauf {
  background: var(--pv-flaeche);
  border: 1px solid var(--pv-linie);
  border-radius: var(--pv-r-karte);
  overflow: hidden;
}
.verlauf .reihe {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 150px 150px minmax(0, 220px);
  gap: var(--pv-raum-4);
  align-items: center;
  padding: var(--pv-raum-4) var(--pv-raum-5);
  border-bottom: 1px solid var(--pv-linie);
}
.verlauf .reihe:last-child { border-bottom: 0; }
.verlauf .reihe.neu { background: var(--pv-aktiv-flaeche); }
.verlauf .was { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.verlauf .was b {
  font-size: var(--pv-tx-bedienung); font-weight: var(--pv-tx-bedienung-gew); color: var(--pv-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.verlauf .was span {
  font-size: var(--pv-tx-leise); line-height: var(--pv-tx-leise-zh);
  color: var(--pv-text-leise); font-variant-numeric: tabular-nums;
}
.verlauf .quelle { font-size: var(--pv-tx-leise); color: var(--pv-text-leise); }
.verlauf .tun { display: flex; gap: var(--pv-raum-2); justify-content: flex-end; }

/* --- Leerzustand --------------------------------------------------------
   Gibt es nichts zu tun, steht kein Knopf da — die Fläche sagt in einer
   Zeile, warum, und was als Nächstes passiert. */
.leerzustand {
  background: var(--pv-flaeche);
  border: 1px solid var(--pv-linie);
  border-radius: var(--pv-r-karte);
  padding: var(--pv-raum-7);
  display: flex; flex-direction: column; align-items: center; gap: var(--pv-raum-3);
  text-align: center;
}
.leerzustand b {
  font-size: var(--pv-tx-abschnitt); font-weight: var(--pv-tx-abschnitt-gew);
  line-height: var(--pv-tx-abschnitt-zh); color: var(--pv-text);
}
.leerzustand p {
  margin: 0;
  font-size: var(--pv-tx-fliess); font-weight: var(--pv-tx-fliess-gew);
  line-height: var(--pv-tx-fliess-zh); color: var(--pv-text-leise);
  max-width: var(--pv-lesebreite);
}

.fusszeile { font-size: var(--pv-tx-leise); line-height: var(--pv-tx-leise-zh); color: var(--pv-text-leise); }

/* --- Schmales Fenster (Laptop) ------------------------------------------ */
@media (max-width: 900px) {
  .verlauf .reihe { grid-template-columns: 1fr; gap: var(--pv-raum-3); }
  .verlauf .tun { justify-content: flex-start; }
  .kopf { gap: var(--pv-raum-5); }
}

/* --- Liste ---------------------------------------------------------------
   Aus `Bausteine-Tabelle.dc.html`. Ein Raster, keine <table>: die Spalten
   stehen als --spalten auf der Liste, damit jede Seite ihre eigenen setzt.
   Kein Zebrastreifen — Zeilen trennt eine Linie. Zahlen rechts und
   tabellarisch, Namen links und bis 29 Zeichen ungekürzt. */
.liste {
  --spalten: 1fr;
  background: var(--pv-flaeche);
  border: 1px solid var(--pv-linie);
  border-radius: var(--pv-r-karte);
  overflow: hidden;
}
.liste .kopfzeile, .liste .zeile, .liste .summe {
  display: grid;
  grid-template-columns: var(--spalten);
  gap: var(--pv-raum-4);
  align-items: center;
  padding: var(--pv-raum-3) var(--pv-raum-5);
}
.liste .kopfzeile {
  background: var(--pv-flaeche-hoch);
  border-bottom: 1px solid var(--pv-linie);
  font-size: var(--pv-tx-klein);
  font-weight: var(--pv-tx-klein-gew);
  line-height: var(--pv-tx-klein-zh);
  letter-spacing: var(--pv-tx-klein-sperrung);
  color: var(--pv-text-leise);
  text-transform: uppercase;
}
.liste .zeile { border-bottom: 1px solid var(--pv-linie); font-size: var(--pv-tx-fliess);
                line-height: var(--pv-tx-fliess-zh); color: var(--pv-text); }
.liste .zeile:last-child { border-bottom: 0; }
.liste .zeile:hover { background: var(--pv-flaeche-hoch); }
.liste .zeile.gewaehlt { background: var(--pv-aktiv-flaeche); border-bottom-color: var(--pv-aktiv-rahmen); }
.liste .zeile.gesperrt { background: var(--pv-gesperrt-flaeche); color: var(--pv-gesperrt-text); }
.liste .summe {
  background: var(--pv-flaeche-hoch);
  border-top: 1px solid var(--pv-linie);
  font-size: var(--pv-tx-bedienung);
  font-weight: var(--pv-tx-bedienung-gew);
}
/* Der Grund steht als zweite Zeile unter dem Namen, nicht in einer Spalte. */
.liste .mit-grund { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.liste .grund { font-size: var(--pv-tx-leise); line-height: var(--pv-tx-leise-zh); color: var(--pv-text-leise); }
.liste .rechts { text-align: right; font-variant-numeric: tabular-nums; }
.liste .still { color: var(--pv-text-leise); }

/* --- Formularfeld -------------------------------------------------------
   Beschriftung, Feld, Hinweis — untereinander, nie nebeneinander. */
.feld { display: flex; flex-direction: column; gap: var(--pv-raum-2); }
.feld > label, label.feldname {
  font-size: var(--pv-tx-leise);
  line-height: var(--pv-tx-leise-zh);
  color: var(--pv-text-leise);
}
select, input[type="date"] {
  height: var(--pv-h-haupt);
  padding: 0 var(--pv-raum-4);
  border-radius: var(--pv-r-eingabegruppe);
  border: 1px solid transparent;
  background: var(--pv-flaeche-hoch);
  font-family: var(--pv-schrift);
  font-size: var(--pv-tx-fliess);
  color: var(--pv-text);
  transition: background var(--pv-d-kurz) var(--pv-k-zustand),
              border-color var(--pv-d-kurz) var(--pv-k-zustand);
}
select:hover, input[type="date"]:hover { background: var(--pv-flaeche); border-color: var(--pv-linie-ueber); }
select:focus, input[type="date"]:focus { background: var(--pv-flaeche); border-color: var(--pv-aktiv-rahmen); }

.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--pv-raum-4); }

/* --- Aufklapper ---------------------------------------------------------- */
details.karte > summary {
  cursor: pointer;
  font-size: var(--pv-tx-kartentitel);
  font-weight: var(--pv-tx-kartentitel-gew);
  line-height: var(--pv-tx-kartentitel-zh);
  color: var(--pv-text);
}
details.karte > summary::marker { color: var(--pv-text-leise); }
details.karte[open] > summary { margin-bottom: var(--pv-raum-3); }

/* Das Logo steht auf dunklem Grund: neun von elf Logos sind weiss und waeren
   auf --pv-flaeche unsichtbar. */
.logo-platz {
  display: inline-grid; place-items: center;
  width: 60px; height: 60px;
  border-radius: var(--pv-r-knopf);
  background: var(--pv-folie-grund);
}
.logo-platz img { max-width: 46px; max-height: 46px; }

/* --- Kennzahl ------------------------------------------------------------ */
.kennzahl {
  font-size: var(--pv-tx-leitzahl);
  font-weight: var(--pv-tx-leitzahl-gew);
  line-height: var(--pv-tx-leitzahl-zh);
  color: var(--pv-text);
  font-variant-numeric: tabular-nums;
}

/* --- Vorschau: Seitenkopf, Folienraster, Großansicht ---------------------
   Aus `Oberflaeche-Vorschau.dc.html` (Lauf 3). */

/* Eigene Leiste unter der Kopfzeile: Titel links, Handlungen rechts. */
.seitenleiste {
  height: var(--pv-k-seitenkopf);
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--pv-raum-4);
  padding: 0 var(--pv-raum-6);
  background: var(--pv-flaeche);
  border-bottom: 1px solid var(--pv-linie);
  flex-wrap: wrap;
}
.seitenleiste .titel { display: flex; align-items: baseline; gap: var(--pv-raum-4); min-width: 0; }
.seitenleiste .titel b {
  font-size: var(--pv-tx-seitentitel);
  font-weight: var(--pv-tx-seitentitel-gew);
  line-height: var(--pv-tx-seitentitel-zh);
  color: var(--pv-text);
}
.seitenleiste .titel span {
  font-size: var(--pv-tx-leise); line-height: var(--pv-tx-leise-zh);
  color: var(--pv-text-leise); font-variant-numeric: tabular-nums;
}
.seitenleiste .tun { display: flex; align-items: center; gap: var(--pv-raum-3); }
.seitenleiste .tun form { display: contents; }

/* Rückfragen — eine Karte mit eigenem Rahmen, nicht rot, sondern Achtung:
   die Folien sind gebaut und vorführbar, Preview will nur wissen, wer gemeint ist. */
.rueckfragen { background: var(--pv-flaeche); border: 1px solid var(--pv-achtung-rahmen);
               border-radius: var(--pv-r-karte); overflow: hidden; }
.rueckfragen > .kopf-band {
  display: flex; gap: var(--pv-raum-3);
  padding: var(--pv-raum-4) var(--pv-raum-5);
  background: var(--pv-achtung-flaeche);
  border-bottom: 1px solid var(--pv-achtung-rahmen);
  font-size: var(--pv-tx-fliess); line-height: var(--pv-tx-fliess-zh); color: var(--pv-text);
}
.rueckfragen > .kopf-band::before {
  content: ""; width: 6px; height: 6px; flex: none; margin-top: 7px;
  border-radius: var(--pv-r-pille); background: var(--pv-achtung-text);
}
.rueckfragen > .kopf-band b { font-weight: var(--pv-gew-halb); color: var(--pv-achtung-text); }
.rueckfragen .frage {
  display: flex; align-items: center; gap: var(--pv-raum-4);
  padding: var(--pv-raum-4) var(--pv-raum-5);
  border-bottom: 1px solid var(--pv-linie); flex-wrap: wrap;
}
.rueckfragen .frage:last-child { border-bottom: 0; }
.rueckfragen .kuerzel {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  border-radius: var(--pv-r-pille);
  background: var(--pv-flaeche-hoch);
  border: 1px dashed var(--pv-linie-ueber);
  color: var(--pv-text-leise);
  font-size: var(--pv-tx-bedienung); font-weight: var(--pv-gew-halb);
}
.rueckfragen .wer { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.rueckfragen .wer b { font-size: var(--pv-tx-bedienung); font-weight: var(--pv-tx-bedienung-gew); color: var(--pv-text); }
.rueckfragen .wer span { font-size: var(--pv-tx-leise); line-height: var(--pv-tx-leise-zh); color: var(--pv-text-leise); }
.rueckfragen .wahl { display: flex; gap: var(--pv-raum-2); flex-wrap: wrap; align-items: center; }

/* Folienraster — 16:9 aus dem Token, nicht aus einer Zahl. */
.folienraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
                gap: var(--pv-raum-5); }
.folienraster .kachel { display: flex; flex-direction: column; gap: var(--pv-raum-2); min-width: 0; }
.folienraster .kachel > button {
  position: relative; padding: 0; height: auto;
  border: 1px solid var(--pv-linie);
  border-radius: var(--pv-r-kachel);
  background: var(--pv-flaeche);
  aspect-ratio: var(--pv-kachel-verhaeltnis);
  width: 100%; overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow var(--pv-d-200) var(--pv-k-zustand),
              border-color var(--pv-d-200) var(--pv-k-zustand);
}
.folienraster .kachel > button:hover {
  box-shadow: var(--pv-erhebung-2); border-color: var(--pv-linie-ueber); background: var(--pv-flaeche);
}
.folienraster .kachel > button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.folienraster .kachel.rueckfrage > button { border-color: var(--pv-achtung-rahmen); }
.folienraster .kachel .fahne {
  position: absolute; top: var(--pv-raum-2); right: var(--pv-raum-2);
}
.folienraster .kachel .bezeichnung { display: flex; gap: var(--pv-raum-2); min-width: 0; }
.folienraster .kachel .bezeichnung .nr {
  flex: none; font-size: var(--pv-tx-leise); color: var(--pv-text-leise);
  font-variant-numeric: tabular-nums;
}
.folienraster .kachel .bezeichnung .wort {
  min-width: 0; font-size: var(--pv-tx-leise); line-height: var(--pv-tx-leise-zh);
  color: var(--pv-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.folienraster .einschieben {
  aspect-ratio: var(--pv-kachel-verhaeltnis);
  border-radius: var(--pv-r-kachel);
  border: 1px dashed var(--pv-linie-ueber);
  background: var(--pv-flaeche);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: var(--pv-tx-bedienung); font-weight: var(--pv-tx-bedienung-gew); color: var(--pv-text-leise);
  transition: border-color var(--pv-d-kurz) var(--pv-k-zustand),
              background var(--pv-d-kurz) var(--pv-k-zustand);
}
.folienraster .einschieben:hover { border-color: var(--pv-aktiv-rahmen); background: var(--pv-aktiv-flaeche); }

/* Großansicht — der Schleier nimmt den Foliengrund auf, damit die Folie
   nicht auf einem fremden Schwarz liegt. color-mix statt eines zweiten
   Farbwerts: die Datei kennt kein Hex. */
.buehne-voll {
  position: fixed; inset: 0; z-index: var(--pv-ebene-dialog);
  background: color-mix(in srgb, var(--pv-folie-grund) 86%, transparent);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--pv-raum-5); padding: var(--pv-raum-6);
}
.buehne-voll[hidden] { display: none; }
.buehne-voll .band {
  width: 100%; max-width: 1040px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--pv-raum-4);
  font-size: var(--pv-tx-leise); line-height: var(--pv-tx-leise-zh);
  color: var(--pv-folie-auf-grund); font-variant-numeric: tabular-nums;
}
.buehne-voll .band b { font-size: var(--pv-tx-bedienung); font-weight: var(--pv-tx-bedienung-gew); }
.buehne-voll .mitte { width: 100%; max-width: 1040px; display: flex; align-items: center; gap: var(--pv-raum-4); }
.buehne-voll .blatt {
  flex: 1; min-width: 0;
  aspect-ratio: var(--pv-kachel-verhaeltnis);
  border-radius: var(--pv-r-kachel);
  background: var(--pv-folie-grund);
  box-shadow: var(--pv-erhebung-3);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.buehne-voll .blatt img { width: 100%; height: 100%; object-fit: contain; display: block; }
.buehne-voll button {
  background: transparent;
  color: var(--pv-folie-auf-grund);
  border: 1px solid color-mix(in srgb, var(--pv-folie-auf-grund) 28%, transparent);
}
.buehne-voll button:hover {
  background: color-mix(in srgb, var(--pv-folie-auf-grund) 12%, transparent);
  border-color: color-mix(in srgb, var(--pv-folie-auf-grund) 48%, transparent);
  color: var(--pv-folie-auf-grund);
}
.buehne-voll button.pfeil {
  width: var(--pv-h-haupt); height: var(--pv-h-haupt); flex: none; padding: 0;
  border-radius: var(--pv-r-pille); font-size: var(--pv-tx-abschnitt);
}

/* --- Profil oben rechts -------------------------------------------------
   Ein Aufklapper, kein Menue-Rahmenwerk. Heute traegt er nur die Optik;
   sobald es Konten gibt, kommen Abmelden und Einstellungen dazu. */
.profil { margin-left: auto; position: relative; }
.profil > summary {
  list-style: none;
  display: inline-flex; align-items: center; gap: var(--pv-raum-2);
  height: var(--pv-h-standard);
  padding: 0 var(--pv-pad-standard) 0 var(--pv-raum-1);
  border-radius: var(--pv-r-pille);
  border: 1px solid var(--pv-linie);
  background: var(--pv-flaeche);
  color: var(--pv-text-leise);
  cursor: pointer;
  transition: background var(--pv-d-kurz) var(--pv-k-zustand),
              border-color var(--pv-d-kurz) var(--pv-k-zustand);
}
.profil > summary::-webkit-details-marker { display: none; }
.profil > summary:hover { background: var(--pv-aktiv-flaeche); border-color: var(--pv-aktiv-rahmen); }
.profil .zeichen {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex: none;
  border-radius: var(--pv-r-pille);
  background: var(--pv-aktion);
  color: var(--pv-auf-aktion);
  font-size: var(--pv-tx-leise);
  font-weight: var(--pv-gew-halb);
}
.profil .klappe {
  position: absolute; right: 0; top: calc(100% + var(--pv-raum-2));
  z-index: var(--pv-ebene-aufklapper);
  min-width: 240px;
  display: flex; flex-direction: column; gap: var(--pv-raum-3);
  padding: var(--pv-raum-4);
  border-radius: var(--pv-r-aufklapper);
  border: 1px solid var(--pv-linie);
  background: var(--pv-flaeche);
  box-shadow: var(--pv-erhebung-2);
}
/* Segmentschalter: ein eingesenkter Trog, der gewaehlte Abschnitt liegt darauf. */
.schalter {
  display: flex; gap: var(--pv-raum-1);
  padding: 3px;
  border-radius: var(--pv-r-bedienzeile);
  background: var(--pv-senke);
}
.schalter button {
  flex: 1;
  height: 26px; padding: 0 var(--pv-pad-standard);
  border: 0; border-radius: var(--pv-r-chip);
  background: transparent;
  color: var(--pv-text-leise);
}
.schalter button:hover { background: transparent; color: var(--pv-text); border-color: transparent; }
.schalter button[aria-pressed="true"] { background: var(--pv-flaeche); color: var(--pv-text); }

/* --- Das Tor: Anmelden und Passwort setzen -------------------------------
   Aus `Anmeldung.dc.html` (Lauf 12). Eine eigene Seite ohne Kopfzeile —
   wer hier steht, ist noch niemand. */
body.tor {
  position: relative; overflow-x: hidden;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
}

.tor-mitte {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
  margin: 0 auto;
  padding: var(--pv-raum-7) var(--pv-raum-6);
  display: flex; flex-direction: column; gap: var(--pv-raum-6);
}
.tor-kopf { display: flex; flex-direction: column; gap: var(--pv-raum-2);
            align-items: center; text-align: center; }
.tor-marke {
  font-size: 36px;
  font-weight: var(--pv-gew-fett);
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--pv-text);
}
.tor-marke b { font-weight: inherit; color: var(--pv-aktion); }
.tor-karte { padding: var(--pv-raum-6); gap: var(--pv-raum-5); }
.tor-karte .feld > label.stark, .tor-karte label.stark {
  font-weight: var(--pv-gew-halb); color: var(--pv-text);
}
.breit { width: 100%; }
.mittig { text-align: center; }
/* Die Schriftrolle „Abschnitt" aus dem Bausteinblatt — eine ÜBERSCHRIFT.
   Sie hiess hier bis zum 18.09.2026 `.abschnitt` wie der Container darunter
   und griff damit auf jeden Abschnitt: gemessen 18px/700 statt 13,5px/400,
   vererbt an jeden Text darin, der keine eigene Groesse setzt. Zwei Dinge,
   ein Name — deshalb heisst die Schriftrolle jetzt anders. */
.abschnitt-titel { font-size: var(--pv-tx-abschnitt); font-weight: var(--pv-tx-abschnitt-gew);
                   line-height: var(--pv-tx-abschnitt-zh); color: var(--pv-text); }

/* Das Auge im Passwortfeld. */
.mit-auge { position: relative; display: flex; align-items: center; }
.mit-auge input { flex: 1; min-width: 0; padding-right: 44px; }
.auge {
  position: absolute; right: 4px;
  width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: var(--pv-r-knopf);
  background: transparent; color: var(--pv-text-leise);
}
.auge:hover { background: var(--pv-flaeche-hoch); border-color: transparent; color: var(--pv-text); }
.auge svg { width: 18px; height: 18px; }
.auge[aria-pressed="true"] { color: var(--pv-aktion); }
.auge[aria-pressed="true"] .strich { stroke-opacity: 0; }

/* Die Passwortregeln haken sich beim Tippen ab. */
.regeln { list-style: none; margin: 0; padding: 0;
          display: flex; flex-direction: column; gap: var(--pv-raum-2); }
.regeln li {
  display: flex; align-items: baseline; gap: var(--pv-raum-3);
  font-size: var(--pv-tx-fliess); line-height: var(--pv-tx-fliess-zh);
  color: var(--pv-text-leise);
  transition: color var(--pv-d-kurz) var(--pv-k-zustand);
}
.regeln li .haken { width: 14px; flex: none; text-align: center; font-weight: var(--pv-gew-halb); }
.regeln li.erfuellt { color: var(--pv-erfolg-text); }

/* Die kleine Rakete, die frueher ueber der Anmeldekarte entlangflog, ist
   entfallen: Tobias wollte am 18.09.2026 "etwas Grosses, aber transparent im
   Hintergrund" — das ist `.tor-rakete` weiter unten. Ihr CSS stand hier noch
   und trug dieselben Keyframe-Namen wie der Willkommen-Flug; die spaetere
   Fassung gewann und niemand haette es gesehen. `test_kein_keyframe_doppelt`
   faengt das jetzt ab. */

/* Der Kopf des Profil-Aufklappers: wer bin ich, welche Rolle. */
.profil .wer-block { display: flex; flex-direction: column; gap: var(--pv-raum-2); align-items: flex-start; }
.profil .wer-block b { font-size: var(--pv-tx-bedienung); font-weight: var(--pv-tx-bedienung-gew); color: var(--pv-text); }
.profil hr { width: 100%; height: 1px; margin: 0; border: 0; background: var(--pv-linie); }
.profil form { display: contents; }
/* Abmelden ist die einzige Stelle, an der Rot keine Warnung ist, sondern ein
   Weg hinaus — deshalb ohne Flaeche und ohne Rahmen. */
.abmelden { justify-content: flex-start; border-color: transparent; background: transparent;
            color: var(--pv-warnung-text); }
.abmelden:hover { background: var(--pv-warnung-flaeche); border-color: transparent;
                  color: var(--pv-warnung-text); }

/* Der Weg von der Folienkachel zum Aenderungsformular darunter. */
.folienraster .bezeichnung .aendern {
  margin-left: auto;
  font-size: var(--pv-tx-leise);
  color: var(--pv-aktion);
  text-decoration: none;
}
.folienraster .bezeichnung .aendern:hover { text-decoration: underline; }

/* --- Kontenverwaltung ---------------------------------------------------
   Aus `Kontenverwaltung.dc.html` (Lauf 12). */
.zugang-karte { border-color: var(--pv-erfolg-rahmen); }
.link-zeile { display: flex; gap: var(--pv-raum-3); align-items: center; }
.link-zeile input {
  flex: 1; min-width: 0; height: var(--pv-h-haupt); padding: 0 var(--pv-raum-4);
  border-radius: var(--pv-r-knopf); border: 1px solid var(--pv-linie);
  background: var(--pv-flaeche-hoch); color: var(--pv-text);
  font-family: var(--pv-schrift); font-size: var(--pv-tx-bedienung);
}
.link-zeile .haupt { flex: none; }

/* Rollenwahl beim Anlegen — zwei Karten-Pillen mit Radio dahinter. */
.rollenwahl { display: flex; gap: var(--pv-raum-3); flex-wrap: wrap; }
.rolle-pille {
  flex: 1; min-width: 240px; display: flex; align-items: flex-start; gap: var(--pv-raum-3);
  padding: var(--pv-raum-4);
  border-radius: var(--pv-r-knopf); border: 1px solid var(--pv-linie);
  background: var(--pv-flaeche); cursor: pointer;
  transition: border-color var(--pv-d-kurz) var(--pv-k-zustand),
              background var(--pv-d-kurz) var(--pv-k-zustand);
}
.rolle-pille:hover { border-color: var(--pv-aktiv-rahmen); background: var(--pv-aktiv-flaeche); }
.rolle-pille input { margin-top: 3px; }
/* Haken und Punkte tragen die Aktionsfarbe, nicht das Blau des Browsers. */
input[type="checkbox"], input[type="radio"] { accent-color: var(--pv-aktion); }
.rolle-pille span { display: flex; flex-direction: column; gap: 2px; }
.rolle-pille b { font-size: var(--pv-tx-bedienung); font-weight: var(--pv-gew-halb); color: var(--pv-text); }
.rolle-pille em { font-style: normal; font-size: var(--pv-tx-leise); color: var(--pv-text-leise); }
.rolle-pille:has(input:checked) { border-color: var(--pv-aktion); background: var(--pv-aktiv-flaeche); }

/* Die Aktionsspalte je Kontozeile bleibt kompakt. */
.konten-liste .tun { align-items: center; }
.konten-liste .tun form { display: contents; }
.konten-liste .tun select { height: var(--pv-h-standard); }
.konto-name { display: flex; align-items: center; gap: var(--pv-raum-2); min-width: 0; }
.konto-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Das Tor: große, transparente Rakete im Hintergrund -----------------
   Sie ruht auf der Anmeldeseite (Tiefe, kein Lärm) und fliegt beim
   erfolgreichen Einloggen auf willkommen.html von links nach rechts durch. */
.tor-rakete {
  position: fixed; left: 50%; top: 44%;
  width: 900px; height: 460px; transform: translate(-50%, -50%);
  z-index: 0; pointer-events: none;
  opacity: .05;
}
.tor-rakete .rumpf   { fill: var(--pv-folie-glanz); }
.tor-rakete .fluegel { fill: var(--pv-aktion); }
.tor-rakete .fenster { fill: var(--pv-flaeche); }
/* --- Willkommen: der Flug nach dem Einloggen ---------------------------- */
body.willkommen {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; position: relative; overflow: hidden;
}
.willkommen-mitte {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: var(--pv-raum-2);
  text-align: center;
}
.willkommen .flug {
  position: fixed; left: 0; top: 50%; width: 100%; height: 460px;
  margin-top: -230px; z-index: 1; pointer-events: none;
}
.willkommen .flug .rakete {
  position: absolute; top: 50%; left: 0; width: 720px; height: 360px;
  margin-top: -180px;
  opacity: .16;
  /* OFFEN, Tobias vorgelegt (19.09.2026): 1500 ms steht auf keiner der zehn
     gesperrten Dauern (90/160/200/220/260/300/320/360/420/620 ms). Der Flug
     ist laenger als alles, was die Achse kennt — entweder bekommt sie einen
     Wert dafuer, oder der Flug wird kuerzer. Bis dahin bleibt die Zahl
     stehen und ist hier benannt. */
  animation: pv-tor-flug 1500ms var(--pv-k-aus) both;
}
.willkommen .flug .strahl {
  position: absolute; top: 50%; left: 0; height: 8px; width: 460px;
  margin-top: -4px; border-radius: var(--pv-r-pille);
  background: var(--pv-folie-strahl); opacity: .14;
  animation: pv-tor-strahl 1500ms var(--pv-k-aus) both;   /* siehe oben */
}
.willkommen .flug .rumpf   { fill: var(--pv-folie-glanz); }
.willkommen .flug .fluegel { fill: var(--pv-aktion); }
.willkommen .flug .fenster { fill: var(--pv-flaeche); }
.willkommen .flug .flamme  { fill: var(--pv-folie-strahl); }

@keyframes pv-tor-flug {
  0%   { transform: translateX(-60vw); opacity: 0; }
  20%  { opacity: .18; }
  80%  { opacity: .18; }
  100% { transform: translateX(120vw); opacity: 0; }
}
@keyframes pv-tor-strahl {
  0%   { transform: translateX(-60vw) scaleX(.2); opacity: 0; }
  20%  { opacity: .14; }
  80%  { opacity: .14; }
  100% { transform: translateX(120vw) scaleX(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .willkommen .flug { display: none; }
}

/* --- Fotos nachtragen (Lauf 8) ------------------------------------------ */
.ohne-foto { list-style: none; margin: 0; padding: 0;
             display: flex; flex-direction: column; gap: var(--pv-raum-3); }
.ohne-foto li {
  display: flex; align-items: center; gap: var(--pv-raum-3);
  font-size: var(--pv-tx-bedienung); color: var(--pv-text);
}
.ohne-foto .kuerzel {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: none;
  border-radius: var(--pv-r-pille);
  background: var(--pv-flaeche-hoch); border: 1px dashed var(--pv-linie-ueber);
  font-size: var(--pv-tx-leise); font-weight: var(--pv-gew-halb); color: var(--pv-text-leise);
}

/* --- Einstellungen (Lauf 12) --------------------------------------------
   Eine Seite in Abschnitten, links eine Sprungliste, die mitwandert. */
.einstellungen {
  display: grid; grid-template-columns: 190px minmax(0, 1fr);
  gap: var(--pv-raum-7); align-items: start;
}
.sprungliste {
  position: sticky; top: var(--pv-raum-6);
  display: flex; flex-direction: column; gap: var(--pv-raum-2);
}
.sprungliste a {
  display: flex; align-items: center; gap: var(--pv-raum-3);
  padding: var(--pv-raum-2) var(--pv-raum-3);
  border-radius: var(--pv-r-knopf);
  font-size: var(--pv-tx-bedienung); font-weight: var(--pv-tx-bedienung-gew);
  color: var(--pv-text);
  transition: background var(--pv-d-kurz) var(--pv-k-zustand);
}
.sprungliste a:hover { background: var(--pv-flaeche-hoch); color: var(--pv-text); }
.sprungliste a i {
  width: 3px; height: 16px; flex: none; border-radius: var(--pv-r-pille);
  background: transparent;
}
.sprungliste a.aktiv i { background: var(--pv-aktion-marke); }

.abschnitte { display: flex; flex-direction: column; gap: var(--pv-raum-7); min-width: 0; }
.abschnitte section { display: flex; flex-direction: column; gap: var(--pv-raum-4);
                      scroll-margin-top: 80px; }
.abschnittkopf { display: flex; align-items: baseline; justify-content: space-between;
                 gap: var(--pv-raum-3); flex-wrap: wrap; }

/* Auswahlkarten (Startseite). */
.wahlkarten { display: flex; flex-direction: column; gap: var(--pv-raum-2); }
.wahlkarte {
  display: flex; align-items: flex-start; gap: var(--pv-raum-3);
  padding: var(--pv-raum-3) var(--pv-raum-4);
  border-radius: var(--pv-r-knopf); border: 1px solid var(--pv-linie);
  background: var(--pv-flaeche); cursor: pointer;
  transition: border-color var(--pv-d-kurz) var(--pv-k-zustand),
              background var(--pv-d-kurz) var(--pv-k-zustand);
}
.wahlkarte:hover { border-color: var(--pv-aktiv-rahmen); }
.wahlkarte:has(input:checked) { border-color: var(--pv-aktion); background: var(--pv-aktiv-flaeche); }
.wahlkarte input { margin-top: 3px; accent-color: var(--pv-aktion); }
.wahlkarte span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wahlkarte b { font-size: var(--pv-tx-bedienung); font-weight: var(--pv-gew-halb); color: var(--pv-text); }
.wahlkarte em { font-style: normal; font-size: var(--pv-tx-leise);
                line-height: var(--pv-tx-leise-zh); color: var(--pv-text-leise); }

/* Optik: drei Miniaturen. Man sieht, was man waehlt, bevor man es waehlt. */
.optikwahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
             gap: var(--pv-raum-4); }
.optikkachel {
  display: flex; flex-direction: column; gap: var(--pv-raum-3);
  padding: var(--pv-raum-3); height: auto;
  border-radius: var(--pv-r-eingabegruppe);
  border: 2px solid var(--pv-linie); background: var(--pv-flaeche);
  cursor: pointer;
}
.optikkachel:hover { border-color: var(--pv-aktiv-rahmen); background: var(--pv-flaeche); }
.optikkachel[aria-pressed="true"] { border-color: var(--pv-aktion); }
.optikkachel .schau {
  aspect-ratio: var(--pv-kachel-verhaeltnis); width: 100%;
  border-radius: var(--pv-r-kachel); overflow: hidden;
  border: 1px solid var(--pv-linie); background: var(--pv-grund);
  display: flex; flex-direction: column; gap: 5px; padding: 8px;
}
.optikkachel .schau.geteilt { flex-direction: row; gap: 0; padding: 0; }
.optikkachel .schau.geteilt > span {
  flex: 1; background: var(--pv-grund);
  display: flex; flex-direction: column; gap: 5px; padding: 6px;
}
/* OFFEN, Tobias vorgelegt: 2px und 4px stehen auf keinem der neun gesperrten
   Radien (6/8/9/10/12/14/16/22/999). Es sind die Streifen in der
   Optik-Vorschau, also Miniaturen einer Oberflaeche — der kleinste Radius der
   Achse (6px) macht aus einem 11px hohen Streifen eine Pille. */
.optikkachel .schau i { display: block; border-radius: 2px; flex: none; }
.optikkachel .schau .kopf { height: 5px; width: 60%; background: var(--pv-text); }
.optikkachel .schau .zeile { height: 5px; width: 80%; background: var(--pv-text-leise); }
.optikkachel .schau .zeile.lang { width: 92%; }
.optikkachel .schau .feld {
  height: 14px; width: 100%; border-radius: 4px;   /* siehe oben */
  background: var(--pv-flaeche); border: 1px solid var(--pv-linie);
}
.optikkachel .schau .knopf {
  margin-top: auto; height: 11px; width: 40px; border-radius: 4px;   /* siehe oben */
  background: var(--pv-aktion); border: 1px solid var(--pv-aktion-rand);
}
.optikkachel .marke { display: flex; align-items: center; justify-content: space-between;
                      gap: var(--pv-raum-2); width: 100%; }
.optikkachel .marke b { font-size: var(--pv-tx-bedienung); font-weight: var(--pv-gew-halb);
                        color: var(--pv-text); }
.optikkachel .marke em { font-style: normal; font-size: var(--pv-tx-leise);
                         color: var(--pv-text-leise); white-space: nowrap; }

@media (max-width: 900px) {
  .einstellungen { grid-template-columns: 1fr; }
  .sprungliste { position: static; flex-direction: row; flex-wrap: wrap; }
}
.klappe-eintrag {
  display: flex; align-items: center; height: var(--pv-h-standard);
  padding: 0 var(--pv-raum-3); border-radius: var(--pv-r-knopf);
  font-size: var(--pv-tx-bedienung); font-weight: var(--pv-tx-bedienung-gew);
  color: var(--pv-text);
}
.klappe-eintrag:hover { background: var(--pv-flaeche-hoch); color: var(--pv-text); }
