:root {
  --bg: #F4F6F9;
  --card: #fff;
  --txt: #0f172a;
  --sub: #64748b;
  --brd: #e2e8f0;
  --pri: #1976D2;
  --pri-h: #1565C0;
  --pri-l: #eff6ff;
  --grn: #10B981;
  --red: #C8102E;
  --ylw: #f59e0b;
  --blk: #1e1e1e;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(15,23,42,.05);
  --shadow-h: 0 6px 18px rgba(15,23,42,.10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--txt); font-size: 15px; }

.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--brd); margin-bottom: 16px; }

.btn { padding: 8px 15px; border: 1px solid var(--brd); border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s; background: #fff; }
.btn-pri { background: var(--pri); color: #fff; border-color: var(--pri); }
.btn-pri:hover { background: var(--pri-h); }
.btn-reset { background: #fff; }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-sm { padding: 4px 10px; font-size: 12px; }

.ef-input { width: 100%; padding: 8px 10px; border: 1px solid var(--brd); border-radius: 6px; font-size: 14px; margin-bottom: 8px; }

.login-overlay { position: fixed; inset: 0; background: var(--bg); z-index: 300; display: flex; align-items: center; justify-content: center; }
.login-box { background: var(--card); padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--brd); box-shadow: var(--shadow); width: 320px; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.login-box h1 { font-size: 19px; margin-bottom: 8px; }
.login-box .btn { width: 100%; }
.login-error { color: var(--red); font-size: 13px; }
.login-recht { font-size: 12px; color: var(--sub); margin-top: 4px; }
.login-recht a { color: var(--sub); }

.prio-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; color: #fff; }
.prio-badge.prio-S { background: var(--blk); }
.prio-badge.prio-A { background: var(--red); }
.prio-badge.prio-B { background: var(--ylw); color: #000; }
.prio-badge.prio-C { background: #94a3b8; }

.status-badge { padding: 4px 9px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.status-offen { background: #fee2e2; color: #991b1b; }
.status-laeuft { background: #fef3c7; color: #92400e; }
.status-erledigt { background: #dcfce7; color: #166534; }

.ampel-chip { display: inline-block; padding: 7px 13px; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; transition: transform .15s; }
.ampel-chip:hover { transform: scale(1.05); }
.ampel-chip.rot { background: #fee2e2; color: #991b1b; }
.ampel-chip.gelb { background: #fef3c7; color: #92400e; }
.ampel-chip.gruen { background: #dcfce7; color: #166534; }
.ampel-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal { background: #fff; border-radius: var(--radius); width: min(480px, 92vw); max-height: 85vh; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; position: relative; }
.modal-scroll { overflow-y: auto; padding: 20px; flex: 1; min-height: 0; }
.modal-btns { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--brd); flex-shrink: 0; margin-top: 0; }
.modal-btns .btn { font-size: 13px; padding: 8px 12px; white-space: nowrap; }
.ef-row { margin-bottom: 8px; }
.ef-label { display: block; font-size: 12px; color: var(--sub); margin-bottom: 3px; }

.el-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.el-head-title { display: flex; align-items: center; gap: 8px; }
.type-ico { display: inline-flex; align-items: center; color: var(--pri); vertical-align: middle; }
.type-ico svg { width: 16px; height: 16px; }
.el-head-title .type-ico svg { width: 22px; height: 22px; }
.el-empty { color: var(--sub); font-size: 13px; padding: 12px 0; }
/* Werkstattwichtel (Schalter "wichtel"): leere Listen + Tipp beim ersten Oeffnen */
.wi-leer { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px 12px; text-align: left; }
.wi-leer-bild { width: 132px; height: 198px; object-fit: contain; flex-shrink: 0; }
.wi-leer-titel { font-size: 16px; font-weight: 700; color: var(--txt, #0f172a); }
.wi-leer-text { font-size: 13px; color: var(--sub); margin-top: 4px; }
.wi-tipp { position: fixed; right: 16px; bottom: 16px; z-index: 9000; display: flex; align-items: flex-end; gap: 6px; max-width: min(400px, calc(100vw - 32px)); animation: wiRein .35s ease-out; transition: opacity .25s, transform .25s; }
.wi-tipp.wi-weg { opacity: 0; transform: translateY(16px); }
.wi-tipp-bild { width: 120px; height: 180px; object-fit: contain; flex-shrink: 0; order: 2; }
.wi-tipp-blase { background: #fff; border: 1px solid var(--brd); border-radius: 14px; box-shadow: 0 8px 28px rgba(15,23,42,.18); padding: 12px 14px; margin-bottom: 24px; }
.wi-tipp-titel { font-weight: 700; font-size: 14px; color: var(--pri); }
.wi-tipp-text { font-size: 13px; color: #334155; margin-top: 4px; line-height: 1.45; }
.wi-tipp-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wi-tipp-btns .btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 10px; }
/* Fehlende Pflichtfelder (Schalter pflichtMarkieren) */
.ef-fehlt { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220,38,38,.18) !important; background-color: #fff7f7 !important; animation: efFehlt .5s ease-in-out 1; }
@keyframes efFehlt { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .ef-fehlt { animation: none; } }
/* Fehler-Hinweis mit grossem Wichtel (17.11.2026): unten links, ueber Dialogen */
.wi-hilfe { position: fixed; left: 20px; bottom: 16px; z-index: 450; display: flex; align-items: flex-end; gap: 4px; max-width: min(460px, calc(100vw - 32px)); animation: wiRein .35s ease-out; transition: opacity .25s, transform .25s; }
.wi-hilfe.wi-weg { opacity: 0; transform: translateY(16px); }
.wi-hilfe-bild { width: 150px; height: 225px; }
.wi-hilfe-blase { position: relative; background: #fff; border: 2px solid var(--red, #dc2626); border-radius: 16px; box-shadow: 0 10px 30px rgba(15,23,42,.25); padding: 12px 14px; margin-bottom: 70px; min-width: 200px; }
.wi-hilfe-blase:before { content: ""; position: absolute; left: -11px; bottom: 26px; border: 10px solid transparent; border-right-color: var(--red, #dc2626); border-left: 0; }
.wi-hilfe-titel { font-weight: 800; font-size: 15px; color: var(--red, #dc2626); }
.wi-hilfe-text { font-size: 13px; color: #334155; margin-top: 4px; }
.wi-hilfe-liste { margin: 4px 0 0; padding-left: 18px; font-size: 14px; font-weight: 600; color: #0f172a; line-height: 1.5; }
.wi-hilfe-ok { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 10px; }
@media (max-width: 600px) { .wi-hilfe { left: 8px; right: 8px; top: 8px; bottom: auto; max-width: none; align-items: center; } .wi-hilfe-bild { width: 92px; height: 138px; } .wi-hilfe-blase { margin-bottom: 0; flex: 1; min-width: 0; } .wi-hilfe-blase:before { bottom: auto; top: 40%; } }
@keyframes wiRein { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wi-tipp { animation: none; } }
@media (max-width: 600px) { .wi-tipp { right: 8px; left: 8px; bottom: 8px; max-width: none; } .wi-tipp-bild { width: 92px; height: 138px; } .wi-leer-bild { width: 104px; height: 156px; } }

table { border-collapse: collapse; font-size: 14px; width: 100%; }
table.el-table { border-collapse: separate; border-spacing: 0 6px; }
table.el-table th, table.el-table td { white-space: nowrap; }
@media (max-width: 600px) { table.el-table th, table.el-table td { white-space: normal; font-size: 12px; padding: 6px 8px; } table.el-table { border-spacing: 0 4px; } .item-card { padding: 12px; } .item-problem { font-size: 13px; } .item-meta { font-size: 11px; } }
table.el-table th.col-flex, table.el-table td.col-flex { white-space: normal; width: 100%; }
table.el-table th { font-weight: 600; color: var(--sub); font-size: 13px; text-align: left; padding: 6px 12px; border-bottom: none; }
table.el-table td { padding: 12px; text-align: left; background: var(--card); border-top: 1px solid var(--brd); border-bottom: 1px solid var(--brd); }
table.el-table td:first-child { border-left: 1px solid var(--brd); border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
table.el-table td:last-child { border-right: 1px solid var(--brd); border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
table.el-table tr[data-id] { cursor: pointer; transition: box-shadow .15s, transform .1s; }
table.el-table tr[data-id]:hover td { background: #f0f4ff; }
table.el-table tr[data-id]:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
table.el-table tr[data-id].done-row td { opacity: .4; }


th { font-weight: 600; color: var(--sub); font-size: 13px; text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--brd); }
td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--brd); }
.item-card { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 10px; cursor: pointer; }
.done-card { opacity: .35; }

.pinned-card { border-left: 3px solid var(--ylw); }
.item-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; gap: 8px; }
.item-linie { font-size: 13px; font-weight: 600; }
.item-problem { font-size: 14px; margin-bottom: 6px; }
.item-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--sub); }
.item-notiz { font-size: 12px; color: var(--pri); font-style: italic; margin-top: 4px; padding: 4px 8px; background: #f0f4ff; border-radius: 4px; white-space: pre-line; }
.item-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.prio-bar { height: 3px; border-radius: 2px; margin-top: 6px; max-width: 140px; }
.item-card.spaetschicht-row { border-left: 4px solid #7c3aed; background: #f5f3ff; }

.item-actions .act-done, .item-actions .act-del { padding: 6px 9px; }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.dash-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; text-align: center; }
.dash-num { font-size: 28px; font-weight: 700; color: var(--pri); }
.dash-label { font-size: 12px; color: var(--sub); margin-top: 4px; }
.dash-section-title { font-size: 14px; font-weight: 600; margin: 4px 0 10px; color: var(--sub); }

.rte-wrap {}
.rte-hint { color: var(--sub); font-size: 13px; margin-bottom: 12px; }
.rte-table th:not(:first-child), .rte-table td:not(:first-child) { text-align: center; }
.rte-btns { display: flex; gap: 8px; margin-top: 14px; }
.rte-status { font-size: 13px; color: var(--grn); margin-top: 8px; }
.pin-btn { cursor: pointer; font-size: 15px; opacity: .4; transition: opacity .2s; margin-right: 6px; }
.pin-btn.pinned { opacity: 1; color: var(--ylw); }
td.row-actions { white-space: nowrap; text-align: center; vertical-align: middle; }
.row-actions-inner { display: inline-flex; align-items: center; gap: 4px; }
.act-done { background: #16a34a; color: #fff; border-color: #16a34a; font-weight: 700; }
.act-done:hover { background: #15803d; }
.act-del { background: #ef4444; color: #fff; border-color: #ef4444; }
.act-del:hover { background: #dc2626; }
tr.done-row .act-del { background: #fecaca; color: #7f1d1d; border-color: #fecaca; opacity: .7; }
tr.done-row .act-del:hover { opacity: 1; }

.nsw-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 16px; }
.nsw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brd); transition: all .2s; }
.nsw-dot.active { width: 24px; border-radius: 4px; background: var(--pri); }
.nsw-dot.done { background: var(--pri); }
.nsw-h { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.nsw-sub { font-size: 12px; color: var(--sub); margin-bottom: 16px; }
.nsw-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.req { color: var(--red); font-size: 14px; }
.nsw-chip { padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; background: var(--card); border: 1.5px solid var(--brd); cursor: pointer; transition: all .15s; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.nsw-chip:hover { border-color: var(--pri); background: #f0f4ff; }
.nsw-chip.sel { background: var(--pri); color: #fff; border-color: var(--pri); }
.chip-meta { display: block; font-size: 10px; opacity: .7; margin-top: 2px; }
/* Linien-Auswahl im Störungs-Wizard (24.11.2026, Nutzer): gleichmäßiges Raster, alle Knöpfe gleich groß */
.nsw-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.nsw-raster .nsw-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px 6px; border-radius: 12px; font-size: 14px; line-height: 1.25; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.nsw-input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--brd); border-radius: 8px; font-size: 14px; background: var(--card); margin-bottom: 8px; }
.nsw-sel { display: flex; align-items: center; padding: 10px 14px; background: linear-gradient(135deg,#eff6ff,#f0f4ff); border-radius: 8px; margin-bottom: 8px; font-size: 13px; gap: 8px; }
.nsw-sel-icon { font-size: 16px; color: var(--pri); }
.nsw-sel-text { flex: 1; }
.nsw-sel-edit { border: none; background: none; color: var(--pri); cursor: pointer; font-size: 14px; padding: 6px; }
.nsw-prio { flex: 1; padding: 16px 8px; border-radius: 8px; font-size: 15px; font-weight: 700; border: 2px solid var(--brd); background: var(--card); color: var(--txt); cursor: pointer; text-align: center; }
.nsw-team { font-size: 11px; color: var(--sub); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin: 12px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--brd); }
.nsw-summary { border-radius: 8px; background: var(--card); border: 1.5px solid var(--brd); overflow: hidden; margin-bottom: 16px; }
.nsw-srow { display: flex; padding: 10px 14px; border-bottom: 1px solid var(--brd); font-size: 13px; }
.nsw-slbl { width: 100px; color: var(--sub); font-weight: 500; flex-shrink: 0; }
.nsw-sval { flex: 1; font-weight: 500; }

.fs2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, max-content)); gap: 8px; margin-bottom: 14px; max-height: 50vh; overflow-y: auto; }
.fs2-tile { background: var(--bg); border: 1px solid var(--brd); border-radius: 8px; padding: 10px 14px; text-align: center; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s; max-width: 220px; }
.fs2-tile:hover { background: #eff6ff; border-color: var(--pri); }
.fs2-tile.sel { background: var(--pri); color: #fff; border-color: var(--pri); }
.fs2-tile .cnt { display: block; font-size: 10px; opacity: .7; margin-top: 2px; }
.fs2-steps { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.fs2-step { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--brd); color: var(--sub); }
.fs2-step.active { background: var(--pri); color: #fff; }
.fs2-step.done { background: #dbeafe; color: var(--pri); }

.ef-checklist { margin-bottom: 8px; }
.ef-check-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.ef-check-row { display: flex; align-items: center; gap: 8px; }
.ef-check-row .ef-check-text { flex: 1; padding: 7px 10px; border: 1px solid var(--brd); border-radius: 6px; font-size: 13px; }
.ef-check-row .ef-check-done { width: 17px; height: 17px; flex-shrink: 0; cursor: pointer; }
.ef-check-del { background: none; border: none; color: var(--sub); cursor: pointer; font-size: 13px; padding: 4px 6px; flex-shrink: 0; }
.ef-check-del:hover { color: var(--red); }
.checklist-view { display: flex; flex-direction: column; gap: 6px; }
.checklist-view-row { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.checklist-view-row.done { color: var(--sub); text-decoration: line-through; }
.checklist-view-row input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }

/* ===== Startseite (V3-Design) ===== */
.home-wrap { max-width: 1280px; margin: 0 auto; padding: 4px 0 24px; }
.home-date { font-size: 13px; color: var(--sub); margin-bottom: 12px; display: none; }
/* Fehlersuche-Leiste */
#homeFehlersuche { max-width: 900px; margin: 0 auto 22px; }
.hfs-card { background: #fff; border: 2px solid var(--pri); border-radius: var(--radius-lg); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; box-shadow: 0 1px 3px rgba(25,118,210,.10); transition: background .15s, box-shadow .15s, border-color .15s; }
.hfs-card:hover { background: #f5f9ff; border-color: var(--pri-h); box-shadow: var(--shadow-h); }
.hfs-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hfs-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--pri-l); color: var(--pri); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .15s, color .15s; }
.hfs-card:hover .hfs-ico { background: var(--pri); color: #fff; }
.hfs-title { font-size: 17px; font-weight: 700; color: var(--pri); letter-spacing: -.01em; }
.hfs-sub { font-size: 12px; color: var(--sub); margin-top: 2px; }
.hfs-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hfs-kbd { font-size: 11px; font-family: ui-monospace, Menlo, monospace; font-weight: 600; color: #475569; background: #f1f5f9; border: 1px solid var(--brd); border-radius: 6px; padding: 4px 8px; }
.hfs-kbd kbd { font-family: inherit; }
.hfs-btn { background: var(--pri); color: #fff; border-radius: 12px; padding: 9px 16px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .15s; }
.hfs-card:hover .hfs-btn { background: var(--pri-h); }
/* Werkstattwichtel im Fehlersuche-Kasten (Schalter "wichtel") */
.wi-zufall { position: relative; display: inline-block; flex-shrink: 0; }
.wi-zufall-ebene { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 1.2s ease-in-out; }
/* Werkstattwichtel: Fragen stellen (23.11.2026, Schalter wichtelFragen) */
/* 24.11.2026: Knopf weg, solange Tipp/Frage-Blase (.wi-tipp) oder ein Dialog offen ist – er ueberdeckte die Tipp-Figur
   bzw. Knoepfe in Formularen; Liste unten mit Platz, damit er keine Erledigt-/Loeschen-Knoepfe verdeckt */
body:has(.wi-tipp) .wi-frage-knopf, body:has(.modal-overlay) .wi-frage-knopf { display: none; }
body:has(.wi-frage-knopf) .scroll-content { padding-bottom: 96px; }
.wi-frage-knopf { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 8900; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--pri); background: #fff; box-shadow: 0 6px 20px rgba(15,23,42,.22); padding: 0; overflow: hidden; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; animation: wiRein .35s ease-out; }
.wi-frage-knopf:hover { transform: scale(1.06); }
.wi-frage-knopf-bild { width: 56px; height: 84px; object-fit: contain; margin-bottom: -22px; pointer-events: none; }
.wi-frage .wi-tipp-blase { width: min(320px, calc(100vw - 150px)); }
.wi-frage-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wi-frage-zu { border: none; background: transparent; color: var(--sub); cursor: pointer; padding: 4px; border-radius: 8px; display: inline-flex; }
.wi-frage-zu:hover { background: #f1f5f9; color: var(--txt); }
.wi-frage-verlauf { max-height: 42vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; font-size: 13px; line-height: 1.45; }
.wi-frage-antwort { color: #334155; background: #f1f5f9; border-radius: 10px 10px 10px 2px; padding: 6px 9px; align-self: flex-start; max-width: 100%; }
.wi-frage-du { color: #fff; background: var(--pri); border-radius: 10px 10px 2px 10px; padding: 6px 9px; align-self: flex-end; max-width: 90%; }
.wi-frage-antwort ul { margin: 4px 0 0; padding-left: 18px; }
.wi-frage-antwort li { margin: 2px 0; }
.wi-frage-oeffnen { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; border: 1px solid #bfdbfe; background: #fff; color: var(--pri); border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit; vertical-align: middle; }
.wi-frage-oeffnen:hover { background: #eff6ff; }
.wi-frage-form { display: flex; gap: 6px; margin-top: 8px; }
.wi-frage-eingabe { flex: 1; min-width: 0; border: 1px solid #cbd5e1; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; }
.wi-frage-eingabe:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px rgba(25,118,210,.18); }
.wi-frage-form .btn { display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; border-radius: 10px; }
.wi-frage-mikro.wi-hoert { background: #dc2626; border-color: #dc2626; color: #fff; animation: wiHoert 1s ease-in-out infinite; }
@keyframes wiHoert { 50% { box-shadow: 0 0 0 6px rgba(220,38,38,.2); } }
.wi-frage-tipps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wi-frage-chip { border: 1px solid #bfdbfe; background: #eff6ff; color: var(--pri); border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; font-family: inherit; }
.wi-frage-chip:hover { background: #dbeafe; }
@media (max-width: 600px) { .wi-frage-knopf { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; } .wi-frage-knopf-bild { width: 48px; height: 72px; margin-bottom: -18px; } .wi-frage .wi-tipp-blase { width: auto; flex: 1; min-width: 0; } .wi-frage-verlauf { max-height: 36vh; } }
@media (prefers-reduced-motion: reduce) { .wi-frage-knopf, .wi-frage-mikro.wi-hoert { animation: none; } }
.hfs-wichtel { padding-top: 6px; padding-bottom: 6px; }
.hfs-wi { width: 92px; height: 138px; object-fit: contain; flex-shrink: 0; transform-origin: 50% 100%; transition: transform .2s; }
/* Werkstattwichtel: bewegliche Figur (17.11.2026, kraeftiger) – nur Arm/Hand bewegen sich, Koerper steht still; Geste + Pause */
.wi-fig { position: relative; display: inline-block; flex-shrink: 0; transform-origin: 50% 100%; }
.wi-fig img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; }
.wi-p-winken .wi-teil { transform-origin: 24.4% 35.2%; animation: wiWave 2.4s ease-in-out infinite; }
.wi-p-kopf_kratzen .wi-teil { transform-origin: 19.5% 33.9%; animation: wiKratz 2.2s linear infinite; }
.wi-p-daumen_hoch .wi-teil { transform-origin: 31.2% 45.6%; animation: wiStups 2s ease-in-out infinite; }
.wi-p-jubeln { animation: wiFedern 1.6s ease-in-out infinite; }
.wi-p-jubeln .wi-teil-l { transform-origin: 23.4% 32.2%; animation: wiFaustL 1.6s ease-in-out infinite; }
.wi-p-jubeln .wi-teil-r { transform-origin: 79.1% 29.3%; animation: wiFaustR 1.6s ease-in-out infinite; }
@keyframes wiWave { 0%, 62%, 100% { transform: rotate(0); } 10% { transform: rotate(-22deg); } 20% { transform: rotate(14deg); } 30% { transform: rotate(-22deg); } 40% { transform: rotate(14deg); } 50% { transform: rotate(-16deg); } }
@keyframes wiKratz { 0%, 48%, 100% { transform: rotate(0); } 6% { transform: rotate(-6deg) translateY(-1%); } 12% { transform: rotate(5deg); } 18% { transform: rotate(-6deg) translateY(-1%); } 24% { transform: rotate(5deg); } 30% { transform: rotate(-6deg) translateY(-1%); } 36% { transform: rotate(5deg); } 42% { transform: rotate(-4deg); } }
@keyframes wiStups { 0%, 50%, 100% { transform: scale(1); } 12% { transform: scale(1.18) rotate(-7deg); } 24% { transform: scale(1.03); } 34% { transform: scale(1.15) rotate(-5deg); } 44% { transform: scale(1); } }
@keyframes wiFedern { 0%, 70%, 100% { transform: translateY(0) scaleY(1); } 10%, 30%, 50% { transform: translateY(2%) scaleY(.975); } 20%, 40%, 60% { transform: translateY(-1%) scaleY(1.01); } }
@keyframes wiFaustL { 0%, 70%, 100% { transform: rotate(0); } 10% { transform: rotate(-10deg); } 20% { transform: rotate(6deg); } 30% { transform: rotate(-10deg); } 40% { transform: rotate(6deg); } 50% { transform: rotate(-10deg); } 60% { transform: rotate(2deg); } }
@keyframes wiFaustR { 0%, 70%, 100% { transform: rotate(0); } 10% { transform: rotate(-6deg); } 20% { transform: rotate(10deg); } 30% { transform: rotate(-6deg); } 40% { transform: rotate(10deg); } 50% { transform: rotate(-6deg); } 60% { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .wi-fig, .wi-fig img { animation: none !important; } }
.toast-mit-wi { display: flex !important; align-items: center; gap: 10px; }
.toast-wi { width: 60px; height: 90px; object-fit: contain; flex-shrink: 0; }
.hfs-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; }
.hfs-chips-lbl { font-size: 11px; color: var(--sub); font-weight: 500; }
.hfs-chip { font-size: 12px; background: #f1f5f9; color: #334155; border: 1px solid var(--brd); border-radius: 8px; padding: 5px 10px; cursor: pointer; transition: background .15s, color .15s; }
.hfs-chip:hover { background: #dbeafe; color: #1e3a8a; }
.hfs-chip-cnt { color: var(--sub); font-size: 11px; margin-left: 2px; }
/* Breite Kacheln Mein/Dashboard */
.home-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 680px; margin: 0 auto 22px; }
.home-top.single { grid-template-columns: minmax(0, 1fr); max-width: 340px; }
/* Raster */
.home-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; padding: 0; }
.home-row { display: contents; }
.home-tile { background: var(--card); border: 1px solid var(--brd); border-radius: var(--radius-lg); padding: 20px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; position: relative; min-height: 135px; text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s, background .2s; }
.home-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); border-color: var(--pri); background: #fbfcfe; }
.home-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--pri-l); color: var(--pri); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s, color .2s; }
.home-ico svg { width: 24px; height: 24px; }
.home-tile:hover .home-ico { background: var(--pri); color: #fff; }
/* App-Logo statt Symbol (Mein instrucIQ, 27.11.2026): Logo fuellt das Feld, kein blauer Hintergrund */
.ico-logo { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: inherit; }
.home-ico:has(.ico-logo), .home-tile:hover .home-ico:has(.ico-logo), .sec-ico:has(.ico-logo) { background: transparent; }
.type-ico .ico-logo { width: 16px; height: 16px; display: inline-block; vertical-align: middle; }
.home-lbl { font-size: 14px; font-weight: 700; color: var(--txt); text-align: center; transition: color .2s; }
.home-tile:hover .home-lbl { color: var(--pri); }
.home-sub { font-size: 12px; color: var(--sub); display: flex; align-items: center; gap: 6px; }
.home-badge { position: absolute; top: 10px; right: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 0 6px; height: 22px; line-height: 22px; border-radius: 11px; min-width: 22px; text-align: center; }
.home-badge.warn { background: #f59e0b; color: #fff; }
.home-wide { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 0; padding: 18px 20px; gap: 14px; }
.home-wide .hw-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.home-wide .home-lbl { text-align: left; }
.hw-chev { color: #94a3b8; display: flex; transition: transform .2s, color .2s; }
.home-wide:hover .hw-chev { color: var(--pri); transform: translateX(2px); }
.home-wide .home-badge { top: 50%; right: 44px; transform: translateY(-50%); }
.hw-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pri); display: inline-block; }
.hw-dot.red { background: var(--red); }
.hw-dot.green { background: var(--grn); }
.home-fehlersuche { display: none; }
@media (max-width: 1100px) { .home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-tile { min-height: 118px; padding: 16px 10px; }
  .home-top, .home-top.single { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 16px; max-width: none; }
  .home-wide { padding: 12px 14px; gap: 10px; min-height: 0; }
  .home-wide .hw-chev { display: none; }
  .home-wide .home-badge { right: 10px; }
  .home-wide .home-ico { width: 40px; height: 40px; }
  .hfs-card { padding: 12px; }
  .hfs-right { display: none; }
  .hfs-kbd { display: none; }
  .hfs-sub { display: none; }
  .hfs-title { font-size: 15px; }
  .hfs-wichtel { padding-top: 4px; padding-bottom: 4px; }
  .hfs-wi { width: 64px; height: 96px; }
  #homeFehlersuche { margin-bottom: 16px; }
}
/* Marke (Header/Login) */
.hd-name { font-size: 20px; font-weight: 900; letter-spacing: -.02em; color: var(--txt); }
.hd-x { color: var(--grn); }
.hd-claim { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--sub); }
.hd-brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.hd-logo-box { width: 40px; height: 40px; border-radius: 12px; background: #0f172a; border: 1px solid #334155; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hd-logo-box.sm { width: 30px; height: 30px; border-radius: 9px; }
.hd-logo-img { max-height: 28px; vertical-align: middle; display: block; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; text-align: left; }

/* Von renderSectionShell() erzeugt -- genutzt von Desktop UND Mobile, daher
   hier statt in desktop.css. margin/padding von 20px muss zum padding des
   jeweiligen Aussenrahmens passen (.main bei Desktop, .tile-view bei
   Mobile -- beide nutzen deshalb ebenfalls 20px, siehe dort). */
.section { display: none; }
.section.active { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.scroll-content { flex: 1; overflow-y: auto; overflow-x: hidden; min-height: 0; padding-bottom: 40px; }

.back-header { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--brd); flex-shrink: 0; background: var(--bg); margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.back-btn { border: 1px solid #dbeafe; background: var(--pri-l); font-size: 14px; cursor: pointer; padding: 8px 16px; color: var(--pri); display: flex; align-items: center; gap: 6px; font-weight: 600; border-radius: 8px; }
.back-title { font-size: 17px; font-weight: 600; flex: 1; text-align: center; padding-right: 90px; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-height: 38px; flex-shrink: 0; background: var(--bg); padding: 8px 20px 12px; margin: 0 -20px; }
.toolbar select, .toolbar input[type="date"] { padding: 8px 12px; border: 1px solid var(--brd); border-radius: 6px; font-size: 14px; }
.toolbar input[type="text"] { width: 200px; padding: 8px 12px; border: 1px solid var(--brd); border-radius: 6px; font-size: 14px; }

/* Feature-Modul-Styles: werden von Desktop UND Mobile genutzt (die Module
   selbst sind plattformneutral, siehe features/*.js). Grid-Layouts nutzen
   auto-fit/auto-fill, wodurch sie auf schmalen Bildschirmen automatisch auf
   eine Spalte zusammenfallen -- keine separate Mobile-Version noetig. */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi-card { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); cursor: pointer; }
.kpi-val { font-size: 26px; font-weight: 700; }
.kpi-lbl { font-size: 13px; color: var(--sub); margin-top: 4px; }
.kpi-card.red .kpi-val { color: var(--red); }
.kpi-card.ylw .kpi-val { color: var(--ylw); }
.dash-list { list-style: none; }
.dash-list li { padding: 8px 0; border-bottom: 1px solid var(--brd); display: flex; justify-content: space-between; align-items: flex-start; font-size: 14px; cursor: pointer; gap: 8px; }
.dash-list li span:first-child { flex: 1; min-width: 0; }
.dash-list li .meta { flex-shrink: 0; text-align: right; font-size: 12px; color: var(--sub); white-space: nowrap; }
.we-overview { margin-bottom: 16px; }
.we-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; }
.we-col h4 { font-size: 13px; color: var(--sub); margin-bottom: 6px; font-weight: 500; }
.we-linie { font-size: 13px; padding: 4px 10px; background: #f0f4ff; border-radius: 6px; display: inline-block; margin: 2px; }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.admin-grid.capped { grid-template-columns: repeat(auto-fit, minmax(280px, 480px)); }
.dev-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; overflow: hidden; }
.dev-card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; }
.dev-arrow { font-size: 10px; color: var(--sub); transition: transform .2s; }
.dev-card.open .dev-arrow { transform: rotate(90deg); }
.dev-card-body { display: none; padding: 0 18px 18px; }
.dev-card.open .dev-card-body { display: block; }
.admin-field-table { width: 100%; border: none; font-size: 13px; }
.admin-field-table td { border: none; padding: 4px 0; }
.admin-field-table td:first-child { width: 100px; color: var(--sub); font-weight: 500; }

.chart-card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.chart-card.wide { grid-column: 1 / -1; }
.chart-card .table-scroll { overflow-x: auto; }
.chart-filter { margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.chart-filter select, .chart-filter input[type="date"] { padding: 6px 10px; border: 1px solid var(--brd); border-radius: 6px; font-size: 13px; }
.abm-line { margin-bottom: 14px; padding: 12px; background: var(--bg); border-radius: 8px; }
.abm-line h4 { font-size: 14px; font-weight: 600; color: var(--pri); margin-bottom: 8px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.abm-empty { text-align: center; padding: 20px; color: var(--sub); font-size: 14px; }
.bauteil-warn { background: #fef2f2; border: 1px solid #fecaca; border-left: 4px solid var(--red); border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; font-size: 13px; }

.linien-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.linien-card { background: var(--card); border-radius: 10px; padding: 16px; text-align: center; box-shadow: var(--shadow); }
.lname { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.we-labels { font-size: 11px; color: var(--sub); }
.we-toggle-row { display: flex; gap: 6px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.we-toggle { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 500; cursor: pointer; border: 1px solid var(--brd); background: var(--card); color: var(--sub); }
.we-toggle.active { background: var(--pri); color: #fff; border-color: var(--pri); }

.ma-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ma-card { background: var(--card); border-radius: 8px; padding: 12px; box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: center; }
.ma-name { font-size: 14px; font-weight: 500; }
.ma-team { font-size: 12px; color: var(--sub); }
.ma-tel { font-size: 13px; color: var(--pri); }

.badge-spaetschicht { display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 12px; font-size: 11px; font-weight: 700; background: #7c3aed; color: #fff; white-space: nowrap; }
.spaet-btn.pinned { color: #7c3aed; opacity: 1; }
table.el-table tr[data-id].spaetschicht-row td:first-child { border-left: 4px solid #7c3aed; }
table.el-table tr[data-id].spaetschicht-row td { background: #f5f3ff; }
.fs-progress { display: flex; gap: 8px; margin-bottom: 14px; justify-content: center; }
.fs-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--brd); color: var(--sub); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.fs-dot.active { background: var(--pri); color: #fff; }

.toast-container { position: fixed; top: 20px; right: 20px; z-index: 400; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 20px; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); animation: slideIn .3s; }
.toast.black { background: var(--blk); }
.toast.red { background: var(--red); }
.toast.ylw { background: #f59e0b; color: #000; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.btn-print { display: inline-flex; align-items: center; gap: 6px; background: #eff6ff; color: var(--pri); border: 1px solid #dbeafe; font-weight: 600; }
.btn-print:hover { background: #dbeafe; }

.fs-breadcrumb { font-size: 13px; color: var(--pri); margin-bottom: 10px; padding: 6px 10px; background: #f0f4ff; border-radius: 6px; font-weight: 500; }
.fs-hint { font-size: 13px; color: var(--sub); margin-bottom: 12px; }
.fs-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; max-height: 50vh; overflow-y: auto; }
.fs-option { padding: 10px 12px; background: var(--bg); border: 1px solid var(--brd); border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.fs-option.active { background: #eff6ff; border-color: var(--pri); }
.fs-option-name { display: block; font-size: 13px; font-weight: 500; }
.fs-option-meta { display: block; font-size: 11px; color: var(--sub); margin-top: 2px; }
.fs-tipbox { margin: 12px 0; padding: 10px 12px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; font-size: 12px; }
.fs-result { padding: 8px 10px; background: var(--bg); border-radius: 8px; margin-bottom: 6px; font-size: 13px; }

.wiz-modal { width: min(480px, 92vw); height: min(600px, 85vh); max-height: 85vh; display: flex; flex-direction: column; padding: 20px; overflow: hidden; }
.wiz-head { flex-shrink: 0; }
.wiz-mode-tag { font-size: 11px; font-weight: 700; color: var(--pri); text-transform: uppercase; letter-spacing: .03em; }
.wiz-body { flex: 1; overflow-y: auto; min-height: 0; }
.wiz-foot { flex-shrink: 0; padding-top: 10px; border-top: 1px solid var(--brd); margin-top: 10px; }
.wiz-footer-btns { margin-top: 0; }

.su-section-title { font-size: 14px; font-weight: 600; margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--pri); color: var(--pri); }
.su-entry { padding: 10px 12px; margin-bottom: 8px; background: var(--bg); border-radius: 8px; font-size: 13px; cursor: pointer; }
.proto-point:hover { background: #eff6ff; }
.su-meta { font-size: 12px; color: var(--sub); margin-top: 4px; }

.view-row { display: flex; padding: 9px 0; border-bottom: 1px solid var(--brd); font-size: 14px; align-items: baseline; }
.view-lbl { width: 120px; flex-shrink: 0; font-weight: 600; color: var(--sub); font-size: 13px; }
.view-val { flex: 1; word-break: break-word; }
.view-notes { margin-top: 14px; padding: 12px; background: var(--bg); border-radius: 8px; font-size: 13px; white-space: pre-line; word-break: break-word; }

.presence-pill-sm { display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 8px; border-radius: 12px; background: #dbeafe; color: var(--pri); font-size: 11px; font-weight: 600; white-space: nowrap; }
.rem-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-bottom: 1px solid var(--brd); flex-wrap: wrap; }
.rem-item:last-child { border-bottom: none; }
.rem-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
@media (max-width: 500px) { .rem-item { flex-direction: column; } .rem-actions { width: 100%; } }

.modal-close-x { position: absolute; top: 8px; right: 8px; background: none; border: none; font-size: 26px; color: #9ca3af; cursor: pointer; padding: 2px 8px; line-height: 1; z-index: 10; }
.modal-close-x:hover { color: #111; }


/* Mobile collapsible filter toolbar */
.tb-mobile-bar { display: flex; gap: 8px; align-items: center; }
.tb-mobile-bar .btn { flex: 1; text-align: center; padding: 10px 12px; }
.tb-filter-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; background: #fff; border: 1px solid var(--brd); font-weight: 600; font-size: 14px; color: var(--txt); }
.tb-filter-badge { display: inline-flex; align-items: center; justify-content: center; background: var(--pri); color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; }
.tb-filter-panel { display: none; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; }
.tb-filter-panel input[type="text"] { grid-column: 1 / -1; width: 100%; padding: 9px 10px; border: 1px solid var(--brd); border-radius: 6px; font-size: 16px; height: 42px; }
.tb-filter-panel select { width: 100%; padding: 9px 10px; border: 1px solid var(--brd); border-radius: 6px; font-size: 16px; height: 42px; }
.tb-filter-panel .btn { font-size: 14px; padding: 9px 10px; text-align: center; grid-column: 1 / -1; height: 42px; }
.tb-date-group { display: flex; align-items: center; gap: 6px; grid-column: 1 / -1; }
.tb-date-label { font-size: 13px; font-weight: 600; color: var(--sub); white-space: nowrap; }
.tb-date-group input[type="date"] { padding: 9px 8px; border: 1px solid var(--brd); border-radius: 6px; font-size: 16px; -webkit-appearance: none; flex: 1; min-width: 0; height: 42px; }
/* Handy (24.11.2026, Nutzer): Von/Bis im Stil des Suchfelds, je halbe Breite, Beschriftung im Feld */
.tb-date-group.tb-date-mobil { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tb-date-feld { display: flex; align-items: center; gap: 6px; height: 42px; min-width: 0; overflow: hidden; padding: 0 10px 0 12px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: border-color .15s, box-shadow .15s; }
.tb-date-feld:focus-within { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(25,118,210,.18); }
.tb-date-feld span { flex-shrink: 0; font-size: 15px; font-weight: 500; color: #94a3b8; }
.tb-filter-panel .tb-date-group.tb-date-mobil .tb-date-feld input[type="date"] { flex: 1 1 0 !important; width: 0 !important; min-width: 0 !important; height: 40px; padding: 0 !important; border: none !important; box-shadow: none !important; background: transparent; font-size: 16px; font-weight: 500; color: var(--txt); -webkit-appearance: none; appearance: none; text-align: left; }
.tb-date-feld input[type="date"]::-webkit-date-and-time-value { text-align: left; }

@media (max-width: 600px) {
  .toolbar { padding: 8px 0 6px; margin-left: 0; margin-right: 0; display: block; }
  .scroll-content { padding-bottom: 0; }
}


/* Entwicklerbereich Kacheln */
.dev-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; max-width: 900px; }
.dev-tile { background: var(--card); border-radius: var(--radius); padding: 20px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; text-align: center; transition: transform .15s, box-shadow .15s; }
.dev-tile:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.dev-tile-icon { display: flex; align-items: center; justify-content: center; color: var(--pri); }
.dev-tile-icon svg { width: 28px; height: 28px; }
.dev-tile-label { font-size: 13px; font-weight: 600; color: var(--txt); }
.dev-tile-header { display: none; }
.dev-tile .dev-card-body { display: none; }
.dev-tile-grid + .dev-tile-grid { margin-top: 14px; }
/* 11.11.2026: alle Entwickler-Kacheln in einem Raster (Kachelreihenfolge per order in devSection.js) */
.dev-tile-flow { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; max-width: 900px; }
.dev-tile-flow > .dev-tile-grid { display: contents; }

.presence-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 15px; background: var(--pri); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }

/* =====================================================================
   V3-DESIGN: Modals, Bereichs-Rahmen, Filter, Formulare, Buttons
   (nur Optik – keine Klassen/IDs geaendert, alle Funktionen bleiben)
   ===================================================================== */
/* Buttons */
.btn { border-radius: 10px; font-weight: 600; border-color: #cbd5e1; color: #334155; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn:hover { background: #f8fafc; border-color: #94a3b8; }
.btn-pri { background: var(--pri); color: #fff; border-color: var(--pri); box-shadow: 0 1px 2px rgba(25,118,210,.25); }
.btn-pri:hover { background: var(--pri-h); border-color: var(--pri-h); color: #fff; }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #a50d26; border-color: #a50d26; color: #fff; }
.btn-sm { border-radius: 8px; }
.btn:focus-visible, .ef-input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(25,118,210,.25); }

/* Formularfelder (Modals, Formulare) */
.ef-input { border: 1px solid #cbd5e1; border-radius: 12px; padding: 9px 12px; background: #fff; color: var(--txt); transition: border-color .15s, box-shadow .15s; }
.ef-input:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px rgba(25,118,210,.18); }
textarea.ef-input { line-height: 1.45; }
.ef-label { font-size: 12px; font-weight: 600; color: #334155; margin-bottom: 4px; }

/* Modal-Grundgeruest wie Vorlage */
.modal-overlay { background: rgba(15,23,42,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); padding: 12px; }
.modal { border-radius: 16px; border: 1px solid var(--brd); box-shadow: 0 25px 50px -12px rgba(15,23,42,.35); max-height: 92vh; animation: v3Zoom .2s ease-out; }
@keyframes v3Zoom { from { transform: scale(.97); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal, .modal-overlay { animation: none; } }
.modal-scroll { padding: 20px 22px; }
/* Erste Ueberschrift im Modal wird zur Kopfleiste (grau, Trennlinie, bleibt oben stehen) */
.modal-scroll > h3:first-child { margin: -20px -22px 18px !important; padding: 16px 56px 16px 22px; background: #f8fafc; border-bottom: 1px solid var(--brd); font-size: 17px; font-weight: 700; color: var(--txt); position: sticky; top: -20px; z-index: 5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.modal-scroll[style*="padding:20px"] > h3:first-child { margin: -20px -20px 18px !important; padding-left: 20px; }
.modal-close-x { top: 10px; right: 10px; width: 36px; height: 36px; padding: 0; font-size: 24px; color: #94a3b8; border-radius: 12px; display: flex; align-items: center; justify-content: center; z-index: 20; transition: background .15s, color .15s; }
.modal-close-x:hover { color: #334155; background: #e2e8f0; }
.modal-btns { background: #f8fafc; padding: 12px 18px; gap: 8px; }
.modal-btns .btn { border-radius: 10px; }
.view-row { border-bottom: 1px solid #f1f5f9; }

/* Bereichs-Rahmen (alle Kacheln): Kopf wie Modal-Header */
.back-header { background: #f8fafc; border-bottom: 1px solid var(--brd); padding-top: 12px; padding-bottom: 12px; gap: 14px; }
.back-btn { border-radius: 12px; padding: 8px 14px; font-size: 13px; flex-shrink: 0; margin-bottom: 0; }
.back-btn:hover { background: var(--pri); color: #fff; border-color: var(--pri); }
.sec-head { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; justify-content: center; padding-right: 90px; }
.sec-ico { width: 40px; height: 40px; border-radius: 12px; background: #dbeafe; color: var(--pri); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sec-ico svg { width: 20px; height: 20px; }
.sec-head-txt { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.sec-head .back-title { font-size: 18px; font-weight: 700; text-align: left; padding-right: 0; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-sub { font-size: 12px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }

/* Filterleiste wie Vorlage: abgerundet, Suchfeld mit Lupe, Fokus-Ring */
.toolbar { padding-top: 12px; padding-bottom: 12px; gap: 8px; }
.toolbar select, .toolbar input[type="date"], .toolbar input[type="text"], .toolbar input[type="search"],
.tb-filter-panel input[type="text"], .tb-filter-panel select, .tb-date-group input[type="date"] {
  border: 1px solid #cbd5e1; border-radius: 12px; background-color: #fff; color: var(--txt); font-weight: 500; box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: border-color .15s, box-shadow .15s; }
.toolbar select:focus, .toolbar input:focus, .tb-filter-panel input:focus, .tb-filter-panel select:focus, .tb-date-group input:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px rgba(25,118,210,.18); }
.toolbar input[type="text"], .tb-filter-panel input[type="text"] {
  padding-left: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 11px center; }
.toolbar input[type="text"] { width: 260px; }
.toolbar .btn, .tb-filter-panel .btn, .tb-mobile-bar .btn { border-radius: 12px; }
.tb-filter-toggle { border-radius: 12px; border-color: #cbd5e1; }
.tb-filter-badge { background: var(--pri); }

/* Karten, Listen, Tabellen */
.item-card { border: 1px solid var(--brd); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.item-card:hover { border-color: #93c5fd; box-shadow: var(--shadow-h); }
.item-card.spaetschicht-row { border-left: 4px solid #7c3aed; }
.pinned-card { border-left: 3px solid var(--ylw); }
table.el-table td:first-child { border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
table.el-table td:last-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }
table.el-table tr[data-id]:hover td { background: #f5f9ff; }
.dash-card { border: 1px solid var(--brd); border-radius: 14px; }
.dash-num { color: var(--pri); }
.dev-card, .dev-tile { border: 1px solid var(--brd); border-radius: 14px; }
.dev-tile:hover { border-color: var(--pri); }
.dev-tile-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--pri-l); }
.dev-tile:hover .dev-tile-icon { background: var(--pri); color: #fff; }
.status-badge { border-radius: 6px; font-weight: 600; }
.prio-badge { border-radius: 6px; }

@media (max-width: 600px) {
  .sec-head { padding-right: 0; justify-content: flex-start; }
  .sec-sub { display: none; }
  .sec-ico { width: 34px; height: 34px; border-radius: 10px; }
  .sec-head .back-title { font-size: 16px; }
  .toolbar input[type="text"] { width: 100%; }
  .modal-overlay { padding: 8px; }
}
/* Bestell-Formular hat eigene Kopfleiste -> gleiche Optik */
.modal > div[style*="border-bottom:1px solid var(--brd)"]:first-child { background: #f8fafc; }

/* ===== Online-Badge + Liste (presenceBadge.js) ===== */
.pres-badge { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid #bbf7d0; background: #f0fdf4; color: #166534; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; font-family: inherit; }
.pres-badge:hover { background: #dcfce7; }
.pres-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); flex-shrink: 0; }
.mobile-header .pres-badge { height: 28px; padding: 0 10px; }
.pres-pop { position: fixed; z-index: 450; width: 260px; max-height: 60vh; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--brd); border-radius: 12px; box-shadow: 0 10px 30px rgba(15,23,42,.18); overflow: hidden; }
.pres-pop.sheet { left: 0; right: 0 !important; bottom: 0; top: auto !important; width: auto; max-height: 70vh; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom); }
.pres-pop-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--brd); font-size: 13px; font-weight: 700; color: var(--txt); }
.pres-pop-cnt { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: #dcfce7; color: #166534; font-size: 11px; text-align: center; }
.pres-pop-x { border: none; background: none; font-size: 22px; line-height: 1; color: #64748b; cursor: pointer; padding: 0 4px; }
.pres-pop-body { overflow-y: auto; padding: 6px 0; }
.pres-pop-row { display: flex; align-items: center; gap: 10px; padding: 7px 14px; font-size: 13px; }
.pres-pop-av { width: 28px; height: 28px; border-radius: 50%; background: #dbeafe; color: var(--pri); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pres-pop-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--txt); }
.pres-pop-ago { font-size: 11px; color: #16a34a; white-space: nowrap; }
.pres-pop-empty { padding: 12px 14px; font-size: 13px; color: var(--sub); }
.pres-pop.sheet .pres-pop-row { padding: 10px 16px; font-size: 15px; }

/* ===== App-Logo (InstandProX) ===== */
.hd-logo-app { width: 40px; height: 40px; object-fit: contain; display: block; flex-shrink: 0; }
.hd-logo-app.sm { width: 30px; height: 30px; }
.hd-logo-app.lg { width: 56px; height: 56px; }

/* ===== Personen-Feld mit "Ich"-Button ===== */
.ef-person-wrap { display: flex; gap: 6px; align-items: stretch; margin-bottom: 8px; }
.ef-person-wrap .ef-input { flex: 1; min-width: 0; margin-bottom: 0; }
.ef-me-btn { flex-shrink: 0; padding: 0 12px; border-radius: 10px; font-weight: 600; }
.nsw-chip-me { border-color: var(--pri); color: var(--pri); font-weight: 600; }
.nsw-chip-me.sel { color: #fff; }

/* ===== Wiederholstoerungen (wiederholung.js) ===== */
.wdh-badge { display: inline-flex; align-items: center; gap: 3px; margin-right: 6px; padding: 1px 7px; border-radius: 6px; background: #fff7ed; border: 1px solid #fed7aa; color: #b45309; font-size: 11px; font-weight: 700; vertical-align: 1px; white-space: nowrap; }
.wdh-hint, .wdh-hist { border: 1px solid #fed7aa; border-left: 4px solid #f59e0b; background: #fffbeb; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; font-size: 13px; color: #451a03; }
.wdh-hint-title { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #b45309; margin-bottom: 4px; }
.wdh-hint-row { margin-top: 3px; line-height: 1.4; }
.wdh-hint-sub { font-size: 12px; color: #92400e; margin-top: 2px; }
.wdh-hint-prio { margin-top: 6px; padding: 4px 8px; border-radius: 6px; background: #fee2e2; color: #991b1b; font-weight: 600; font-size: 12px; }
.wdh-hist { margin-top: 10px; }
.wdh-hist-row { padding: 6px 8px; margin-top: 4px; border-radius: 8px; background: #fff; border: 1px solid #fde68a; cursor: pointer; }
.wdh-hist-row:hover { border-color: #f59e0b; background: #fff7ed; }

/* ===== Mehrere Ursachen (ursachen.js) ===== */
.ef-ursachen { border: 1px dashed var(--brd); border-radius: 10px; padding: 8px; background: #fafafa; }
.ef-urs-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 6px; align-items: start; margin-bottom: 6px; }
.ef-urs-row .ef-input { margin-bottom: 0; min-width: 0; }
.ef-urs-hint { font-size: 11px; color: var(--sub); margin-top: 6px; }
.urs-more { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: #eef2ff; color: #3730a3; font-size: 11px; font-weight: 600; white-space: nowrap; }
.urs-view-row { display: flex; gap: 6px; align-items: center; margin: 2px 0; }
.urs-num { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #eef2ff; color: #3730a3; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.nsw-xbox { border: 1px solid #c7d2fe; background: #f5f7ff; border-radius: 10px; padding: 10px; margin-top: 10px; }
@media (max-width: 600px) { .ef-urs-row { grid-template-columns: 1fr 1fr; } .ef-urs-row .ef-urs-del { grid-column: 2; justify-self: end; } }
@media (max-width: 600px) { .ef-urs-row .ef-input { font-size: 16px; -webkit-appearance: none; } }

/* ===== Bestellungen zuordnen (bestellZuordnung.js) ===== */
.bz-summary { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.bz-row { border: 1px solid var(--brd); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.bz-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bz-meta { font-size: 12px; color: var(--sub); flex: 1; min-width: 0; }
.bz-level { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 6px; white-space: nowrap; }
.bz-l-sicher { background: #dcfce7; color: #166534; }
.bz-l-wahr { background: #dbeafe; color: #1e40af; }
.bz-l-moegl { background: #fef3c7; color: #92400e; }
.bz-l-kein { background: #f1f5f9; color: #475569; }
.bz-pos { font-size: 12px; color: #334155; margin-top: 4px; }
.bz-quelle { font-size: 12px; color: #1e3a8a; margin-top: 4px; }
.bz-edit { display: grid; grid-template-columns: 160px 1fr auto; gap: 6px; margin-top: 8px; align-items: center; }
.bz-edit .ef-input { margin-bottom: 0; }
@media (max-width: 600px) { .bz-edit { grid-template-columns: 1fr 1fr; } .bz-edit .bz-save { grid-column: 1 / -1; } }

/* 11.11.2026: Knopfleiste als Raster (Stoerungs-Vorschau, Ersatzteil-Ansicht): Gruppen in 2 gleich breiten
   Spalten, ungerade letzte Taste ueber die volle Breite – links und rechts buendig. */
.modal-btns.mb-raster { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.modal-btns.mb-raster .mb-gruppe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modal-btns.mb-raster .mb-gruppe .btn { width: 100%; margin: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: normal; text-align: center; min-height: 40px; }
.modal-btns.mb-raster .mb-gruppe > .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 600px) { .modal-btns.mb-raster .mb-gruppe .btn { min-height: 44px; } }
/* 11.11.2026: Ersatzteile-Einstellungen, Platz-Ebenen: 4 Spalten, Handy 2 Spalten (vorher ueber den Rand) */
.es-ebenen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 600px) { .es-ebenen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 11.11.2026: Ersatzteile-Werkzeugleiste auf dem Handy als 2-Spalten-Raster (Desktop unveraendert):
   Suche volle Breite · Linie|Bereich · Regal|Scannen · QR-Etiketten|Import · Einstellungen|+ Neues Teil */
@media (max-width: 600px) {
  .et-toolbar { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
  .et-toolbar > * { width: 100% !important; min-width: 0 !important; max-width: none !important; margin: 0 !important; }
  .et-toolbar > #etQ { grid-column: 1 / -1; }
  .et-toolbar > span:not([id]) { display: none; }
  .et-toolbar > #etRegal:nth-last-child(3) { grid-column: 1 / -1; }
  .et-toolbar #etScanBtn { justify-content: center; }
  .et-toolbar > #etAdminBtns { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .et-toolbar > #etAdminBtns:empty { display: none; }
  #etAdminBtns .btn { width: 100%; margin: 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  #etAdminBtns #etNeu { order: 9; }
  #etAdminBtns.ungerade #etNeu, #etAdminBtns .btn:only-child { grid-column: 1 / -1; }
}

/* ---- Demo (demo.instruciq.de, Etappe 1, 28.11.2026) ---- */
.demo-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 9000; height: 34px; display: flex; align-items: center; gap: 12px; padding: 0 14px;
  background: linear-gradient(90deg, #0b1d3a, #1976D2); color: #fff; font-size: 13px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.demo-banner b { color: #6ee7b7; letter-spacing: .5px; }
.demo-b-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.demo-zaehler { display: inline-flex; gap: 6px; margin-left: 8px; }
.demo-z { background: rgba(255,255,255,.14); border-radius: 10px; padding: 1px 8px; font-size: 12px; }
.demo-bald { background: #f59e0b; color: #1f2937; border-radius: 10px; padding: 1px 8px; font-size: 12px; font-weight: 600; }
.demo-ansicht { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.demo-ansicht select { font-size: 12px; padding: 2px 6px; border-radius: 6px; border: 0; background: #fff; color: #0b1d3a; }
.demo-kontakt { display: inline-flex; align-items: center; gap: 5px; color: #fff; text-decoration: none; background: #10B981; border-radius: 6px; padding: 3px 10px; font-weight: 600; white-space: nowrap; }
body.mit-demo-banner { padding-top: 34px; box-sizing: border-box; }
body.mit-demo-banner .app-shell { height: calc(100vh - 34px); }
body.mit-demo-banner #app { height: calc(100% - 0px); }
.demo-grenze-kopf { display: flex; gap: 14px; align-items: flex-start; padding-top: 12px; }
.demo-grenze-wi { width: 84px; height: 126px; object-fit: contain; flex-shrink: 0; }
body.mit-demo-banner #eskBanner { top: 34px !important; }
@media (max-width: 600px) {
  .demo-banner { gap: 8px; padding: 0 10px; font-size: 12px; }
  .demo-zaehler, .demo-ansicht-t, .demo-kontakt-t { display: none; }
  .demo-ansicht select { max-width: 120px; }
  .demo-kontakt { padding: 4px 8px; }
}
/* Demo-Anmeldung (Etappe 2, 28.11.2026) */
.demo-login { overflow-y: auto; padding: 16px; box-sizing: border-box; align-items: flex-start; }
.demo-box { width: min(420px, 100%); text-align: left; margin: auto; box-sizing: border-box; }
.demo-box .login-brand { justify-content: center; }
.demo-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 10px; padding: 4px; gap: 4px; }
.demo-tab { border: 0; background: transparent; padding: 9px 6px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--sub); cursor: pointer; }
.demo-tab.on { background: var(--card); color: var(--pri); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.demo-form { display: flex; flex-direction: column; gap: 10px; }
.demo-form .ef-input, .demo-felder .ef-input { margin: 0; font-size: 16px; width: 100%; box-sizing: border-box; }
.demo-intro { font-size: 14px; line-height: 1.45; margin: 2px 0; color: var(--txt); }
.demo-klein { font-size: 12.5px; color: var(--sub); margin: 0; }
.demo-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.demo-mehr { border: 1px solid var(--brd); border-radius: 10px; padding: 8px 12px; }
.demo-mehr summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--pri); }
.demo-mehr summary span { font-weight: 400; color: var(--sub); }
.demo-felder { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.demo-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; cursor: pointer; }
.demo-check input { margin-top: 2px; width: 18px; height: 18px; flex-shrink: 0; }
.demo-einw a { color: var(--pri); }
.demo-link { border: 0; background: none; color: var(--pri); font-size: 13px; cursor: pointer; padding: 4px; text-decoration: underline; }
.demo-box .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.login-error.demo-ok { color: var(--grn, #10B981); }
.demo-warten { z-index: 9500; }
.demo-warten .demo-box { text-align: center; align-items: center; }
.demo-warten-wi { width: 96px; height: 144px; object-fit: contain; }
.demo-kontakt { border: 0; cursor: pointer; font-size: 13px; }
.demo-kontakt-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; background: var(--bg); border-radius: 10px; }
.demo-kontakt-mail span { font-weight: 700; flex: 1; min-width: 160px; }
.demo-kontakt-mail .btn { display: inline-flex; align-items: center; gap: 6px; }
.demo-kontakt-dlg .modal-btns .btn { display: inline-flex; align-items: center; gap: 6px; }
.demo-grenze .modal > :not(.modal-btns):not(.modal-close-x),
.demo-willkommen .modal > :not(.modal-btns):not(.modal-close-x),
.demo-kontakt-dlg .modal > :not(.modal-btns):not(.modal-close-x) { margin-left: 20px; margin-right: 20px; }
.demo-grenze .modal-btns, .demo-willkommen .modal-btns, .demo-kontakt-dlg .modal-btns { margin-top: 14px; }
/* Demo-Uebersicht (Etappe 3) */
.demo-ueb-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; padding: 6px 20px 12px; }
.demo-ueb-k { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.demo-ueb-k b { display: block; font-size: 22px; }
.demo-ueb-k span { font-size: 12px; color: var(--sub); }
.demo-ueb-k.rot b { color: var(--red, #dc2626); }
.demo-ueb-tab { overflow: auto; max-height: 58vh; margin: 0 20px; border: 1px solid var(--brd); border-radius: 10px; }
.demo-ueb-tab table { width: 100%; border-collapse: collapse; font-size: 13px; }
.demo-ueb-tab th { position: sticky; top: 0; background: var(--card); text-align: left; padding: 8px; border-bottom: 1px solid var(--brd); white-space: nowrap; }
.demo-ueb-tab td { padding: 8px; border-bottom: 1px solid var(--brd); vertical-align: top; }
.demo-ueb-neu { background: #fef2f2; }
.demo-ueb-rr { background: #dc2626; color: #fff; border-radius: 8px; padding: 1px 7px; font-size: 12px; white-space: nowrap; }
.demo-ueb-rr.erl { background: #94a3b8; }
.demo-ueb-msg { padding: 6px 0; border-bottom: 1px dashed var(--brd); }
.demo-ueb-msg:last-child { border-bottom: 0; }
.demo-ueb-ok { background: #10B981; color: #fff; border-radius: 8px; padding: 1px 7px; font-size: 11px; white-space: nowrap; }
