/* ============================================================
   MW Business Dashboard — Design System
   ============================================================ */

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

:root {
  --primary:     #4f46e5;
  --primary-h:   #4338ca;
  --primary-10:  #eef2ff;
  --bg:          #f8fafc;
  --bg-card:     #ffffff;
  --border:      #e2e8f0;
  --text:        #0f172a;
  --text-muted:  #64748b;
  --sidebar-w:   240px;
  --radius:      12px;
  --shadow:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

/* ---- SIDEBAR ---- */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width .22s ease;
  overflow: hidden;
}
.sidebar.collapsed { width: 56px; }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  min-width: 0;
}
.sidebar-brand-text { overflow: hidden; transition: opacity .15s; }
.sidebar.collapsed .sidebar-brand-text { opacity: 0; width: 0; }
.sidebar-brand img { flex-shrink: 0; }

.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all .15s;
  white-space: nowrap;
}
.nav-item:hover { background: var(--bg); color: var(--text); }
.nav-item.active { background: var(--primary-10); color: var(--primary); }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; }
.nav-label { overflow: hidden; transition: opacity .15s; }
.sidebar.collapsed .nav-label { opacity: 0; width: 0; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 9px; }

/* Toggle button */
.sidebar-toggle {
  position: absolute;
  top: 18px; right: -12px;
  width: 24px; height: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
  z-index: 101;
  transition: transform .22s ease;
  color: var(--text-muted);
}
.sidebar-toggle:hover { color: var(--primary); border-color: var(--primary); }
.sidebar.collapsed .sidebar-toggle { transform: rotate(180deg); }

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar.collapsed .sidebar-footer { padding: 12px 0; justify-content: center; }
.sidebar-footer-info { overflow: hidden; transition: opacity .15s; }
.sidebar.collapsed .sidebar-footer-info { opacity: 0; width: 0; }
.sidebar.collapsed .logout-btn { display: none; }
.sidebar-user { display: flex; align-items: center; gap: 8px; }
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.logout-btn { color: var(--text-muted); display: flex; align-items: center; }
.logout-btn svg { width: 18px; height: 18px; }
.logout-btn:hover { color: #dc2626; }

/* ---- MAIN ---- */
.main-content {
  margin-left: var(--sidebar-w);
  padding: 28px 32px;
  transition: margin-left .22s ease;
  min-height: 100vh;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.page-header h1 { font-size: 22px; font-weight: 700; }
.text-muted { color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.header-actions { display: flex; gap: 8px; }

/* ---- STATS ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-bottom: 3px; }
.stat-value { font-size: 20px; font-weight: 700; }

/* ---- DASHBOARD GRID ---- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.card-wide { grid-column: 1 / -1; }

/* ---- CARD ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-header h2 { font-size: 15px; font-weight: 600; }
.card-link { font-size: 13px; color: var(--primary); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ---- TODO ---- */
.todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.todo-item:last-child { border-bottom: none; }
.todo-check { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); flex-shrink: 0; }
.todo-content { flex: 1; }
.todo-title { display: block; font-weight: 500; }
.todo-date { font-size: 12px; color: var(--text-muted); }
.done-today-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; padding: 10px 0 4px; border-top: 1px solid var(--border); margin-top: 6px; }
.todo-done { opacity: 0.55; }
.todo-strikethrough { text-decoration: line-through; color: var(--text-muted); }
.todo-done-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

/* ---- TERMINE ---- */
.termin-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.termin-item:last-child { border-bottom: none; }
.termin-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.termin-info { flex: 1; }
.termin-titel { display: block; font-weight: 500; font-size: 13px; }
.termin-meta { font-size: 12px; color: var(--text-muted); }

/* ---- ZIELE (Dashboard-Widget) ---- */
.ziel-item { margin-bottom: 14px; }
.ziel-item:last-child { margin-bottom: 0; }
.ziel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ziel-titel { font-weight: 500; font-size: 13px; }
.progress-bar { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 99px; transition: width .4s; }
.progress-label { font-size: 11px; color: var(--text-muted); margin-top: 3px; display: block; }

/* ---- ZIELE Seite ---- */
.ziele-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ziel-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.ziel-card-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.ziel-card-titel { font-weight: 600; font-size: 14px; margin-bottom: 3px; }
.ziel-card-desc { font-size: 12px; color: var(--text-muted); }
.ziel-progress-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ziel-card-footer { display: flex; justify-content: space-between; align-items: center; }

/* ---- TOGGLE SWITCH ---- */
.toggle-switch { position: relative; display: inline-block; width: 36px; height: 20px; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--border); border-radius: 99px; transition: .25s; }
.toggle-slider::before { content: ''; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(16px); }

