/* Reinigungs-App Hotel Schön – Basis + Team-Ansicht
   Farben und Schriften angelehnt an hotel-schoen.com (Marine, Eiche, Creme; Lato + Spectral) */

/* ---------- Schriften (selbst gehostet) ---------- */
@font-face { font-family: "Lato"; font-weight: 400; font-display: swap; src: url(/fonts/lato-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-weight: 400; font-display: swap; src: url(/fonts/lato-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Lato"; font-weight: 700; font-display: swap; src: url(/fonts/lato-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap; src: url(/fonts/lato-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Lato"; font-weight: 900; font-display: swap; src: url(/fonts/lato-latin-900-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-weight: 900; font-display: swap; src: url(/fonts/lato-latin-ext-900-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Spectral"; font-weight: 500; font-display: swap; src: url(/fonts/spectral-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spectral"; font-weight: 500; font-display: swap; src: url(/fonts/spectral-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Spectral"; font-weight: 500; font-display: swap; src: url(/fonts/spectral-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Spectral"; font-weight: 600; font-display: swap; src: url(/fonts/spectral-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spectral"; font-weight: 600; font-display: swap; src: url(/fonts/spectral-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Spectral"; font-weight: 600; font-display: swap; src: url(/fonts/spectral-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  /* Marke */
  --marine: #153254;
  --marine-2: #2b4a6e;
  --eiche: #a87e52;
  --eiche-d: #7a5634;
  --creme: #fbf7f1;

  --bg: #f7f3ec;
  --surface: #ffffff;
  --surface-2: #f1ece3;
  --ink: #1b2a3c;
  --ink-2: #5f6a77;
  --ink-3: #8d96a0;
  --line: #e5dfd5;
  --line-2: #d8d0c3;
  --accent: var(--marine);
  --accent-2: var(--marine-2);
  --accent-soft: #e9eef4;
  --ok: #4e6a4f;
  --ok-soft: #eaf0e8;
  --p1: #a9492a;          /* Früher Check-in – gedecktes Rostrot */
  --p1-soft: #f6e9e2;
  --p2: #9a7140;          /* Anreise – Ocker / Eiche */
  --p2-soft: #f4ecdf;
  --p3: #9aa2ab;          /* keine Anreise – Grau */
  --p3-soft: #eff1f3;
  --warn: #9a6a1f;
  --danger: #a33a2a;
  --radius: 12px;
  --radius-s: 8px;
  --shadow: 0 1px 2px rgba(21, 50, 84, .05);
  --font: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--marine-2); outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }

/* ---------- Icons (Lucide, einheitlich) ---------- */
svg.i {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -.22em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.1rem;
  border: 1px solid var(--line-2); border-radius: var(--radius-s);
  background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  transition: background .15s ease, transform .08s ease;
  touch-action: manipulation; user-select: none;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; }
.btn.primary { background: var(--marine); border-color: var(--marine); color: #fff; }
.btn.primary:active { background: var(--marine-2); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); font-weight: 400; }
.btn.danger { color: var(--danger); }
.btn.block { width: 100%; }
.btn.big { min-height: 56px; font-size: 1.08rem; }
.link { background: none; border: 0; padding: .3rem .2rem; color: var(--marine); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .25em .6em; border-radius: 6px;
  font-size: .82rem; font-weight: 700; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2);
}
.badge svg.i { width: 1.1em; height: 1.1em; }
.badge.p1 { background: var(--p1-soft); color: var(--p1); }
.badge.p2 { background: var(--p2-soft); color: var(--eiche-d); }
.badge.p3 { background: var(--p3-soft); color: var(--ink-2); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.urgent { background: var(--p1-soft); color: var(--p1); }
.badge.soon { background: var(--p2-soft); color: var(--eiche-d); }
.badge.deep { background: var(--accent-soft); color: var(--marine); }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .15em .45em; border-radius: 4px; }
.tag.urgent { color: var(--p1); background: var(--p1-soft); }
.tag.soon { color: var(--eiche-d); background: var(--p2-soft); }

/* ---------- Overlay / Sheet / Modal ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(21, 32, 46, .42);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .15s ease;
}
.overlay.center { align-items: center; padding: 1rem; }
.sheet {
  width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto;
  background: var(--bg); border-radius: 14px 14px 0 0;
  padding: .5rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom));
  animation: up .18s cubic-bezier(.2, .8, .2, 1);
}
.sheet .grip { width: 36px; height: 4px; border-radius: 2px; background: var(--line-2); margin: .3rem auto .9rem; }
.sheet h2 { margin: .1rem 0 .9rem; font-family: var(--serif); font-weight: 600; font-size: 1.45rem; }
.sheet h3 { margin: 1.1rem 0 .5rem; font-size: 1rem; color: var(--ink-2); }
.modal {
  width: 100%; max-width: 420px; background: var(--surface);
  border-radius: 14px; padding: 1.6rem 1.3rem 1.2rem;
  box-shadow: 0 10px 30px rgba(21, 32, 46, .18); text-align: center;
  animation: pop .16s cubic-bezier(.2, .8, .2, 1);
}
.modal h2 { margin: .3rem 0 .7rem; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; }
.big-icon { color: var(--marine); line-height: 1; }
.big-icon svg.i { width: 44px; height: 44px; stroke-width: 1.5; }
.big-icon.ok { color: var(--ok); }
.medal-icon { color: var(--eiche); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(32px); opacity: .6; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }

/* ---------- Toast / Konfetti ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 80;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: .75rem 1.1rem; border-radius: 10px;
  font-weight: 700; max-width: 90vw; text-align: center;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90; }

/* =================== Team-Ansicht =================== */
.screen { max-width: 560px; margin: 0 auto; padding: 1.2rem 1.1rem 2rem; }
.welcome { padding-top: 3rem; }
.welcome .logo { font-family: var(--serif); font-size: 1.05rem; color: var(--eiche-d); font-weight: 500; letter-spacing: .02em; }
.welcome h1 { font-family: var(--serif); font-weight: 600; font-size: 1.65rem; line-height: 1.25; margin: .3rem 0 1.6rem; }
.lang-grid { display: grid; gap: .6rem; }
.lang-grid .btn { min-height: 62px; font-size: 1.12rem; justify-content: flex-start; padding: 0 1rem; gap: .9rem; font-weight: 700; }
.lang-grid .code {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2); font-size: .78rem; letter-spacing: .06em; color: var(--marine); font-weight: 900;
}
.lang-grid .btn[aria-pressed="true"] { border-color: var(--marine); }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; margin: 1.1rem 0 1.3rem; }
.pick {
  position: relative; min-height: 104px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface);
  font-weight: 700; font-size: 1.02rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem;
}
.pick[aria-pressed="true"] { border: 2px solid var(--marine); background: var(--accent-soft); color: var(--marine); }
.pick[aria-pressed="true"]::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--marine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Initialen */
.av {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: .68rem; font-weight: 900; letter-spacing: .02em;
  border: 2px solid var(--surface); margin-right: -6px;
}
.av.lg { width: 46px; height: 46px; font-size: .95rem; margin: 0; border: 0; }
.avs { margin-top: .4rem; display: flex; }

/* Kopfzeile */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: calc(.6rem + env(safe-area-inset-top)) 1.1rem .6rem;
}
.top-inner { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: .5rem; }
.top .title { flex: 1; min-width: 0; }
.top .brand { font-family: var(--serif); font-size: .9rem; color: var(--eiche-d); font-weight: 500; }
.top .date { font-size: 1.12rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .btn { min-height: 42px; padding: 0 .7rem; font-size: .9rem; }
#langBtn { width: 42px; padding: 0; font-weight: 900; letter-spacing: .05em; color: var(--marine); font-size: .8rem; }
.top .team-btn { max-width: 46vw; min-width: 0; }
.top .team-btn span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.progress { max-width: 560px; margin: .7rem auto 0; padding: 0 1.1rem; }
.progress .label { display: flex; justify-content: space-between; font-weight: 700; font-size: .92rem; margin-bottom: .4rem; }
.progress .pct { color: var(--ink-3); font-weight: 400; }
.progress .track { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.progress .fill { height: 100%; border-radius: 3px; background: var(--marine); transition: width .25s ease; }

.offline {
  max-width: 560px; margin: .6rem auto 0; padding: .55rem .9rem; border-radius: var(--radius-s);
  background: #f6efe2; color: var(--warn); font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}

main.list { max-width: 560px; margin: 0 auto; padding: .2rem 1.1rem calc(104px + env(safe-area-inset-bottom)); }
.section { margin-top: 1.1rem; }
.section > h2 {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-weight: 700;
  margin: 0 0 .45rem; display: flex; align-items: center; gap: .5rem;
}
.section > h2 svg.i { width: 16px; height: 16px; color: var(--ink-3); }
.count { color: var(--ink-3); font-weight: 700; letter-spacing: 0; }
.group-title { display: flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; margin: .7rem 0 .4rem; }
.group-title:first-of-type { margin-top: .2rem; }
.group-title .count { font-weight: 400; color: var(--ink-3); }
.group-title svg.i { width: 16px; height: 16px; }
.group-title.p1, .group-title.p0 { color: var(--p1); }
.group-title.p2 { color: var(--eiche-d); }
.group-title.p3 { color: var(--ink-2); }
.group-title.run { color: var(--marine); }
.hint { font-size: .85rem; color: var(--ink-2); margin: -.1rem 0 .5rem; display: flex; gap: .45rem; align-items: flex-start; }

/* Chips (Bleibezimmer, Zimmerwahl) */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  min-width: 62px; min-height: 52px; padding: 0 .9rem; border-radius: var(--radius-s);
  border: 1px solid var(--line-2); background: var(--surface);
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; position: relative;
}
.chip .sub { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--eiche); }

.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-2); }
.empty .big-icon { margin-bottom: .6rem; }

