/* ═══════════════════════════════════════════════════════════
   GaLaBau Munz – Design System
   Grünes Theme, Mobile-first, Responsive
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Farben */
  --bg:            #eef3e7;
  --bg-soft:       #f6f8f1;
  --bg-deep:       #e4edd8;
  --card:          #f4f7ee;
  --card-hover:    #edf3e3;
  --text:          #243126;
  --text-strong:   #182219;
  --muted:         #667463;
  --line:          #cfdac6;
  --line-strong:   #b6c7aa;
  --accent:        #7b9361;
  --accent-soft:   #dfe9d2;
  --accent-hover:  #6a8052;
  --danger:        #b85c69;
  --danger-soft:   #fbeaed;
  --warn:          #b7842d;
  --warn-soft:     #fdf2e1;
  --ok:            #4f8a5a;
  --ok-soft:       #e4f2e8;
  --info:          #4a7fa3;
  --info-soft:     #e4f0f8;
  --shadow:        0 4px 20px rgba(83, 101, 70, .10);
  --shadow-lg:     0 12px 40px rgba(83, 101, 70, .15);
  --radius:        14px;
  --radius-sm:     8px;
  --radius-lg:     20px;

  /* Sidebar */
  --sidebar-bg:      #1e2a1b;
  --sidebar-hover:   rgba(143, 174, 124, .12);
  --sidebar-active:  rgba(143, 174, 124, .20);
  --sidebar-text:    #c8d8bc;
  --sidebar-muted:   #7a9270;
  --sidebar-accent:  #8fae7c;
  --sidebar-width:   240px;

  /* Topbar */
  --topbar-h: 56px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-tap-highlight-color: transparent; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }

/* ══════════════════════════════════════════════════════════
   LOGIN PAGE
   ══════════════════════════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(143, 174, 124, .22), transparent 60%),
    radial-gradient(700px 400px at 100% 80%, rgba(196, 218, 178, .28), transparent 55%),
    linear-gradient(160deg, #f6f8f1 0%, #eef3e7 50%, #e8efe0 100%);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(244,247,238,.98));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
}
.login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo .logo-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(123, 147, 97, .30);
}
.login-logo h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: .2px;
}
.login-logo p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.login-error {
  background: var(--danger-soft);
  border: 1px solid rgba(184, 92, 105, .25);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--danger);
  margin-bottom: 16px;
  display: none;
}
.login-error.show { display: block; }

/* ══════════════════════════════════════════════════════════
   APP LAYOUT – Sidebar + Content
   ══════════════════════════════════════════════════════════ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 200;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.sidebar-header {
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(143, 174, 124, .12);
  flex-shrink: 0;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-logo .logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--sidebar-accent), #6a8052);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.sidebar-logo .logo-text {
  font-size: 14px;
  font-weight: 700;
  color: #e8f0e0;
  letter-spacing: .2px;
}
.sidebar-logo .logo-sub {
  font-size: 11px;
  color: var(--sidebar-muted);
  margin-top: 1px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; }

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--sidebar-muted);
  padding: 12px 8px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--sidebar-text);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s;
  user-select: none;
  margin-bottom: 2px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.nav-item:hover { background: var(--sidebar-hover); color: #e8f0e0; }
.nav-item.active {
  background: var(--sidebar-active);
  color: var(--sidebar-accent);
  font-weight: 600;
}
.nav-item .nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.nav-item .nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}
.nav-divider {
  height: 1px;
  background: rgba(143, 174, 124, .10);
  margin: 8px 4px;
}

.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid rgba(143, 174, 124, .10);
  flex-shrink: 0;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
}
.sidebar-user .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sidebar-active);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--sidebar-accent);
  flex-shrink: 0;
}
.sidebar-user .user-info { flex: 1; min-width: 0; }
.sidebar-user .user-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sidebar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user .user-role {
  font-size: 10.5px;
  color: var(--sidebar-muted);
}

/* ── Topbar (Mobile) ────────────────────────────────────── */
.topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: linear-gradient(180deg, #fff, rgba(244,247,238,.98));
  border-bottom: 1px solid var(--line);
  z-index: 150;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(83,101,70,.08);
}
.topbar-title {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
}
.hamburger {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border-radius: 8px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .2s;
}

