/* Flaytex Host Manager – Oberfläche. Werte aus FLAYTEX-DESIGN.md, im Code nur Token-Namen. */

@font-face {
  font-family: "DM Sans Variable";
  font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url(fonts/dm-sans.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans Variable";
  font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url(fonts/dm-sans-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(fonts/jetbrains-mono.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(fonts/jetbrains-mono-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --fx-orange: #FC7F03;
  --fx-orange-hover: #FF8F22;
  --fx-night: #13100D;
  --fx-night-2: #1C1814;
  --fx-night-3: #26211C;
  --fx-night-line: rgba(247, 242, 236, .10);
  --fx-night-line-strong: rgba(247, 242, 236, .20);
  --fx-on-night: #F7F2EC;
  --fx-on-night-muted: rgba(247, 242, 236, .70);
  --fx-on-night-faint: rgba(247, 242, 236, .45);
  --fx-on-orange: #13100D;
  --fx-ok: #8CCB97;
  --fx-warn: #E6B657;
  --fx-fehler: #F08A7B;
  --fx-ok-bg: rgba(140, 203, 151, .10);
  --fx-warn-bg: rgba(230, 182, 87, .10);
  --fx-fehler-bg: rgba(240, 138, 123, .10);
  --fx-r-sm: 8px;
  --fx-r: 12px;
  --fx-r-lg: 20px;
  --fx-r-xl: 28px;
  --fx-font: "DM Sans Variable", "DM Sans", system-ui, sans-serif;
  --fx-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, Menlo, monospace;
  --eng: .75rem;
  --gruppe: 1.5rem;
  --block: 3rem;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- Grundlagen */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: var(--fx-night); color: var(--fx-on-night);
  font: 400 16px/1.55 var(--fx-font);
  text-wrap: pretty;
}
/* Punktraster, das nach unten ausläuft */
body::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 70vh; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, var(--fx-night-line-strong) 1px, transparent 1.2px);
  background-size: 20px 20px; background-position: 10px 10px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent);
}
a { color: var(--fx-on-night); text-decoration: underline; text-decoration-color: var(--fx-night-line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--fx-orange); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; line-height: 1.2; }
h1 { font-size: 30px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0 0 var(--eng); }
code, pre, .mono, kbd { font-family: var(--fx-mono); font-size: .92em; }
code { background: var(--fx-night-3); padding: 2px 6px; border-radius: 6px; }
pre {
  background: var(--fx-night); border: 1px solid var(--fx-night-line); border-radius: var(--fx-r);
  padding: 14px 16px; margin: 0; overflow-x: auto; white-space: pre; line-height: 1.5; font-size: 13px;
}
pre code { background: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--fx-night-line); margin: var(--gruppe) 0; }
:focus-visible { outline: 2px solid var(--fx-orange); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--fx-orange); color: var(--fx-on-orange); }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

.leise { color: var(--fx-on-night-muted); }
.ganzleise { color: var(--fx-on-night-faint); }
.klein { font-size: 14px; }
.mono { font-family: var(--fx-mono); font-variant-numeric: tabular-nums; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.abstand { margin-bottom: var(--gruppe); }
.abstand-gross { margin-bottom: var(--block); }

/* ---------------------------------------------------------------- Kopfzeile */
.kopf { border-bottom: 1px solid var(--fx-night-line); background: var(--fx-night); }
.kopf .innen {
  max-width: 1120px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: stretch; gap: 32px; height: 68px;
}
.marke { display: flex; align-items: center; flex: none; text-decoration: none; }
.marke img { display: block; height: 44px; width: auto; }
.kopf nav { display: flex; gap: 4px; flex: 1; }
.kopf nav a {
  display: flex; align-items: center; padding: 0 12px; margin-bottom: -1px;
  color: var(--fx-on-night-muted); text-decoration: none; font-weight: 500;
  border-bottom: 2px solid transparent;
}
.kopf nav a:hover { color: var(--fx-on-night); }
.kopf nav a.aktiv { color: var(--fx-on-night); border-bottom-color: var(--fx-orange); }
.kopf-rechts { display: flex; align-items: center; gap: 20px; }
.kopf-ip { color: var(--fx-on-night-faint); font-size: 13px; }
.kopf form { margin: 0; }
.textlink {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: var(--fx-on-night-muted); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--fx-night-line-strong);
}
.textlink:hover { color: var(--fx-on-night); text-decoration-color: var(--fx-orange); }

main { max-width: 1120px; margin: 0 auto; padding: var(--block) 20px 6rem; }