/* ---- TABLE ---- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--border);
}
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--bg); }

/* ---- BADGES ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-yellow { background: #fef9c3; color: #a16207; }
.badge-red    { background: #fee2e2; color: #b91c1c; }
.badge-gray   { background: #f1f5f9; color: #475569; }
.badge-prio-hoch    { background: #fee2e2; color: #b91c1c; }
.badge-prio-mittel  { background: #fef9c3; color: #a16207; }
.badge-prio-niedrig { background: #f1f5f9; color: #475569; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .15s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-h); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg); }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: var(--bg-card);
  color: var(--text);
  transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }

/* ---- ALERT ---- */
.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}
.alert-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }

/* ---- MODAL ---- */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-md);
  animation: fadeUp .2s ease;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 16px; cursor: pointer; color: var(--text-muted); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- LOGIN ---- */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); }
.login-wrap { width: 100%; max-width: 400px; padding: 16px; }
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}
.login-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; margin-bottom: 24px; }
.login-card h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.login-sub { color: var(--text-muted); margin-bottom: 24px; }

/* ---- MISC ---- */
.empty-state { color: var(--text-muted); font-size: 13px; padding: 12px 0; text-align: center; }
a { color: inherit; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: 1; }
}

/* ══════════════════════════════════════════════
   MOBILE — 768px und kleiner
══════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Sidebar */
  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    z-index: 200;
    width: 260px !important;
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
  }
  .sidebar-toggle { display: none; }

  /* Mobile Overlay (sidebar schließen) */
  .mob-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 199;
    backdrop-filter: blur(2px);
  }
  .mob-overlay.open { display: block; }

  /* Hamburger Button */
  .mob-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 14px; left: 14px;
    width: 40px; height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    z-index: 198;
    cursor: pointer;
    box-shadow: var(--shadow-md);
  }
  .mob-hamburger span {
    display: block; width: 18px; height: 2px;
    background: var(--text); border-radius: 2px;
    position: relative; transition: .2s;
  }
  .mob-hamburger span::before,
  .mob-hamburger span::after {
    content: ''; position: absolute; left: 0;
    width: 18px; height: 2px;
    background: var(--text); border-radius: 2px; transition: .2s;
  }
  .mob-hamburger span::before { top: -5px; }
  .mob-hamburger span::after  { top: 5px; }

  /* Main Content */
  .main-content {
    margin-left: 0;
    padding: 70px 14px 90px;
  }

  /* Page Header */
  .page-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .page-header h1 { font-size: 19px; }
  .header-actions { width: 100%; }
  .header-actions .btn { flex: 1; justify-content: center; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; gap: 10px; }
  .stat-value { font-size: 17px; }
  .stat-icon { width: 36px; height: 36px; }
  .stat-icon svg { width: 18px; height: 18px; }

  /* Cards */
  .card { padding: 14px; border-radius: 10px; }

  /* Tabellen — horizontal scrollbar */
  .card > table,
  .card > div > table,
  div[style*="overflow:auto"] { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 500px; }

  /* Filter-Bars */
  .filter-bar form { flex-wrap: wrap; }
  .filter-bar select,
  .filter-bar input { font-size: 13px; padding: 7px 10px; }

  /* Modals — full screen auf Handy */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal {
    border-radius: 20px 20px 0 0 !important;
    max-height: 92vh;
    overflow-y: auto;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Form rows — stack */
  .form-row { flex-direction: column; gap: 10px; }
  .form-group { margin-bottom: 12px; }

  /* Buttons */
  .btn { padding: 9px 14px; font-size: 13px; }
  .btn-block { width: 100%; }

  /* Detail Grid */
  .detail-grid { grid-template-columns: 1fr !important; }

  /* Dashboard Grid */
  .dashboard-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Kunden Grid */
  .kunden-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Mobile Bottom Nav (schneller Zugriff) */
  .mob-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    z-index: 197;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
  }
  .mob-nav-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; gap: 3px;
    padding: 4px 0;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px; font-weight: 600;
    transition: color .15s;
  }
  .mob-nav-item.active { color: var(--primary); }
  .mob-nav-item svg { width: 20px; height: 20px; }
}

