/* Buero-Dashboard. Alle Farben und Abstaende laufen ueber die Variablen in :root,
   damit sich das Erscheinungsbild an einer Stelle anpassen laesst. */

:root {
  color-scheme: light dark;

  --flaeche: #f4f5f7;
  --karte: #ffffff;
  --karte-leise: #f8f9fb;
  --linie: #e1e5ea;
  --linie-stark: #c9d0d8;
  --text: #17212b;
  --text-leise: #5a6775;
  --akzent: #1d5fa6;
  --akzent-stark: #164a83;
  --akzent-flaeche: #e7f0fa;
  --auf-akzent: #ffffff;
  --marke: #f2b705;

  --ok: #17693f;
  --ok-flaeche: #e3f4ea;
  --warn: #8a5a00;
  --warn-flaeche: #fdf0d2;
  --bad: #a52a22;
  --bad-flaeche: #fde7e5;
  --info: #1d5fa6;
  --info-flaeche: #e7f0fa;
  --neutral: #55616e;
  --neutral-flaeche: #eceff2;

  --radius: 10px;
  --radius-klein: 6px;
  --schatten: 0 1px 2px rgba(23, 33, 43, 0.06), 0 1px 1px rgba(23, 33, 43, 0.04);
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --flaeche: #12171d;
    --karte: #1a2129;
    --karte-leise: #202832;
    --linie: #2c3641;
    --linie-stark: #3d4956;
    --text: #e8edf2;
    --text-leise: #9aa7b5;
    --akzent: #6fb0f2;
    --akzent-stark: #94c5f7;
    --akzent-flaeche: #1c3149;
    --auf-akzent: #0d1620;

    --ok: #6fd39b;
    --ok-flaeche: #163325;
    --warn: #f1c25c;
    --warn-flaeche: #3a2e10;
    --bad: #f39a92;
    --bad-flaeche: #401c19;
    --info: #8fc1f5;
    --info-flaeche: #1c3149;
    --neutral: #a9b4c0;
    --neutral-flaeche: #27303a;

    --schatten: none;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--flaeche);
  color: var(--text);
  font: 15px/1.5 var(--schrift);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-size: 1.05rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
}

h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-leise);
  margin-top: 18px;
}

a {
  color: var(--akzent);
  text-underline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
  border-radius: 4px;
}

.icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -3px;
}

.symbole {
  position: absolute;
}

.leise {
  color: var(--text-leise);
}

.klein {
  font-size: 0.85rem;
}

.nowrap {
  white-space: nowrap;
}

.nur-vorleser {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprung {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--karte);
  border-radius: var(--radius-klein);
}

.sprung:focus {
  top: 12px;
}

/* Rahmen: Navigation links, Inhalt rechts */

.rahmen {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.leiste {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 14px;
  background: var(--karte);
  border-right: 1px solid var(--linie);
}

.marke {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  line-height: 1.15;
}

.marke small {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-leise);
}

.marke-zeichen {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #17212b 50%, transparent 50%) 0 0 / 10px 5px repeat-x,
    linear-gradient(90deg, transparent 50%, #17212b 50%) 0 5px / 10px 5px repeat-x,
    var(--marke);
  background-origin: content-box;
  padding: 10px 0;
}

.marke-gross {
  padding: 0;
  margin-bottom: 20px;
}

.leiste nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.leiste nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-klein);
  color: var(--text-leise);
  font-weight: 500;
  text-decoration: none;
}

.leiste nav a:hover {
  background: var(--karte-leise);
  color: var(--text);
}

.leiste nav a[aria-current="page"] {
  background: var(--akzent-flaeche);
  color: var(--akzent-stark);
}

.zaehler {
  margin-left: auto;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--warn-flaeche);
  color: var(--warn);
  font-size: 0.78rem;
  font-weight: 650;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.leiste-fuss {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 8px 0;
  border-top: 1px solid var(--linie);
}

.konto {
  min-width: 0;
  flex: 1;
  line-height: 1.3;
}

.konto strong,
.konto span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.konto span {
  color: var(--text-leise);
  font-size: 0.82rem;
}

.inhalt {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 32px 56px;
}