/* ---------------------------------------------------------------- Seitenkopf */
.seitenkopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: var(--block); }
.seitenkopf .unter { color: var(--fx-on-night-muted); margin-top: 6px; }
.seitenkopf .rechts { display: flex; gap: 12px; align-items: center; flex: none; }

/* ---------------------------------------------------------------- Meldungen */
.meldung {
  padding: 14px 18px; border-radius: var(--fx-r); margin-bottom: var(--gruppe);
  border: 1px solid var(--fx-night-line-strong); background: var(--fx-night-2);
  display: flex; gap: 12px; align-items: flex-start;
}
.meldung::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; flex: none; background: var(--fx-on-night-muted); }
.meldung.ok::before { background: var(--fx-ok); }
.meldung.fehler { border-color: var(--fx-fehler); }
.meldung.fehler::before { background: var(--fx-fehler); }
.hinweis {
  padding: 12px 16px; border-radius: var(--fx-r); margin-bottom: var(--eng);
  border-left: 2px solid var(--fx-warn); background: var(--fx-warn-bg); font-size: 15px;
}
.hinweis.fehler { border-left-color: var(--fx-fehler); background: var(--fx-fehler-bg); }
.hinweis.ok { border-left-color: var(--fx-ok); background: var(--fx-ok-bg); }

