:root {
  --hg: #fbfaf7; --flaeche: #fff; --text: #212521; --text2: #626960; --gold: #b59b68; --gold-dunkel: #756039;
  --gold-hell: #e5d7b8; --linie: #e0e2d9; --rot: #b3412f; --gruen: #3f7d4e; --anthrazit: #212521;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text); background: var(--hg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
[hidden] { display: none !important; }
.seite { max-width: 1100px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 48px) 64px; }
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.marke { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.marke-zeichen { width: 28px; height: 28px; border-radius: 8px; background: url(icon.svg) center/cover; }
.kopf-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.link { background: none; border: 0; font: inherit; font-size: 15px; color: var(--text2); padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.link:hover, .link:focus-visible { background: var(--gold-hell); color: var(--text); }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; margin: 0 0 16px; line-height: 1.15; }
h2 { font-size: 20px; font-weight: 600; margin: 0; line-height: 1.3; overflow-wrap: anywhere; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 24px; padding: clamp(20px, 3vw, 32px); margin-bottom: 24px; }
.karte.schmal { max-width: 520px; margin-inline: auto; }
.hinweis { color: var(--text2); line-height: 1.6; margin: 0 0 16px; overflow-wrap: anywhere; }
.hinweis.klein, .klein { font-size: 13px; }
.warnung { color: var(--rot) !important; font-weight: 600; }
.laden { text-align: center; color: var(--text2); padding: 64px 0; }
.formular { display: grid; gap: 16px; }
.formular label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.formular small { font-weight: 400; color: var(--text2); line-height: 1.5; }
input, select, textarea { font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid #c9ccc1; border-radius: 10px; background: #fff; color: var(--text); width: 100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.knopf { font: inherit; font-size: 15px; font-weight: 700; border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer;
  background: linear-gradient(135deg, #e5d7b8, #b59b68); color: #1c1f1c; justify-self: start; }
.knopf:hover { filter: brightness(1.04); }
.knopf:disabled { opacity: .45; cursor: not-allowed; }
.knopf.zweit { background: #fff; border: 1px solid var(--linie); font-weight: 600; }
.status { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--text2); overflow-wrap: anywhere; }
.status[data-art="fehler"] { color: var(--rot); font-weight: 600; }
.qr { display: flex; justify-content: center; margin: 8px 0 12px; }
.qr svg { border-radius: 12px; border: 1px solid var(--linie); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; background: #f2f0ea; padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.ersatz { columns: 2; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; line-height: 2; padding-left: 24px; margin: 0 0 20px; }
.titelzeile { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.titelzeile h1 { margin: 0; }
.geraete { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-bottom: 24px; }
.geraet { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 20px; padding: 20px; display: grid; gap: 10px; align-content: start; }
.geraet-kopf { display: flex; align-items: center; gap: 10px; }
.geraet .hinweis { margin: 0; }
.zeile { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.punkt { width: 10px; height: 10px; border-radius: 50%; background: #a9ada3; flex: none; }
.punkt.gruen { background: #3fae5c; box-shadow: 0 0 0 4px rgba(63, 174, 92, .18); }
.punkt.rot { background: #c9583f; }
.befehl { background: var(--anthrazit); color: #f3efe4; padding: 16px; border-radius: 14px; font-size: 13px; white-space: pre-wrap; word-break: break-all; margin: 0 0 12px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.tabelle-rahmen { overflow-x: auto; background: #fff; border: 1px solid var(--linie); border-radius: 20px; }
.tabelle { border-collapse: collapse; width: 100%; font-size: 14px; }
.tabelle th, .tabelle td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--linie); vertical-align: top; overflow-wrap: anywhere; }
.tabelle th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text2); }
.tabelle td:first-child { white-space: nowrap; }
.tabelle tr[data-art="warnung"] td { color: var(--rot); }

/* --- Fernsteuerung --- */
.sitzung { position: fixed; inset: 0; display: flex; flex-direction: column; background: #151715; color: #ece8dd; }
.leiste { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; background: var(--anthrazit); border-bottom: 1px solid #3a3e39; font-size: 13px; }
.leiste strong { font-size: 14px; }
.leiste-status { color: #b9b4a6; overflow-wrap: anywhere; }
.abstand { flex: 1; }
.auswahl { display: flex; align-items: center; gap: 6px; color: #b9b4a6; }
.auswahl select { font-size: 13px; padding: 5px 8px; background: #2c302b; color: #ece8dd; border-color: #464a44; border-radius: 8px; width: auto; }
.schalter { display: flex; align-items: center; gap: 6px; color: #b9b4a6; cursor: pointer; }
.schalter input { width: auto; }
.klein-knopf { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid #464a44; background: #2c302b; color: #ece8dd; cursor: pointer; }
.klein-knopf:hover { background: #3a3e39; }
.klein-knopf.rot { border-color: #8e3d2e; background: #5a2a21; }
.buehne { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; outline: none; }
.buehne.scroll { overflow: auto; align-items: flex-start; justify-content: flex-start; }
.buehne canvas { display: block; cursor: default; image-rendering: auto; background: #000; }
.buehne:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); }
.buehne-text { position: absolute; inset: auto 0 45% 0; text-align: center; color: #d8d2c3; font-size: 16px; padding: 0 24px; pointer-events: none; overflow-wrap: anywhere; }
.dialog { border: 0; border-radius: 20px; padding: 24px; width: min(520px, 92vw); }
.dialog::backdrop { background: rgba(0, 0, 0, .5); }
@media (max-width: 640px) { .ersatz { columns: 1; } }
