/* TrueHub. Eigene Schrift (IBM Plex Sans, SIL Open Font License, schrift/LIZENZ-OFL.txt),
   keine fremden Quellen, keine Skripte. Zuerst für das Handy gebaut: Auf schmalen Bildschirmen
   steht die Navigation oben, ab 60rem links als Leiste.

   Farben der vier Gruppen: Rot (der Händler muss zahlen), Ocker (wir müssen etwas tun),
   Grau (Sonderfall), Grün (niemand muss etwas tun). Jede Farbe steht nie allein, der Text
   daneben sagt dasselbe. Kein Blau (Vorgabe für alle Dokumente der ZU-IT). */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("schrift/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("schrift/IBMPlexSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("schrift/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Grundfarben */
  --leiste: #133b2e;
  --leiste-text: #dfeae4;
  --leiste-leise: #9fbcae;
  --gruen: #1f5c46;
  --gruen-dunkel: #164535;
  --gruen-hell: #e3efe8;
  --papier: #f2f4f1;
  --flaeche: #ffffff;
  --tinte: #16211c;
  --leise: #56635d;
  --linie: #dae0db;
  --linie-stark: #c3ccc6;
  /* Gruppen */
  --rot: #b3261e;
  --rot-hell: #fbe9e7;
  --ocker: #8a5300;
  --ocker-hell: #fcf1da;
  --grau: #4b534f;
  --grau-hell: #eaedeb;
  /* Maße */
  --rund-klein: 0.375rem;
  --rund: 0.5rem;
  --rund-gross: 0.875rem;
  --breite: 74rem;
  --schrift: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { font-size: 100%; scroll-padding-top: 1rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--tinte);
  background: var(--papier);
}
:lang(zh-Hans) body, body:lang(zh-Hans) { line-height: 1.7; }

a { color: var(--gruen); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--gruen-dunkel); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }

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

h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
}
h2 { margin: 2.25rem 0 0.5rem; font-size: 1.2rem; line-height: 1.3; font-weight: 600; }
.frage { max-width: 42rem; margin: 0 0 1.5rem; font-size: 1.0625rem; color: var(--leise); }
.pfad { margin: 0 0 0.75rem; font-size: 0.9375rem; }
.pfad a { text-decoration: none; }
.pfad a::before { content: "\2039\00a0"; }
.pfad a:hover { text-decoration: underline; }
.kernsatz {
  max-width: 46rem;
  margin: 0.5rem 0 0;
  font-size: 1.375rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.kernsatz-zusatz { max-width: 46rem; margin: 0.75rem 0 0; color: var(--leise); }
.leise { color: var(--leise); font-size: 0.9375rem; }
.liste { max-width: 44rem; padding-left: 1.2rem; }
.liste li { margin: 0.35rem 0; }

/* ---------- Rahmen: Leiste und Fläche ---------- */

.rahmen { min-height: 100vh; }

.leiste {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "marke fuss" "haupt haupt";
  gap: 0.25rem 1rem;
  align-items: center;
  padding: 0.75rem 1rem 0.5rem;
  color: var(--leiste-text);
  background: var(--leiste);
}
.leiste :focus-visible { outline-color: #ffffff; }

.marke {
  grid-area: marke;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #ffffff;
  text-decoration: none;
}
.marke:hover { color: #ffffff; }
/* Das Zeichen ist als weiße Datei hinterlegt und braucht keinen Filter. */
.marke-logo { flex: none; width: 2.75rem; height: 2.75rem; }
.marke-text { display: flex; flex-direction: column; line-height: 1.15; }
.marke-name { font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.01em; }
.marke-zeile { font-size: 0.8125rem; color: var(--leiste-leise); max-width: 11rem; text-wrap: balance; }

.haupt {
  grid-area: haupt;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
  margin: 0.25rem -0.25rem 0;
}
.haupt a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: none;
  min-height: 2.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--rund);
  color: var(--leiste-text);
  text-decoration: none;
  white-space: nowrap;
}
.haupt a svg { flex: none; opacity: 0.85; }
.haupt a:hover { color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.haupt a[aria-current="page"] { color: var(--leiste); background: #ffffff; font-weight: 600; }
.haupt a[aria-current="page"] svg { opacity: 1; }

.leiste-fuss {
  grid-area: fuss;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
}
.sprachwahl { display: flex; flex-wrap: wrap; gap: 0.15rem; padding: 0.15rem; border-radius: var(--rund); background: rgba(0, 0, 0, 0.18); }
.sprachwahl a, .sprachwahl span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.1rem 0.55rem;
  white-space: nowrap;
  border-radius: var(--rund-klein);
  color: var(--leiste-text);
  text-decoration: none;
}
.sprachwahl a:hover { color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.sprachwahl span { color: var(--leiste); background: var(--leiste-text); font-weight: 600; }

.konto { display: none; }

.flaeche { min-width: 0; }

.kopfzeile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
}
.stand { margin: 0; font-size: 0.875rem; color: var(--leise); }
.stand strong { color: var(--tinte); font-weight: 600; }
.stand-marke {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0 0.55rem;
  border-radius: 1rem;
  font-weight: 600;
  color: var(--gruen-dunkel);
  background: var(--gruen-hell);
}
.stand-vorschau { color: var(--ocker); background: var(--ocker-hell); }

.kopf-suche { display: flex; gap: 0.4rem; }
.kopf-suche input {
  flex: 1;
  min-width: 0;
  min-height: 2.5rem;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--tinte);
  background: var(--papier);
  border: 1px solid var(--linie-stark);
  border-radius: var(--rund);
}
.kopf-suche input:focus { background: var(--flaeche); border-color: var(--gruen); }
.kopf-suche button { min-height: 2.5rem; padding: 0.3rem 0.9rem; font-size: 0.9375rem; }

main { max-width: var(--breite); padding: 1.5rem 1rem 3rem; }

.fuss {
  max-width: var(--breite);
  padding: 1.25rem 1rem 2rem;
  font-size: 0.8125rem;
  color: var(--leise);
  border-top: 1px solid var(--linie);
}
.fuss p { margin: 0 0 0.25rem; }
/* Wer mitentwickelt und wohin Vorschläge gehen: bewusst klein, ganz unten. */
.fuss .fuss-klein { font-size: 0.6875rem; }
/* Name und Aufgabe bleiben beim Umbruch zusammen. */
.fuss-person { white-space: nowrap; }

/* Ohne Navigation (Anmeldung): schmale Kopfzeile, Inhalt in der Mitte */
.ohne-leiste .leiste { grid-template-areas: "marke fuss"; }
.ohne-leiste main, .ohne-leiste .fuss { margin: 0 auto; }

/* ---------- Bedienelemente ---------- */

button, select { font: inherit; max-width: 100%; }
button {
  min-height: 2.875rem;
  padding: 0.5rem 1.15rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--gruen);
  border: 1px solid var(--gruen);
  border-radius: var(--rund);
  cursor: pointer;
}
button:hover { background: var(--gruen-dunkel); border-color: var(--gruen-dunkel); }
button.zweit { color: var(--gruen); background: var(--flaeche); border-color: var(--linie-stark); }
button.zweit:hover { border-color: var(--gruen); background: var(--gruen-hell); }
select {
  min-height: 2.875rem;
  padding: 0.4rem 0.6rem;
  color: var(--tinte);
  background: var(--flaeche);
  border: 1px solid var(--linie-stark);
  border-radius: var(--rund);
}