/* ---------------------------------------------------------------- Karten und Raster */
.karte {
  background: var(--fx-night-2); border: 1px solid var(--fx-night-line);
  border-radius: var(--fx-r-xl); padding: 28px; margin-bottom: var(--gruppe);
  display: flex; flex-direction: column;
}
.karte.betont { border-color: var(--fx-night-line-strong); }
.karte.flach { background: transparent; }
.kartenkopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: var(--gruppe); }
.kartenkopf .leise { font-size: 14px; }
.fuss {
  margin-top: auto; padding-top: var(--gruppe);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.fuss.rechts { justify-content: flex-end; }
.fuss.linie { border-top: 1px solid var(--fx-night-line); }
.wachsen { flex: 1; display: flex; flex-direction: column; }
.wachsen > textarea { flex: 1; }
.raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gruppe); }
.raster > .karte { margin-bottom: 0; }
.raster.breit-links { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.raster.breit-rechts { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gruppe); }
.schmal { max-width: 680px; margin: 0 auto; }
.zeile { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.zeile.zwischen { justify-content: space-between; }
.haelften { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.haelften > div { display: flex; flex-direction: column; padding: 0 28px; }
.haelften > div:first-child { padding-left: 0; border-right: 1px solid var(--fx-night-line); }
.haelften > div:last-child { padding-right: 0; }

/* ---------------------------------------------------------------- Zustand */
.zustand { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.zustand::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.zustand.ok { color: var(--fx-ok); }
.zustand.warn { color: var(--fx-warn); }
.zustand.fehler { color: var(--fx-fehler); }
.zustand.info { color: var(--fx-on-night); }
.zustand.aus { color: var(--fx-on-night-faint); }

/* ---------------------------------------------------------------- Schlüssel/Wert */
.daten { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; align-items: baseline; }
.daten dt { color: var(--fx-on-night-muted); }
.daten dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- Tabelle */
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th {
  text-align: left; font-weight: 500; font-size: 13px; color: var(--fx-on-night-muted);
  padding: 0 16px 12px; border-bottom: 1px solid var(--fx-night-line-strong);
}
.tabelle td { padding: 16px; border-bottom: 1px solid var(--fx-night-line); vertical-align: middle; }
.tabelle tbody tr:last-child td { border-bottom: 0; }
.tabelle .zahl { text-align: right; white-space: nowrap; font-family: var(--fx-mono); font-variant-numeric: tabular-nums; font-size: 15px; }
.tabelle th.zahl { font-family: var(--fx-font); }
.tabelle a { text-decoration: none; }
.tabelle a:hover { text-decoration: underline; }
.karte.tabellenkarte { padding: 20px 12px 8px; }

/* ---------------------------------------------------------------- Formulare */
label { display: block; font-weight: 500; margin-bottom: 6px; }
.feld { margin-bottom: var(--gruppe); }
.hilfe { font-size: 14px; color: var(--fx-on-night-muted); margin-top: 6px; }
input[type=text], input[type=password], input[type=url], input[type=number], textarea, select {
  width: 100%; min-height: 44px; padding: 10px 14px; font: inherit; color: var(--fx-on-night);
  background: var(--fx-night); border: 1px solid var(--fx-night-line-strong); border-radius: var(--fx-r);
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 0; border-color: var(--fx-orange); }
input::placeholder, textarea::placeholder { color: var(--fx-on-night-faint); }
input[type=file] { font: inherit; color: var(--fx-on-night-muted); max-width: 100%; }
input[type=file]::file-selector-button {
  font: inherit; font-size: 14px; font-weight: 500; color: var(--fx-on-night); background: transparent;
  border: 1px solid var(--fx-night-line-strong); border-radius: var(--fx-r-sm); padding: 6px 12px; margin-right: 10px; cursor: pointer;
}
input[type=checkbox], input[type=radio] { accent-color: var(--fx-orange); width: 18px; height: 18px; margin: 0; }
.haken { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.haken input { margin-top: 3px; flex: none; }

/* Optionen untereinander, ruhig */
.optionen { display: flex; flex-direction: column; gap: 10px; }
.optionen label {
  display: flex; gap: 14px; align-items: flex-start; cursor: pointer; margin: 0; font-weight: 400;
  padding: 14px 16px; border: 1px solid var(--fx-night-line); border-radius: var(--fx-r);
}
.optionen label:has(input:checked) { border-color: var(--fx-orange); }
.optionen input { margin-top: 4px; flex: none; }
.optionen strong { font-weight: 500; display: block; }
.optionen .hilfe { margin-top: 2px; display: block; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; font: inherit; font-weight: 500; cursor: pointer;
  border-radius: var(--fx-r); border: 1px solid var(--fx-night-line-strong);
  background: transparent; color: var(--fx-on-night); text-decoration: none; white-space: nowrap;
}
.knopf:hover { border-color: var(--fx-on-night-muted); text-decoration: none; }
.knopf.haupt { background: var(--fx-orange); border-color: var(--fx-orange); color: var(--fx-on-orange); }
.knopf.haupt:hover { background: var(--fx-orange-hover); border-color: var(--fx-orange-hover); }
.knopf.gefahr { color: var(--fx-fehler); }
.knopf.gefahr:hover { border-color: var(--fx-fehler); }
.knopf.gefahr-voll { background: var(--fx-fehler); border-color: var(--fx-fehler); color: var(--fx-night); }
.knopf.klein { min-height: 36px; padding: 0 12px; font-size: 14px; }
.knopf:disabled { opacity: .45; cursor: not-allowed; }
form.inline { display: inline; margin: 0; }

/* ---------------------------------------------------------------- Kopierbare Blöcke */
.kopierbar { position: relative; }
.kopierbar .knopf { position: absolute; top: 10px; right: 10px; }
textarea.nachricht { font-family: var(--fx-mono); font-size: 13px; min-height: 320px; background: var(--fx-night); }
.passwort { font-family: var(--fx-mono); font-size: 20px; letter-spacing: .04em; }
pre.logs { max-height: 380px; overflow-y: auto; font-size: 12.5px; }

/* ---------------------------------------------------------------- Drei-Punkte-Menü */
.tabelle .menuezelle { width: 52px; padding: 6px 8px; text-align: right; }
.menue { position: relative; display: inline-block; }
.menue > summary {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--fx-r); color: var(--fx-on-night-muted);
}
.menue > summary svg { fill: currentColor; }
.menue > summary:hover, .menue[open] > summary { background: var(--fx-night-3); color: var(--fx-on-night); }
.menue-liste {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 200px;
  background: var(--fx-night-2); border: 1px solid var(--fx-night-line-strong); border-radius: var(--fx-r);
  padding: 6px; text-align: left;
}
.menue-liste a, .menue-liste button {
  display: block; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; background: none;
  border-radius: var(--fx-r-sm); font: inherit; color: var(--fx-on-night); text-align: left; cursor: pointer; text-decoration: none;
}
.menue-liste a:hover, .menue-liste button:hover { background: var(--fx-night-3); text-decoration: none; }
.menue-liste form { margin: 0; }
.menue-liste hr { margin: 6px 0; }
.menue-liste .gefahr { color: var(--fx-fehler); }

/* ---------------------------------------------------------------- Dialog */
.dialog {
  border: 1px solid var(--fx-night-line-strong); border-radius: var(--fx-r-lg); padding: 28px;
  width: min(460px, calc(100vw - 32px)); background: var(--fx-night-2); color: var(--fx-on-night);
}
.dialog::backdrop { background: rgba(0, 0, 0, .55); }
.dialog h2 { margin-bottom: var(--eng); }

/* ---------------------------------------------------------------- Leerzustand mit Zeichnung */
.leer { text-align: center; padding: var(--block) 20px; color: var(--fx-on-night-muted); display: flex; flex-direction: column; align-items: center; gap: var(--eng); }
.leer svg { width: 120px; height: auto; color: var(--fx-on-night-muted); }
.leer svg path, .leer svg circle, .leer svg rect, .leer svg line {
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 400; stroke-dashoffset: 400; animation: zeichnen 1.6s ease-out forwards;
}
.leer svg .orange { color: var(--fx-orange); }
@keyframes zeichnen { to { stroke-dashoffset: 0; } }
.leer p { margin: 0; max-width: 36ch; }
.leer .knopf { margin-top: var(--eng); }

/* ---------------------------------------------------------------- Kennzahl (eine pro Ansicht) */
.kennzahl { font-family: var(--fx-mono); font-variant-numeric: tabular-nums; font-size: 48px; font-weight: 500; line-height: 1; letter-spacing: -.02em; margin: var(--eng) 0; }
.kennzahl.negativ { color: var(--fx-fehler); }
.nebenwerte { display: flex; flex-wrap: wrap; gap: var(--eng) var(--gruppe); margin-top: var(--gruppe); }
.nebenwerte > div { min-width: 0; }
.nebenwerte .titel { font-size: 13px; color: var(--fx-on-night-muted); }
.nebenwerte .wert { font-family: var(--fx-mono); font-variant-numeric: tabular-nums; font-size: 17px; }

/* ---------------------------------------------------------------- Aufgaben und Listen */
.aufgaben, .liste { list-style: none; margin: 0; padding: 0; }
.aufgaben li, .liste li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--fx-night-line); }
.aufgaben li:last-child, .liste li:last-child { border-bottom: 0; }
.liste li { justify-content: space-between; }
.aufgaben li .zustand { flex: none; }
.aufgaben li .zustand::before { width: 9px; height: 9px; }

/* ---------------------------------------------------------------- Serverzeile */
.serverzeile {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gruppe);
  padding: 20px 28px; border: 1px solid var(--fx-night-line); border-radius: var(--fx-r-lg);
}
.serverzeile .titel { font-size: 13px; color: var(--fx-on-night-muted); }
.serverzeile .wert { font-family: var(--fx-mono); font-variant-numeric: tabular-nums; font-size: 16px; margin: 2px 0 6px; }
.balken { height: 2px; background: var(--fx-night-line-strong); border-radius: 1px; overflow: hidden; }
.balken > i { display: block; height: 100%; background: var(--fx-on-night-muted); }
.balken > i.warn { background: var(--fx-warn); }
.balken > i.fehler { background: var(--fx-fehler); }

