:root {
  --bg: #f8fffe;
  --card: #ffffff;
  --turquoise: #5ecfc4;
  --turquoise-light: #e0f7f5;
  --turquoise-dark: #3aa89e;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #d4ebe8;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.hidden { display: none !important; }

/* ========== LOGIN ========== */
#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(160deg, #f8fffe 0%, #e0f7f5 100%);
}

.login-card {
  background: var(--card);
  padding: 40px 36px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--turquoise-dark);
  margin-bottom: 8px;
}

.login-card h1 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s;
  margin-bottom: 14px;
}

.input:focus {
  outline: none;
  border-color: var(--turquoise);
}

.textarea {
  min-height: 110px;
  resize: vertical;
}

.password-box {
  margin-bottom: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--turquoise);
  color: #fff;
  width: 100%;
}

.btn-primary:hover:not(:disabled) {
  background: var(--turquoise-dark);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 8px 12px;
  font-size: 0.9rem;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--turquoise-light);
}

.btn-icon {
  background: var(--turquoise-light);
  color: var(--turquoise-dark);
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.3rem;
  border-radius: 8px;
}

.btn-icon:hover {
  background: var(--turquoise);
  color: #fff;
}

.error {
  color: #d32f2f;
  font-size: 0.9rem;
  margin-top: 12px;
}

/* ========== HEADER ========== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo-small {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--turquoise-dark);
}

.week-label {
  margin-left: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-badge {
  background: var(--turquoise-light);
  color: var(--turquoise-dark);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ========== TABS ========== */
