/* ---------- Schriften (selbst gehostet, DSGVO-freundlich) ---------- */
@font-face { font-family: "Atkinson Next"; src: url("/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Next"; src: url("/fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Noto Arabic"; src: url("/fonts/noto-sans-arabic-arabic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* ---------- Tokens ---------- */
:root {
  /* Aqua CD: logo colours petrol #3A6475 and aqua #69A9AA */
  --brand: #3A6475;
  --brand-dark: #2C4E5C;
  --aqua: #69A9AA;
  --aqua-light: #A9D2D2;

  --ink: #1F3D49;
  --ink-2: #42606B;
  --muted: #5B7178;
  --paper: #EDF4F4;
  --surface: #FFFFFF;
  --line: #C6DADA;
  --water: var(--brand);
  --water-soft: #D6EAEA;

  --ready: #1D7A52;      --ready-bg: #DCEFE4;
  --departure: #B5452E;  --departure-bg: #F7E0D9;
  --stayover: #9A6A07;   --stayover-bg: #F5EACB;
  --progress: #2458A6;   --progress-bg: #DCE6F6;
  --occupied: #566B76;   --occupied-bg: #E1E8EB;
  --blocked: #2F3538;    --blocked-bg: #D6DADB;

  --r-sm: 10px; --r-md: 14px; --r-lg: 22px;
  --font: "Atkinson Next", "Noto Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); font-size: 17px; line-height: 1.45; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
[dir="rtl"] body, html[dir="rtl"] { font-family: "Noto Arabic", var(--font); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.1em;
  border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; }
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.go { background: var(--ready); border-color: var(--ready); color: #fff; }
.btn.danger { color: var(--departure); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.small { min-height: 38px; padding: 0 .8em; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Toast & Banner ---------- */
#toast { position: fixed; inset-inline: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); margin: auto; max-width: 520px;
  background: var(--brand); color: #fff; padding: 14px 18px; border-radius: var(--r-md); z-index: 50; font-weight: 600; }
.banner { background: var(--stayover-bg); color: #5E4204; padding: 10px 16px; font-size: 15px; border-bottom: 1px solid #E5D3A0; }

/* =========================================================
   LOGIN
   ========================================================= */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); }
.login-card { width: 100%; max-width: 360px; }
.login h1 { font-size: 30px; line-height: 1.1; margin: 0 0 28px; letter-spacing: -.01em; }
.login .logo { display: block; width: 180px; height: auto; margin: 0 0 18px; }
.langs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.langs button { border: 1.5px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 15px; }
.langs button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.pin-label { font-weight: 700; margin-bottom: 10px; }
.pin-dots { display: flex; gap: 12px; height: 22px; margin-bottom: 8px; }
.pin-dots span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink-2); }
.pin-dots span.on { background: var(--ink); border-color: var(--ink); }
.pin-err { min-height: 24px; color: var(--departure); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; direction: ltr; }
.keypad button { height: 64px; border-radius: var(--r-md); border: 0; background: var(--surface); font-size: 26px; font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--line); }
.keypad button:active { background: var(--water-soft); }
.keypad .ok { background: var(--brand); color: #fff; font-size: 19px; box-shadow: none; }

/* =========================================================
   REINIGUNGS-APP (mobil)
   ========================================================= */
.staff { max-width: 720px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--brand); color: #fff; }
.topbar .who { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar select { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); border-radius: 8px; padding: 6px 8px; font-size: 15px; }
.topbar select option { color: var(--ink); }
.topbar .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); min-height: 38px; font-size: 15px; }

.tabs { display: flex; background: var(--brand); padding: 0 8px; gap: 4px; position: sticky; top: 0; z-index: 5; }
.tabs button { flex: 1; background: none; border: 0; color: #D6E6E8; padding: 12px 6px 14px; font-weight: 700; font-size: 15px; border-bottom: 3px solid transparent; }
.tabs button[aria-selected="true"] { color: #fff; border-bottom-color: var(--aqua-light); }
.tabs .count { display: inline-block; min-width: 22px; padding: 0 6px; margin-inline-start: 6px; border-radius: 999px; background: var(--aqua-light); color: var(--ink); font-size: 13px; }

.page { padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); flex: 1; }
.hint { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.group-title { font-size: 15px; font-weight: 700; color: var(--ink-2); margin: 22px 0 8px; display: flex; align-items: center; gap: 8px; }
.group-title::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--ink)); }

/* Zimmerkarte in der Aufgabenliste */
.task { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 14px; width: 100%; text-align: start;
  background: var(--surface); border: 0; border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 10px; position: relative; overflow: hidden;
  box-shadow: inset 4px 0 0 var(--c); }
[dir="rtl"] .task { box-shadow: inset -4px 0 0 var(--c); }
.task .no { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.task .meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.task .type { font-weight: 700; color: var(--c); }
.task .sub { font-size: 14px; color: var(--muted); }
.task .chev { font-size: 22px; color: var(--muted); }
[dir="rtl"] .task .chev { transform: scaleX(-1); }
.tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: var(--paper); color: var(--ink-2); margin-inline-end: 4px; }
.mini-bar { height: 6px; border-radius: 3px; background: var(--paper); overflow: hidden; margin-top: 4px; }
.mini-bar i { display: block; height: 100%; background: var(--water); border-radius: 3px; }

.empty { text-align: center; padding: 56px 20px; color: var(--muted); }

/* Checkliste */
.cl-head { position: sticky; top: 0; z-index: 6; background: var(--surface); border-bottom: 1px solid var(--line); padding: calc(8px + env(safe-area-inset-top)) 12px 0; }
.cl-head-row { display: flex; align-items: center; gap: 12px; }
.cl-head .no { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.cl-head .what { font-weight: 700; font-size: 15px; line-height: 1.25; }
.cl-head .what small { display: block; font-weight: 400; color: var(--muted); }
.back { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper); font-size: 22px; flex: none; }
[dir="rtl"] .back { transform: scaleX(-1); }
/* Wasserstand = Fortschritt */
.waterline { height: 8px; margin: 12px -12px 0; background: var(--paper); position: relative; overflow: hidden; }
.waterline i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--water); transition: width .35s ease; }
.waterline.full i { background: var(--ready); }

