/* ================================================
   Fuhrparkverwaltung – app.css
   Design: Refined Professional (dark sidebar + light content)
   Font: Plus Jakarta Sans
   ================================================ */

:root {
  /* Brand Colors */
  --primary: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-dark: #1e3a8a;
  --primary-glow: rgba(59, 130, 246, 0.15);

  /* Sidebar */
  --sidebar-bg: #0f1117;
  --sidebar-width: 248px;
  --sidebar-text: #94a3b8;
  --sidebar-text-active: #f8fafc;
  --sidebar-hover: rgba(255,255,255,0.06);
  --sidebar-active-bg: rgba(59, 130, 246, 0.18);
  --sidebar-active-border: #3b82f6;
  --sidebar-section: #475569;
  --sidebar-border: rgba(255,255,255,0.07);

  /* Content */
  --bg: #f1f5f9;
  --bg-card: #ffffff;
  --bg-input: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-focus: #3b82f6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.06);

  /* Status Colors */
  --success: #059669;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --info: #0284c7;
  --info-bg: #f0f9ff;
  --purple: #7c3aed;
  --purple-bg: #f5f3ff;

  /* Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  /* Topbar */
  --topbar-height: 60px;
}

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

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* ── SIDEBAR ─────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 100;
  border-right: 1px solid var(--sidebar-border);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--sidebar-border);
}
.brand-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}
.brand-name { color: #f1f5f9; font-weight: 700; font-size: 15px; line-height: 1.2; display: block; }
.brand-sub { color: var(--sidebar-text); font-size: 11px; }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--sidebar-border);
}
.user-avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.user-name { color: #e2e8f0; font-size: 13px; font-weight: 600; display: block; line-height: 1.2; }
.user-role { color: var(--sidebar-text); font-size: 11px; }

.sidebar-nav {
  flex: 1;
  list-style: none;
  padding: 10px 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--sidebar-border); border-radius: 3px; }

.nav-section {
  color: var(--sidebar-section);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 16px 20px 6px;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all .18s ease;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-right: 8px;
}
.sidebar-nav li a i { width: 18px; text-align: center; font-size: 14px; }
.sidebar-nav li a:hover { background: var(--sidebar-hover); color: var(--sidebar-text-active); }
.sidebar-nav li.active a {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-text-active);
  border-left-color: var(--sidebar-active-border);
}