.mitte {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

/* Kopfbereich einer Seite */

.kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.kopf-aktion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.zurueck {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  color: var(--text-leise);
  font-size: 0.9rem;
  text-decoration: none;
}

.zurueck:hover {
  color: var(--akzent);
}

.zeitraumwahl {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zeitraumwahl label {
  color: var(--text-leise);
  font-size: 0.85rem;
}

.betrag-gross {
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}

/* Karten und Kennzahlen */

.karte {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 20px;
  margin-bottom: 20px;
}

.karte > h2 + p,
.karte > h2 + ul,
.karte > h2 + div,
.karte > h2 + form,
.karte > h2 + ol {
  margin-top: 10px;
}

.karte.schmal {
  width: 100%;
  max-width: 380px;
  padding: 28px;
}

.karte.schmal h1 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.karte.schmal p {
  margin-bottom: 16px;
}

.anzahl {
  padding: 0 8px;
  border-radius: 999px;
  background: var(--neutral-flaeche);
  color: var(--neutral);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.kachel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 16px 18px;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}

.kachel-titel {
  color: var(--text-leise);
  font-size: 0.85rem;
}

.kachel-wert {
  font-size: 1.7rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.kachel-wert small {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-leise);
}

.kachel-hinweis {
  color: var(--text-leise);
  font-size: 0.82rem;
}

.balken {
  height: 6px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--akzent-flaeche);
  overflow: hidden;
}

.balken span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--akzent);
}

/* Zwei Spalten auf der Detailseite */

.spalten {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.spalte-haupt,
.spalte-rand {
  min-width: 0;
}

/* Filterzeile */

.filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.suchfeld {
  position: relative;
  flex: 1 1 240px;
  max-width: 360px;
}

.suchfeld .icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-leise);
}

.suchfeld input[type="search"] {
  padding-left: 34px;
}

.auswahl {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-leise);
  font-size: 0.85rem;
}