.knopf {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--rund);
  background: var(--gruen);
  color: #ffffff;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
}
.knopf:hover { color: #ffffff; background: var(--gruen-dunkel); }

.meldung {
  max-width: 42rem;
  margin: 0.75rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid #ecc7c2;
  border-left: 0.25rem solid var(--rot);
  border-radius: var(--rund);
  background: var(--rot-hell);
}

/* ---------- Suche und Filter ---------- */

.suche { margin: 1rem 0; }
.suche > label { display: block; margin-bottom: 0.4rem; font-weight: 600; }
.suche-zeile { display: flex; flex-direction: column; gap: 0.5rem; }
.suche input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 3rem;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--tinte);
  background: var(--flaeche);
  border: 1px solid var(--linie-stark);
  border-radius: var(--rund);
}
.suche input[type="search"]:focus { border-color: var(--gruen); outline: 3px solid var(--gruen-hell); outline-offset: 0; }
.suche input[type="search"]:focus-visible { outline: 3px solid var(--gruen); }
.filter { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: end; margin-top: 1rem; }
/* min-width: Ohne sie wird ein Feld mit langen Einträgen (Spanisch) breiter als ein Handy. */
.filter label { display: flex; flex-direction: column; gap: 0.25rem; flex: 1 1 14rem; min-width: 0; font-size: 0.875rem; color: var(--leise); }
.filter select { min-width: 0; width: 100%; }
.treffer { margin: 1.25rem 0 0.6rem; font-size: 0.9375rem; color: var(--leise); }
.leer {
  margin: 0;
  padding: 1.1rem 1.2rem;
  color: var(--leise);
  background: var(--flaeche);
  border: 1px dashed var(--linie-stark);
  border-radius: var(--rund-gross);
}

/* ---------- Start: Suche als Auftakt, drei Einstiege ---------- */