.sidebar-footer {
  padding: 12px 12px;
  border-top: 1px solid var(--sidebar-border);
}
.logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all .18s;
}
.logout-btn:hover { background: rgba(220,38,38,.15); color: #f87171; }
.logout-btn i { font-size: 14px; }

/* ── MAIN WRAPPER ───────────────────────────── */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── TOPBAR ─────────────────────────────────── */
.topbar {
  height: var(--topbar-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.topbar-title h1 { font-size: 17px; font-weight: 700; color: var(--text); flex: 1; }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.hamburger:hover { background: var(--bg); }

/* ── CONTENT ───────────────────────────────── */
.content-area {
  flex: 1;
  padding: 24px;
}

/* ── CARDS ──────────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title i { color: var(--primary); }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); background: #fafafa; }

/* ── STAT CARDS ─────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stat-icon.blue { background: var(--primary-glow); color: var(--primary-light); }
.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-icon.orange { background: var(--warning-bg); color: var(--warning); }
.stat-icon.red { background: var(--danger-bg); color: var(--danger); }
.stat-icon.purple { background: var(--purple-bg); color: var(--purple); }
.stat-value { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 3px; }

/* ── BUTTONS ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s ease;
  line-height: 1;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #1e40af; box-shadow: 0 4px 12px rgba(29,78,216,.3); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #047857; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #b45309; }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { padding: 7px 9px; }

/* ── TABLE ──────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #f8fafc; }

/* ── FORMS ──────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color .18s, box-shadow .18s;
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
  background: #fff;
}
.form-control::placeholder { color: var(--text-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-check input[type="checkbox"] {
  width: 16px; height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}
select.form-control { cursor: pointer; }

/* ── BADGES ──────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-purple { background: var(--purple-bg); color: var(--purple); }
.badge-gray { background: #f1f5f9; color: var(--text-muted); }
.badge-primary { background: var(--primary-glow); color: var(--primary); }

/* ── MODAL ───────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,17,23,.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn .2s ease;
}
.modal-overlay.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUp .25s cubic-bezier(.4,0,.2,1);
}
.modal-sm { max-width: 420px; }
.modal-lg { max-width: 800px; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: 16px; font-weight: 700; color: var(--text); }
.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 18px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: all .15s;
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ── TOAST ───────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  max-width: 380px;
  pointer-events: all;
  animation: toastIn .3s cubic-bezier(.34,1.56,.64,1);
  border-left: 4px solid transparent;
  font-size: 14px;
  font-weight: 500;
}
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateX(110%); opacity: 0; } }
.toast-success { border-color: var(--success); }
.toast-success i { color: var(--success); }
.toast-error { border-color: var(--danger); }
.toast-error i { color: var(--danger); }
.toast-info { border-color: var(--info); }
.toast-info i { color: var(--info); }
.toast-warning { border-color: var(--warning); }
.toast-warning i { color: var(--warning); }

/* ── KFZ KENNZEICHEN ────────────────────────── */
.kennzeichen {
  display: inline-flex;
  align-items: center;
  border: 2px solid #222;
  border-radius: 5px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  line-height: 1;
  white-space: nowrap;
}
.kennzeichen-eu {
  background: #003399;
  color: #fff;
  padding: 3px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  gap: 1px;
  min-width: 22px;
}
.kennzeichen-eu .eu-stars { font-size: 7px; letter-spacing: 0; }
.kennzeichen-eu .eu-d { font-size: 11px; font-weight: 900; line-height: 1; }
.kennzeichen-text {
  padding: 3px 8px;
  color: #111;
  letter-spacing: .08em;
}
.kz-elektro {
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 4px;
  border-left: 1px solid #222;
  letter-spacing: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
}

/* ── PAGE HEADER ────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.page-header-left h2 { font-size: 20px; font-weight: 800; color: var(--text); }
.page-header-left p { color: var(--text-muted); font-size: 13px; margin-top: 2px; }

/* ── FILTER BAR ─────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar .form-control { max-width: 200px; }

/* ── AVAILABILITY ───────────────────────────── */
.avail-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.avail-free { background: var(--success-bg); color: var(--success); }
.avail-busy { background: var(--danger-bg); color: var(--danger); }
.avail-partial { background: var(--warning-bg); color: var(--warning); }

/* ── EMPTY STATE ────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 44px; opacity: .25; display: block; margin-bottom: 14px; }
.empty-state p { font-size: 15px; font-weight: 500; }
.empty-state span { font-size: 13px; display: block; margin-top: 4px; }

/* ── ALERT ──────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.alert i { margin-top: 1px; flex-shrink: 0; }
.alert-success { background: var(--success-bg); color: #065f46; border-color: #a7f3d0; }
.alert-danger { background: var(--danger-bg); color: #991b1b; border-color: #fca5a5; }
.alert-warning { background: var(--warning-bg); color: #92400e; border-color: #fcd34d; }
.alert-info { background: var(--info-bg); color: #075985; border-color: #7dd3fc; }

/* ── CALENDAR ────────────────────────────────── */
.fc { font-family: 'Plus Jakarta Sans', sans-serif !important; font-size: 13px; }
.fc .fc-toolbar-title { font-size: 17px !important; font-weight: 700 !important; }
.fc .fc-button { font-family: inherit !important; font-size: 12px !important; font-weight: 600 !important; }
.fc .fc-button-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; }
.fc .fc-button-primary:hover { background-color: var(--primary-dark) !important; }
.fc-event { cursor: pointer; border-radius: 4px !important; font-size: 11.5px !important; font-weight: 600 !important; }
.fc-daygrid-event { padding: 2px 5px !important; }

/* ── DETAIL LIST ────────────────────────────── */
.detail-list { list-style: none; }
.detail-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.detail-list li:last-child { border-bottom: none; }
.detail-list .dl-label { color: var(--text-muted); font-weight: 600; min-width: 140px; flex-shrink: 0; }
.detail-list .dl-value { color: var(--text); }

/* ── LOADING SPINNER ────────────────────────── */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 3px solid rgba(29,78,216,.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SIDEBAR OVERLAY (mobile) ───────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,.4);
  }
  .sidebar-overlay.open { display: block; }
  .hamburger { display: flex; }
  .main-wrapper { margin-left: 0; }
  .content-area { padding: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row.cols-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar .form-control { max-width: 100%; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
}

/* ── RESERVIERUNG CARD-AUSWAHL ───────────────────── */
.rv-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  max-height: 52vh;
  overflow-y: auto;
  padding: 2px 2px 4px;
}
.rv-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .15s;
  background: var(--bg-card);
}
.rv-card:hover:not(.rv-card--blocked) {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.rv-card--selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,.18);
}
.rv-card--blocked {
  cursor: not-allowed;
  opacity: .7;
}
.rv-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rv-card-foto {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  background: var(--bg);
}
.rv-card-foto--placeholder {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text-light);
  font-size: 28px;
}
.rv-card-body {
  padding: 10px;
}
.rv-card-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rv-card-grund {
  font-size: 11px;
  color: var(--danger);
  margin-top: 5px;
  line-height: 1.3;
}
.rv-avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--success-bg);
  color: var(--success);
}
.rv-unavail-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--danger-bg);
  color: var(--danger);
}
.rv-zeitraum-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--primary-glow);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  flex-wrap: wrap;
}


