*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

:root {
  --primary:       #2a4a3e;
  --primary-mid:   #3a6b5a;
  --primary-light: #e4ede9;
  --accent:        #b8874a;
  --accent-light:  #fdf5e8;
  --text:          #1c1810;
  --sub:           #6b5d52;
  --border:        #e2d9cf;
  --bg:            #e8e1d8;
  --card:          #ffffff;
  --radius:        12px;
  --shadow:        0 1px 4px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.1);
}

html, body { height: 100%; }
body { font-family: 'Georgia','Times New Roman',serif; background: var(--bg); color: var(--text); min-height: 100vh; }

/* ─── SCREENS ─── */
.screen { display: none; min-height: 100vh; }
.screen.active  { display: flex; flex-direction: column; animation: screenIn 0.32s cubic-bezier(0.22,1,0.36,1); }
.screen.leaving { display: flex; flex-direction: column; pointer-events: none; animation: screenOut 0.18s ease forwards; }
@keyframes screenIn  { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes screenOut { from { opacity:1; transform:translateY(0); }    to { opacity:0; transform:translateY(-14px); } }

/* ─── DARK BACKGROUND (shared login + home) ─── */
.login-bg, #screen-home {
  background:
    linear-gradient(160deg, rgba(18,32,24,0.82) 0%, rgba(42,74,62,0.78) 55%, rgba(28,24,16,0.88) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600'%3E%3Crect fill='%231a2e22' width='800' height='600'/%3E%3Cpath d='M0 420 L120 240 L240 320 L380 140 L500 220 L620 100 L800 180 L800 600 L0 600Z' fill='%23122018'/%3E%3Cpath d='M0 500 L100 360 L200 420 L320 280 L440 360 L560 240 L680 300 L800 220 L800 600 L0 600Z' fill='%230d1812'/%3E%3Cpath d='M560 100 L600 40 L640 100Z' fill='%23e8dcc8' opacity='.08'/%3E%3C/svg%3E");
  background-size: cover;
}

/* ─── LOGIN ─── */
.login-bg {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 32px 24px; min-height: 100vh;
}
.login-wrap { width: 100%; max-width: 420px; text-align: center; }
.login-logo  { margin-bottom: 32px; }
.login-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.14);
  border-top: 1px solid rgba(255,255,255,0.24);
  border-radius: 20px; padding: 28px 24px;
}
.login-title {
  color: rgba(255,255,255,0.85);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px; font-weight: 400; letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.login-label { color: rgba(255,255,255,0.55) !important; }
.login-input {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.2) !important;
  color: white !important;
}
.login-input::placeholder { color: rgba(255,255,255,0.35); }
.login-input:focus { border-color: rgba(255,255,255,0.5) !important; }
.login-error {
  background: rgba(239,68,68,0.2); border: 1px solid rgba(239,68,68,0.4);
  color: #fca5a5; padding: 10px 14px; border-radius: 8px;
  font-size: 13px; font-family: 'Montserrat', sans-serif;
  margin-bottom: 12px; text-align: left;
}
.login-btn { background: var(--accent) !important; font-family: 'Montserrat',sans-serif !important; font-weight: 600 !important; letter-spacing: 0.04em; }
.login-hint {
  margin-top: 14px; font-size: 12px;
  color: rgba(255,255,255,0.35); font-family: 'Montserrat',sans-serif;
}
.login-register-link {
  font-size: 12px; color: rgba(255,255,255,0.5);
  font-family: 'Montserrat',sans-serif; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.15s;
}
.login-register-link:hover { color: rgba(255,255,255,0.85); }
.legal-checkbox-label {
  display: flex; align-items: flex-start; gap: 8px; cursor: pointer;
  font-size: 12px; color: rgba(255,255,255,0.6);
  font-family: 'Montserrat', sans-serif; line-height: 1.5;
}
.legal-footer {
  text-align: center; margin-top: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
}
.legal-footer a {
  color: rgba(255,255,255,0.35);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.15s;
}
.legal-footer a:hover { color: rgba(255,255,255,0.7); }

/* Invite code display box (in editEmpUser dialog) */
.invite-code-box {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--primary-light, #edf4f1); border: 2px solid var(--primary-mid);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 2px;
}
.invite-code-val {
  font-size: 28px; font-weight: 800; letter-spacing: 0.2em;
  font-family: 'Montserrat', monospace; color: var(--primary);
}
.invite-code-exp {
  font-size: 11px; color: var(--sub); font-family: 'Montserrat', sans-serif;
}

/* ─── HOME ─── */
#screen-home { justify-content: center; align-items: center; padding: 32px 24px; }
.home-wrap { width: 100%; max-width: 420px; text-align: center; }
.home-logo-area { margin-bottom: 36px; }

.home-monogram {
  width: 76px; height: 76px; border-radius: 50%;
  border: 1.5px solid rgba(184,135,74,0.55);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond',Georgia,serif;
  font-size: 28px; font-weight: 300; font-style: italic;
  color: var(--accent); margin: 0 auto 18px;
  letter-spacing: 0.05em;
  box-shadow: 0 0 0 6px rgba(184,135,74,0.08), inset 0 0 20px rgba(184,135,74,0.04);
}
.home-hotel-pre {
  font-family: 'Montserrat',sans-serif; font-weight: 400;
  font-size: 11px; letter-spacing: 0.45em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 6px;
}
.home-hotel-name {
  font-family: 'Cormorant Garamond',Georgia,serif; font-weight: 300;
  font-size: 54px; letter-spacing: 0.1em; color: #f5efe6;
  line-height: 1; text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.home-divider {
  width: 48px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(184,135,74,0.7), transparent);
  margin: 18px auto; border: none;
}
.home-tagline {
  font-family: 'Cormorant Garamond',Georgia,serif; font-style: italic;
  font-weight: 300; font-size: 17px;
  color: rgba(255,255,255,0.52); letter-spacing: 0.04em;
}
.home-card {
  background: rgba(255,255,255,0.07); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.13);
  border-top: 1px solid rgba(255,255,255,0.22);
  border-radius: 20px; padding: 28px 24px;
}
.home-sub {
  color: rgba(255,255,255,0.4); font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; margin-bottom: 20px;
  font-family: 'Montserrat',sans-serif; font-weight: 500;
}
.home-buttons { display: flex; flex-direction: column; gap: 12px; }