.auftakt {
  margin: -1.5rem -1rem 1.75rem;
  padding: 1.75rem 1rem 1.5rem;
  color: #ffffff;
  background: var(--gruen);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.09) 0 9rem, transparent 9rem),
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.06) 0 15rem, transparent 15rem);
}
.auftakt h1 { max-width: 30ch; margin-bottom: 1.25rem; font-size: 1.75rem; color: #ffffff; }
.auftakt .suche-gross { max-width: 44rem; margin: 0; }
.auftakt .suche > label { color: var(--leiste-text); font-weight: 500; }
.auftakt input[type="search"] { min-height: 3.25rem; border-color: transparent; font-size: 1.125rem; }
.auftakt input[type="search"]:focus { border-color: transparent; outline: 3px solid #ffffff; outline-offset: 2px; }
.auftakt button {
  min-height: 3.25rem;
  color: var(--gruen-dunkel);
  background: #ffffff;
  border-color: #ffffff;
}
.auftakt button:hover { background: var(--gruen-hell); border-color: var(--gruen-hell); }
.auftakt :focus-visible { outline-color: #ffffff; }

.tueren { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.tuer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  height: 100%;
  padding: 1.1rem 1.2rem 1.2rem;
  color: var(--tinte);
  text-decoration: none;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--rund-gross);
}
.tuer:hover { color: var(--tinte); border-color: var(--gruen); }
.tuer-zahl {
  margin-bottom: 0.35rem;
  font-size: 1.375rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.tuer-ueberblick .tuer-zahl { color: var(--rot); }
.tuer-mit-torte { display: flex; align-items: flex-start; gap: 0.6rem; }
.tuer-mit-torte .torte { flex: none; margin-top: 0.15rem; }
.tuer-titel { font-weight: 600; color: var(--gruen); }
.tuer:hover .tuer-titel { text-decoration: underline; text-underline-offset: 0.2em; }
.tuer-text { font-size: 0.9375rem; color: var(--leise); }

/* ---------- Händlerseite: die Antwort ---------- */

.urteil {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
  padding: 1.25rem 1.35rem;
  background: var(--grau-hell);
  border: 1px solid transparent;
  border-radius: var(--rund-gross);
}
.urteil-kopf {
  margin: 0;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--grau);
}
.urteil-text { margin: 0.5rem 0 0; max-width: 42rem; font-size: 1.0625rem; }
.urteil-betrag { margin: 0; display: flex; flex-direction: column; }
.urteil-zahl {
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--rot);
}
.urteil-zahl-text { font-size: 0.875rem; color: var(--leise); }
.urteil-zahl-zusatz { margin-top: 0.35rem; font-size: 0.9375rem; font-weight: 600; color: var(--ocker); }
.urteil-zahl-pruefen { color: var(--ocker); }
.grund-pruefen { color: var(--ocker); font-weight: 600; }
.urteil-ansprechen { background: var(--rot-hell); border-color: #efcbc6; }
.urteil-ansprechen .urteil-kopf { color: var(--rot); }
.urteil-pruefen { background: var(--ocker-hell); border-color: #ecd9ab; }
.urteil-pruefen .urteil-kopf { color: var(--ocker); }
/* Entscheidung 0040: Ocker heißt "aus Navision, erst prüfen". "Nicht ansprechen" bedeutet, dass
   wir handeln müssen (Rosa); ein Sonderfall ist violett wie "Insolvent oder Laden geschlossen". */
.urteil-nicht_ansprechen { background: #fbe8f0; border-color: #f0c4d6; }
.urteil-nicht_ansprechen .urteil-kopf { color: #9c2f62; }
.urteil-sonderfall { background: #efe9fa; border-color: #d3c5ee; }
.urteil-sonderfall .urteil-kopf { color: #5a3a9a; }
/* Entscheidung 0043: Türkis heißt "alles in Ordnung". Es ist kein Teil des Rechenwegs und
   deutlich anders als das Grün für "schon bezahlt". */
.urteil-in_ordnung, .urteil-nichts_offen { background: #def4f2; border-color: #a9dcd7; }
.urteil-in_ordnung .urteil-kopf, .urteil-nichts_offen .urteil-kopf { color: #0b6e6c; }

/* Rechenweg: von dem, was Sage als offen führt, zu dem, was nach Verrechnung bleibt
   (Entscheidung 0034). Grün für das, was abgezogen wird, Rot nur für das Überfällige. */
.rechenweg {
  max-width: 40rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem 1.1rem;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--rund-gross);
}
.rechenweg-titel { margin: 0 0 0.5rem; font-size: 1.0625rem; font-weight: 600; }
.rechenweg-liste { margin: 0; }
.rechenweg-zeile {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--linie);
}
.rechenweg-zeile dt { color: var(--tinte); }
.rechenweg-zeile dt a { color: inherit; }
.rechenweg-zeile dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}
.rechenweg-minus dt, .rechenweg-minus dd { color: var(--gruen); }
.rechenweg-ergebnis { border-bottom: 2px solid var(--tinte); }
.rechenweg-ergebnis dt, .rechenweg-ergebnis dd { font-size: 1.1875rem; font-weight: 600; }
.rechenweg-liste > .rechenweg-zeile:last-child { border-bottom: 0; }
.rechenweg-ueberfaellig dd { color: var(--rot); }
.rechenweg-navision dd { color: var(--ocker); }
.rechenweg-darunter dt { padding-left: 1rem; color: var(--leise); font-size: 0.9375rem; }
.rechenweg-darunter dd { color: var(--leise); font-size: 0.9375rem; font-weight: 500; }
.rechenweg-text { margin: 0.6rem 0 0; color: var(--leise); font-size: 0.9375rem; }
.betrag-rest { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--leise); }

.merkmale {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  margin: 0;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--rund-gross);
  overflow: hidden;
}
.merkmale div { padding: 0.8rem 1rem; border-bottom: 1px solid var(--linie); }
.merkmale dt { font-size: 0.8125rem; color: var(--leise); }
.merkmale dd { margin: 0.15rem 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.merkmale-breit { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

/* ---------- Gruppen: wer ist am Zug ---------- */

.gruppe { margin-top: 2.25rem; }
.gruppe-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem 1rem;
}
.gruppe-kopf h2 { display: flex; align-items: center; gap: 0.6rem; margin: 0; }
/* Einen Punkt tragen nur Abschnitte, die für einen Teil des Rechenwegs stehen
   (Entscheidung 0040); neutrale Abschnitte wie Regionen und Herkunft haben keinen. */
.gruppe-kopf h2::before {
  content: "";
  display: none;
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
}
.gruppe-summe { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.gruppe-text { max-width: 46rem; margin: 0.3rem 0 0.75rem; color: var(--leise); }
/* Punkte der Gruppen in den Farben der Teile des Rechenwegs (Entscheidung 0040). */
.gruppe-haendler .gruppe-kopf h2::before { display: block; background: #d03b3b; }
.gruppe-wir .gruppe-kopf h2::before { display: block; background: #e87ba4; }
.gruppe-sonderfall .gruppe-kopf h2::before { display: block; background: #7d55c7; }
.gruppe-niemand .gruppe-kopf h2::before { display: block; background: #6f6d66; }
.gruppe-klasse-1 .gruppe-kopf h2::before { display: block; background: #d03b3b; }
.gruppe-klasse-4 .gruppe-kopf h2::before { display: block; background: #7d55c7; }
.gruppe-klasse-5 .gruppe-kopf h2::before { display: block; background: #1baf7a; }
.gruppe-klasse-6 .gruppe-kopf h2::before { display: block; background: #e87ba4; }
.gruppe-klasse-7 .gruppe-kopf h2::before { display: block; background: #b0457a; }
.gruppe-klasse-8 .gruppe-kopf h2::before { display: block; background: #d98fb4; }
.weiter { margin: 0.6rem 0 0; font-size: 0.9375rem; }

.schilder { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.schild {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.05rem 0.6rem 0.05rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--grau);
  background: var(--grau-hell);
  border-radius: 1rem;
}
.schild::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.betont-rot { color: var(--rot); font-weight: 600; }
.betont-gruen { color: var(--gruen); font-weight: 600; }
.regionen { margin-top: 2.25rem; }
.regionen-tabelle tr.gewaehlt th, .regionen-tabelle tr.gewaehlt td { background: var(--gruen-hell); }
.regionen-tabelle td a { color: inherit; }
.regionen-tabelle tfoot th, .regionen-tabelle tfoot td { font-weight: 600; }
.abschnitt-kopf { margin: 2.25rem 0 0; font-size: 1.375rem; font-weight: 600; }
.unterkopf { margin: 1.75rem 0 0.25rem; font-size: 1.0625rem; font-weight: 600; }
.filter-hinweis { margin: 0.75rem 0 0; font-weight: 500; }

/* ---------- Aufgaben: Sprungmarken ---------- */

.sprung ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sprung a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.3rem 0.4rem 0.3rem 0.9rem;
  color: var(--tinte);
  text-decoration: none;
  background: var(--flaeche);
  border: 1px solid var(--linie-stark);
  border-radius: 2rem;
}
.sprung a:hover { color: var(--tinte); border-color: var(--gruen); }
.zaehler {
  min-width: 1.9rem;
  padding: 0.05rem 0.5rem;
  font-weight: 600;
  text-align: center;
  color: #ffffff;
  background: var(--gruen);
  border-radius: 1rem;
  font-variant-numeric: tabular-nums;
}
.zaehler-null { color: var(--leise); background: var(--grau-hell); }

/* ---------- Überblick: Anteil ---------- */

.balken {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  max-width: 46rem;
  height: 0.5rem;
  margin: 0 0 1rem;
  border: 0;
  border-radius: 0.25rem;
  background: var(--grau-hell);
  overflow: hidden;
  color: var(--grau);
}
.balken::-webkit-progress-bar { background: var(--grau-hell); }
.balken::-webkit-progress-value { background: var(--grau); border-radius: 0.25rem; }
.balken::-moz-progress-bar { background: var(--grau); border-radius: 0.25rem; }

/* ---------- Tabellen ----------
   Auf dem Handy wird jede Zeile einer Tabelle mit der Klasse "karten" zu einer Karte: Der
   Zeilenkopf steht oben, jede Zelle trägt ihre Spaltenüberschrift (data-titel). */

.tabelle-rahmen {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--rund-gross);
  overflow: hidden;
}
table { border-collapse: collapse; width: 100%; }
th, td { padding: 0.7rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linie); }
thead th {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--leise);
  background: #f7f8f6;
}
tbody th { font-weight: 400; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fest { white-space: nowrap; font-variant-numeric: tabular-nums; }
.kopf-link { font-weight: 600; }
a.kopf-link { text-decoration: none; }
a.kopf-link:hover { text-decoration: underline; }
/* Belegnummer mit Einzelheiten aus Sage: als Verweis erkennbar. */
a.beleg-link { color: var(--gruen); text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Seite eines Belegs ---------- */

.beleg-positionen td.bezeichnung { min-width: 14rem; }
.beleg-positionen .zusatz { display: block; font-size: 0.875rem; color: var(--leise); }
/* In der Kartenansicht (Handy) bleiben Bezeichnung und Zusatz rechts zusammen. */
@media (max-width: 45.99rem) {
  .beleg-positionen td.bezeichnung > span { text-align: right; }
}
.beleg-positionen .artikel { font-variant-numeric: tabular-nums; white-space: nowrap; }
.beleg-summen { max-width: 30rem; margin: 1rem 0 0 auto; }
.beleg-summen div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px solid var(--linie); }
.beleg-summen dt { color: var(--leise); }
.beleg-summen dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.beleg-summen .gesamt dt, .beleg-summen .gesamt dd { color: var(--tinte); font-weight: 600; }
.neben { display: block; font-size: 0.8125rem; color: var(--leise); }
.grund { display: block; color: var(--leise); }
.breit strong { font-weight: 600; }
.weitere { margin: 0.4rem 0 0; padding: 0; list-style: none; font-size: 0.875rem; color: var(--leise); }
.hinweise { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.hinweise li {
  padding: 0.85rem 1rem;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--rund-gross);
}
.hinweise strong { display: block; font-weight: 600; }
.fussnote { max-width: 46rem; margin: 2.25rem 0 0; font-size: 0.875rem; color: var(--leise); }

.karten thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.karten tr { display: block; padding: 0.85rem 1rem; border-bottom: 1px solid var(--linie); }
.karten tbody tr:last-child { border-bottom: 0; }
.karten th, .karten td { display: block; padding: 0; border: 0; }
.karten tbody th { margin-bottom: 0.4rem; font-size: 1.0625rem; }
.karten td {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0;
  text-align: right;
  white-space: normal;
}
.karten td::before {
  content: attr(data-titel);
  flex: 0 0 auto;
  max-width: 50%;
  text-align: left;
  font-weight: 400;
  color: var(--leise);
}
.karten td.breit { display: block; margin-top: 0.35rem; text-align: left; }
.karten td.breit::before { display: block; max-width: none; font-size: 0.8125rem; }
.karten td:empty { display: none; }

/* ---------- Anmeldung ---------- */

.anmelden {
  max-width: 34rem;
  margin: 3rem auto 0;
  padding: 2rem 1.5rem;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--rund-gross);
}

.anmelden .sprachwahl-hell {
  width: fit-content;
  margin: 0 0 1.5rem auto;
  background: var(--papier);
  border: 1px solid var(--linie);
}
.sprachwahl-hell a { color: var(--tinte); }
.sprachwahl-hell a:hover { color: var(--tinte); background: rgba(0, 0, 0, 0.06); }
.sprachwahl-hell span { color: #ffffff; background: var(--gruen); }

/* Knopf in der Form, die Microsoft für die Anmeldung mit seinem Konto vorgibt: weiß, grauer
   Rand, graue Schrift. Das Zeichen von Microsoft erscheint links, wenn die Datei
   statisch/marken/microsoft.svg vorhanden ist. */
.knopf-microsoft {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.6rem;
  padding: 0 0.75rem;
  border: 1px solid #8c8c8c;
  background: #ffffff;
  color: #5e5e5e;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.knopf-microsoft:hover { color: #2f2f2f; border-color: #5e5e5e; background: #f6f6f6; }
.knopf-microsoft img { display: block; }

/* ---------- Verwaltung der Zugänge ---------- */

.hinweis-ok {
  max-width: 42rem;
  margin: 0.75rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--linie-stark);
  border-left: 0.25rem solid var(--gruen);
  border-radius: var(--rund);
  background: var(--gruen-hell);
}
.zugang-neu { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: end; max-width: 56rem; }
.zugang-neu label { display: flex; flex-direction: column; gap: 0.25rem; flex: 1 1 10rem; font-size: 0.875rem; color: var(--leise); }
.zugang-neu label.breit { flex: 2 1 18rem; }
.zugang-neu input[type="email"] {
  min-height: 2.875rem;
  padding: 0.4rem 0.7rem;
  font: inherit;
  color: var(--tinte);
  background: var(--flaeche);
  border: 1px solid var(--linie-stark);
  border-radius: var(--rund);
}
.zugang-neu input[type="email"]:focus { border-color: var(--gruen); outline: 3px solid var(--gruen-hell); }
.zugang-zeile { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
/* Eigenes Konto und feste Admins: Admin bleibt, deshalb Text statt Auswahl. */
.zugang-rolle-fest {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.7rem;
  font-weight: 600;
  color: var(--tinte);
  background: var(--gruen-hell);
  border-radius: var(--rund);
  white-space: nowrap;
}
.zugaenge th[scope="row"] { overflow-wrap: anywhere; }
.zugang-name { display: block; font-weight: 600; }
.zugang-meta { display: block; margin-top: 0.15rem; font-size: 0.8125rem; font-weight: 400; color: var(--leise); }
@media (min-width: 46rem) {
  .zugaenge td { vertical-align: middle; }
  .zugaenge .zugang-weg { width: 1%; white-space: nowrap; text-align: right; }
}
@media (min-width: 72rem) {
  .zugang-zeile { flex-wrap: nowrap; }
  .zugang-zeile select { min-width: 0; }
}

/* ---------- Rückmeldungen und Prüfvermerke ---------- */

.vorsicht {
  max-width: 46rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--linie-stark);
  border-left: 0.25rem solid var(--ocker);
  border-radius: var(--rund);
  background: var(--ocker-hell);
}
.pruefzeile { max-width: 46rem; margin: 0.75rem 0 0; color: var(--leise); }
.pruefzeile strong { display: block; margin-top: 0.25rem; color: var(--ocker); font-weight: 600; }

.aktion, .formular-fuss { display: flex; flex-direction: column; gap: 0.4rem; margin: 1.25rem 0 1.5rem; }
.aktion-text { font-size: 0.9375rem; color: var(--leise); }
.knopf-gross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.6rem 1.25rem;
  color: #ffffff;
  background: var(--gruen);
  border: 1px solid var(--gruen);
  border-radius: var(--rund);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.knopf-gross:hover { color: #ffffff; background: var(--gruen-dunkel); border-color: var(--gruen-dunkel); }
button.klein { min-height: 2.25rem; padding: 0.2rem 0.7rem; font-size: 0.875rem; }

.stand { margin: 0.5rem 0 0; font-size: 0.875rem; }
.stand::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--grau);
}
.stand-geprueft { color: var(--gruen); font-weight: 600; }
.stand-geprueft::before { background: var(--gruen); }
.stand-erneut, .stand-wartet { color: var(--ocker); font-weight: 600; }
.stand-erneut::before, .stand-wartet::before { background: var(--ocker); }
.stand-ungeprueft { color: var(--leise); }
.stand-notiz, .stand-meldung { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--leise); overflow-wrap: anywhere; }
.stand-aktion { margin: 0.4rem 0 0; font-size: 0.875rem; }

.erklaerung {
  max-width: 46rem;
  margin: 0 0 1.5rem;
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  background: var(--flaeche);
}
.erklaerung summary { padding: 0.8rem 1rem; font-weight: 600; color: var(--gruen); cursor: pointer; }
.erklaerung p { margin: 0; padding: 0 1rem 1rem; color: var(--leise); }

.formular { max-width: 46rem; }
/* Steht über dem Formular, was der Vertrieb gemeldet hat, braucht das Formular Abstand. */
.gruppe + .formular { margin-top: 1.75rem; }
.schritt { margin: 0 0 1.75rem; padding: 0; border: 0; min-width: 0; }
.schritt legend { padding: 0; margin-bottom: 0.6rem; font-size: 1.1875rem; font-weight: 600; }
.schritt-zwischen { margin: 1rem 0 0.5rem; color: var(--leise); }
.wahl {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  column-gap: 0.6rem;
  align-items: start;
  margin-bottom: 0.5rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--linie-stark);
  border-radius: var(--rund);
  background: var(--flaeche);
  cursor: pointer;
}
.wahl input[type="radio"] { width: 1.35rem; height: 1.35rem; margin: 0.1rem 0 0; accent-color: var(--gruen); }
.wahl-titel { font-weight: 600; }
.wahl-text, .wahl-zusatz { grid-column: 2; font-size: 0.9375rem; color: var(--leise); }
.wahl-zusatz { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.6rem; }
.wahl-zusatz-titel { font-weight: 600; color: var(--tinte); }
.wahl-stark { border-color: var(--gruen); }
.wahl:has(input:checked) { border-color: var(--gruen); background: var(--gruen-hell); }
.wahl:focus-within { outline: 3px solid var(--gruen-hell); }
.formular input[type="date"], .formular textarea {
  width: 100%;
  min-height: 2.875rem;
  padding: 0.5rem 0.7rem;
  font: inherit;
  color: var(--tinte);
  background: var(--flaeche);
  border: 1px solid var(--linie-stark);
  border-radius: var(--rund);
}
.formular textarea { min-height: 5.5rem; resize: vertical; }
.formular input[type="date"] { max-width: 14rem; }
.feld { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.9rem; }
.feld-text { font-size: 0.9375rem; color: var(--leise); }
.belegwahl { margin-top: 0.25rem; border: 1px solid var(--linie); border-radius: var(--rund); background: var(--flaeche); }
.belegzeile {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  column-gap: 0.6rem;
  row-gap: 0.1rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--linie);
  cursor: pointer;
}
.belegzeile:last-child { border-bottom: 0; }
.belegzeile input { width: 1.35rem; height: 1.35rem; margin: 0; accent-color: var(--gruen); }
.belegzeile-nummer { font-weight: 600; overflow-wrap: anywhere; }
.belegzeile-betrag { font-variant-numeric: tabular-nums; white-space: nowrap; }
.belegzeile-text { grid-column: 2 / -1; font-size: 0.875rem; color: var(--leise); }
/* Felder, die nur zu einer Auswahl gehören, erscheinen erst mit ihr. Ohne :has bleiben sie
   sichtbar. */
@supports selector(:has(*)) {
  .wahl-zusatz { display: none; }
  .wahl:has(input[type="radio"]:checked) .wahl-zusatz { display: flex; }
  .umfang .belegwahl { display: none; }
  .umfang:has(input[value="auswahl"]:checked) .belegwahl { display: block; }
}

.meldeliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; max-width: 52rem; }
.meldeeintrag {
  padding: 0.85rem 1rem;
  border: 1px solid var(--linie);
  border-left: 0.25rem solid var(--grau);
  border-radius: var(--rund);
  background: var(--flaeche);
}
.meldeeintrag-wartet, .meldeeintrag-vorschlag { border-left-color: var(--ocker); }
.meldeeintrag-zurueckgestellt { border-left-color: var(--gruen); }
.meldeeintrag-geprueft, .meldeeintrag-pruefung, .meldeeintrag-erledigt { border-left-color: var(--gruen); }
.meldeeintrag p { margin: 0; }
.meldeeintrag-kopf { display: flex; flex-wrap: wrap; gap: 0.2rem 0.75rem; align-items: baseline; }
.meldeeintrag-kopf a { font-weight: 600; }
.meldeeintrag-wer, .meldeeintrag-fuss { font-size: 0.875rem; color: var(--leise); }
.meldeeintrag-was { margin-top: 0.3rem !important; }
.meldeeintrag-notiz { margin-top: 0.2rem !important; overflow-wrap: anywhere; }
.meldeeintrag-fuss { display: flex; flex-wrap: wrap; gap: 0.3rem 0.75rem; justify-content: space-between; margin-top: 0.5rem !important; }
.meldeeintrag-aktion { margin-top: 0.6rem; }
.marke-status { font-weight: 600; }
.marke-status-wartet, .marke-status-vorschlag { color: var(--ocker); }
.marke-status-zurueckgestellt { color: var(--gruen); }
.marke-status-geprueft, .marke-status-erledigt { color: var(--gruen); }

.schritte-block, .hilfe-block { max-width: 46rem; margin-top: 2.25rem; }
.hilfe-block p { color: var(--tinte); }
.schritte { list-style: none; margin: 0.75rem 0 0; padding: 0; counter-reset: schritt; display: grid; gap: 0.6rem; }
.schritte li {
  counter-increment: schritt;
  display: grid;
  grid-template-columns: 2rem 1fr;
  column-gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  background: var(--flaeche);
}
.schritte li::before {
  content: counter(schritt);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: #ffffff;
  background: var(--gruen);
  font-weight: 600;
}
.hilfe-liste { margin: 0.5rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; }
.hilfe-ich { font-weight: 600; }
.begriffe { margin: 0.75rem 0 0; display: grid; gap: 0.5rem; }
.begriffe div { padding: 0.8rem 1rem; border: 1px solid var(--linie); border-radius: var(--rund); background: var(--flaeche); }
.begriffe dt { font-weight: 600; }
.begriffe dd { margin: 0.2rem 0 0; color: var(--leise); }
.kaestchen { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9375rem; color: var(--tinte); }
.kaestchen input { width: 1.2rem; height: 1.2rem; accent-color: var(--gruen); }
.zugang-neu .kaestchen { flex: 1 1 100%; flex-direction: row; }

/* ---------- Admin: beide Aufgaben auf einer Seite ---------- */

.aktionen { display: grid; gap: 0; margin: 1.25rem 0 1.5rem; }
.aktionen .aktion { margin: 0 0 0.9rem; }
.aktionen .aktion:last-child { margin-bottom: 0; }
.knopf-zweit { color: var(--gruen); background: var(--flaeche); border-color: var(--linie-stark); }
.knopf-zweit:hover { color: var(--gruen-dunkel); background: var(--gruen-hell); border-color: var(--gruen); }
.admin-hinweis { max-width: none; margin: 1.5rem 0 0; }
.schritte-paar { display: grid; gap: 0 2rem; }

/* ---------- Ab 30rem ---------- */

@media (min-width: 30rem) {
  .knopf-gross { width: auto; }
  .aktion, .formular-fuss { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 0.5rem 1rem; }
  .suche-zeile { flex-direction: row; }
}

/* ---------- Ab Tablet: Spalten, Tabellen als Tabellen ---------- */

@media (min-width: 46rem) {
  .tueren.tueren-vier { grid-template-columns: repeat(2, 1fr); }
  .schritte-paar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schritte-paar .schritte-block { max-width: none; }
  main { padding: 2rem 2rem 3.5rem; }
  .fuss { padding-left: 2rem; padding-right: 2rem; }
  .kopfzeile { flex-direction: row; align-items: center; justify-content: space-between; padding: 0.7rem 2rem; }
  .kopf-suche { flex: 0 1 22rem; }
  h1 { font-size: 2rem; }
  .auftakt { margin: -2rem -2rem 2rem; padding: 2.75rem 2rem 2.25rem; }
  .auftakt h1 { font-size: 2.375rem; }
  .tueren { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .urteil { grid-template-columns: 1fr auto; align-items: center; padding: 1.5rem 1.75rem; }
  .urteil-betrag { align-items: flex-end; text-align: right; }
  .urteil-kopf { font-size: 2.25rem; }
  .urteil-zahl { font-size: 2.25rem; }
  .merkmale div { border-bottom: 0; border-right: 1px solid var(--linie); }
  .merkmale div:last-child { border-right: 0; }
  .filter label { flex: 0 1 auto; }

  .karten thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .karten tr { display: table-row; padding: 0; border: 0; }
  .karten tbody tr:hover { background: #f7f9f7; }
  .karten th, .karten td { display: table-cell; padding: 0.7rem 1rem; border-bottom: 1px solid var(--linie); }
  .karten thead th { padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .karten tbody th { margin: 0; font-size: 1rem; }
  .karten td { text-align: left; }
  .karten td.zahl { text-align: right; white-space: nowrap; }
  .karten td::before, .karten td.breit::before { content: none; display: none; }
  .karten td.breit { display: table-cell; width: 50%; margin: 0; }
  .karten td.fest { white-space: nowrap; }
  .karten td:empty { display: table-cell; }
  .karten tbody tr:last-child th, .karten tbody tr:last-child td { border-bottom: 0; }
}

/* ---------- Ab 60rem: Navigation als Leiste links ---------- */

@media (min-width: 60rem) {
  .mit-leiste .rahmen { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); }
  .mit-leiste .leiste {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.4rem 0.9rem 1.1rem;
    overflow-y: auto;
  }
  .mit-leiste .marke { align-self: flex-start; padding: 0 0.5rem 1.6rem; }
  .mit-leiste .haupt { flex-direction: column; flex-wrap: nowrap; gap: 0.15rem; margin: 0; }
  .mit-leiste .haupt a { white-space: normal; padding: 0.5rem 0.65rem; }
  .mit-leiste .leiste-fuss {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.9rem;
    margin-top: auto;
    padding: 1rem 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .mit-leiste .sprachwahl { align-self: flex-start; }
  .konto { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; margin: 0; }
  .konto-name { color: var(--leiste-leise); overflow-wrap: anywhere; }
  .konto button {
    min-height: 2.25rem;
    padding: 0.25rem 0.8rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--leiste-text);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.28);
  }
  .konto button:hover { color: #ffffff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); }
  .mit-leiste main, .mit-leiste .fuss { padding-left: 2.5rem; padding-right: 2.5rem; }
  .mit-leiste .kopfzeile { padding-left: 2.5rem; padding-right: 2.5rem; }
  .mit-leiste .auftakt { margin-left: -2.5rem; margin-right: -2.5rem; padding-left: 2.5rem; padding-right: 2.5rem; }
}

/* Auf schmalen Bildschirmen steht das Abmelden in der Kopfzeile unter der Navigation. */
@media (max-width: 59.99rem) {
  .haupt a { min-height: 2.5rem; padding: 0.3rem 0.6rem; gap: 0.4rem; font-size: 0.9375rem; }
  .mit-leiste .leiste:has(.konto) { grid-template-areas: "marke fuss" "haupt haupt" "konto konto"; }
  .mit-leiste .leiste-fuss { display: contents; }
  .mit-leiste .sprachwahl { grid-area: fuss; justify-self: end; }
  .konto {
    grid-area: konto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.25rem 0 0;
    padding-top: 0.5rem;
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .konto-name { color: var(--leiste-leise); overflow-wrap: anywhere; }
  .konto button {
    min-height: 2.25rem;
    padding: 0.2rem 0.8rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--leiste-text);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.28);
  }
}

/* ---------- Am Rechner: etwas dichter ---------- */

/* Auf dem Handy bleiben Schrift und Flächen zum Tippen groß. Am Rechner mit Maus reichen
   15 statt 16 Pixel Grundschrift und flachere Bedienelemente; Tabellen bekommen so Luft
   zwischen den Spalten. */
@media (min-width: 60rem) {
  html { font-size: 93.75%; }
  /* Die Seitenbreite bleibt in Pixeln, wie sie war. */
  :root { --breite: 79rem; }
  button { min-height: 2.5rem; padding: 0.4rem 1rem; }
  select { min-height: 2.5rem; padding: 0.3rem 0.5rem; }
  .knopf-gross { min-height: 2.75rem; font-size: 1rem; }
  .karten th, .karten td { padding: 0.6rem 0.9rem; }
  .karten button, .karten select { min-height: 2.125rem; padding-top: 0.2rem; padding-bottom: 0.2rem; font-size: 0.9375rem; }
  .karten button { padding-left: 0.8rem; padding-right: 0.8rem; }
  .zugang-neu input[type="email"] { min-height: 2.5rem; }
  /* Das grüne Band der Startseite reicht bis an den rechten Rand, auch wenn der Inhalt
     schmaler ist als das Fenster. */
  .mit-leiste .flaeche { overflow-x: clip; }
  .mit-leiste .auftakt { margin-right: calc(-2.5rem - max(0px, 100vw - 15.5rem - var(--breite))); }
  .aktionen { grid-template-columns: repeat(2, minmax(0, max-content)); gap: 0 2.5rem; align-items: start; }
  .aktionen .aktion { flex-direction: column; align-items: flex-start; gap: 0.4rem; margin: 0; }
}
@media (min-width: 72rem) {
  .tueren.tueren-vier { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

@media print {
  .leiste, .kopf-suche, .fuss, .suche, .filter { display: none; }
  body { background: #ffffff; }
  .mit-leiste .rahmen { display: block; }
}

/* Anmeldung: Fußzeile unter der Karte, gleich breit */
.ohne-leiste .fuss { max-width: 34rem; padding-left: 0; padding-right: 0; border-top: 0; }

/* Herkunft der offenen Posten (Entscheidung 0033) */
.herkunft-wert { display: inline-block; text-align: right; white-space: nowrap; }
.herkunft-anzahl { display: block; font-size: 0.8125rem; color: var(--leise); }
.herkunft-tabelle .herkunft-leer { color: var(--leise); }
.herkunft-tabelle .herkunft-summe th,
.herkunft-tabelle .herkunft-summe td { font-weight: 600; }
.herkunft-tabelle .herkunft-guthaben th,
.herkunft-tabelle .herkunft-guthaben td { color: var(--leise); }
.herkunft-marke {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--leise);
  background: var(--grau-hell);
  white-space: nowrap;
}

/* Tortendiagramme (Entscheidung 0038). Farben geprüft mit dem Palettenprüfer (Farbsehschwäche,
   Abstand der Nachbarn); Grau steht bewusst für "nichts zu tun" und "unbekannt". Zwischen den
   Stücken eine Fuge in der Farbe der Fläche. */
.torte { display: block; overflow: visible; }
.torte-gross { width: 9.5rem; height: 9.5rem; }
.torte-mittel { width: 7.5rem; height: 7.5rem; flex: none; }
.torte-klein { width: 2.25rem; height: 2.25rem; }
.stueck { stroke: var(--flaeche); stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.torte-klein .stueck { stroke-width: 1px; }
.stueck:hover { opacity: 0.82; }
.stueck-bezahlt, .farbe-bezahlt { fill: #1baf7a; background: #1baf7a; }
.stueck-haendler, .farbe-haendler { fill: #d03b3b; background: #d03b3b; }
.stueck-navision, .farbe-navision { fill: #eda100; background: #eda100; }
.stueck-wir, .farbe-wir { fill: #e87ba4; background: #e87ba4; }
.stueck-sonderfall, .farbe-sonderfall { fill: #7d55c7; background: #7d55c7; }
.stueck-ruhig, .farbe-ruhig { fill: #6f6d66; background: #6f6d66; }
.stueck-klasse-1, .farbe-klasse-1 { fill: #d03b3b; background: #d03b3b; }
.stueck-klasse-4, .farbe-klasse-4 { fill: #7d55c7; background: #7d55c7; }
.stueck-klasse-5, .farbe-klasse-5 { fill: #1baf7a; background: #1baf7a; }
.stueck-klasse-6, .farbe-klasse-6 { fill: #e87ba4; background: #e87ba4; }
/* "Wir müssen handeln" ist Rosa; die drei Aufgaben darin sind Abstufungen davon. */
.stueck-klasse-7, .farbe-klasse-7 { fill: #b0457a; background: #b0457a; }
.stueck-klasse-8, .farbe-klasse-8 { fill: #d98fb4; background: #d98fb4; }
.stueck-herkunft-navision, .farbe-herkunft-navision { fill: #eda100; background: #eda100; }
/* In Sage abgerechnet ist der neutrale Normalfall: hell, damit es nicht wie "noch nicht
   fällig" (dunkles Grau) aussieht. */
.stueck-herkunft-sage, .farbe-herkunft-sage { fill: #c9c5bb; background: #c9c5bb; }
.stueck-herkunft-unbekannt, .farbe-herkunft-unbekannt { fill: #e4e2dc; background: #e4e2dc; }
.farbe {
  display: inline-block;
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.45rem;
  border-radius: 2px;
  vertical-align: -0.05em;
}
.rechenweg-inhalt.mit-torte { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; }
.rechenweg-torte { justify-self: center; }
.rechenweg:has(.mit-torte) { max-width: 52rem; }
@media (max-width: 40rem) {
  .rechenweg-inhalt.mit-torte { grid-template-columns: minmax(0, 1fr); }
  .rechenweg-torte { order: -1; }
  .torte-gross { width: 8rem; height: 8rem; }
}
.torte-block { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin: 0.25rem 0 1rem; }
.torte-titel { margin: 0 0 0.4rem; font-weight: 600; }
.torte-legende { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; font-size: 0.9375rem; }
.torte-legende li { display: flex; align-items: center; }
.torte-anteil { margin-left: 0.4rem; color: var(--leise); font-variant-numeric: tabular-nums; }
.torte-legende-zeile { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
.torte-schluessel { margin: 0 0 0.75rem; }
.lage-zelle { display: flex; align-items: flex-start; gap: 0.6rem; }
.lage-zelle .torte { flex: none; margin-top: 0.1rem; }

/* Knopf zum Mahnvorschlag (Entscheidung 0039): ein Download, deshalb als zweiter Knopf. */
.mahn-knopf { max-width: 32rem; margin: 1rem 0 1.5rem; }
.aktionen .mahn-knopf { margin: 0 0 0.9rem; }
.gruppe .mahn-knopf { margin: 0.5rem 0 1rem; }

/* Schilder in der Händlerliste: die Teile des Kreises, gleiche Farbe, gleicher Name
   (Entscheidung 0040). Neutraler Grund, damit nur das Farbfeld die Bedeutung trägt. */
.lage-zelle .schilder { display: grid; gap: 0.15rem; min-width: 13rem; }
.schild-teil {
  display: flex;
  align-items: baseline;
  padding: 0;
  color: var(--tinte);
  background: none;
  border-radius: 0;
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: normal;
}
.schild-teil::before { display: none; }
.schild-teil .farbe { flex: none; width: 0.6rem; height: 0.6rem; }
.torte-erklaerung { max-width: 46rem; margin: 0.75rem 0 0.75rem; color: var(--leise); font-size: 0.9375rem; }
.betrag-navision {
  display: block;
  max-width: 11rem;
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ocker);
  white-space: normal;
}
.filter-hinweis .farbe, td strong .farbe, th .farbe { margin-right: 0.4rem; }

/* Gruppen und Balken je Teil des Rechenwegs (Entscheidung 0040). */
.gruppe-teil-bezahlt .gruppe-kopf h2::before { display: block; background: #1baf7a; }
.gruppe-teil-haendler .gruppe-kopf h2::before { display: block; background: #d03b3b; }
.gruppe-teil-navision .gruppe-kopf h2::before { display: block; background: #eda100; }
.gruppe-teil-wir .gruppe-kopf h2::before { display: block; background: #e87ba4; }
.gruppe-teil-sonderfall .gruppe-kopf h2::before { display: block; background: #7d55c7; }
.gruppe-teil-ruhig .gruppe-kopf h2::before { display: block; background: #6f6d66; }
.balken-teil-bezahlt::-webkit-progress-value { background: #1baf7a; }
.balken-teil-bezahlt::-moz-progress-bar { background: #1baf7a; }
.balken-teil-haendler::-webkit-progress-value { background: #d03b3b; }
.balken-teil-haendler::-moz-progress-bar { background: #d03b3b; }
.balken-teil-navision::-webkit-progress-value { background: #eda100; }
.balken-teil-navision::-moz-progress-bar { background: #eda100; }
.balken-teil-wir::-webkit-progress-value { background: #e87ba4; }
.balken-teil-wir::-moz-progress-bar { background: #e87ba4; }
.balken-teil-sonderfall::-webkit-progress-value { background: #7d55c7; }
.balken-teil-sonderfall::-moz-progress-bar { background: #7d55c7; }
.balken-teil-ruhig::-webkit-progress-value { background: #6f6d66; }
.balken-teil-ruhig::-moz-progress-bar { background: #6f6d66; }

/* Aufgaben mit Anleitung (Entscheidung 0041): wer am Zug ist und warum, immer sichtbar;
   Bedeutung, Schritte und Lücken zum Auf- und Zuklappen, ohne Skript. */
.amzug {
  max-width: 46rem;
  margin: 0.6rem 0 0.75rem;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 0.75rem;
}
.amzug div { display: contents; }
.amzug dt { font-weight: 600; }
.amzug dd { margin: 0; }
.anleitung {
  max-width: 46rem;
  margin: 0.5rem 0 1rem;
  padding: 0.75rem 1rem;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--rund);
}
.anleitung summary { font-weight: 600; color: var(--gruen); cursor: pointer; }
.anleitung h3 { margin: 1rem 0 0.25rem; font-size: 1rem; font-weight: 600; }
.anleitung p { margin: 0.25rem 0 0; }
.anleitung .schritte { margin-top: 0.5rem; }
.anleitung .anleitung-erledigt { margin-top: 1rem; font-size: 0.9375rem; color: var(--leise); }
a.schild-teil { text-decoration: none; }
a.schild-teil:hover { text-decoration: underline; }
.filter-hinweis a { margin-left: 0.4rem; }
.amzug-zeile { color: var(--tinte); }
.amzug-zeile strong { margin-right: 0.3rem; }

/* ---------- Schalter mit Erklärung (Entscheidung 0043) ----------
   Die Erklärung erscheint beim Darüberfahren und beim Ansteuern mit der Tastatur. */
.schalter-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; margin: 0.9rem 0 0; padding-top: 0.75rem; border-top: 1px solid var(--linie); font-size: 0.875rem; }
.schalter-name { font-weight: 600; }
/* Die Erklärung hängt am ganzen Schalter, nicht an der einzelnen Wahl: So beginnt sie immer am
   linken Rand des Schalters und ragt auf dem Handy nicht über den Bildschirm. */
.schalter { position: relative; display: inline-flex; flex-wrap: wrap; gap: 0.15rem; padding: 0.15rem; border: 1px solid var(--linie-stark); border-radius: var(--rund); background: var(--papier); }
.schalter-wahl { display: inline-flex; }
.schalter a, .schalter .schalter-an { display: inline-flex; align-items: center; min-height: 2rem; padding: 0.2rem 0.65rem; border-radius: var(--rund-klein); text-decoration: none; color: var(--tinte); }
.schalter a:hover { background: var(--grau-hell); }
.schalter .schalter-an { color: #ffffff; background: var(--gruen); font-weight: 600; }
.schalter-text { flex: 1 1 100%; color: var(--leise); }
.hinweis-blase {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.4rem);
  left: 0;
  width: max-content;
  max-width: min(22rem, calc(100vw - 4.5rem));
  padding: 0.5rem 0.65rem;
  border-radius: var(--rund-klein);
  background: var(--tinte);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.hinweis-oben { top: auto; bottom: calc(100% + 0.4rem); }
.schalter-wahl:hover > .hinweis-blase, .schalter-wahl:focus-within > .hinweis-blase { visibility: visible; opacity: 1; }
/* Die Sprachwahl in der Leiste ist auch ein Schalter und bekommt dieselbe Erklärung. Auf
   schmalen Bildschirmen steht sie oben rechts: Die Erklärung hängt dann darunter und endet am
   rechten Rand. In der Leiste links steht sie unten: Erklärung darüber, Beginn am linken Rand. */
.leiste .sprachwahl { position: relative; }
.leiste .sprachwahl:hover > .hinweis-blase, .leiste .sprachwahl:focus-within > .hinweis-blase { visibility: visible; opacity: 1; }
.leiste .sprachwahl > .hinweis-blase { top: calc(100% + 0.4rem); bottom: auto; left: auto; right: 0; }
@media (min-width: 60rem) {
  .leiste .sprachwahl > .hinweis-blase { top: auto; bottom: calc(100% + 0.4rem); left: 0; right: auto; }
}
/* Schalter in Formularen (Entscheidung 0045). Im Formular des Vertriebs ein Kästchen als
   Umschalter unter der Zusage, im Formular der Buchhaltung zwei Wahlen nebeneinander. Beide
   erklären sich beim Darüberfahren und mit der Tastatur; der Satz darunter sagt dasselbe für
   das Handy. */
.schalter-feld {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: -0.15rem 0 0.5rem 2.2rem;
  padding: 0.7rem 0.9rem;
  border: 1px dashed var(--linie-stark);
  border-radius: var(--rund);
  background: var(--flaeche);
  cursor: pointer;
}
.schalter-feld input[type="checkbox"] {
  appearance: none;
  position: relative;
  flex: none;
  width: 2.7rem;
  height: 1.5rem;
  margin: 0.05rem 0 0;
  border-radius: 1rem;
  background: var(--linie-stark);
  cursor: pointer;
}
.schalter-feld input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #ffffff;
}
.schalter-feld input[type="checkbox"]:checked { background: var(--gruen); }
.schalter-feld input[type="checkbox"]:checked::after { left: 1.35rem; }
.schalter-feld input[type="checkbox"]:focus-visible { outline: 3px solid var(--gruen-hell); outline-offset: 2px; }
.schalter-feld:has(input:checked) { border-style: solid; border-color: var(--gruen); background: var(--gruen-hell); }
.schalter-feld-titel { display: block; font-weight: 600; }
.schalter-feld-text { display: block; font-size: 0.9375rem; color: var(--leise); }
.schalter-feld:hover > .hinweis-blase, .schalter-feld:focus-within > .hinweis-blase { visibility: visible; opacity: 1; }
.schalter-radio {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  padding: 0.15rem;
  border: 1px solid var(--linie-stark);
  border-radius: var(--rund);
  background: var(--papier);
}
.schalter-radio label {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.3rem 1rem;
  border-radius: var(--rund-klein);
  font-weight: 600;
  cursor: pointer;
}
.schalter-radio input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.schalter-radio label:hover { background: var(--grau-hell); }
.schalter-radio label:has(input:checked) { color: #ffffff; background: var(--gruen); }
.schalter-radio label:has(input:focus-visible) { outline: 3px solid var(--gruen-hell); outline-offset: 2px; }
.schalter-radio label:hover > .hinweis-blase, .schalter-radio label:focus-within > .hinweis-blase { visibility: visible; opacity: 1; }
.schalter-erklaerung { margin: 0.6rem 0 1rem; font-size: 0.9375rem; color: var(--leise); }
.stand-zurueck { color: var(--ocker); font-weight: 600; }
.stand-zurueck::before { background: var(--ocker); }

.vergleich-banner {
  max-width: calc(var(--breite) - 2rem);
  margin: 1rem 1rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--linie-stark);
  border-left: 0.25rem solid var(--tinte);
  border-radius: var(--rund);
  background: var(--grau-hell);
  font-weight: 500;
}
.vergleich-banner a { margin-left: 0.35rem; white-space: nowrap; }
@media (min-width: 60rem) {
  .mit-leiste .vergleich-banner { max-width: calc(var(--breite) - 5rem); margin: 1.25rem 2.5rem 0; }
}
@media print { .schalter-zeile, .hinweis-blase { display: none; } }