.filter-stand {
  margin-left: auto;
  color: var(--text-leise);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

/* Formularfelder und Knoepfe */

input,
select,
textarea,
button {
  font: inherit;
  color: inherit;
}

input[type="text"],
input[type="search"],
input[type="password"],
input[type="datetime-local"],
input[type="date"],
input:not([type]),
select,
textarea {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  background: var(--karte);
  border: 1px solid var(--linie-stark);
  border-radius: var(--radius-klein);
}

select {
  width: auto;
  padding-right: 28px;
}

textarea {
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-offset: 0;
  border-color: var(--akzent);
}

.feld {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.feld label {
  font-size: 0.85rem;
  font-weight: 550;
}

.feld small {
  color: var(--text-leise);
  font-size: 0.8rem;
}

.feld-fehler input,
.feld-fehler select,
.feld-fehler textarea {
  border-color: var(--bad);
}

small.fehler {
  color: var(--bad);
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 14px;
  background: var(--karte);
  border: 1px solid var(--linie-stark);
  border-radius: var(--radius-klein);
  color: var(--text);
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.knopf:hover {
  background: var(--karte-leise);
  border-color: var(--text-leise);
}

.knopf-haupt {
  background: var(--akzent);
  border-color: var(--akzent);
  color: var(--auf-akzent);
}

.knopf-haupt:hover {
  background: var(--akzent-stark);
  border-color: var(--akzent-stark);
}

.knopf-still {
  border-color: transparent;
  background: transparent;
  color: var(--text-leise);
}

.knopf-klein {
  min-height: 30px;
  padding: 3px 10px;
  font-size: 0.85rem;
}

.knopf.breit {
  width: 100%;
  margin-top: 4px;
}

.knopf:disabled,
.knopf[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Tabellen */

.tabelle-rahmen {
  /* Bezugsrahmen fuer unsichtbare Vorleser-Texte, sonst verbreitern sie die Seite. */
  position: relative;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 0 20px;
}

.tabelle {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.tabelle th,
.tabelle td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--linie);
  text-align: left;
  vertical-align: top;
}

.tabelle th:first-child,
.tabelle td:first-child {
  padding-left: 0;
}

.tabelle th:last-child,
.tabelle td:last-child {
  padding-right: 0;
}

.tabelle thead th {
  padding-top: 6px;
  padding-bottom: 8px;
  border-bottom-color: var(--linie-stark);
  color: var(--text-leise);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tabelle tbody th {
  font-weight: 600;
}

.tabelle tbody tr:hover {
  background: var(--karte-leise);
}

.tabelle tbody tr:last-child th,
.tabelle tbody tr:last-child td {
  border-bottom: 0;
}

.tabelle tfoot th,
.tabelle tfoot td {
  border-top: 1px solid var(--linie-stark);
  border-bottom: 0;
}

.tabelle .zahl,
.zahl {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.zeilenlink {
  color: var(--text);
  text-decoration: none;
}

.zeilenlink:hover {
  color: var(--akzent);
  text-decoration: underline;
}

.unter {
  display: block;
  color: var(--text-leise);
  font-size: 0.82rem;
  font-weight: 400;
}

.unter.warnung {
  color: var(--warn);
}

.unter .icon {
  width: 13px;
  height: 13px;
  margin-right: 3px;
}

/* Statusmarken: immer Symbol und Text, nie Farbe allein */

.marke-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px 2px 7px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.ton-ok {
  background: var(--ok-flaeche);
  color: var(--ok);
}

.ton-warn {
  background: var(--warn-flaeche);
  color: var(--warn);
}

.ton-info {
  background: var(--info-flaeche);
  color: var(--info);
}

.ton-neutral {
  background: var(--neutral-flaeche);
  color: var(--neutral);
}

.ton-bad {
  background: var(--bad-flaeche);
  color: var(--bad);
}

.anteil {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 4px 4px 0;
  padding: 1px 8px;
  border: 1px solid var(--linie-stark);
  border-radius: var(--radius-klein);
  font-size: 0.85rem;
  white-space: nowrap;
}

.anteil-bar {
  border-color: var(--text-leise);
  font-weight: 600;
}

.anteil-korrigiert {
  border-style: dashed;
}

.anteil-alt {
  color: var(--text-leise);
  text-decoration: line-through;
  text-decoration-color: var(--linie-stark);
}

.anteil-neu {
  border-color: var(--akzent);
  background: var(--akzent-flaeche);
  font-weight: 600;
}

.begruendung {
  min-width: 180px;
  max-width: 320px;
  overflow-wrap: anywhere;
}

.firmenwahl {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 8px;
}

.firmenwahl label {
  color: var(--text-leise);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.firmenwahl select {
  width: 100%;
}

.anteil .icon {
  width: 12px;
  height: 12px;
  color: var(--text-leise);
}

/* Listen, Faelle, Verlauf */

.liste {
  list-style: none;
  margin: 0;
  padding: 0;
}

.liste-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--linie);
}

.liste-zeile:last-child {
  border-bottom: 0;
}

.liste-text {
  flex: 1 1 180px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ersetzt {
  color: var(--text-leise);
  text-decoration: line-through;
  text-decoration-color: var(--linie-stark);
}

.fall {
  padding: 12px 0;
  border-bottom: 1px solid var(--linie);
}

.fall-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.fall p {
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.fall-aktion {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.aufklappen {
  margin-top: 14px;
}

.aufklappen summary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid var(--linie-stark);
  border-radius: var(--radius-klein);
  font-weight: 550;
  cursor: pointer;
  list-style: none;
}

.aufklappen summary::-webkit-details-marker {
  display: none;
}

.aufklappen summary::before {
  content: "+";
  margin-right: 6px;
  color: var(--text-leise);
}

.aufklappen[open] summary::before {
  content: "−";
}

.aufklappen[open] summary {
  margin-bottom: 14px;
}

.verlauf {
  list-style: none;
  margin: 0;
  padding: 0;
}

.verlauf li {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--linie);
}

.verlauf li:last-child {
  border-bottom: 0;
}

.verlauf time {
  color: var(--text-leise);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.werte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.werte dt {
  color: var(--text-leise);
  font-size: 0.82rem;
}

.werte dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Korrekturformular */

.anteilzeilen {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.anteilzeile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px auto;
  align-items: center;
  gap: 8px;
}

.anteilzeile select {
  width: 100%;
}

.anteilzeile input {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.anteilzeile small {
  grid-column: 1 / -1;
}

.einheit {
  color: var(--text-leise);
}

.summe {
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: var(--radius-klein);
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.summe-passt {
  background: var(--ok-flaeche);
  color: var(--ok);
}

.summe-falsch {
  background: var(--warn-flaeche);
  color: var(--warn);
}

/* Einstellungen: Anbindungen */

.quellen {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.quelle {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}

.quelle .knopf {
  align-self: flex-start;
  margin-top: auto;
}

.quelle-aus h2 {
  color: var(--text-leise);
}

.quelle-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gruppe {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.gruppe legend {
  padding: 0;
  margin-bottom: 8px;
  font-weight: 650;
}

.wahl {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  cursor: pointer;
}

.wahl input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--akzent);
}

.hinweis {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: var(--radius-klein);
  background: var(--info-flaeche);
  color: var(--info);
}

.hinweis .icon {
  margin-top: 3px;
}

.knopfzeile {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.knopf-gefahr {
  margin-top: 12px;
  border-color: var(--bad);
  color: var(--bad);
}

.knopf-gefahr:hover {
  background: var(--bad-flaeche);
  border-color: var(--bad);
}

.verlauf-schmal li {
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* Meldungen, leere Zustaende, Seitenwechsel */

.meldungen {
  margin-bottom: 16px;
}

.meldung {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  padding: 10px 14px;
  border-radius: var(--radius-klein);
  background: var(--ok-flaeche);
  color: var(--ok);
  font-weight: 550;
}

.meldung .icon {
  margin-top: 3px;
}

.meldung-error {
  background: var(--bad-flaeche);
  color: var(--bad);
}

.leer {
  padding: 36px 12px;
  text-align: center;
}

.leer h2 {
  justify-content: center;
  margin-bottom: 6px;
}

.leer .knopf {
  margin-top: 14px;
}

.seiten {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.seiten-stand {
  color: var(--text-leise);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.fussnote {
  margin-top: 12px;
  color: var(--text-leise);
  font-size: 0.82rem;
}

/* Schmale Bildschirme */

@media (max-width: 1080px) {
  .spalten {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .rahmen {
    grid-template-columns: minmax(0, 1fr);
  }

  .leiste {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--linie);
  }

  .marke small {
    display: none;
  }

  .firmenwahl {
    flex-direction: row;
    align-items: center;
    flex: 1;
    min-width: 0;
    padding: 0;
  }

  .firmenwahl label {
    display: none;
  }

  .leiste nav {
    flex-direction: row;
    flex: 1 0 100%;
    order: 3;
    overflow-x: auto;
  }

  .leiste-fuss {
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
  }

  .konto {
    display: none;
  }

  .inhalt {
    padding: 20px 16px 40px;
  }

  .filter-stand {
    margin-left: 0;
    width: 100%;
  }

  .verlauf li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* Auf schmalen Bildschirmen wird jede Zeile zu einem Block mit beschrifteten
   Feldern, damit der Knopf zum Abhaken ohne seitliches Wischen erreichbar ist. */

@media (max-width: 760px) {
  .tabelle-stapel thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .tabelle-stapel,
  .tabelle-stapel tbody,
  .tabelle-stapel tr,
  .tabelle-stapel th,
  .tabelle-stapel td {
    display: block;
  }

  .tabelle-stapel tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--linie);
  }

  .tabelle-stapel tbody tr:last-child {
    border-bottom: 0;
  }

  .tabelle-stapel th,
  .tabelle-stapel td {
    padding: 3px 0;
    border: 0;
    text-align: left;
    max-width: none;
  }

  .tabelle-stapel td[data-titel]::before {
    content: attr(data-titel);
    display: block;
    margin-top: 6px;
    color: var(--text-leise);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .tabelle-stapel td.zahl {
    margin-top: 10px;
  }

  .tabelle-stapel td.zahl .knopf {
    width: 100%;
    min-height: 42px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .knopf,
  .leiste nav a {
    transition: background-color 0.12s, border-color 0.12s, color 0.12s;
  }
}

/* Import: offene Kennungen */
.kennungen {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kennungen li {
  display: grid;
  gap: 2px;
  padding: 8px 0;
}

.kennungen code {
  overflow-wrap: anywhere;
}

.kennung-form {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.kennung-form select {
  flex: 1;
  min-width: 0;
}
