/* DNSPanda – Oberfläche im Stil von PortPandas Verwaltung (Design „Blau“), ohne Build-Schritt.
   Farben und Radien stammen aus PortPanda (src/app/globals.css, Abschnitt .blau). Es gibt nur dieses eine Design;
   alle Farben stehen als Variablen, damit sich ein dunkles später nachrüsten lässt. Die Klassennamen sind die der
   Vorlagen und Tests und bleiben; nur ihr Aussehen ändert sich.
   Aufbau: Variablen, Grundlagen, Rahmen (Leiste, Seite, Anmeldeseite), Bausteine, Druck, Handy. */

@font-face {
  font-family: "Geist";
  src: url("../schriften/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../schriften/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --grund: oklch(0.955 0.008 255);
  --text: oklch(0.38 0.03 255);
  --text-stark: oklch(0.3 0.03 255);
  /* Nie auf der vollen Fläche --gedaempft (nur 4,4 : 1), sondern auf Karte, Grund und deren Mischungen. */
  --text-leise: oklch(0.52 0.03 255);
  --karte: oklch(0.995 0.002 255);
  --gedaempft: oklch(0.925 0.012 255);
  --linie: oklch(0.87 0.018 255);
  --akzent: oklch(0.91 0.03 250);
  --akzent-text: oklch(0.36 0.09 250);
  --primaer: oklch(0.52 0.15 250); /* DAA-Blau #0069B4 */
  --primaer-dunkel: oklch(0.46 0.15 250);
  --primaer-auf: oklch(0.99 0 0);
  --gefahr: oklch(0.577 0.245 27.325);
  --ok: oklch(0.62 0.15 155);
  --warn: oklch(0.75 0.15 75);
  --ok-flaeche: oklch(0.95 0.05 155);
  --ok-text: oklch(0.38 0.09 155);
  --warn-flaeche: oklch(0.96 0.06 90);
  --warn-text: oklch(0.4 0.09 70);
  --fehler-flaeche: oklch(0.95 0.03 25);
  --fehler-text: oklch(0.45 0.18 27);
  --schatten-ruhe: 0 1px 2px 0 oklch(0.35 0.06 250 / 0.09), 0 1px 3px 0 oklch(0.35 0.06 250 / 0.09);
  --schatten-schwebe: 0 6px 16px -4px oklch(0.35 0.06 250 / 0.16), 0 2px 6px -2px oklch(0.35 0.06 250 / 0.09);
  --schatten-dialog: 0 24px 48px -12px oklch(0.35 0.06 250 / 0.16), 0 8px 16px -8px oklch(0.35 0.06 250 / 0.09);
  /* Punktraster wie der Canvas in PortPanda */
  --raster: radial-gradient(circle, rgb(100 116 139 / 0.14) 1px, transparent 1px) 0 0 / 22px 22px;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- Grundlagen ---------- */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  max-width: none; /* hebt den Inline-Rückfall der Fehlerseiten 400/500 auf */
  margin: 0;
  padding: 0;
  background: var(--grund);
  color: var(--text);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primaer); text-underline-offset: 3px; }
