/* Kleiderkammer-Portal – Feuerwehr-Rot #af0000 */
:root {
  --red: #af0000; --red-d: #8c0000; --red-dd: #6e0000; --red-l: #fbeaea; --red-ll: #fdf4f4;
  --ink: #1d1b1b; --ink2: #4a4545; --mute: #7b7474; --line: #e9e4e2; --line2: #f2eeec;
  --bg: #f6f3f1; --card: #fff;
  --ok: #1f7a3a; --ok-l: #e6f4ea; --warn: #8a6100; --yel: #ffd43b; --yel-l: #fff6cc; --yel-b: #f0c419;
  --leer: #d61f1f; --leer-l: #ffe3e3; --info: #1c64b0; --info-l: #e6f0fb;
  --r: 12px; --r-s: 8px;
  --sh: 0 1px 2px rgba(60, 20, 20, .06), 0 2px 10px rgba(60, 20, 20, .04);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --side: 248px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.45 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--red); text-decoration: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.muted { color: var(--mute); } .small { font-size: 13px; } .block { display: block; } .center { text-align: center; } .nowrap { white-space: nowrap; } .grow { flex: 1; min-width: 0; }
[hidden] { display: none !important; }

/* ---------- Buttons & Felder ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: var(--r-s); border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 14px var(--font); cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, transform .05s; }
.btn:hover { background: var(--line2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-d); }
.btn.danger { background: var(--leer); border-color: var(--leer); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--line2); }
.btn.danger-t { color: var(--leer); }
.btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn.sm svg { width: 16px; height: 16px; }
.btn.big { height: 46px; font-size: 15px; padding: 0 18px; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--ink2); cursor: pointer; }
.icon-btn:hover { background: var(--line2); color: var(--ink); }
.linkish { background: none; border: 0; padding: 0; color: var(--red); font: 600 14px var(--font); cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.in { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; color: var(--ink); font: 15px var(--font); outline: none; transition: border-color .12s, box-shadow .12s; }
textarea.in { height: auto; padding: 9px 12px; resize: vertical; line-height: 1.45; }
select.in { appearance: none; padding-right: 32px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b7474' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center / 16px; }
.in:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(175, 0, 0, .12); }
.in:disabled { background: var(--line2); color: var(--mute); }
.in.sm { height: 32px; font-size: 13px; }
.in.big { height: 52px; font-size: 22px; letter-spacing: .2em; }
.in.center { text-align: center; }
.f { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); }
.f > :not(span.muted) { margin-top: 5px; }
.f > small { display: block; }
.f > small, .f small { font-weight: 400; color: var(--mute); font-size: 12px; }
.f .muted { font-weight: 400; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.form { display: flex; flex-direction: column; gap: 14px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.searchbox { position: relative; }
.searchbox svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--mute); }
.searchbox .in { padding-left: 38px; }
.searchbox.big .in { height: 46px; }

/* ---------- Pillen & Zustände ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--line2); color: var(--ink2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill svg { width: 13px; height: 13px; }
.pill.ok, .pill.k-ok, .pill.st-ok { background: var(--ok-l); color: var(--ok); }
.pill.warn { background: var(--yel-l); color: var(--warn); }
.pill.bad, .pill.k-bad { background: var(--leer-l); color: var(--leer); }
.pill.info, .pill.k-info { background: var(--info-l); color: var(--info); }
.pill.k-out { background: var(--red-l); color: var(--red); }
.pill.soft { background: transparent; color: var(--mute); border: 1px solid var(--line); }
.pill.st-knapp { background: var(--yel); color: #4d3800; }
.pill.st-leer { background: var(--leer); color: #fff; }
.delta { font-variant-numeric: tabular-nums; }
.delta.pos { color: var(--ok); } .delta.neg { color: var(--red); }

/* ---------- Anmeldung ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 44%) 1fr; }
.auth-art { position: relative; overflow: hidden; background: var(--red); color: #fff; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.auth-art .mark { width: 64px; height: 64px; border-radius: 18px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; margin-bottom: 22px; }
.auth-art .mark svg { width: 36px; height: 36px; stroke-width: 1.6; }
.auth-art h2 { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.auth-art .org { margin: 4px 0 28px; opacity: .8; font-size: 17px; }
.auth-art ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.auth-art li { display: flex; gap: 12px; align-items: center; font-size: 16px; }
.auth-art li svg { opacity: .85; }
.stripes { position: absolute; left: -10%; right: -10%; bottom: 40px; height: 54px; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .95) 0 26px, transparent 26px 52px); opacity: .14; transform: rotate(-4deg); }
.auth-form { display: grid; place-items: center; padding: 32px 20px; }
.box2 { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.box2 h1 { font-size: 28px; }
.box2 > p { margin: -6px 0 6px; }
.box2 .linkish { align-self: flex-start; }

/* ---------- Rahmen ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--red); color: #fff; display: flex; flex-direction: column; padding: 16px 12px 12px; gap: 6px; }
.side::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(-45deg, #fff 0 10px, var(--red-d) 10px 20px); opacity: .5; pointer-events: none; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; padding: 4px 8px 14px; }
.brand .mark { width: 40px; height: 40px; border-radius: 11px; background: #fff; color: var(--red); display: grid; place-items: center; }
.brand .mark svg { width: 24px; height: 24px; stroke-width: 1.9; }
.brand b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.brand small { display: block; font-size: 12px; opacity: .78; line-height: 1.25; }
.scanbtn { display: flex; align-items: center; justify-content: center; gap: 9px; height: 44px; margin: 0 4px 10px; border-radius: 10px; background: #fff; color: var(--red); font-weight: 800; letter-spacing: .01em; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.scanbtn:hover { background: var(--red-ll); }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav h6 { margin: 14px 10px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .6; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; color: rgba(255, 255, 255, .9); font-weight: 600; font-size: 14.5px; }
.nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a.on { background: #fff; color: var(--red); }
.nav a span:first-of-type { flex: 1; }
.badge { min-width: 21px; height: 21px; padding: 0 6px; border-radius: 99px; background: rgba(255, 255, 255, .22); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.badge.bad { background: var(--yel); color: #4d3800; }
.nav a.on .badge { background: var(--red); color: #fff; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px 6px 12px; margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, .18); }
.me > div { flex: 1; min-width: 0; }
.me b, .me span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me b { font-size: 14px; } .me div span { font-size: 12px; opacity: .75; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.me .avatar { display: grid; }
.me button { background: none; border: 0; color: #fff; opacity: .75; cursor: pointer; padding: 6px; border-radius: 8px; }
.me button:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 18px 28px; background: rgba(246, 243, 241, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top .tt { flex: 1; min-width: 0; }
.top h1 { font-size: 24px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .sub { color: var(--mute); font-size: 13.5px; margin-top: 2px; }
.top .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.back { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.menu-btn { display: none; }
.page { padding: 4px 28px 40px; display: flex; flex-direction: column; gap: 18px; max-width: 1400px; width: 100%; }
.tabbar { display: none; }
.skeleton { padding: 40px; text-align: center; color: var(--mute); }

/* ---------- Karten & Raster ---------- */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); border: 1px solid var(--line); min-width: 0; }
.card > header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line2); }
.card > header h2 { font-size: 16px; font-weight: 700; }
.card > header .hint { color: var(--mute); font-size: 13px; }
.card > header .tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.card > header.sep { border-top: 1px solid var(--line2); }
.card .body { padding: 16px 18px; }
.card .flush { overflow: hidden; border-radius: 0 0 var(--r) var(--r); }
.grid { display: grid; gap: 18px; }
.grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.g-main { grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); align-items: start; }
.grid.tight { gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.list { display: flex; flex-direction: column; gap: 2px; }
.list .row, .row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; color: var(--ink); }
a.row:hover { background: var(--line2); }
.dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.num { font-variant-numeric: tabular-nums; min-width: 36px; text-align: right; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 30px 16px; color: var(--mute); }
.empty svg { width: 34px; height: 34px; color: #cfc6c3; margin-bottom: 4px; }
.empty b { color: var(--ink); font-size: 15px; }
.empty span { max-width: 440px; font-size: 14px; }
.empty .btn { margin-top: 10px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; font-size: 14px; background: var(--line2); }
.note.info { background: var(--info-l); color: #164f8a; }
.note.ok { background: var(--ok-l); color: var(--ok); font-weight: 600; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs a { flex: none; padding: 7px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink2); font-weight: 600; font-size: 14px; }
.tabs a.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Kennzahlen ---------- */
.kpis { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh); color: var(--ink); display: flex; flex-direction: column; }
.kpi span { font-size: 13px; font-weight: 600; color: var(--mute); }
.kpi b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--mute); font-size: 12.5px; }
.kpi.hero { background: var(--red); border-color: var(--red); color: #fff; position: relative; overflow: hidden; }
.kpi.hero::after { content: ""; position: absolute; right: -30px; bottom: 14px; width: 200px; height: 26px; background: repeating-linear-gradient(-45deg, #fff 0 12px, transparent 12px 24px); opacity: .16; }
.kpi.hero span, .kpi.hero small { color: rgba(255, 255, 255, .82); }
.kpi.red { border-color: #f3b4b4; } .kpi.red b { color: var(--leer); }
.kpi.yellow { border-color: var(--yel-b); background: var(--yel-l); } .kpi.yellow b { color: #7a5a00; }
a.kpi:hover { border-color: #d8cfcc; }

/* ---------- Größen-Spalten ---------- */
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.sz { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 4px 8px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: var(--font); color: var(--ink); transition: transform .08s, box-shadow .12s; }
.sz:hover { box-shadow: 0 3px 10px rgba(0, 0, 0, .08); transform: translateY(-1px); }
.sz .szl { font-size: 12.5px; font-weight: 700; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sz b { font-size: 24px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.sz small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); font-weight: 600; }
.sz.st-ok { background: #fff; }
.sz.st-knapp { background: var(--yel); border-color: var(--yel-b); }
.sz.st-knapp small, .sz.st-knapp .szl { color: #5a4300; }
.sz.st-leer { background: var(--leer); border-color: var(--leer); color: #fff; }
.sz.st-leer small, .sz.st-leer .szl { color: rgba(255, 255, 255, .88); }
.sizes.sm { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.sizes.sm .sz { padding: 6px 2px 5px; }
.sizes.sm .sz b { font-size: 18px; }
.sizes.sm .sz small { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--mute); padding: 2px 4px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); }
.legend i.st-knapp { background: var(--yel); border-color: var(--yel-b); }
.legend i.st-leer { background: var(--leer); border-color: var(--leer); }
#low { display: flex; flex-direction: column; gap: 16px; }
.lowcat { display: flex; flex-direction: column; gap: 10px; }
.lowhead { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 14.5px; }
.lowhead i { width: 10px; height: 10px; border-radius: 3px; }
.lowhead svg { width: 15px; height: 15px; color: var(--mute); }
.lowart { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 12px; align-items: center; padding-left: 18px; }
.lowart > span { font-size: 14px; color: var(--ink2); }
.flowmini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.flowmini a { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 10px; background: var(--line2); color: var(--mute); }
.flowmini a.has { background: var(--red-l); color: var(--red); }
.flowmini b { font-size: 22px; font-weight: 800; }
.flowmini span { font-size: 11.5px; font-weight: 600; text-align: center; }

/* Ansicht umschalten und Listenform */
.viewbar { display: flex; justify-content: flex-end; }
.viewtoggle { display: inline-flex; gap: 2px; padding: 3px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.viewtoggle button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; font: 600 13px var(--font); color: var(--ink2); cursor: pointer; }
.viewtoggle button svg { width: 16px; height: 16px; }
.viewtoggle button.on { background: var(--red); color: #fff; }
.viewtoggle.sm button { height: 28px; padding: 0 8px; }
.viewtoggle.sm span { display: none; }
.szlist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.szrow { display: grid; grid-template-columns: 76px 1fr auto 18px; align-items: center; gap: 12px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line2); background: #fff; font-family: var(--font); color: var(--ink); text-align: left; cursor: pointer; }
.szrow:last-child { border-bottom: 0; }
.szrow:hover { background: var(--red-ll); }
.szrow svg { width: 16px; height: 16px; color: var(--mute); }
.szn { font-weight: 800; font-size: 16px; }
.szs { font-size: 13px; color: var(--mute); font-weight: 600; }
.szs small { display: block; font-weight: 400; font-size: 12px; }
.szq { min-width: 46px; height: 32px; padding: 0 10px; border-radius: 8px; display: grid; place-items: center; font-size: 18px; font-weight: 800; background: var(--line2); font-variant-numeric: tabular-nums; }
.szrow.st-knapp { background: var(--yel-l); } .szrow.st-knapp .szq { background: var(--yel); color: #4d3800; } .szrow.st-knapp .szs { color: #7a5a00; }
.szrow.st-leer { background: var(--leer-l); } .szrow.st-leer .szq { background: var(--leer); color: #fff; } .szrow.st-leer .szs { color: var(--leer); }
.szlist.sm .szrow { padding: 7px 12px; grid-template-columns: 64px 1fr auto 16px; }
.szlist.sm .szn { font-size: 14px; } .szlist.sm .szq { height: 28px; font-size: 15px; }
.lowart:has(.szlist) { grid-template-columns: 1fr; gap: 6px; }

/* ---------- Kategorien ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.cat { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 16px; box-shadow: var(--sh); color: var(--ink); display: flex; flex-direction: column; gap: 6px; overflow: hidden; transition: transform .1s, box-shadow .12s; }
.cat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.cat:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(60, 20, 20, .08); }
.cattop { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cattop h3 { font-size: 17px; font-weight: 800; margin-right: auto; }
.cat p { margin: 0; color: var(--mute); font-size: 13px; }
.catnum { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.catnum b { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.catnum span { color: var(--mute); font-size: 13px; }
.art.archived { opacity: .6; }
.art .sum { font-size: 13px; color: var(--mute); } .art .sum b { color: var(--ink); font-size: 15px; }
.picker { position: relative; }
.picks { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; max-height: 280px; overflow-y: auto; }
.picks:empty { display: none; }
.pick { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; cursor: pointer; font: 14px var(--font); color: var(--ink); }
.pick:hover { border-color: var(--red); background: var(--red-ll); }
.pick > span { flex: 1; min-width: 0; }
.pick small { display: block; color: var(--mute); font-size: 12px; }
.page > .picker .picks { position: absolute; left: 0; right: 0; z-index: 15; background: #fff; padding: 6px; border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .14); }
.chosen { display: inline-flex; align-items: center; gap: 4px; padding: 2px 2px 2px 10px; border-radius: 8px; background: var(--red-l); color: var(--red); font-weight: 600; margin-bottom: 6px; }
.chosen .icon-btn { width: 26px; height: 26px; color: var(--red); }

/* ---------- Tabellen ---------- */
.tablewrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); padding: 10px 14px; background: #fbf9f8; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl small { font-size: 12.5px; }
.tbl.hover tbody tr { cursor: pointer; } .tbl.hover tbody tr:hover { background: var(--red-ll); }
.muted-row td { color: var(--mute); }
.person { display: flex; align-items: center; gap: 10px; }
.person > i, .who i, .cm > i { width: 32px; height: 32px; border-radius: 50%; background: var(--red-l); color: var(--red); display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; flex: none; }

/* ---------- Dialoge ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(30, 10, 10, .42); display: grid; place-items: center; padding: 16px; animation: fade .12s; }
@keyframes fade { from { opacity: 0; } }
.dialog { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); animation: pop .14s; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.dialog.wide { max-width: 640px; }
.dialog > header { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; }
.dialog > header h3 { flex: 1; font-size: 18px; font-weight: 800; }
.dialog .db { padding: 4px 18px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.dialog footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--line2); }
.dialog footer .sp { flex: 1; }
.toasts { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 460px; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); animation: pop .15s; text-align: center; }
.toast.err { background: var(--leer); }

/* Buchungsdialog */
.vhead { display: flex; gap: 14px; align-items: center; }
.vhead > div:first-child { flex: 1; min-width: 0; }
.vhead small { color: var(--mute); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.vhead h4 { font-size: 19px; font-weight: 800; }
.vhead .muted { font-size: 13px; }
.vqty { width: 96px; flex: none; display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line); }
.vqty b { font-size: 34px; font-weight: 800; line-height: 1.1; }
.vqty small { text-transform: none; letter-spacing: 0; font-size: 12px; }
.vqty.st-knapp { background: var(--yel); border-color: var(--yel-b); }
.vqty.st-knapp small { color: #5a4300; }
.vqty.st-leer { background: var(--leer); border-color: var(--leer); color: #fff; }
.vqty.st-leer small { color: rgba(255, 255, 255, .9); }
.sibs { display: flex; gap: 5px; flex-wrap: wrap; }
.sib { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 7px; border: 1px solid var(--line); background: #fff; font: 600 12.5px var(--font); color: var(--ink2); cursor: pointer; }
.sib i { font-style: normal; font-weight: 800; color: var(--ink); }
.sib.st-knapp { background: var(--yel); border-color: var(--yel-b); }
.sib.st-leer { background: var(--leer); border-color: var(--leer); color: #fff; } .sib.st-leer i { color: #fff; }
.sib.on { outline: 2px solid var(--ink); outline-offset: 1px; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--line2); border-radius: 11px; flex-wrap: wrap; }
.seg label { flex: 1; min-width: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 8px; border-radius: 8px; font-weight: 700; font-size: 13.5px; color: var(--ink2); cursor: pointer; white-space: nowrap; }
.seg span svg { width: 16px; height: 16px; }
.seg input:checked + span { background: #fff; color: var(--red); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.seg input:focus-visible + span { outline: 2px solid var(--red); }
.seg input:disabled + span { cursor: default; }
.seg.col { flex-direction: column; }
.stepper { display: flex; gap: 6px; }
.stepper button { width: 40px; height: 40px; flex: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.stepper .in { text-align: center; font-size: 17px; font-weight: 700; }
details summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink2); }
.mini { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-size: 13.5px; }
.mini.scroll { max-height: 340px; overflow-y: auto; margin-top: 0; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font: 600 12.5px var(--font); color: var(--ink2); cursor: pointer; }
.chip:hover { border-color: var(--red); color: var(--red); }
.startgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.startgrid label { display: flex; flex-direction: column; gap: 3px; align-items: center; font-weight: 700; font-size: 12.5px; }
.startgrid .in { text-align: center; height: 36px; }
.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.colors input { position: absolute; opacity: 0; }
.colors i { display: block; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.colors input:checked + i { box-shadow: 0 0 0 2px var(--ink); }

/* ---------- Scanner ---------- */
.scanwrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.scanner { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.memberline .f { max-width: 360px; }
.video { position: relative; aspect-ratio: 4 / 3; background: #1a1414; border-radius: 12px; overflow: hidden; }
.video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video .frame { position: absolute; inset: 18% 22%; pointer-events: none; opacity: 0; transition: opacity .2s; }
.video.on .frame { opacity: 1; }
.frame i { position: absolute; width: 34px; height: 34px; border: 4px solid #fff; border-radius: 4px; }
.frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.camoff { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; cursor: pointer; text-align: center; padding: 20px; background: radial-gradient(circle at 50% 40%, #3a1a1a, #1a1414); }
.camoff svg { width: 44px; height: 44px; stroke-width: 1.5; margin-bottom: 4px; }
.camoff b { font-size: 18px; } .camoff span { opacity: .75; font-size: 14px; max-width: 320px; }
.manual { display: flex; gap: 8px; }
.manual .searchbox { flex: 1; }
.manual .in { height: 44px; text-transform: uppercase; }
.manual .btn { height: 44px; }
.scanside { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.scanres .body { display: flex; flex-direction: column; gap: 14px; }
.scanres.bad .body { flex-direction: row; align-items: center; color: var(--leer); }
.scanres.flash { animation: flash .6s; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px var(--ok); } 100% { box-shadow: var(--sh); } }
.quick { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }

/* ---------- Etiketten ---------- */
.lblart { padding: 12px 0; border-bottom: 1px solid var(--line2); }
.lblart:first-child { padding-top: 0; } .lblart:last-child { border-bottom: 0; padding-bottom: 0; }
.lblsizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 8px; }
.lbl { display: flex; flex-direction: column; gap: 3px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 700; }
.lbl .in { text-align: center; height: 34px; }
.lbl small { font-size: 10.5px; color: var(--mute); font-weight: 500; }
#printarea { display: none; }

/* ---------- Aufgaben & Bestellungen ---------- */
.board { display: grid; gap: 14px; align-items: start; }
.board.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.board.four { grid-template-columns: repeat(4, minmax(220px, 1fr)); overflow-x: auto; }
.col { background: #ece7e4; border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.col h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); padding: 2px 4px 4px; }
.col h3 span { background: #fff; border-radius: 99px; padding: 0 8px; font-size: 12px; }
.col.st-geliefert { background: #fbe3e3; }
.tlist { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tcard { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; color: var(--ink); box-shadow: var(--sh); }
.tcard:hover { border-color: #d8cfcc; }
.tcard.hi { border-left: 4px solid var(--leer); }
.tcard > b { font-size: 14.5px; }
.tct, .tcf { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.due { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--mute); font-weight: 600; }
.due svg { width: 14px; height: 14px; }
.late { color: var(--leer) !important; font-weight: 700; } .soon { color: var(--warn) !important; font-weight: 700; }
.who { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.who i { width: 24px; height: 24px; font-size: 10.5px; }
.who.me i { background: var(--red); color: #fff; }
.tcf .muted { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; }
.tcf .muted svg { width: 14px; height: 14px; }
.prose { font-size: 15px; line-height: 1.6; }
.thread { display: flex; flex-direction: column; gap: 14px; }
.cm { display: flex; gap: 10px; }
.cm p { margin: 3px 0 0; font-size: 14.5px; }
.cm.sys { opacity: .75; } .cm.sys p { font-style: italic; }
.cform { display: flex; gap: 8px; align-items: flex-end; margin-top: 16px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; margin: 0; font-size: 14px; align-items: center; }
.facts dt { color: var(--mute); } .facts dd { margin: 0; }
.flow { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; overflow-x: auto; box-shadow: var(--sh); }
.fstep { flex: 1; min-width: 90px; display: flex; flex-direction: column; align-items: center; padding: 6px; }
.fstep b { font-size: 24px; font-weight: 800; color: var(--red); }
.fstep span { font-size: 12.5px; font-weight: 600; color: var(--mute); }
.flow > i { color: #cdc4c1; }
.stepper-line { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 10px; box-shadow: var(--sh); }
.sl { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.sl::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.sl:first-child::before { display: none; }
.sl.done::before, .sl.cur::before { background: var(--red); }
.sl i { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--line2); color: var(--mute); font-style: normal; font-weight: 800; font-size: 14px; border: 3px solid #fff; }
.sl.done i { background: var(--red); color: #fff; }
.sl.cur i { background: #fff; color: var(--red); box-shadow: 0 0 0 3px var(--red); }
.sl span { font-size: 13px; font-weight: 700; } .sl small { font-size: 11.5px; color: var(--mute); }
.statusbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.statusbar .in { width: auto; }
.timeline { display: flex; flex-direction: column; gap: 14px; border-left: 2px solid var(--line); margin-left: 6px; padding-left: 16px; }
.timeline > div { position: relative; display: flex; flex-direction: column; font-size: 14px; }
.timeline > div > i { position: absolute; left: -23px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.oitems { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.oi { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; }
.oi .qty { width: 72px; text-align: center; height: 34px; }
.freeline { display: flex; gap: 6px; margin-top: 6px; }

/* Auswahl Abteilung -> Name */
.mpick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.span2 { grid-column: 1 / -1; }
.memberline .mpick { max-width: 560px; }

/* Einsatz: Personal benötigt */
.alertbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 28px; background: repeating-linear-gradient(-45deg, #8c0000 0 18px, #a30000 18px 36px); color: #fff; animation: alertpulse 1.6s ease-in-out infinite; }
@keyframes alertpulse { 50% { filter: brightness(1.18); } }
.alertbar .ab-t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: #fff; }
.alertbar .ab-t svg { width: 26px; height: 26px; }
.alertbar .ab-t span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.alertbar .ab-t b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.alertbar .ab-t span { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alertbar .btn { background: #fff; color: var(--red); border-color: #fff; }
.alertbar .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.alertbar .ab-me { font-weight: 700; font-size: 13px; background: rgba(255, 255, 255, .18); padding: 5px 10px; border-radius: 8px; }
.alertbar:not([hidden]) + .top { top: 58px; }
.alarmbtn { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; padding: 22px; border: 0; border-radius: 16px; background: repeating-linear-gradient(-45deg, var(--red) 0 22px, #c20000 22px 44px); color: #fff; cursor: pointer; box-shadow: 0 8px 24px rgba(175, 0, 0, .3); font-family: var(--font); text-align: left; }
.alarmbtn:active { transform: scale(.99); }
.alarmbtn svg { width: 46px; height: 46px; stroke-width: 1.6; }
.alarmbtn b { display: block; font-size: 24px; font-weight: 800; }
.alarmbtn small { font-size: 14px; opacity: .85; }
.pushbox { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--yel-l); border: 1px solid var(--yel-b); flex-wrap: wrap; }
.pushbox > svg { width: 26px; height: 26px; color: #7a5a00; }
.pushbox.on { background: var(--ok-l); border-color: #b8dfc4; } .pushbox.on > svg { color: var(--ok); }
.pushbox > div:first-of-type { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.pushbox span { font-size: 13px; color: var(--ink2); }
.card .body > .pushbox { margin: 0; }
.alertcard { display: block; border: 2px solid var(--red); color: var(--ink); }
.ac-h { display: flex; align-items: center; gap: 10px; } .ac-h b { flex: 1; font-size: 17px; }
.ac-c { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; color: var(--ink2); } .ac-c b { color: var(--ok); font-size: 18px; }
.alertdetail.live { border: 2px solid var(--red); }
.alertdetail .body { display: flex; flex-direction: column; gap: 14px; }
.ad-facts { display: flex; gap: 24px; flex-wrap: wrap; }
.ad-facts small { display: block; color: var(--mute); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.ad-facts b { font-size: 17px; }
.ad-note { margin: 0; padding: 10px 14px; background: var(--red-ll); border-radius: 10px; font-weight: 600; }
.ad-count { display: flex; align-items: baseline; gap: 10px; }
.ad-count b { font-size: 48px; font-weight: 800; color: var(--ok); line-height: 1; }
.ad-count span { font-size: 17px; font-weight: 600; } .ad-count em { color: var(--warn); font-style: normal; font-weight: 700; }
.bar { height: 10px; border-radius: 99px; background: var(--line2); overflow: hidden; } .bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; transition: width .3s; }
.ad-q { font-size: 16px; margin-top: 4px; }
.ansbtns { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.ansbtns .btn { height: 56px; font-size: 16px; }
.ans-komme { background: var(--ok); border-color: var(--ok); color: #fff; } .ans-komme:hover { background: #18652f; }
.ans-spaeter.on { background: var(--yel); border-color: var(--yel-b); }
.ans-nein.on { background: var(--leer); border-color: var(--leer); color: #fff; }
.ansbtns .btn.on { box-shadow: 0 0 0 3px rgba(0, 0, 0, .15) inset; }
.ansbtns .btn:not(.on) { opacity: .92; }

/* Abteilungen */
.units { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.unit { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh); color: var(--ink); display: flex; flex-direction: column; gap: 4px; overflow: hidden; transition: transform .1s, box-shadow .12s; }
.unit::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--red); }
.unit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(60, 20, 20, .08); }
.unit.add { align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--line); background: transparent; box-shadow: none; color: var(--mute); font: 700 14px var(--font); cursor: pointer; min-height: 110px; }
.unit.add::before { display: none; }
.unit.add:hover { color: var(--red); border-color: var(--red); }
.unittop h3 { font-size: 17px; font-weight: 800; }
.unitnum { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.unitnum b { font-size: 28px; font-weight: 800; }
.unitnum span, .unit small { color: var(--mute); font-size: 13px; }

/* Wäsche & Defekte */
.board.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col h3 .linkish { margin-left: auto; font-size: 12px; text-transform: none; letter-spacing: 0; }
.col.st-abholbereit { background: #e3f1e7; }
.tcard.care.defekt { border-left: 4px solid var(--leer); }
.tcard.care.waesche { border-left: 4px solid var(--info); }
.tcard.care > a { color: var(--ink); }
.tcard.care > a b { font-size: 14.5px; }
.selbox input { width: 20px; height: 20px; accent-color: var(--red); cursor: pointer; margin: 0; }
.bulkbar { position: sticky; top: 76px; z-index: 15; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; background: var(--ink); color: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.bulkbar b { margin-right: 6px; }
.bulkbar .btn.ghost { color: #fff; }
.flowmini.three { grid-template-columns: repeat(3, 1fr); }
.stepper-line.four { grid-template-columns: repeat(4, 1fr); }
label.oi { cursor: pointer; }

/* ---------- Verwaltung ---------- */
.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.roles ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink2); font-size: 13.5px; }
.copyline { display: flex; gap: 8px; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.codes code { padding: 9px; text-align: center; background: var(--line2); border-radius: 8px; font-size: 16px; letter-spacing: .06em; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.qrbox { display: grid; place-items: center; }
.qrbox svg { width: 200px; height: 200px; stroke: none; }
.key { display: inline-block; margin-top: 4px; padding: 4px 8px; background: var(--line2); border-radius: 6px; font-size: 13px; word-break: break-all; }
.perms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.perms li { display: flex; gap: 8px; align-items: center; } .perms svg { color: var(--ok); }

/* ---------- Mobil ---------- */
@media (max-width: 1100px) {
  .grid.g-main, .scanwrap { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .board.four { grid-template-columns: repeat(4, 240px); }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 60; transform: translateX(-102%); transition: transform .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .side.open { transform: none; }
  .menu-btn { display: inline-grid; }
  .top { padding: 12px 16px; gap: 8px; background: var(--red); color: #fff; }
  .top .icon-btn { color: #fff; } .top .icon-btn:hover { background: rgba(255, 255, 255, .12); }
  .top h1 { font-size: 19px; } .top .sub { display: none; }
  .top .back { background: rgba(255, 255, 255, .15); border-color: transparent; color: #fff; }
  .top .actions .btn:not(.primary) { display: none; }
  .top .actions .btn.primary { background: #fff; color: var(--red); height: 34px; padding: 0 12px; font-size: 13px; }
  .page { padding: 14px 14px 96px; gap: 14px; }
  .grid.g2, .grid.g3 { grid-template-columns: 1fr; }
  .kpis { gap: 8px; }
  .kpi { padding: 12px 14px; } .kpi b { font-size: 28px; }
  .kpi.hero { grid-column: 1 / -1; }
  .board.two, .board.three { grid-template-columns: 1fr; }
  .alertbar { padding: 8px 12px; flex-wrap: wrap; } .alertbar:not([hidden]) + .top { top: 0; position: relative; } .alertbar .btn { height: 30px; }
  .mpick { grid-template-columns: 1fr; gap: 10px; }
  .ansbtns { grid-template-columns: 1fr 1fr; } .ansbtns .ans-komme { grid-column: 1 / -1; }
  .alarmbtn b { font-size: 21px; }
  .bulkbar { top: 64px; }
  .lowart { grid-template-columns: 1fr; gap: 6px; padding-left: 0; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--mute); padding: 4px 0; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--red); }
  .tabbar a.scan { margin-top: -22px; }
  .tabbar a.scan svg { width: 56px; height: 56px; padding: 15px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(175, 0, 0, .4); border: 4px solid #fff; }
  .toasts { bottom: 86px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 34px 24px 30px; }
  .auth-art h2 { font-size: 30px; } .auth-art ul { display: none; } .auth-art .org { margin-bottom: 4px; }
  .dialog { max-height: calc(100vh - 20px); border-radius: 16px 16px 0 0; align-self: end; }
  .overlay { padding: 10px 0 0; }
  .seg span { font-size: 12.5px; padding: 0 4px; }
  .seg label { flex: 1 1 calc(33% - 4px); }
  .seg.modes label { flex-basis: calc(50% - 4px); }
  .seg.col label { flex-basis: auto; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .kpi:not(.hero) { padding: 10px; } .kpi:not(.hero) b { font-size: 24px; } .kpi:not(.hero) span { font-size: 12px; } .kpi:not(.hero) small { font-size: 11px; }
  .quick { grid-template-columns: 1fr 1fr; } .quick .ghost { grid-column: 1 / -1; }
  .stepper-line { grid-template-columns: repeat(5, 1fr); padding: 12px 4px; }
  .sl span { font-size: 11px; } .sl small { display: none; }
  .tbl th, .tbl td { padding: 9px 10px; }
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat { padding: 14px 12px 12px 16px; } .cattop h3 { font-size: 15px; } .catnum b { font-size: 24px; } .cat p { display: none; }
}
@media (max-width: 820px) { .units { grid-template-columns: 1fr 1fr; gap: 10px; } .unit { padding: 14px; } .unitnum b { font-size: 24px; } }
@media (max-width: 420px) { .cats { grid-template-columns: 1fr; } }

/* ---------- Druck: Etikettenbögen ---------- */
@media print {
  body > *:not(#printarea) { display: none !important; }
  body { background: #fff; }
  #printarea { display: block; }
  .sheet { display: grid; width: 210mm; height: 297mm; overflow: hidden; page-break-after: always; break-after: page; }
  .sheet:last-child { page-break-after: auto; break-after: auto; }
  .label { display: flex; align-items: center; gap: 2.5mm; padding: 2.5mm 3mm; overflow: hidden; font-family: Arial, Helvetica, sans-serif; color: #000; }
  .label .qr { height: 100%; aspect-ratio: 1; flex: none; }
  .label .qr svg { width: 100%; height: 100%; stroke: none; display: block; }
  .label .lt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
  .label small { font-size: 6.5pt; text-transform: uppercase; letter-spacing: .03em; }
  .label b { font-size: 8.5pt; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .label .size { font-size: 14pt; font-weight: 800; margin: .5mm 0; }
  .label code { font-size: 7pt; font-family: "Courier New", monospace; }
  .label.tiny { padding: 1.5mm 2mm; gap: 1.5mm; }
  .label.tiny small { display: none; } .label.tiny b { font-size: 7pt; -webkit-line-clamp: 1; } .label.tiny .size { font-size: 10pt; } .label.tiny code { font-size: 6pt; }
}
.badge.alarm { background: #fff; color: var(--red); animation: alertpulse 1.2s infinite; }
.nav a.on .badge.alarm { background: var(--red); color: #fff; }

/* Aufgaben-Status: offen weiß, in Arbeit gelb, erledigt grün */
.pill.t-offen { background: #fff; color: var(--ink2); border: 1px solid #d8d0cd; }
.pill.t-arbeit { background: var(--yel); color: #4d3800; }
.pill.t-erledigt { background: var(--ok); color: #fff; }
.tcard.ts-offen { background: #fff; }
.tcard.ts-in_arbeit { background: var(--yel-l); border-color: var(--yel-b); }
.tcard.ts-erledigt { background: var(--ok-l); border-color: #b8dfc4; }
.tpills { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.trow { border: 1px solid transparent; margin-bottom: 4px; }
.trow.ts-offen { background: #fff; border-color: var(--line); }
.trow.ts-in_arbeit { background: var(--yel-l); border-color: var(--yel-b); }
.trow.ts-erledigt { background: var(--ok-l); }
a.trow.ts-in_arbeit:hover { background: #fff0b0; } a.trow.ts-offen:hover { background: var(--line2); }
.seg.tstat { padding: 6px; gap: 6px; }
.seg.tstat span { height: 46px; border: 1px solid transparent; }
.seg.tstat .s-offen input:checked + span { background: #fff; color: var(--ink); border-color: #cfc6c3; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.seg.tstat .s-in_arbeit input:checked + span { background: var(--yel); color: #4d3800; border-color: var(--yel-b); }
.seg.tstat .s-erledigt input:checked + span { background: var(--ok); color: #fff; border-color: var(--ok); }
.seg.tstat input:checked + span::before { content: "✓"; margin-right: 6px; font-weight: 800; }

/* Bestätigung vor dem Senden einer Einsatz-Meldung */
.cf-t { display: block; font-size: 18px; margin-bottom: 4px; }
.cf-l { display: block; color: var(--ink2); }
.cf-warn { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--red-l); color: var(--red-dd); font-size: 14px; }
.cf-warn svg { flex: none; margin-top: 2px; }

/* Kennzeichnung „Personal Kleiderkammer benötigt“ */
.kkhead { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--red); color: #fff; }
.kkhead svg { width: 28px; height: 28px; }
.kkhead span { display: flex; flex-direction: column; line-height: 1.2; }
.kkhead small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.kkhead b { font-size: 17px; }
.cf-k { display: inline-block; margin-bottom: 6px; padding: 3px 9px; border-radius: 6px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.ac-k { display: block; font-size: 11px; color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.alertbar .ab-t b { white-space: nowrap; }
/* Hinweiston-Auswahl */
.soundpick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.soundpick > span { font-size: 13px; font-weight: 700; color: var(--ink2); }
.soundpick .seg { flex: 1; min-width: 260px; }
.soundpick .seg span { height: 34px; font-size: 12.5px; }
.sndnote { margin: 8px 0 0; }
@media (max-width: 820px) {
  .alertbar .ab-t { flex-basis: 100%; }
  .alertbar .ab-t span { white-space: normal; }
  .alertbar .ab-t b { font-size: 11px; }
  .alertbar .btn { flex: 1; height: 34px; }
  .alertbar .ab-me { flex: 1; text-align: center; }
}

.rowlink { color: var(--ink); min-width: 0; }
.row .icon-btn { flex: none; }

/* Laufende Meldung groß auf der Startseite */
.homealert { border-radius: 16px; overflow: hidden; box-shadow: 0 10px 28px rgba(175, 0, 0, .28); background: repeating-linear-gradient(-45deg, #a80000 0 24px, #bd0000 24px 48px); color: #fff; }
.ha-main { display: flex; align-items: center; gap: 18px; padding: 20px 22px; color: #fff; }
.ha-ic { width: 64px; height: 64px; flex: none; border-radius: 16px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; animation: alertpulse 1.6s ease-in-out infinite; }
.ha-ic svg { width: 38px; height: 38px; stroke-width: 1.6; }
.ha-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ha-txt small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.ha-txt b { font-size: 26px; font-weight: 800; line-height: 1.15; }
.ha-txt em { font-style: normal; font-weight: 600; opacity: .95; }
.ha-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; }
.ha-facts i { font-style: normal; display: inline-flex; align-items: center; gap: 6px; }
.ha-facts svg { width: 16px; height: 16px; }
.ha-count { flex: none; text-align: center; background: #fff; color: var(--ok); border-radius: 14px; padding: 10px 16px; min-width: 96px; }
.ha-count b { display: block; font-size: 38px; font-weight: 800; line-height: 1; }
.ha-count b small { font-size: 18px; color: var(--mute); }
.ha-count span { font-size: 12px; font-weight: 700; color: var(--ink2); }
.ha-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 22px; background: rgba(0, 0, 0, .18); }
.ha-q { font-weight: 800; margin-right: auto; }
.ha-act .btn { background: #fff; color: var(--red); border-color: #fff; height: 42px; }
.ha-act .btn.ha-yes { background: var(--ok); border-color: var(--ok); color: #fff; padding: 0 22px; }
.ha-act .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.ha-me { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-right: auto; }
@media (max-width: 820px) {
  .ha-main { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .ha-ic { width: 48px; height: 48px; } .ha-ic svg { width: 28px; height: 28px; }
  .ha-txt { flex-basis: calc(100% - 64px); } .ha-txt b { font-size: 21px; }
  .ha-count { order: 3; display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 8px 14px; }
  .ha-count b { font-size: 28px; }
  .ha-act { padding: 12px 16px; } .ha-q { flex-basis: 100%; }
  .ha-act .btn { flex: 1; }
}