/* Untere Leiste */
.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom));
}
.bottombar .inner { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; }
.bottombar button {
  border: 0; background: transparent; border-radius: var(--radius-s); min-height: 58px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
  font-size: .74rem; font-weight: 700; color: var(--ink-2); line-height: 1.15; text-align: center;
}
.bottombar button svg.i { width: 24px; height: 24px; color: var(--marine); }
.bottombar button:active { background: var(--surface-2); }

/* Details-Sheet */
.room-head { display: flex; align-items: baseline; gap: .7rem; }
.room-head .num { font-family: var(--serif); font-size: 2.8rem; font-weight: 600; line-height: 1; }
.room-head .cat { color: var(--ink-2); font-size: .9rem; }
.area-title { display: flex; align-items: center; gap: .55rem; }
.area-title svg.i { color: var(--ink-3); }
.badges { display: flex; flex-wrap: wrap; gap: .35rem; margin: .7rem 0 .2rem; }
.specials { list-style: none; margin: .9rem 0; padding: 0; display: grid; gap: .4rem; text-align: left; }
.specials li {
  display: flex; gap: .7rem; align-items: flex-start;
  background: var(--surface); border-radius: var(--radius-s); padding: .7rem .85rem; border: 1px solid var(--line);
}
.specials li svg.i { width: 20px; height: 20px; color: var(--ink-3); margin-top: .05em; }
.specials li.strong { font-weight: 700; border-color: var(--line-2); }
.specials li.strong svg.i { color: var(--marine); }
.actions { display: grid; gap: .5rem; margin-top: 1rem; }
.actions.two { grid-template-columns: 1fr 1fr; }
.status-line {
  margin: .7rem 0; padding: .6rem .8rem; border-radius: var(--radius-s); background: var(--ok-soft); color: var(--ok); font-weight: 700;
  display: flex; align-items: center; gap: .5rem;
}
.status-line.run { background: var(--accent-soft); color: var(--marine); }
.btn.tile { flex-direction: column; min-height: 78px; gap: .3rem; }
.btn.tile svg.i { width: 24px; height: 24px; color: var(--marine); }
.btn.tile .lbl { font-size: .8rem; color: var(--ink-2); font-weight: 700; }