h1 { margin: 0 0 4px; color: var(--text-stark); font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
h2 { margin: 0 0 12px; color: var(--text-stark); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
h3 { margin: 0 0 4px; color: var(--text-stark); font-size: 14px; font-weight: 600; }
h4 { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
p { margin: 0 0 12px; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--primaer); outline-offset: 2px; }
.mono, code, pre { font-family: var(--mono); font-size: 12.5px; }
/* Überschriften in Festbreitenschrift (Zonen-, Domain- und Prüfen-Seite) */
h1.mono { font-size: 20px; letter-spacing: -0.02em; } /* gleich groß wie h1 (test_domainname_als_ueberschrift_hat_ueberschriftgroesse) */
.unterzeile, .klein, .helptext { color: var(--text-leise); font-size: 13px; }
.klein { font-size: 12px; }
.unterzeile { margin: 0 0 4px; }
.unterzeile .mono { white-space: nowrap; }
main > .unterzeile { margin-bottom: 16px; }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.nur-drucken { display: none; }
.symbol { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.htmx-request { opacity: 0.6; cursor: progress; }

/* ---------- Rahmen: Seitenleiste und Seite ---------- */

.huelle { display: flex; min-height: 100vh; border-top: 2px solid color-mix(in oklch, var(--primaer) 50%, transparent); }
.seite { flex: 1; min-width: 0; background: var(--raster); }
main { max-width: 72rem; margin: 0 auto; padding: 28px 32px 48px; }
.schmal { max-width: 26rem; }
.mittel { max-width: 36rem; }

.leiste {
  position: sticky;
  top: 0;
  align-self: flex-start;
  display: flex;
  flex: none;
  flex-direction: column;
  width: 16rem;
  height: calc(100vh - 2px);
  height: calc(100dvh - 2px);
  border-right: 1px solid var(--linie);
  background: color-mix(in oklch, var(--karte) 40%, var(--grund));
}
.leiste-kopf { display: flex; align-items: center; gap: 8px; padding: 18px 12px 14px 20px; }
.marke { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; color: var(--text-stark); text-decoration: none; }
.marke img { flex: none; width: 30px; height: 30px; }
.marke b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.marke small { display: block; overflow: hidden; color: var(--text-leise); font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.leiste-nav { flex: 1; overflow-y: auto; padding: 0 12px 12px; }
.leiste-nav a, .leiste-nav summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--text-leise);
  text-decoration: none;
  list-style: none;
  cursor: pointer;
}
.leiste-nav summary::-webkit-details-marker { display: none; }
.leiste-nav summary::after { content: ""; width: 6px; height: 6px; margin: 0 4px 0 auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.leiste-nav details[open] > summary::after { transform: rotate(45deg); }
.leiste-nav a:hover, .leiste-nav summary:hover { background: color-mix(in oklch, var(--gedaempft) 70%, transparent); color: var(--text); }
.leiste-nav a.aktiv { background: color-mix(in oklch, var(--primaer) 10%, transparent); color: var(--text); font-weight: 500; }
.leiste-nav .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leiste-nav .eingerueckt { padding-left: 38px; }
.leiste-nav small { display: block; font-size: 11px; font-weight: 400; }
.zweizeilig { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.zahl { display: flex; align-items: center; gap: 6px; margin-left: auto; color: var(--text-leise); font: 11px var(--mono); }
.leiste-nav a.aktiv .zahl { color: var(--text); }
.zahl.neu::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: oklch(0.68 0.15 230); }
.leiste-gruppe { margin: 0; padding: 14px 12px 4px; color: var(--text-leise); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.leiste-leer { margin: 0; padding: 4px 12px; color: var(--text-leise); font-size: 12px; }
.leiste-profil { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 20px; border-top: 1px solid var(--linie); }
.avatar { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in oklch, var(--primaer) 12%, transparent); color: var(--primaer); font-size: 12px; font-weight: 600; }
.profil-text { flex: 1; min-width: 0; }
.profil-text b { display: block; overflow: hidden; color: var(--text-stark); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.profil-text small { display: block; color: var(--text-leise); font-size: 11px; }
/* Symbol-Knöpfe (Abmelden, Passwort, Menü). Stehen nach dem allgemeinen Knopf-Stil unten nicht, sondern gewinnen über button.ikon. */
.ikon, button.ikon { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--text-leise); cursor: pointer; }
.ikon:hover, button.ikon:hover { background: var(--gedaempft); color: var(--text); }
.ikon.an { background: var(--gedaempft); color: var(--text); }
.leiste-profil form.inline { display: flex; }
/* Nur am Handy mit JavaScript sichtbar (siehe unten). button.menue-zu: Der Knopf-Stil button.ikon ist spezifischer als .menue-zu allein. */
button.menue-zu, .abdunkeln, .handykopf { display: none; }

/* ---------- Anmeldeseite (aussen.html) und schlichter Rahmen ---------- */

.aussen { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; border-top: 2px solid color-mix(in oklch, var(--primaer) 50%, transparent); }
.held {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding-left: 56px;
  border-right: 1px solid var(--linie);
  background:
    radial-gradient(34rem 22rem at 80% 30%, rgb(33 195 208 / 0.16), transparent 60%),
    radial-gradient(30rem 20rem at 0% 0%, rgb(0 105 180 / 0.12), transparent 60%),
    var(--grund);
}
.held-text { position: relative; z-index: 1; flex: 1 1 15rem; min-width: 15rem; padding: 48px 0; }
.held-marke { display: flex; align-items: center; gap: 10px; margin: 0 0 40px; color: var(--text-stark); font-size: 17px; }
.held-marke img { width: 34px; height: 34px; }
.held-marke b { font-weight: 600; letter-spacing: -0.01em; }
.kicker { margin: 0 0 10px; color: var(--primaer); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.claim { margin: 0 0 12px; color: var(--text-stark); font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.025em; }
.claim span { color: var(--primaer); }
.lead { max-width: 20rem; color: var(--text-leise); font-size: 14px; }
.typen { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.typen li { padding: 2px 8px; border: 1px solid var(--linie); border-radius: 6px; background: var(--karte); color: var(--text); font: 11.5px var(--mono); }
/* Schrumpft mit der Spalte (höchstens 48 % davon), damit der Text bei mittleren Breiten (iPad quer) nicht in die Figur läuft. */
.held-figur { flex: 0 1 auto; align-self: flex-end; min-width: 0; width: auto; height: auto; max-width: 48%; max-height: min(72vh, 34rem); margin: 0 12px -4px 0; filter: drop-shadow(0 18px 24px oklch(0.35 0.06 250 / 0.18)); }
.aussen-rechts { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px; background: var(--raster); }
.aussen-logo { display: none; width: auto; height: 3.6rem; margin: 0 0 24px; }
.aussen main { width: 100%; max-width: 22.5rem; margin: 0; padding: 0; }
.aussen .karte { padding: 26px 26px 22px; border-radius: 16px; box-shadow: var(--schatten-dialog); }
/* Wie der Anmelde-Dialog in PortPanda: Absendeknopf über die ganze Breite, darunter abgesetzt der Hinweis */
.aussen .karte button.primaer { width: 100%; height: 40px; margin-top: 4px; font-size: 14px; }
.aussen .karte > p.klein:last-child { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--linie); }

/* Besucher ohne Anmeldung auf anderen Seiten (404, 403) und die Fehlerseiten 400/500: Logo über der Karte */
.schlicht { display: block; }
.schlicht .seite { min-height: calc(100vh - 2px); padding: 48px 20px; }
.schlicht main { max-width: 34rem; padding: 0; }
.schlicht-logo { display: block; width: fit-content; margin: 0 auto 24px; }
.schlicht-logo img { display: block; width: auto; height: 3.6rem; }

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

.karte { margin-bottom: 16px; padding: 16px 18px; border: 1px solid var(--linie); border-radius: 14px; background: var(--karte); box-shadow: var(--schatten-ruhe); }
.karte > :last-child { margin-bottom: 0; }
.karte .tabelle { box-shadow: none; }

.kopfzeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
/* Filterzeilen (Protokoll, Umschüler): Felder links nebeneinander, der Knopf auf Höhe der Felder */
form.kopfzeile { align-items: flex-end; justify-content: flex-start; gap: 12px; }
form.kopfzeile .feld { margin-bottom: 0; }
form.kopfzeile input, form.kopfzeile select { width: auto; min-width: 11rem; }
form.kopfzeile button, form.kopfzeile .knopf { height: 38px; }
.kopfzeile > h1, .kopfzeile > h2 { margin: 0; }
.kopfzeile > .knoepfe { margin-top: 0; }
.kopfzeile.filter .feld { margin-bottom: 0; }
.kopfzeile.filter input, .kopfzeile.filter select { margin: 0; }
.zaehler { color: var(--text-leise); font-size: 12.5px; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
nav.knoepfe { align-items: center; }

.meldungen { margin: 0 0 16px; padding: 0; list-style: none; }
.meldung { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; font-size: 13px; }
.meldungen .meldung { margin-bottom: 8px; }
.meldung a { color: inherit; font-weight: 500; }
.meldung.success { background: var(--ok-flaeche); color: var(--ok-text); }
.meldung.warning { background: var(--warn-flaeche); color: var(--warn-text); }
.meldung.error { background: var(--fehler-flaeche); color: var(--fehler-text); }
.meldung.info { background: var(--akzent); color: var(--akzent-text); }
.fehlertext { margin: 0; color: var(--fehler-text); }

.knopf, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: var(--karte);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.knopf:hover, button:hover { border-color: var(--primaer); }
.knopf.primaer, button.primaer { border-color: var(--primaer); background: var(--primaer); color: var(--primaer-auf); }
.knopf.primaer:hover, button.primaer:hover { border-color: var(--primaer-dunkel); background: var(--primaer-dunkel); }
.knopf.gefahr, button.gefahr { color: var(--gefahr); }
button.gefahr.primaer { border-color: var(--gefahr); background: var(--gefahr); color: var(--primaer-auf); }
.knopf.klein, button.klein { height: 26px; padding: 0 9px; font-size: 12px; }
.knopf:disabled, button:disabled { opacity: 0.5; cursor: not-allowed; }
button.link { height: auto; padding: 0; border: 0; background: none; color: var(--primaer); font-weight: 400; }
button.link:hover { border-color: transparent; text-decoration: underline; }
form.inline { display: inline; }

label { display: block; margin: 0 0 6px; color: var(--text-stark); font-size: 13px; font-weight: 500; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=file], select, textarea {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--linie);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
input[type=file] { height: auto; padding: 7px 12px; }
input[type=file]::file-selector-button { margin-right: 10px; padding: 3px 10px; border: 1px solid var(--linie); border-radius: 6px; background: var(--karte); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
textarea { height: auto; padding: 8px 12px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--primaer); outline: none; box-shadow: 0 0 0 3px color-mix(in oklch, var(--primaer) 22%, transparent); }
input[aria-invalid=true], select[aria-invalid=true] { border-color: var(--gefahr); }
::placeholder { color: var(--text-leise); font-style: italic; opacity: 1; }
td input[type=text], td select { height: 32px; min-width: 8rem; }
form > div, .feld { margin-bottom: 14px; }
.helptext { margin: 0 0 6px; }
.errorlist { margin: 4px 0; padding: 0; list-style: none; color: var(--fehler-text); font-size: 13px; }
.errorlist.nonfield { margin-bottom: 12px; padding: 10px 14px; border-radius: 10px; background: var(--fehler-flaeche); }
.zeile2 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.vorschau { margin: 4px 0 0; color: var(--text-leise); }
.hilfe { margin-bottom: 14px; padding: 12px 14px; border-radius: 10px; background: var(--akzent); color: var(--akzent-text); font-size: 13px; }
.hilfe h3 { margin: 0 0 4px; color: inherit; font-size: 14px; }
.hilfe p { margin: 4px 0; }
.hilfe code { padding: 1px 5px; border-radius: 5px; background: color-mix(in oklch, var(--karte) 70%, transparent); }

.tabelle {
  width: 100%;
  border: 1px solid var(--linie);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--karte);
  box-shadow: var(--schatten-ruhe);
  font-size: 13px;
}
.tabelle th { padding: 8px 12px; border-bottom: 1px solid var(--linie); background: color-mix(in oklch, var(--gedaempft) 40%, transparent); color: var(--text-leise); font-size: 12px; font-weight: 500; text-align: left; }
.tabelle td { padding: 8px 12px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tabelle tr:last-child td, .tabelle tr:last-child th { border-bottom: 0; }
.tabelle tr.geschuetzt td { color: var(--text-leise); }
.tabelle a:not(.knopf) { font-weight: 500; text-decoration: none; }
.tabelle a:not(.knopf):hover { text-decoration: underline; }
.tabelle td.wert { word-break: break-all; }
.tabelle td.ttl { white-space: nowrap; }
.tabelle td.aktionen { white-space: nowrap; text-align: right; }
.tabelle td.aktionen > * { margin-left: 4px; vertical-align: middle; }
.tabelle td.aktionen details.hinweis { display: inline-block; }
.tabelle tr.fehlerzeile td, .tabelle tr.fehlerzeile th.zeilenkopf { background: var(--fehler-flaeche); }
.tabelle th.zeilenkopf { background: transparent; color: inherit; font-size: inherit; font-weight: inherit; }
/* Protokoll: Zeitpunkt und Klasse nicht umbrechen, Details nur bei Bedarf (nicht mitten im Wort) */
.tabelle.protokoll td:nth-child(1), .tabelle.protokoll td:nth-child(3) { white-space: nowrap; }
.tabelle.protokoll td.wert { overflow-wrap: anywhere; word-break: normal; }

/* Kein „KI-Look“ wie in PortPanda: Status als Farbpunkt mit grauem Text, Eintragstypen neutral. */
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--text-leise); font-family: var(--sans); font-size: 13px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-leise); }
.status.aktiv::before { background: var(--ok); }
.status.archiviert::before, .status.wartet::before { background: var(--warn); }
.status.gesperrt::before { background: var(--gefahr); }
.typ { display: inline-block; min-width: 46px; padding: 1px 6px; border: 1px solid var(--linie); border-radius: 6px; background: var(--karte); color: var(--text); font: 11.5px var(--mono); text-align: center; }

.reiter { display: flex; gap: 2px; margin: 14px 0; border-bottom: 1px solid var(--linie); }
.reiter a { margin-bottom: -1px; padding: 7px 14px; border: 1px solid transparent; border-bottom: 0; border-radius: 9px 9px 0 0; color: var(--text-leise); font-size: 13.5px; text-decoration: none; }
.reiter a:hover { color: var(--text); }
.reiter a.aktiv { border-color: var(--linie); background: var(--karte); color: var(--text-stark); font-weight: 500; }

.pruefzeile td { padding: 0; border-bottom: 0; }
.pruefzeile td:not(:empty) { padding: 14px 16px; border-bottom: 1px solid var(--linie); background: color-mix(in oklch, var(--gedaempft) 45%, transparent); }
.antworten { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 10px; margin-bottom: 10px; }
.antwort { padding: 9px 12px; border: 1px solid var(--linie); border-radius: 10px; background: var(--karte); }
.antwort h4 { margin: 0 0 3px; color: var(--text-leise); font-size: 12px; font-weight: 500; }
.antwort ul { margin: 0; padding: 0; list-style: none; }
.antwort p { margin: 0; }
.befehl { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin: 4px 0; padding: 3px 4px 3px 10px; border: 1px solid var(--linie); border-radius: 8px; background: var(--karte); }
.befehl code, .befehl .code-gross { min-width: 0; overflow-wrap: anywhere; }
.befehl button { height: 22px; padding: 0 7px; font-size: 11.5px; }
.code-gross { font: 24px var(--mono); letter-spacing: 0.12em; }
pre.zonendatei { margin: 0 0 12px; padding: 14px 16px; border: 1px solid var(--linie); border-radius: 12px; background: var(--karte); overflow-x: auto; }
.hinweis summary { color: var(--text-leise); font-size: 12px; cursor: pointer; }
.hinweis p { max-width: 22rem; margin: 4px 0 0; font-size: 12px; text-align: left; white-space: normal; }
.zugang dt { margin-top: 8px; font-weight: 600; }
.zugang dd { margin: 0; font: 17px var(--mono); }

/* ---------- Druck ---------- */

@media print {
  .leiste, .handykopf, .abdunkeln, .meldungen, .nicht-drucken { display: none !important; }
  body, .seite { background: #fff; }
  .huelle { display: block; min-height: 0; border-top: 0; }
  main { max-width: none; padding: 0; }
  .karte { border: 1px solid #000; box-shadow: none; }
  .nur-drucken { display: block; width: auto; height: 2.4rem; margin: 0 0 1rem; }
}

/* ---------- Handy ---------- */

@media (max-width: 59.99rem) {
  /* Ohne die linke Spalte steht das Logo über der Karte */
  .aussen { display: block; }
  .held { display: none; }
  .aussen-rechts { min-height: calc(100vh - 2px); }
  .aussen-logo { display: block; }
}

@media (max-width: 47.99rem) {
  main { padding: 20px 16px 32px; }
  /* Ohne JavaScript (kein html.js) bleibt die Leiste ausgeklappt über dem Inhalt. */
  .huelle { display: block; }
  .leiste { position: static; width: auto; height: auto; border-right: 0; border-bottom: 1px solid var(--linie); }
  .leiste-nav { overflow: visible; }
  html.js .handykopf { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--linie); background: color-mix(in oklch, var(--karte) 92%, var(--grund)); }
  .handykopf img { width: 28px; height: 28px; }
  .handykopf b { color: var(--text-stark); font-size: 14px; font-weight: 600; }
  html.js .leiste { display: none; }
  html.js .menue-zu { display: grid; }
  html.js .menue-offen .leiste { position: fixed; inset: 0 auto 0 0; z-index: 50; display: flex; width: min(18rem, 86vw); height: 100dvh; border-right: 1px solid var(--linie); border-bottom: 0; background: var(--karte); box-shadow: var(--schatten-schwebe); }
  html.js .menue-offen .leiste-nav { overflow-y: auto; }
  html.js .menue-offen .abdunkeln { position: fixed; inset: 0; z-index: 40; display: block; background: rgb(0 0 0 / 0.3); }
  /* Eingabefelder mit mindestens 16 px: iOS zoomt sonst beim Antippen in die Seite. */
  input[type=text], input[type=password], input[type=number], input[type=date], select, textarea { font-size: 16px; }
  .tabelle { display: block; overflow-x: auto; }
  .tabelle td.wert { min-width: 12rem; overflow-wrap: anywhere; word-break: normal; }
  .zeile2 { grid-template-columns: 1fr; }
  .reiter { overflow-x: auto; }
}
