/* Ergon layout.css */
  .app { display: flex; min-height: 100vh; position: relative; }

  /* Sidebar */
  .sidebar { width: 230px; background: #0b1d3a; border-right: none; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh; flex-shrink: 0; overflow-y: auto; z-index: 200; transition: transform 0.28s cubic-bezier(0.4,0,0.2,1); }
  .sidebar-logo { padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-section { padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-label { padding: 4px 1rem 2px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
  .nav-item { padding: 9px 1rem; cursor: pointer; font-size: 13.5px; color: rgba(255,255,255,0.65); display: flex; align-items: center; gap: 10px; transition: all 0.15s; border-left: 3px solid transparent; }
  .nav-item:hover { background: rgba(255,255,255,0.07); color: #ffffff; }
  .nav-item.active { background: rgba(126,200,255,0.15); color: #7ec8ff; border-left-color: #7ec8ff; font-weight: 600; }
  .sidebar-footer { margin-top: auto; padding: 1rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 11px; color: rgba(255,255,255,0.3); line-height: 1.6; }

  /* Overlay (hinter sidebar auf mobil) */
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 199; }
  .sidebar-overlay.visible { display: block; }

  /* Main */
  .main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; margin-left: 230px; transition: margin-left 0.28s cubic-bezier(0.4,0,0.2,1); }
  .topbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0.75rem 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 12px; overflow: hidden; }
  .topbar h1 { font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
  .topbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; flex-shrink: 0; }
  .content { padding: 1.25rem 1.5rem; overflow-y: auto; flex: 1; overflow-x: hidden; scrollbar-gutter: stable; }

  /* Hamburger button */
  .sidebar-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; border-radius: 6px; color: var(--text); flex-shrink: 0; }
  .sidebar-toggle:hover { background: var(--bg); }
  .sidebar-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px 0; border-radius: 2px; transition: all 0.2s; }

  /* Sidebar geschlossen */
  .sidebar.closed { transform: translateX(-100%); }
  .main.sidebar-closed { margin-left: 0; }
  .metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 1.25rem; }
  .metric { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.25rem; }
  .metric-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
  .metric-value { font-size: 22px; font-weight: 700; }
  .metric-sub { font-size: 12px; color: var(--hint); margin-top: 3px; }
  .metric.danger .metric-value { color: var(--red-txt); }
  .metric.success .metric-value { color: var(--green-txt); }
  .metric.blue .metric-value { color: var(--blue); }
  .settings-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:1.25rem; }