/* ── Overlay (Mobile Sidebar) ───────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 190;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }

/* ── Main Content ────────────────────────────────────────── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(196, 218, 178, .18), transparent 60%),
    var(--bg);
}
.page {
  padding: 28px;
  max-width: 1400px;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -.2px;
}
.page-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════
   COMPONENTS
   ══════════════════════════════════════════════════════════ */

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s, transform .1s, box-shadow .15s;
  border: 1px solid transparent;
  white-space: nowrap;
  user-select: none;
}
.btn:hover { filter: brightness(.96); transform: translateY(-1px); }
.btn:active { transform: translateY(0); filter: brightness(.93); }
.btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  border-color: rgba(95, 119, 80, .3);
  box-shadow: 0 2px 8px rgba(123, 147, 97, .25);
}
.btn-secondary {
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(228,237,216,.95));
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(184, 92, 105, .25);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.btn-sm {
  padding: 6px 11px;
  font-size: 12px;
  border-radius: 7px;
}
.btn-icon {
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: .15s;
}
.btn-icon:hover { background: var(--card-hover); color: var(--text); border-color: var(--line-strong); }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 6px;
  letter-spacing: .1px;
}
.form-label .optional {
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}
.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.8);
  color: var(--text);
  font-size: 13.5px;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  appearance: none;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123, 147, 97, .15);
  background: #fff;
}
.form-control::placeholder { color: var(--muted); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.form-error { font-size: 11.5px; color: var(--danger); margin-top: 4px; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(244,247,238,.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
}
.card-body { padding: 18px; }
.card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: rgba(238, 243, 231, .5);
}

/* ── KPI Cards ───────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.kpi-card {
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(244,247,238,.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}
.kpi-card.ok::before  { background: linear-gradient(90deg, var(--ok), #3d7048); }
.kpi-card.warn::before { background: linear-gradient(90deg, var(--warn), #9a6d20); }
.kpi-card.bad::before  { background: linear-gradient(90deg, var(--danger), #9a3d4a); }
.kpi-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 8px;
}
.kpi-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -.5px;
  line-height: 1;
}
.kpi-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}
.kpi-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 6px;
}
.kpi-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  opacity: .12;
}

/* ── Status Badges ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge-anfrage    { background: #f0f4ff; color: #4a6fa3; border-color: rgba(74,111,163,.2); }
.badge-angebot    { background: var(--warn-soft); color: var(--warn); border-color: rgba(183,132,45,.2); }
.badge-beauftragt { background: var(--info-soft); color: var(--info); border-color: rgba(74,127,163,.2); }
.badge-in_arbeit  { background: var(--ok-soft); color: var(--ok); border-color: rgba(79,138,90,.2); }
.badge-abgeschlossen { background: #f0f0f0; color: #666; border-color: rgba(0,0,0,.1); }
.badge-archiviert { background: #f0f0f0; color: #999; border-color: rgba(0,0,0,.08); }
.badge-admin      { background: var(--accent-soft); color: var(--accent-hover); border-color: rgba(123,147,97,.2); }
.badge-employee   { background: #f5f5f5; color: var(--muted); border-color: var(--line); }

.priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.priority-low    { background: #b0c4a4; }
.priority-normal { background: var(--accent); }
.priority-high   { background: var(--warn); box-shadow: 0 0 0 3px rgba(183,132,45,.2); }

/* ── Tables ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(207, 218, 198, .5);
  vertical-align: middle;
  color: var(--text);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr {
  transition: background .1s;
  cursor: pointer;
}
tbody tr:hover { background: rgba(238, 243, 231, .7); }
.table-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 13.5px;
}
.table-empty .empty-icon { font-size: 36px; display: block; margin-bottom: 10px; opacity: .4; }

/* ── Ampel / Liquiditäts-Anzeige ─────────────────────────── */
.ampel {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ampel-light {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ccc;
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.ampel-light.on-ok   { background: #5ec46d; box-shadow: 0 0 0 4px rgba(94,196,109,.2); }
.ampel-light.on-warn { background: #f5b83d; box-shadow: 0 0 0 4px rgba(245,184,61,.2); }
.ampel-light.on-bad  { background: #e85d6e; box-shadow: 0 0 0 4px rgba(232,93,110,.2); }

/* ── Modal ───────────────────────────────────────────────── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-backdrop.show { display: flex; }
.modal {
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(244,247,238,.99));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn .2s ease;
}
@keyframes modalIn {
  from { transform: translateY(12px) scale(.98); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: 16px; font-weight: 700; color: var(--text-strong); }
.modal-close {
  width: 28px; height: 28px;
  border: none; background: none;
  cursor: pointer; font-size: 18px;
  color: var(--muted); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--bg-deep); color: var(--text); }
.modal-body { padding: 20px 24px; }
.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ── Toast ───────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: rgba(30, 42, 27, .95);
  color: #e8f0e0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn .2s ease;
  max-width: 340px;
  pointer-events: all;
}
.toast.success .toast-icon { color: #6ee08a; }
.toast.error   .toast-icon { color: #f87070; }
.toast.warn    .toast-icon { color: #fbbf24; }
@keyframes toastIn {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ── Loading States ──────────────────────────────────────── */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--muted);
  gap: 10px;
  font-size: 13.5px;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Search & Filter Bar ─────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}
.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-input-wrap .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
}
.search-input-wrap .form-control { padding-left: 34px; }

/* ── Grid Layouts ────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }

/* ── Kanban Board ────────────────────────────────────────── */
.kanban-board {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.kanban-col {
  flex: 0 0 260px;
  background: rgba(228, 237, 216, .45);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.kanban-col-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.kanban-col-count {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.kanban-card {
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(244,247,238,.98));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(83,101,70,.07);
  cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.kanban-card:hover { box-shadow: 0 4px 14px rgba(83,101,70,.13); transform: translateY(-1px); }
.kanban-card-name { font-size: 13px; font-weight: 600; color: var(--text-strong); margin-bottom: 4px; }
.kanban-card-meta { font-size: 11.5px; color: var(--muted); }

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 14px; opacity: .35; display: block; }
.empty-state h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 13.5px; }

/* ── Placeholder Seiten ──────────────────────────────────── */
.placeholder-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  gap: 12px;
  color: var(--muted);
}
.placeholder-page .ph-icon { font-size: 52px; opacity: .25; }
.placeholder-page h2 { font-size: 18px; color: var(--text); font-weight: 700; }
.placeholder-page p { font-size: 13.5px; max-width: 340px; }
.placeholder-page .ph-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-hover);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════ */

/* Tablet: Sidebar ist versteckt, per Hamburger öffenbar */
@media (max-width: 1023px) {
  .sidebar { transform: translateX(calc(-1 * var(--sidebar-width))); }
  .sidebar.open { transform: none; }
  .main-content { margin-left: 0; padding-top: var(--topbar-h); }
  .topbar { display: flex; }
  .page { padding: 20px 16px; }
}

/* Mobile */
@media (max-width: 640px) {
  .page { padding: 16px 12px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row, .form-row.cols-3 { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .modal { max-height: 95vh; }
  .toast-container { bottom: 16px; right: 16px; left: 16px; }
  .toast { max-width: none; }
  .filter-bar { flex-direction: column; }
  .search-input-wrap { min-width: 0; width: 100%; }
}
@media (max-width: 400px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

/* ── Utility ─────────────────────────────────────────────── */
.text-right  { text-align: right; }
.text-center { text-align: center; }
.text-muted  { color: var(--muted); font-size: 12.5px; }
.text-strong { font-weight: 700; }
.nowrap      { white-space: nowrap; }
.mono        { font-family: ui-monospace, "Cascadia Code", "Fira Code", monospace; }
.gap-8       { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gap-12      { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.mb-0        { margin-bottom: 0 !important; }
.mb-4        { margin-bottom: 4px; }
.mb-8        { margin-bottom: 8px; }
.mb-16       { margin-bottom: 16px; }
.mb-24       { margin-bottom: 24px; }
.mt-16       { margin-top: 16px; }
.mt-24       { margin-top: 24px; }
.w-full      { width: 100%; }
.flex-1      { flex: 1; }