/* Mängel-Raster */
.sheet-head { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; margin: .1rem 0 1rem; }
.sheet-head svg.i { width: 26px; height: 26px; color: var(--marine); }
.defect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.defect {
  min-height: 92px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  padding: .5rem .3rem; text-align: center; color: var(--ink);
}
.defect svg.i { width: 28px; height: 28px; color: var(--marine); stroke-width: 1.6; }
.defect .lbl { font-size: .74rem; font-weight: 700; color: var(--ink-2); line-height: 1.2; }
.defect:active, .defect.sel { border-color: var(--marine); background: var(--accent-soft); }
#otherBox { margin-top: .9rem; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: .45rem; }
.room-grid .chip { width: 100%; }
.room-grid .chip.wide { grid-column: 1 / -1; font-family: var(--font); font-size: 1rem; font-weight: 700; }
.room-grid .chip.wide svg.i { color: var(--marine); }
textarea.input, input.input {
  width: 100%; min-height: 52px; border: 1px solid var(--line-2); border-radius: var(--radius-s);
  background: var(--surface); padding: .75rem .9rem; font-size: 1rem; resize: vertical;
}
textarea.input { min-height: 90px; }
.photo-btn { position: relative; overflow: hidden; }
.photo-btn .lbl { display: inline-flex; align-items: center; gap: .5em; }
.photo-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-preview { margin-top: .5rem; max-height: 160px; border-radius: var(--radius-s); display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .8rem; }

