/* Dockly-Gestaltung für die Verwaltungsoberfläche (A5.5, Marke: A16.1).
 *
 * Die Tokens kommen aus dem Markenpaket vom 24.08.2026 — vier Farben, sonst
 * nichts: Dark Blue #001e23 (Logo, Hintergrund, Buttons), Light Grey #f5f5f5
 * (Hintergrund, Text auf dunklem Grund), Buttery Yellow #fff5cf (Akzent, CTA)
 * und Light Blue #b5c7c7 (zweite Knopf- und Akzentfarbe). Jede Abstufung ist
 * ein `color-mix` aus diesen vieren — es gibt keine fünfte Markenfarbe.
 *
 * Die Kontrastregel des Handbuchs entscheidet, was wo führt: Dark Blue auf
 * hellem Grund, Light Grey auf dunklem. Buttery Yellow ist eine **Fläche mit
 * dunkler Schrift**, keine Linienfarbe auf hellem Grund — auf Weiß ist es mit
 * 1,1:1 praktisch unsichtbar. Deshalb ist `--accent` im hellen Modus Dark Blue
 * und erst im dunklen Buttery Yellow; als Fläche (`--cta`) bleibt das Gelb in
 * beiden Modi. Die Seitenleiste ist immer Dark Blue, flach statt Verlauf —
 * der Bildstil des Handbuchs heißt „modern, reduziert".
 *
 * Schrift ist Agenda (Überschriften Bold Italic, Fließtext Regular). Die
 * Dateien aus dem Paket werden **nicht** ausgeliefert — für sie liegt kein
 * Lizenznachweis vor (Entscheidung 27.08.2026). „Agenda" steht vorn im Stapel;
 * lizenzierte Dateien in `statisch/schriften/` plus @font-face genügen später.
 * Bis dahin trägt der Systemstapel — Form vor Fremdverbindung, kein CDN.
 *
 * Erfolg, Warnung und Fehler sind Funktionsfarben, keine Markenfarben: Die
 * Marke kennt kein Rot — eine Fehlermeldung braucht trotzdem eines.
 */

