/* BAY-Food WWS – globale Styles */

:root {
  --color-amber: #f59e0b;
  --color-amber-light: #fef3c7;
  --color-dark: #111827;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-surface: #ffffff;
  --color-bg: #f8fafc;
  --color-sidebar: #0f172a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.18);
}

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--color-bg);
  color: var(--color-dark);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbars */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* Focus ring */
input:focus, select:focus, textarea:focus {
  outline: none !important;
  border-color: var(--color-amber) !important;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15) !important;
}

/* Table hover */
tbody tr { transition: background 0.1s; cursor: default; }
tbody tr:hover { background: #fafafa !important; }

/* Sticky table headers */
.sticky-head thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f9fafb;
  backdrop-filter: blur(8px);
}

/* Card */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); }

/* Smooth animations */
button { transition: all 0.15s ease; }
button:active { transform: scale(0.97); }

/* Badge pill */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

/* Ladebalken des Splash-Screens */
@keyframes lb {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Mobile */
@media (max-width: 768px) {
  .sidebar { display: none !important; }
  .sidebar.open {
    display: flex !important;
    position: fixed !important;
    z-index: 5000 !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: 280px !important;
    box-shadow: var(--shadow-xl);
  }
  .sidebar-overlay {
    display: block !important;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 4999;
    backdrop-filter: blur(2px);
  }
  .mobile-header { display: flex !important; }
  .main-content { padding: 16px !important; padding-top: 72px !important; }
  .kpi-grid-4 { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .kpi-grid-3 { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .grid-2 { grid-template-columns: 1fr !important; }
  .dash-grid { grid-template-columns: 1fr !important; }
  .hide-mobile { display: none !important; }
  th, td { padding: 8px 10px !important; font-size: 12px !important; }
  h2 { font-size: 20px !important; }
}
