/* ==========================================================================
   Zunder – Styles
   ========================================================================== */
:root {
  --accent: #ff6a1a;
  --radius: 12px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --sb-w: 290px;
  --detail-w: 420px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
:root[data-theme='dark'] {
  --bg: #17130f; --bg2: #1e1915; --panel: #241e19; --panel2: #2c251f; --hover: #322a23; --line: #3a3029;
  --text: #f3ece6; --text2: #b9ada3; --muted: #8a7e74; --shadow: 0 10px 40px rgba(0,0,0,.5);
  --danger: #ff6b6b; --ok: #51cf66; --warn: #ffa94d; color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f6f1ec; --bg2: #fffaf5; --panel: #ffffff; --panel2: #f8f3ee; --hover: #f1e9e1; --line: #e8ddd3;
  --text: #241c16; --text2: #5c5148; --muted: #8d8177; --shadow: 0 10px 40px rgba(60,30,10,.15);
  --danger: #e03131; --ok: #2f9e44; --warn: #e8590c; color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; -webkit-tap-highlight-color: transparent; }
body { overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: var(--text); }
a { color: var(--accent); }
.ico { flex-shrink: 0; display: block; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.only-sm { display: none !important; }
code { background: var(--panel2); padding: 1px 5px; border-radius: 5px; font-size: .9em; word-break: break-all; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }

/* ---------- Buttons & Inputs ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); font-weight: 550; text-decoration: none; color: var(--text); white-space: nowrap; transition: background .15s, transform .05s; }
.btn:hover { background: var(--hover); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover, .btn.ghost.on { background: var(--hover); }
.btn.danger { color: var(--danger); }
.btn.small { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.big { padding: 12px; font-size: 16px; justify-content: center; width: 100%; }
.btn:disabled, .btn.disabled { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.link { color: var(--accent); font-weight: 550; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--text2); position: relative; flex-shrink: 0; }
.icon-btn:hover, .icon-btn.on { background: var(--hover); color: var(--text); }
.icon-btn.on { color: var(--accent); }
.icon-btn.small { width: 28px; height: 28px; border-radius: 7px; }
.icon-btn.danger:hover { color: var(--danger); }
.dot { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.dot.small { min-width: 9px; width: 9px; height: 9px; padding: 0; top: 6px; right: 6px; }
input[type=text], input:not([type]), input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], select, textarea {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; outline: none; min-width: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 20px; transition: .2s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.seg { display: inline-flex; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { padding: 5px 11px; border-radius: 7px; font-size: 13.5px; color: var(--text2); }
.seg button.on { background: var(--panel); color: var(--pc, var(--text)); box-shadow: 0 1px 3px rgba(0,0,0,.2); font-weight: 600; }
:root[data-theme='dark'] .seg button.on { background: var(--hover); }
.chip, .chip-btn { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; background: var(--panel2); border: 1px solid var(--line); font-size: 13px; white-space: nowrap; }
.chip-btn { color: var(--text2); }
.chip-btn:hover { background: var(--hover); color: var(--text); }
.chip-btn.on { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent); color: var(--accent); }
.chip.person { padding-left: 3px; }
.chip-x { display: grid; place-items: center; color: var(--muted); margin-left: 2px; }
.chip-x:hover { color: var(--danger); }
.chip-select { padding: 3px 8px; border-radius: 20px; font-size: 13px; }
.pill { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; margin-right: 6px; vertical-align: 1px; }
.pill.doing { background: color-mix(in srgb, #4c6ef5 25%, transparent); color: #748ffc; }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex-shrink: 0; letter-spacing: -.3px; user-select: none; }
.avatar-stack { display: inline-flex; flex-shrink: 0; }
.avatar-stack .avatar { border: 2px solid var(--panel); margin-left: -7px; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar.more { background: var(--line); color: var(--text2); font-size: 10px; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: var(--sb-w) 1fr; height: 100vh; height: 100dvh; }
.app.has-detail { grid-template-columns: var(--sb-w) 1fr var(--detail-w); }
.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--bg2); }
.topbar, .tabbar, .drawer-bg { display: none; }
.offline-bar { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 50; background: var(--warn); color: #000; font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 0 0 10px 10px; display: flex; align-items: center; gap: 6px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sidebar ---------- */
.sidebar { background: var(--bg); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; padding-top: var(--safe-t); }
.sb-head { display: flex; align-items: center; gap: 6px; padding: 14px 12px 8px; }
.sb-user { display: flex; align-items: center; gap: 10px; flex: 1; text-align: left; padding: 4px; border-radius: 10px; min-width: 0; }
.sb-user:hover { background: var(--hover); }
.sb-user b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user small { color: var(--muted); }
.sb-search { margin: 4px 12px 8px; display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0 6px 0 10px; color: var(--muted); }
.sb-search input { border: 0; background: transparent; padding: 8px 0; flex: 1; box-shadow: none !important; }
.sb-scroll { flex: 1; overflow-y: auto; padding: 4px 8px 12px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 500; user-select: none; }
.nav-item:hover { background: var(--hover); }
.nav-item.active { background: color-mix(in srgb, var(--ic, var(--accent)) 16%, var(--panel)); font-weight: 650; }
.nav-ico { color: var(--ic, var(--text2)); }
.nav-emoji { width: 19px; text-align: center; font-size: 17px; }
.nav-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-count { font-size: 12.5px; color: var(--muted); font-weight: 600; min-width: 20px; text-align: right; }
.nav-count.warn { color: var(--danger); }
.nav-badge-icon { color: var(--muted); }
.sb-sep { height: 1px; background: var(--line); margin: 8px 6px; }
.sb-group { display: flex; align-items: center; gap: 4px; padding: 10px 8px 4px; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); width: 100%; }
.sb-foot { display: flex; align-items: center; gap: 4px; padding: 8px; border-top: 1px solid var(--line); padding-bottom: calc(8px + var(--safe-b)); }
.sb-new { display: flex; align-items: center; gap: 10px; flex: 1; padding: 9px 10px; border-radius: 10px; color: var(--accent); font-weight: 600; }
.sb-new:hover { background: var(--hover); }

/* ---------- View ---------- */
.view { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.view-head { display: flex; align-items: center; gap: 10px; padding: 22px 28px 10px; }
.vh-title { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.vh-title h1 { margin: 0; font-size: 26px; font-weight: 750; letter-spacing: -.4px; color: var(--vc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vh-icon { color: var(--vc); }
.vh-emoji { font-size: 30px; }
.vh-sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.vh-actions { display: flex; align-items: center; gap: 2px; }
.filter-bar { margin: 0 28px 6px; font-size: 13px; color: var(--accent); }
.task-scroll { flex: 1; overflow-y: auto; padding: 0 22px 120px; }
.task-scroll.pad { padding: 4px 28px 120px; }
.loading { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- Quick Add ---------- */
.quickadd { margin: 6px 22px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .15s, border-color .15s; }
.quickadd.focus { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: 0 4px 18px rgba(0,0,0,.12); }
.qa-row { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 14px; }
.qa-plus { color: var(--accent); }
.qa-row input { flex: 1; border: 0 !important; background: transparent; padding: 12px 0; font-size: 15.5px; box-shadow: none !important; }
.qa-tools { display: flex; align-items: center; gap: 6px; padding: 8px 12px 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.qa-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.qa-chips .chip { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.qa-hint { font-size: 12.5px; color: var(--muted); }

/* ---------- Task Row ---------- */
.group { margin-bottom: 6px; }
.group-head { display: flex; align-items: center; gap: 6px; padding: 12px 6px 6px; font-weight: 700; font-size: 14px; color: var(--gc, var(--text2)); }
.group-head.warn { color: var(--danger); }
.group-head .count { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.row-wrap { position: relative; margin-bottom: 4px; border-radius: 10px; overflow: hidden; }
.swipe-bg { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; padding: 0 20px; font-weight: 600; color: #fff; opacity: 0; }
.swipe-bg.left { background: var(--accent); }
.swipe-bg.right { background: var(--danger); justify-content: flex-end; }
.sw-right .swipe-bg.left, .sw-left .swipe-bg.right { opacity: 1; }
.task-row { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; background: var(--panel); border-radius: 10px; cursor: pointer; position: relative; transition: background .12s; min-height: 52px; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.task-row:hover { background: var(--panel2); }
.task-row.active { background: color-mix(in srgb, var(--accent) 12%, var(--panel)); }
.task-row.selected { background: color-mix(in srgb, var(--accent) 18%, var(--panel)); }
.task-row.pending { opacity: .85; }
.task-row.trash { cursor: default; }
.row-main { flex: 1; min-width: 0; }
.row-title { line-height: 1.35; word-break: break-word; }
.task-row.done .row-title { text-decoration: line-through; color: var(--muted); }
.row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.row-meta:empty { display: none; }
.row-meta > span { display: inline-flex; align-items: center; gap: 3px; }
.meta-list { color: var(--lc); font-weight: 550; }
.meta-myday { color: var(--accent); }
.meta-due.today, span.today { color: var(--accent); font-weight: 600; }
.meta-due.overdue, span.overdue { color: var(--danger); font-weight: 600; }
.meta-ok { color: var(--ok); }
.tag { color: #e599f7; cursor: pointer; }
:root[data-theme='light'] .tag { color: #ae3ec9; }
.tag:hover { text-decoration: underline; }
.check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--c, var(--muted)); display: grid; place-items: center; color: transparent; flex-shrink: 0; transition: .15s; }
.check:hover { color: var(--c, var(--muted)); }
.check.on { background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); color: #fff; animation: pop .3s; }
.check.big { width: 26px; height: 26px; }
@keyframes pop { 50% { transform: scale(1.25); } }
.star { color: var(--muted); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.star:hover { color: var(--text); }
.star.on { color: #fcc419; }
.sel-box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--muted); display: grid; place-items: center; color: transparent; flex-shrink: 0; }
.sel-box.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.task-row[draggable=true] { cursor: grab; }
body.compact .task-row { min-height: 40px; padding: 6px 8px 6px 12px; }
body.compact .row-wrap { margin-bottom: 2px; }

.bulk-bar { display: flex; align-items: center; gap: 4px; margin: 0 22px 10px; padding: 6px 8px; background: var(--panel); border: 1px solid var(--accent); border-radius: 12px; flex-wrap: wrap; }
.bulk-bar b { margin: 0 8px; }

.suggest { margin: 0 22px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; max-height: 45vh; overflow: auto; }
.suggest-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.suggest-label { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); margin: 10px 0 4px; }
.suggest-item { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.suggest-item .add { color: var(--accent); }
.si-main { flex: 1; cursor: pointer; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-ico { color: var(--accent); opacity: .7; display: grid; place-items: center; margin-bottom: 10px; }
.empty h3 { color: var(--text); margin: 0 0 6px; }
.empty p { margin: 0 0 14px; }

/* ---------- Board ---------- */
.board { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 14px; align-items: start; padding-bottom: 20px; overflow-x: auto; }
.col { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-height: 160px; transition: .15s; }
.col.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.col-head { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 4px 6px 10px; }
.col-head .count { margin-left: auto; color: var(--muted); font-size: 13px; }
.col-dot { width: 10px; height: 10px; border-radius: 50%; }
.col-dot.open { background: var(--muted); } .col-dot.doing { background: #4c6ef5; } .col-dot.done { background: var(--ok); }
.col-body { display: flex; flex-direction: column; gap: 8px; }
.card { background: var(--panel); border-radius: 10px; padding: 10px; cursor: grab; box-shadow: 0 1px 3px rgba(0,0,0,.12); border: 1px solid transparent; }
.card.active { border-color: var(--accent); }
.card.done .card-title { text-decoration: line-through; color: var(--muted); }
.card-top { display: flex; gap: 8px; align-items: flex-start; }
.card-title { flex: 1; line-height: 1.35; padding-top: 1px; word-break: break-word; }
.card .row-meta { margin-top: 8px; }
.progress { height: 4px; background: var(--line); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.progress div { height: 100%; background: var(--ok); }

/* ---------- Kalender ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px; }
.cal-day { background: var(--panel); border-radius: 8px; min-height: 92px; padding: 5px; text-align: left; display: flex; flex-direction: column; gap: 2px; position: relative; border: 2px solid transparent; overflow: hidden; }
.cal-day.other { opacity: .45; }
.cal-day.today .cal-num { background: var(--accent); color: #fff; }
.cal-day.sel { border-color: var(--accent); }
.cal-day.late .cal-dot { background: var(--danger); }
.cal-num { font-weight: 700; font-size: 13px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.cal-items { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-item { font-size: 11.5px; border-left: 3px solid var(--lc); padding-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-item.done { text-decoration: line-through; color: var(--muted); }
.cal-more { font-size: 11px; color: var(--muted); }
.cal-dot { display: none; }
.cal-sel { margin-top: 18px; }
.cal-sel h3 { margin: 6px; }
.cal-sel .quickadd { margin: 8px 0 12px; }

/* ---------- Statistik ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 10px; }
.stat { background: var(--panel); border-radius: 14px; padding: 16px; }
.stat-n { font-size: 30px; font-weight: 800; }
.stat-l { color: var(--muted); font-size: 13px; }
.stat.warn .stat-n { color: var(--danger); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 160px; background: var(--panel); border-radius: 14px; padding: 14px 12px 26px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.bar div { width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar span { position: absolute; bottom: -20px; font-size: 10px; color: var(--muted); }
.hbars { background: var(--panel); border-radius: 14px; padding: 10px 14px; }
.hbar { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.hb-name { width: 170px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-track { flex: 1; height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; }
.hb-track div { height: 100%; border-radius: 6px; }
.hbar b { min-width: 60px; text-align: right; font-size: 13px; }

/* ---------- Benachrichtigungen ---------- */
.notif { display: flex; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--panel); margin-bottom: 4px; cursor: pointer; }
.notif.unread { border-left: 3px solid var(--accent); }
.notif-ico { color: var(--accent); padding-top: 2px; }
.notif-main { flex: 1; }

/* ---------- Detail ---------- */
.detail { background: var(--bg); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; animation: slideIn .18s ease-out; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
.detail-head { display: flex; align-items: center; gap: 6px; padding: 10px 10px 6px; padding-top: calc(10px + var(--safe-t)); }
.detail-list { color: var(--lc); font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-body { flex: 1; overflow-y: auto; padding: 4px 14px 30px; }
.detail-foot > span { flex: 1; }
.detail-foot { display: flex; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); padding-bottom: calc(8px + var(--safe-b)); }
.d-card { background: var(--panel); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.d-title-row { display: flex; align-items: flex-start; gap: 12px; padding: 16px 12px 10px 16px; }
.d-title { flex: 1; border: 0 !important; background: transparent !important; font-size: 19px; font-weight: 650; resize: none; padding: 0 !important; box-shadow: none !important; line-height: 1.35; overflow: hidden; }
.d-title.done { text-decoration: line-through; color: var(--muted); }
.steps { padding: 0 8px 6px; }
.steps-progress { height: 3px; background: var(--line); margin: 0 8px 6px; border-radius: 3px; overflow: hidden; }
.steps-progress div { height: 100%; background: var(--ok); transition: width .3s; }
.step { display: flex; align-items: center; gap: 10px; padding: 3px 4px 3px 10px; border-radius: 8px; }
.step:hover { background: var(--panel2); }
.step .check { width: 19px; height: 19px; }
.step input { flex: 1; border: 0 !important; background: transparent !important; padding: 6px 0 !important; box-shadow: none !important; }
.step.done input { text-decoration: line-through; color: var(--muted); }
.step-add { display: flex; align-items: center; gap: 10px; padding: 2px 4px 4px 10px; color: var(--accent); }
.step-add input { flex: 1; border: 0 !important; background: transparent !important; padding: 8px 0 !important; box-shadow: none !important; }
.d-line { display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%; text-align: left; color: var(--text2); border-bottom: 1px solid var(--line); min-height: 50px; position: relative; }
.d-line:last-child { border-bottom: 0; }
button.d-line:hover { background: var(--panel2); }
.d-line.on { color: var(--accent); }
.d-line.overdue { color: var(--danger); }
.d-line > span { flex: 1; }
.d-wrap { align-items: flex-start; }
.d-wrap > .ico { margin-top: 4px; }
.d-x { margin-left: auto; color: var(--muted); display: grid; place-items: center; }
.d-date { flex: 1; position: relative; cursor: pointer; }
.d-date input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.d-date input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.d-time { width: 100px; padding: 4px 6px !important; }
.d-select { flex: 1; }
.d-sub { display: flex; align-items: center; gap: 6px; padding: 12px 14px 6px; font-weight: 650; color: var(--text2); }
.assignees { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; align-items: center; position: relative; }
.tag-input { border: 0 !important; background: transparent !important; padding: 3px !important; box-shadow: none !important; width: 130px; }
.tag-sugg { width: 100%; display: flex; gap: 4px; flex-wrap: wrap; }
.d-notes { width: 100%; border: 0 !important; background: transparent !important; resize: none; padding: 14px 16px !important; min-height: 90px; box-shadow: none !important; line-height: 1.5; display: block; }
.d-notes.view { white-space: pre-wrap; cursor: text; word-break: break-word; }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.att { width: 110px; background: var(--panel2); border-radius: 8px; overflow: hidden; font-size: 12px; }
.att img { width: 110px; height: 80px; object-fit: cover; display: block; }
.att-file { display: flex; align-items: center; gap: 4px; padding: 10px 8px; height: 80px; word-break: break-all; color: var(--text); text-decoration: none; overflow: hidden; }
.att-meta { display: flex; align-items: center; gap: 4px; padding: 2px 4px 2px 8px; color: var(--muted); }
.att-meta span { flex: 1; }
.att-meta a { color: var(--muted); }
.comments { padding-bottom: 6px; }
.comment { display: flex; gap: 10px; padding: 8px 14px; }
.c-main { flex: 1; min-width: 0; }
.c-head { display: flex; align-items: center; gap: 8px; }
.c-head .icon-btn { margin-left: auto; opacity: 0; }
.comment:hover .c-head .icon-btn { opacity: 1; }
.c-body { white-space: pre-wrap; word-break: break-word; margin-top: 2px; line-height: 1.45; }
.mention { color: var(--accent); font-weight: 600; }
.c-add { display: flex; align-items: flex-end; gap: 8px; padding: 8px 12px 10px; }
.c-add textarea { flex: 1; resize: none; }
.history { padding: 4px 16px 12px; font-size: 13px; color: var(--text2); display: flex; flex-direction: column; gap: 6px; }
.timer { display: flex; align-items: center; gap: 10px; padding: 6px 16px 12px; }
.timer-n { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent); }

/* ---------- Modal & Menü ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; backdrop-filter: blur(2px); }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--bg2); border-radius: 16px; width: min(540px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow); border: 1px solid var(--line); }
.modal.wide { width: min(800px, 100%); }
.modal-head { display: flex; align-items: center; padding: 14px 14px 6px 20px; }
.modal-head h3 { flex: 1; margin: 0; font-size: 18px; }
.modal-body { padding: 8px 20px 16px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); }
.form-row { display: flex; align-items: center; gap: 12px; margin: 12px 0; flex-wrap: wrap; }
.form-row.top { align-items: flex-start; }
.form-row > label:first-child { width: 120px; color: var(--text2); font-size: 14px; flex-shrink: 0; }
.form-row > label.wide { width: auto; flex: 1; }
.form-row > input, .form-row > select { flex: 1; }
.emoji-pick, .color-pick, .wd-pick, .presets { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.emoji-pick button { width: 36px; height: 36px; border-radius: 9px; font-size: 19px; display: grid; place-items: center; }
.emoji-pick.small button { font-size: 16px; }
.emoji-pick button:hover { background: var(--hover); }
.emoji-pick button.on { background: color-mix(in srgb, var(--accent) 22%, transparent); outline: 2px solid var(--accent); }
.emoji-custom { width: 60px; text-align: center; }
.color-pick button { width: 28px; height: 28px; border-radius: 50%; border: 3px solid transparent; }
.color-pick button.on { border-color: var(--text); }
.wd-pick button { width: 40px; height: 34px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line); }
.wd-pick button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.vis-pick { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vis { display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.vis > span { font-size: 20px; }
.vis small { display: block; color: var(--muted); }
.vis.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.member-pick { display: flex; flex-direction: column; gap: 4px; flex: 1; max-height: 240px; overflow: auto; }
.member { display: flex; align-items: center; gap: 8px; padding: 5px; border-radius: 8px; cursor: pointer; }
.member:hover { background: var(--hover); }
.member input { accent-color: var(--accent); width: 17px; height: 17px; }
.menu { position: fixed; z-index: 200; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); width: 240px; max-height: 70vh; overflow-y: auto; padding: 5px; animation: fade .1s; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; text-align: left; font-size: 14px; }
.menu-item:hover { background: var(--hover); }
.menu-item.danger { color: var(--danger); }
.menu-item.active { color: var(--accent); font-weight: 600; }
.menu-item > span:not(.menu-emoji) { flex: 1; }
.menu-emoji { width: 18px; text-align: center; }
.menu-sep { height: 1px; background: var(--line); margin: 4px 6px; }
.menu-header { padding: 8px 10px 3px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--muted); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: calc(20px + var(--safe-b)); left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(460px, calc(100% - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: #2b2420; color: #fff; padding: 10px 10px 10px 16px; border-radius: 12px; box-shadow: var(--shadow); width: 100%; animation: up .2s; }
:root[data-theme='light'] .toast { background: #2b2420; }
.toast span { flex: 1; font-size: 14px; }
.toast button:not(.icon-btn) { color: var(--accent); font-weight: 700; padding: 4px 8px; }
.toast .icon-btn { color: #aaa; }
.toast.error { background: #c92a2a; }
.toast.error button:not(.icon-btn) { color: #fff; }
@keyframes up { from { transform: translateY(20px); opacity: 0; } }

/* ---------- Einstellungen ---------- */
.tabs { display: flex; gap: 4px; padding: 0 24px 10px; overflow-x: auto; flex-shrink: 0; }
.tabs button { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; color: var(--text2); white-space: nowrap; font-size: 14px; }
.tabs button.on { background: var(--panel); color: var(--accent); font-weight: 650; }
.card { background: var(--panel); border-radius: 14px; padding: 4px 18px 16px; margin-bottom: 14px; max-width: 760px; }
.card h3 { margin: 14px 0 6px; }
.card-head { display: flex; align-items: center; justify-content: space-between; }
.card p { line-height: 1.5; }
.profile-head { display: flex; align-items: center; gap: 14px; margin: 10px 0; }
.copy { display: flex; align-items: center; gap: 6px; background: var(--panel2); border-radius: 9px; padding: 6px 6px 6px 10px; margin: 6px 0; }
.copy code { background: none; flex: 1; font-size: 12.5px; }
pre.code { background: var(--panel2); padding: 12px; border-radius: 10px; overflow-x: auto; font-size: 12px; line-height: 1.5; }
.user-list { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.user-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; }
.user-row:hover { background: var(--panel2); }
.user-row.disabled { opacity: .5; }
.u-main { flex: 1; }
table.kv { width: 100%; border-collapse: collapse; }
table.kv td { padding: 6px 0; border-bottom: 1px solid var(--line); }
table.kv td:first-child { color: var(--muted); width: 40%; }

/* ---------- Login ---------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at top, color-mix(in srgb, var(--accent) 22%, var(--bg)), var(--bg) 60%); overflow: auto; height: 100%; }
.auth-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 20px; padding: 30px; width: min(400px, 100%); display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.auth-card label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--text2); }
.auth-card input { padding: 11px 12px; font-size: 16px; }
.auth-card p { margin: 0; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 28px; }
.logo-flame { color: var(--accent); display: inline-grid; }
.banner { padding: 9px 12px; border-radius: 9px; font-size: 14px; }
.banner.error { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.banner.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.splash { height: 100dvh; display: grid; place-items: center; }
.pulse { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .7; } }

/* ==========================================================================
   Mobil
   ========================================================================== */
@media (max-width: 1180px) {
  :root { --detail-w: 380px; --sb-w: 260px; }
}
@media (max-width: 900px) {
  .hide-sm { display: none !important; }
  .only-sm { display: block !important; }
  .app, .app.has-detail { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .topbar { display: flex; align-items: center; gap: 6px; padding: 6px 8px; padding-top: calc(6px + var(--safe-t)); background: var(--bg2); border-bottom: 1px solid var(--line); }
  .topbar-logo { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 750; color: var(--accent); }
  .main { grid-row: 2; min-height: 0; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); z-index: 80; transform: translateX(-105%); transition: transform .22s ease; box-shadow: var(--shadow); }
  .drawer-open .sidebar { transform: none; }
  .drawer-bg { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 79; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .drawer-open .drawer-bg { opacity: 1; pointer-events: auto; }
  .detail { position: fixed; inset: 0; z-index: 90; border: 0; animation: slideUp .2s ease-out; }
  @keyframes slideUp { from { transform: translateY(40px); opacity: 0; } }
  .tabbar { display: flex; grid-row: 3; background: var(--bg2); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
  .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px; font-size: 10.5px; color: var(--muted); text-decoration: none; position: relative; }
  .tabbar .on { color: var(--accent); }
  .tabbar .dot.small { top: 4px; right: calc(50% - 16px); }
  .view-head { padding: 14px 14px 6px; }
  .vh-title h1 { font-size: 22px; }
  .vh-emoji { font-size: 24px; }
  .task-scroll { padding: 0 10px 40px; }
  .task-scroll.pad { padding: 4px 12px 40px; }
  .quickadd, .suggest, .bulk-bar { margin-left: 10px; margin-right: 10px; }
  .filter-bar { margin: 0 14px 6px; }
  .tabs { padding: 0 10px 8px; }
  .board { grid-template-columns: repeat(3, 82vw); scroll-snap-type: x mandatory; }
  .col { scroll-snap-align: start; }
  .cal-day { min-height: 54px; }
  .cal-items { display: none; }
  .cal-dot { display: grid; place-items: center; position: absolute; bottom: 5px; right: 5px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 0 4px; }
  .form-row > label:first-child { width: 100%; }
  .form-row > label.wide { width: auto; }
  .hb-name { width: 110px; }
  .offline-bar { top: auto; bottom: calc(64px + var(--safe-b)); border-radius: 10px; width: max-content; max-width: 94vw; }
  .toasts { bottom: calc(72px + var(--safe-b)); }
  .menu { width: min(260px, 92vw); }
  .menu-item { padding: 11px 10px; }
  .task-row { min-height: 56px; }
  .c-head .icon-btn { opacity: 1; }
}
@media (hover: none) {
  .comment .c-head .icon-btn { opacity: 1; }
}

/* ---------- Drucken (z. B. Packliste fürs Lager) ---------- */
@media print {
  body { overflow: visible; background: #fff; color: #000; }
  .sidebar, .topbar, .tabbar, .detail, .quickadd, .vh-actions, .star, .toasts, .offline-bar, .suggest, .bulk-bar, .swipe-bg { display: none !important; }
  .app { display: block; height: auto; }
  .main, .view, .task-scroll { overflow: visible; height: auto; background: #fff; }
  .task-row { background: #fff; box-shadow: none; border-bottom: 1px solid #ccc; border-radius: 0; break-inside: avoid; }
  .check { border-color: #000 !important; border-radius: 4px; }
  .vh-title h1 { color: #000; }
  * { color: #000 !important; }
}

/* ==========================================================================
   Zeiterfassung
   ========================================================================== */
.btn.danger-fill { background: var(--danger); border-color: var(--danger); color: #fff; }
.pos { color: var(--ok); } .neg { color: var(--danger); }
.sb-clock { padding: 0 12px 6px; }
.clock-pill { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; font-size: 14px; }
.cp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.clock-pill.in .cp-dot, .team-card.in .cp-dot { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); animation: pulse 2s infinite; }
.clock-pill.break .cp-dot, .team-card.break .cp-dot { background: #fab005; }
.clock-pill.in { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.clock-card { background: var(--panel); border-radius: 18px; padding: 20px; margin-bottom: 16px; border: 2px solid var(--line); max-width: 760px; }
.clock-card.in { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
.clock-card.break { border-color: #fab005; }
.cc-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cc-label { color: var(--text2); font-weight: 600; }
.cc-time { font-size: 46px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -1px; line-height: 1.1; }
.cc-sub { color: var(--muted); font-size: 13px; }
.cc-stats { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.cc-stats b { font-size: 20px; display: block; }
.cc-stats span { color: var(--muted); font-size: 12.5px; }
.cc-actions { display: flex; gap: 10px; margin-top: 16px; }
.cc-actions .btn.big { flex: 1; width: auto; }
.cc-warn { margin-top: 12px; color: var(--warn); font-size: 13.5px; }
.month-nav { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; max-width: 760px; }
.month-nav b { font-size: 17px; min-width: 130px; text-align: center; white-space: nowrap; }
.icon-btn:disabled { opacity: .3; pointer-events: none; }
.time-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; max-width: 760px; }
.time-summary > div { background: var(--panel); border-radius: 12px; padding: 10px 12px; }
.time-summary span { display: block; color: var(--muted); font-size: 12px; }
.time-summary b { font-size: 18px; font-variant-numeric: tabular-nums; }
.day-list { display: flex; flex-direction: column; gap: 4px; max-width: 760px; }
.day-row { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border-radius: 10px; padding: 10px 12px; }
.day-row.off { opacity: .6; }
.day-row.empty.off { background: transparent; padding: 4px 12px; }
.day-row.is-today { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.dr-date { width: 44px; display: flex; flex-direction: column; font-size: 13px; color: var(--text2); }
.dr-date b { color: var(--text); font-size: 14px; }
.dr-main { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dr-entry { text-align: left; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 2px 6px; margin: 0 -6px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.dr-entry:hover { background: var(--panel2); }
.dr-entry.add { color: var(--accent); font-size: 13.5px; }
.dr-entry .live { color: var(--ok); font-weight: 700; }
.dr-entry .src { font-size: 11px; padding: 0 6px; border-radius: 8px; background: var(--panel2); color: var(--muted); }
.dr-holiday { color: var(--accent); font-size: 13.5px; }
.dr-warn { color: var(--warn); font-size: 12.5px; }
.dr-num { text-align: right; display: flex; flex-direction: column; align-items: flex-end; min-width: 70px; font-variant-numeric: tabular-nums; }
.export-row { margin: 14px 0; }
.req-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.req-row:last-child { border-bottom: 0; }
.req-main { flex: 1; min-width: 200px; }
.pill.pending { background: color-mix(in srgb, #fab005 25%, transparent); color: #fab005; }
.pill.approved { background: color-mix(in srgb, var(--ok) 25%, transparent); color: var(--ok); }
.pill.rejected, .pill.cancelled { background: color-mix(in srgb, var(--danger) 20%, transparent); color: var(--danger); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.team-card { background: var(--panel); border-radius: 14px; padding: 14px; text-align: left; border: 2px solid transparent; display: flex; flex-direction: column; gap: 12px; }
.team-card:hover { border-color: var(--line); }
.team-card.in { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.team-card.break { border-color: color-mix(in srgb, #fab005 55%, transparent); }
.tc-head { display: flex; align-items: center; gap: 10px; }
.tc-status { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.tc-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tc-nums span { display: block; color: var(--muted); font-size: 11.5px; }
.tc-nums b { font-variant-numeric: tabular-nums; }
.tc-nums small { color: var(--muted); font-weight: 500; }
.tc-warn { color: var(--warn); font-size: 12.5px; }
.export-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 10px 0; }
.export-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.export-tile:hover { border-color: var(--accent); }
.export-tile span { font-size: 28px; }
.export-tile small { color: var(--muted); }
.profile-box { border: 1px solid var(--line); border-radius: 12px; padding: 2px 12px; margin-bottom: 8px; }
.audit { display: flex; flex-direction: column; }
.audit-row { display: grid; grid-template-columns: 110px 150px 1fr; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.audit-row > span:last-child { grid-column: 2 / -1; }
@media (max-width: 900px) {
  .time-summary { grid-template-columns: repeat(2, 1fr); }
  .cc-time { font-size: 38px; }
  .cc-actions { flex-direction: column; }
  .audit-row { grid-template-columns: 1fr; }
  .audit-row > span:last-child { grid-column: auto; }
}

/* ---------- Abwesenheiten ---------- */
.dr-absence { font-size: 13.5px; font-weight: 600; color: var(--ac); }
.tc-abs { font-size: 12.5px; color: #748ffc; }
.vac-card { background: var(--panel); border-radius: 18px; padding: 18px 20px; margin-bottom: 14px; max-width: 760px; }
.vac-head { display: flex; align-items: center; gap: 6px; }
.vac-head b { font-size: 15px; }
.vac-big { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 12px; }
.vac-big span { font-size: 44px; font-weight: 800; color: #4c6ef5; line-height: 1; }
.vac-big span.neg { color: var(--danger); }
.vac-big small { color: var(--muted); font-size: 15px; }
.vac-bar { display: flex; height: 12px; border-radius: 8px; overflow: hidden; background: var(--line); gap: 2px; }
.vb.taken, .vac-legend i.taken { background: #4c6ef5; }
.vb.planned, .vac-legend i.planned { background: #91a7ff; }
.vb.pending, .vac-legend i.pending { background: repeating-linear-gradient(45deg, #91a7ff, #91a7ff 4px, transparent 4px, transparent 8px); }
.vb.rest { background: var(--line); }
.vac-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--text2); }
.vac-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.abs-emoji { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.type-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; margin: 6px 0 10px; }
.type-pick button { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); text-align: left; font-size: 14px; }
.type-pick button span { font-size: 18px; }
.type-pick button.on { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 18%, transparent); font-weight: 650; }
.team-cal-card { max-width: none; }
.team-cal { overflow-x: auto; margin: 0 -6px; padding-bottom: 4px; }
.team-cal table { border-collapse: separate; border-spacing: 2px; font-size: 12px; }
.team-cal th { font-weight: 600; color: var(--muted); padding: 2px; text-align: center; min-width: 26px; }
.team-cal th small { display: block; font-size: 10px; font-weight: 500; }
.team-cal tbody th { text-align: left; white-space: nowrap; padding-right: 8px; color: var(--text); position: sticky; left: 0; background: var(--panel); z-index: 1; }
.team-cal tbody th > * { vertical-align: middle; }
.team-cal td { height: 28px; min-width: 26px; border-radius: 6px; background: var(--panel2); text-align: center; cursor: default; }
.team-cal td.we, .team-cal th.we { opacity: .45; }
.team-cal td.hol { background: color-mix(in srgb, var(--accent) 15%, var(--panel2)); }
.team-cal th.td { color: var(--accent); }
.team-cal td.td { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.team-cal td.abs { background: color-mix(in srgb, var(--ac) 35%, var(--panel2)); }
.team-cal td.pend { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--ac) 30%, var(--panel2)), color-mix(in srgb, var(--ac) 30%, var(--panel2)) 4px, var(--panel2) 4px, var(--panel2) 8px); }
.team-cal td .half { opacity: .6; font-size: 10px; }
.abs-types { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.abs-type { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.abs-type.inactive { opacity: .5; }
.abs-type .member { padding: 2px 4px; font-size: 13px; }
.abs-type .emoji-custom { width: 48px; }

/* ---------- Dateien ---------- */
.files-view { position: relative; }
.only-sm-inline { display: none; }
.space-tabs { display: flex; gap: 6px; padding: 0 24px 10px; overflow-x: auto; flex-shrink: 0; }
.space-tabs.small { padding: 0 0 10px; }
.space-tabs button { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); white-space: nowrap; font-size: 14px; }
.space-tabs button.on { border-color: #f59f00; background: color-mix(in srgb, #f59f00 15%, var(--panel)); font-weight: 650; }
.space-tabs small { font-size: 11px; }
.files-bar { display: flex; align-items: center; gap: 8px; padding: 0 24px 10px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 200px; flex-wrap: wrap; color: var(--muted); }
.crumbs button { padding: 4px 6px; border-radius: 6px; font-weight: 600; color: var(--text); }
.crumbs button:hover { background: var(--hover); }
.files-search { display: flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 0 6px 0 10px; color: var(--muted); }
.files-search input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 7px 0 !important; width: 200px; }
.upload-progress { margin: 0 24px 10px; height: 26px; background: var(--panel); border-radius: 8px; position: relative; overflow: hidden; }
.upload-progress div { height: 100%; background: color-mix(in srgb, #f59f00 45%, transparent); transition: width .2s; }
.upload-progress span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.file-list, .files-results, .picker-list { display: flex; flex-direction: column; gap: 3px; }
.picker-list { max-height: 50vh; overflow-y: auto; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 12px; background: var(--panel); border-radius: 10px; cursor: pointer; }
.file-row:hover { background: var(--panel2); }
.f-ico { font-size: 22px; width: 28px; text-align: center; flex-shrink: 0; }
.f-main { flex: 1; min-width: 0; }
.f-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-size { width: 80px; text-align: right; } .f-date { width: 110px; text-align: right; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.file-tile { background: var(--panel); border-radius: 12px; overflow: hidden; cursor: pointer; position: relative; }
.file-tile:hover { outline: 2px solid var(--line); }
.ft-thumb { height: 100px; display: grid; place-items: center; background: var(--panel2); }
.ft-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ft-thumb span { font-size: 44px; }
.ft-name { padding: 8px 10px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-more { position: absolute; top: 4px; right: 4px; background: var(--panel); }
.drop-overlay { position: absolute; inset: 8px; border: 3px dashed #f59f00; border-radius: 18px; background: color-mix(in srgb, #f59f00 12%, transparent); display: grid; place-items: center; pointer-events: none; z-index: 5; }
.drop-overlay div { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #f59f00; font-size: 18px; }
.preview-bg { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.88); display: flex; flex-direction: column; animation: fade .15s; }
.preview-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: #fff; padding-top: calc(10px + var(--safe-t)); }
.preview-head .icon-btn { color: #ddd; }
.preview-body { flex: 1; display: grid; place-items: center; padding: 0 14px 14px; min-height: 0; }
.preview-body img, .preview-body video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.preview-body iframe { width: min(1000px, 100%); height: 100%; border: 0; border-radius: 8px; background: #fff; }
.att.linked { border: 1px dashed #f59f00; }
@media (max-width: 900px) {
  .space-tabs, .files-bar { padding-left: 10px; padding-right: 10px; }
  .files-search { order: 3; width: 100%; } .files-search input { width: 100%; }
  .only-sm-inline { display: block; }
  .upload-progress { margin: 0 10px 10px; }
}

/* ---------- Fahrzeuge ---------- */
.plate { display: inline-flex; align-items: stretch; border: 2px solid #222; border-radius: 5px; background: #fff; color: #111; font-family: 'DIN Alternate', 'Arial Narrow', Arial, sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .5px; overflow: hidden; white-space: nowrap; vertical-align: middle; }
.plate-eu { background: #0b3d91; color: #ffd500; font-size: 9px; padding: 0 3px; display: grid; place-items: end center; padding-bottom: 1px; margin-right: 5px; }
.plate { padding-right: 6px; }
.fleet-stats { max-width: 900px; }
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 6px; }
.veh-card { background: var(--panel); border-radius: 16px; padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 10px; border: 2px solid transparent; border-left: 5px solid var(--vc); }
.veh-card:hover { border-color: var(--line); border-left-color: var(--vc); }
.veh-card.blocked { border-color: color-mix(in srgb, var(--danger) 60%, transparent); }
.veh-card.archived { opacity: .5; }
.vc-top { display: flex; align-items: center; gap: 10px; }
.vc-emoji { font-size: 30px; }
.vc-photo, .vh-photo { width: 52px; height: 40px; object-fit: cover; border-radius: 8px; }
.vh-photo { width: 64px; height: 48px; }
.vc-nums { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--text2); }
.vc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.vc-chips:empty { display: none; }
.due-chip { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--panel2); color: var(--text2); }
.due-chip.mid { background: color-mix(in srgb, #4dabf7 20%, transparent); color: #4dabf7; }
.due-chip.soon { background: color-mix(in srgb, #fab005 22%, transparent); color: #e8a400; }
.due-chip.over { background: color-mix(in srgb, var(--danger) 20%, transparent); color: var(--danger); }
.due-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.due-row:last-child { border-bottom: 0; }
.due-days { width: 52px; text-align: center; font-size: 20px; font-weight: 800; line-height: 1; color: #4dabf7; }
.due-days small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); }
.due-days.soon { color: #e8a400; } .due-days.over { color: var(--danger); }
.veh-head .vh-title { gap: 10px; }
.veh-head .vh-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.veh-banner { margin: 0 24px 10px; }
.veh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: start; }
.veh-grid .card { margin: 0; max-width: none; }
.kv-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv-row:last-child { border-bottom: 0; }
.kv-row > span:first-child { color: var(--muted); }
.kv-row > :last-child { text-align: right; }
.sel { user-select: text; }
.warn-text { color: #e8a400; }
.pre { white-space: pre-wrap; }
.spark-wrap { color: #1c7ed6; margin-top: 8px; }
.spark { width: 100%; height: 60px; }
.check-mini { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.cm { font-size: 12px; padding: 2px 8px; border-radius: 8px; background: var(--panel2); }
.cm.ok { color: var(--ok); } .cm.mangel { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); font-weight: 600; } .cm.na { color: var(--muted); }
.check-list .card { max-width: 900px; }
.check-head { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 0; }
.check-badge { min-width: 40px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.check-badge.good { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.check-badge.bad { background: color-mix(in srgb, var(--danger) 20%, transparent); color: var(--danger); }
.check-body { padding-bottom: 10px; }
.check-form h4, .veh-form h4 { margin: 14px 0 4px; color: var(--text2); }
.tread-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; flex: 1; }
.tread-grid label { display: flex; flex-direction: column; font-size: 11.5px; color: var(--muted); gap: 2px; }
.tread-grid input { width: 100%; }
.check-cat { border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px 8px; margin: 10px 0; }
.cc-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 4px; }
.ci-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 0; border-top: 1px solid var(--line); }
.ci-label { flex: 1; min-width: 150px; }
.ci-btns { display: flex; gap: 4px; }
.ci-btns button { padding: 6px 11px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--text2); }
.ci-btns .ok.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.ci-btns .bad.on { background: var(--danger); border-color: var(--danger); color: #fff; }
.ci-btns .na.on { background: var(--muted); color: #fff; }
.ci-row.mangel .ci-label { color: var(--danger); font-weight: 600; }
.ci-date { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ci-comment { width: 100%; }
.defect-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; max-width: 900px; }
.defect { display: flex; gap: 12px; background: var(--panel); border-radius: 12px; padding: 12px; border-left: 4px solid var(--sc); flex-wrap: wrap; }
.defect.blocks { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--danger) 45%, transparent); }
.defect.erledigt { opacity: .65; }
.df-main { flex: 1; min-width: 220px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.df-side { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hist-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.timeline { display: flex; flex-direction: column; gap: 4px; max-width: 900px; }
.tl-item { display: flex; align-items: flex-start; gap: 12px; background: var(--panel); border-radius: 10px; padding: 10px 12px; }
.tl-ico { font-size: 20px; }
.tl-cost { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tire-list { display: flex; flex-direction: column; gap: 8px; max-width: 900px; }
.tire-list .card { margin: 0; padding: 12px 14px; max-width: none; }
.tire.mounted { border: 2px solid color-mix(in srgb, var(--ok) 50%, transparent); }
.tire.retired { opacity: .5; }
.tire-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tire-season { font-size: 26px; }
.tread-car { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 420px; }
.tc { background: var(--panel2); border-radius: 10px; padding: 8px; text-align: center; display: flex; flex-direction: column; }
.tc b { font-size: 22px; } .tc small { color: var(--muted); font-size: 11px; }
.tc.good b { color: var(--ok); } .tc.mid b { color: #e8a400; } .tc.bad b { color: var(--danger); }
.veh-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 24px; }
.veh-form .form-row > label:first-child { width: 110px; }
.rights-wrap { overflow-x: auto; }
table.rights { border-collapse: collapse; width: 100%; font-size: 13.5px; }
table.rights th, table.rights td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.rights tbody th { font-weight: 600; }
table.rights tbody th > * { vertical-align: middle; }
select.lvl { padding: 4px 6px; font-size: 13px; }
select.lvl.custom { border-color: var(--accent); }
@media (max-width: 900px) {
  .veh-banner { margin: 0 10px 10px; }
  .fleet-grid, .veh-grid { grid-template-columns: 1fr; }
  .veh-form .form-row > label:first-child { width: 100%; }
}
.rights-card { max-width: 1000px; }

/* ---------- Reparaturen ---------- */
.rs-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 10px; background: color-mix(in srgb, var(--rc) 18%, transparent); color: var(--rc); white-space: nowrap; }
.status-filter { display: flex; gap: 6px; padding: 0 24px 10px; overflow-x: auto; flex-shrink: 0; }
.status-filter button { padding: 5px 11px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; white-space: nowrap; }
.status-filter button.on { border-color: var(--rc, var(--accent)); background: color-mix(in srgb, var(--rc, var(--accent)) 15%, var(--panel)); font-weight: 650; }
.repair-list { display: flex; flex-direction: column; gap: 6px; max-width: 960px; }
.repair-row { display: flex; align-items: center; gap: 12px; background: var(--panel); border-radius: 12px; padding: 10px 12px; text-align: left; border-left: 4px solid var(--rc); }
.repair-row:hover { background: var(--panel2); }
.repair-row.dringend { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 45%, transparent); }
.rr-thumb { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.rr-thumb.ph { display: grid; place-items: center; background: var(--panel2); font-size: 24px; }
.rr-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rr-nr { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.rr-title { margin: 2px 0; }
.repair-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 14px; align-items: start; max-width: 1200px; }
.repair-grid .card { max-width: none; }
.next-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.rs-btn { padding: 10px 16px; border-radius: 12px; font-weight: 700; background: color-mix(in srgb, var(--rc) 15%, var(--panel)); color: var(--rc); border: 1px solid color-mix(in srgb, var(--rc) 40%, transparent); }
.rs-btn:hover { background: color-mix(in srgb, var(--rc) 25%, var(--panel)); }
.rlog { display: flex; flex-direction: column; gap: 2px; }
.rlog-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rlog-item:last-child { border-bottom: 0; }
.photo-strip { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.photo-strip.big .ps-item { width: 110px; height: 110px; }
.ps-item { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; position: relative; background: var(--panel2); padding: 0; flex-shrink: 0; }
.ps-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-item > button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; line-height: 1; }
.ps-file { display: grid; place-items: center; height: 100%; font-size: 28px; }
.ps-add { width: 72px; height: 72px; border-radius: 10px; border: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 22px; color: var(--muted); }
.ps-add span { font-size: 11px; }
.asset-picker { position: relative; }
.ap-row { display: flex; gap: 6px; }
.ap-row input { flex: 1; }
.ap-res { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin-top: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); max-height: 260px; overflow: auto; }
.ap-res button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.ap-res button:hover { background: var(--hover); }
.picked-asset { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--accent); border-radius: 10px; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.hist-mini { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; }
.scanner { position: fixed; inset: 0; z-index: 160; background: #000; display: flex; flex-direction: column; color: #fff; }
.scan-head { display: flex; align-items: center; gap: 6px; padding: 10px 12px; padding-top: calc(10px + var(--safe-t)); }
.scan-head .icon-btn { color: #fff; font-size: 18px; }
.scan-view { flex: 1; position: relative; overflow: hidden; }
.scan-view video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.scan-frame span { width: min(70vw, 300px); aspect-ratio: 1; border: 3px solid #fff; border-radius: 20px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); animation: scanpulse 1.6s ease-in-out infinite; }
@keyframes scanpulse { 50% { border-color: var(--accent); } }
.scan-hint { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; font-weight: 600; text-shadow: 0 1px 4px #000; }
.scan-err { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; font-size: 16px; }
.scan-manual { display: flex; gap: 8px; padding: 12px; padding-bottom: calc(12px + var(--safe-b)); background: #111; }
.scan-manual input { flex: 1; background: #222; color: #fff; border-color: #333; font-size: 16px; }
@media (max-width: 900px) {
  .status-filter { padding: 0 10px 10px; }
  .repair-grid { grid-template-columns: 1fr; }
  .space-tabs .files-search { width: 100%; order: 5; margin-left: 0 !important; }
  .space-tabs { flex-wrap: wrap; }
}

/* ---------- Prüfungen (DGUV V3) ---------- */
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); max-width: none; margin-bottom: 12px; }
.btn.on { background: color-mix(in srgb, var(--accent) 18%, var(--panel)); border-color: var(--accent); }
.seg.small button { padding: 5px 11px; font-size: 13px; }
.insp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 1000px; margin-bottom: 10px; }
.insp-tiles .it { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-align: left; border-left: 5px solid var(--sc); }
.insp-tiles .it b { font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--sc); }
.insp-tiles .it span { font-size: 13px; color: var(--muted); }
.insp-tiles .it.on { background: color-mix(in srgb, var(--sc) 12%, var(--panel)); border-color: var(--sc); }
.insp-tiles .it.ok b { color: var(--text); }
.insp-remind { margin: 4px 0 12px; font-size: 14px; }
.insp-months { max-width: 1000px; }
.im-bars { display: flex; gap: 6px; align-items: flex-end; overflow-x: auto; padding-bottom: 2px; }
.im-bars button { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 58px; padding: 6px 4px; border-radius: 10px; }
.im-bars button:hover, .im-bars button.on { background: var(--hover); }
.im-bar { width: 26px; border-radius: 6px 6px 2px 2px; background: var(--accent); opacity: .8; }
.im-bars button.on .im-bar { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }
.im-n { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.im-m { font-size: 11px; color: var(--muted); white-space: nowrap; }
.insp-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 1000px; margin: 4px 0 10px; }
.insp-list { display: flex; flex-direction: column; gap: 4px; max-width: 1000px; }
.insp-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; background: var(--panel); text-align: left; border-left: 4px solid var(--sc); }
.insp-row:hover { background: var(--panel2); }
.ir-dot { font-size: 18px; width: 24px; text-align: center; }
.ir-due { display: flex; flex-direction: column; align-items: flex-end; text-align: right; color: var(--sc); white-space: nowrap; }
.ir-due b { color: var(--text); font-variant-numeric: tabular-nums; }
.kontrolle { position: fixed; inset: 0; z-index: 150; }
.insp-sheet { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; }
.is-head { display: flex; align-items: center; gap: 6px; padding: 10px 14px; padding-top: calc(10px + var(--safe-t)); border-bottom: 1px solid var(--line); font-size: 17px; }
.is-body { flex: 1; overflow: auto; padding: 14px; max-width: 820px; width: 100%; margin: 0 auto; }
.is-foot { display: flex; gap: 8px; padding: 10px 14px; padding-bottom: calc(10px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--panel); }
.is-banner { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--sc) 16%, var(--panel)); border: 2px solid var(--sc); }
.is-banner b { font-size: 18px; }
.is-banner > div > b:first-child { color: var(--sc); font-size: 22px; }
.is-ico { font-size: 38px; line-height: 1; }
.is-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 18px; margin: 14px 0 6px; }
.is-facts > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.is-facts span { color: var(--muted); }
.is-facts b { text-align: right; font-weight: 600; }
.is-h { margin: 16px 0 8px; }
table.meas { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 6px; }
table.meas th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 6px; }
table.meas td { padding: 6px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.pdf-page { position: relative; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 6px rgba(0,0,0,.15); min-height: 200px; }
.pdf-canvas canvas { width: 100%; height: auto; display: block; }
.pdf-busy { position: absolute; inset: 0; display: grid; place-items: center; color: #555; font-size: 14px; padding: 20px; text-align: center; }
.basket-bar { position: absolute; left: 12px; right: 12px; bottom: calc(68px + var(--safe-b)); display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--text); color: var(--bg); box-shadow: var(--shadow); max-width: 796px; margin: 0 auto; }
.imp-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.imp-row { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.prog { height: 6px; border-radius: 3px; background: var(--panel2); overflow: hidden; margin: 6px 0 2px; }
.prog > span { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.hist-mini { width: 100%; text-align: left; }
@media (max-width: 700px) {
  .insp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insp-tiles .it b { font-size: 24px; }
  .is-ico { font-size: 30px; }
  .is-banner > div > b:first-child { font-size: 19px; }
}
.is-body.has-basket { padding-bottom: 90px; }
@media (max-width: 500px) { .is-foot { gap: 6px; padding-left: 10px; padding-right: 10px; } .is-foot .btn { padding: 8px 10px; font-size: 14px; } }
.dr-entry.add.quiet { opacity: .55; font-size: 12.5px; }
.day-row.weekend .dr-date b { color: var(--accent); }

/* ---------- Haus & Lager (Home Assistant) ---------- */
/* ---- Haus & Lager (Home Assistant) ---- */
.home-view .task-scroll { background: radial-gradient(1200px 400px at 20% -10%, color-mix(in srgb, #1c7ed6 7%, transparent), transparent); }
.ha-summary { display: flex; flex-wrap: wrap; gap: 8px; max-width: 1180px; margin: 0 0 16px; }
.ha-pill { padding: 7px 13px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.ha-pill.on { background: color-mix(in srgb, #fab005 18%, var(--panel)); border-color: color-mix(in srgb, #fab005 50%, transparent); }
.ha-pill.ok { color: #2b8a3e; }
.ha-pill.warn { background: color-mix(in srgb, #fd7e14 15%, var(--panel)); border-color: color-mix(in srgb, #fd7e14 45%, transparent); }
.ha-pill.alarm { background: color-mix(in srgb, #e03131 15%, var(--panel)); border-color: #e03131; color: #c92a2a; }
.ha-section { --sc: var(--accent); max-width: 1180px; margin-bottom: 22px; }
.ha-sec-head { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 10px; }
.ha-sec-head h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 17px; }
.ha-sec-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; background: color-mix(in srgb, var(--sc) 16%, var(--panel)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc) 30%, transparent); }
.ha-alloff { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--panel); border: 1px solid var(--line); }
.ha-alloff:hover { background: var(--hover); }
.ha-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); grid-auto-rows: minmax(118px, auto); grid-auto-flow: dense; gap: 12px; }
.ha-tile { --tc: var(--sc, var(--accent)); position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 14px 15px; display: flex; flex-direction: column; gap: 6px; user-select: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 14px -8px rgba(0,0,0,.12); transition: background .2s, border-color .2s, transform .1s, box-shadow .2s; }
.ha-tile.sz-m { grid-column: span 2; }
.ha-tile.sz-l { grid-column: span 2; grid-row: span 2; }
.ha-tile.click { cursor: pointer; }
.ha-tile.click:hover { box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 10px 24px -10px rgba(0,0,0,.2); }
.ha-tile.click:active { transform: scale(.97); }
.ht-top { display: flex; align-items: center; gap: 10px; }
.ht-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: var(--panel2); transition: background .2s, box-shadow .2s; }
.ht-name { font-weight: 650; font-size: 14px; line-height: 1.25; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ht-state { font-size: 13px; color: var(--text2, var(--muted)); }
.ht-big { font-size: 30px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.05; letter-spacing: -.5px; margin-top: 2px; }
.ht-big small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.sz-l .ht-big { font-size: 40px; }
/* an/aus-Zustände */
.ha-tile.d-light.on { background: linear-gradient(150deg, color-mix(in srgb, #ffd43b 30%, var(--panel)), var(--panel) 75%); border-color: color-mix(in srgb, #fab005 50%, transparent); }
.ha-tile.d-light.on .ht-ico { background: #ffd43b; box-shadow: 0 0 18px 2px color-mix(in srgb, #ffd43b 70%, transparent); }
.ha-tile.d-switch.on, .ha-tile.d-input_boolean.on, .ha-tile.d-fan.on, .ha-tile.d-automation.on, .ha-tile.d-media_player.on { background: linear-gradient(150deg, color-mix(in srgb, var(--tc) 18%, var(--panel)), var(--panel) 75%); border-color: color-mix(in srgb, var(--tc) 40%, transparent); }
.ha-tile.d-switch.on .ht-ico, .ha-tile.d-input_boolean.on .ht-ico, .ha-tile.d-fan.on .ht-ico, .ha-tile.d-automation.on .ht-ico, .ha-tile.d-media_player.on .ht-ico { background: color-mix(in srgb, var(--tc) 30%, var(--panel)); }
.ha-tile.d-cover.on { background: linear-gradient(150deg, color-mix(in srgb, #4dabf7 22%, var(--panel)), var(--panel) 75%); border-color: color-mix(in srgb, #339af0 45%, transparent); }
.ha-tile.d-cover.on .ht-ico { background: color-mix(in srgb, #4dabf7 40%, var(--panel)); }
.ha-tile.d-lock .ht-ico { background: color-mix(in srgb, #2f9e44 18%, var(--panel)); }
.ha-tile.d-lock.open { background: linear-gradient(150deg, color-mix(in srgb, #ff922b 24%, var(--panel)), var(--panel) 75%); border-color: color-mix(in srgb, #fd7e14 50%, transparent); }
.ha-tile.d-lock.open .ht-ico { background: #ffa94d; }
.ha-tile.heating { background: linear-gradient(150deg, color-mix(in srgb, #ff8787 20%, var(--panel)), var(--panel) 75%); }
.ha-tile.d-climate .ht-ico { background: color-mix(in srgb, #ff8787 22%, var(--panel)); }
.ha-tile.d-sensor .ht-ico, .ha-tile.d-weather .ht-ico { background: color-mix(in srgb, var(--tc) 14%, var(--panel)); }
.ha-tile.d-binary_sensor.active .ht-ico { background: color-mix(in srgb, #4dabf7 35%, var(--panel)); }
.ha-tile.d-person.on .ht-ico { background: color-mix(in srgb, #51cf66 35%, var(--panel)); }
.ha-tile.armed .ht-ico { background: color-mix(in srgb, #e03131 25%, var(--panel)); }
.ha-tile.run { border-style: dashed; }
.ha-tile.run .ht-ico { background: color-mix(in srgb, #7048e8 18%, var(--panel)); }
.ha-tile.warn.low { border-color: #339af0; background: linear-gradient(150deg, color-mix(in srgb, #74c0fc 25%, var(--panel)), var(--panel) 80%); }
.ha-tile.warn.high { border-color: #f03e3e; background: linear-gradient(150deg, color-mix(in srgb, #ff8787 25%, var(--panel)), var(--panel) 80%); }
.ha-tile.alarm { background: color-mix(in srgb, #e03131 22%, var(--panel)); border-color: #e03131; animation: scanpulse 1s infinite; }
.ha-tile.na { opacity: .5; filter: grayscale(.6); }
/* Schalter-Optik */
.ht-toggle { width: 38px; height: 22px; border-radius: 11px; background: var(--line); position: relative; flex-shrink: 0; transition: background .2s; }
.ht-toggle i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .2s; }
.ht-toggle.on { background: var(--tc); }
.d-light .ht-toggle.on { background: #fab005; }
.ht-toggle.on i { left: 19px; }
/* Bedienelemente */
.ht-btns { display: flex; gap: 6px; margin-top: auto; }
.ht-btns button { flex: 1; padding: 9px 0; border-radius: 12px; background: var(--panel2); font-weight: 700; font-size: 15px; border: 1px solid var(--line); }
.ht-btns button:hover { background: var(--hover); }
.ht-lockbtn { margin-top: auto; padding: 10px; border-radius: 12px; font-weight: 700; background: #2f9e44; color: #fff; }
.ht-lockbtn.lock { background: #e8590c; }
.ht-range { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin-top: auto; border-radius: 13px; background: linear-gradient(90deg, #ffd43b var(--p, 50%), var(--panel2) var(--p, 50%)); border: 1px solid var(--line); cursor: pointer; }
.ht-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.ht-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.ht-bar { height: 6px; border-radius: 3px; background: var(--panel2); overflow: hidden; }
.ht-bar i { display: block; height: 100%; background: #339af0; border-radius: 3px; transition: width .4s; }
.ht-bar.low i { background: #f03e3e; }
.ht-range-info { font-size: 11.5px; color: var(--muted); }
.ht-spark-wrap { margin-top: auto; }
.ht-spark { width: 100%; height: 42px; display: block; color: var(--tc); }
.ht-spark polyline { stroke: currentColor; stroke-width: 2; }
.ht-spark .area { fill: currentColor; opacity: .12; }
.ht-spark.warn { color: #f03e3e; }
.ht-minmax { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ha-tile.d-camera { padding: 10px; }
.ht-cam { width: 100%; flex: 1; min-height: 120px; border-radius: 14px; object-fit: cover; background: #000; }
.ha-tile.d-camera.sz-s .ht-cam { min-height: 70px; }
/* Editor */
.ha-edit { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.ha-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ha-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border-radius: 14px; background: var(--panel2); font-size: 13px; }
.ha-chip.has-opts { box-shadow: inset 0 0 0 1px var(--accent); }
.ha-chip button { width: 22px; height: 22px; border-radius: 50%; color: var(--muted); }
.ha-chip button:hover { background: var(--hover); color: var(--text); }
.ha-colors { display: flex; gap: 6px; flex-wrap: wrap; }
.ha-color { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); font-size: 12px; color: var(--muted); }
.ha-color.on { outline: 2px solid var(--text); outline-offset: 2px; }
.ha-pick { display: flex; flex-direction: column; max-height: 55vh; overflow: auto; }
.ha-pick button { display: flex; align-items: center; gap: 10px; padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.ha-pick button:hover { background: var(--hover); }
@media (max-width: 520px) {
  .ha-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(108px, auto); gap: 10px; }
  .ha-tile { padding: 11px 12px; border-radius: 18px; }
  .ht-ico { width: 34px; height: 34px; font-size: 17px; }
  .ht-big { font-size: 26px; }
}

/* ---------- Logbuch ---------- */
.lb-filters { padding: 0 24px 10px; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.lb-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lb-date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.lb-list { max-width: 1000px; }
.lb-day { position: sticky; top: 0; z-index: 1; background: var(--bg); padding: 12px 0 6px; font-weight: 700; font-size: 13px; color: var(--muted); }
.lb-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--panel); margin-bottom: 4px; font-size: 14px; }
.lb-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; width: 40px; flex-shrink: 0; }
.lb-sys { width: 24px; text-align: center; }
.lb-text { color: var(--text); }
.lb-cat { font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 900px) { .lb-filters { padding: 0 10px 10px; } .lb-item { align-items: flex-start; } }
.week-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 6px 6px; border-bottom: 2px solid var(--line); margin-bottom: 4px; }
.week-row:first-child { padding-top: 4px; }

/* ---------- Untere Leiste: frei belegbar ---------- */
.tb-emoji { font-size: 20px; line-height: 22px; height: 22px; }
.tabbar .tb-clock { color: var(--accent); }
.tabbar .tb-clock.run { color: #2f9e44; }
.tabbar .tb-clock.brk { color: #f08c00; }
.tb-preview { display: flex; gap: 6px; background: var(--panel2); border-radius: 14px; padding: 8px; max-width: 520px; }
.tb-slot { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.tb-slot-main { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; padding: 8px 2px; border-radius: 10px; background: var(--panel); font-size: 11px; color: var(--text2, var(--text)); }
.tb-slot-main span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tb-slot-main.add { border: 2px dashed var(--line); background: none; color: var(--muted); }
.tb-slot.fixed .tb-slot-main { opacity: .6; }
.tb-slot-tools { display: flex; gap: 2px; }
.tb-slot-tools button { width: 24px; height: 22px; border-radius: 6px; color: var(--muted); font-size: 14px; }
.tb-slot-tools button:hover:not(:disabled) { background: var(--hover); color: var(--text); }
.tb-slot-tools button:disabled { opacity: .3; }
.tb-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; max-width: 640px; }
.tb-options p { width: 100%; margin: 0; }
.tb-options button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 16px; background: var(--panel2); font-size: 13px; }
.tb-options button:hover:not(:disabled) { background: var(--hover); }
.tb-options button:disabled { opacity: .4; }

/* ---- Persönliche Listen-Gruppen ---- */
.sb-group-row { display: flex; align-items: center; }
.sb-group-row .sb-group { flex: 1; min-width: 0; text-align: left; }
.sbg-ico { font-size: 14px; }
.sbg-tools { display: flex; opacity: 0; transition: opacity .15s; }
.sb-group-row:hover .sbg-tools, .sb-group-row:focus-within .sbg-tools { opacity: 1; }
@media (hover: none) { .sbg-tools { opacity: .7; } }
.sb-folder { border-radius: 10px; transition: background .15s; }
.sb-folder.over { background: color-mix(in srgb, var(--accent) 12%, transparent); outline: 2px dashed var(--accent); outline-offset: -2px; }
.sb-folder-lists { padding-left: 12px; }
.sb-empty { padding: 4px 12px 8px 26px; }
.sb-dropzone { margin: 2px 6px 6px; padding: 8px; border: 2px dashed var(--line); border-radius: 10px; text-align: center; font-size: 12px; color: var(--muted); }
.sb-dropzone.over { border-color: var(--accent); color: var(--accent); }
.nav-item[data-drop="before"] { box-shadow: inset 0 3px 0 -1px var(--accent); }

/* ---- Fahrzeug-Wartung ---- */
.mnt-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card.mnt { border-left: 4px solid var(--line); margin: 0; }
.card.mnt.overdue { border-left-color: #e03131; }
.card.mnt.soon { border-left-color: #f59f00; }
.card.mnt.ok { border-left-color: #2f9e44; }
.mnt-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.mnt-actions { display: flex; gap: 2px; align-items: center; flex-shrink: 0; }
.mnt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.mnt-grid span { display: block; font-size: 12px; color: var(--muted); }
.mnt-grid b { font-weight: 600; font-size: 14px; }
.due-chip.ok { background: color-mix(in srgb, #2f9e44 15%, transparent); color: #2f9e44; }
table.mnt-tpl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.mnt-tpl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px; }
table.mnt-tpl td { padding: 4px; border-top: 1px solid var(--line); }
table.mnt-tpl tr.muted { opacity: .55; }
@media (max-width: 640px) { table.mnt-tpl th:nth-child(6), table.mnt-tpl td:nth-child(6) { display: none; } }

/* ---- Angebote ---- */
.offer-card h3 small { font-weight: 400; font-size: 13px; }
.banner.offer-deal { background: color-mix(in srgb, #2f9e44 14%, var(--bg)); border-color: #2f9e44; }
.offer-list { display: grid; gap: 6px; margin: 8px 0; }
.offer-list.dim { opacity: .75; }
.offer-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.offer-row.deal { border-color: #2f9e44; background: color-mix(in srgb, #2f9e44 7%, transparent); }
.or-main { min-width: 0; }
.or-main .small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.or-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.or-price b { font-size: 17px; }
.member-grid { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.mnt-grid small, .due-chip { white-space: nowrap; }
.ha-tile > .ht-top .ht-toggle { position: absolute; right: 14px; bottom: 14px; }
.ha-tile.d-light.on.sz-m .ht-toggle, .ha-tile.d-light.on.sz-l .ht-toggle { bottom: auto; top: 16px; }

/* ---- Startseite ---- */
.start-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 1180px; align-items: start; }
.start-cell { min-width: 0; }
.start-cell.full { grid-column: 1 / -1; }
.start-cell.editing { outline: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 4px; border-radius: 16px; }
.start-tools { display: flex; align-items: center; gap: 2px; margin-bottom: 6px; }
.start-tools .st-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--muted); }
.start-edit-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 1180px; margin-bottom: 14px; }
.card.start-card { margin: 0; height: 100%; }
.sc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sc-head h3 { margin: 0; flex: 1; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.sc-emoji { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--panel2); font-size: 16px; }
.sc-count { font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.start-clock { padding: 6px; }
.start-tasks { display: flex; flex-direction: column; gap: 2px; }
.st-task { display: flex; align-items: center; gap: 10px; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.st-task:last-child { border-bottom: 0; }
.st-task a { flex: 1; min-width: 0; color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; font-size: 14px; }
.st-row:last-child { border-bottom: 0; }
.st-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-row small { flex-shrink: 0; }
.st-row.unread span { font-weight: 600; }
a.st-row:hover { background: var(--hover); border-radius: 8px; }
.st-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.st-stats a { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 12px; background: var(--panel2); color: inherit; text-decoration: none; }
.st-stats b { font-size: 24px; font-variant-numeric: tabular-nums; }
.st-stats span { font-size: 11.5px; color: var(--muted); text-align: center; }
.st-stats a.neg b { color: #e03131; }
.st-stats a.warn-text b { color: #f08c00; }
.st-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.st-links button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; background: var(--panel2); font-size: 13px; font-weight: 600; border: 1px solid var(--line); }
.st-links button span { font-size: 24px; }
.st-links button:hover { background: var(--hover); }
.st-add { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.st-add button { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--panel2); text-align: left; font-weight: 600; }
.st-add button span { font-size: 22px; }
.st-add button:hover { background: var(--hover); }
.start-note { white-space: pre-wrap; margin: 0; }
.start-ha { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); grid-auto-rows: minmax(110px, auto); }
@media (max-width: 760px) {
  .start-grid { grid-template-columns: 1fr; gap: 12px; }
  .start-ha { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-stats { grid-template-columns: repeat(2, 1fr); }
}
.start-grid .card { max-width: none; }
.card.start-card.start-clock { padding: 0; background: transparent; border: 0; box-shadow: none; }
.start-clock > * { margin: 0; height: 100%; }

/* ---- Dateirechte ---- */
.lvl-mini, .lvl-badge { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.lvl-badge { padding: 4px 10px; font-size: 12.5px; }
.l-none { background: color-mix(in srgb, #e03131 13%, transparent); color: #c92a2a; }
.l-read { background: color-mix(in srgb, #868e96 16%, transparent); color: var(--text2, var(--muted)); }
.l-upload { background: color-mix(in srgb, #1c7ed6 14%, transparent); color: #1971c2; }
.l-full { background: color-mix(in srgb, #2f9e44 15%, transparent); color: #2b8a3e; }
.btn.has-rules { box-shadow: inset 0 0 0 1.5px var(--accent); }
.f-lock { font-size: 12px; }
.acl-levels { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; margin: 6px 0 4px; }
.acl-inh { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.acl-rules { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.acl-rule { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; border: 1px solid var(--line); border-radius: 12px; }
.acl-who { flex: 1; min-width: 130px; font-weight: 600; }
.acl-add { width: 100%; }
.acl-eff { display: grid; grid-template-columns: 1fr; gap: 2px; max-height: 260px; overflow: auto; }
.acl-eff > div, .acl-ov-row { display: grid; grid-template-columns: 1fr auto minmax(0, 1.2fr); gap: 10px; align-items: center; padding: 4px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.acl-eff small, .acl-ov-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acl-overview { margin-top: 10px; display: flex; flex-direction: column; gap: 12px; }
.acl-ov-space > b { display: block; margin-bottom: 2px; }
.acl-ov-row a { color: inherit; }
@media (max-width: 640px) { .acl-eff > div, .acl-ov-row { grid-template-columns: 1fr auto; } }

/* ---- Sicherungen ---- */
.backup-list { display: flex; flex-direction: column; max-height: 320px; overflow: auto; }
.backup-row { display: grid; grid-template-columns: 150px 1fr auto 32px 32px 32px; gap: 8px; align-items: center; padding: 5px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.backup-row .b-kind { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) { .backup-row { grid-template-columns: 1fr auto 32px 32px 32px; } .backup-row .b-kind { display: none; } }

/* ==================== 1.14 ==================== */
/* ---- Startseite: Raster mit ¼ / ½ / ganzer Breite, Ziehen am Griff ---- */
.start-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.start-cell.sz-quarter { grid-column: span 1; }
.start-cell.sz-half { grid-column: span 2; }
.start-cell.sz-full { grid-column: 1 / -1; }
.start-cell.dragging { opacity: .55; transform: scale(.98); }
.st-grip { cursor: grab; touch-action: none; user-select: none; font-size: 18px; padding: 2px 8px; border-radius: 8px; color: var(--muted); background: var(--panel2); }
.st-grip:active { cursor: grabbing; }
.card.start-card { border-radius: 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--panel2) 55%, var(--panel)) 0%, var(--panel) 60%); }
.sc-emoji { background: color-mix(in srgb, var(--accent) 14%, var(--panel2)); }
.start-btn { width: 100%; min-height: 118px; margin: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; padding: 14px 16px; border-radius: 18px; text-align: left; cursor: pointer;
  background: linear-gradient(140deg, color-mix(in srgb, var(--bc, var(--accent)) 22%, var(--panel)) 0%, var(--panel) 85%); border: 1px solid color-mix(in srgb, var(--bc, var(--accent)) 35%, var(--line)); transition: transform .08s, box-shadow .15s; }
.start-btn:active:not(:disabled) { transform: scale(.97); }
.start-btn:hover:not(:disabled) { box-shadow: 0 6px 22px color-mix(in srgb, var(--bc, var(--accent)) 25%, transparent); }
.start-btn .sb-emoji { font-size: 30px; line-height: 1; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--bc, var(--accent)) 20%, transparent); }
.start-btn b { font-size: 16px; }
.start-btn small { font-size: 12px; color: var(--text2); }
.start-btn.on { background: linear-gradient(140deg, color-mix(in srgb, var(--bc) 45%, var(--panel)) 0%, color-mix(in srgb, var(--bc) 12%, var(--panel)) 100%); }
.start-btn.busy .sb-emoji { animation: pulse 1s infinite; }
.start-btn.na, .start-btn:disabled { opacity: .6; cursor: default; }
.start-btn.missing { border-style: dashed; background: var(--panel); }
@media (max-width: 760px) {
  .start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-cell.sz-half, .start-cell.sz-full { grid-column: 1 / -1; }
  .start-btn { min-height: 104px; }
}

/* ---- Avatare: Emojis füllen das Rund ---- */
.avatar.emo { font-weight: 400; letter-spacing: 0; line-height: 1; }
.emoji-pick.avatar-pick button { width: 40px; height: 40px; font-size: 24px; }

/* ---- Menü links konfigurieren ---- */
.menu-cfg { display: flex; flex-direction: column; gap: 2px; }
.menu-cfg-row { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 10px; background: var(--panel2); }
.menu-cfg-row.off { opacity: .55; }
.menu-cfg-row.drag { outline: 2px dashed var(--accent); }
.menu-cfg-row .member { width: auto; display: flex; align-items: center; gap: 8px; }
.mc-grip { cursor: grab; color: var(--muted); padding: 0 4px; }
.mc-ico { display: inline-grid; place-items: center; width: 22px; }

/* ---- Rechte-Zentrale ---- */
.rights-tabs { margin: 4px 0 12px; }
.rights-people { display: flex; flex-direction: column; gap: 4px; }
.rp-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--panel2); text-align: left; width: 100%; }
.rp-row:hover:not(:disabled) { background: var(--hover); }
.rp-row:disabled { opacity: .75; cursor: default; }
.rp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rp-main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-icon { font-size: 22px; width: 30px; text-align: center; }
.rp-sum { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; max-width: 45%; }
.rp-dot { font-size: 12px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--panel); }
.rp-dot.l-manage { background: color-mix(in srgb, #f59f00 25%, var(--panel)); }
.rights-group { margin: 14px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.right-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rr-label { display: flex; flex-direction: column; min-width: 150px; flex: 1; }
.rr-label small { font-size: 11.5px; }
.lvl-pick { display: inline-flex; gap: 2px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.lvl-pick button { min-width: 36px; padding: 5px 8px; border-radius: 8px; font-size: 13px; }
.lvl-pick button.def { font-size: 11.5px; color: var(--muted); }
.lvl-pick button.def small { font-size: 11px; }
.lvl-pick button.on { background: var(--panel); box-shadow: 0 1px 3px rgba(0,0,0,.15); color: var(--text); font-weight: 700; }
.lvl-pick button.on.l-none { color: #e03131; }
.lvl-pick button.on.l-manage { background: color-mix(in srgb, #f59f00 25%, var(--panel)); }
.lvl-pick button.on.l-write { background: color-mix(in srgb, #0ca678 20%, var(--panel)); }

/* ---- Lager: Gerätekarten ---- */
.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 12px; }
.dev-card { border-radius: 18px; padding: 14px; background: linear-gradient(160deg, color-mix(in srgb, var(--sc, #1c7ed6) 12%, var(--panel)) 0%, var(--panel) 70%); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s; }
.dev-card.on { border-color: color-mix(in srgb, #f59f00 55%, var(--line)); box-shadow: 0 4px 24px color-mix(in srgb, #f59f00 18%, transparent); }
.dev-card.warn { border-color: #e03131; }
.dev-card.na { opacity: .6; }
.dev-card.wide { grid-column: span 2; }
.dc-head { display: flex; align-items: center; gap: 10px; }
.dc-ico { font-size: 24px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--sc, #1c7ed6) 18%, var(--panel2)); }
.dev-card.on .dc-ico { background: color-mix(in srgb, #f59f00 30%, var(--panel2)); }
.dc-title { display: flex; flex-direction: column; min-width: 0; }
.dc-title b { font-size: 15.5px; }
.dc-title small { color: var(--text2); font-size: 12.5px; }
.dc-controls { display: flex; flex-direction: column; gap: 4px; }
.dc-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px; background: var(--panel2); min-height: 42px; }
.dc-row.click { cursor: pointer; }
.dc-row.click:active { transform: scale(.99); }
.dc-row.on { background: color-mix(in srgb, #f59f00 16%, var(--panel2)); }
.dc-r-ico { width: 22px; text-align: center; }
.dc-r-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.dc-row .ht-btns { margin: 0; display: flex; align-items: center; gap: 4px; }
.dc-row .ht-btns button { padding: 4px 10px; }
.dc-run { padding: 5px 12px; border-radius: 9px; background: color-mix(in srgb, var(--accent) 20%, var(--panel)); font-weight: 700; }
.ht-lockbtn.small { padding: 5px 10px; font-size: 13px; width: auto; margin: 0; }
.dc-values { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-val { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--panel2); font-size: 12.5px; color: var(--text2); }
.dc-val b { color: var(--text); font-variant-numeric: tabular-nums; }
.dc-val.warn { background: color-mix(in srgb, #e03131 18%, var(--panel2)); color: #e03131; }
.dc-val.active { background: color-mix(in srgb, #1c7ed6 18%, var(--panel2)); }
.dc-edit-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.dc-edit { border: 1px dashed var(--line); border-radius: 12px; padding: 8px; }
.chip-btn.primary { background: color-mix(in srgb, var(--accent) 16%, var(--panel2)); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
@media (max-width: 760px) { .dev-grid { grid-template-columns: 1fr; } .dev-card.wide { grid-column: auto; } }
.dc-row .ht-toggle.on { background: #f59f00; }
.start-cell .start-clock > * { max-width: none; }
.rp-dot { width: 24px; height: 24px; font-size: 13px; border: 1px solid transparent; }
.rp-dot.l-read { background: color-mix(in srgb, #1c7ed6 16%, var(--panel)); }
.rp-dot.l-write { background: color-mix(in srgb, #0ca678 16%, var(--panel)); }
.rp-dot.l-manage { background: color-mix(in srgb, #f59f00 30%, var(--panel)); }
.rp-dot.custom { border-color: var(--accent); }
.rp-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.rp-legend span { display: inline-flex; align-items: center; gap: 4px; }
.rp-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.lvl-pick button:not(.on) { background: transparent; }
.start-tools { flex-wrap: wrap; }
.start-cell.sz-quarter .st-name { display: none; }
.start-cell.sz-quarter .start-tools { justify-content: space-between; }
.start-tools .icon-btn.small { font-weight: 700; font-size: 12px; }
/* ---- Heute packen ---- */
.pack-list { display: flex; flex-direction: column; gap: 6px; }
.pack-item { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--panel2); border-left: 4px solid #1c7ed6; }
.pack-item.late { border-left-color: #e03131; }
.pi-time { font-size: 12.5px; font-weight: 700; min-width: 70px; color: var(--text2); }
.pack-item.late .pi-time { color: #e03131; }
.pi-main { display: flex; flex-direction: column; min-width: 0; }
.pi-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pack-hint { margin: 8px 0 0; }
.pack-done { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.pack-done > span { font-size: 24px; }
.pack-done > div { flex: 1; display: flex; flex-direction: column; }
/* ---- Batterie-Wächter ---- */
.bat-head { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.bat-list { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; max-height: 340px; overflow: auto; }
.bat-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 10px; background: var(--panel2); font-size: 13.5px; }
.bat-row.ign { opacity: .5; }
.bat-bar { width: 34px; height: 14px; border: 2px solid var(--text2); border-radius: 4px; padding: 1px; position: relative; flex: none; }
.bat-bar::after { content: ''; position: absolute; right: -5px; top: 3px; width: 3px; height: 4px; background: var(--text2); border-radius: 0 2px 2px 0; }
.bat-bar i { display: block; height: 100%; background: #0ca678; border-radius: 2px; }
.bat-row.low .bat-bar i { background: #e03131; }
.bat-row.low .bat-val { color: #e03131; }
.bat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bat-val { font-variant-numeric: tabular-nums; }
/* ---- Touren & Was ist neu ---- */
.help-btn { font-weight: 800; font-size: 16px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); color: var(--accent); }
.help-btn.idle { color: var(--muted); }
.tour { position: fixed; inset: 0; z-index: 3000; }
.tour-dim { position: absolute; inset: 0; background: rgba(10, 10, 14, .55); }
.tour-hole { position: absolute; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(10, 10, 14, .55); outline: 3px solid var(--accent); transition: all .2s; pointer-events: none; }
.tour-card { position: absolute; background: var(--panel); border-radius: 16px; padding: 14px 16px 12px; box-shadow: 0 12px 40px rgba(0,0,0,.35); animation: tourIn .18s ease-out; }
.tour-card b { font-size: 16px; }
.tour-card p { margin: 6px 0 10px; color: var(--text2); line-height: 1.45; }
.tour-foot { display: flex; align-items: center; gap: 6px; }
.tour-dots { flex: 1; display: flex; gap: 4px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.tour-dots i.on { background: var(--accent); width: 16px; border-radius: 3px; }
@keyframes tourIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.news { max-width: 460px; }
.news-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 6px; }
.news-head > span { font-size: 28px; }
.news-head > div { flex: 1; }
.news-head h3 { margin: 0; }
.news-body { padding: 6px 16px; max-height: 60vh; overflow: auto; }
.news-ver { padding: 10px 0; border-bottom: 1px solid var(--line); }
.news-ver:last-child { border-bottom: 0; }
.nv-head { display: flex; justify-content: space-between; align-items: baseline; }
.news-ver ul { margin: 6px 0 0; padding-left: 18px; }
.news-ver li { margin: 4px 0; line-height: 1.4; }
.news-foot { padding: 10px 16px 16px; display: flex; justify-content: flex-end; }
.app-ver.link-btn { padding: 0; font: inherit; color: inherit; text-decoration: underline dotted; }
/* ---- Fenster passen immer auf den Bildschirm (Handy) ---- */
.modal-bg { grid-template-columns: minmax(0, 1fr); }
.modal { min-width: 0; max-width: 100%; justify-self: center; }
.modal-body { overflow-x: hidden; overflow-wrap: anywhere; }
.modal-body pre, .modal-body code { white-space: pre-wrap; word-break: break-all; }
.modal-body input, .modal-body select, .modal-body textarea { max-width: 100%; min-width: 0; }
.modal-body .form-row > input, .modal-body .form-row > select { flex: 1 1 160px; }
.modal-head h3 { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .modal-bg { padding: 8px; }
  .modal { max-height: calc(100dvh - 16px); }
  .modal-body { padding: 8px 14px 14px; }
  .modal-head { padding: 12px 10px 4px 14px; }
  .modal-foot { padding: 10px 14px; flex-wrap: wrap; }
}
.ap-row input { min-width: 0; } .ap-row > * { flex-shrink: 1; } .ap-row .btn { flex: none; }
.form-row > div { min-width: 0; }
@media (max-width: 600px) { .modal-body .form-row > div[style*="flex:1"] { flex: 1 1 220px !important; } }
/* ---- Geräte-Bibliothek ---- */
.dev-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.dev-search { flex: 1 1 220px; min-width: 0; padding: 10px 12px; border-radius: 12px; font-size: 15px; }
.dev-auto { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.dev-auto span { flex: 1 1 220px; }
.dev-list { display: flex; flex-direction: column; gap: 4px; }
.dev-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.dev-row:hover { background: var(--hover); }
.dr-ico { font-size: 22px; width: 32px; text-align: center; flex: none; }
.dr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dr-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; flex: none; max-width: 45%; }
.chip { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--panel2); white-space: nowrap; }
.chip.ok { background: color-mix(in srgb, #7048e8 18%, var(--panel2)); color: #7048e8; font-weight: 700; }
.chip.warn { background: color-mix(in srgb, #e8590c 18%, var(--panel2)); }
.dev-page .card { margin-bottom: 12px; }
.dev-sugg { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.ds-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--panel2); }
.ds-row > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.btn-row.wrap { flex-wrap: wrap; }
.seg.wrap { flex-wrap: wrap; }
.seg button small { opacity: .7; font-size: 11px; }
.dmx-edit { display: flex; gap: 2px; }
.dmx-sum { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dmx-ch { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 3px; margin: 8px 0; max-height: 320px; overflow: auto; }
.dmx-ch > div { display: flex; gap: 8px; font-size: 13px; padding: 4px 8px; border-radius: 8px; background: var(--panel2); min-width: 0; }
.dmx-ch span { font-weight: 700; color: var(--muted); min-width: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.addr-calc { margin-top: 12px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, #7048e8 7%, var(--panel2)); }
.addr-calc h4 { margin: 0 0 8px; }
.ac-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ac-inputs label { display: flex; flex-direction: column; font-size: 12px; color: var(--text2); gap: 3px; }
.ac-inputs input { width: 100%; font-size: 17px; font-weight: 700; text-align: center; padding: 8px 4px; }
.ac-sum { margin: 10px 0 6px; font-size: 13.5px; }
.ac-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px; max-height: 360px; overflow: auto; }
.ac-row { display: flex; align-items: baseline; gap: 6px; padding: 6px 8px; border-radius: 9px; background: var(--panel); flex-wrap: wrap; }
.ac-row b { font-size: 16px; font-variant-numeric: tabular-nums; }
.ac-i { font-size: 12px; color: var(--muted); min-width: 26px; }
.ac-dip { width: 100%; color: #7048e8; }
.own-mode { border: 1px dashed var(--line); border-radius: 12px; padding: 8px; margin-bottom: 8px; }
.own-mode textarea { width: 100%; }
.doc-group { display: flex; flex-direction: column; gap: 3px; margin: 8px 0; }
.doc-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--panel2); }
.doc-row a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; }
.online-search { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.dev-serials { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.dev-credit { margin: 4px 4px 20px; }
.pre-wrap { white-space: pre-wrap; }
.search-sec { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.search-h { display: block; margin: 6px 2px; }
/* ---- Werkzeuge ---- */
.tools-view { padding: 0 !important; display: flex; flex-direction: column; }
.tools-view > .view-head { flex: none; margin-bottom: 0; }
.tools-view .vh-actions .icon-btn { font-size: 17px; }
.tools-view .vh-actions .icon-btn.active { background: var(--accent-soft, rgba(232,89,12,.15)); }
.tools-frame { flex: 1; width: 100%; height: 100%; border: 0; background: var(--bg); }
@media (max-width: 600px) { .ac-inputs input { font-size: 16px; } .dr-badges { max-width: 40%; } }
/* ---- Lager 1.17: ein gemeinsames Raster für Gerätekarten und Kacheln, ruhigere Optik ---- */
.home-view .task-scroll.pad { max-width: 1240px; }
.lager-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); grid-auto-rows: minmax(120px, auto); }
.lager-grid > .dev-card { grid-column: span 2; }
.lager-grid > .dev-card.wide { grid-column: span 4; }
.ha-section { margin-bottom: 26px; }
.ha-sec-head { padding-bottom: 8px; border-bottom: 2px solid color-mix(in srgb, var(--sc, #1c7ed6) 22%, transparent); margin-bottom: 14px; }
.ha-sec-ico { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--sc, #1c7ed6) 16%, var(--panel2)); font-size: 18px; }
.ha-summary { gap: 10px; margin-bottom: 20px; }
.ha-pill { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; font-size: 14px; border-radius: 14px; }
.ha-pill small { font-weight: 500; color: var(--text2); font-size: 12px; }
.ha-pill.temp { background: color-mix(in srgb, #1c7ed6 10%, var(--panel)); font-size: 15px; }
.dev-card { border-radius: 22px; padding: 16px; gap: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); background: linear-gradient(160deg, color-mix(in srgb, var(--sc, #1c7ed6) 10%, var(--panel)) 0%, var(--panel) 55%); }
.dev-card.on { background: linear-gradient(160deg, color-mix(in srgb, #fab005 16%, var(--panel)) 0%, var(--panel) 60%); }
.dc-ico { width: 46px; height: 46px; border-radius: 15px; font-size: 24px; }
.dc-title b { font-size: 16px; }
.dc-row { min-height: 46px; border-radius: 14px; padding: 8px 12px; background: color-mix(in srgb, var(--panel2) 85%, transparent); transition: background .15s; }
.dc-row.click:hover { background: var(--hover); }
.dc-row.on { background: color-mix(in srgb, #fab005 22%, var(--panel2)); }
.dc-row .ht-btns button { width: 36px; height: 32px; padding: 0; border-radius: 10px; }
.dc-val { padding: 5px 11px; font-size: 12.5px; }
.ha-tile { border-radius: 22px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
:root[data-theme='dark'] .dev-card, :root[data-theme='dark'] .ha-tile { box-shadow: none; }
@media (max-width: 760px) {
  .lager-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(108px, auto); }
  .lager-grid > .dev-card, .lager-grid > .dev-card.wide { grid-column: 1 / -1; }
  .ha-pill { padding: 8px 12px; font-size: 13px; }
}
.online-search a.chip-btn { text-decoration: none; }
.dev-page textarea { width: 100%; }
.vh-title { min-width: 0; }
.vh-title > div { min-width: 0; }
.vh-title h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vh-title .vh-sub { overflow-wrap: anywhere; }
/* ---- Angeheftete Datei & PDF-Anzeige ---- */
.file-pin { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--panel2); border-radius: 12px; overflow: hidden; cursor: zoom-in; text-align: left; }
.file-pin img { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: #fff; }
.file-pin .pdf-page { background: #fff; }
.file-pin-full { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 16px; }
.file-pin-other { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; }
.file-pin-other span { font-size: 34px; }
.pdf-page { width: 100%; min-height: 60px; position: relative; background: #fff; }
.pdf-holder { width: 100%; display: flex; justify-content: center; }
.pdf-page .pdf-loading { position: absolute; inset: 0; display: grid; place-items: center; }
.pdf-page canvas { display: block; width: 100%; height: auto; background: #fff; }
.pdf-loading { padding: 30px; color: var(--muted); font-size: 13px; }
.preview-pdf { width: min(900px, 100%); max-height: 100%; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.pdfv { position: fixed; inset: 0; z-index: 300; background: #0f0c0a; display: flex; flex-direction: column; }
.pdfv-head { display: flex; align-items: center; gap: 6px; padding: calc(8px + var(--safe-t)) 10px 8px 16px; color: #fff; }
.pdfv-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pdfv-head .icon-btn { color: #fff; font-size: 20px; font-weight: 700; }
.pdfv-zoom { min-width: 54px; text-align: center; opacity: .85; background: none; border: 0; color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.pdfv-body { touch-action: pan-x pan-y; overscroll-behavior: contain; }
.pdfv-body { flex: 1; overflow: auto; padding: 8px; -webkit-overflow-scrolling: touch; }
.pdfv-pages { margin: 0 auto; display: flex; flex-direction: column; gap: 10px; max-width: none; min-width: 0; will-change: transform; }
@media (min-width: 900px) { .pdfv-body { padding: 16px max(16px, calc((100% - 900px) / 2)); } .pdfv-pages { margin: 0; } }
/* ---- Geräte: Bilder, Symbole, Zuletzt/Beliebt ---- */
.dev-thumb { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: color-mix(in srgb, var(--tc, #8a7e74) 14%, transparent); color: var(--tc, #8a7e74); }
.dev-thumb.g-l { --tc: #ff7a1a; } .dev-thumb.g-a { --tc: #4c9be8; } .dev-thumb.g-f { --tc: #20a39e; } .dev-thumb.g-c { --tc: #9b6cf0; }
.dev-thumb.has-img { background: #fff; }
.dev-thumb img { width: 100%; height: 100%; object-fit: contain; }
.dev-thumb.big { width: 112px; height: 112px; border-radius: 20px; }
.dev-row .dev-thumb { margin-right: 2px; }
.dev-recentq { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dev-strip { margin: 4px 0 14px; }
.dev-tiles { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 4px; scrollbar-width: none; }
.dev-tiles::-webkit-scrollbar { display: none; }
.dev-tile { flex: none; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; color: var(--text); }
.dev-tile .dev-thumb { width: 64px; height: 64px; border-radius: 16px; }
.dev-tile span { font-size: 12px; line-height: 1.2; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; width: 100%; }
.dev-group { margin-bottom: 12px; }
.dev-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.dev-hero-img { position: relative; padding: 0; border: 0; background: none; cursor: pointer; }
.dev-hero-img:disabled { cursor: default; }
.dev-hero-cam { position: absolute; right: -4px; bottom: -4px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); font-size: 14px; }
.dev-hero-info { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.dmx-warn { background: color-mix(in srgb, #f59f00 14%, transparent); border: 1px solid color-mix(in srgb, #f59f00 45%, transparent); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 10px; }
.dmx-warn .btn-row { margin-top: 8px; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin: 8px 0; }
.img-grid button { aspect-ratio: 1; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; overflow: hidden; }
.img-grid button:hover { border-color: var(--accent); }
.img-grid img { width: 100%; height: 100%; object-fit: contain; }
.doc-open { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-align: left; font: inherit; }
.choose-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; } .choose-list .btn { justify-content: center; }
/* ---- Fahrzeuge: Zeichnung + Fahrzeugschein ---- */
.veh-art { display: inline-flex; line-height: 0; }
.veh-art svg { display: block; }
.vh-art-btn { background: none; border: 0; padding: 0; cursor: pointer; line-height: 0; }
.zb-scan { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; margin-bottom: 12px; border: 1px dashed var(--line); border-radius: 12px; }
.zb-scan label.btn { cursor: pointer; }
.zb-found { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.zb-found .btn-row { margin-top: 6px; }
.search-box { display: flex; align-items: center; gap: 8px; padding: 0 12px; margin-bottom: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); } .search-box input { flex: 1; min-width: 0; border: 0; background: none; padding: 13px 0; font-size: 16px; color: var(--text); outline: none; } .search-box:focus-within { border-color: var(--accent); }
.att-img-btn, .pdf-open-btn { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; text-align: left; }
button.att-file { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; text-align: left; }
button.ft-thumb { border: 0; cursor: zoom-in; }
.trash-btn { position: relative; gap: 6px; }
.trash-btn.on { border-color: var(--accent); color: var(--accent); }
.trash-btn .badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger, #e03131); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
.trash-list .group-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.beta-grp { margin-top: 12px; }
.beta-grp .group-head { display: flex; align-items: center; gap: 8px; }
.beta-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.beta-row .switch-row { flex: 1; display: flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0; }
.beta-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.lib-mod { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.pw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pw-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.in-unit { display: flex; align-items: center; gap: 6px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; }
.in-unit input { flex: 1; min-width: 0; border: 0 !important; background: none !important; padding: 10px 0; font-size: 15px; color: var(--text); outline: none; }
.in-unit:focus-within { border-color: var(--accent); }
.dmx-prop { background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 10px; }
.dmx-prop .btn-row { margin-top: 8px; }
.find-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.find-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); text-align: left; cursor: pointer; color: var(--text); font: inherit; }
.find-row:hover { border-color: var(--accent); }
.find-row .f-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.find-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ---- Home Assistant 2.0: Lampenfarbe, Symbol = Schalter, Detailfenster ---- */
.ha-tile.d-light.on { --lcx: var(--lc, #ffd43b); background: linear-gradient(150deg, color-mix(in srgb, var(--lcx) 30%, var(--panel)), var(--panel) 75%); border-color: color-mix(in srgb, var(--lcx) 50%, transparent); }
.ha-tile.d-light.on .ht-ico { background: var(--lcx); box-shadow: 0 0 18px 2px color-mix(in srgb, var(--lcx) 70%, transparent); }
.ht-ico.btn-ico { border: 0; cursor: pointer; color: inherit; font: inherit; font-size: 20px; padding: 0; outline-offset: 2px; }
.ht-ico.btn-ico:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc) 35%, transparent); }
.ht-ico.btn-ico:active { transform: scale(.9); }
.ht-more { margin-left: auto; color: var(--muted); font-size: 20px; line-height: 1; padding-left: 4px; }
.ht-range { accent-color: var(--lc, var(--accent)); }
.dc-r-ico { transition: filter .2s; }
.dc-row.on .dc-r-ico[style] { filter: drop-shadow(0 0 6px var(--lc)); }
.dc-r-name small { color: var(--muted); font-weight: 400; }
.dc-more { border: 0; background: none; color: var(--muted); font-size: 20px; padding: 0 2px 0 6px; cursor: pointer; line-height: 1; }
.dc-more:hover { color: var(--accent); }
.dc-val.click { cursor: pointer; }
.mi { display: flex; flex-direction: column; gap: 14px; }
.mi-main { display: flex; gap: 22px; align-items: center; justify-content: center; padding: 6px 0; flex-wrap: wrap; }
.mi-main.center { flex-direction: column; }
.mi-side { display: flex; flex-direction: column; gap: 8px; min-width: 180px; flex: 1; max-width: 300px; }
.mi-lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }
.vs-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vslider { --p: 50%; position: relative; width: 96px; height: 260px; border-radius: 28px; background: var(--panel2); border: 1px solid var(--line); overflow: hidden; cursor: ns-resize; touch-action: none; outline: none; }
.vslider:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 45%, transparent); }
.vslider i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--p); background: var(--c); transition: height .12s; }
.vslider i::after { content: ''; position: absolute; left: 50%; top: 10px; width: 28px; height: 4px; margin-left: -14px; border-radius: 2px; background: rgba(0,0,0,.25); }
.vslider.off i { height: 0; }
.vs-val { font-size: 20px; font-weight: 700; }
.mi-bigtoggle { width: 110px; height: 190px; border-radius: 30px; border: 1px solid var(--line); background: var(--panel2); position: relative; cursor: pointer; }
.mi-bigtoggle i { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 80px; border-radius: 22px; background: var(--muted); opacity: .5; transition: all .2s; }
.mi-bigtoggle.on { background: color-mix(in srgb, var(--c, var(--accent)) 25%, var(--panel2)); }
.mi-bigtoggle.on i { bottom: 100px; background: var(--c, var(--accent)); opacity: 1; }
.mi-power { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.mi-power.on { background: color-mix(in srgb, var(--accent) 16%, var(--panel2)); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.hs-row { display: flex; align-items: center; gap: 10px; }
.hs-row b { min-width: 64px; text-align: right; font-size: 13px; }
.hslider { flex: 1; accent-color: var(--accent); }
.hslider.ct { -webkit-appearance: none; appearance: none; height: 14px; border-radius: 7px; background: linear-gradient(90deg, #ffb46b, #fff4e5, #cfe3ff); }
.hslider.ct::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--text); }
.mi-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 8px; }
.mi-swatches button, .mi-pick { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.mi-pick { display: grid; place-items: center; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); font-size: 13px; position: relative; overflow: hidden; }
.mi-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mi-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.mi-side .mi-chips { justify-content: flex-start; }
.mi-chips button { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.mi-chips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.mi-chips button.danger { color: var(--danger, #e03131); }
.mi-state-big { font-size: 26px; font-weight: 700; text-align: center; }
.mi-state-big small { font-size: 15px; font-weight: 500; color: var(--muted); }
.mi-state-big.active { color: #339af0; } .mi-state-big.alarm { color: var(--danger, #e03131); }
.mi-cover { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mi-cover button { padding: 12px 0 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 20px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mi-cover small { font-size: 11px; color: var(--muted); }
.mi-lock { width: 170px; height: 170px; border-radius: 50%; border: 0; cursor: pointer; background: color-mix(in srgb, #2f9e44 18%, var(--panel2)); color: var(--text); font: inherit; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.mi-lock span { font-size: 46px; }
.mi-lock.open { background: color-mix(in srgb, #ff922b 30%, var(--panel2)); }
.mi-run { padding: 18px 34px; border-radius: 18px; border: 0; background: var(--accent); color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.mi-climate { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mi-thermo { width: 170px; height: 170px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle, var(--panel) 58%, transparent 59%), conic-gradient(#4dabf7, #ffd43b, #ff6b6b, #4dabf7); }
.mi-thermo.heating { box-shadow: 0 0 30px -4px #ff6b6b; }
.mi-thermo b { font-size: 40px; line-height: 1; } .mi-thermo b i { font-size: 16px; font-style: normal; color: var(--muted); }
.mi-thermo small { color: var(--muted); font-size: 12px; }
.mi-target { display: flex; align-items: center; gap: 16px; }
.mi-target > div { display: flex; flex-direction: column; align-items: center; } .mi-target small { color: var(--muted); font-size: 12px; } .mi-target b { font-size: 22px; }
.mi-target button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 22px; cursor: pointer; }
.mi-media { display: flex; flex-direction: column; gap: 10px; }
.mi-now { text-align: center; display: flex; flex-direction: column; gap: 2px; font-size: 17px; }
.mi-transport { display: flex; justify-content: center; gap: 14px; }
.mi-transport button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 20px; cursor: pointer; }
.mi-transport button.big { width: 64px; height: 64px; background: var(--accent); color: #fff; border: 0; font-size: 24px; }
.mi-vol { display: flex; align-items: center; gap: 6px; } .mi-vol .hs-row { flex: 1; }
.mi-sensor { text-align: center; padding: 6px 0; }
.mi-hist { border-top: 1px solid var(--line); padding-top: 12px; }
.mi-hist-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mi-range { display: flex; gap: 4px; }
.mi-range button { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 12px; cursor: pointer; }
.mi-range button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.mi-chart svg { width: 100%; height: 150px; display: block; }
.mi-chart polyline { stroke: var(--accent); stroke-width: 2; }
.mi-chart polygon.area { fill: color-mix(in srgb, var(--accent) 18%, transparent); }
.mi-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.mi-stats { display: flex; gap: 14px; justify-content: center; font-size: 13px; margin-top: 6px; }
.mi-log { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; }
.mi-log div { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mi-log .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; } .mi-log .dot.on { background: var(--accent); }
.mi-log small { margin-left: auto; }
.mi-foot { text-align: center; }
.ht-cam.big { width: 100%; border-radius: 12px; }
.dev-assist { display: flex; flex-direction: column; gap: 8px; }
.da-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; }
.da-row span { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.da-row small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-actions { margin: 4px 0 8px; }
.doc-row .doc-open { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-page, .dev-page .card { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.dev-page select, .dev-page input { max-width: 100%; min-width: 0; }
.dev-page .form-row { flex-wrap: wrap; }
.dev-page .form-row > select { flex: 1 1 160px; }
.dev-hero-info { flex: 1; }
.find-row.weak { opacity: .6; }
.find-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.find-flags .chip { font-size: 11px; padding: 1px 7px; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.lib-mod > div { min-width: 0; }
.pw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pw-grid label, .in-unit { min-width: 0; }
.in-unit input { width: 100%; }


/* Fahrzeugschein-Platz */
.zb-slot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); flex-wrap: wrap; }
.zb-slot .zb-ico { font-size: 26px; }
.zb-slot .zb-main { flex: 1; min-width: 160px; display: flex; flex-direction: column; overflow-wrap: anywhere; }