:root {
  color-scheme: light;

  /* Die vier Markenfarben — wörtlich aus farben.json. */
  --dark-blue: #001e23;
  --light-grey: #f5f5f5;
  --buttery-yellow: #fff5cf;
  --light-blue: #b5c7c7;

  /* Semantische Tokens (Hell: Light-Grey-Welt, Dark Blue führt) */
  --background: var(--light-grey);
  --foreground: var(--dark-blue);
  --card: #fff;
  --primary: var(--dark-blue);
  --primary-foreground: var(--light-grey);
  --muted: color-mix(in srgb, var(--light-blue) 22%, #fff);
  --muted-foreground: color-mix(in srgb, var(--dark-blue) 72%, var(--light-blue));
  --accent: var(--dark-blue);
  --cta: var(--buttery-yellow);
  --cta-foreground: var(--dark-blue);
  --destructive: hsl(1 59% 42%);
  --border: color-mix(in srgb, var(--light-blue) 42%, #fff);
  --success: #1a7a4a;
  --warning: #9a5f10;
  --popover: #fff;

  --sidebar-from: var(--dark-blue);
  --sidebar-to: var(--dark-blue);
  --sidebar-foreground: var(--light-grey);
  --sidebar-accent: hsl(0 0% 100% / 0.1);
  /* In der immer dunklen Seitenleiste leuchtet das Markengelb in beiden Modi. */
  --sidebar-akzent: var(--buttery-yellow);

  --radius: 10px;
  --container-app: 1400px;
  --shadow-soft:
    0 2px 8px rgba(0, 30, 35, 0.06), 0 0 0 1px rgba(0, 30, 35, 0.04);

  --font-display: "Agenda", "Avenir Next", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-sans: "Agenda", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --seitenleiste: 15.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    /* Die Dark-Blue-Welt: Hintergrund #001e23, Light Grey als Text — genau die
       Paarung, die das Handbuch für dunkle Flächen vorgibt. */
    --background: var(--dark-blue);
    --foreground: var(--light-grey);
    --card: color-mix(in srgb, var(--dark-blue) 88%, var(--light-grey));
    /* Im dunklen Modus führt das Markengelb. */
    --primary: var(--buttery-yellow);
    --primary-foreground: var(--dark-blue);
    --muted: color-mix(in srgb, var(--dark-blue) 90%, var(--light-grey));
    --muted-foreground: color-mix(in srgb, var(--light-grey) 68%, var(--light-blue));
    --accent: var(--buttery-yellow);
    --destructive: hsl(1 65% 60%);
    --border: color-mix(in srgb, var(--light-grey) 16%, var(--dark-blue));
    /* 5,2:1 auf der dunklen Karte — #3fa876 lag mit 4,2:1 unter der Schwelle. */
    --success: #52b98a;
    --warning: #d9973a;
    --popover: color-mix(in srgb, var(--dark-blue) 88%, var(--light-grey));

    --sidebar-from: var(--dark-blue);
    --sidebar-to: var(--dark-blue);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--foreground);
  background: var(--background);
}

h1,
h2,
h3 {
  /* Agenda Bold Italic: Überschriften sind bei Dockly kursiv und fett — die
     Wortmarke macht es vor. Die Größen folgen der Handbuch-Skala
     (46/34/24/17), proportional auf die Oberfläche verkleinert. */
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}

h1 {
  font-size: 2.05rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2.25rem;
}

h3 {
  font-size: 1.1rem;
}

a {
  color: var(--foreground);
}

code,
.kennung {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* --- Gerüst ------------------------------------------------------------- */

/* Wie in dockly BI: Die **Seite** scrollt nicht, der Inhalt tut es.
   Außen `overflow: hidden`, innen je eine eigene Scrollfläche — so bleibt die
   Navigation stehen, auch wenn eine Kundenliste über den Bildschirm hinausläuft.

   `dvh` statt `vh`: Auf dem Telefon wächst und schrumpft die Browserleiste, und
   `100vh` rechnet sie nicht mit — die Fußzeile läge sonst unerreichbar darunter. */
.geruest {
  display: grid;
  grid-template-columns: var(--seitenleiste) 1fr;
  height: 100dvh;
  overflow: hidden;
}

.seitenleiste {
  background: linear-gradient(180deg, var(--sidebar-from), var(--sidebar-to));
  color: var(--sidebar-foreground);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  box-shadow: inset -1px 0 0 hsl(0 0% 100% / 0.08);
  /* Gescrollt wird die Navigation, nicht die ganze Leiste — wie in dockly BI.
     Der Unterschied ist nicht kosmetisch: Eine scrollende Leiste beschneidet
     alles, was aus ihr herausragt, und das Popover des Mandantenwechslers endete
     an ihrer Kante. */
  overflow: visible;
  min-height: 0;
}

/* Markenkopf: das Logo (Negativ auf Dark Blue) und daneben das Produktkürzel.
   26 px Höhe — über der Mindestgröße des Handbuchs (digital 25 px); der Abstand
   entspricht dem Schutzraum. */
.markenkopf {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0 1.5rem 1.75rem;
}

.markenkopf .logo {
  height: 26px;
  width: auto;
  flex: none;
  display: block;
}

.produktkuerzel {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.markenkopf small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

/* --- Mandanten-Wechsler --------------------------------------------------
   Ein `<details>` statt eines Popovers: Das Aufklappen kann der Browser selbst,
   und die Seite bleibt ohne eine Zeile JavaScript. */

/* --------------------------------------------------------------------------
   Mandantenwechsler — Bauteil für Bauteil wie in dockly BI
   (components/layout/tenant-switcher.tsx).

   Dort ist es ein Radix-Popover, hier ein `<details>`: Diese Oberfläche kommt
   ohne Skripte aus, die CSP erlaubt keine. Sichtbar ist der Unterschied nicht —
   der aufgeklappte Inhalt schwebt genauso über der Navigation, statt sie nach
   unten zu schieben.
   -------------------------------------------------------------------------- */
.mandantenwahl {
  position: relative;
  border-bottom: 1px solid hsl(0 0% 100% / 0.1);
  padding: 0.75rem;
}

.mandantenwahl summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: calc(var(--radius) - 4px);
  color: hsl(0 0% 100% / 0.8);
  font-size: 0.875rem;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

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

.mandantenwahl summary:hover {
  background: hsl(0 0% 100% / 0.1);
  color: #fff;
}

/* Fremde Ansicht: dieselben Werte wie dockly BI (`bg-warning/15 text-warning`).
   Wer sie übersieht, ordnet Zahlen dem falschen Kunden zu. */
.mandantenwahl summary.fremd,
.mandantenwahl summary.fremd:hover {
  background: color-mix(in srgb, var(--warning) 15%, transparent);
  color: var(--warning);
}

.mandantenwahl summary.fremd:hover {
  background: color-mix(in srgb, var(--warning) 25%, transparent);
}

.mandantenwahl .gewaehlt {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.mandantenwahl summary .symbol:last-child {
  opacity: 0.6;
}

/* Der Popover-Körper: heller Grund, Rahmen, Schatten — wie `PopoverContent`. */
.mandantenwahl .auswahl {
  position: absolute;
  z-index: 40;
  left: 0.75rem;
  margin-top: 0.5rem;
  width: 16rem;
  background: var(--popover, #fff);
  color: var(--foreground);
  border-radius: var(--radius);
  box-shadow:
    0 4px 6px -1px hsl(0 0% 0% / 0.1),
    0 2px 4px -2px hsl(0 0% 0% / 0.1);
  outline: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
}

.mandantenwahl .fremdbanner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--warning) 10%, transparent);
  color: var(--warning);
  font-size: 0.75rem;
}

.mandantenwahl .fremdbanner span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mandantenwahl .fremdbanner button {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: none;
  border-radius: calc(var(--radius) - 6px);
  background: transparent;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

.mandantenwahl .fremdbanner button:hover {
  background: color-mix(in srgb, var(--warning) 20%, transparent);
}

.mandantenwahl .fremdbanner .symbol {
  width: 12px;
  height: 12px;
}

.mandantensuche {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-bottom: 1px solid var(--border);
}

.mandantensuche .symbol {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--muted-foreground);
}

.mandantensuche input {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  outline: none;
}

.mandantensuche input::placeholder {
  color: var(--muted-foreground);
}

.mandantenliste {
  max-height: 18rem;
  overflow-y: auto;
  padding: 0.25rem;
}

.mandantenliste .leer {
  margin: 0;
  padding: 0.75rem 0.625rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  text-align: center;
}

.mandanteneintrag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 0.875rem;
  text-align: left;
  border-radius: calc(var(--radius) - 4px);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.mandanteneintrag:hover {
  background: var(--muted);
}

.mandanteneintrag.aktiv {
  font-weight: 500;
}

.mandanteneintrag .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mandanteneintrag .eigener {
  flex: none;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.mandanteneintrag .platzhalter,
.mandanteneintrag .symbol {
  width: 14px;
  flex: none;
}

.mandanteneintrag .symbol {
  color: var(--accent);
}

/* --- Navigation ---------------------------------------------------------- */

.navigation {
  padding-top: 0.5rem;
  /* Nimmt den freien Platz und scrollt für sich; Markenkopf, Wechsler und Fuß
     bleiben stehen. */
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* Abschnittsüberschrift wie in dockly BI — der Startpunkt bleibt ohne. */
.abschnitt {
  margin: 1.1rem 0 0.3rem;
  padding: 0 1.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(0 0% 100% / 0.4);
}

.navigation a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.5rem;
  color: hsl(0 0% 100% / 0.72);
  text-decoration: none;
  border-left: 3px solid transparent;
  font-size: 0.92rem;
}

.navigation a:hover {
  background: var(--sidebar-accent);
  color: #fff;
}

.navigation a.aktiv {
  color: #fff;
  background: var(--sidebar-accent);
  border-left-color: var(--sidebar-akzent);
}

.symbol {
  width: 17px;
  height: 17px;
  flex: none;
}

.seitenleiste footer {
  margin-top: auto;
  padding: 1.25rem 1.5rem 0;
  border-top: 1px solid hsl(0 0% 100% / 0.1);
  font-size: 0.8rem;
  color: hsl(0 0% 100% / 0.55);
}

.seitenleiste footer a {
  color: var(--sidebar-akzent);
}

.seitenleiste footer img {
  width: 92px;
  margin-bottom: 0.9rem;
  opacity: 0.75;
}

.inhalt {
  padding: 2rem 2.5rem 4rem;
  max-width: var(--container-app);
  /* Ohne dies sprengt eine breite Tabelle die Rasterspalte: Ein Grid-Item hat
     `min-width: auto` und wächst mit seinem Inhalt, statt ihn scrollen zu lassen.
     Auf dem Telefon schiebt das die ganze Seite seitlich weg. */
  min-width: 0;
  /* Hier scrollt der Inhalt — und nur hier. */
  overflow-y: auto;
  min-height: 0;
}

.kopfzeile {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.untertitel {
  color: var(--muted-foreground);
  margin: 0;
}

.mandantenwahl {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
}

.mandantenwahl select {
  min-width: 9rem;
}

.mandantenwahl button {
  white-space: nowrap;
}

/* --- Bausteine ---------------------------------------------------------- */

.karte {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  min-width: 0;
}

/* Breite Tabellen scrollen in sich, nie die Seite. */
.tabellenrahmen {
  overflow-x: auto;
}

.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

th {
  text-align: left;
  font-weight: 600;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.75rem 0.5rem 0;
  white-space: nowrap;
}

td {
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: none;
}

td.zahl,
th.zahl {
  text-align: right;
}

/* Status immer als Farbe **und** Wort — nie Farbe allein. */
.marke {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
}

.marke.ja {
  background: color-mix(in srgb, var(--success) 12%, transparent);
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 30%, transparent);
}

.marke.nein {
  background: var(--muted);
  color: var(--muted-foreground);
  border-color: var(--border);
}

.marke.achtung {
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  color: var(--warning);
  border-color: color-mix(in srgb, var(--warning) 30%, transparent);
}

button,
.knopf {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 1rem;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

button:hover,
.knopf:hover {
  opacity: 0.9;
}

button.zurueckhaltend {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

button.gefaehrlich {
  background: transparent;
  border-color: var(--destructive);
  color: var(--destructive);
}

button.gefaehrlich:hover {
  background: var(--destructive);
  color: #fff;
  opacity: 1;
}

input,
select {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  background: var(--card);
  color: var(--foreground);
  width: 100%;
}

input:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.feldreihe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.hinweis {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  /* Die Highlight-Fläche des Handbuchs: ein Hauch Buttery Yellow. */
  background: color-mix(in srgb, var(--cta) 30%, var(--card));
  margin-bottom: 1.25rem;
}

.hinweis.fehler {
  border-left-color: var(--destructive);
  background: color-mix(in srgb, var(--destructive) 8%, var(--card));
}

.leise {
  color: var(--muted-foreground);
  font-size: 0.88rem;
}

/* Zwei Knöpfe je Zeile — nebeneinander statt untereinander. */
td.aktionen {
  display: flex;
  gap: 0.4rem;
  white-space: nowrap;
}

/* Für Überschriften direkt am Kartenrand. Als Klasse statt als style-Attribut:
   Die Sicherheitsrichtlinie erlaubt nur eigene Stylesheets, keine Inline-Stile. */
.ohne-abstand {
  margin-top: 0;
}

.trenner {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.kennwert {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

/* --- Verbindungsseite ---------------------------------------------------- */

.pruefliste {
  display: grid;
  gap: 1rem;
}

.pruefpunkt {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.pruefpunkt + .pruefpunkt {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.pruefpunkt .titel {
  margin: 0 0 0.15rem;
  font-weight: 600;
}

.pruefpunkt p {
  margin: 0 0 0.2rem;
}

/* Der konkrete Handgriff — hervorgehoben, weil er die eigentliche Antwort ist. */
.abhilfe {
  margin-top: 0.4rem !important;
  padding: 0.5rem 0.75rem;
  border-left: 2px solid var(--accent);
  background: color-mix(in srgb, var(--cta) 24%, transparent);
  font-size: 0.88rem;
}

.adresse code,
.befehl code {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: calc(var(--radius) - 4px);
  background: var(--muted);
  font-size: 0.9rem;
  overflow-x: auto;
  white-space: pre;
}

.schritte {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
}

.schritte li {
  margin-bottom: 0.4rem;
}

/* --- Anmeldeseite ------------------------------------------------------- */

.anmeldung {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--dark-blue);
  padding: 2rem;
}

.anmeldung .karte {
  max-width: 26rem;
  width: 100%;
  text-align: center;
  padding: 2.5rem 2rem;
  background: hsl(0 0% 100%);
  color: var(--dark-blue);
  /* Die Karte ist in beiden Modi weiß — ihre Token müssen deshalb bei den
     Hell-Werten bleiben. Ohne dies stünde im Dunkelmodus heller Nebentext auf
     weißem Grund (praktisch unsichtbar) und eine Fehlerbox mischte sich ihr
     dunkles `--card` in die weiße Fläche. */
  --foreground: var(--dark-blue);
  --muted-foreground: color-mix(in srgb, var(--dark-blue) 72%, var(--light-blue));
  --accent: var(--dark-blue);
  --border: color-mix(in srgb, var(--light-blue) 42%, #fff);
  --card: #fff;
  --destructive: hsl(1 59% 42%);
}

.anmeldung .marke-bild {
  width: 150px;
  margin: 0 auto 1.5rem;
  display: block;
}

.anmeldung .knopf {
  width: 100%;
  background: var(--cta);
  border-color: var(--cta);
  color: var(--cta-foreground);
  font-weight: 600;
  padding: 0.65rem 1rem;
}

/* --- Rücksichten -------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 48rem) {
  /* Einspaltig: Die Navigationsleiste sitzt oben und bleibt beim Scrollen stehen;
     gescrollt wird wieder die Seite, weil zwei Scrollflächen auf einem Telefon
     mehr stören als helfen. */
  .geruest {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .inhalt {
    overflow-y: visible;
  }

  .seitenleiste {
    position: sticky;
    top: 0;
    z-index: 10;
    overflow-y: visible;
    padding-bottom: 0.75rem;
    /* Ohne dies wächst die Rasterspalte mit der waagerechten Navigation und
       schiebt die ganze Seite zur Seite. */
    min-width: 0;
  }

  .navigation {
    display: flex;
    overflow-x: auto;
    padding-top: 0;
  }

  /* Abschnittsüberschriften ergeben in einer waagerechten Leiste keinen Sinn —
     sie stünden neben den Einträgen statt darüber. */
  .navigation .abschnitt {
    display: none;
  }

  .navigation a {
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }

  .navigation a.aktiv {
    border-left: none;
    border-bottom-color: var(--sidebar-akzent);
  }

  .mandantenwahl {
    padding-bottom: 0.5rem;
  }

  .mandantenwahl .auswahl {
    max-height: 12rem;
  }

  .seitenleiste footer {
    display: none;
  }

  .inhalt {
    padding: 1.5rem 1.25rem 3rem;
  }
}


/* Sichtbar nur für Screenreader — ein Platzhalter ist keine Beschriftung. */
.nur-fuer-screenreader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