/* ── DEMO BANNER ─────────────────────────────────── */
.demo-banner {
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  color: #fff;
  padding: 10px 24px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.demo-banner i { font-size: 14px; opacity: .9; }
.demo-banner strong { font-weight: 700; }

/* ── FAHRER-CARDS ────────────────────────────────── */
.fahrer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.fahrer-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .18s, transform .15s, border-color .18s;
  position: relative;
}
.fahrer-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}
.fahrer-card--inaktiv { opacity: .55; }
.fahrer-card-foto {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  background: var(--bg);
}
.fahrer-card-foto--placeholder {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg), #e2e8f0);
  color: var(--text-light);
  font-size: 36px;
}
.fahrer-card-body { padding: 12px; }
.fahrer-card-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fahrer-card-fz {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fahrer-card-kontakt {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 3px;
}
.fahrer-card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity .15s;
}
.fahrer-card:hover .fahrer-card-actions { opacity: 1; }
.fahrer-card-actions .btn {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-sm);
}

/* ── FAHRZEUG-FOTO ───────────────────────────────── */
.fahrzeug-thumb {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  display: block;
}
.fahrzeug-thumb:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}
.fahrzeug-thumb-placeholder {
  width: 56px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 16px;
}

/* ── FOOTER ──────────────────────────────────────── */
.app-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.app-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.app-footer a:hover { text-decoration: underline; }
.app-footer-sep { color: var(--border); }

/* ── UTILITIES ───────────────────────────────── */
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-center { text-align: center; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 20px; }
.fw-bold { font-weight: 700; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* ── LOGIN PAGE ──────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f1117 0%, #1e2640 50%, #0f1117 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}
.login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo .logo-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  margin-bottom: 12px;
}
.login-logo h1 { font-size: 22px; font-weight: 800; color: var(--text); }
.login-logo p { color: var(--text-muted); font-size: 13px; }

/* ── INSTALL PAGE ────────────────────────────── */
.install-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f1117 0%, #1a2744 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
}
.install-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
  width: 100%;
  max-width: 640px;
  overflow: hidden;
}
.install-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 28px 32px;
  color: #fff;
}
.install-header h1 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.install-header p { opacity: .8; font-size: 14px; }
.install-steps {
  display: flex;
  gap: 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}
.install-step {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  border-bottom: 3px solid transparent;
  transition: all .2s;
}
.install-step.active { color: var(--primary); border-bottom-color: var(--primary); }
.install-step.done { color: var(--success); border-bottom-color: var(--success); }
.install-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--border);
  border-radius: 50%;
  font-size: 11px;
  margin-bottom: 3px;
}
.install-step.active .step-num { background: var(--primary); color: #fff; }
.install-step.done .step-num { background: var(--success); color: #fff; }
.install-body { padding: 28px 32px; }
.install-footer { padding: 16px 32px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; }
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
}
.check-item:last-child { border-bottom: none; }
.check-ok { color: var(--success); }
.check-fail { color: var(--danger); }