/* Desktop — mobile Elemente verstecken */
@media (min-width: 769px) {
  .mob-hamburger { display: none; }
  .mob-overlay   { display: none !important; }
  .mob-bottom-nav { display: none; }
}

/* ---- KUNDEN GALERIE ---- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 20px;
  max-width: 360px;
}
.search-bar svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.search-bar input { border: none; outline: none; background: none; font-size: 13px; width: 100%; }

.kunden-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.kunde-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all .18s;
  cursor: pointer;
}
.kunde-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(79,70,229,.12);
  transform: translateY(-2px);
}

.kunde-logo {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
}
.kunde-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kunde-initials {
  width: 72px; height: 72px;
  border-radius: 14px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
}
.kunde-initials.lg {
  width: 56px; height: 56px;
  border-radius: 12px;
  font-size: 20px;
}

.kunde-info {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border);
}
.kunde-name { display: block; font-weight: 600; font-size: 13px; }
.kunde-ort { font-size: 11px; color: var(--text-muted); }

.empty-full {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-full svg { width: 40px; height: 40px; margin: 0 auto 10px; display: block; }

/* ---- KUNDEN DETAIL ---- */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.card-wide { grid-column: 1 / -1; }

.detail-avatar { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; }
.detail-avatar img { width: 100%; height: 100%; object-fit: contain; }

.info-list { display: flex; flex-direction: column; gap: 0; }
.info-row {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); min-width: 90px; font-weight: 500; }

.zugang-list { display: flex; flex-direction: column; gap: 10px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.zugang-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  position: relative;
}
.zugang-portal { flex: 1; }
.zugang-name { display: block; font-weight: 600; font-size: 13px; }
.zugang-url { font-size: 11px; color: var(--primary); text-decoration: none; }
.zugang-creds { flex: 2; }
.cred-row { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 3px; }
.cred-label { color: var(--text-muted); min-width: 60px; }
.cred-val { font-family: monospace; }
.copy-btn {
  background: none; border: none; cursor: pointer;
  font-size: 14px; padding: 0 2px; color: var(--text-muted);
}
.copy-btn:hover { color: var(--primary); }
.zugang-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.zugang-del {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 13px; padding: 0;
}
.zugang-del:hover { color: #dc2626; }
.pw-hidden { letter-spacing: 2px; }

/* ---- DATEIEN ---- */
.datei-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}
.datei-item svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }

.wa-btn { color: #25d366; display:flex; align-items:center; }
.wa-btn svg { width: 18px; height: 18px; }
.wa-btn:hover { color: #128c7e; }

/* ---- GEBURTSTAGS-BANNER ---- */
.bday-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, #fef9c3, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
}
.bday-icon { font-size: 22px; line-height: 1; margin-top: 2px; }
.bday-list { display: flex; flex-wrap: wrap; gap: 8px; }
.bday-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 6px 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  transition: box-shadow .15s;
}
.bday-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.bday-tag { font-size: 12px; color: var(--text-muted); }
.bday-tag.today { color: #b45309; font-weight: 700; }
.bday-tag.soon { color: #92400e; }

.filter-bar { margin-bottom: 16px; }
.filter-bar select { padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: var(--bg-card); }
.fw-600 { font-weight: 600; }

/* ---- QUILL OVERRIDE ---- */
.fix-einnahme-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.fix-einnahme-item:last-child { border-bottom: none; }
.fix-info { display: flex; flex-direction: column; gap: 2px; }

.ql-toolbar { border-radius: 8px 8px 0 0 !important; border-color: var(--border) !important; background: var(--bg); }
.ql-container { border-radius: 0 0 8px 8px !important; border-color: var(--border) !important; font-size: 14px !important; font-family: inherit !important; }
.ql-editor { min-height: 320px; line-height: 1.7 !important; }
.ql-editor img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.ql-editor h1 { font-size: 22px; font-weight: 700; margin: 12px 0 6px; }
.ql-editor h2 { font-size: 18px; font-weight: 700; margin: 10px 0 4px; }
.ql-editor h3 { font-size: 15px; font-weight: 700; margin: 8px 0 4px; }
.datei-name { flex: 1; font-weight: 500; }
.datei-size { color: var(--text-muted); font-size: 12px; }