/* Meine Bilanz */
.stat-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 1rem 1rem 1.1rem; margin-bottom: .8rem; }
.stat-card h3 { margin: 0 0 .9rem !important; color: var(--ink) !important; font-size: 1.1rem !important; display: flex; align-items: center; gap: .6rem; }
.stat-card h3 .av { margin: 0; width: 32px; height: 32px; font-size: .75rem; border: 0; }
.stat-big { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .8rem 0; }
.stat-big .v { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--marine); line-height: 1.1; }
.stat-big .l { font-size: .7rem; color: var(--ink-2); font-weight: 700; margin-top: .2rem; }
.stat-small { display: grid; margin-top: .5rem; font-size: .9rem; color: var(--ink-2); }
.stat-small span { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.stat-small span:last-child { border-bottom: 0; }
.stat-small svg.i { width: 18px; height: 18px; color: var(--ink-3); }
.stat-small b { color: var(--ink); margin-left: auto; }
.sub-h { margin: 1.1rem 0 .5rem; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.badge-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.medal {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .65rem; border-radius: 6px;
  border: 1px solid var(--line-2); font-size: .82rem; font-weight: 700; color: var(--ink);
}
.medal svg.i { width: 17px; height: 17px; color: var(--eiche); }
.next-badge { margin-top: .9rem; font-size: .86rem; color: var(--ink-2); }
.next-badge b { color: var(--ink); }
.next-badge .bar { height: 5px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin-top: .4rem; }
.next-badge .bar div { height: 100%; background: var(--eiche); border-radius: 3px; }
.team-total { text-align: center; padding: 1rem; border-radius: var(--radius); background: var(--marine); color: #fff; }
.team-total .small { opacity: .8; }
.team-total .v { font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.team-total .v span { font-family: var(--font); font-size: 1rem; font-weight: 400; opacity: .85; }

/* Alarm-Popup */
.alert-modal { border-top: 5px solid var(--p1); }
.alert-modal .big-icon { color: var(--p1); }
.alert-modal h2 { color: var(--p1); }
.alert-modal .room-big { font-family: var(--serif); font-size: 4.2rem; font-weight: 600; color: var(--ink); line-height: 1; margin: .2rem 0 .5rem; }

/* Aktions-Hinweis unten */
.atoast {
  position: fixed; left: 50%; bottom: calc(82px + env(safe-area-inset-bottom)); z-index: 85;
  transform: translate(-50%, 12px); opacity: 0; transition: opacity .18s, transform .18s;
  display: flex; align-items: center; gap: .6rem; overflow: hidden;
  background: var(--ink); color: #fff; border-radius: 10px; padding: .45rem .45rem .45rem 1rem;
  font-weight: 700; font-size: 1rem; width: max-content; max-width: 94vw;
  box-shadow: 0 6px 18px rgba(21, 32, 46, .22);
}
.atoast.show { opacity: 1; transform: translate(-50%, 0); }
.atoast .msg { display: flex; align-items: center; gap: .45rem; }
.atoast .msg svg.i.ok { color: #b9d3b5; }
.atoast .acts { display: flex; gap: .3rem; }
.abtn {
  min-width: 48px; min-height: 44px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .12); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.abtn svg.i { width: 22px; height: 22px; }
.abtn:active { background: rgba(255, 255, 255, .24); }
.atoast .tbar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--eiche); width: 100%; transform-origin: left; animation: shrink linear forwards; }
@keyframes shrink { to { transform: scaleX(0); } }

@media (max-width: 370px) {
  .boxes { grid-template-columns: repeat(4, 1fr); }
  .defect-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-big .v { font-size: 1.45rem; }
}
/* ---------- Zimmer-Kästchen ---------- */
.boxes { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; }
.box {
  position: relative; min-height: 60px; padding: .35rem .2rem .45rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface);
  box-shadow: inset 0 -3px 0 var(--p3); transition: transform .1s ease;
}
.box:active { transform: scale(.97); }
.box .n { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1; color: var(--ink); }
.box .s { font-size: .72rem; font-weight: 700; line-height: 1.1; color: var(--ink-2); letter-spacing: .02em; }
.box .s svg.i { width: 14px; height: 14px; }
.box.p1 { box-shadow: inset 0 -3px 0 var(--p1); }
.box.p0 { box-shadow: inset 0 0 0 2px var(--p1); background: #f8ebe5; }
.box.p0 .s { color: var(--p1); }
.box.p1 .s { color: var(--p1); }
.box.p2 { box-shadow: inset 0 -3px 0 var(--eiche); }
.box.p3 { box-shadow: inset 0 -3px 0 var(--p3); }
.box.ps { box-shadow: none; }
.box.running { border: 2px solid var(--marine); background: var(--accent-soft); box-shadow: none; }
.box.running .s { color: var(--marine); }
.box.done { background: var(--ok-soft); border-color: transparent; box-shadow: none; }
.box.done .n { color: var(--ok); }
.box.done .s { color: var(--ok); }

/* Grundreinigung: ruhiges Text-Etikett im Kästchen */
.box .d { margin-top: .15rem; max-width: 100%; padding: .05rem .3rem; border-radius: 4px; background: var(--accent-soft); color: var(--marine);
  font-size: .6rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.box.deep { border-color: #c9d3df; }
.box.pvacant { box-shadow: inset 0 -3px 0 var(--marine-2); }
.group-title.deep { color: var(--marine); }
.deep-banner { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; margin-bottom: .3rem; border-radius: var(--radius-s);
  background: var(--marine); color: #fff; font-weight: 900; font-size: 1.05rem; letter-spacing: .02em; }
.deep-banner svg.i { width: 22px; height: 22px; }
.specials li.deep { background: var(--accent-soft); border-color: #c9d3df; color: var(--marine); }
.specials li.deep svg.i { color: var(--marine); }

/* Nebenflächen als schmale Zeilen */
.arows { display: grid; gap: .35rem; }
.arow {
  display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 46px; padding: 0 .8rem;
  border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); text-align: left;
}
.arow svg.i { width: 18px; height: 18px; color: var(--ink-3); }
.arow .name { flex: 1; font-weight: 700; font-size: .95rem; }
.arow .who { font-size: .75rem; font-weight: 700; color: var(--marine); }
.arow.running { border: 2px solid var(--marine); background: var(--accent-soft); }
.arow.done { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.arow.done svg.i { color: var(--ok); }
.section.done h2 { color: var(--ok); }
.all-done { margin-top: 1.1rem; display: flex; align-items: center; gap: .6rem; padding: .9rem 1rem; border-radius: var(--radius); background: var(--ok-soft); color: var(--ok); font-weight: 700; }

/* ---------- Zimmer-Ansicht ---------- */
.room-view { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; animation: fade .15s ease; }
.rv-top { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: calc(.5rem + env(safe-area-inset-top)) .8rem .4rem; border-bottom: 1px solid var(--line); }
.rv-top .back { min-height: 44px; padding: 0 .7rem 0 .4rem; border-color: transparent; background: transparent; color: var(--marine); font-weight: 700; }
.rv-top .back svg.i { width: 22px; height: 22px; }
.rv-body { flex: 1; padding: 1.1rem 1.1rem .5rem; }
.rv-num { font-family: var(--serif); font-weight: 600; font-size: 4.2rem; line-height: .95; color: var(--ink); }
.rv-cat { color: var(--ink-2); font-size: .95rem; margin-top: .35rem; }
.rv-area { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 600; font-size: 1.8rem; line-height: 1.2; }
.rv-area svg.i { width: 28px; height: 28px; color: var(--ink-3); }
.rv-lines { margin-top: .9rem; display: grid; gap: .35rem; }
.pline { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1rem; color: var(--ink); }
.pline svg.i { width: 20px; height: 20px; }
.pline.p1, .pline.p0 { color: var(--p1); }
.pline.p0 { font-weight: 700; }
.pline.p2 { color: var(--eiche-d); }
.pline.p3 { color: var(--ink-2); }
.pline.ok { color: var(--ok); }
.pline.muted { color: var(--ink-2); font-weight: 400; }
.rv-status { margin-top: 1rem; display: flex; align-items: center; gap: .55rem; padding: .6rem .8rem; border-radius: var(--radius-s); font-weight: 700; }
.rv-status .avs { margin: 0 0 0 auto; }
.rv-status.run { background: var(--accent-soft); color: var(--marine); }
.rv-status.run .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--marine); animation: pulse 1.6s ease-in-out infinite; }
.rv-status.done { background: var(--ok-soft); color: var(--ok); }
.rv-body .specials { margin-top: 1rem; }
.rv-body .specials li { font-size: 1.02rem; padding: .75rem .9rem; }
.rv-actions { position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); padding: .8rem 1.1rem calc(.8rem + env(safe-area-inset-bottom)); display: grid; gap: .55rem; }
.rv-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.rv-tiles .btn.tile { min-height: 64px; }
.team-line { text-align: center; font-size: .85rem; color: var(--ink-2); }
.small-btn { min-height: 40px; font-size: .9rem; }
.blocked { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .9rem; border-radius: var(--radius-s); background: var(--p2-soft); color: var(--eiche-d); font-weight: 700; }
.blocked svg.i { width: 20px; height: 20px; margin-top: .05em; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Trophäen ---------- */
.trophies { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.trophy {
  display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .55rem .2rem .5rem;
  border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface);
  font-size: .66rem; font-weight: 700; line-height: 1.15; color: var(--ink-3); text-align: center; min-height: 74px;
}
.trophy svg.i { width: 26px; height: 26px; color: var(--line-2); stroke-width: 1.5; }
.trophy.got { color: var(--ink); background: #fbf6ee; border-color: #eadcc8; }
.trophy.got svg.i { color: var(--eiche); }
.trophy.sel { border-color: var(--marine); box-shadow: 0 0 0 1px var(--marine); }
.trophy-tip { margin-top: .5rem; display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .8rem; border-radius: var(--radius-s); background: var(--surface-2); font-size: .88rem; color: var(--ink-2); animation: fade .15s ease; }
.trophy-tip b { color: var(--ink); }
.trophy-tip .ti svg.i { width: 26px; height: 26px; color: var(--ink-3); }
.trophy-tip .ti.got svg.i { color: var(--eiche); }
.trophy-tip .st { margin-top: .25rem; font-weight: 700; display: flex; align-items: center; gap: .3rem; }
.trophy-tip .st.ok { color: var(--ok); }
.trophy-tip .st svg.i { width: 15px; height: 15px; }

.trophy-modal { overflow: hidden; }
.trophy-stage { display: flex; justify-content: center; margin: .2rem 0 .8rem; }
.trophy-disc {
  position: relative; width: 104px; height: 104px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #f7efe3; border: 1px solid #eadcc8; color: var(--eiche);
  animation: trophyIn .9s cubic-bezier(.2, 1.4, .4, 1) both;
}
.trophy-disc svg.i { width: 56px; height: 56px; stroke-width: 1.4; }
.trophy-disc::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .85), transparent);
  transform: skewX(-15deg); animation: shine 1.1s ease .55s both;
}
.trophy-text { animation: rise .35s ease .55s both; }
.trophy-text .eyebrow { color: var(--eiche-d); }
.trophy-text h2 { margin: .3rem 0 .3rem; }
.who-line { display: flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 700; margin: .6rem 0 1rem; }
.who-line .av { margin: 0; border: 0; }
@keyframes trophyIn { 0% { transform: scale(.3) translateY(18px); opacity: 0; } 60% { transform: scale(1.12) translateY(-4px); opacity: 1; } 100% { transform: scale(1) translateY(0); } }
@keyframes shine { from { left: -60%; } to { left: 130%; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* =================== v2: Arbeitszeit, Anleitungen, Schichten =================== */
/* Zeit-Leiste im Kopf: Initialen + Status-Punkt */
.clock-avs { display: inline-flex; align-items: center; padding-right: 6px; }
.cav { position: relative; display: inline-flex; }
.cav .av { margin-right: -4px; }
.cav .av.lg { margin: 0; }
.sdot { position: absolute; right: -2px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--bg); background: var(--p3); }
.cav .av.lg + .sdot { width: 14px; height: 14px; right: 0; bottom: 0; }
.sdot.working { background: var(--ok); }
.sdot.break { background: var(--eiche); }
.sdot.off { background: #c4cad1; }
.sdot.done { background: var(--ink-3); }
.top .team-btn .clock-lbl svg.i { width: 18px; height: 18px; color: var(--ink-3); }

/* Panel Arbeitszeit */
.tc-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .85rem; margin-bottom: .55rem; }
.tc-row.all { background: transparent; border-style: dashed; }
.tc-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .65rem; }
.tc-head b { font-size: 1.05rem; }
.tc-sub { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .86rem; color: var(--ink-2); margin-top: .1rem; }
.tc-sub svg.i { width: 15px; height: 15px; }
.tc-sub .sep { color: var(--ink-3); }
.tc-row.working .tc-sub .st { color: var(--ok); font-weight: 700; }
.tc-row.break .tc-sub .st { color: var(--eiche-d); font-weight: 700; }
.tc-acts.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.tc-acts .btn.tile { min-height: 68px; }
.clock-who { display: flex; justify-content: center; gap: .6rem; margin: .2rem 0 1rem; }
.clock-ask h2 { margin-top: .35rem; }
.pick-grid.compact { margin: .6rem 0 1rem; }

/* Anleitung: Knopf mit Mini-Text */
.gpill {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 34px; padding: 0 .6rem;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  font-size: .76rem; font-weight: 700; color: var(--ink-2); white-space: nowrap;
}
.gpill svg.i { width: 16px; height: 16px; color: var(--marine); }
.gpill:active { background: var(--surface-2); }
.g-links { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.g-links .gpill { min-height: 40px; font-size: .85rem; padding: 0 .85rem; }

/* Gemeinschaftsflächen-Zeilen (div statt button wegen Anleitung-Knopf) */
.arow { cursor: pointer; }
.arow .gpill { flex-shrink: 0; }
.arows.checklist { margin-bottom: .45rem; }
.arow.round { padding-left: .25rem; gap: .35rem; }
.chk { border: 0; background: transparent; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-s); color: var(--marine); flex-shrink: 0; }
.chk svg.i { width: 24px; height: 24px; color: var(--marine); stroke-width: 1.6; }
.chk.done svg.i { color: var(--ok); }
.chk:active { background: var(--surface-2); }
.arow.round.done .name { color: var(--ok); }

/* Vollbild-Blatt (Anleitung) */
.overlay.full { background: var(--bg); align-items: stretch; animation: fade .12s ease; }
.guide { width: 100%; max-width: 560px; margin: 0 auto; height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.g-body { padding: 1rem 1.1rem calc(2rem + env(safe-area-inset-bottom)); }
.g-body .eyebrow svg.i { width: 16px; height: 16px; color: var(--marine); }
.g-body h1 { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; line-height: 1.2; margin: .35rem 0 .3rem; }
.g-time { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; color: var(--ink-2); font-weight: 700; }
.g-time svg.i { width: 16px; height: 16px; }
.g-extra { margin-top: 1rem; background: var(--surface); border: 1px solid #eadcc8; border-left: 3px solid var(--eiche); border-radius: var(--radius-s); padding: .75rem .9rem .5rem; }
.g-extra h2 { margin: 0 0 .5rem; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--eiche-d); font-weight: 700; }
.g-ex { padding: .45rem 0; border-top: 1px solid var(--line); }
.g-ex:first-of-type { border-top: 0; padding-top: 0; }
.g-ex-h { display: flex; align-items: center; gap: .5rem; }
.g-ex-h svg.i { width: 18px; height: 18px; color: var(--eiche-d); }
.g-ex ul, .g-tips ul { margin: .3rem 0 .1rem; padding-left: 1.6rem; }
.g-ex li, .g-tips li { margin: .2rem 0; }
.g-steps { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .4rem; }
.g-step {
  width: 100%; display: flex; align-items: flex-start; gap: .75rem; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: .7rem .8rem; font-size: 1rem; line-height: 1.35;
}
.g-n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 900; color: var(--marine); margin-top: -.05rem; }
.g-step[aria-pressed="true"] { background: var(--ok-soft); border-color: transparent; }
.g-step[aria-pressed="true"] .g-n { background: var(--ok); border-color: var(--ok); color: #fff; }
.g-step[aria-pressed="true"] .g-t { color: var(--ink-2); }
.g-tips { margin-top: 1.1rem; background: var(--surface-2); border-radius: var(--radius-s); padding: .75rem .9rem .6rem; }
.g-tips h2 { margin: 0; display: flex; align-items: center; gap: .45rem; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.g-tips h2 svg.i { width: 17px; height: 17px; color: var(--eiche); }
.g-tips li { color: var(--ink); }

/* Meine Schichten */
.worked { display: flex; align-items: center; gap: .55rem; padding: .5rem 0; font-size: .92rem; color: var(--ink-2); }
.worked svg.i { width: 18px; height: 18px; color: var(--ink-3); }
.worked b { margin-left: auto; color: var(--ink); }
.shifts { list-style: none; margin: 0; padding: 0; display: grid; }
.shifts li { display: flex; justify-content: space-between; padding: .42rem .2rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.shifts li:last-child { border-bottom: 0; }
.shifts .d { color: var(--ink-2); }
.shifts .tm { font-weight: 700; font-variant-numeric: tabular-nums; }
.shifts li.today { background: var(--accent-soft); border-radius: 6px; border-bottom-color: transparent; padding-left: .5rem; padding-right: .5rem; }
.shifts li.today .d, .shifts li.today .tm { color: var(--marine); font-weight: 900; }
.tc-who { flex: 1; min-width: 0; }
.tc-row.compact { padding: .6rem .7rem; }
.tc-row.compact .tc-head { margin-bottom: 0; }
.tc-mini { display: flex; gap: .3rem; flex-shrink: 0; }
.ibtn { width: 44px; height: 44px; border-radius: var(--radius-s); border: 1px solid var(--line-2); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--marine); }
.ibtn svg.i { width: 20px; height: 20px; }
.ibtn.primary { background: var(--marine); border-color: var(--marine); color: #fff; }
.ibtn:active { background: var(--surface-2); }
.ibtn.primary:active { background: var(--marine-2); }
.shifts { grid-template-columns: 1fr 1fr; column-gap: .9rem; }
.shifts li { font-size: .86rem; padding: .38rem .15rem; }
.shifts li.today { grid-column: 1 / -1; }
.g-body h1 { display: flex; align-items: center; gap: .55rem; }
.g-icon svg.i { width: 28px; height: 28px; color: var(--eiche-d); stroke-width: 1.5; }
.tc-row.compact .tc-sub { flex-direction: column; align-items: flex-start; gap: 0; }
.tc-row.compact .tc-sub .sep { display: none; }

/* Zimmer-Sonderaufgaben (eigene Checkliste nach dem Start) */
.xtasks { margin-top: 1rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); padding: .35rem .5rem .5rem; }
.xtasks h3 { display: flex; align-items: center; gap: .45rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: .45rem .35rem .25rem; }
.xtasks h3 svg.i { width: 18px; height: 18px; color: var(--marine); }
.xrow { display: flex; align-items: center; gap: .4rem; border-top: 1px solid var(--line); }
.xrow:first-of-type { border-top: 0; }
.xchk { flex: 1; display: flex; align-items: center; gap: .65rem; min-height: 52px; padding: .35rem; border: 0; background: transparent; text-align: left; font: inherit; font-size: 1.02rem; color: var(--ink); border-radius: var(--radius-s); }
.xchk svg.i { width: 26px; height: 26px; color: var(--marine); stroke-width: 1.6; flex-shrink: 0; }
.xchk:active { background: var(--surface-2); }
.xrow.done .xchk { color: var(--ok); }
.xrow.done .xchk svg.i { color: var(--ok); }
.xrow .gpill { min-height: 40px; padding: 0 .7rem; }
.pline.xhint { color: var(--marine); }
.pline.xhint { margin-top: .8rem; }
