/* =====================================================================
   Mitarbeiter-PWA – Papenfuß Norderney
   Design: clean, flat, mobile-first. Vanilla CSS, kein Framework.
   ===================================================================== */

:root {
  --gold:        #bba791;
  --gold-dunkel: #9a8672;
  --akzent:      #8b7355;
  --bg:          #f8f6f3;
  --karte:       #ffffff;
  --erfolg:      #5b9a6e;
  --warnung:     #c44;
  --text:        #3a3a3a;
  --text-hell:   #888;
  --linie:       #ececec;
  /* Kategorie-Farben wie im Backend (an_und_abreise_liste): Abreise rot, Anreise grün, Wechsel orange */
  --kat-ab:      #c47a7f;
  --kat-an:      #6aab73;
  --kat-we:      #c4944a;
  --schatten:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --nav-hoehe:   62px;
  --radius:      14px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

button { font-family: inherit; cursor: pointer; }
a { color: var(--akzent); }

/* ---- Branding-Serif ---- */
.serif {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .03em;
}

/* =====================================================================
   App-Layout
   ===================================================================== */
#app { min-height: 100%; }

.view {
  padding: 16px 16px calc(var(--nav-hoehe) + var(--safe-bottom) + 16px);
  max-width: 640px;
  margin: 0 auto;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---- Kopfzeile ---- */
.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.kopf .gruss { font-size: 13px; color: var(--text-hell); }

/* Stempel-Leiste oben auf der Heute-Seite (statt Begrüßung) */
.kopf-links { flex: 1; min-width: 0; margin-right: 18px; }
.kopf-gruss { font-size: 17px; }
.db-stempel-btn { width: 100%; border: 0; border-radius: 11px; padding: 11px; font-size: 14px; font-weight: 700; color: #fff; }
.db-stempel-btn:disabled { opacity: .55; }
.db-stempel-btn.ein  { background: var(--erfolg); }
.db-stempel-btn.aus  { background: var(--warnung); }
.db-stempel-btn.pause{ background: #fff; color: var(--akzent); border: 1px solid var(--linie); }
.db-stempel-zeit { font-size: 13px; color: var(--text-hell); margin-bottom: 7px; text-align: center; font-variant-numeric: tabular-nums; }
.db-stempel-zeit #db-timer { font-weight: 800; color: var(--text); font-size: 16px; }
.db-stempel-btns { display: flex; gap: 8px; }
.db-stempel-btns .db-stempel-btn { padding: 10px; font-size: 13.5px; }
.kopf .name  { font-size: 21px; font-weight: 700; line-height: 1.2; }
.kopf .datum { font-size: 13px; color: var(--text-hell); margin-top: 2px; }

.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; flex: 0 0 auto;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================================
   Karten
   ===================================================================== */
.karte {
  background: var(--karte);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 16px;
  margin-bottom: 14px;
}
.karte-titel {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text-hell); margin: 0 0 10px;
}

/* ---- Zähler-Kacheln ---- */
.zaehler-reihe { display: flex; gap: 12px; margin-bottom: 14px; }
.zaehler {
  flex: 1; background: var(--karte); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 16px 12px; text-align: center;
}
.zaehler .zahl { font-size: 30px; font-weight: 800; line-height: 1; }
.zaehler .label { font-size: 12px; color: var(--text-hell); margin-top: 6px; }
.zaehler.abreise .zahl { color: var(--kat-ab); }
.zaehler.anreise .zahl { color: var(--kat-an); }
.zaehler.wechsel .zahl { color: var(--kat-we); }
.zaehler.imhaus .zahl  { color: #4a72a0; }
button.zaehler { border: 0; font: inherit; cursor: pointer; padding: 13px 6px; -webkit-appearance: none; appearance: none; }
.zaehler-reihe { gap: 8px; }
button.zaehler .zahl { font-size: 26px; }
button.zaehler .label { font-size: 11px; }
.kal-klick { cursor: pointer; }

/* ---- Mülltonnen-Symbole (farbig) ---- */
.tonne { display: inline-flex; line-height: 1; vertical-align: middle; }
.tonnen-row { display: inline-flex; gap: 2px; align-items: center; }
.auf-tonnen { margin-top: 4px; }
.ad-tonnen { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 2px; }
.ad-tonne-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #4a4540; font-weight: 600; }

/* Müll: Stückzahl je Tonnenart beim Abschließen erfassen (Pflichtfelder) */
.ad-tonnen-mengen { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.ad-tm-zeile {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 8px 10px;
}
.ad-tm-icon { flex: 0 0 auto; display: inline-flex; }
.ad-tm-name { flex: 1 1 auto; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.25; }
.ad-tm-name small { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-hell); }
.ad-tm-input {
  flex: 0 0 74px; width: 74px; text-align: center;
  font-size: 17px; font-weight: 700; color: var(--text);
  border: 1.5px solid var(--linie); border-radius: 10px; padding: 8px 4px; background: #fff;
}
.ad-tm-input:focus { outline: none; border-color: var(--gold); }
.ad-tm-input.fehler { border-color: #e03131; background: #fff5f5; }

/* Dropdown-Variante: Anzahl wählen, begrenzt auf den vorhandenen Bestand */
.ad-tm-select {
  flex: 0 0 84px; width: 84px;
  text-align: center; text-align-last: center;   /* Auswahl mittig, auch geschlossen */
  padding: 8px 22px 8px 8px;                     /* Platz für den Pfeil rechts */
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%239a8a74' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
}
/* Solange nichts gewählt ist, den Platzhalter dezent zeigen */
.ad-tm-select:invalid, .ad-tm-select option[value=""] { color: var(--text-hell); }
.ad-tm-hinweis { font-size: 12px; color: var(--text-hell); margin-bottom: 4px; }

/* ---- Türöffnung: Akkordeons (Apartments / Standorte) ---- */
.tuer-acc { margin-bottom: 10px; }
.tuer-acc-head {
  width: 100%; display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--karte); border: 0; border-radius: var(--radius); box-shadow: var(--schatten);
  padding: 13px 14px; font: inherit; text-align: left; color: var(--text);
}
.tuer-acc-titel { font-size: 15px; font-weight: 700; flex: 1 1 auto; }
.tuer-acc-count {
  background: #ece7df; color: #6b5b4e; border-radius: 20px; font-size: 12px;
  font-weight: 700; padding: 1px 9px; flex: 0 0 auto;
}
.tuer-acc-chev { transition: transform .18s ease; color: #9a8a74; flex: 0 0 auto; }
.tuer-acc-head.offen .tuer-acc-chev { transform: rotate(180deg); }
.tuer-acc-body { padding-top: 10px; }
.tuer-acc-body.zu { display: none; }

/* ---- Türöffnung (Schließanlage) ---- */
.tuer-card {
  background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten);
  padding: 12px 14px; margin-bottom: 12px;
}
.tuer-kopf { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.tuer-name { font-size: 16px; font-weight: 700; color: var(--text); }
.tuer-ort { font-size: 13px; color: var(--text-hell); margin-left: auto; white-space: nowrap; }
.tuer-slide {
  position: relative; height: 52px; border-radius: 26px; overflow: hidden;
  background: #ece7df; -webkit-user-select: none; user-select: none; touch-action: none;
}
.tuer-slide-fill {
  position: absolute; top: 0; left: 0; height: 100%; width: 52px;
  background: linear-gradient(90deg, #cfe3d2, #8ec79a); border-radius: 26px;
}
.tuer-slide-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: #7a6f5e; pointer-events: none; z-index: 1;
  padding-left: 40px;
}
.tuer-knob {
  position: absolute; top: 4px; left: 4px; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.22); color: #2e7d32;
  display: flex; align-items: center; justify-content: center; z-index: 2;
  cursor: grab; touch-action: none;
}
.tuer-knob:active { cursor: grabbing; }
.tuer-slide.laden .tuer-slide-fill { background: linear-gradient(90deg, #8ec79a, #5fae6e); }
.tuer-slide.ok .tuer-slide-fill { background: linear-gradient(90deg, #5fae6e, #2e7d32); }
.tuer-slide.ok .tuer-slide-label { color: #fff; }
.tuer-slide.fehler .tuer-slide-fill { background: linear-gradient(90deg, #e7b3ad, #c0392b); }
.tuer-slide.fehler .tuer-slide-label { color: #fff; }

/* ---- Housekeeping-Block (Kalender, unter den Zähler-Kacheln) ---- */
.kal-hk { margin: -2px 0 14px; }
.kal-hk-kopf {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-hell); margin: 0 2px 7px;
}
.kal-hk-grid { display: flex; gap: 8px; }
.kal-hk-card {
  flex: 1; min-width: 0; background: var(--karte); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 11px 6px 9px; text-align: center;
}
.kal-hk-foto {
  display: inline-flex; width: 42px; height: 42px; border-radius: 50%;
  overflow: hidden; background: #e9e3d8; align-items: center; justify-content: center;
}
.kal-hk-foto img { width: 100%; height: 100%; object-fit: cover; }
.kal-hk-foto.fallback { background: #bba791; }
.kal-hk-foto.fallback::after {
  content: attr(data-ini); color: #fff; font-weight: 700; font-size: 16px;
}
.kal-hk-name {
  font-size: 13px; font-weight: 600; color: var(--text); margin-top: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kal-hk-zeit { font-size: 12px; font-weight: 700; margin-top: 2px; }
.kal-hk-zeit.arbeit { color: #1f8a4c; }
.kal-hk-zeit.urlaub { color: #185fa5; }
.kal-hk-zeit.krank  { color: #a32d2d; }
.kal-hk-zeit.frei   { color: #9a8a74; font-weight: 600; }
/* Abwesende dezent ausgrauen (Foto s/w) */
.kal-hk-card.frei, .kal-hk-card.urlaub, .kal-hk-card.krank { background: #f4f1ec; }
.kal-hk-card.frei .kal-hk-foto img,
.kal-hk-card.urlaub .kal-hk-foto img,
.kal-hk-card.krank .kal-hk-foto img { filter: grayscale(100%); opacity: .6; }
.kal-chev { font-style: normal; opacity: .55; font-size: 12px; margin-left: 1px; }
.kal-chev-row { margin-left: auto; align-self: center; font-size: 18px; color: var(--text-hell); opacity: .5; padding-left: 6px; }

/* ===== Kalender Reservierungs-Detail (Bottom-Sheet) ===== */
.kd-ov { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0);
  display: flex; align-items: flex-end; justify-content: center; transition: background .2s; }
.kd-ov.auf { background: rgba(0,0,0,.45); }
.kd-sheet { width: 100%; max-width: 460px; max-height: 90vh; background: var(--karte);
  border-radius: 18px 18px 0 0; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .22s ease; box-shadow: 0 -4px 24px rgba(0,0,0,.2); }
.kd-ov.auf .kd-sheet { transform: translateY(0); }
.kd-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px;
  border-bottom: 1px solid var(--linie); flex: 0 0 auto; }
.kd-head b { font-size: 16px; }
.kd-close { background: none; border: 0; font-size: 18px; color: var(--text-hell); cursor: pointer; padding: 4px 8px; }
.kd-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 16px calc(20px + var(--safe-bottom)); }

.kd-kopf { margin-bottom: 12px; }
.kd-name { font-size: 19px; font-weight: 700; color: var(--text); line-height: 1.2; }
.kd-sub { font-size: 13px; color: var(--text-hell); margin-top: 2px; }
.kd-status { background: #eef2f7; color: #33526e; border-radius: 6px; padding: 1px 6px; font-size: 11px; }
.kd-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.kd-btn { min-width: 120px; }
.kd-btn { flex: 1; text-align: center; padding: 11px; border-radius: 11px; border: 1px solid var(--linie);
  background: #fff; color: var(--akzent); font-size: 14px; font-weight: 600; text-decoration: none; }
.kd-btn.an { background: var(--erfolg); border-color: var(--erfolg); color: #fff; }
.kd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kd-info { background: #faf8f4; border: 1px solid var(--linie); border-radius: 10px; padding: 7px 10px; }
.kd-info-l { font-size: 11px; color: var(--text-hell); }
.kd-info-v { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 1px; word-break: break-word; }
.kd-sek { font-size: 13px; font-weight: 700; color: var(--akzent); margin: 18px 0 8px; }
.kd-pnt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; background: #c2bcb0; }
.kd-pnt.ja { background: var(--erfolg); }
.kd-pnt.nein { background: #c8c2b6; }
.kd-pnt.warn { background: #e0922f; }
.kd-pnt-z { color: var(--text-hell); font-weight: 400; font-size: 11px; }
.kd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kd-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; background: #faf8f4;
  border: 1px solid var(--linie); border-radius: 8px; padding: 4px 8px; }
.kd-chip img { width: 17px; height: 17px; }
.kd-notiz { font-size: 13px; color: var(--text); line-height: 1.4; background: #faf6ef;
  border: 1px solid var(--linie); border-radius: 10px; padding: 10px; }
.kd-leer { font-size: 13px; color: var(--text-hell); padding: 2px; }
.kd-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.kd-row:last-child { border-bottom: 0; }
.kd-av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  background: var(--gold); display: inline-flex; align-items: center; justify-content: center; }
.kd-av img { width: 100%; height: 100%; object-fit: cover; }
.kd-av.fallback::after { content: attr(data-ini); color: #fff; font-size: 13px; font-weight: 700; }
.kd-row-t { flex: 1; min-width: 0; }
.kd-row-1, .kd-tl-1 { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.kd-dat { color: var(--text-hell); font-size: 12px; font-weight: 400; flex: 0 0 auto; }
.kd-row-2 { font-size: 12px; color: var(--text-hell); margin-top: 1px; }
.kd-row-2.i { font-style: italic; }
.kd-mit { font-size: 12px; color: var(--text-hell); margin-top: 1px; }
.kd-ht { display: flex; flex-direction: column; gap: 4px; }
.kd-ht-z { font-size: 13px; color: var(--text); }
.kd-ht-d { font-weight: 600; }
.kd-tl-i { display: flex; gap: 10px; padding: 8px 0; }
.kd-tl-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; margin-top: 4px; background: #999; }
.kd-tl-i.typ-schaden .kd-tl-dot { background: #c0392b; }
.kd-tl-i.typ-turnus .kd-tl-dot { background: #4a72a0; }
.kd-tl-i.typ-aufgabe .kd-tl-dot { background: var(--erfolg); }
.kd-tl-t { flex: 1; min-width: 0; }
.kd-tl-2 { font-size: 12.5px; color: var(--text); margin-top: 2px; line-height: 1.35; }
.kd-tl-3 { font-size: 12px; color: var(--text-hell); margin-top: 1px; }

/* ===== Fundsachen-Detail (Variante C): Hero + Gästekarten + Lightbox ===== */
.fg-hero { display: flex; gap: 12px; background: #fff; border: 1px solid var(--linie);
  border-radius: 12px; padding: 12px; align-items: stretch; }
.fg-hero-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fg-status { align-self: flex-start; background: #efe7d8; color: #7a6a4d; font-size: 11px; padding: 2px 9px; border-radius: 7px; }
.fg-hero-meta { font-size: 12px; color: var(--text-hell); margin-top: 8px; }
.fg-hero-desc { font-size: 14px; color: var(--text); margin-top: 4px; line-height: 1.4; flex: 1; }
.fg-hero-foto { width: 108px; flex: 0 0 auto; border: 0; padding: 0; border-radius: 10px;
  overflow: hidden; background: #e7ddcb; cursor: pointer; }
.fg-hero-foto img { width: 100%; height: 100%; min-height: 96px; object-fit: cover; display: block; }
.fg-melder { display: flex; align-items: center; gap: 9px; }
.fg-melder-av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  background: var(--gold); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; }
.fg-melder-av img { width: 100%; height: 100%; object-fit: cover; }
.fg-melder-name { font-size: 14px; font-weight: 600; color: var(--text); }
.fg-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.fg-thumb { width: 60px; height: 60px; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: #e7ddcb; cursor: pointer; }
.fg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fg-wrap { display: flex; flex-direction: column; gap: 8px; }
.fgc-item { }
.fgc-card { display: flex; gap: 10px; align-items: center; background: #fff;
  border: 1px solid var(--linie); border-radius: 10px; padding: 10px 12px; }
.fgc-card.has-det { cursor: pointer; }
.fgc-card.open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.fgc-mid { flex: 1; min-width: 0; }
.fgc-name { font-size: 14px; font-weight: 600; color: var(--text); }
.fgc-tag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-left: 4px;
  background: #efeae3; color: #8a7f6e; vertical-align: 1px; }
.fgc-tag.akt { background: #e4f1e8; color: #3c6b4d; }
.fgc-sub { font-size: 12px; color: var(--text-hell); margin-top: 1px; }
.fgc-act { display: flex; gap: 6px; flex: 0 0 auto; }
.fgc-ic { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 15px; text-decoration: none; background: #fff; border: 1px solid var(--linie); }
.fgc-ic.call { background: var(--erfolg); border-color: var(--erfolg); }
.fgc-chev { flex: 0 0 auto; color: var(--gold); font-size: 12px; transition: transform .15s; }
.fgc-card.open .fgc-chev { transform: rotate(180deg); }
.fgc-detail { display: none; background: #faf8f4; border: 1px solid var(--linie); border-top: 0;
  border-radius: 0 0 10px 10px; padding: 2px 12px; }
.fgc-detail.open { display: block; }
.fgc-d-row { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid #efe9df; font-size: 13px; }
.fgc-d-row:last-child { border-bottom: 0; }
.fgc-d-lbl { color: #8a7f6e; font-weight: 600; flex: 0 0 auto; }
.fgc-d-val { color: var(--text); text-align: right; word-break: break-word; }
a.fgc-d-val { color: var(--akzent); text-decoration: none; }

/* Schaden-Detail (Variante 3): farbiger Prio-Kopf + Hero + Beteiligte */
.sd-band { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 13px; border-radius: 12px; margin-bottom: 12px; }
.sd-band-titel { font-size: 16px; font-weight: 700; }
.sd-band-prio { font-size: 12px; margin-top: 2px; }
.sd-pill { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  white-space: nowrap; background: rgba(255,255,255,.7); color: #6a5b48; }
.sd-hero { display: flex; gap: 11px; }
.sd-foto { width: 96px; flex: 0 0 auto; border-radius: 10px; overflow: hidden; background: #e7ddcb; }
.sd-foto img { width: 100%; height: 100%; min-height: 88px; object-fit: cover; display: block; }
.sd-hero-txt { flex: 1; min-width: 0; }
.sd-desc { font-size: 14px; line-height: 1.4; color: var(--text); }
.sd-orig { font-size: 12px; color: var(--text-hell); font-style: italic; margin-top: 3px; }
.sd-meta { font-size: 12px; color: var(--text-hell); margin-top: 6px; }
.sd-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.sd-thumbs img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }
.sd-bet { display: flex; gap: 8px; }
.sd-bet-card { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--linie); border-radius: 10px; padding: 8px 10px; }
.sd-bet-lbl { font-size: 11px; color: var(--text-hell); }
.sd-bet-name { font-size: 13px; font-weight: 600; color: var(--text); }
.sd-av { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  background: var(--gold); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; }
.sd-av img { width: 100%; height: 100%; object-fit: cover; }
.sd-zuw { background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 12px; }
.sd-zuw select { width: 100%; padding: 12px 14px; font-size: 16px; border: 1px solid var(--linie);
  border-radius: 10px; background: #fff; color: var(--text); -webkit-appearance: none; appearance: none; }
.sd-zuw select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(187,167,145,.18); outline: none; }
.sd-zuw-btn { width: 100%; margin-top: 10px; padding: 13px; border: 0; border-radius: 11px;
  font-size: 15px; font-weight: 700; color: #fff; background: var(--gold); }
.sd-zuw-btn:active { transform: scale(.99); }
.sd-zuw-btn:disabled { opacity: .6; }

/* Fundsachen-Verlauf (Bearbeitungshistorie) – Mitarbeiter-Foto + Notiz */
.fv-wrap { display: flex; flex-direction: column; gap: 10px; }
.fv-item { display: flex; gap: 10px; }
.fv-av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  background: var(--gold); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; }
.fv-av img { width: 100%; height: 100%; object-fit: cover; }
.fv-body { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--linie); border-radius: 10px; padding: 8px 11px; }
.fv-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fv-name { font-size: 13px; font-weight: 600; color: var(--text); }
.fv-status { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: #efe7d8; color: #7a6a4d; }
.fv-zeit { font-size: 11px; color: var(--text-hell); margin-top: 1px; font-variant-numeric: tabular-nums; }
.fv-notiz { font-size: 13px; color: var(--text); margin-top: 5px; line-height: 1.4; }
.fv-del { margin-left: auto; background: none; border: 0; font-size: 14px; line-height: 1; color: #c44; cursor: pointer; padding: 2px 4px; opacity: .65; }
.fv-del:hover { opacity: 1; }

.fg-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.9);
  display: flex; align-items: center; justify-content: center; }
.fg-lightbox img { max-width: 96%; max-height: 90%; object-fit: contain; border-radius: 6px; }
.fg-lb-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); right: 16px;
  background: rgba(0,0,0,.45); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; }

/* =====================================================================
   Heute – farbcodierte Bereiche (wie an_und_abreise_liste.php im Backend)
   Abreisen = rot, Anreisen = grün, Wechsel = orange
   ===================================================================== */
.sektion {
  background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten);
  overflow: hidden; margin-bottom: 14px; border: 1.5px solid var(--linie);
}
.sektion-kopf {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em;
}
.sektion-kopf .anz {
  background: rgba(255,255,255,.28); border-radius: 20px; padding: 1px 11px; font-size: 13px;
}
.sektion-body { padding: 0; }
.sektion-body .eintrag { padding-left: 16px; padding-right: 16px; }

.sektion-abreise { border-color: #d4918f; }
.sektion-abreise .sektion-kopf { background: var(--kat-ab); }
.sektion-abreise .eintrag:nth-of-type(even) { background: #faf0f0; }
.sektion-abreise .wohnung { background: #f3e0e0; color: #a85458; }

.sektion-anreise { border-color: #8dbc8f; }
.sektion-anreise .sektion-kopf { background: var(--kat-an); }
.sektion-anreise .eintrag:nth-of-type(even) { background: #f0f7f0; }
.sektion-anreise .wohnung { background: #e0ede1; color: #4a7d52; }

.sektion-wechsel { border-color: #d4b07a; }
.sektion-wechsel .sektion-kopf { background: var(--kat-we); }
.sektion-wechsel .eintrag:nth-of-type(even) { background: #faf3e8; }
.sektion-wechsel .wohnung { background: #f0e5d3; color: #9a6f28; }
.sektion-wechsel .gast .pfeil { color: var(--kat-we); font-weight: 700; }

/* Icon-Zeile: eigene Zeile UNTER den Daten, umbrechend */
.eintrag .info .icons {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 8px;
}
.eintrag .info .icons img { width: 26px; height: 26px; object-fit: contain; display: block; }
.eintrag .info .icons img.status { width: 24px; height: 24px; }

/* Wechsel: Abreise rot, Anreise grün, untereinander */
.eintrag .info .zeile-ab { font-weight: 600; color: var(--kat-ab); }
.eintrag .info .zeile-an { font-weight: 600; color: var(--kat-an); margin-top: 2px; }

/* ---- Listeneintrag (Gast/Wohnung) ---- */
.eintrag {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--linie);
}
.eintrag:last-child { border-bottom: 0; }
.eintrag .wohnung {
  flex: 0 0 56px; height: 40px; border-radius: 10px;
  background: var(--bg); color: var(--akzent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.eintrag .info { flex: 1; min-width: 0; }
.eintrag .info .gast { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eintrag .info .meta { font-size: 12px; color: var(--text-hell); }

/* Wohnungsspalte: Nummer + Reinigungsstatus darunter */
.wohnung-spalte { flex: 0 0 56px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wohnung-spalte .wohnung { flex: none; width: 56px; }
.reinigung-icon { width: 24px; height: 24px; object-fit: contain; display: block; }
/* Reinigung läuft -> gelbes Besen-Badge (weder grün noch rot, fällt sofort auf) */
.reinigung-icon.reinigung-aktiv {
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  background: #ffd23f; border-radius: 50%; box-shadow: 0 0 0 2px #fff3c4;
  line-height: 1; text-decoration: none;
}
/* „Reinigung läuft"-Text hinter Checkout */
.reinigung-tag {
  display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: #8a6d00; background: #fff1bf; padding: 1px 7px;
  border-radius: 20px; vertical-align: middle; text-decoration: none; margin-left: 4px;
}
/* Bei laufender Reinigung den Namen NICHT durchstreichen (überschreibt ausgecheckt-Look) */
.eintrag.ausgecheckt .gast .reinigung-tag,
.eintrag .zeile-ab.ausgecheckt .reinigung-tag { text-decoration: none; }

/* Umzug-Badge: Gast zieht innerhalb der Buchung das Zimmer */
.umzug-tag {
  display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: #0d5b73; background: #cdeef7; padding: 1px 7px;
  border-radius: 20px; vertical-align: middle; text-decoration: none; margin-left: 4px; white-space: nowrap;
}
.eintrag.ausgecheckt .gast .umzug-tag,
.eintrag .zeile-ab.ausgecheckt .umzug-tag { text-decoration: none; }

/* Ausgecheckter Gast: grau + durchgestrichen + Checkout-Label */
.eintrag.ausgecheckt .gast, .eintrag .zeile-ab.ausgecheckt {
  color: var(--text-hell); text-decoration: line-through;
}
.checkout-tag {
  display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: #7a818a; background: #eef0f2; padding: 1px 7px;
  border-radius: 20px; vertical-align: middle; text-decoration: none; margin-left: 4px;
}
.eintrag .badge {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .03em;
}
.badge.ab { background: #fbe9e9; color: var(--warnung); }
.badge.an { background: #e7f3ec; color: var(--erfolg); }
.badge.we { background: #f3eee6; color: var(--gold-dunkel); }

.leer {
  text-align: center; color: var(--text-hell);
  padding: 28px 12px; font-size: 14px;
}

/* =====================================================================
   Bottom-Navigation – IMMER fixed, nie scrollend
   ===================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  /* KEIN backdrop-filter und KEIN transform/will-change hier!
     Beides erzeugt auf iOS eine eigene Compositing-Ebene für ein
     position:fixed-Element. WebKit führt diese Ebene beim Scrollen nicht
     synchron nach -> die Leiste „hinkt" hinterher und steht mitten im Bild.
     Deckende Farbe statt Blur = stabil. */
  background: #fff;
  border-top: 1px solid var(--linie);
  padding-bottom: var(--safe-bottom);
  height: calc(var(--nav-hoehe) + var(--safe-bottom));
}
.bottom-nav button {
  flex: 1; border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--text-hell); font-size: 11px; font-weight: 600;
  padding: 6px 2px; margin: 6px 4px; border-radius: 14px;
  transition: color .15s, background-color .15s;
}
.bottom-nav button svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.bottom-nav button.aktiv { background: var(--gold-dunkel); color: #fff; }
.bottom-nav button.aktiv svg { stroke: #fff; }
.bottom-nav[hidden] { display: none; }

/* =====================================================================
   Login
   ===================================================================== */
.login-wrap {
  min-height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px calc(32px + var(--safe-bottom));
  background:
    radial-gradient(120% 80% at 50% 0%, #fff 0%, var(--bg) 60%);
}
.login-marke { text-align: center; margin: 0 auto 34px; width: 100%; max-width: 360px; }
.login-logo-img { width: 80%; height: auto; display: block; margin: 0 auto 14px; }
.login-marke .logo {
  width: 78px; height: 78px; border-radius: 20px;
  background: var(--gold); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-size: 42px; font-weight: 700;
  margin: 0 auto 18px; box-shadow: var(--schatten);
}
.login-marke .titel { font-size: 24px; font-weight: 700; }
.login-marke .unter { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dunkel); margin-top: 2px; }

.login-card {
  width: 100%; max-width: 360px;
  background: var(--karte); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 22px;
}
.feld { margin-bottom: 14px; }
.feld label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-hell); }
.feld input {
  width: 100%; padding: 13px 14px; font-size: 16px;
  border: 1px solid var(--linie); border-radius: 11px; background: #fff;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.feld input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(187,167,145,.18); }

.btn-primaer {
  width: 100%; padding: 14px; border: 0; border-radius: 11px;
  background: var(--gold); color: #fff; font-size: 16px; font-weight: 700;
  transition: background .15s, transform .05s;
}
.btn-primaer:active { transform: scale(.985); }
.btn-primaer:disabled { opacity: .6; }
.login-bleiben {
  display: flex; align-items: center; gap: 9px;
  margin: -2px 0 16px; font-size: 14px; color: var(--text-hell);
  cursor: pointer; user-select: none;
}
.login-bleiben input { width: 18px; height: 18px; accent-color: var(--gold); flex: 0 0 auto; }

.btn-text {
  width: 100%; padding: 12px; border: 0; background: none;
  color: var(--warnung); font-size: 14px; font-weight: 600;
}

.hinweis {
  font-size: 13px; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px;
  display: none;
}
.hinweis.fehler { display: block; background: #fbe9e9; color: var(--warnung); }
.hinweis.ok     { display: block; background: #e7f3ec; color: var(--erfolg); }

/* =====================================================================
   App-Installation ("Zum Home-Bildschirm hinzufügen") auf dem Login
   ===================================================================== */
.install-btn {
  width: 100%; max-width: 360px; margin: 16px auto 0;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 14px; border: 1px solid var(--linie); border-radius: 11px;
  background: var(--karte); color: var(--akzent);
  font-size: 15px; font-weight: 600; box-shadow: var(--schatten);
  cursor: pointer; transition: transform .05s;
}
.install-btn:active { transform: scale(.985); }
.install-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.inst-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.42);
  display: flex; align-items: flex-end; justify-content: center; z-index: 1000;
  animation: instFade .15s ease;
}
@keyframes instFade { from { opacity: 0; } to { opacity: 1; } }
.inst-sheet {
  width: 100%; max-width: 460px; background: var(--karte);
  border-radius: 18px 18px 0 0; padding: 20px 20px calc(22px + var(--safe-bottom));
  box-shadow: 0 -4px 24px rgba(0,0,0,.18);
  animation: instUp .2s ease;
}
@keyframes instUp { from { transform: translateY(30px); } to { transform: translateY(0); } }
.inst-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.inst-kopf b { font-size: 17px; }
.inst-close { background: none; border: 0; font-size: 18px; color: var(--text-hell); cursor: pointer; padding: 4px 8px; line-height: 1; }
.inst-intro { font-size: 14px; color: var(--text); margin: 0 0 12px; }
.inst-step { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--linie); }
.inst-step:first-of-type { border-top: 0; }
.inst-num { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.inst-step .txt { font-size: 14px; line-height: 1.35; }
.inst-step .ic { flex: 0 0 auto; color: var(--akzent); display: inline-flex; }
.inst-step .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inst-note { font-size: 14px; line-height: 1.4; color: var(--text); background: #faf6ef; border: 1px solid var(--linie); border-radius: 10px; padding: 13px; }

/* =====================================================================
   Hilfsklassen / Lade-Spinner
   ===================================================================== */
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--linie); border-top-color: var(--gold);
  animation: dreh .7s linear infinite; margin: 40px auto;
}
@keyframes dreh { to { transform: rotate(360deg); } }

.platzhalter {
  text-align: center; color: var(--text-hell); padding: 60px 24px;
}
.platzhalter .icon { font-size: 40px; margin-bottom: 12px; opacity: .5; }
.platzhalter h2 { font-size: 18px; color: var(--text); margin: 0 0 6px; }

/* =====================================================================
   Housekeeping – Aufgaben & Checkliste
   ===================================================================== */

/* Topbar mit Zurück-Button (Detailansicht) */
.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.topbar .zurueck {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--linie);
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text); flex: 0 0 auto;
}
.topbar .titel { font-size: 19px; font-weight: 700; line-height: 1.15; }
.topbar .titel small { display: block; font-size: 12px; color: var(--text-hell); font-weight: 400; }

/* Typ-/Status-Badges */
.tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.tag.wechsel      { background: #f3eee6; color: var(--gold-dunkel); }
.tag.endreinigung { background: #fbe9e9; color: var(--warnung); }
.tag.zwischenreinigung, .tag.handtuch { background: #eef2f6; color: #5a6b7a; }
.tag.offen     { background: #eef0f2; color: #7a818a; }
.tag.in_arbeit { background: #fff4e0; color: #b07d2b; }
.tag.erledigt  { background: #e7f3ec; color: var(--erfolg); }

/* Aufgaben-Karte */
.aufgabe-karte { background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten);
  padding: 14px 16px; margin-bottom: 12px; cursor: pointer; border: 1px solid transparent;
  transition: border-color .12s, transform .05s; }
.aufgabe-karte:active { transform: scale(.992); }
.aufgabe-karte.erledigt { opacity: .72; }
.aufgabe-karte .zeile1 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.aufgabe-karte .wohnung-name { font-size: 17px; font-weight: 700; }
.aufgabe-karte .gast { font-size: 13px; color: var(--text-hell); margin-top: 4px; }
.aufgabe-karte .gast b { color: var(--text); font-weight: 600; }
.aufgabe-karte .meine { font-size: 11px; color: var(--gold-dunkel); font-weight: 700; }

/* Fortschrittsbalken */
.progress { height: 7px; border-radius: 5px; background: var(--bg); overflow: hidden; margin-top: 12px; }
.progress > span { display: block; height: 100%; background: var(--erfolg); border-radius: 5px; transition: width .25s; }
.progress-text { font-size: 12px; color: var(--text-hell); margin-top: 6px; display: flex; justify-content: space-between; }

/* Checklisten-Punkt */
.check-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 4px;
  border-bottom: 1px solid var(--linie); cursor: pointer; }
.check-item:last-child { border-bottom: 0; }
.check-box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--linie);
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; transition: background .12s, border-color .12s; }
.check-item.an .check-box { background: var(--erfolg); border-color: var(--erfolg); }
.check-item .ci-text { flex: 1; }
.check-item .ci-name { font-weight: 600; }
.check-item.an .ci-name { text-decoration: line-through; color: var(--text-hell); font-weight: 400; }
.check-item .ci-desc { font-size: 12px; color: var(--text-hell); margin-top: 2px; }

/* Fertig-Leiste (über der Bottom-Nav) */
.aktionsleiste { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-hoehe) + var(--safe-bottom));
  padding: 10px 16px; background: linear-gradient(to top, var(--bg) 60%, rgba(248,246,243,0));
  max-width: 640px; margin: 0 auto; z-index: 900; }
.btn-erfolg { width: 100%; padding: 14px; border: 0; border-radius: 11px; background: var(--erfolg);
  color: #fff; font-size: 16px; font-weight: 700; }
.btn-erfolg:disabled { opacity: .5; }
.view.mit-aktion { padding-bottom: calc(var(--nav-hoehe) + var(--safe-bottom) + 80px); }

/* Datumszeile / Refresh */
.listen-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.listen-kopf .titel { font-size: 21px; font-weight: 700; }
.listen-kopf .datum { font-size: 13px; color: var(--text-hell); }
.refresh-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--linie);
  background: #fff; font-size: 16px; color: var(--text); }

/* =====================================================================
   Stempeluhr
   ===================================================================== */
.stempel-karte { background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten);
  padding: 26px 20px; text-align: center; margin-bottom: 16px; }
.stempel-status-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px;
  font-weight: 700; padding: 5px 14px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; }
.stempel-status-pill .dot { width: 9px; height: 9px; border-radius: 50%; }
.sp-aus    { background: #eef0f2; color: #7a818a; }
.sp-aus .dot    { background: #b6bcc2; }
.sp-aktiv  { background: #e7f3ec; color: var(--erfolg); }
.sp-aktiv .dot  { background: var(--erfolg); animation: puls 1.6s infinite; }
.sp-pause  { background: #fff4e0; color: #b07d2b; }
.sp-pause .dot  { background: #d99a2b; }
@keyframes puls { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.stempel-uhr { font-size: 46px; font-weight: 800; letter-spacing: .01em; margin: 16px 0 4px;
  font-variant-numeric: tabular-nums; }
.stempel-unter { font-size: 13px; color: var(--text-hell); }
.stempel-heute { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--linie);
  font-size: 14px; color: var(--text-hell); }
.stempel-heute b { font-size: 20px; color: var(--text); font-weight: 800; display: block; margin-top: 2px;
  font-variant-numeric: tabular-nums; }

.stempel-buttons { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.btn-stempel { width: 100%; padding: 16px; border: 0; border-radius: 13px; font-size: 17px; font-weight: 700; color: #fff; }
.btn-stempel:active { transform: scale(.99); }
.btn-stempel:disabled { opacity: .55; }
.btn-stempel.ein  { background: var(--erfolg); }
.btn-stempel.aus  { background: var(--warnung); }
.btn-stempel.pause{ background: #fff; color: var(--akzent); border: 1px solid var(--linie); }
.btn-zeile { display: flex; gap: 10px; }
.btn-zeile .btn-stempel { flex: 1; }

/* Monatsübersicht */
.monat-summe { display: flex; gap: 10px; margin-bottom: 14px; }
.monat-summe .box { flex: 1; background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten);
  padding: 14px 8px; text-align: center; }
.monat-summe .box .v { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.monat-summe .box .l { font-size: 11px; color: var(--text-hell); margin-top: 4px; }
.monat-summe .box .v.plus  { color: var(--erfolg); }
.monat-summe .box .v.minus { color: var(--warnung); }
.monat-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.monat-nav button { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--linie);
  background: #fff; font-size: 16px; color: var(--text); }
.monat-nav .label { font-weight: 700; font-size: 16px; }
.tag-zeile { display: flex; justify-content: space-between; align-items: center; padding: 11px 0;
  border-bottom: 1px solid var(--linie); font-size: 14px; }
.tag-zeile:last-child { border-bottom: 0; }
.tag-zeile .tz-datum { color: var(--text); }
.tag-zeile .tz-datum small { color: var(--text-hell); }
.tag-zeile .tz-ist { font-weight: 700; font-variant-numeric: tabular-nums; }
.tag-zeile .tz-bem { display: inline-block; background: #ececea; color: #7a7a74; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 6px; margin-left: 6px; vertical-align: middle; }

/* =====================================================================
   Kalender – Tages-Chips, Diagramm, Tagesliste
   ===================================================================== */
.kal-nav { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.kal-arrow { flex: 0 0 auto; width: 30px; height: 56px; border: 0; background: none;
  font-size: 22px; color: var(--gold-dunkel); }
.kal-chips { flex: 1; display: flex; gap: 6px; justify-content: space-between; }
.kal-chip-tag { flex: 1; min-width: 0; border: 1px solid var(--linie); background: #fff; border-radius: 12px;
  padding: 7px 2px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text); }
.kal-chip-tag .wt { font-size: 12px; font-weight: 700; }
.kal-chip-tag .dt { font-size: 10px; color: var(--text-hell); }
.kal-chip-tag .pkt { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 1px; }
.kal-chip-tag .pkt.leer { background: transparent; }
.kal-chip-tag.heute { border-color: var(--gold); }
.kal-chip-tag.aktiv { background: var(--gold); border-color: var(--gold); color: #fff; }
.kal-chip-tag.aktiv .dt { color: rgba(255,255,255,.85); }
.kal-chip-tag.aktiv .pkt { background: #fff; }

/* Diagramm */
.kal-chart { display: flex; gap: 6px; align-items: flex-end; justify-content: space-between;
  background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten);
  padding: 10px 8px; margin-bottom: 14px; }
.kal-bar-spalte { flex: 1; min-width: 0; border: 0; background: none; display: flex; flex-direction: column;
  align-items: center; gap: 3px; border-radius: 8px; padding: 2px 0; }
.kal-bar-spalte.aktiv { background: #f3eee6; }
.kal-bar-zahl { font-size: 11px; font-weight: 700; color: var(--text); height: 14px; }
.kal-bar-bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 66px; }
.kal-bar-wrap { display: flex; flex-direction: column-reverse; justify-content: flex-start; height: 66px;
  width: 16px; border-radius: 4px; overflow: hidden; background: var(--bg); }
.kal-bar-wrap .bar { width: 100%; }
.kal-bar-wrap .bar.ab { background: var(--kat-ab); }
.kal-bar-wrap .bar.we { background: var(--kat-we); }
.kal-bar-wrap .bar.an { background: var(--kat-an); }
/* Auslastungsbalken (dünner, blau) rechts neben dem An-/Ab-/Wechsel-Balken */
.kal-bar-aus { display: flex; flex-direction: column-reverse; height: 66px; width: 8px;
  border-radius: 4px; overflow: hidden; background: var(--bg); }
.kal-bar-aus-fill { width: 100%; background: #4a72a0; }
.kal-bar-wt { font-size: 10px; color: var(--text-hell); }
.kal-bar-bel { font-size: 10px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.1; }

.kal-tag-titel { font-size: 14px; font-weight: 700; color: var(--text-hell); margin: 2px 0 10px; }

/* =====================================================================
   Belegung – Apartments × Tage (Raster, read-only)
   ===================================================================== */
/* Vollbreite ohne horizontales Scrollen: feste Spaltenbreiten, kompakt */
.bel-tab { table-layout: fixed; width: 100%; border-collapse: collapse;
  font-size: 9.5px; line-height: 1.2; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--schatten); background: #fff; }
.bel-tab th, .bel-tab td { border: 1px solid #e3ddd5; padding: 2px 2px; text-align: center;
  vertical-align: top; word-break: break-word; overflow-wrap: anywhere; }
.bel-tab thead th { background: #4a4441; color: #fff; font-weight: 700; }
.bel-tab thead th.bel-heute { background: var(--gold-dunkel); }
.bel-app { font-weight: 700; }
.bel-app-name { font-size: 10px; }
.bel-rein { width: 20px; height: 20px; object-fit: contain; display: block; margin: 0 auto 1px; }

.bel-z.frei    { background: #dff0df; }
.bel-z.belegt  { background: #f2dbd4; color: #000; }
.bel-z.abreise { background: #d9362c; color: #fff; }
.bel-z.anreise { background: #2f8b3a; color: #fff; }
.bel-z.checkout{ background: #d9d9d9; color: #555; }
.bel-z.wechsel { padding: 0; }
.bel-wechsel { display: flex; height: 100%; }
.bel-w-ab { flex: 1; min-width: 0; background: #d9362c; color: #fff; padding: 2px 3px; text-align: left; }
.bel-w-an { flex: 1; min-width: 0; background: #2f8b3a; color: #fff; padding: 2px 3px; text-align: right; }
.bel-w-ab.checkout { background: #d9d9d9; color: #555; }
.bel-icons { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; margin-top: 2px; }
.bel-w-ab .bel-icons { justify-content: flex-start; }
.bel-w-an .bel-icons { justify-content: flex-end; }
.bel-icons img { width: 13px; height: 13px; object-fit: contain; display: block; }
.bel-notiz { font-size: 8px; opacity: .85; }

/* =====================================================================
   Schadensmeldungen
   ===================================================================== */
.prio { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.prio-niedrig  { background: #e4f1e8; color: #3c8a59; }
.prio-mittel   { background: #fbf3d6; color: #a9842a; }
.prio-hoch     { background: #fde9d4; color: #c47a1f; }
.prio-dringend { background: #fbe3e3; color: #c0392b; }

.schaden-karte { background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten);
  padding: 14px 16px; margin-bottom: 12px; }
.schaden-karte.erledigt { opacity: .7; }
.schaden-karte .zeile1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.schaden-karte .wohnung-name { font-size: 15px; font-weight: 700; }
.schaden-karte .text { font-size: 14px; }
.schaden-karte .fuss { font-size: 12px; color: var(--text-hell); margin-top: 8px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.foto-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.foto-thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--bg);
  border: 1px solid var(--linie); position: relative; }
.foto-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-thumb .del { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; border: 0; font-size: 13px; line-height: 20px; padding: 0; }

.foto-add { width: 72px; height: 72px; border-radius: 10px; border: 1.5px dashed var(--gold);
  background: #fff; color: var(--gold-dunkel); font-size: 26px; display: flex; align-items: center; justify-content: center; }

.feld textarea, .feld select { width: 100%; padding: 12px 14px; font-size: 16px; border: 1px solid var(--linie);
  border-radius: 11px; background: #fff; outline: none; font-family: inherit; }
.feld textarea:focus, .feld select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(187,167,145,.18); }
.feld textarea { min-height: 96px; resize: vertical; }

.prio-wahl { display: flex; gap: 6px; }
.prio-wahl .prio-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 3px; border: 1.5px solid var(--linie); border-radius: 10px;
  background: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: all .12s; }
.prio-wahl .pb-dot { width: 16px; height: 16px; border-radius: 50%; background: currentColor; }
/* Ampelfarben: niedrig=grün, mittel=gelb, hoch=orange, dringend=rot */
.prio-wahl .pb-niedrig  { color: #3c8a59; }
.prio-wahl .pb-mittel   { color: #d3a51f; }
.prio-wahl .pb-hoch     { color: #e07d1c; }
.prio-wahl .pb-dringend { color: #c0392b; }
.prio-wahl .prio-btn.aktiv { color: #fff; }
.prio-wahl .pb-niedrig.aktiv  { background: #3c8a59; border-color: #3c8a59; }
.prio-wahl .pb-mittel.aktiv   { background: #d3a51f; border-color: #d3a51f; }
.prio-wahl .pb-hoch.aktiv     { background: #e07d1c; border-color: #e07d1c; }
.prio-wahl .pb-dringend.aktiv { background: #c0392b; border-color: #c0392b; }
.prio-wahl .prio-btn.aktiv .pb-dot { background: #fff; }

/* =====================================================================
   STEMPELN – Tabs (Aktuell / Zeiten / Abwesenheit)
   ===================================================================== */
.st-tabs {
  display: flex; gap: 6px; margin: 0 0 16px; padding: 0 2px;
  border-bottom: 2px solid var(--gold);
}
.st-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 11px 4px 12px; cursor: pointer; position: relative; top: 2px;
  border: 1px solid var(--linie); border-bottom: none; border-radius: 13px 13px 0 0;
  background: #efe9e1; color: var(--text-hell);
  font-size: 12.5px; font-weight: 700; letter-spacing: .2px;
  transition: background .15s, color .15s;
}
.st-tab .st-tab-ic { display: flex; }
.st-tab .st-tab-ic svg { width: 22px; height: 22px; display: block; }
.st-tab .st-tab-tx { line-height: 1; }
.st-tab.aktiv {
  background: #fff; color: var(--akzent);
  border-color: var(--gold); border-bottom: 2px solid #fff;
  box-shadow: 0 -3px 8px rgba(0,0,0,.05);
}
.st-tab:not(.aktiv):active { background: #e6ddd0; }

/* ----- Tab: Zeiten (7 Tage) ----- */
.zeiten-hinweis { font-size: 12px; color: var(--text-hell); margin: 0 0 10px; padding: 0 2px; }
.zeit-tag { padding: 10px 14px; margin-bottom: 10px; }
.zt-kopf { display: flex; justify-content: space-between; align-items: baseline;
  font-weight: 600; color: var(--text); padding-bottom: 6px; border-bottom: 1px solid var(--linie); }
.zt-kopf em { color: var(--gold-dunkel); font-style: normal; font-weight: 500; font-size: 12px; }
.zt-kopf b { color: var(--akzent); }
.zt-zeile { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f4f4f4; }
.zt-zeile:last-child { border-bottom: 0; }
.ztz-zeit { flex: 1; font-variant-numeric: tabular-nums; font-size: 14px; }
.ztz-pause { font-size: 11px; color: var(--text-hell); white-space: nowrap; }
.ztz-dauer { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 48px; text-align: right; }
.ztz-edit { border: 0; background: #f3eee6; color: var(--akzent); width: 32px; height: 32px;
  border-radius: 8px; font-size: 15px; cursor: pointer; }
.zt-edit { display: flex; align-items: center; gap: 6px; width: 100%; padding: 2px 0; }
.zt-edit input[type=time] { flex: 1; min-width: 0; padding: 7px 6px; border: 1px solid var(--linie);
  border-radius: 8px; font-size: 14px; }
.zt-save, .zt-cancel, .zt-del { border: 0; width: 34px; height: 34px; border-radius: 8px; font-size: 15px; cursor: pointer; flex: none; }
.zt-save { background: var(--erfolg); color: #fff; }
.zt-cancel { background: #eee; color: #666; }
.zt-del { background: #fbe3e3; color: var(--warnung); }
.zt-bis { color: var(--text-hell); }
.zt-kopf-r { display: flex; align-items: center; gap: 10px; }
.zt-add { border: 0; width: 28px; height: 28px; border-radius: 8px; background: #f3eee6;
  color: var(--akzent); font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.zt-add:active { background: #e6ddd0; }
.zt-neu { display: flex; align-items: center; gap: 6px; padding: 10px 0 2px; margin-top: 6px;
  border-top: 1px dashed var(--linie); }
.zt-neu input[type=time] { flex: 1; min-width: 0; padding: 7px 6px; border: 1px solid var(--linie);
  border-radius: 8px; font-size: 14px; }
.leer-klein { color: var(--text-hell); font-size: 13px; padding: 8px 0; }

/* ----- Tab: Abwesenheit ----- */
.abw-kacheln { display: flex; gap: 8px; margin-bottom: 14px; }
.abw-kachel { flex: 1; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 12px 4px; text-align: center; box-shadow: var(--schatten); }
.abw-kachel .ak-v { font-size: 22px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.abw-kachel .ak-v.plus { color: var(--erfolg); }
.abw-kachel .ak-l { font-size: 11px; color: var(--text-hell); margin-top: 2px; }
.abw-kachel .ak-sub { font-size: 10px; margin-top: 3px; line-height: 1.2; }
.abw-kachel .ak-sub.gut { color: var(--erfolg); font-weight: 600; }
.abw-hinweis { font-size: 12px; color: var(--text-hell); background: #f3f6f2; border: 1px solid #e2ebe2;
  border-radius: 10px; padding: 8px 11px; margin: -4px 0 14px; line-height: 1.35; }
.abw-z3 .abw-vorl { color: var(--text-hell); font-weight: 400; }
.abw-z3 { color: var(--erfolg); font-size: 12px; font-weight: 600; }
.abw-block { margin-top: 18px; }
.abw-block h3 { font-size: 14px; color: var(--akzent); margin: 0 0 8px; padding: 0 2px; }
.abw-eintrag { padding: 11px 14px; margin-bottom: 8px; }
.abw-z1 { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; }
.abw-z2 { font-size: 13px; color: var(--text-hell); margin-top: 3px; }
.abw-z3 { margin-top: 8px; }
.abw-status { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.abw-status.s-beantragt { background: #fbf2dd; color: #a9802a; }
.abw-status.s-genehmigt { background: #e4f1e8; color: var(--erfolg); }
.abw-status.s-abgelehnt { background: #fbe3e3; color: var(--warnung); }
.abw-status.s-storniert { background: #eee; color: #888; }
.abw-doc-link { display: inline-block; font-size: 13px; color: var(--akzent); text-decoration: none;
  background: #f3eee6; padding: 7px 12px; border-radius: 8px; }
.abw-doc-up { border: 1px dashed var(--gold); background: #fff; color: var(--akzent);
  font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 8px; cursor: pointer; }

/* ----- Abwesenheit: Formular ----- */
.abw-form h3 { font-size: 15px; color: var(--akzent); margin: 0 0 12px; }
.abw-form { padding: 16px; }
.frm-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-hell);
  margin: 10px 0 4px; }
.abw-form input[type=date], .abw-form textarea, .abw-form input[type=file], .abw-form input[type=text], .abw-form select {
  width: 100%; padding: 9px 10px; border: 1px solid var(--linie); border-radius: 10px; font-size: 14px;
  font-family: inherit; background: #fff; color: var(--text); box-sizing: border-box; }
.abw-form select { height: 40px; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23999' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
.abw-form input:focus, .abw-form textarea:focus, .abw-form select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(187,167,145,.18); outline: none; }
.abw-form select.feld-fehler { border-color: var(--warnung); background-color: #fdf2f2; }
.abw-typ-wahl { display: flex; gap: 8px; }
.abw-typ-wahl .typ-btn { flex: 1; padding: 9px 4px; border: 1px solid var(--linie); border-radius: 10px;
  background: #fff; font-size: 13px; font-weight: 600; color: var(--text-hell); cursor: pointer; }
.abw-typ-wahl .typ-btn.aktiv { border-color: var(--gold); background: #f7f1e8; color: var(--akzent); }
.frm-hinweis { font-size: 11px; color: var(--text-hell); margin-top: 5px; }
.abw-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text);
  margin: 4px 0 6px; cursor: pointer; }
.abw-check input { width: 18px; height: 18px; }
.abw-kind-tag { font-style: normal; font-size: 11px; font-weight: 600; color: var(--kat-we);
  background: #fbf2dd; padding: 2px 7px; border-radius: 10px; margin-left: 6px; }
.abw-form-btns { display: flex; gap: 10px; margin-top: 16px; }
.abw-form-btns .btn-stempel { flex: 1; }

/* Upload-Fortschritt (Foto wird übertragen / wird gespeichert) */
.upload-fortschritt { margin-top: 14px; }
.upload-fortschritt .uf-label { font-size: 14px; font-weight: 600; color: var(--akzent, #7a6a55); margin-bottom: 6px; text-align: center; }
.upload-fortschritt .uf-bar { height: 10px; background: #e9e3d8; border-radius: 6px; overflow: hidden; }
.upload-fortschritt .uf-fill { height: 100%; width: 0; background: var(--erfolg, #5a8a5a); border-radius: 6px; transition: width .2s ease; }
.upload-fortschritt .uf-fill.uf-indeterminate { width: 100% !important; background-image: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%); background-size: 40% 100%; background-repeat: no-repeat; animation: uf-slide 1.1s infinite linear; }
@keyframes uf-slide { 0% { background-position: -40% 0; } 100% { background-position: 140% 0; } }
.abw-konflikt { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--warnung);
  background: #fbe3e3; border: 1px solid #f3c2c2; border-radius: 8px; padding: 8px 10px; }
.abw-vorschau { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--erfolg);
  background: #f3f6f2; border: 1px solid #e2ebe2; border-radius: 8px; padding: 8px 10px; line-height: 1.35; }
.feld-fehler { border-color: var(--warnung) !important; background: #fdf2f2; }
.btn-stempel:disabled { opacity: .5; }

/* ===== Aufgaben-Verwaltung (Tabs, Formular) ===== */
.auf-tabs { display: flex; gap: 6px; margin: 0 0 14px; }
.auf-tab { flex: 1; padding: 9px 8px; border: 1px solid var(--linie); border-radius: 11px;
  background: #fff; color: var(--text-hell); font-size: 13px; font-weight: 600; cursor: pointer; }
.auf-tab.aktiv { background: var(--gold); border-color: var(--gold); color: #fff; }

.df-seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.df-seg-btn { flex: 1; min-width: 90px; padding: 9px 8px; border: 1px solid var(--linie); border-radius: 10px;
  background: #fff; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.df-seg-btn.aktiv { background: var(--gold); border-color: var(--gold); color: #fff; }

.df-wt-row { display: flex; gap: 5px; flex-wrap: wrap; }
.df-wt { padding: 8px 0; flex: 1; min-width: 38px; text-align: center; border: 1px solid var(--linie);
  border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; }
.df-wt.aktiv { background: var(--gold); border-color: var(--gold); color: #fff; }
.df-wt input { display: none; }

.df-check { display: flex; align-items: center; gap: 9px; margin: 10px 0 4px; font-size: 14px; cursor: pointer; }
.df-check input { width: 18px; height: 18px; accent-color: var(--gold); flex: 0 0 auto; }

.df-chk-box, .df-apt-box { max-height: 190px; overflow-y: auto; border: 1px solid var(--linie);
  border-radius: 10px; padding: 6px 10px; background: #fafafa; }
.df-chk { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.df-chk input { width: 17px; height: 17px; accent-color: var(--gold); flex: 0 0 auto; }

.auf-def-karte .abw-z1 { font-size: 14px; }

/* Angelegte Aufgaben – Gruppen-Akkordeon */
.auf-gr { margin-bottom: 12px; border: 1px solid #e7ddca; border-radius: 12px; overflow: hidden; background: #fff; }
.auf-gr-kopf { display: flex; align-items: center; gap: 8px; padding: 11px 14px; cursor: pointer;
  background: #efe7d6; color: #6a5a3c; font-weight: 700; font-size: 14px; }
.auf-gr-t { flex: 1; }
.auf-gr-cnt { background: #d8c9a8; color: #5c4d30; border-radius: 10px; font-size: 12px; font-weight: 700;
  min-width: 22px; height: 20px; line-height: 20px; text-align: center; padding: 0 6px; }
.auf-gr-chev { color: #9a875f; font-size: 13px; }
.auf-gr-body { padding: 0 0; }

.auf-it { border-top: 1px solid #efe7d6; }
.auf-gr-body > .auf-it:first-child { border-top: 0; }
.auf-it.inaktiv .auf-it-t { color: #999; }
.auf-it.inaktiv .auf-it-t em { font-style: normal; color: #b0b0b0; font-weight: 400; }
.auf-it-kopf { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; }
.auf-it-t { flex: 1; font-weight: 600; font-size: 14px; color: var(--text); }
.auf-it-chev { color: var(--text-hell); font-size: 13px; }
.auf-it-body { padding: 2px 14px 14px; border-top: 1px dashed #efe7d6; }
.auf-it-b { font-size: 13px; color: #555; margin: 8px 0; line-height: 1.4; }
.auf-it-z { font-size: 13px; color: var(--text); margin: 3px 0; }
.auf-it-z b { color: var(--text-hell); font-weight: 600; }
.auf-it-btns { display: flex; gap: 8px; margin-top: 12px; }

/* ===== Belegung – modernes Raster (read-only) ===== */
.bel2-toggle { display: flex; gap: 6px; margin: 0 0 12px; }
.bel2-toggle button { flex: 1; padding: 8px; border: 1px solid var(--linie); border-radius: 11px;
  background: #fff; color: var(--text-hell); font-size: 13px; font-weight: 600; cursor: pointer; }
.bel2-toggle button.aktiv { background: var(--gold); border-color: var(--gold); color: #fff; }

/* WICHTIG: KEIN -webkit-overflow-scrolling: touch!
   Das erzeugt auf iOS eine eigene Compositing-Ebene und lässt die fixierte
   Bottom-Nav beim Scrollen „mitwandern" (sie stand mitten im Bild). Seit iOS 13
   scrollt overflow ohnehin nativ mit Schwung — die Eigenschaft ist überflüssig. */
.bel2-wrap { overflow-x: auto; overscroll-behavior-x: contain; border: 1.5px solid #a9997a; border-radius: 12px; }
.bel2-grid { display: grid; min-width: 100%; background: #c2b49a; }
.bel2-grid > div { border-bottom: 1px solid #b3a487; min-height: 44px; }

.bel2-corner { position: sticky; left: 0; z-index: 3; background: #faf8f4; border-right: 1.5px solid #a9997a; }
.bel2-dh { text-align: center; padding: 5px 2px; border-left: 1px solid #b3a487; color: var(--text-hell); background: #f3eee4; }
.bel2-dh .wt { display: block; font-size: 12px; font-weight: 700; color: var(--text); }
.bel2-dh .dt { display: block; font-size: 10.5px; }
.bel2-dh.heute { background: var(--gold); }
.bel2-dh.heute .wt, .bel2-dh.heute .dt { color: #fff; }

.bel2-app { position: sticky; left: 0; z-index: 2; background: #faf8f4; padding: 6px 7px;
  border-right: 1.5px solid #a9997a; display: flex; flex-direction: column; justify-content: center; }
.bel2-app .n { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.15; word-break: break-word; }
.bel2-app .st { font-size: 10.5px; margin-top: 1px; font-weight: 700; }
.bel2-app.ok   { background: #e6f1e8; box-shadow: inset 4px 0 0 var(--erfolg); }
.bel2-app.ok .st   { color: #2f7d4a; }
.bel2-app.todo { background: #fbe4e4; box-shadow: inset 4px 0 0 #c0392b; }
.bel2-app.todo .st { color: #b3261e; }
.bel2-app.belegt { background: #fdf0e0; box-shadow: inset 4px 0 0 #e0b27a; }

.bel2-c { border-left: 1px solid #b3a487; padding: 6px; font-size: 11px; line-height: 1.25;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.bel2-c.frei   { color: #b0a68f; align-items: center; background: #f6f3ec; }
.bel2-c.belegt { background: #eef2f7; color: #33526e; }
.bel2-c.anreise{ background: #4e9e6a; color: #fff; }
.bel2-c.abreise{ background: #c0392b; color: #fff; }
.bel2-c.weg    { background: #eef0ef; color: #8d8d8a; align-items: center; }
.bel2-c.wechsel{ padding: 0; }
.bel2-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: .03em; font-weight: 700; opacity: .85; }
.bel2-nm  { font-weight: 600; word-break: break-word; }
.bel2-meta{ font-size: 10px; opacity: .9; }
.bel2-w-ab, .bel2-w-an { padding: 4px 6px; font-size: 10px; line-height: 1.2; color: #fff; }
.bel2-w-ab { background: #c0392b; }
.bel2-w-an { background: #4e9e6a; }
.bel2-w-ab.weg { background: #eef0ef; color: #8d8d8a; }
.bel2-ic { display: inline-flex; gap: 2px; margin-top: 2px; flex-wrap: wrap; }
.bel2-ic img { width: 14px; height: 14px; border-radius: 3px; background: rgba(255,255,255,.85); }

/* Zeitraum-Kalender (Abwesenheit) */
.abw-kal { border: 1px solid var(--linie); border-radius: 12px; padding: 8px 10px 10px; background: #fff; }
.kal-kopf { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 8px; font-weight: 700; color: var(--akzent); }
.kal-nav { border: 0; background: #f3eee6; color: var(--akzent); width: 34px; height: 34px;
  border-radius: 9px; font-size: 18px; line-height: 1; cursor: pointer; }
.kal-nav:active { background: #e6ddd0; }
.kal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.kal-wt { margin-bottom: 3px; }
.kal-wt-zelle { text-align: center; font-size: 11px; font-weight: 600; color: var(--text-hell); padding: 2px 0; }
.kal-leer { aspect-ratio: 1 / 1; }
.kal-tag { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  font-size: 14px; border-radius: 9px; cursor: pointer; color: var(--text); user-select: none; }
.kal-tag:active { background: #f0ebe2; }
.kal-heute { box-shadow: inset 0 0 0 1px var(--gold); font-weight: 700; }
.kal-range { background: #f3ece1; color: var(--akzent); border-radius: 0; }
.kal-rand { background: var(--gold); color: #fff; font-weight: 700; border-radius: 9px; }
.kal-gesperrt { background: #fbe3e3; color: #c47a7f; cursor: not-allowed; text-decoration: line-through; }
.abw-range-text { font-size: 12.5px; color: var(--text-hell); margin: 8px 2px 0; }

/* ===================== Drawer-Menü (links) ===================== */
#drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.42); opacity: 0;
  visibility: hidden; pointer-events: none; cursor: pointer; transition: opacity .2s ease; z-index: 1000;
  -webkit-tap-highlight-color: transparent; }
#drawer-overlay.offen { opacity: 1; visibility: visible; pointer-events: auto; }
#drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 84%; max-width: 350px;
  background: var(--bg); transform: translateX(-100%); transition: transform .25s ease; z-index: 1001;
  display: flex; flex-direction: column; overflow-y: auto; box-shadow: 2px 0 18px rgba(0,0,0,.18);
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px); }
#drawer.offen { transform: translateX(0); }

.drawer-kopf { display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: 0; background: transparent; width: 100%; padding: 6px 0 8px; cursor: pointer; }
.drawer-avatar { width: 74px; height: 74px; border-radius: 50%; overflow: hidden; background: var(--gold);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; }
.drawer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.drawer-ini { width: 100%; height: 100%; align-items: center; justify-content: center; }
.drawer-avatar > .drawer-ini { display: flex; }
.drawer-name { font-weight: 700; font-size: 16px; color: var(--text); margin-top: 6px; }
.drawer-rolle { font-size: 12px; color: var(--text-hell); text-transform: capitalize; }

/* Kompakte Avatar-Reihe der aktuell eingecheckten Mitarbeiter */
.drawer-team { margin: 0; }
.drawer-team:empty { display: none; }
.dt-linie { height: 1px; background: rgba(0,0,0,.10); margin: 0 14px; }
.drawer-team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 6px; padding: 8px 4px; }
/* Avatare nicht interaktiv -> kein iOS-Tap-Highlight/Abdunkeln beim Antippen (z. B. Akkordeon) */
.drawer-team, .dt-person, .dt-avatar, .dt-avatar img {
  pointer-events: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none;
  -webkit-user-select: none; user-select: none; }
.dt-person { width: 52px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.dt-avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--gold);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--linie); }
.dt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dt-ini { width: 100%; height: 100%; align-items: center; justify-content: center; }
.dt-avatar > .dt-ini { display: flex; }
.dt-name { font-size: 9px; line-height: 1.1; color: var(--text-hell); text-align: center;
  max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Insel-Infos Akkordeon */
.drawer-akkordeon-kopf { display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: transparent; border: 0; cursor: pointer; padding: 14px 16px 4px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #9a8a74; }
.drawer-akk-pfeil { width: 16px; height: 16px; fill: none; stroke: #9a8a74; stroke-width: 2;
  transition: transform .2s ease; }
.drawer-akkordeon-kopf.offen .drawer-akk-pfeil { transform: rotate(180deg); }
/* Doppel-Klasse, damit es das spätere .drawer-liste{display:flex} sicher überschreibt */
.drawer-liste.drawer-akkordeon-inhalt { display: none; }
.drawer-liste.drawer-akkordeon-inhalt.offen { display: flex; }

.drawer-stempel { background: #fff; border: 1px solid var(--linie); border-radius: 14px;
  padding: 14px; text-align: center; margin-bottom: 14px; box-shadow: var(--schatten); }
.drawer-stempel:empty { display: none; }
.ds-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 3px 11px; border-radius: 20px; background: #eee; color: #777; }
.ds-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ds-pill.sp-aktiv { background: #e4f1e8; color: var(--erfolg); }
.ds-pill.sp-pause { background: #fbf2dd; color: #a9802a; }
.ds-pill.sp-aus { background: #eee; color: #888; }
.ds-zeit { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 7px 0 2px; color: var(--text); }
.ds-unter { font-size: 12px; color: var(--text-hell); }
.ds-heute { font-size: 13px; color: var(--text-hell); margin-top: 6px; }
.ds-heute b { color: var(--akzent); }
.ds-btns { display: flex; gap: 8px; margin-top: 12px; }
.ds-btn { flex: 1; border: 0; border-radius: 10px; padding: 11px 6px; font-size: 14px; font-weight: 600; color: #fff; cursor: pointer; }
.ds-btn.ein { background: var(--erfolg); }
.ds-btn.aus { background: var(--kat-ab); }
.ds-btn.pause { background: var(--kat-we); }
.ds-btn:disabled { opacity: .5; }

.drawer-liste { display: flex; flex-direction: column; gap: 6px; }
.drawer-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--linie);
  border-radius: 12px; padding: 13px 14px; font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer; }
.drawer-item svg { width: 22px; height: 22px; fill: none; stroke: var(--akzent); stroke-width: 2; }
.drawer-item:active { background: #f0ebe2; }
.drawer-item.aktiv { background: var(--gold-dunkel); border-color: var(--gold-dunkel); color: #fff; }
.drawer-item.aktiv svg { stroke: #fff; }
.drawer-logout { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; background: transparent; color: var(--warnung); font-size: 14px; font-weight: 600; padding: 16px; cursor: pointer; }
.drawer-logout svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ----- „Ansicht als" (Impersonation) ----- */
.drawer-viewas { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 11px 14px;
  margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--akzent); cursor: pointer; }
.drawer-viewas svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; flex: 0 0 auto; }
.drawer-viewas > span:nth-of-type(1) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-viewas.aktiv { background: #fbf4e8; border-color: var(--gold); }
.drawer-viewas-x { flex: 0 0 auto; color: var(--text-hell); font-weight: 700; padding: 0 4px; }

#viewas-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 2000;
  display: flex; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 7px) 12px 7px;
  background: var(--gold-dunkel); color: #fff; font-size: 12.5px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
#viewas-banner svg { width: 16px; height: 16px; flex: 0 0 auto; }
#viewas-banner .vb-txt { flex: 1; line-height: 1.25; }
#viewas-banner #viewas-banner-x { flex: 0 0 auto; background: rgba(255,255,255,.22); color: #fff;
  border: 0; border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
body.hat-viewas-banner #app { padding-top: calc(env(safe-area-inset-top, 0px) + 34px); }
body.hat-viewas-banner #drawer { padding-top: calc(env(safe-area-inset-top, 0px) + 34px); }

.va-liste { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; }
.va-item { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 9px 12px; cursor: pointer; }
.va-item.aktiv { background: #fbf4e8; border-color: var(--gold); }
.va-item .va-foto { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.va-item .va-ini { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  background: var(--gold); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.va-item .va-name { font-size: 14px; font-weight: 600; color: var(--text); }

/* ===================== Aufgaben-Tab ===================== */
.auf-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.auf-kopf b { font-size: 16px; color: var(--text); }
.auf-sub { font-size: 12px; color: var(--text-hell); }
.auf-zaehler { display: flex; gap: 8px; }
.auf-zaehler span { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 20px; }
.azo { background: #fbf2dd; color: #a9802a; }
.aze { background: #e4f1e8; color: var(--erfolg); }
.auf-karte { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--linie);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--schatten); cursor: pointer; }
.auf-karte:active { background: #faf7f2; }
.auf-erledigt { opacity: .6; }
.auf-ic { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.auf-ic svg { width: 22px; height: 22px; }
.auf-mid { flex: 1; min-width: 0; }
.auf-titel { font-weight: 600; font-size: 15px; color: var(--text); }
.auf-unter { font-size: 12.5px; color: var(--text-hell); margin-top: 1px; }
.auf-bearb { font-size: 11px; color: var(--gold-dunkel); margin-top: 2px; }
.auf-status { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 20px; white-space: nowrap; flex: none; }
.auf-status.st-offen { background: #eef0f2; color: #7a818a; }
.auf-status.st-in_arbeit { background: #fbf2dd; color: #a9802a; }
.auf-status.st-erledigt { background: #e4f1e8; color: var(--erfolg); }
.auf-ueberfaellig { border-color: #c0392b; box-shadow: 0 0 0 1px #c0392b inset; }
.auf-ruf { color: #fff; font-size: 24px; font-weight: 800; line-height: 1; }
.auf-unter-warn { color: #c0392b !important; font-weight: 700; }
.auf-unter-feierabend { color: #a85a52 !important; font-weight: 600; }

.auf-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1100; display: flex; align-items: flex-end; }
.auf-sheet { background: var(--bg); width: 100%; max-height: 88%; border-radius: 18px 18px 0 0; display: flex; flex-direction: column;
  animation: aufUp .2s ease; }
@keyframes aufUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.auf-sheet-kopf { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--linie); }
.auf-sheet-kopf b { font-size: 16px; }
.auf-close { border: 0; background: #eee; width: 32px; height: 32px; border-radius: 50%; font-size: 15px; cursor: pointer; }
.auf-sheet-body { padding: 16px; overflow-y: auto; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.ad-zeile { font-size: 14px; padding: 5px 0; border-bottom: 1px solid #f4f4f4; }
.ad-text { font-size: 14px; color: var(--text); margin: 8px 0; white-space: pre-wrap; }
.ad-titel { font-weight: 700; color: var(--akzent); margin: 12px 0 6px; }
.ad-foto { width: 100%; border-radius: 10px; margin: 8px 0; }
/* Aufgabe mit Foto: kleine Vorschau links + Beschreibung daneben (Tippen = Großansicht) */
.ad-foto-row { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0; }
.ad-foto-row-text { font-size: 14px; color: var(--text); white-space: pre-wrap; min-width: 0; flex: 1; line-height: 1.4; }
/* Schaden-Karte (Variante 2: Prioritäts-Streifen + Foto-Vorschau) */
.ad-schaden { border: 0.5px solid #ece6da; border-left: 4px solid #c0392b; border-radius: 10px; background: #fff; padding: 11px 12px; margin: 10px 0; }
.ad-sch-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ad-sch-titel { font-weight: 700; font-size: 15px; color: #2b2b2b; }
.ad-sch-pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; flex: none; }
.ad-sch-meta { font-size: 13px; color: #6f6a61; margin-top: 3px; }
.ad-sch-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ad-foto-thumb { width: 64px; height: 64px; border-radius: 8px; background: #ddd9d1 center/cover no-repeat; cursor: pointer; border: 0.5px solid rgba(0,0,0,.08); flex: none; }
.ad-fotos { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ad-btns { display: flex; gap: 10px; margin-top: 16px; }
.ad-btns .btn-stempel { flex: 1; }
.ad-fertig-info { color: var(--erfolg); font-weight: 600; margin-top: 8px; }
.ad-mit-liste { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.ad-mit-item { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--linie);
  border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.ad-mit-item input { width: 18px; height: 18px; }
.ht-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--linie);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 6px; font-size: 14px; cursor: pointer; }
.ht-item input { width: 22px; height: 22px; flex: none; }
.ht-item.ht-on { background: #e4f1e8; border-color: var(--erfolg); }
.ad-mit-in { font-size: 10.5px; font-weight: 700; color: var(--erfolg); background: #e4f1e8; padding: 2px 7px; border-radius: 10px; margin-left: auto; }

/* Eigener Datei-Auswahl-Button (statt nativem „Datei auswählen", damit übersetzbar) */
.datei-wahl{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:6px 0 2px;}
.datei-btn{display:inline-block;padding:9px 14px;border:1px solid #cfc3b3;border-radius:9px;background:#f6f3ee;color:#5b4f3f;font-size:14px;font-weight:600;cursor:pointer;}
.datei-btn:active{background:#ece5da;}
.datei-name{font-size:13px;color:#8a7d6c;word-break:break-all;}

/* Toggle-Schalter (iOS-artig) für Benachrichtigungen u. a. */
.switch{position:relative;display:inline-block;width:52px;height:30px;}
.switch input{opacity:0;width:0;height:0;}
.switch .slider{position:absolute;inset:0;background:#ccc;border-radius:30px;transition:.25s;cursor:pointer;}
.switch .slider:before{content:"";position:absolute;height:24px;width:24px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.25s;box-shadow:0 1px 3px rgba(0,0,0,.3);}
.switch input:checked + .slider{background:#3a9d5d;}
.switch input:checked + .slider:before{transform:translateX(22px);}
.switch input:disabled + .slider{opacity:.4;cursor:not-allowed;}


/* ===== Kalender: Team-Aufgaben-Fenster (Klick auf Housekeeping-Kachel) ===== */
.kd-sheet-team { max-width: 480px; }
.team-tabs {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 10px 12px; border-bottom: 1px solid var(--linie); flex: 0 0 auto;
  scrollbar-width: none;
}
.team-tabs::-webkit-scrollbar { display: none; }
.team-tab {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 62px; background: none; border: 0; padding: 4px 2px; cursor: pointer;
  border-radius: 10px; opacity: .6; transition: opacity .15s;
}
.team-tab.aktiv { opacity: 1; }
.team-tab-foto {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #e9e3d8;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid transparent;
}
.team-tab.aktiv .team-tab-foto { border-color: var(--akzent); }
.team-tab-foto img { width: 100%; height: 100%; object-fit: cover; }
.team-tab-foto.fallback { background: #bba791; }
.team-tab-foto.fallback::after { content: attr(data-ini); color: #fff; font-weight: 700; font-size: 15px; }
.team-tab-name {
  font-size: 11px; font-weight: 600; color: var(--text); max-width: 60px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.team-tab.aktiv .team-tab-name { color: var(--akzent); }

.team-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.team-kopf .kd-av { width: 54px; height: 54px; }
.team-kopf .kd-av.fallback::after { font-size: 19px; }
.team-kopf-name { font-size: 19px; font-weight: 700; color: var(--text); line-height: 1.2; }
.team-kopf-zeit { font-size: 13px; color: var(--text-hell); margin-top: 2px; }

.team-sektion { margin-bottom: 16px; }
.team-sektion-kopf { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 7px; display: flex; align-items: center; }
.team-sektion-punkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; flex: 0 0 auto; }
.team-sektion-anz { color: var(--text-hell); font-weight: 600; margin-left: 5px; }
.team-sektion-body { display: flex; flex-direction: column; gap: 6px; }
.team-row { background: #faf8f4; border: 1px solid var(--linie); border-radius: 10px; padding: 8px 11px; }
.team-sektion-erledigt .team-row { background: #f2f9f3; border-color: #d7ead9; }
.team-sektion-arbeit .team-row { background: #fdf6ea; border-color: #f0e0c4; }
.team-row-top { display: flex; align-items: flex-start; gap: 8px; }
.team-row-txt { flex: 1; min-width: 0; }
.team-row-titel { font-size: 14px; font-weight: 600; color: var(--text); display: block; word-break: break-word; }
.team-row-unter { font-size: 12px; color: var(--text-hell); display: block; margin-top: 1px; }
.team-row-wohnung { font-size: 14px; font-weight: 700; color: var(--text); flex: 0 0 auto; }
.team-row-typ { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 20px; background: #eee; color: #555; }
.team-row-typ.typ-wechsel { background: #e7effb; color: #2c6cb8; }
.team-row-typ.typ-endreinigung { background: #fce9e7; color: #c0493a; }
.team-row-typ.typ-zwischenreinigung { background: #eaf6ec; color: #2f8a4c; }
.team-row-typ.typ-handtuch { background: #f3eee6; color: #8b7355; }
.team-row-zeit { margin-left: auto; padding-top: 1px; font-size: 12px; font-weight: 600; color: var(--text-hell); white-space: nowrap; flex: 0 0 auto; }
.team-row-anm { font-size: 12px; color: var(--text-hell); margin-top: 7px; line-height: 1.4; }

/* Kalender-Kachel: klickbare (arbeitende) Mitarbeiter */
.kal-hk-card.klickbar { cursor: pointer; }
.kal-hk-card.klickbar:active { transform: scale(.97); }


/* Team-Fenster: echte Stempelzeit im Kopf + aufklappbare Aufgaben-Details */
.team-kopf-stempel { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 2px; }
.team-kopf-stempel.laeuft { color: #1f8a4c; }
.team-row-hasdetail > .team-row-top { cursor: pointer; }
.team-row-chev { margin-left: 6px; color: var(--text-hell); font-size: 12px; flex: 0 0 auto; align-self: center; transition: transform .18s; }
.team-row.auf .team-row-chev { transform: rotate(180deg); }
.team-row-detail { display: none; margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(0,0,0,.07); }
.team-row.auf .team-row-detail { display: block; }
.team-row-besch { font-size: 13px; color: var(--text); line-height: 1.45; white-space: pre-wrap; }
.team-row-fotos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.team-row-fotos img { width: 74px; height: 74px; object-fit: cover; border-radius: 8px; border: 1px solid var(--linie); display: block; }


/* ===== PWA Türöffnung: Tabs + Protokoll ===== */
.tuer-tabs { display: flex; gap: 6px; margin: 0 0 12px; }
.tuer-tab { flex: 1; padding: 9px 10px; border: 1px solid var(--linie); background: #fff; color: var(--text-hell); font-size: 14px; font-weight: 600; border-radius: 10px; cursor: pointer; }
.tuer-tab.aktiv { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.prot-leiste { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.prot-filter-row { display: flex; gap: 8px; align-items: center; }
.prot-select { flex: 1; padding: 9px 10px; border: 1px solid var(--linie); border-radius: 10px; background: #fff; font-size: 14px; color: var(--text); }
.prot-tabelle { border-radius: 12px; overflow: hidden; border: 1px solid var(--linie); background: #fff; }
.prot-row { border-bottom: 1px solid var(--linie); border-left: 3px solid transparent; }
.prot-row:last-child { border-bottom: 0; }
.prot-row:nth-child(even) { background: #faf8f4; }
.prot-row-ok { border-left-color: #2fb344; }
.prot-row-no { border-left-color: #d63939; }
.prot-row-un { border-left-color: #cfc8ba; }
.prot-row-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }
.prot-zeit { font-size: 13px; font-weight: 700; color: var(--text); flex: 0 0 auto; white-space: nowrap; }
.prot-tuer { font-size: 13px; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prot-chev { color: var(--text-hell); font-size: 12px; flex: 0 0 auto; transition: transform .18s; }
.prot-row.auf .prot-chev { transform: rotate(180deg); }
.prot-detail { display: none; padding: 0 12px 12px; }
.prot-row.auf .prot-detail { display: block; }
.prot-person { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.prot-av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #bba791; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.prot-av img { width: 100%; height: 100%; object-fit: cover; }
.prot-av.fallback::after { content: attr(data-ini); color: #fff; font-weight: 700; font-size: 15px; }
.prot-person-name { font-size: 15px; font-weight: 700; color: var(--text); }
.prot-person-cred { font-size: 12px; color: var(--text-hell); margin-top: 1px; }
.prot-meta-z { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 3px 0; }
.prot-meta-l { color: var(--text-hell); }
.prot-meta-v { color: var(--text); font-weight: 600; text-align: right; }

.prot-av-klein { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #bba791; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.prot-av-klein img { width: 100%; height: 100%; object-fit: cover; }
.prot-av-klein.fallback::after { content: attr(data-ini); color: #fff; font-weight: 700; font-size: 12px; }

.prot-ip { color: var(--akzent); text-decoration: underline; }

/* Nicht berechtigt: komplette Zeile dezent hellrot (überschreibt Zebra) */
.prot-row.prot-row-no { background: #fdeeee; }
.prot-row.prot-row-no:nth-child(even) { background: #f8e4e4; }

.prot-clear { flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid var(--linie); background: #fff; border-radius: 10px; color: var(--text-hell); font-size: 16px; line-height: 1; cursor: pointer; }
.prot-clear:active { background: #f4f1ec; }

/* Fernöffnung: dezent hellgelb (geringe Sättigung) */
.prot-row.prot-row-remote { background: #fdf7e3; }
.prot-row.prot-row-remote:nth-child(even) { background: #f8efd2; }

/* Team-Fenster: Handtuchwechsel-Apartments im Akkordeon */
.team-ht-liste { display: flex; flex-direction: column; gap: 5px; }
.team-ht-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; padding: 5px 8px; background: #f2f9f3; border: 1px solid #d7ead9; border-radius: 8px; }
.team-ht-apt { font-weight: 700; color: var(--text); }
.team-ht-gast { color: var(--text); }
.team-ht-meta { margin-left: auto; color: var(--text-hell); font-size: 12px; white-space: nowrap; }