/* ---------------------------------------------------------------- Ablauf in Schritten */
.schritte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.schritte > div { padding: 0 24px; display: flex; flex-direction: column; border-left: 1px solid var(--fx-night-line); min-width: 0; }
.schritte > div:first-child { padding-left: 0; border-left: 0; }
.schritte > div:last-child { padding-right: 0; }
.schritte h3 { margin-bottom: var(--eng); }
.schritte h3 .nr { color: var(--fx-on-night-faint); font-family: var(--fx-mono); font-weight: 400; margin-right: 8px; }
ol.anleitung { margin: 0; padding-left: 20px; }
ol.anleitung li { margin-bottom: 6px; }
ol.anleitung li::marker { color: var(--fx-on-night-faint); font-family: var(--fx-mono); }

/* ---------------------------------------------------------------- Login */
.anmelden { max-width: 400px; margin: 10vh auto 0; text-align: center; }
.anmelden .karte { padding: 36px; }
.anmelden img { width: 100%; max-width: 280px; height: auto; margin: 0 auto var(--block); display: block; }
.anmelden label { text-align: left; }
.anmelden .knopf { width: 100%; }

/* ---------------------------------------------------------------- Handy */
@media (max-width: 900px) {
  .kopf .innen { gap: 20px; }
  .kopf nav a { padding: 0 8px; }
  .kopf-ip { display: none; }
  .tabelle .optional { display: none; }
  .serverzeile { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .schritte { grid-template-columns: minmax(0, 1fr); }
  .schritte > div { padding: var(--gruppe) 0 0; border-left: 0; border-top: 1px solid var(--fx-night-line); margin-top: var(--gruppe); }
  .schritte > div:first-child { padding-top: 0; border-top: 0; margin-top: 0; }
}
@media (max-width: 760px) {
  main { padding: var(--gruppe) 16px 4rem; }
  h1 { font-size: 26px; }
  .karte { padding: 22px 20px; border-radius: var(--fx-r-lg); }
  .raster, .raster.breit-links, .raster.breit-rechts, .zwei, .haelften { grid-template-columns: minmax(0, 1fr); }
  .haelften > div { padding: 0; }
  .haelften > div:first-child { border-right: 0; border-bottom: 1px solid var(--fx-night-line); padding-bottom: var(--gruppe); margin-bottom: var(--gruppe); }
  .seitenkopf { flex-direction: column; align-items: center; text-align: center; gap: var(--gruppe); }
  .seitenkopf .rechts { width: 100%; flex-direction: column; }
  .seitenkopf .rechts .knopf, .seitenkopf .rechts form { width: 100%; }
  .fuss { flex-direction: column; align-items: stretch; text-align: center; }
  .fuss .knopf { width: 100%; }
  .kennzahl { font-size: 40px; }
  /* Kopfzeile in zwei Reihen: Logo und Abmelden oben, Navigation darunter – nichts versteckt sich */
  .kopf .innen { flex-wrap: wrap; gap: 0 16px; height: auto; padding: 12px 16px 0; }
  .marke img { height: 32px; }
  .kopf-rechts { margin-left: auto; }
  .kopf nav { order: 3; flex-basis: 100%; gap: 0; justify-content: center; margin-top: 8px; }
  .kopf nav a { padding: 10px 12px; font-size: 15px; margin-bottom: 0; }
  .kopf-ip { display: none; }
  /* Tabellen werden zu Karten */
  .tabelle thead { display: none; }
  .tabelle, .tabelle tbody, .tabelle tr, .tabelle td { display: block; }
  .tabelle tr { border-bottom: 1px solid var(--fx-night-line); padding: 12px 4px; position: relative; }
  .tabelle tbody tr:last-child { border-bottom: 0; }
  .tabelle td { padding: 4px 0; border: 0; }
  .tabelle td.zahl { text-align: left; }
  .tabelle td.optional { display: none; }
  .tabelle.kundenliste td.menuezelle { position: absolute; right: 0; top: 8px; width: auto; padding: 0; }
  .tabelle td.menuezelle { width: auto; padding: 8px 0 4px; text-align: left; }
  .tabelle td.menuezelle .zeile { justify-content: flex-start !important; }
  .karte.tabellenkarte { padding: 8px 16px; }
  .serverzeile { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px; }
  .daten { grid-template-columns: 1fr; gap: 2px; }
  .daten dt { margin-top: 10px; font-size: 13px; }
  .daten dt:first-child { margin-top: 0; }
  .kopierbar .knopf { position: static; margin-top: var(--eng); }
  .unter { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .leer svg path, .leer svg circle, .leer svg rect, .leer svg line { animation: none; stroke-dashoffset: 0; }
}

/* ---------------------------------------------------------------- Reiter (Server-Seite) */
.reiter { display: flex; gap: 4px; border-bottom: 1px solid var(--fx-night-line); overflow-x: auto; }
.reiter a {
  padding: 10px 14px; margin-bottom: -1px; white-space: nowrap; text-decoration: none; font-weight: 500;
  color: var(--fx-on-night-muted); border-bottom: 2px solid transparent;
}
.reiter a:hover { color: var(--fx-on-night); }
.reiter a.aktiv { color: var(--fx-on-night); border-bottom-color: var(--fx-orange); }

/* ---------------------------------------------------------------- Verlaufsdiagramme: eine Linie, eine Farbe */
.diagramm { margin: 0; min-width: 0; }
.diagramm figcaption { margin-bottom: 6px; }
.diagramm svg { display: block; width: 100%; height: 120px; border-bottom: 1px solid var(--fx-night-line); }
.diagramm .flaeche { fill: var(--fx-on-night-muted); fill-opacity: .08; }
.diagramm .linie { fill: none; stroke: var(--fx-on-night-muted); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.diagramm .cursor { stroke: var(--fx-orange); stroke-width: 1; vector-effect: non-scaling-stroke; }
select.auswahl {
  width: 100%; padding: 8px 12px; font: inherit; color: var(--fx-on-night);
  background: var(--fx-night); border: 1px solid var(--fx-night-line-strong); border-radius: var(--fx-r);
}
@media (max-width: 760px) { .reiter a { padding: 10px 10px; font-size: 15px; } }

/* ---------------------------------------------------------------- Terminal und QR */
.terminal { display: block; width: 100%; height: min(70vh, 640px); border: 1px solid var(--fx-night-line); border-radius: var(--fx-r-lg); background: var(--fx-night); }
.qr { background: #fff; padding: 12px; border-radius: var(--fx-r); width: 200px; height: 200px; }
.qr svg { width: 100%; height: 100%; display: block; }