.section { margin: 18px 0 6px; }
.section-h { display: flex; align-items: center; gap: 10px; padding: 0 4px 8px; }
.section-h .ico { font-size: 22px; }
.section-h h2 { font-size: 19px; margin: 0; flex: 1; }
.section-h .cnt { font-size: 14px; font-weight: 700; color: var(--muted); }
.section.complete .section-h .cnt { color: var(--ready); }
.note { background: var(--stayover-bg); border-radius: var(--r-sm); padding: 10px 14px; font-size: 15px; margin: 0 0 8px; color: #4D3703; }
.note strong { display: block; }

.items { background: var(--surface); border-radius: var(--r-md); overflow: hidden; }
.item { display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: start; background: none; border: 0;
  border-bottom: 1px solid var(--paper); padding: 14px 14px; min-height: 60px; }
.item:last-child { border-bottom: 0; }
.item .box { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid var(--ink-2); display: grid; place-items: center; margin-top: -2px; transition: background .15s, border-color .15s; }
.item .box svg { width: 18px; height: 18px; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.item[aria-checked="true"] .box { background: var(--water); border-color: var(--water); }
.item[aria-checked="true"] .box svg { opacity: 1; transform: none; }
.item[aria-checked="true"] .txt { color: var(--muted); }
.item.flash { animation: flash 1.4s ease 2; }
@keyframes flash { 50% { background: var(--departure-bg); } }

.remarks { margin-top: 22px; }
.remarks label { font-weight: 700; display: block; margin-bottom: 6px; }
.remarks textarea { width: 100%; min-height: 96px; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px; background: var(--surface); resize: vertical; }

.bottom { position: sticky; bottom: 0; z-index: 6; background: var(--surface); border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; }
.bottom .state { font-weight: 700; flex: 1; font-size: 15px; }
.bottom .btn { min-height: 54px; flex: 2; font-size: 17px; }
.bottom .btn.locked { background: var(--paper); border-color: var(--line); color: var(--ink-2); }

.done { text-align: center; padding: 72px 24px; }
.done .ring { width: 104px; height: 104px; margin: 0 auto 20px; border-radius: 50%; background: var(--ready); display: grid; place-items: center; }
.done .ring svg { width: 54px; height: 54px; }
.done h1 { font-size: 26px; margin: 0 0 28px; }
.done .btn { width: 100%; max-width: 320px; margin-bottom: 10px; }

/* Zusatzarbeiten: Raumauswahl */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.room-btn { background: var(--surface); border: 0; border-radius: var(--r-sm); padding: 10px 6px; text-align: center; }
.room-btn b { display: block; font-size: 22px; }
.room-btn small { color: var(--muted); font-size: 12px; }
.rules li { margin-bottom: 12px; }

/* =========================================================
   REZEPTION – Schlüsselbrett
   ========================================================= */
.desk { min-height: 100%; display: flex; flex-direction: column; }
.desk-top { display: flex; align-items: center; gap: 12px 16px; padding: 14px 24px; background: var(--brand); color: #fff; flex-wrap: wrap; }
.desk-status { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; flex-wrap: wrap; }
.desk-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.desk-top h1 { font-size: 20px; margin: 0; }
.desk-top .live { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #D6E6E8; }
.desk-top .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua-light); }
.desk-top .live.off::before { background: #E08A73; }
.desk-top .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); min-height: 40px; }
.desk-top .btn[aria-pressed="true"] { background: #fff; color: var(--ink); }

.legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 24px 4px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px 6px 8px; font-weight: 600; font-size: 15px; }
.chip .n { min-width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: var(--c-bg); color: var(--c); font-weight: 800; padding: 0 6px; }
.chip[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.chip.dim { opacity: .55; }
.chip.help .n { background: var(--brand); color: #fff; }
.chip.help[aria-expanded="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.status-help { margin: 8px 24px 0; padding: 14px 18px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); font-size: 15px; }
.status-help[hidden] { display: none; }
.status-help ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.status-help li { display: flex; gap: 12px; align-items: flex-start; }
.status-help p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.swatch { flex: none; width: 22px; height: 28px; margin-top: 1px; border-radius: 5px 5px 10px 10px; background: var(--c-bg);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 45%, transparent); }
.swatch.s-ready { background: var(--ready); }
.swatch.sw-defect { width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--departure); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; box-shadow: none; }

.board { padding: 8px 24px 0; display: grid; gap: 4px; }
.floor { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.floor:last-child { border-bottom: 0; }
.floor-name { font-weight: 800; font-size: 16px; padding-top: 22px; }
.floor-name small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.hooks { display: flex; flex-wrap: wrap; gap: 14px 12px; }

/* Schlüsselanhänger */
.fob { --c: var(--ink); --c-bg: var(--surface); width: 84px; height: 112px; position: relative; border: 0; padding: 26px 0 0;
  background: var(--c-bg); border-radius: 12px 12px 30px 30px; text-align: center; overflow: hidden; color: var(--c);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 30%, transparent); }
.fob::before { /* Ring-Loch */ content: ""; position: absolute; top: 8px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 45%, transparent); z-index: 2; }
.fob .water { position: absolute; inset-inline: 0; bottom: 0; background: color-mix(in srgb, var(--c) 22%, transparent); transition: height .5s ease; z-index: 0; }
.fob .water::before { content: ""; position: absolute; top: -5px; left: -10%; right: -10%; height: 10px; border-radius: 50%; background: inherit; }
.fob > *:not(.water) { position: relative; z-index: 1; }
.fob .no { font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; display: block; color: var(--ink); }
.fob .st { font-size: 12px; font-weight: 700; display: block; margin-top: 4px; line-height: 1.15; padding: 0 4px; }
.fob .ini { font-size: 11px; display: block; color: var(--ink-2); margin-top: 2px; }
.fob .flags { position: absolute; bottom: 8px; left: 0; right: 0; font-size: 11px; font-weight: 700; color: var(--ink-2); letter-spacing: .02em; }
.fob .alert { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--departure); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; z-index: 3; }
.fob:hover { transform: translateY(-2px); }
.fob[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 3px; }
.fob.sel-mode { cursor: copy; }
.fob.faded { opacity: .28; }