.tabs {
  display: flex;
  gap: 4px;
  padding: 12px 24px 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.tab {
  padding: 10px 18px;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  font-family: inherit;
  transition: all 0.15s;
}

.tab:hover {
  color: var(--text);
  background: var(--turquoise-light);
}

.tab.active {
  color: var(--turquoise-dark);
  background: var(--turquoise-light);
  font-weight: 600;
}

/* ========== CONTENT ========== */
.tab-content {
  padding: 20px 24px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.week-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

/* ========== PLAN TABLE ========== */
.plan-wrapper {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.plan-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  font-size: 0.88rem;
}

.plan-table th {
  background: var(--turquoise-light);
  color: var(--text);
  font-weight: 600;
  padding: 12px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}

.plan-table th.col-name {
  text-align: left;
  padding-left: 16px;
  min-width: 160px;
}

.plan-table td {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 6px;
  vertical-align: top;
  min-width: 110px;
}

.plan-table td:first-child {
  background: #fafafa;
  font-weight: 500;
  padding: 10px 12px;
  border-right: 1px solid var(--border);
}

.section-row td {
  background: var(--turquoise) !important;
  color: #fff;
  font-weight: 600;
  padding: 8px 12px !important;
  font-size: 0.9rem;
}

.shift {
  background: #f0fafa;
  border-radius: 6px;
  padding: 5px 7px;
  margin-bottom: 4px;
  font-size: 0.82rem;
  line-height: 1.3;
}

.shift .time {
  font-weight: 600;
  display: block;
}

.shift .note {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.shift.editable {
  cursor: text;
  border: 1px dashed transparent;
}

.shift.editable:hover {
  border-color: var(--turquoise);
  background: #e8f8f6;
}

.hours-badge {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ========== WÜNSCHE / IDEEN-BOX ========== */
.wuensche-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 800px) {
  .wuensche-layout {
    grid-template-columns: 1fr;
  }
}

.ideen-intro {
  font-size: 0.95rem;
  color: var(--text-muted, #666);
  margin: 0 0 16px;
  line-height: 1.45;
}

.ideen-file-label {
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 6px;
}

.ideen-file-name {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted, #666);
  margin-bottom: 12px;
  min-height: 1.2em;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card h2 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.status-msg {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--turquoise-light);
  color: var(--turquoise-dark);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.wunsch-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 500px;
  overflow-y: auto;
}

.wunsch-item {
  background: var(--turquoise-light);
  border-radius: 10px;
  padding: 14px 16px;
  border-left: 4px solid var(--turquoise);
}

.wunsch-item .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.wunsch-item .text {
  font-size: 0.95rem;
}

.wunsch-item .status {
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 500;
}

.wunsch-item .status.open { color: #e67e22; }
.wunsch-item .status.done { color: var(--turquoise-dark); }

/* ========== STUNDEN ========== */
.stunden-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.stunden-card {
  background: var(--turquoise-light);
  border-radius: 10px;
  padding: 16px;
}

.stunden-card .name {
  font-weight: 600;
  margin-bottom: 4px;
}

.stunden-card .hours {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--turquoise-dark);
}

.stunden-card .dept {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.total-card {
  background: var(--turquoise);
  color: #fff;
}

.total-card .hours {
  color: #fff;
}

.total-card .dept {
  color: rgba(255,255,255,0.8);
}

/* ========== ADD SHIFT BUTTON ========== */
.add-shift-btn {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 4px;
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--turquoise-dark);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.6;
  transition: all 0.15s;
}
.add-shift-btn:hover {
  opacity: 1;
  background: var(--turquoise-light);
  border-color: var(--turquoise);
}

.shift.clickable {
  cursor: pointer;
  transition: background 0.15s;
}
.shift.clickable:hover {
  background: #d4f0ed;
}

/* ========== MODAL ========== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal-content h3 {
  margin-bottom: 20px;
  font-size: 1.15rem;
}
.modal-content label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.spacer { flex: 1; }
.btn-danger {
  background: #ffebee;
  color: #c62828;
  padding: 10px 16px;
}
.btn-danger:hover {
  background: #ffcdd2;
}
.btn-small {
  background: var(--turquoise);
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-left: 10px;
}
.btn-small:hover { background: var(--turquoise-dark); }
.wunsch-actions {
  display: flex;
  align-items: center;
  margin-top: 8px;
}
.empty-msg { color: #888; font-size: 0.95rem; }
.plan-table th small {
  font-weight: 400;
  opacity: 0.7;
  font-size: 0.75rem;
}

/* ========== DASHBOARD TILES ========== */
.dashboard {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}
.dashboard-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.dashboard-sub {
  color: var(--text-muted);
  margin-bottom: 32px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
  font-family: inherit;
}
.tile:hover {
  border-color: var(--turquoise);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(94, 207, 196, 0.25);
}
.tile-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.tile-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.tile-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ========== VIEW HEADER ========== */
.view-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px 8px;
  max-width: 1400px;
  margin: 0 auto;
}
.view-header h2 {
  font-size: 1.35rem;
  font-weight: 600;
}
.btn-back {
  background: var(--turquoise-light);
  color: var(--turquoise-dark);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
}
.btn-back:hover {
  background: var(--turquoise);
  color: #fff;
}

.view {
  min-height: calc(100vh - 70px);
}
.view .toolbar,
.view .plan-wrapper,
.view .card,
.view .wuensche-layout {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.view .plan-wrapper {
  padding-bottom: 40px;
}
.view .card {
  margin-top: 12px;
  margin-bottom: 40px;
}
.placeholder-card {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.placeholder-card .muted {
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ========== DOKUMENTE ========== */
.dokumente-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dok-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.dok-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--turquoise-light);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
}
.dok-header:hover {
  background: #d0f0ec;
}
.dok-arrow {
  color: var(--turquoise-dark);
  font-size: 0.9rem;
}
.dok-body {
  padding: 16px 18px;
  background: #fff;
  border-top: 1px solid var(--border);
}
.dok-desc {
  margin-bottom: 8px;
}
.dok-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.dok-file {
  background: #f5f5f5;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== AUFGABEN & EVENTS ========== */
.aufgabe-item, .event-item {
  background: var(--turquoise-light);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-left: 4px solid var(--turquoise);
  cursor: pointer;
  transition: background 0.15s;
}
.aufgabe-item:hover, .event-item:hover { background: #d0f0ec; }
.aufgabe-item .meta, .event-item .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.aufgabe-item .title, .event-item .title {
  font-weight: 600;
  font-size: 1rem;
}
.aufgabe-item .note, .event-item .note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.repeat-badge {
  display: inline-block;
  background: var(--turquoise);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  font-weight: 500;
}
.days-check {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 12px;
}
.days-check label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  cursor: pointer;
}
.rooms-legend {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.room-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
}
.room-tag.stube { background: #5c6bc0; }
.room-tag.salon { background: #26a69a; }
.room-tag.keller { background: #8d6e63; }
.room-tag.garten { background: #66bb6a; }
.event-rooms {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.event-rooms span {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  color: #fff;
}
.empty-list {
  text-align: center;
  color: #888;
  padding: 30px;
}

/* ========== ANHÄNGE & ARTIKELLISTE ========== */
.attach-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.attach { position: relative; }
.attach img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; display: block; }
.attach .pdf-chip { display: flex; align-items: center; height: 72px; max-width: 150px; padding: 0 10px; background: var(--turquoise-light); border-radius: 8px; font-size: 0.8rem; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach .rm { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: none; background: #c62828; color: #fff; font-size: 0.8rem; line-height: 20px; cursor: pointer; padding: 0; }
.file-btn { display: inline-block !important; padding: 8px 14px; background: var(--turquoise-light); color: var(--turquoise-dark) !important; border-radius: 8px; cursor: pointer; font-size: 0.85rem !important; margin-bottom: 14px !important; }
.file-btn:hover { background: #d0f0ec; }
.auf-section { margin: 4px 0 8px; padding: 12px; background: #fafffe; border: 1px solid var(--border); border-radius: 10px; }
.items-table { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.item-row { display: flex; align-items: center; gap: 6px; }
.item-row input[type=checkbox] { width: 20px; height: 20px; flex: none; }
.item-row .item-name { flex: 2; margin: 0; padding: 8px 10px; font-size: 0.9rem; }
.item-row .item-qty { flex: 1; margin: 0; padding: 8px 10px; font-size: 0.9rem; }
.item-row .item-rm { border: none; background: transparent; color: #c62828; font-size: 1.1rem; cursor: pointer; width: 28px; }
.item-row.done .item-name { text-decoration: line-through; opacity: .6; }
.check-row { display: flex !important; align-items: center; gap: 8px; font-size: 0.95rem !important; color: var(--text) !important; margin: 6px 0 !important; cursor: pointer; }
.aufgabe-item.is-done { opacity: .6; border-left-color: #2e7d32; }
.aufgabe-item .badges { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.aufgabe-item .badge { font-size: 0.72rem; background: #fff; border: 1px solid var(--border); padding: 2px 8px; border-radius: 10px; }

.sync-status { font-size: 0.78rem; color: var(--text-muted); max-width: 45vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dok-file-btn { display: block; background: var(--turquoise-light); color: var(--turquoise-dark); border: none; padding: 10px 14px; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 0.9rem; margin-bottom: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dok-file-btn:hover { background: #d0f0ec; }

/* ========== PDF-EXPORT (Druck) ========== */
.toolbar-actions { display: flex; align-items: center; gap: 10px; }
.print-only { display: none; }
@media print {
  @page { size: A4 landscape; margin: 6mm; }
  html, body { background: #fff; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .header, .view-header, .toolbar, .add-shift-btn, #login-screen, .modal { display: none !important; }
  .view { min-height: 0; }
  .print-only { display: block; font-weight: 700; font-size: 12pt; margin: 0 0 2.5mm; }
  .view .plan-wrapper { max-width: none; margin: 0; padding: 0; overflow: visible; box-shadow: none; border: 1px solid #999; border-radius: 0; zoom: var(--print-zoom, 1); }
  .plan-table { min-width: 0; width: 100%; table-layout: fixed; font-size: 8.5pt; }
  .plan-table th { position: static; padding: 2px 2px; }
  .plan-table th.col-name { min-width: 0; width: 32mm; padding-left: 4px; }
  .plan-table td { min-width: 0; padding: 1px 2px; }
  .plan-table td:first-child { padding: 2px 4px; }
  .section-row td { padding: 2px 6px !important; font-size: 9pt; }
  .hours-badge { display: inline; margin: 0 0 0 5px; font-size: 7.5pt; }
  .shift { padding: 1px 3px; margin-bottom: 1px; font-size: 8pt; line-height: 1.2; }
  .shift .note { font-size: 7.5pt; }
  .plan-table tr { break-inside: avoid; }
}

/* ========== EVENT-DETAILS & ÄNDERUNGSVERLAUF ========== */
.ev-detail { margin-top: 8px; font-size: 0.9rem; }
.ev-label { font-weight: 600; font-size: 0.78rem; color: var(--turquoise-dark); }
.ev-text { white-space: pre-wrap; }
.stamp { font-size: 0.72rem; color: var(--text-muted); margin-top: 8px; }
.plan-meta { font-size: 0.8rem; color: var(--text-muted); max-width: 1400px; margin: 0 auto 8px; padding: 0 24px; }
@media print { .plan-meta { display: none; } }

/* ========== KALENDER ========== */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-weight: 600; font-size: 1.05rem; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: 0.75rem; color: var(--text-muted); padding: 4px 0; font-weight: 500; }
.cal-cell { min-height: 54px; border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 4px 3px; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 0.9rem; }
.cal-cell:hover { background: var(--turquoise-light); }
.cal-cell.today span { background: var(--turquoise); color: #fff; border-radius: 10px; padding: 0 7px; }
.cal-cell.sel { border-color: var(--turquoise-dark); box-shadow: 0 0 0 2px var(--turquoise-light); background: var(--turquoise-light); }
.cal-dots { display: flex; gap: 3px; align-items: center; flex-wrap: wrap; justify-content: center; }
.cal-dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.cal-dots b { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; }
.cal-day { margin: 14px 0 22px; padding: 14px 16px; background: #fafffe; border: 1px solid var(--border); border-radius: 12px; }
.cal-day-title { font-weight: 600; margin-bottom: 8px; }
.cal-ev { background: var(--turquoise-light); border-left: 4px solid var(--turquoise); border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 0.9rem; }
.cal-ev span { color: var(--text-muted); font-size: 0.82rem; }
.cal-list-title { font-size: 1rem; margin: 8px 0 10px; }
.duty-box { margin-top: 10px; }
.duty-title { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.duty-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.duty-dept { font-size: 0.72rem; color: #999; width: 52px; flex: none; }
.duty-chip { background: #eee; color: #777; border-radius: 14px; padding: 3px 10px; font-size: 0.8rem; }
.duty-chip small { font-size: 0.72rem; opacity: 0.9; }
.duty-chip.overlap { background: #d9d9d9; color: #333; font-weight: 600; }
.duty-empty, .duty-hint { font-size: 0.8rem; color: #999; }
.duty-hint { margin-top: 4px; }
.duty-dept { width: 100%; }
.cal-ev .event-rooms span { color: #fff; font-size: 0.75rem; }
#ev-onduty { max-height: 160px; overflow-y: auto; }

.day-filter { display: flex; align-items: center; gap: 4px; }

/* ========== BANKETTVEREINBARUNG & EXPORT ========== */
.bv-head { font-weight: 700; font-size: 1.05rem; margin: 18px 0 10px; padding-top: 14px; border-top: 2px solid var(--border); }
.bv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 480px) { .bv-grid { grid-template-columns: 1fr; } .bv-grid > div:empty { display: none; } }
.ev-export { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ev-export .btn { padding: 6px 10px; font-size: 0.8rem; background: var(--turquoise-light); color: var(--turquoise-dark); }

/* ========== NACHWEISE ========== */
.proof-cap { font-size: 0.65rem; color: var(--text-muted); text-align: center; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proof-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.proof-strip img { height: 44px; width: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); cursor: pointer; }
.pdf-mini { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font-size: 0.75rem; cursor: pointer; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dev-credit { margin-top: 22px; text-align: center; font-size: 0.75rem; color: var(--text-muted); opacity: 0.7; }

.bk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border, #e0efec); font-size: 0.9rem; }
.bk-sub { color: var(--text-muted); font-size: 0.8rem; }

#view-backups .subtitle, #backups-list { padding: 0 16px; }

.plan-dirty { color: #e65100; font-size: 0.85rem; font-weight: 600; margin-right: 8px; }
.sync-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: #c62828; color: #fff; padding: 10px 16px; font-size: 0.9rem; text-align: center; }
