/* LazyList Verwaltung. Gleiche Farben wie die Website: Türkis als Markenfarbe, Rot nur für Warnungen. Nichts von Dritten. */

:root {
  --bg: #f4f6f9;
  --panel: #ffffff;
  --card: #ffffff;
  --text: #121821;
  --muted: #5a6473;
  --line: rgba(18, 24, 33, .10);
  --line-strong: rgba(18, 24, 33, .18);
  --accent: #0a8d9b;
  --accent-ink: #07707b;
  --accent-soft: rgba(10, 141, 155, .10);
  --on-accent: #ffffff;
  --ok: #1f8a3a;
  --ok-soft: rgba(31, 138, 58, .12);
  --warn: #9a6400;
  --warn-soft: rgba(230, 160, 20, .16);
  --error: #c62828;
  --error-soft: rgba(198, 40, 40, .08);
  --field: #ffffff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 28px rgba(16, 24, 40, .07);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .06), 0 28px 60px rgba(16, 24, 40, .18);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0d10; --panel: #11141a; --card: #171b22; --text: #f3f5f8; --muted: #a3aab6; --line: rgba(255, 255, 255, .11); --line-strong: rgba(255, 255, 255, .2);
  --accent: #45cdd9; --accent-ink: #72dbe5; --accent-soft: rgba(69, 205, 217, .14); --on-accent: #04252a;
  --ok: #5fd068; --ok-soft: rgba(95, 208, 104, .15); --warn: #ffd27a; --warn-soft: rgba(255, 190, 70, .16); --error: #ff7a7a; --error-soft: rgba(255, 122, 122, .14);
  --field: #0f1217; --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 28px rgba(0, 0, 0, .4); --shadow-lg: 0 2px 4px rgba(0, 0, 0, .5), 0 28px 60px rgba(0, 0, 0, .6); color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 720; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sym { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.laden, noscript p { padding: 48px 24px; text-align: center; color: var(--muted); }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 0; cursor: pointer;
  font: inherit; font-weight: 620; font-size: .95rem; background: var(--accent); color: var(--on-accent); transition: filter .15s, background .15s, box-shadow .15s;
}
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: default; filter: none; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn.ghost:hover { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-ink); filter: none; }
.btn.gefahr { background: var(--error); color: #fff; }
.btn.klein { padding: 7px 12px; font-size: .86rem; border-radius: 10px; }
.btn.breit { width: 100%; padding: 13px 18px; font-size: 1rem; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--accent-soft); color: var(--accent-ink); }
.icon-btn.rot:hover { background: var(--error-soft); color: var(--error); }
.icon-btn:disabled { opacity: .3; cursor: default; background: transparent; color: var(--muted); }
.linkknopf { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-ink); cursor: pointer; }
.linkknopf:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Anmeldung ---------- */
.anmeldung { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(70% 55% at 50% 0%, var(--accent-soft), transparent 70%), var(--bg); }
.anmeldebox { width: min(420px, 100%); }
.anmeldekarte { background: var(--card); border-radius: 24px; padding: 34px 30px 26px; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); }
.anmeldekarte .marke { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.anmeldekarte .marke img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 2px 8px rgba(16, 24, 40, .18); }
.anmeldekarte .marke b { font-size: 1.25rem; letter-spacing: -.02em; display: block; line-height: 1.1; }
.anmeldekarte .marke span { color: var(--muted); font-size: .9rem; }
.anmeldekarte h1 { font-size: 1.45rem; margin-bottom: 6px; }
.anmeldekarte .unter { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.anmeldekarte .klein { font-size: .84rem; color: var(--muted); margin: 18px 0 0; line-height: 1.45; }
.anmeldekarte .zeile { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 18px; font-size: .9rem; }
.fuss { margin-top: 18px; text-align: center; font-size: .84rem; color: var(--muted); display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Formularfelder ---------- */
.feld { display: grid; gap: 6px; margin-bottom: 14px; }
.feld label, .feld > span { font-size: .88rem; font-weight: 620; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.feld .frei { font-weight: 400; color: var(--muted); font-size: .8rem; }
.feld small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], input[type="datetime-local"], select {
  width: 100%; font: inherit; color: var(--text); background: var(--field); border: 1.5px solid var(--line-strong); border-radius: 11px; padding: 10px 12px; min-height: 44px;
}
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.feld.haken { grid-template-columns: auto 1fr; align-items: start; gap: 10px; cursor: pointer; }
.feld.haken input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.feld.haken span { display: grid; gap: 2px; font-weight: 560; font-size: .95rem; justify-content: start; }
.feld.haken small { font-weight: 400; }
.fehlerbox { background: var(--error-soft); color: var(--error); border: 1.5px solid var(--error); border-radius: 11px; padding: 10px 13px; font-size: .92rem; font-weight: 560; margin: 4px 0 14px; }
.okbox { background: var(--ok-soft); color: var(--ok); border-radius: 11px; padding: 10px 13px; font-size: .92rem; font-weight: 560; margin: 4px 0 14px; }

/* ---------- Grundaufbau: Leiste links, Inhalt rechts ---------- */
.schale { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; min-height: 100dvh; }
.seitenleiste { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; }
.seitenleiste .marke { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-weight: 740; font-size: 1.08rem; letter-spacing: -.02em; }
.seitenleiste .marke img { width: 30px; height: 30px; border-radius: 8px; }
.seitenleiste .marke small { display: block; font-weight: 500; font-size: .76rem; color: var(--muted); letter-spacing: 0; }
.orgwahl { margin: 0 4px 14px; padding: 11px 12px; border-radius: 13px; background: var(--accent-soft); display: grid; gap: 2px; }
.orgwahl span { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.orgwahl b { font-size: .96rem; line-height: 1.25; overflow-wrap: anywhere; }
.orgwahl button { justify-self: start; font-size: .84rem; margin-top: 4px; }
.seitenleiste nav { display: grid; gap: 2px; }
.seitenleiste nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; color: var(--muted); font-weight: 560; font-size: .96rem; }
.seitenleiste nav a:hover { background: var(--accent-soft); color: var(--text); text-decoration: none; }
.seitenleiste nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.seitenleiste .spaeter { margin: 16px 4px 0; padding: 12px; border-radius: 13px; border: 1px dashed var(--line-strong); font-size: .82rem; color: var(--muted); line-height: 1.45; }
.seitenleiste .spaeter b { color: var(--text); display: block; margin-bottom: 2px; font-size: .84rem; }
.seitenleiste .unten { margin-top: auto; padding-top: 16px; display: grid; gap: 6px; }
.konto { font-size: .82rem; color: var(--muted); padding: 0 8px; overflow-wrap: anywhere; }
.seitenleiste .unten .reihe { display: flex; gap: 6px; }
.seitenleiste .unten .btn { flex: 1; }
.kopfleiste { display: none; }
.inhalt { padding: 34px clamp(18px, 4vw, 48px) 64px; min-width: 0; }
.inhalt > .innen { max-width: 1040px; margin-inline: auto; }
.seitenkopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.seitenkopf p { color: var(--muted); margin: 6px 0 0; max-width: 62ch; }

/* ---------- Karten, Tabellen, Listen ---------- */
.karte { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: 20px 22px; margin-bottom: 18px; }
.karte > h2 { margin-bottom: 4px; }
.karte > .erkl { color: var(--muted); font-size: .92rem; margin-bottom: 16px; max-width: 70ch; }
.karte.ohne { padding: 0; overflow: hidden; }
.kartenkopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.kartenkopf h2 { display: flex; align-items: center; gap: 10px; }
.zahl { font-size: .78rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 9px; border-radius: 99px; letter-spacing: 0; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kachel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: 18px 20px; color: var(--text); display: grid; gap: 4px; }
a.kachel:hover { text-decoration: none; box-shadow: var(--shadow), inset 0 0 0 1.5px var(--accent); }
.kachel .sym { width: 24px; height: 24px; color: var(--accent); margin-bottom: 6px; }
.kachel b { font-size: 1.9rem; letter-spacing: -.03em; line-height: 1; }
.kachel span { color: var(--muted); font-size: .92rem; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabelle th { text-align: left; font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabelle td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabelle th:first-child, .tabelle td:first-child { padding-left: 22px; }
.tabelle th:last-child, .tabelle td:last-child { padding-right: 16px; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle tbody tr:hover { background: var(--accent-soft); }
.tabelle .aktionen { text-align: right; white-space: nowrap; width: 1%; }
.tabelle .haupt { font-weight: 620; }
.tabelle .neben { color: var(--muted); font-size: .86rem; }
.rollbar { overflow-x: auto; }
.marke-klein { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 680; padding: 2px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.marke-klein.grau { background: var(--line); color: var(--muted); }
.marke-klein.gelb { background: var(--warn-soft); color: var(--warn); }
.marke-klein.gruen { background: var(--ok-soft); color: var(--ok); }
.leer { padding: 34px 22px; text-align: center; color: var(--muted); }
.leer b { display: block; color: var(--text); font-size: 1.02rem; margin-bottom: 4px; }
.hinweis { display: flex; gap: 12px; align-items: flex-start; background: var(--warn-soft); color: var(--text); border-radius: 13px; padding: 13px 16px; font-size: .92rem; margin-bottom: 18px; }
.hinweis .sym { color: var(--warn); margin-top: 1px; }
.hinweis.info { background: var(--accent-soft); }
.hinweis.info .sym { color: var(--accent-ink); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.filter button { font: inherit; font-size: .88rem; font-weight: 600; padding: 7px 14px; border-radius: 99px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer; }
.filter button:hover { color: var(--text); border-color: var(--muted); }
.filter button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.raster2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 22px; }
.zeile-zwischen { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.schalter { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 560; }
.schalter input { position: absolute; opacity: 0; width: 46px; height: 28px; margin: 0; cursor: pointer; }
.schalter i { width: 46px; height: 28px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background .15s; flex: none; }
.schalter i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.schalter input:checked + i { background: var(--accent); }
.schalter input:checked + i::after { transform: translateX(18px); }
.schalter input:focus-visible + i { outline: 3px solid var(--accent); outline-offset: 2px; }
.kennung { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .86rem; color: var(--muted); }
dl.daten { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; font-size: .95rem; }
dl.daten dt { color: var(--muted); }
dl.daten dd { margin: 0; font-weight: 560; overflow-wrap: anywhere; }

/* ---------- Ergänzungen für die Seiten ---------- */
h2 .sym { display: inline-block; vertical-align: -4px; color: var(--accent); margin-right: 4px; }
.abstand { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.abstand-l { margin-left: 8px; }
.fussnote { color: var(--muted); font-size: .88rem; margin: 0 4px 12px; }
.knopfreihe { display: flex; gap: 8px; flex-wrap: wrap; }
.modul { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 13px 0; border-top: 1px solid var(--line); }
.modul:first-of-type { border-top: 0; }
.modul b { display: block; font-weight: 620; }
.modul small { color: var(--muted); font-size: .88rem; }
.farben { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.farbe { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: .9rem; font-weight: 560; color: var(--text); background: transparent; border: 1.5px solid var(--line-strong); border-radius: 99px; padding: 6px 14px 6px 7px; cursor: pointer; }
.farbe:hover { border-color: var(--muted); }
.farbe[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.farbpunkt { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.logozeile { display: flex; align-items: center; gap: 16px; }
.logo-vorschau { width: 64px; height: 64px; border-radius: 14px; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); flex: none; }
.leer-logo { display: grid; place-items: center; text-align: center; font-size: .68rem; color: #6b7480; line-height: 1.2; padding: 6px; }
.reihenfolge { white-space: nowrap; width: 1%; }
.wartezeit select { min-width: 150px; }
.orgliste { display: grid; gap: 8px; margin: 4px 0 6px; }
.orgzeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-radius: 13px; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.orgzeile:hover { text-decoration: none; background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.orgzeile span { display: grid; gap: 1px; min-width: 0; }
.orgzeile b { overflow-wrap: anywhere; }
.orgzeile .sym { color: var(--accent-ink); }
.hinweis .btn { margin-top: 10px; }
/* ---------- Textseite (Datenschutzhinweise) ---------- */
.textseite { max-width: 760px; margin-inline: auto; padding: 40px 20px 72px; }
.textseite h1 { margin: 14px 0 10px; }
.textseite h2 { margin: 28px 0 8px; }
.textseite .stand { color: var(--muted); font-size: .92rem; }
/* ---------- Anbieter-Seite (LazyList-Team): deutlich als solche erkennbar ---------- */
.marke .rolle.anbieter { display: table; background: var(--text); color: var(--bg); padding: 1px 9px; border-radius: 99px; font-weight: 700; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; margin-top: 3px; }
.schale.anbieter .seitenleiste { border-right-color: var(--line-strong); box-shadow: inset 0 3px 0 var(--text); }
a.linkknopf { font-size: .84rem; margin-top: 4px; justify-self: start; }
.tabelle a.haupt { color: var(--text); }
.tabelle a.haupt:hover { color: var(--accent-ink); }
.tabelle .aktionen .btn, .tabelle .aktionen .icon-btn { vertical-align: middle; }
/* ---------- Katalog: Artikel, Lagerschränke, Fahrzeugklassen ---------- */
textarea { width: 100%; font: inherit; color: var(--text); background: var(--field); border: 1.5px solid var(--line-strong); border-radius: 11px; padding: 10px 12px; resize: vertical; min-height: 44px; }
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.kartenkopf.werkzeuge { justify-content: flex-start; }
.suchfeld { position: relative; flex: 1 1 280px; min-width: 200px; }
.suchfeld .sym { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.suchfeld input { padding-left: 40px; }
.werkzeuge select { width: auto; max-width: 100%; flex: 0 1 280px; }
.nurhaken { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 560; cursor: pointer; white-space: nowrap; }
.nurhaken input { width: 19px; height: 19px; accent-color: var(--accent); }
.tabelle .kurz { max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bildzelle { width: 1%; }
.pikto { display: block; width: 52px; height: 52px; border-radius: 12px; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }
.pikto.ohne-bild { display: grid; place-items: center; background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.knopfreihe.mitte { justify-content: center; margin-top: 14px; }
.seitenkopf .knopfreihe { align-items: center; }
.dialog.breit { width: min(620px, calc(100% - 28px)); }
/* ---------- Beladelisten, Lagerreihenfolge, Zugangscodes ---------- */
.zurueck { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; margin-bottom: 10px; }
.fachkopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 12px 16px 12px 22px; border-bottom: 1px solid var(--line); }
.fachkopf h2 { font-size: 1.05rem; }
.fachkopf small { display: block; color: var(--muted); font-size: .86rem; font-weight: 400; letter-spacing: 0; margin-top: 2px; }
.fachkopf .knopfreihe { gap: 2px; align-items: center; }
.tabelle input.soll { width: 9.5rem; min-height: 38px; padding: 6px 10px; }
.tabelle td.fehlt { color: var(--warn); font-weight: 600; }
.speicherleiste { position: sticky; bottom: 14px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 18px; padding: 12px 16px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px var(--accent); }
.speicherleiste span { margin-right: auto; font-weight: 620; }
.wahl { width: 100%; font: inherit; color: var(--text); background: var(--field); border: 1.5px solid var(--line-strong); border-radius: 11px; padding: 6px; min-height: 13.5rem; }
.wahl option { padding: 6px 8px; border-radius: 7px; }
.code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.12rem; font-weight: 700; letter-spacing: .08em; }
.icon-btn.an { color: var(--warn); }
.marke-klein.rot { background: var(--error-soft); color: var(--error); }
/* ---------- Dialog ---------- */
.dialog { border: 0; border-radius: 20px; padding: 26px 26px 22px; width: min(480px, calc(100% - 28px)); background: var(--card); color: var(--text); box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: rgba(8, 12, 18, .55); backdrop-filter: blur(3px); }
.dialog h2 { font-size: 1.3rem; margin-bottom: 14px; }
.dialogtext { color: var(--muted); font-size: .95rem; margin-top: -6px; margin-bottom: 16px; }
.dialogknoepfe { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ---------- Meldungen ---------- */
.meldungen { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; width: max-content; max-width: calc(100% - 28px); }
.meldung { display: flex; align-items: center; gap: 10px; background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 13px; font-weight: 600; font-size: .94rem; box-shadow: var(--shadow-lg); transition: opacity .4s, transform .4s; }
.meldung.fehler { background: var(--error); color: #fff; }
.meldung.weg { opacity: 0; transform: translateY(8px); }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 860px) {
  .schale { grid-template-columns: 1fr; }
  .kopfleiste { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 40; background: var(--panel); border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .kopfleiste .marke { display: flex; align-items: center; gap: 9px; font-weight: 740; }
  .kopfleiste .marke img { width: 28px; height: 28px; border-radius: 8px; }
  .seitenleiste { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 60; transform: translateX(-102%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .schale.offen .seitenleiste { transform: none; }
  .schale.offen::after { content: ""; position: fixed; inset: 0; background: rgba(8, 12, 18, .5); z-index: 50; }
  .inhalt { padding: 22px 16px 56px; }
  h1 { font-size: 1.45rem; }
  .tabelle th:first-child, .tabelle td:first-child { padding-left: 16px; }
  .kartenkopf { padding: 14px 16px; }
  .karte { padding: 18px 16px; }
  .schmal-weg { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* KI-Import, Geräte und Werkseinstellungen (Etappe 4) */
.kiarten { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; }
.kiart { display: grid; gap: 4px; text-align: left; font: inherit; color: var(--text); background: transparent; border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.kiart:hover { border-color: var(--muted); }
.kiart[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.kiart .sym { width: 22px; height: 22px; color: var(--accent); margin-bottom: 4px; }
.kiart b { font-weight: 660; }
.kiart small { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.schritte { margin: 8px 0 14px 1.2rem; display: grid; gap: 4px; color: var(--text); font-size: .95rem; }
.warten .sym { width: 34px; height: 34px; color: var(--accent); display: block; margin: 0 auto 10px; animation: ki-puls 1.6s ease-in-out infinite; }
@keyframes ki-puls { 0%, 100% { opacity: .35; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .warten .sym { animation: none; } }
.hakenzeile { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.hakenzeile input { width: 18px; height: 18px; accent-color: var(--accent); }
.erkl.abstand, .feld.abstand, .knopfreihe.abstand { margin-top: 14px; }
.gefahrkarte { box-shadow: var(--shadow), inset 0 0 0 1.5px var(--error); }
.gefahrkarte .erkl { color: var(--muted); font-size: .92rem; max-width: 70ch; }

/* Besucherzahlen der Website (Anbieter-Seite) */
.kachel:not(a) { cursor: default; }
.saeulen { display: flex; align-items: flex-end; gap: 2px; height: 180px; margin-top: 16px; padding-bottom: 1px; border-bottom: 1.5px solid var(--line-strong); }
.saeulenplatz { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; }
.saeule { display: block; width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--accent); }
.saeule.leer-tag { background: var(--line-strong); }
.saeulenplatz:hover .saeule { filter: brightness(1.15); }
.saeulenachse { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; color: var(--muted); font-size: .82rem; }
.zwei-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 18px; }
.zahlspalte { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; width: 1%; }

/* Benutzer und Gruppen, Website-Texte */
.wahlliste { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.wahlliste legend { font-size: .88rem; font-weight: 620; padding: 0; margin-bottom: 6px; }
.wahlrahmen { display: grid; gap: 2px; max-height: 280px; overflow: auto; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 6px; background: var(--field); }
.wahlliste .wahlzeile { display: grid; grid-template-columns: auto 1fr; justify-content: stretch; gap: 10px; align-items: start; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-weight: 400; }
.wahlzeile:hover { background: var(--accent-soft); }
.wahlzeile input { width: 19px; height: 19px; margin-top: 1px; accent-color: var(--accent); }
.wahlliste .wahlzeile span { display: grid; gap: 1px; font-size: .95rem; font-weight: 560; text-align: left; }
.wahlzeile small { font-weight: 400; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.wahlzeile input:disabled + span { color: var(--muted); }
.gruppenmarken { display: flex; flex-wrap: wrap; gap: 5px; }
.navtrenner { margin: 12px 12px 4px; font-size: .74rem; font-weight: 680; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.karte.abschnitt { padding: 0; }
.karte.abschnitt > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 15px 22px; cursor: pointer; list-style: none; border-radius: var(--radius); }
.karte.abschnitt > summary::-webkit-details-marker { display: none; }
.karte.abschnitt > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; flex: none; margin-right: 2px; }
.karte.abschnitt[open] > summary::before { transform: rotate(45deg); }
.karte.abschnitt > summary:hover { background: var(--accent-soft); }
.abschnitt-titel { font-weight: 680; font-size: 1.04rem; margin-right: auto; }
.textfelder { padding: 6px 22px 10px; border-top: 1px solid var(--line); }
.textfeld { margin: 14px 0 18px; }
.textfeld label { justify-content: flex-start; }
.textfeld textarea, .textfeld input { width: 100%; }
.textfeld.fehlerhaft textarea, .textfeld.fehlerhaft input { border-color: var(--error); }
.textfeld .feldfehler { color: var(--error); font-weight: 560; }
.textfeld .original { display: block; overflow-wrap: anywhere; }
.textfeld .original b { font-weight: 620; }
@media (prefers-reduced-motion: reduce) { .karte.abschnitt > summary::before { transition: none; } }

/* Hell/Dunkel-Knopf auf der Anmeldung und den Seiten ohne Menü */
.farbecke { position: fixed; top: 14px; right: 14px; z-index: 5; }

/* Mitarbeiter und Rechte */
.wahlkopf { padding: 10px 8px 2px; font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.wahlrahmen.hoch { max-height: min(46vh, 430px); }
.nurlesen button.btn, .nurlesen .icon-btn, .nurlesen td.aktionen button, .nurlesen .knopfreihe button { display: none; }
.nurlesen .schalter { pointer-events: none; opacity: .55; }
.gruppenraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; margin-bottom: 18px; align-items: start; }
.gruppenraster .karte { margin-bottom: 0; }
.gruppenkarte h3 { margin-bottom: 8px; }
.zwischentitel { display: flex; align-items: center; gap: 10px; margin: 24px 0 12px; font-size: 1.15rem; }
.rechtebereich { margin: 18px 0 6px; font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.rechtzeile { display: grid; gap: 1px; padding: 8px 0; border-top: 1px solid var(--line); }
.rechtzeile small { color: var(--muted); font-size: .86rem; line-height: 1.4; max-width: 80ch; }