.s-ready { --c: var(--ready); --c-bg: var(--ready-bg); }
.s-departure { --c: var(--departure); --c-bg: var(--departure-bg); }
.s-stayover { --c: var(--stayover); --c-bg: var(--stayover-bg); }
.s-progress { --c: var(--progress); --c-bg: #F2F6FC; }
.s-occupied { --c: var(--occupied); --c-bg: var(--occupied-bg); }
.s-blocked { --c: var(--blocked); --c-bg: repeating-linear-gradient(135deg, #DADEDF 0 8px, #CDD2D3 8px 16px); }
.fob.s-ready { background: var(--ready); }
.fob.s-ready .no, .fob.s-ready .st, .fob.s-ready .flags { color: #fff; }
.fob.s-ready::before { background: color-mix(in srgb, var(--ready) 70%, #000); box-shadow: none; }

/* Auswahl-Leiste */
.selbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; background: var(--brand); color: #fff; border-radius: var(--r-lg);
  padding: 10px 10px 10px 20px; display: flex; gap: 8px; align-items: center; z-index: 20; flex-wrap: wrap; max-width: calc(100% - 32px); }
.selbar .btn { min-height: 42px; color: var(--ink); }
.selbar .lbl { font-weight: 700; margin-right: 6px; }

/* Seitenpanel */
.drawer-bg { position: fixed; inset: 0; background: rgba(21, 50, 60, .28); z-index: 30; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); z-index: 31; overflow-y: auto;
  display: flex; flex-direction: column; animation: slide .2s ease; }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.drawer header { padding: 20px 24px 16px; display: flex; gap: 16px; align-items: flex-start; border-bottom: 1px solid var(--line); }
.drawer header .no { font-size: 48px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.drawer header .st { font-weight: 700; color: var(--c); font-size: 18px; }
.drawer header .close { margin-left: auto; }
.drawer .body { padding: 8px 24px 32px; }
.drawer h3 { font-size: 15px; color: var(--ink-2); margin: 22px 0 8px; }
.actions { display: grid; gap: 8px; }
.actions .btn { justify-content: flex-start; width: 100%; }
.actions .btn .k { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: auto; }
.actions .btn.primary .k { color: #D6E6E8; }
.defect { background: var(--departure-bg); border-radius: var(--r-sm); padding: 12px 14px; white-space: pre-wrap; font-size: 15px; }
.switch { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--paper); }
.switch input { width: 22px; height: 22px; accent-color: var(--ink); }
.hist { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.hist li { padding: 8px 0; border-bottom: 1px solid var(--paper); }
.hist li span { color: var(--muted); }
.prog-txt { font-size: 15px; }

/* Team-Dialog */
dialog { border: 0; border-radius: var(--r-lg); padding: 0; width: min(560px, calc(100% - 32px)); color: var(--ink); }
dialog::backdrop { background: rgba(21, 50, 60, .35); }
.dlg-h { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.dlg-h h2 { margin: 0; font-size: 20px; flex: 1; }
.dlg-b { padding: 16px 24px 24px; }
.team-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--paper); }
.team-row .nm { flex: 1; font-weight: 600; }
.team-row .rl { font-size: 13px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.form-grid label { font-size: 14px; font-weight: 600; display: grid; gap: 4px; }
.form-grid input, .form-grid select { border: 1.5px solid var(--line); border-radius: 8px; padding: 10px; background: #fff; }
.form-err { color: var(--departure); font-weight: 600; min-height: 22px; margin-top: 8px; }

@media (max-width: 640px) {
  .desk-top { padding: calc(10px + env(safe-area-inset-top)) 0 10px; gap: 8px; }
  .desk-status { padding: 0 16px; gap: 6px 12px; width: 100%; }
  .desk-top h1 { font-size: 18px; }
  .desk-status .done-today { margin-inline-start: auto; font-size: 15px; }
  /* one swipeable row instead of three wrapped ones */
  .desk-actions { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding: 2px 16px; scrollbar-width: none; }
  .desk-actions::-webkit-scrollbar, .legend::-webkit-scrollbar { display: none; }
  .desk-top .btn { min-height: 36px; padding: 0 .8em; font-size: 15px; white-space: nowrap; flex: none; }
  .legend { padding: 12px 16px 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .chip { flex: none; font-size: 14px; padding: 4px 12px 4px 5px; gap: 6px; white-space: nowrap; }
  .chip .n { min-width: 24px; height: 24px; }
  .status-help { margin: 8px 16px 0; padding: 12px 14px; font-size: 14px; }
  .board { padding: 4px 16px 0; }
  .floor { grid-template-columns: 1fr; gap: 8px; }
  .floor-name { padding-top: 0; }
  .hooks { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 10px 8px; }
  .fob { width: auto; height: 86px; padding-top: 22px; border-radius: 10px 10px 24px 24px; }
  .fob::before { top: 7px; width: 10px; height: 10px; margin-left: -5px; }
  .fob .no { font-size: 21px; }
  .fob .st { font-size: 11px; margin-top: 2px; }
  .fob .ini, .fob .flags { font-size: 10px; }
  .fob .flags { bottom: 6px; }
  .selbar { left: 8px; right: 8px; transform: none; bottom: calc(8px + env(safe-area-inset-bottom)); max-width: none;
    padding: 8px 10px; gap: 6px; border-radius: var(--r-md); flex-wrap: wrap; }
  .selbar .lbl { width: 100%; font-size: 14px; margin: 0 0 0 4px; }
  .selbar .btn { flex: 1 1 0; min-height: 40px; padding: 0 .4em; font-size: 14px; white-space: nowrap; }
}
@media print {
  .desk-top .btn, .legend, .selbar, .status-help { display: none; }
  .fob { break-inside: avoid; }
}

/* ---------- Schneehase (Easter Egg) ---------- */
.hare-sit { width: 84px; margin: 0 auto 10px; }
.hare-sit svg, .hare-run svg { display: block; width: 100%; height: auto; }
.hare-sit .ear-r { transform-box: fill-box; transform-origin: 50% 100%; animation: ear-twitch 5s ease-in-out infinite; }
@keyframes ear-twitch { 0%, 88%, 100% { transform: none; } 92% { transform: rotate(14deg); } 96% { transform: rotate(-4deg); } }
.hare-run { position: fixed; left: 0; bottom: calc(16px + env(safe-area-inset-bottom)); width: 52px; z-index: 60; pointer-events: none;
  animation: hare-run 4.2s linear forwards; }
.hare-bob { animation: hare-bob .42s ease-in-out infinite; }
@keyframes hare-run { from { transform: translateX(-70px); } to { transform: translateX(calc(100vw + 10px)); } }
@keyframes hare-bob { 0%, 100% { transform: none; } 50% { transform: translateY(-18px) rotate(-6deg); } }

/* ---------- Team bearbeiten, Reinigungen ---------- */
.dlg-sub { font-size: 15px; margin: 22px 0 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.team-edit { padding: 10px 0 14px; border-bottom: 1px solid var(--paper); margin-top: 0; }
.team-edit .edit-btns { display: flex; gap: 8px; align-items: end; }
dialog#report { width: min(880px, calc(100% - 32px)); }
.rep-range { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.rep-range label { font-size: 14px; font-weight: 600; display: grid; gap: 4px; }
.rep-range input { border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; }
.rep-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.rep-scroll { overflow-x: auto; }
.rep { width: 100%; border-collapse: collapse; font-size: 14px; }
.rep th { text-align: start; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 8px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.rep td { padding: 8px; border-bottom: 1px solid var(--paper); vertical-align: top; }
.rep td.num, .rep th.num { text-align: end; white-space: nowrap; }
.rep td.nw { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rep td.rem { color: var(--ink-2); min-width: 160px; }
.rep tfoot td { font-weight: 700; border-bottom: 0; }
.rep tr.pick { cursor: pointer; }
.rep tr.pick:hover td { background: var(--water-soft); }
.rep tr.pick.on td { background: var(--water-soft); font-weight: 700; }

/* ---------- powered by ProfiCampus ---------- */
.credit { text-align: center; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--muted); }
.credit > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.credit img { width: 16px; height: 16px; }
.credit .pc-b { color: #003366; }
.credit .pc-g { color: #4CBB15; }
.login .credit { padding-bottom: 0; margin-top: 28px; }
.desk .credit { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