.role-btn {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.13);
  border-left: none; border-radius: 12px; padding: 18px 16px 18px 0;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; text-align: left; backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s, transform 0.2s cubic-bezier(0.22,1,0.36,1);
  overflow: hidden; position: relative;
}
.role-btn::before {
  content: ''; width: 4px; align-self: stretch; flex-shrink: 0;
  border-radius: 0 2px 2px 0;
}
.role-manager::before  { background: linear-gradient(to bottom, #7fcfaa, #3a8c68); }
.role-employee::before { background: linear-gradient(to bottom, #e0b472, #b8874a); }
.role-btn:hover  { background: rgba(255,255,255,0.11); transform: translateY(-2px); }
.role-btn:active { transform: scale(0.985); background: rgba(255,255,255,0.04); }
.role-icon  { font-size: 22px; flex-shrink: 0; opacity: 0.85; }
.role-text  { flex: 1; }
.role-label {
  font-family: 'Cormorant Garamond',Georgia,serif; font-weight: 600;
  font-size: 22px; letter-spacing: 0.04em; line-height: 1.1;
  color: rgba(255,255,255,0.92);
}
.role-desc  {
  font-family: 'Montserrat',sans-serif; font-size: 11px;
  color: rgba(255,255,255,0.42); margin-top: 3px; font-weight: 400;
}
.role-arrow { font-size: 20px; color: rgba(255,255,255,0.2); margin-right: 4px; }

.logout-btn {
  width: 100%; margin-top: 16px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45); padding: 11px;
  border-radius: 10px; font-size: 13px; cursor: pointer;
  font-family: 'Montserrat',sans-serif; transition: background 0.2s;
}
.logout-btn:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }

/* ─── HEADER ─── */
.header { position: sticky; top: 0; z-index: 100; flex-shrink: 0; }
.header-manager  { background: var(--primary); box-shadow: 0 2px 10px rgba(26,48,40,0.4); }
.header-employee { background: var(--accent);  box-shadow: 0 2px 10px rgba(184,135,74,0.4); }
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px 4px; gap: 6px;
}
.header-brand { flex: 1; text-align: center; }
.header-hotel    { display: block; color: white; font-size: 18px; font-weight: 400; font-family: Georgia,serif; letter-spacing: 0.06em; }
.header-subtitle { display: block; color: rgba(255,255,255,0.65); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-family: -apple-system,sans-serif; }
.header-actions  { display: flex; gap: 5px; flex-wrap: nowrap; justify-content: flex-end; overflow-x: auto; scrollbar-width: none; }
.header-actions::-webkit-scrollbar { display: none; }

.back-btn, .hdr-btn {
  background: rgba(255,255,255,0.15); border: none; color: white;
  width: 34px; height: 34px; border-radius: 9px;
  font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.back-btn { font-size: 24px; }
.back-btn:active, .hdr-btn:active { background: rgba(255,255,255,0.28); }
.hdr-icon { line-height: 1; }
.hdr-lbl  { display: none; } /* Mobile: nur Icon */

/* Desktop: Icon + Label */
@media (min-width: 700px) {
  .header-actions { gap: 4px; align-items: stretch; }
  .hdr-btn {
    width: auto; height: auto; min-width: 52px;
    flex-direction: column; gap: 3px;
    padding: 6px 9px; border-radius: 10px;
  }
  .hdr-btn:hover { background: rgba(255,255,255,0.22); }
  .hdr-icon { font-size: 18px; }
  .hdr-lbl {
    display: block;
    font-size: 9px; font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase; letter-spacing: 0.05em;
    opacity: 0.8; white-space: nowrap;
  }
}

.header-controls { padding: 0 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.dept-pills { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.dept-pills::-webkit-scrollbar { display: none; }
.pill {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.75); padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: all 0.15s; font-family: -apple-system,sans-serif;
}
.pill.active { background: white; color: var(--primary); border-color: white; font-weight: 700; }

.week-range-nav { display: flex; gap: 6px; align-items: center; }
.range-btn {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8); padding: 7px 14px; border-radius: 8px;
  font-size: 13px; cursor: pointer; white-space: nowrap;
  font-family: -apple-system,sans-serif; transition: background 0.15s;
}
.range-btn:active { background: rgba(255,255,255,0.25); }
.range-today { background: var(--accent); border-color: var(--accent); color: white; font-weight: 600; }
.undo-action-btn {
  background: rgba(245,158,11,0.18); border-color: rgba(245,158,11,0.45);
  color: #fde68a; font-weight: 600; max-width: 200px;
  overflow: hidden; text-overflow: ellipsis;
}
.undo-action-btn:hover { background: rgba(245,158,11,0.32); }
.undo-action-btn.undo-blocked {
  background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.35); cursor: not-allowed; opacity: 0.7;
}
.undo-action-btn.undo-blocked:hover { background: rgba(255,255,255,0.05); }
.undo-action-btn .undo-btn-desc { font-size: 11px; font-weight: 400; opacity: 0.85; }
.mgr-month-label { color: white; font-size: 15px; font-weight: 700; font-family: 'Montserrat', sans-serif; padding: 0 6px; }

@media (max-width: 600px) {
  /* Header */
  .header-top { height: auto; padding: 8px 10px; flex-wrap: nowrap; }
  .header-hotel    { font-size: 15px; }
  .header-subtitle { display: none; }
  .back-btn, .hdr-btn { width: 30px; height: 30px; font-size: 15px; border-radius: 7px; padding: 0; min-width: unset; flex-direction: row; }
  .hdr-lbl { display: none !important; }
  .header-actions { gap: 4px; }

  /* Monats-Navigation: Pfeile kompakt, langer Text ausblenden */
  .week-range-nav { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; justify-content: space-between; }
  .week-range-nav::-webkit-scrollbar { display: none; }
  .range-btn { padding: 6px 10px; font-size: 12px; }
  .range-btn .btn-text { display: none; }
  .mgr-month-label { font-size: 13px; }

  /* Abteilungs-Pills */
  .pill { font-size: 12px; padding: 5px 11px; }

  /* Wochenabschnitt – auf Hochformat zweizeilig */
  .week-section-label {
    font-size: 12px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .week-label-left { width: 100%; }
  .week-label-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }
  .week-label-actions .del-week-btn { margin-right: 0; }
  .wk-action-btn { font-size: 11px; padding: 5px 10px; }
}

/* ─── TOAST FEEDBACK (ehem. voice-feedback, jetzt allgemeine Toasts) ─── */
.voice-feedback {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  z-index: 300; min-width: 300px; max-width: 500px;
  background: var(--text); color: white;
  padding: 14px 20px; border-radius: 14px;
  font-size: 15px; font-family: -apple-system,sans-serif;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  display: flex; align-items: center; gap: 12px;
  animation: feedbackIn 0.25s ease; pointer-events: none;
}
.voice-feedback.success { background: var(--primary); }
.voice-feedback.error   { background: #b91c1c; }
@keyframes feedbackIn {
  from { transform: translateX(-50%) translateY(-10px); opacity:0; }
  to   { transform: translateX(-50%) translateY(0);    opacity:1; }
}
.voice-text { flex: 1; line-height: 1.4; }

/* ══════════════════════════════════════════════════════════════
   DARK MODE  –  vollständig, alle Komponenten
   Farbpalette: warmes Dunkel (kein kaltes Schwarz/Grau)
   ══════════════════════════════════════════════════════════════ */

/* ── 1. CSS-Variablen überschreiben ── */
body.dark-mode {
  --primary:       #52a98a;
  --primary-mid:   #63c4a0;
  --primary-light: #1c3832;
  --accent:        #cc9c52;
  --accent-light:  #28200c;
  --text:          #e2d9cc;
  --sub:           #9a8a78;
  --border:        #3d352a;
  --bg:            #211c17;
  --card:          #2a231d;
  --shadow:        0 1px 4px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.6);
  background:      #161210;
}

/* ── 2. Header ── */
body.dark-mode .header-manager  { background: #0f1e16; box-shadow: 0 2px 12px rgba(0,0,0,0.55); }
body.dark-mode .header-employee { background: #1e160a; box-shadow: 0 2px 12px rgba(0,0,0,0.55); }

/* ── 3. Dienstplan – Wochen-Sektionen ── */
body.dark-mode .week-section:nth-child(odd)  { background: #2a231d !important; border-color: #3d352a !important; box-shadow: 0 1px 4px rgba(0,0,0,0.45) !important; }
body.dark-mode .week-section:nth-child(even) { background: #251f19 !important; border-color: #3d352a !important; box-shadow: 0 1px 4px rgba(0,0,0,0.45) !important; }
body.dark-mode .week-section.current { background: rgba(82,169,138,0.1) !important; border-color: var(--primary) !important; box-shadow: 0 2px 10px rgba(82,169,138,0.15) !important; }

/* ── 4. Day-Cards ── */
body.dark-mode .day-card.other-month             { background: #1c1712 !important; border-color: #302820 !important; }
body.dark-mode .day-card.other-month .day-header { background: #18140f !important; }
body.dark-mode .shift-row:hover                  { background: #33291f !important; }
body.dark-mode .shift-row:active                 { background: #3c3025 !important; }
body.dark-mode .absence-row                      { background: #251f19 !important; }
body.dark-mode .absence-row:hover                { background: #30281e !important; }
body.dark-mode .day-clear-btn:hover              { background: #3a1818; }
body.dark-mode .day-card.holiday-day             { background: linear-gradient(135deg, #2a2210 0%, #30280e 100%) !important; border-color: #8a6820 !important; }
body.dark-mode .holiday-badge                    { color: #d4a845; background: #2a2010; border-color: #8a6820; }

/* ── 5. Modals & Popover ── */
body.dark-mode .modal                { background: #2a231d; }
body.dark-mode .modal-header         { background: #2a231d; border-color: var(--border); }
body.dark-mode .modal-close          { background: #352e26; color: var(--sub); }
body.dark-mode .modal-overlay        { background: rgba(0,0,0,0.72); }
body.dark-mode #popover-panel        { background: #2a231d; border-color: var(--border); box-shadow: 0 8px 40px rgba(0,0,0,0.55); }
body.dark-mode .popover-header       { background: #2a231d; border-color: var(--border); }

/* ── 6. Formulare & Eingabefelder ── */
body.dark-mode .form-input           { background: #1e1a15; color: var(--text); border-color: var(--border); }
body.dark-mode .form-input:focus     { border-color: var(--primary); }
body.dark-mode .time-inp             { background: #1e1a15; color: var(--text); border-color: var(--border); }
body.dark-mode .time-inp:focus       { border-color: var(--primary); }
body.dark-mode .time-inp-mini        { background: #1e1a15; color: var(--text); border-color: var(--border); }
body.dark-mode select                { background: #1e1a15; color: var(--text); border-color: var(--border); }
body.dark-mode textarea              { background: #1e1a15 !important; color: var(--text) !important; border-color: var(--border) !important; }
body.dark-mode .report-shift-select  { background: #1e1a15; color: var(--text); border-color: var(--border); }

/* ── 7. Mitarbeiter-Selector-Bar ── */
body.dark-mode .emp-selector-bar     { background: #2a231d; border-color: var(--border); }
body.dark-mode #employee-select      { background: #1e1a15; color: var(--text); border-color: var(--border); }

/* ── 8. Mitarbeiter-Ansicht – Cards & Navigation ── */
body.dark-mode .emp-header-card      { background: #2a231d; }
body.dark-mode .emp-stat-card        { background: #2a231d; }
body.dark-mode .emp-week-nav         { background: #2a231d; }
body.dark-mode .emp-multi-nav        { background: #2a231d; }
body.dark-mode .emp-day-card         { background: #2a231d; }
body.dark-mode .emp-day-even         { background: #2a231d !important; }
body.dark-mode .emp-day-odd          { background: #251f19 !important; }
body.dark-mode .emp-day-card.weekend.emp-day-even { background: #22202c !important; }
body.dark-mode .emp-day-card.weekend.emp-day-odd  { background: #1e1c28 !important; }
body.dark-mode .emp-day-card.today.emp-day-even,
body.dark-mode .emp-day-card.today.emp-day-odd    { background: #1b3530 !important; }

/* ── 9. Monats-Übersicht (Tabelle) ── */
body.dark-mode .emp-multi-scroll     { background: #161210; }
body.dark-mode .mc-even              { background: #2a231d !important; }
body.dark-mode .mc-odd               { background: #251f19 !important; }
body.dark-mode .mc-weekend.mc-even   { background: #22202c !important; }
body.dark-mode .mc-weekend.mc-odd    { background: #1e1c28 !important; }
body.dark-mode .mc-today             { background: #1b3530 !important; border-color: #4ade80 !important; }
body.dark-mode .mc-out-of-month      { background: #1a1510 !important; border-color: #2e2620 !important; }
body.dark-mode .mc-empty             { color: #5a4e42; }
body.dark-mode .mc-current-week .mc-kw-cell { background: var(--accent); }

/* ── 10. Toggle-Buttons (Sprache, Ansicht, Mitarbeiter) ── */
body.dark-mode .emp-lang-bar         { background: #251f19; }
body.dark-mode .lang-btn             { background: #2a231d; border-color: var(--border); color: var(--sub); }
body.dark-mode .lang-btn.active      { background: var(--primary); color: white; border-color: var(--primary); }
body.dark-mode .lang-btn:not(.active):hover { background: #352d23; }
body.dark-mode .view-toggle-btn      { background: #2a231d; border-color: var(--border); color: var(--sub); }
body.dark-mode .view-toggle-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
body.dark-mode .view-toggle-btn:not(.active):hover { background: #352d23; }
body.dark-mode .emp-toggle           { background: #2a231d; border-color: var(--border); color: var(--text); }

/* ── 11. Push/SMS-Liste ── */
body.dark-mode .sms-item             { background: #251f19; }
body.dark-mode .ph-stat-cancel { background: #2a221a; color: #9ca3af; }
body.dark-mode .ph-stat-error  { background: #3a1010; color: #f87171; }
body.dark-mode .ph-pb-cancel   { background: #2a221a; color: #9ca3af; }
body.dark-mode .ph-pb-error    { background: #3a1010; color: #f87171; }
body.dark-mode .sms-delete-btn:hover { background: #3a1818; }
body.dark-mode .sms-cancel-btn       { background: #3a1818; color: #f87171; }

/* ── 12. Status-Badges ── */
body.dark-mode .ph-sent      { background: #1a3520; color: #4ade80; }
body.dark-mode .ph-cancelled { background: #2a2520; color: #9a8878; }
body.dark-mode .ph-pending   { background: #2a2010; color: #d4a040; }
body.dark-mode .ph-error     { background: #2e1818; color: #f87171; }
body.dark-mode .absence-chip-urlaub { background: #1a3520; color: #4ade80; }
body.dark-mode .absence-chip-krank  { background: #2e1818; color: #f87171; }
body.dark-mode .meta-pill.phone         { background: #16213a; color: #60a5fa; }
body.dark-mode .meta-pill.vac           { background: #2a2010; color: #d4a040; }
body.dark-mode .meta-pill.hrs           { background: var(--primary-light); color: var(--primary); }
body.dark-mode .meta-pill.user-active   { background: #1a3520; color: #4ade80; }
body.dark-mode .meta-pill.user-inactive { background: #2a2520; color: #9a8878; }
body.dark-mode .notif-seen-label        { color: #4ade80; }
body.dark-mode .notif-unseen-label      { color: #5a4e42; }
body.dark-mode .emp-lastseen            { color: #4ade80; }
body.dark-mode .emp-lastseen.unseen     { color: #5a4e42; }

/* ── 13. Stundenabrechnung ── */
body.dark-mode .hours-stat           { background: #2a231d; border-color: var(--border); }
body.dark-mode .hours-row            { background: #251f19; }
body.dark-mode .hours-dept-hdr       { opacity: 0.9; }
body.dark-mode .hours-search         { background: #251f19; color: var(--text); }

/* ── 14. Einstellungen ── */
body.dark-mode .settings-user-row   { background: #251f19; }

/* ── 15. Monatsabschluss ── */
body.dark-mode .report-entry-row                   { background: #251f19; }
body.dark-mode .report-entry-row.missing-hours     { background: #2a2010 !important; }
body.dark-mode .report-entry-row.absence           { background: #221828 !important; }
body.dark-mode .report-entry-row.no-duty           { background: #1c1712 !important; }
body.dark-mode .report-item                        { background: #251f19; }
body.dark-mode .report-summary-box                 { background: #1c3832; border-color: rgba(82,169,138,0.2); }
body.dark-mode .report-sent-status                 { background: #1c3832; border-color: rgba(82,169,138,0.2); }
body.dark-mode .report-month-label                 { background: var(--primary-light); color: var(--primary); }
body.dark-mode .report-withdraw-btn                { background: #2a2010 !important; color: #d4a040 !important; border-color: #8a6820 !important; }

/* ── 16. Tages-Notizen ── */
body.dark-mode .day-note-row         { background: #2a1822; border-color: #6b2a4a; }
body.dark-mode .day-note-row:hover   { background: #321e2a; border-color: #8b3a5a; }
body.dark-mode .day-note-text        { color: #e87aaa; }
body.dark-mode .emp-day-note         { background: #2a2010; border-color: #9a7828; }
body.dark-mode .emp-day-note-text    { color: #d4a040; }
body.dark-mode .note-popup-text      { background: #2a2010; border-color: #9a7828; color: var(--text); }

/* ── 17. Bulletin-Board / Urlaubsanträge ── */
body.dark-mode .bulletin-item        { background: #251f19; }
body.dark-mode .vac-request-item     { background: #251f19; }

/* ── 18. Zeitraum-Vorschau (Urlaub) ── */
body.dark-mode .vac-preview-inner    { background: #2a231d; border-color: var(--border); }
body.dark-mode .vpc-legend           { background: #1c3832; border-color: var(--border); }
body.dark-mode .vpc-grid             { background: var(--border); }
body.dark-mode .vpc-col              { background: #2a231d; }
body.dark-mode .vpc-col.vpc-weekend  { background: #251f19; }
body.dark-mode .vpc-col.vpc-vacday   { background: #2a2010 !important; border-top-color: #9a7828 !important; }
body.dark-mode .vpc-chip             { background: #352d23; border-color: var(--border); }
body.dark-mode .vpc-chip.vpc-chip-req { background: #1a3520; border-color: #2d6a42; }
body.dark-mode .vpc-empty            { color: #5a4e42; }

/* ── 19. Wochenzusammenfassung & IST-Zeiten ── */
body.dark-mode .week-summary         { background: var(--accent-light); border-color: #5a4a18; color: var(--accent); }
body.dark-mode .emp-day-times        { background: rgba(82,169,138,0.08); border-color: rgba(82,169,138,0.2); }
body.dark-mode .emp-day-times.readonly { background: rgba(204,156,82,0.07); border-color: rgba(204,156,82,0.16); }

/* ── 20. Mitarbeiter "Fremde Ansicht"-Banner ── */
body.dark-mode .emp-other-banner     { background: #2a2010; border-color: #8a6820; }
body.dark-mode .emp-other-title      { color: #d4a040; }
body.dark-mode .emp-other-sub        { color: #9a7828; }

/* ── 21. Monatsplan-SMS ── */
body.dark-mode .monthly-sms-emp-list  { border-color: var(--border); }
body.dark-mode .monthly-sms-emp-item:hover { background: #352d23; }
body.dark-mode .monthly-sms-preview   { background: #251f19; }

/* ── 22. Monat gesperrt Badge ── */
body.dark-mode .month-locked-badge   { background: #1a3520; border-color: #2d6a42; color: #4ade80; }

/* ── 23. Destruktive Elemente ── */
body.dark-mode .emp-delete           { background: #3a1818; color: #f87171; }
body.dark-mode .emp-delete:hover     { background: #451e1e; }
body.dark-mode .emp-chip.conflict        { background: #3a1818 !important; color: #f87171 !important; border-color: #dc2626 !important; }
body.dark-mode .emp-chip.absent-conflict { background: #2d1a00 !important; color: #fcd34d !important; border-color: #d97706 !important; }

/* Dark Mode Toggle Button */
.dark-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
}
.dark-toggle-label { font-size: 14px; font-family: 'Montserrat',sans-serif; font-weight: 500; }
.dark-toggle-switch {
  position: relative; width: 48px; height: 26px; cursor: pointer;
}
.dark-toggle-switch input { opacity: 0; width: 0; height: 0; }
.dark-toggle-track {
  position: absolute; inset: 0; background: var(--border);
  border-radius: 26px; transition: background 0.25s;
}
.dark-toggle-switch input:checked + .dark-toggle-track { background: var(--primary-mid); }
.dark-toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; background: white;
  border-radius: 50%; transition: transform 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  pointer-events: none;
}
.dark-toggle-switch input:checked ~ .dark-toggle-thumb { transform: translateX(22px); }

/* ─── SCHEDULE ─── */
.schedule-wrap { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px 14px 40px; }
#schedule-grid { display: flex; flex-direction: column; gap: 12px; }

.week-section { border-radius: 16px; padding: 16px 18px 18px; border: 1px solid transparent; }
.week-section:nth-child(odd)  { background: #ffffff; border-color: rgba(200,190,180,0.5); box-shadow: 0 1px 4px rgba(0,0,0,0.07); }
.week-section:nth-child(even) { background: #f5f0ea; border-color: rgba(200,190,180,0.5); box-shadow: 0 1px 4px rgba(0,0,0,0.07); }
.week-section.current { background: rgba(232,240,236,0.9) !important; border-color: var(--primary) !important; box-shadow: 0 2px 10px rgba(42,74,62,0.12) !important; }

.week-section-label {
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--sub); padding: 0 2px 10px; border-bottom: 2px solid var(--accent);
  margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: -apple-system,sans-serif;
}
.week-label-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.week-date-range { font-weight: 800; color: var(--primary); }
.week-section-label.current-week { color: var(--primary); border-color: var(--primary); }
.week-now-badge {
  background: var(--primary); color: white; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.04em;
}
.week-days-grid { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 8px; }
@media (max-width: 900px) {
  .week-days-grid { grid-template-columns: repeat(2, 1fr); }
  .day-card:nth-child(7) { grid-column: 1 / -1; }
}

/* ─── DAY CARDS ─── */
.day-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1.5px solid var(--border);
  display: flex; flex-direction: column;
}
.day-card.today       { border-color: #4ade80; border-width: 2px; }
.day-card.past        { opacity: 0.6; }
.day-card.other-month                { background: #e8e8e8; border-color: #d0cdc8; }
.day-card.other-month .day-header   { background: #d8d8d8; }
.day-card:not(.other-month) .day-date { font-weight: 800; }
.day-clear-btn {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-size: 13px; opacity: 0.35; padding: 2px 4px; border-radius: 5px;
  transition: opacity 0.15s, background 0.15s; flex-shrink: 0;
}
.day-clear-btn:hover { opacity: 1; background: #fee2e2; }
.day-header {
  padding: 10px 13px; background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
}
.day-name { font-weight: 700; font-size: 14px; font-family: -apple-system,sans-serif; }
.day-name.today { color: var(--primary); }
.day-date { font-size: 13px; color: var(--sub); font-family: -apple-system,sans-serif; }
.today-badge {
  font-size: 10px; font-weight: 700; color: white;
  background: var(--primary); padding: 3px 8px; border-radius: 8px;
  font-family: -apple-system,sans-serif;
}
.shifts-col { display: flex; flex-direction: column; flex: 1; }
.shift-row {
  padding: 10px 13px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.12s;
}
.shift-row:hover  { background: #faf8f5; }
.shift-row:active { background: var(--bg); }
.shift-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.shift-icon  { font-size: 15px; flex-shrink: 0; }
.shift-label { font-size: 13px; font-weight: 700; flex: 1; color: var(--text); font-family: -apple-system,sans-serif; }
.shift-badge {
  background: var(--primary-light); color: var(--primary);
  font-size: 12px; font-weight: 700; min-width: 22px; height: 22px;
  border-radius: 11px; display: flex; align-items: center; justify-content: center;
  padding: 0 5px; font-family: -apple-system,sans-serif;
}
.shift-edit { font-size: 12px; color: #c9b9aa; }
.emp-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.emp-chip  { padding: 3px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; font-family: -apple-system,sans-serif; }
.no-emp    { font-size: 12px; color: #c9b9aa; font-style: italic; font-family: -apple-system,sans-serif; }

/* Abwesenheits-Zeile */
.absence-row {
  padding: 8px 13px; cursor: pointer;
  transition: background 0.12s; background: #fafaf9;
}
.absence-row:hover { background: #f3f0ec; }
.absence-row-top {
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
.absence-row-icon  { font-size: 14px; }
.absence-row-label { font-size: 12px; font-weight: 600; flex: 1; color: var(--sub); font-family: -apple-system,sans-serif; }
.absence-chips-wrap { display: flex; flex-wrap: wrap; gap: 4px; }
.absence-chip {
  padding: 2px 7px; border-radius: 8px; font-size: 11px;
  font-weight: 600; font-family: -apple-system,sans-serif;
}
.absence-chip-urlaub { background: #d1fae5; color: #059669; }
.absence-chip-krank  { background: #fee2e2; color: #dc2626; }

/* ─── MODAL ─── */
/* ─── POPOVER (Schicht/Abwesenheit – neben angeklicktem Element) ─── */
#popover-backdrop {
  display: none; position: fixed; inset: 0; z-index: 300;
}
#popover-backdrop.visible { display: block; }

#popover-panel {
  display: none; position: fixed; z-index: 301;
  background: var(--card); border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
  max-height: 80vh; overflow-y: auto;
  opacity: 0; transition: opacity 0.15s ease, transform 0.15s ease;
  transform: scale(0.97) translateY(-4px);
}
#popover-panel.visible {
  opacity: 1; transform: scale(1) translateY(0);
}
.popover-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--card);
  border-radius: 16px 16px 0 0; z-index: 1;
}
.popover-body { padding: 16px 20px 24px; }
.popover-body .modal-hint { font-size: 13px; margin-bottom: 16px; }
.popover-body .dept-group { margin-bottom: 16px; }
.popover-body .emp-buttons { gap: 8px; }
.popover-body .emp-toggle  { padding: 7px 12px; font-size: 13px; }

/* ─── ZENTRIERTES MODAL (für alle anderen Dialoge) ─── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: fadeIn 0.18s ease;
}
.modal-overlay.hidden { display: none; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.modal {
  background: white; border-radius: 20px;
  width: 100%; max-width: 580px; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: popIn 0.22s ease;
}
.modal.modal-wide {
  max-width: 900px;
}
@keyframes popIn { from{transform:scale(0.95);opacity:0} to{transform:scale(1);opacity:1} }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 16px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: white;
  border-radius: 20px 20px 0 0; z-index: 1;
}
.modal-title  { display: flex; align-items: center; gap: 12px; }
.modal-icon   { font-size: 26px; }
.modal-shift-name { font-weight: 700; font-size: 20px; font-family: Georgia,serif; }
.modal-shift-sub  { font-size: 14px; color: var(--sub); margin-top: 3px; font-family: -apple-system,sans-serif; }
.modal-close {
  background: var(--bg); border: none; color: var(--sub);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.modal-body  { padding: 20px 24px 36px; }
.modal-hint  { font-size: 15px; color: var(--sub); margin-bottom: 20px; font-family: -apple-system,sans-serif; }

.dept-group  { margin-bottom: 22px; }
.dept-label  {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--sub); margin-bottom: 10px;
  font-family: -apple-system,sans-serif;
}
.emp-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.emp-toggle  {
  background: white; border: 1.5px solid var(--border); color: var(--text);
  padding: 11px 18px; border-radius: 24px; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: all 0.15s; font-family: -apple-system,sans-serif;
}
.emp-toggle:active { transform: scale(0.97); }

/* Employee management */
.emp-list  { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.emp-list-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border-radius: 10px; padding: 10px 12px;
}
.emp-list-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; flex-shrink: 0; font-family: -apple-system,sans-serif;
}
.emp-list-name { font-weight: 600; font-size: 16px; flex: 1; font-family: -apple-system,sans-serif; }
.emp-list-dept { font-size: 13px; color: var(--sub); font-family: -apple-system,sans-serif; }
.emp-delete {
  background: #fee2e2; border: none; color: #ef4444;
  width: 30px; height: 30px; border-radius: 8px;
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.emp-delete:hover { background: #fecaca; }

.divider { height: 1px; background: var(--border); margin: 20px 0; }
.section-title { font-weight: 700; font-size: 17px; margin-bottom: 14px; font-family: Georgia,serif; }

.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px;
  color: var(--sub); text-transform: uppercase; letter-spacing: 0.06em;
  font-family: -apple-system,sans-serif;
}
.form-input {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--border); border-radius: 9px;
  font-size: 15px; outline: none; background: white; transition: border-color 0.2s;
  font-family: -apple-system,sans-serif;
}
.form-input:focus { border-color: var(--primary); }
.btn-primary {
  width: 100%; background: var(--primary); color: white; border: none;
  padding: 13px; border-radius: 9px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: Georgia,serif; letter-spacing: 0.03em;
}
.btn-primary:active { opacity: 0.88; }
.btn-secondary {
  background: var(--bg); border: 1.5px solid var(--border); color: var(--text);
  padding: 10px 16px; border-radius: 9px; font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: 'Montserrat',sans-serif;
}
.btn-secondary:active { background: var(--border); }

/* ─── Mitarbeiteransicht Action-Buttons ─── */
.btn-action-teal {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 16px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 100%);
  color: #fff; font-size: 14px; font-weight: 600;
  font-family: 'Montserrat',sans-serif; letter-spacing: 0.02em;
  cursor: pointer; box-shadow: 0 2px 8px rgba(42,74,62,0.28);
  transition: filter 0.15s, transform 0.1s;
}
.btn-action-teal:active { filter: brightness(0.88); transform: scale(0.98); }

.btn-action-gold {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 16px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, #c99a56 0%, var(--accent) 100%);
  color: #fff; font-size: 14px; font-weight: 600;
  font-family: 'Montserrat',sans-serif; letter-spacing: 0.02em;
  cursor: pointer; box-shadow: 0 2px 8px rgba(184,135,74,0.30);
  transition: filter 0.15s, transform 0.1s;
}
.btn-action-gold:active { filter: brightness(0.88); transform: scale(0.98); }

/* ─── EMPLOYEE VIEW ─── */
.emp-selector-bar {
  background: white; padding: 12px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.emp-selector-bar label { font-weight: 600; font-size: 16px; white-space: nowrap; font-family: -apple-system,sans-serif; }
#employee-select {
  flex: 1; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 9px;
  font-size: 16px; background: white; outline: none; font-family: -apple-system,sans-serif;
}
.emp-schedule-wrap { flex: 1; overflow-y: auto; padding: 14px 16px 40px; }
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 60px 0; color: var(--sub);
  font-size: 14px; text-align: center; font-family: -apple-system,sans-serif;
}
.empty-icon { font-size: 40px; }
.emp-header-card {
  display: flex; align-items: center; gap: 14px;
  background: white; padding: 16px; border-radius: var(--radius);
  margin-bottom: 12px; box-shadow: var(--shadow);
  border-left: 4px solid var(--accent); flex-wrap: wrap;
}
.emp-header-dimmed {
  border-left-color: #94a3b8;
  opacity: 0.85;
}
.emp-other-banner {
  display: flex; align-items: center; gap: 12px;
  background: #fef3c7; border: 1px solid #fcd34d;
  border-radius: var(--radius); padding: 12px 16px;
  margin-bottom: 10px;
}
.emp-other-icon { font-size: 22px; flex-shrink: 0; }
.emp-other-title {
  font-size: 14px; font-weight: 700;
  font-family: 'Montserrat', sans-serif; color: #92400e;
}
.emp-other-sub {
  font-size: 12px; color: #b45309;
  font-family: 'Montserrat', sans-serif; margin-top: 2px;
}
.emp-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; flex-shrink: 0; font-family: -apple-system,sans-serif;
}
.emp-name { font-weight: 700; font-size: 19px; font-family: Georgia,serif; }
.emp-dept { font-size: 14px; color: var(--sub); margin-top: 3px; font-family: -apple-system,sans-serif; }

.btn-report {
  background: var(--primary-light); border: 1.5px solid var(--primary);
  color: var(--primary); padding: 10px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: 'Montserrat',sans-serif; position: relative;
  display: flex; align-items: center; gap: 6px;
}
.btn-report:active { background: #ccddd6; }
.report-badge-small {
  background: #ef4444; color: white; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}

.emp-stats-row { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.emp-stat-card {
  flex: 1; min-width: 90px; background: white; border-radius: var(--radius);
  padding: 10px 12px; box-shadow: var(--shadow); border: 1px solid var(--border);
  text-align: center;
}
.emp-stat-card.vac-card { min-width: 130px; }
.emp-stat-num { font-size: 28px; font-weight: 800; color: var(--primary); font-family: 'Cormorant Garamond',serif; line-height: 1; }
.emp-stat-num.warn { color: #ef4444; }
.emp-stat-lbl { font-size: 10px; color: var(--sub); margin-top: 3px; font-family: 'Montserrat',sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.emp-week-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: white; border-radius: var(--radius);
  margin-bottom: 10px; box-shadow: var(--shadow);
  font-size: 15px; font-weight: 600; font-family: -apple-system,sans-serif;
}
.nav-btn-emp {
  background: var(--primary-light); border: none; color: var(--primary);
  width: 32px; height: 32px; border-radius: 8px;
  font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.nav-btn-emp:active { background: #ccddd6; }

.emp-days { display: flex; flex-direction: column; gap: 8px; max-width: 560px; margin: 0 auto; }
.emp-day-card {
  background: white; border-radius: var(--radius); padding: 12px 14px;
  box-shadow: var(--shadow); border: 1.5px solid var(--border);
}
.emp-day-card.today   { border-color: var(--primary); }
.emp-day-card.no-shift { opacity: 0.5; }
.emp-day-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.emp-day-name { font-weight: 700; font-size: 16px; font-family: -apple-system,sans-serif; }
.emp-day-name.today { color: var(--primary); }
.emp-day-date { font-size: 13px; color: var(--sub); font-family: -apple-system,sans-serif; }
.emp-shifts-list { display: flex; flex-direction: column; gap: 8px; }
.emp-shift-badge { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: 8px; }
.emp-shift-name { font-weight: 600; font-size: 15px; font-family: -apple-system,sans-serif; }
.emp-shift-time { font-size: 13px; color: var(--sub); margin-top: 2px; font-family: -apple-system,sans-serif; }
.no-assign { font-size: 14px; color: #c9b9aa; font-style: italic; font-family: -apple-system,sans-serif; }
/* Kollegen in Wochenansicht */
.colleague-row {
  display: flex; align-items: center; gap: 5px; margin-top: 7px;
  flex-wrap: wrap;
}
.colleague-label { font-size: 13px; }
.colleague-chips { display: flex; gap: 3px; flex-wrap: wrap; }
.colleague-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: 10px; font-weight: 800; font-family: -apple-system,sans-serif;
  flex-shrink: 0;
}
.colleague-names {
  font-size: 12px; color: var(--sub);
  font-family: 'Montserrat', sans-serif;
}

.week-summary {
  margin-top: 14px; background: var(--accent-light);
  color: var(--accent); border: 1px solid #f0dfc0;
  padding: 14px 18px; border-radius: var(--radius);
  font-size: 15px; text-align: center; font-weight: 500;
  font-family: -apple-system,sans-serif;
}

/* ─── BADGES ─── */
.hdr-btn-wrap { position: relative; flex-shrink: 0; }
.sms-badge {
  position: absolute; top: 1px; right: 1px;
  background: #ef4444; color: white; font-size: 10px; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; pointer-events: none;
  font-family: 'Montserrat',sans-serif; border: 2px solid var(--primary);
}
.report-badge-dot { background: #f59e0b !important; border-color: var(--primary) !important; }

@media (min-width: 601px) {
  .sms-badge { min-width: 20px; height: 20px; font-size: 12px; padding: 0 5px; top: 0px; right: 0px; }
}

/* ─── EMPLOYEE META PILLS ─── */
.emp-list-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.meta-pill {
  font-size: 11px; padding: 3px 8px; border-radius: 8px;
  font-family: 'Montserrat',sans-serif; font-weight: 500; cursor: pointer; user-select: none;
}
.meta-pill.phone       { background: #eff6ff; color: #1d4ed8; }
.meta-pill.vac         { background: #fef3c7; color: #92400e; }
.meta-pill.hrs         { background: var(--primary-light); color: var(--primary); cursor: default; }
.meta-pill.user-active   { background: #d1fae5; color: #065f46; }
.meta-pill.user-inactive { background: #f3f4f6; color: #6b7280; }
.meta-pill.phone:hover { background: #dbeafe; }
.meta-pill.vac:hover   { background: #fde68a; }
.meta-pill.user-active:hover   { background: #a7f3d0; }
.meta-pill.user-inactive:hover { background: #e5e7eb; }

/* ─── STUNDENABRECHNUNG ─── */
/* ── Stundenabrechnung Suche ── */
.hours-search-wrap { padding: 0 0 12px; display:flex; gap:8px; align-items:center; }
.hours-export-btn {
  flex-shrink:0; background:var(--accent); color:#fff;
  border:none; border-radius:8px; padding:9px 14px;
  font-family:'Montserrat',sans-serif; font-size:13px; font-weight:500;
  cursor:pointer; white-space:nowrap;
}
.hours-export-btn:active { opacity:0.8; }
.hours-search {
  width: 100%; box-sizing: border-box;
  padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg);
  font-family: 'Montserrat',sans-serif; font-size: 14px; color: var(--text);
  outline: none;
}
.hours-search:focus { border-color: var(--accent); }

/* ── Stundenabrechnung Akkordeon ── */
.hours-list { display: flex; flex-direction: column; gap: 12px; }
.hours-dept-section { display: flex; flex-direction: column; gap: 0; }
.hours-dept-hdr {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 12px; border-radius: 8px; border: none; cursor: pointer;
  font-family: 'Montserrat',sans-serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  text-align: left; transition: opacity .15s;
}
.hours-dept-hdr:hover { opacity: .85; }
.hours-dept-hdr span:first-child { flex: 1; }
.hours-dept-count {
  background: rgba(0,0,0,.15); border-radius: 10px;
  padding: 1px 7px; font-size: 10px; font-weight: 700;
}
.hours-dept-chevron { font-size: 18px; line-height: 1; transition: transform .2s; }
.hours-dept-section.collapsed .hours-dept-chevron { transform: rotate(-90deg); }
.hours-dept-body { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; overflow: hidden; }
.hours-dept-section.collapsed .hours-dept-body { display: none; }
.hours-row {
  background: var(--bg); border-radius: 12px; padding: 12px 14px;
  display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;
}
.hours-emp-info { display: flex; align-items: center; gap: 10px; min-width: 150px; flex: 1; }
.hours-stats    { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.hours-stat {
  display: flex; flex-direction: column; align-items: center;
  background: white; border-radius: 8px; padding: 8px 12px;
  min-width: 72px; border: 1px solid var(--border);
}
.hours-num { font-size: 22px; font-weight: 700; color: var(--primary); font-family: 'Cormorant Garamond',serif; line-height: 1; }
.hours-num.warn { color: #ef4444; }
.hours-lbl { font-size: 10px; color: var(--sub); margin-top: 2px; text-align: center; font-family: 'Montserrat',sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.hours-period { font-size: 10px; color: var(--accent); font-family: 'Montserrat',sans-serif; font-weight: 600; margin-top: 1px; text-align: center; }
.vac-stat  { min-width: 100px; }
.vac-detail { font-size: 10px; color: var(--sub); font-family: 'Montserrat',sans-serif; }
.vac-bar   { height: 4px; background: var(--border); border-radius: 2px; width: 100%; overflow: hidden; }
.vac-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.3s; }

/* ─── SMS MODAL ─── */
.sms-list { display: flex; flex-direction: column; gap: 10px; }
.sms-item { background: var(--bg); border-radius: 10px; padding: 12px 14px; border-left: 3px solid var(--border); }
.sms-item.sent      { border-left-color: var(--primary); opacity: 0.7; }
.sms-item.pending   { border-left-color: var(--accent); }
.sms-item.sending   { border-left-color: #60a5fa; opacity: 0.8; }
.sms-item.cancelled { border-left-color: #9ca3af; opacity: 0.55; }
.sms-item-top {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap;
}
.sms-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sms-status-dot.pending   { background: var(--accent); }
.sms-status-dot.sent      { background: var(--primary); }
.sms-status-dot.sending   { background: #60a5fa; animation: pulse 1s infinite; }
.sms-status-dot.cancelled { background: #9ca3af; }
.sms-phone { font-size: 12px; color: var(--sub); font-family: 'Montserrat',sans-serif; flex: 1; }
.sms-time  { font-size: 11px; color: var(--sub); font-family: 'Montserrat',sans-serif; }
.sms-delete-btn {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-size: 14px; padding: 2px 4px; border-radius: 6px; color: var(--sub);
  line-height: 1; opacity: 0.6; transition: opacity 0.15s, background 0.15s;
}
.sms-delete-btn:hover { opacity: 1; background: #fee2e2; }
.sms-msg   { font-size: 13px; color: var(--text); margin-bottom: 8px; font-family: -apple-system,sans-serif; line-height: 1.4; }
.sms-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sms-send-btn {
  background: var(--primary); color: white; border: none;
  padding: 7px 14px; border-radius: 8px; font-size: 13px;
  cursor: pointer; font-family: 'Montserrat',sans-serif; font-weight: 500;
}
.sms-send-btn:active { opacity: 0.85; }
.sms-cancel-btn {
  background: #fee2e2; color: #dc2626; border: none;
  padding: 7px 14px; border-radius: 8px; font-size: 13px;
  cursor: pointer; font-family: 'Montserrat',sans-serif; font-weight: 500;
}
.sms-cancel-btn:active { background: #fecaca; }
.sms-sent-label { font-size: 12px; color: var(--sub); font-family: 'Montserrat',sans-serif; }
.sms-textarea {
  resize: vertical; min-height: 90px; line-height: 1.5;
  font-size: 14px !important;
}

/* ── Notification Log – redesigned sections ─────────────────────── */
.notif-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.notif-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px;
  background: var(--surface2, #f9f6f0);
  gap: 8px;
  user-select: none;
}
.notif-section-done .notif-section-head { background: #f0fdf4; cursor: pointer; }
.notif-section-older .notif-section-head { background: var(--bg); }
.notif-section-title {
  font-size: 12px; font-weight: 600; font-family: 'Montserrat',sans-serif;
  color: var(--text); display: flex; align-items: center; gap: 6px;
}
.notif-count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; border-radius: 10px;
  font-size: 11px; font-weight: 700; padding: 0 5px;
  background: var(--border); color: var(--sub);
  font-family: 'Montserrat',sans-serif;
}
.notif-count-pending { background: var(--accent); color: white; }
.notif-count-done    { background: #bbf7d0; color: #065f46; }
.notif-count-older   { background: var(--border); color: var(--sub); }
.notif-toggle-icon { font-size: 11px; color: var(--sub); flex-shrink: 0; }
.notif-xs-btn {
  font-size: 11px; font-family: 'Montserrat',sans-serif; font-weight: 500;
  padding: 4px 8px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--bg); color: var(--sub); cursor: pointer;
  white-space: nowrap; transition: background 0.15s;
}
.notif-xs-btn:hover { background: var(--border); }
.notif-xs-primary { background: var(--primary); color: white; border-color: var(--primary); }
.notif-xs-primary:hover { opacity: 0.85; background: var(--primary); }

/* Pending list */
.notif-pending-list { display: flex; flex-direction: column; gap: 0; }
.notif-empty-hint {
  text-align: center; padding: 14px 0; color: var(--sub);
  font-size: 13px; font-family: 'Montserrat',sans-serif;
}
.notif-pending-row {
  padding: 12px 14px; border-top: 1px solid var(--border);
}
.notif-pending-row:first-child { border-top: none; }
.notif-pending-row.sending { opacity: 0.75; }

/* ── Kopfzeile: Name · Datum + Kanal + Löschen ── */
.notif-row-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px; margin-bottom: 2px;
}
.notif-headline {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px;
  flex: 1; min-width: 0;
}
.notif-emp-inline {
  font-size: 14px; font-weight: 700; color: var(--text);
  font-family: 'Montserrat',sans-serif; white-space: nowrap;
}
.notif-sep {
  font-size: 13px; color: var(--sub); font-weight: 400;
}
.notif-date-inline {
  font-size: 14px; font-weight: 600; color: var(--primary);
  font-family: 'Montserrat',sans-serif;
}
.notif-created-hint {
  display: block; font-size: 10px; color: var(--sub);
  font-family: 'Montserrat',sans-serif; margin-bottom: 6px;
}
.notif-meta-right { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.notif-channel-pill {
  font-size: 11px; font-weight: 600; font-family: 'Montserrat',sans-serif;
  padding: 2px 8px; border-radius: 10px;
  background: rgba(42,74,62,0.1); color: var(--primary);
}
.notif-del-btn {
  background: none; border: none; cursor: pointer;
  font-size: 14px; opacity: 0.4; padding: 2px 4px;
  border-radius: 5px; transition: opacity 0.15s, background 0.15s;
}
.notif-del-btn:hover { opacity: 1; background: #fee2e2; }

/* ── Nachrichtentext ── */
.notif-msg {
  font-size: 12px; color: var(--text); margin-bottom: 10px;
  line-height: 1.45; font-family: -apple-system,sans-serif;
  opacity: 0.75; padding: 6px 10px;
  background: var(--bg); border-radius: 7px;
  border-left: 3px solid var(--border);
}

/* ── Aktions-Buttons: klein & dezent ── */
.notif-row-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.notif-btn-send {
  font-size: 12px; font-family: 'Montserrat',sans-serif; font-weight: 600;
  padding: 5px 12px; border-radius: 7px; cursor: pointer;
  background: var(--primary); color: white; border: none;
  transition: opacity 0.15s;
}
.notif-btn-send:hover { opacity: 0.85; }
.notif-btn-cancel {
  font-size: 12px; font-family: 'Montserrat',sans-serif; font-weight: 500;
  padding: 5px 12px; border-radius: 7px; cursor: pointer;
  background: none; color: var(--sub);
  border: 1px solid var(--border); transition: background 0.15s;
}
.notif-btn-cancel:hover { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }

.notif-sending-bar { font-size: 12px; color: #60a5fa; font-family: 'Montserrat',sans-serif; padding: 2px 0; }

/* Compact done rows */
.notif-compact-list { display: flex; flex-direction: column; }
.notif-compact-row {
  display: flex; flex-direction: column; gap: 0;
  padding: 0; border-top: 1px solid var(--border);
  font-family: 'Montserrat',sans-serif;
}
.notif-compact-row:first-child { border-top: none; }

/* Klickbare Hauptzeile */
.notif-compact-main {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 13px; cursor: pointer;
  transition: background 0.12s;
}
.notif-compact-main:hover { background: var(--primary-light, #edf4f1); }
.notif-compact-name    { font-size: 13px; font-weight: 500; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-compact-channel { font-size: 12px; color: var(--sub); flex-shrink: 0; }
.notif-compact-time    { font-size: 11px; color: var(--sub); flex-shrink: 0; }
.notif-compact-chevron {
  font-size: 15px; color: var(--sub); flex-shrink: 0;
  transition: transform 0.18s; line-height: 1;
}

/* Aufgeklappte Nachricht */
.notif-compact-msg {
  font-size: 12px; color: var(--text); line-height: 1.45;
  font-family: -apple-system, sans-serif; opacity: 0.8;
  margin: 0 13px 6px; padding: 7px 10px;
  background: var(--bg); border-radius: 7px;
  border-left: 3px solid var(--border);
}

/* Archive button in compact rows (replaces delete — moves to history) */
.notif-archive-btn {
  display: block; margin: 4px 13px 6px auto;
  padding: 3px 9px; border-radius: 6px;
  font-size: 11px; font-weight: 600; cursor: pointer;
  background: transparent; border: 1px solid var(--border);
  color: var(--sub); font-family: 'Montserrat', sans-serif;
  transition: background 0.12s, color 0.12s;
}
.notif-archive-btn:hover {
  background: var(--primary-light, #edf4f1);
  color: var(--primary); border-color: var(--primary-mid);
}

/* Legend */
.notif-legend {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  padding: 7px 13px 6px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2, #f9f6f0);
}
.notif-legend-item {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--sub);
  font-family: 'Montserrat', sans-serif;
}
body.dark-mode .notif-legend { background: #141008; border-bottom-color: #2a221a; }

/* Footer */
.notif-footer { margin-top: 4px; }

/* Dark mode overrides */
body.dark-mode .notif-section-head       { background: #1e1812; }
body.dark-mode .notif-section-done .notif-section-head  { background: #0d2016; }
body.dark-mode .notif-section-older .notif-section-head { background: #181210; }
body.dark-mode .notif-count-done    { background: #064e28; color: #6ee7b7; }
body.dark-mode .notif-xs-btn        { background: #251f19; border-color: #3a2e24; color: #9ca3af; }
body.dark-mode .notif-xs-btn:hover  { background: #3a2e24; }
body.dark-mode .notif-compact-row   { border-top-color: #2a221a; }
body.dark-mode .notif-pending-row   { border-top-color: #2a221a; }
body.dark-mode .notif-channel-pill  { background: rgba(255,255,255,0.08); color: #9ecfbe; }
body.dark-mode .notif-msg           { background: #1c1712; border-left-color: #3a2e22; }
body.dark-mode .notif-btn-cancel    { border-color: #3a2e22; color: var(--sub); }
body.dark-mode .notif-btn-cancel:hover { background: #3a1818; color: #f87171; border-color: #7f1d1d; }
body.dark-mode .notif-section       { border-color: #2a221a; }

/* ── Push History – redesigned ──────────────────────────────────── */

/* Stats chips */
.ph-stats { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.ph-stat {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; font-family: 'Montserrat',sans-serif;
  padding: 3px 9px; border-radius: 20px;
}
.ph-stat-sent   { background: #dcfce7; color: #166534; }
.ph-stat-seen   { background: #ccfbf1; color: #0f766e; }
.ph-stat-cancel { background: #f3f4f6; color: #6b7280; }
.ph-stat-error  { background: #fee2e2; color: #991b1b; }

/* Filter tabs */
.ph-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.ph-tab {
  flex: 1; padding: 6px 4px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--sub);
  font-size: 11px; font-family: 'Montserrat',sans-serif; font-weight: 500;
  cursor: pointer; transition: background 0.15s; text-align: center;
}
.ph-tab:hover   { background: var(--border); }
.ph-tab-active  { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Date groups */
.ph-list { display: flex; flex-direction: column; gap: 14px; }
.ph-day  {}
.ph-day-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--sub);
  font-family: 'Montserrat',sans-serif;
  padding-bottom: 5px; margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
}
.ph-day-count {
  font-size: 10px; background: var(--border); color: var(--sub);
  padding: 1px 6px; border-radius: 10px; font-weight: 700;
}
.ph-day-del-all {
  margin-left: auto; padding: 2px 7px; border-radius: 5px;
  font-size: 10px; font-weight: 600; cursor: pointer;
  background: transparent; border: 1px solid var(--border);
  color: var(--sub); font-family: 'Montserrat', sans-serif;
  transition: background 0.12s, color 0.12s;
}
.ph-day-del-all:hover { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }

/* Compact rows */
.ph-row {
  padding: 7px 4px; border-bottom: 1px solid var(--border);
  cursor: pointer; border-radius: 4px;
  transition: background 0.1s;
}
.ph-row:last-child { border-bottom: none; }
.ph-row:hover { background: var(--surface2, #f9f6f0); }
.ph-row-main {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Montserrat',sans-serif;
}
.ph-icon        { font-size: 13px; flex-shrink: 0; }
.ph-icon-seen   { opacity: 1; }
.ph-icon-sent   { opacity: 0.7; }
.ph-icon-cancel { opacity: 0.55; }
.ph-icon-error  {}
.ph-row-name    { font-size: 13px; font-weight: 500; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-row-channel { font-size: 12px; color: var(--sub); flex-shrink: 0; }
.ph-type-tag    { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 10px; flex-shrink: 0; }
.ph-type-shift  { background: #fffbeb; color: #b45309; }
.ph-type-weekly { background: #f0fdf4; color: #15803d; }
.ph-type-monthly{ background: #eff6ff; color: #1d4ed8; }
.ph-type-deleted{ background: #fef2f2; color: #dc2626; }
.ph-row-time    { font-size: 11px; color: var(--sub); flex-shrink: 0; }
.ph-row-expand  { font-size: 14px; color: var(--sub); flex-shrink: 0; width: 14px; text-align: center; }
.ph-del-btn     { font-size: 12px; padding: 1px 4px; flex-shrink: 0; }
.ph-row-msg {
  font-size: 12px; color: var(--sub); line-height: 1.5;
  font-family: -apple-system,sans-serif;
  padding: 6px 4px 2px 22px;
}

/* Previous-status badges in papierkorb */
.ph-prev-badge {
  font-size: 10px; font-weight: 600; font-family: 'Montserrat',sans-serif;
  padding: 2px 6px; border-radius: 10px; flex-shrink: 0;
}
.ph-pb-sent   { background: #dcfce7; color: #166534; }
.ph-pb-cancel { background: #f3f4f6; color: #6b7280; }
.ph-pb-error  { background: #fee2e2; color: #991b1b; }

/* Papierkorb section */
.ph-del-section {
  margin-top: 14px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.ph-del-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; background: var(--bg);
  font-size: 12px; font-family: 'Montserrat',sans-serif; font-weight: 600;
  color: var(--sub); cursor: pointer;
}
.ph-del-head:hover { background: var(--surface2, #f9f6f0); }
.ph-del-body { padding: 4px 12px 8px; }
.ph-del-body .ph-row { opacity: 0.65; }

/* Dark mode */
body.dark-mode .ph-tab-active           { background: var(--primary); }
body.dark-mode .ph-tab                  { background: #1e1812; border-color: #2a221a; }
body.dark-mode .ph-tab:hover            { background: #2a221a; }
body.dark-mode .ph-row:hover            { background: #1e1812; }
body.dark-mode .ph-type-shift           { background: #2d1e00; color: #d97706; }
body.dark-mode .ph-type-weekly          { background: #052e16; color: #4ade80; }
body.dark-mode .ph-type-monthly         { background: #0c1d3a; color: #60a5fa; }
body.dark-mode .ph-type-deleted         { background: #2d0505; color: #f87171; }
body.dark-mode .ph-stat-sent            { background: #064e28; color: #6ee7b7; }
body.dark-mode .ph-stat-seen            { background: #0a3530; color: #2dd4bf; }
body.dark-mode .ph-del-section          { border-color: #2a221a; }
body.dark-mode .ph-del-head             { background: #181210; }
body.dark-mode .ph-del-head:hover       { background: #1e1812; }

/* ─── Kalender-Abo Modal ─── */
.cal-sub-info {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px;
  background: var(--surface2, #f9f6f0); border-radius: 10px; padding: 12px 14px;
}
.cal-sub-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-family: 'Montserrat',sans-serif; color: var(--text);
}
.cal-sub-num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--primary);
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cal-sub-details {
  font-size: 12px; color: var(--sub); font-family: 'Montserrat',sans-serif;
  margin-bottom: 12px; cursor: pointer;
}
.cal-sub-details summary { outline: none; }
.cal-sub-hint {
  font-size: 12px; color: var(--sub); line-height: 1.6;
  font-family: 'Montserrat',sans-serif; text-align: center;
  padding: 10px 0 4px;
}
body.dark-mode .cal-sub-info { background: #1e1812; }

/* ─── MONATSPLAN SMS ─── */
.monthly-sms-emp-list {
  border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden;
}
.monthly-sms-emp-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-family: -apple-system,sans-serif; font-size: 14px;
  transition: background 0.12s;
}
.monthly-sms-emp-item:last-child { border-bottom: none; }
.monthly-sms-emp-item:hover { background: var(--bg); }
.monthly-sms-emp-item input[type=checkbox] {
  width: 16px; height: 16px; cursor: pointer; flex-shrink: 0;
  accent-color: var(--primary);
}
.monthly-sms-preview {
  background: var(--bg); border-radius: 10px; padding: 12px 14px;
  border-left: 3px solid var(--accent);
}
.monthly-sms-preview-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  font-family: -apple-system,sans-serif;
}

/* ─── MITARBEITER-ANSICHT: ANSICHTS-TOGGLE ─── */
/* ── Sprachschalter ─────────────────────────────────────────── */
.emp-lang-bar {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 10px; padding: 8px 12px;
  background: var(--surface2, #f9f6f0);
  border-radius: 10px;
}
.lang-btn {
  padding: 5px 11px; border-radius: 20px;
  border: 1.5px solid var(--border); background: white;
  font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: 'Montserrat', sans-serif; color: var(--sub);
  transition: all 0.15s; white-space: nowrap;
}
.lang-btn.active {
  background: var(--primary); color: white;
  border-color: var(--primary);
}
.lang-btn:not(.active):hover { background: var(--bg); }

.emp-view-toggle-bar {
  display: flex; gap: 8px; margin-bottom: 10px;
}
.view-toggle-btn {
  flex: 1; padding: 10px 14px; border-radius: 10px;
  border: 1.5px solid var(--border); background: white;
  font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: 'Montserrat', sans-serif; color: var(--sub);
  transition: all 0.15s;
}
.view-toggle-btn.active {
  background: var(--primary); color: white;
  border-color: var(--primary); font-weight: 700;
}
.view-toggle-btn:not(.active):hover { background: var(--bg); }

/* ─── TAGES-KARTEN: ABWECHSELNDE HINTERGRÜNDE ─── */
.emp-day-even { background: #ffffff; }
.emp-day-odd  { background: #faf5ee; }
.emp-day-card.weekend.emp-day-even { background: #f0f5ff; }
.emp-day-card.weekend.emp-day-odd  { background: #eaeffb; }
.emp-day-card.today.emp-day-even,
.emp-day-card.today.emp-day-odd   { background: #edf6f1; }

.emp-day-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.emp-day-left   { display: flex; align-items: baseline; gap: 8px; }
.emp-today-dot  {
  font-size: 10px; font-weight: 700; color: white;
  background: var(--primary); padding: 3px 8px; border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
}

/* ─── CHANGE DOT (ungesehene Schichtänderung) ─── */
.emp-change-dot {
  display: inline-block;
  width: 9px; height: 9px;
  background: #f59e0b;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(245,158,11,0.25);
  animation: change-dot-pulse 2s ease-in-out infinite;
}
.mc-change-dot {
  display: inline-block;
  vertical-align: middle;
  width: 7px; height: 7px;
  background: #f59e0b;
  border-radius: 50%;
  margin-left: 3px;
  box-shadow: 0 0 0 2px rgba(245,158,11,0.2);
  animation: change-dot-pulse 2s ease-in-out infinite;
}
@keyframes change-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(0.75); }
}

/* ─── IST-ZEITEN (BEARBEITBAR / LESEND) ─── */
.emp-day-times {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 8px; padding: 8px 10px;
  background: rgba(42,74,62,0.06); border-radius: 8px;
  border: 1px dashed rgba(42,74,62,0.2);
}
.emp-day-times.readonly {
  background: rgba(184,135,74,0.06);
  border: 1px solid rgba(184,135,74,0.18);
}
.times-label {
  font-size: 11px; font-weight: 700; color: var(--sub);
  text-transform: uppercase; letter-spacing: 0.05em;
  font-family: 'Montserrat', sans-serif; white-space: nowrap;
}
.times-dash  { color: var(--sub); font-weight: 600; }
.times-value { font-size: 14px; font-weight: 600; font-family: 'Montserrat', sans-serif; }
.time-inp {
  width: 100px; padding: 5px 8px; border: 1.5px solid var(--border);
  border-radius: 7px; font-size: 14px; font-family: 'Montserrat', sans-serif;
  background: white; outline: none; text-align: center;
}
.time-inp:focus { border-color: var(--primary); }
.time-total {
  font-size: 13px; font-weight: 700; color: var(--primary);
  font-family: 'Montserrat', sans-serif; margin-left: auto;
  min-width: 28px;
}

/* ─── 4-WOCHEN-ÜBERSICHT ─── */
.emp-multi-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: white; border-radius: var(--radius);
  margin-bottom: 10px; box-shadow: var(--shadow);
  font-size: 14px; font-weight: 600; font-family: -apple-system, sans-serif;
}
.emp-multi-scroll {
  overflow-x: auto; border-radius: var(--radius);
  box-shadow: var(--shadow-md); margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  max-width: 100%; /* kein horizontales Überlaufen des Containers */
  background: #ede8e1; padding: 4px;
}
.emp-multi-table {
  width: 100%; border-collapse: separate; border-spacing: 3px; min-width: 780px;
  table-layout: fixed;
  background: transparent; border-radius: var(--radius); overflow: hidden;
}
.mc-kw-cell {
  padding: 10px 12px; background: var(--primary);
  color: white; text-align: center; min-width: 64px;
  vertical-align: middle; border-radius: 7px;
  position: sticky; left: 0; z-index: 2;
}
.mc-kw       { font-size: 12px; font-weight: 700; font-family: 'Montserrat', sans-serif; letter-spacing: 0.04em; }
.mc-kw-range { font-size: 10px; opacity: 0.75; font-family: 'Montserrat', sans-serif; margin-top: 2px; }
.mc-kw-goto  { font-size: 13px; opacity: 0; margin-top: 3px; transition: opacity 0.15s; }
.mc-kw-clickable { cursor: pointer; transition: background 0.15s, filter 0.15s; }
.mc-kw-clickable:hover { filter: brightness(1.18); }
.mc-kw-clickable:hover .mc-kw-goto { opacity: 0.85; }
.mc-kw-clickable:active { filter: brightness(0.92); }

.mc-cell {
  padding: 8px 8px 12px; vertical-align: top;
  border: 2px solid #b8afa7; border-radius: 7px;
  min-width: 100px; transition: background 0.1s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.mc-even   { background: #ffffff; }
.mc-odd    { background: #faf5ee; }
.mc-weekend.mc-even { background: #f0f5ff; }
.mc-weekend.mc-odd  { background: #eaeffb; }
.mc-today  { background: #edf6f1 !important; border: 2px solid #4ade80 !important; box-shadow: none; }

.mc-current-week .mc-kw-cell { background: var(--accent); }
.mc-current-week .mc-cell    { border-bottom: 2.5px solid var(--accent) !important; }
.mc-current-week .mc-today   { border-bottom: 2px solid #4ade80 !important; }
.mc-out-of-month             { background: #f9fafb; border-color: #d8d0c8; }

.mc-date     { font-size: 11px; font-weight: 700; color: var(--sub); margin-bottom: 5px; font-family: 'Montserrat', sans-serif; }
.mc-date-num { font-weight: 400; font-size: 10px; }
.mc-inner    { display: flex; flex-direction: column; gap: 3px; }
.mc-empty    { font-size: 13px; color: #d1c4ba; }
.mc-shift-badge {
  font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 6px;
  font-family: 'Montserrat', sans-serif; white-space: nowrap;
  display: inline-block;
}
/* Kollegen in Monatsansicht */
.mc-colleague-row {
  display: flex; align-items: center; gap: 2px;
  flex-wrap: wrap; margin-top: 3px;
}
.mc-colleague-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 8px; font-weight: 800; font-family: -apple-system,sans-serif;
}
.mc-colleague-more {
  font-size: 9px; color: var(--sub);
  font-family: 'Montserrat', sans-serif; font-weight: 600;
}
.mc-times {
  font-size: 10px; color: var(--primary); font-family: 'Montserrat', sans-serif;
  font-weight: 500; margin-top: 2px;
}
.mc-times-edit { display: flex; flex-direction: column; gap: 3px; margin-top: 3px; }
.time-inp-mini {
  width: 100%; padding: 3px 5px; border: 1px solid var(--border);
  border-radius: 5px; font-size: 11px; font-family: 'Montserrat', sans-serif;
  background: white; outline: none; text-align: center;
}
.time-inp-mini:focus { border-color: var(--primary); }

/* ─── EINSTELLUNGEN ─── */
.settings-section { margin-bottom: 4px; }
.icon-pick-btn { line-height: 1; }
.settings-section-title {
  font-weight: 700; font-size: 15px; margin-bottom: 14px;
  font-family: Georgia, serif; color: var(--text);
}
.settings-user-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--bg); border-radius: 9px;
  margin-bottom: 8px; font-family: -apple-system, sans-serif;
}
.settings-user-name { font-size: 14px; font-weight: 500; }
.settings-info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: 14px; font-family: -apple-system, sans-serif;
}
.settings-info-row:last-child { border-bottom: none; }
.settings-info-row span:last-child { color: var(--sub); font-size: 13px; }

/* ─── MONATSABSCHLUSS ─── */
.report-entries-list { display: flex; flex-direction: column; gap: 10px; }
.report-entry-row {
  background: var(--bg); border-radius: 10px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.report-entry-date {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.report-entry-day {
  font-weight: 700; font-size: 13px; font-family: -apple-system,sans-serif;
  color: var(--sub); min-width: 24px;
}
.report-entry-dt { font-size: 14px; font-family: -apple-system,sans-serif; font-weight: 500; }
.report-entry-shift {
  padding: 3px 9px; border-radius: 8px; font-size: 12px;
  font-family: 'Montserrat',sans-serif; font-weight: 500;
}
.report-entry-times {
  display: flex; align-items: center; gap: 8px;
}
.report-time-input {
  max-width: 120px; padding: 8px 10px !important;
  font-size: 14px !important; text-align: center;
}
.report-time-dash { font-weight: 700; color: var(--sub); flex-shrink: 0; }
.report-note-input { font-size: 13px !important; padding: 8px 10px !important; }

/* Berichts-Liste Manager */
.report-item {
  background: var(--bg); border-radius: 10px; padding: 14px;
  border-left: 3px solid var(--border);
}
.report-item.pending  { border-left-color: var(--accent); }
.report-item.approved { border-left-color: var(--primary); opacity: 0.75; }
.report-item-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap;
  font-family: -apple-system,sans-serif;
}
.report-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.report-status-dot.pending  { background: var(--accent); }
.report-status-dot.approved { background: var(--primary); }
.report-month-label {
  font-size: 13px; font-family: 'Montserrat',sans-serif;
  background: var(--primary-light); color: var(--primary);
  padding: 2px 8px; border-radius: 6px; font-weight: 500;
}

/* ─── MONATSABSCHLUSS – ZUSAMMENFASSUNG & STATUS ─── */
.report-summary-box {
  background: var(--primary-light); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 16px;
  border: 1px solid rgba(42,74,62,0.15);
  display: flex; flex-direction: column; gap: 8px;
}
.report-summary-row {
  display: flex; align-items: center; justify-content: space-between;
  font-family: -apple-system,sans-serif; font-size: 14px;
  color: var(--text);
}
.report-summary-row span { color: var(--sub); }
.report-summary-row strong { font-weight: 600; }

.report-entry-row.has-hours {
  border-left: 3px solid var(--primary-mid);
}
.report-entry-row.missing-hours {
  border-left: 3px solid #d4933a;
  background: #fffbf5;
}
.report-entry-row.absence {
  border-left: 3px solid #8b5cf6;
  background: #faf5ff;
}
.report-entry-row.no-duty {
  border-left: 3px solid var(--border);
  background: #fafafa;
  opacity: 0.55;
}
.report-entry-row.no-duty:hover { opacity: 0.85; }
.report-empty {
  text-align: center; padding: 40px 20px;
  color: var(--sub); font-family: -apple-system,sans-serif;
  font-size: 14px; line-height: 1.6;
}
.report-empty-icon { font-size: 32px; margin-bottom: 10px; }

/* Schicht-Dropdown in Report-Zeile */
.report-shift-select {
  font-family: -apple-system,sans-serif; font-size: 13px;
  padding: 4px 8px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text); cursor: pointer; flex-shrink: 0;
  max-width: 160px;
}
.report-shift-select:focus { outline: none; border-color: var(--primary); }

/* Manager-Plan Hinweis-Badge */
.report-plan-badge {
  font-size: 11px; color: var(--sub);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 6px;
  font-family: -apple-system,sans-serif; cursor: help;
  flex-shrink: 0;
}
/* Abwesenheits-Badge (schreibgeschützt) */
.report-absence-badge {
  padding: 3px 9px; border-radius: 8px; font-size: 12px;
  font-family: 'Montserrat',sans-serif; font-weight: 500;
  flex-shrink: 0;
}
/* MA-Änderungs-Badges in Manager-Detailansicht */
.rd-emp-badge {
  display: inline-block; font-size: 10px; font-family: 'Montserrat',sans-serif;
  font-weight: 600; padding: 1px 6px; border-radius: 4px; margin-top: 3px;
  white-space: nowrap;
}
.rd-badge-shift { background: #fef3c7; color: #92400e; }
.rd-badge-times { background: #d1fae5; color: #065f46; }
.report-readonly-hint {
  font-size: 11px; color: var(--sub);
  font-family: -apple-system,sans-serif;
  margin-left: auto; flex-shrink: 0;
}

/* Dichtere Liste für ganzen Monat */
.report-entries-list { gap: 6px; }

.report-send-block {
  margin-top: 20px; display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
.report-send-block .btn-primary {
  width: 100%; max-width: 340px;
}
.report-send-hint {
  font-size: 12px; color: var(--sub);
  font-family: -apple-system,sans-serif; text-align: center;
  line-height: 1.4;
}

/* ─── WOCHE KOPIEREN / VORLAGEN ─── */
.week-label-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; flex-wrap: wrap; }
.week-label-actions .del-week-btn { margin-right: 10px; }
.wk-action-btn {
  font-size: 12px; padding: 5px 12px; border-radius: 8px;
  cursor: pointer; font-family: 'Montserrat', sans-serif;
  font-weight: 600; white-space: nowrap; transition: background 0.15s;
}
/* Alle Wochenkopf-Buttons: einheitlich neutral */
.wk-action-btn.copy-btn,
.wk-action-btn.tpl-btn,
.wk-action-btn.del-week-btn,
.wk-action-btn.absence-week-btn,
.wk-action-btn.week-push-btn       { background: none; border: 1px solid var(--border); color: var(--text); }
.wk-action-btn.copy-btn:hover,
.wk-action-btn.tpl-btn:hover,
.wk-action-btn.del-week-btn:hover,
.wk-action-btn.absence-week-btn:hover,
.wk-action-btn.week-push-btn:hover { background: rgba(0,0,0,0.05); border-color: var(--sub); }
.abs-day-check { display:flex; align-items:center; gap:5px; font-size:13px; font-family:'Montserrat',sans-serif; cursor:pointer; background:var(--card); border:1px solid var(--border); border-radius:8px; padding:5px 10px; }
.abs-day-check input { width:15px; height:15px; cursor:pointer; accent-color:var(--primary); }
.abs-day-check:has(input:checked) { background:#d1fae5; border-color:#6ee7b7; color:#065f46; }
/* Status-Farben für "Woche senden" bleiben erhalten (tragen Information) */
.wk-action-btn.week-push-btn       { background: none; border: 1px solid var(--border); color: var(--text); }
.wk-action-btn.week-push-btn:hover { background: rgba(0,0,0,0.05); border-color: var(--sub); }
.wk-action-btn.week-push-btn.push-done         { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; }
.wk-action-btn.week-push-btn.push-done:hover   { background: #a7f3d0; }
.wk-action-btn.week-push-btn.push-changed       { background: #fef9c3; border: 1px solid #fbbf24; color: #92400e; }
.wk-action-btn.week-push-btn.push-changed:hover { background: #fde68a; }

/* ─── FEIERTAGE ─── */
.day-card.holiday-day { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); border-color: #fcd34d; }
.holiday-badge {
  font-size: 10px; color: #92400e; background: #fef3c7;
  border: 1px solid #fcd34d; border-radius: 6px; padding: 2px 6px;
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px;
}

/* ─── KONFLIKT-WARNUNG ─── */
.emp-chip.conflict {
  border: 1.5px solid #dc2626 !important;
  background: #fee2e2 !important; color: #991b1b !important;
}
.emp-chip.absent-conflict {
  border: 1.5px solid #d97706 !important;
  background: #fef3c7 !important; color: #92400e !important;
}

/* ─── TAGES-NOTIZEN ─── */
.day-note-row {
  margin-top: 8px; padding: 7px 10px; border-radius: 8px;
  cursor: pointer; border: 1px dashed #fbb6ce;
  background: #fde8f0;
  display: flex; align-items: center; gap: 6px;
  min-height: 32px; transition: background 0.15s;
}
.day-note-row:hover { background: #fce7f3; border-color: #f472b6; }
.day-note-icon { font-size: 15px; flex-shrink: 0; }
.day-note-text { font-size: 13px; font-weight: 600; color: #be185d; font-family: -apple-system, sans-serif; line-height: 1.3; }
.day-note-add { font-size: 11px; color: var(--sub); font-family: -apple-system, sans-serif; font-style: italic; }

/* Tages-Notiz in Mitarbeiteransicht (readonly) */
.month-locked-badge {
  font-size: 11px; color: #059669; font-weight: 600;
  font-family: -apple-system, sans-serif;
  padding: 3px 8px; background: #d1fae5; border-radius: 6px;
  display: inline-block; margin-bottom: 6px;
}

.month-locked-badge {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 8px; padding: 6px 10px; border-radius: 8px;
  background: #f0fdf4; border: 1px solid #86efac;
  font-size: 12px; font-weight: 600; color: #15803d;
  font-family: -apple-system, sans-serif;
}

.emp-day-note {
  display: flex; align-items: flex-start; gap: 7px;
  margin-top: 8px; padding: 8px 10px; border-radius: 10px;
  background: #fffbeb; border: 2px solid #f59e0b;
}
.emp-day-note-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.emp-day-note-text { font-size: 13px; font-weight: 600; color: #92400e; font-family: -apple-system, sans-serif; line-height: 1.4; }

/* ─── VORLAGEN ─── */
.template-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border); gap: 8px;
}
.template-item:last-child { border-bottom: none; }
.template-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.template-item-name { font-size: 14px; font-weight: 600; font-family: -apple-system, sans-serif; }
.template-item-date { font-size: 11px; color: var(--sub); font-family: -apple-system, sans-serif; }
.template-item-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* ─── MONATSABSCHLUSS – STATUS & AKTIONEN ─── */
.report-send-block { gap: 10px; }
.report-sent-status {
  display: flex; align-items: center; gap: 14px;
  background: var(--primary-light); border-radius: 12px;
  padding: 14px 16px; border: 1px solid rgba(42,74,62,0.15);
  width: 100%;
}
.report-sent-icon { font-size: 28px; flex-shrink: 0; }
.report-sent-info { display: flex; flex-direction: column; gap: 3px; }
.report-sent-label {
  font-size: 15px; font-weight: 600;
  font-family: -apple-system, sans-serif; color: var(--primary);
}
.report-sent-date {
  font-size: 12px; color: var(--sub);
  font-family: -apple-system, sans-serif;
}
.report-withdraw-btn {
  width: 100%; color: #b45309 !important;
  border-color: #fcd34d !important; background: #fffbeb !important;
}
.report-withdraw-btn:hover { background: #fef3c7 !important; }

/* ─── MODAL SCROLL LOCK ─── */
body.modal-open { overflow: hidden !important; touch-action: none; }


/* ─── Notiz-Pill in Monatsansicht ─── */
.mc-note-pill {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s;
}
.mc-note-pill:active { opacity: 0.7; }
.mc-note-truncated {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.note-popup-text {
  font-size: 15px; line-height: 1.6; color: var(--text);
  font-family: -apple-system, sans-serif;
  background: #fffbeb; border: 2px solid #f59e0b;
  border-radius: 10px; padding: 14px 16px;
  white-space: pre-wrap;
}

/* ── Gesehen-Labels ─────────────────────────────────────────── */
.notif-seen-label   { font-size: 11px; color: #166534; font-family: 'Montserrat',sans-serif; font-weight: 600; margin-left: 6px; }
.notif-unseen-label { font-size: 11px; color: #9ca3af; font-family: 'Montserrat',sans-serif; margin-left: 6px; }
.emp-lastseen       { font-size: 11px; color: #166534; font-family: 'Montserrat',sans-serif; display: block; margin-top: 2px; }
.emp-lastseen.unseen { color: #9ca3af; }

/* ── Wochenbenachrichtigung Modal ──────────────────────────── */
.wpush-last-sent {
  background: #d1fae5; border: 1px solid #6ee7b7; border-radius: 10px;
  padding: 10px 14px; font-size: 13px; font-family: 'Montserrat',sans-serif;
  color: #065f46; font-weight: 600; margin-bottom: 14px;
}
.wpush-list {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 340px; overflow-y: auto; margin-bottom: 4px;
}
.wpush-recipient {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px;
}
.wpush-recipient.wpush-skip { opacity: 0.45; }
.wpush-rec-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 5px;
}
.wpush-rec-name {
  font-family: 'Montserrat',sans-serif; font-weight: 600; font-size: 13px;
  color: var(--text); flex: 1;
}
.wpush-badge {
  font-size: 11px; font-family: 'Montserrat',sans-serif; font-weight: 600;
  padding: 2px 8px; border-radius: 12px; white-space: nowrap;
}
.wpush-badge.wpush-push { background: #d1fae5; color: #065f46; }
.wpush-badge.wpush-sms  { background: #dbeafe; color: #1e40af; }
.wpush-badge.wpush-none { background: #fef3c7; color: #92400e; }
.wpush-rec-schedule {
  font-family: 'Montserrat',sans-serif; font-size: 12px; color: var(--sub);
  line-height: 1.5;
}
.wpush-hint {
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px;
  padding: 9px 12px; font-size: 12px; font-family: 'Montserrat',sans-serif;
  color: #166534; margin-top: 10px;
}

/* dark mode overrides */
body.dark-mode .wpush-last-sent     { background: rgba(82,169,138,0.15); border-color: var(--primary); color: #86efac; }
body.dark-mode .wpush-recipient     { background: #2a231d; border-color: #3d352a; }
body.dark-mode .wpush-badge.wpush-push { background: rgba(82,169,138,0.2); color: #86efac; }
body.dark-mode .wpush-badge.wpush-sms  { background: rgba(96,165,250,0.2); color: #93c5fd; }
body.dark-mode .wpush-badge.wpush-none { background: rgba(251,191,36,0.15); color: #fcd34d; }
body.dark-mode .wpush-hint          { background: rgba(82,169,138,0.08); border-color: rgba(82,169,138,0.3); color: #86efac; }
body.dark-mode .wk-action-btn:hover { background: rgba(255,255,255,0.07); }
body.dark-mode .wk-action-btn.week-push-btn.push-done    { background: rgba(82,169,138,0.15); border-color: var(--primary); color: #86efac; }
body.dark-mode .wk-action-btn.week-push-btn.push-changed { background: rgba(180,140,0,0.15); border-color: #fbbf24; color: #fcd34d; }

/* ── Schwarzes Brett ────────────────────────────────────────── */
.bulletin-title { font-size: 18px; font-weight: 700; font-family: Georgia,serif; margin-bottom: 12px; color: var(--text); }
.bulletin-text  { font-size: 14px; line-height: 1.6; color: var(--text); font-family: -apple-system,sans-serif; }
.bulletin-item  { background: var(--surface2,#f9f6f0); border-radius: 10px; padding: 12px 14px; }
.bulletin-item-head { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.bulletin-item-title { font-size:14px; font-family:'Montserrat',sans-serif; flex:1; }
.bulletin-item-date  { font-size:11px; color:var(--sub); font-family:'Montserrat',sans-serif; }
.bulletin-item-text  { font-size:13px; color:var(--sub); line-height:1.5; font-family:-apple-system,sans-serif; margin-bottom:6px; }
.bulletin-read-count { font-size:11px; color:var(--primary); font-family:'Montserrat',sans-serif; font-weight:600; }

/* ── Employee bulletin board (read-only view) ── */
.emp-bulletin-item {
  background: var(--surface2,#f9f6f0); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 12px;
  border: 1.5px solid var(--border);
}
.emp-bulletin-item.emp-bulletin-unread {
  border-color: var(--accent, #e07b39);
  background: var(--surface2,#fdf8f4);
}
.emp-bulletin-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.emp-bulletin-new {
  font-size: 10px; font-weight: 800; font-family: 'Montserrat',sans-serif;
  background: var(--accent,#e07b39); color: white;
  padding: 2px 7px; border-radius: 6px; letter-spacing: .04em;
}
.emp-bulletin-date {
  font-size: 11px; color: var(--sub); font-family: 'Montserrat',sans-serif;
  margin-left: auto;
}
.emp-bulletin-title {
  font-size: 16px; font-weight: 700; font-family: Georgia,serif;
  color: var(--text); margin-bottom: 8px; line-height: 1.3;
}
.emp-bulletin-text {
  font-size: 14px; line-height: 1.65; color: var(--text);
  font-family: -apple-system,sans-serif;
}

/* ── Sync-Indikator ────────────────────────────────────────── */
#sync-indicator {
  position: fixed; bottom: 70px; right: 12px; z-index: 8000;
  background: rgba(42,74,62,0.9); color: #fff;
  font-size: 11px; font-family: 'Montserrat',sans-serif; font-weight: 500;
  padding: 4px 10px; border-radius: 20px;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
#sync-indicator.visible { opacity: 1; transform: translateY(0); }

/* ── Heute-Widget Startbildschirm ─────────────────────── */
.today-widget {
  background: rgba(255,255,255,0.07); border-radius: 14px;
  padding: 14px 16px; border: 1px solid rgba(255,255,255,0.13); text-align:left;
}
.today-widget-title {
  font-family:'Montserrat',sans-serif; font-size:11px; font-weight:600;
  color:rgba(255,255,255,0.55); margin-bottom:10px;
  text-transform:uppercase; letter-spacing:.05em;
}
.today-row {
  display:flex; align-items:center; gap:8px; padding:5px 0;
  border-bottom:1px solid rgba(255,255,255,0.07);
  font-family:'Montserrat',sans-serif; font-size:12px;
}
.today-row:last-of-type { border-bottom:none; }
.today-shift-icon { font-size:15px; flex-shrink:0; }
.today-shift-label { flex-shrink:0; min-width:74px; font-size:11px; color:rgba(255,255,255,0.5); font-weight:500; }
.today-names { color:#f5efe6; font-weight:500; flex:1; }
.today-row-absent .today-shift-label { color:rgba(255,255,255,0.3); }
.today-names-abs { color:rgba(255,255,255,0.3); text-decoration:line-through; }
.today-widget-empty {
  font-family:'Montserrat',sans-serif; font-size:12px;
  color:rgba(255,255,255,0.35); text-align:center; padding:6px 0 10px;
}
.today-widget-btn {
  display:block; width:100%; margin-top:10px;
  background:rgba(255,255,255,0.09); border:1px solid rgba(255,255,255,0.17);
  color:rgba(255,255,255,0.75); font-family:'Montserrat',sans-serif;
  font-size:11px; font-weight:500; padding:7px; border-radius:8px;
  cursor:pointer; transition:background 0.2s; text-align:center;
}
.today-widget-btn:hover { background:rgba(255,255,255,0.15); }

/* ── PWA Update-Banner ──────────────────────────────────────── */
#pwa-update-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  display: flex; align-items: center; gap: 10px;
  background: #1c4532; color: #fff;
  padding: 12px 16px;
  font-family: 'Montserrat', sans-serif; font-size: 14px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.25);
  animation: slideUpBanner 0.3s ease;
}
@keyframes slideUpBanner { from { transform: translateY(100%); } to { transform: translateY(0); } }
.pwa-update-icon  { font-size: 18px; flex-shrink: 0; }
.pwa-update-text  { flex: 1; font-weight: 500; }
.pwa-update-btn   {
  background: #22c55e; color: #fff; border: none; border-radius: 8px;
  padding: 7px 14px; font-family: 'Montserrat',sans-serif; font-size: 13px;
  font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.pwa-update-btn:active { opacity: 0.8; }
.pwa-update-close {
  background: none; border: none; color: rgba(255,255,255,0.6);
  font-size: 16px; cursor: pointer; padding: 4px; flex-shrink: 0; line-height: 1;
}

/* ── Urlaubsanträge ─────────────────────────────────────────── */
.vac-request-item  { background: var(--surface2,#f9f6f0); border-radius: 10px; padding: 12px 14px; }
.vac-request-head  { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; font-family:'Montserrat',sans-serif; }
.vac-request-dates { font-size:13px; color:var(--sub); margin-bottom:4px; font-family:'Montserrat',sans-serif; }
.vac-request-note  { font-size:12px; color:#92400e; font-style:italic; margin-bottom:6px; font-family:-apple-system,sans-serif; }

/* Zeitraum-Vorschau-Button */
.vac-preview-btn { font-family:'Montserrat',sans-serif; font-size:11px; font-weight:600; color:var(--primary); background:var(--primary-light); border:1px solid var(--primary-mid); border-radius:6px; padding:3px 9px; cursor:pointer; white-space:nowrap; transition:background 0.15s; }
.vac-preview-btn:hover { background:#c8ddd5; }

/* Zeitraum-Vorschau-Inhalt */
.vac-preview-wrap  { margin: 6px 0 4px; }
.vac-preview-inner { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.vpc-legend        { display:flex; align-items:center; gap:6px; padding: 6px 10px; background: var(--primary-light); border-bottom:1px solid var(--border); }
.vpc-grid          { display:flex; overflow-x:auto; -webkit-overflow-scrolling:touch; gap:1px; background: var(--border); padding:0; }
.vpc-col           { flex:0 0 auto; min-width:64px; max-width:80px; background:#fff; padding:6px 6px 8px; display:flex; flex-direction:column; align-items:center; gap:4px; }
.vpc-col.vpc-weekend { background:#faf7f3; }
.vpc-date          { font-family:'Montserrat',sans-serif; font-size:10px; font-weight:600; color:var(--sub); text-align:center; white-space:nowrap; }
.vpc-chips         { display:flex; flex-direction:column; gap:3px; width:100%; }
.vpc-chip          { display:flex; align-items:center; justify-content:space-between; gap:3px; border-radius:5px; padding:2px 5px; font-family:'Montserrat',sans-serif; font-size:11px; background:#f0ebe4; border:1px solid var(--border); }
.vpc-chip.vpc-chip-req { background:#d1fae5; border-color:#6ee7b7; font-weight:700; }
.vpc-name          { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:38px; font-size:11px; }
.vpc-shift         { font-size:10px; color:var(--sub); flex-shrink:0; }
.vpc-chip.vpc-chip-req .vpc-shift { color:#065f46; }
.vpc-empty         { font-size:11px; color:#b8a89a; text-align:center; }
.vpc-col.vpc-vacday { background:#fffbeb; border-top: 2px solid #f59e0b; }
.vpc-vacmark       { font-size:10px; text-align:center; line-height:1; margin-top:1px; }

/* ── Wiederholen-Button ─────────────────────────────────────── */
.wk-action-btn.repeat-btn       { background: none; border: 1px solid var(--border); color: var(--text); }
.wk-action-btn.repeat-btn:hover { background: rgba(0,0,0,0.05); border-color: var(--sub); }

/* ─── MOBILE: Monatsansicht Zellen breiter & Notizen lesbarer ─── */
@media (max-width: 600px) {
  /* Notiz in Monatszelle kompakter */
  .mc-note {
    margin-top: 4px !important;
    padding: 4px 6px !important;
    border-radius: 6px !important;
  }
  .emp-day-note-icon { font-size: 12px !important; }
  .emp-day-note-text { font-size: 11px !important; line-height: 1.3 !important; }

  /* Schicht-Badge in Monatszelle kleiner */
  .mc-shift-badge {
    font-size: 9px !important;
    padding: 1px 3px !important;
    border-radius: 4px !important;
    white-space: normal !important;
    word-break: break-word;
  }

  /* Datum in Monatszelle kompakter */
  .mc-date { font-size: 9px !important; margin-bottom: 3px !important; }
  .mc-date-num { font-size: 8px !important; }
}
