/* ═══════════════════════════════════════════════════════════════
   base.css — Haspel Intelligence Demo
   CSS-Variablen, Reset, Layout-Primitiven
   Extrahiert: 2026-02-22 | Design-Update: 2026-02-22
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:       #F3F6FC;
  --surface:  #FFFFFF;
  --surface2: #EEF2FA;
  --border:   #DDE4F2;
  --accent:   #1A53E8;
  --accent2:  #0E7FC0;
  --warn:     #C97B00;
  --danger:   #CC2222;
  --text:     #0B1628;
  --muted:    #5A6B88;
  --card-r:   10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  min-height: 100vh;
  transition: background .25s, color .25s;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* LAYOUT */
.sidebar {
  width: 240px;
  background: #080F20;
  display: flex; flex-direction: column; position: fixed; height: 100vh; z-index: 100; transition: transform .3s;
}
.main { margin-left: 240px; flex: 1; padding: 32px; max-width: 1400px; }

/* LOGO */
.logo { padding: 24px 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.logo-mark { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; color: #fff; }
.logo-mark span { color: var(--accent); }
.logo-sub { font-size: 10px; color: rgba(255,255,255,0.32); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 2px; }

/* NAV */
.nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav::-webkit-scrollbar { width: 4px; }
.nav::-webkit-scrollbar-track { background: transparent; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
.nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.28); }
.nav-section { font-size: 10px; color: rgba(255,255,255,0.28); text-transform: uppercase; letter-spacing: 1.5px; padding: 12px 8px 6px; }

/* HEADER */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.page-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.header-actions { display: flex; gap: 8px; }

/* SECTION GRID */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }

/* PAGE VIEWS */
.view { display: none; }
.view.active { display: block; }

/* MOBILE NAV */
.mobile-nav-toggle { display: none; position: fixed; top: 16px; left: 16px; z-index: 300; background: #080F20; border: none; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; color: #fff; }
.sidebar-close { display: none; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); color: #fff; width: 32px; height: 32px; border-radius: 8px; align-items: center; justify-content: center; cursor: pointer; }
  .main { margin-left: 0; padding: 16px; padding-top: 64px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .mobile-nav-toggle { display: flex; }
  .scores-grid { grid-template-columns: 1fr; }
  thead th:nth-child(n+5) { display: none; }
  tbody td:nth-child(n+5) { display: none; }
}
@media (max-width: 500px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-value { font-size: 22px; }
}
