:root{
  --bg: #0f1115;
  --panel: #151922;
  --text: #e6e6e6;
  --muted: #9aa0a6;
  --brand: #7dd3fc;
  --border: #212734;
  --link: #a5b4fc;
  --sidebar-w: 285px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0; color:var(--text); background:linear-gradient(180deg,#0b0d12, var(--bg));
  font: 16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji","Segoe UI Emoji";
  display:grid; grid-template-columns: var(--sidebar-w) 1fr;
  height:100vh;           /* Seite selbst scrollt nicht mehr */
  overflow:hidden;        /* Scrollen übernimmt die rechte Spalte */
}

/* Sidebar */
.sidebar{
  border-right:1px solid var(--border);
  background:rgba(21,25,34,.65); backdrop-filter: blur(6px);
  padding: 20px;
  align-self:start;
}
.brand{
  font-weight:700; letter-spacing:.3px; color:var(--brand); font-size:20px; margin-bottom:14px;
}
.nav{ display:flex; flex-direction:column; gap:6px; }
.nav-section{
  margin-top:10px; padding:8px 10px; font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted);
}
.nav-link{
  display:flex; align-items:center; gap:8px;
  padding:10px 12px; border-radius:10px; color:var(--text); text-decoration:none;
  border:1px solid transparent;
}
.nav-link:hover{ background:#121722; border-color:#1f2531; }
.nav-link.active{ background:#111723; border-color:#1d2230; box-shadow: inset 0 0 0 1px #1d2230; }
.nav-link.disabled{ opacity:.65; pointer-events:none; }

/* Content scrollt eigenständig */
.content{
  padding: 28px 28px 60px;
  height:100vh;          /* gleiche Höhe wie Viewport */
  overflow-y:auto;       /* hier wird gescrollt */
}
.panel{
  background:linear-gradient(180deg,#121722,#0f141f);
  border:1px solid var(--border); border-radius:16px; padding:26px;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
h1{ margin:0 0 8px 0; font-size: 28px; }
h2{ margin:22px 0 10px; font-size: 18px; color:#d6e1ff; }
p{ margin:10px 0; }
a{ color:var(--link); text-decoration:none; }
a:hover{ text-decoration:underline; }
.muted{ color: var(--muted); font-size: 14px; }

/* Utility: Code/Tabellen/Hinweise */
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
pre { background:#0c111b; border:1px solid var(--border); border-radius:10px; padding:12px; overflow:auto; }
table { width:100%; border-collapse: collapse; margin:10px 0; }
th, td { border:1px solid var(--border); padding:8px 10px; text-align:left; }
th { background:#0e1420; }
.kbd{ font: 12px ui-monospace,Menlo,Consolas,monospace; background:#0e1420; border:1px solid var(--border); padding:2px 6px; border-radius:6px; }
.note{ border-left:3px solid var(--brand); padding:8px 12px; background:#0c111b; border-radius:8px; }

/* Cards grid – breiter: min 250px */
.grid{
  display:grid; gap:12px; margin:14px 0 6px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card{
  background:#0e1420; border:1px solid var(--border); border-radius:14px; padding:14px 14px 12px;
  display:grid; grid-template-columns: 14px 1fr; align-items:center; gap:10px;
}

/* Dots */
.status-dot{
  width:10px; height:10px; border-radius:999px; background:#556076;
  box-shadow: 0 0 0 3px rgba(85,96,118,.15);
}
.status-dot.sm{ width:8px; height:8px; margin-right:0; }
.status-dot.ok{
  background:#22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.15);
}
.status-dot.down{
  background:#ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.15);
}

.card-title{ font-weight:600; }
.card-sub{
  grid-column: 2/3;
  color:var(--muted);
  font-size:13px;
  margin-top:-2px;
  overflow-wrap:anywhere;   /* lange Pfade umbrechen */
}
/* Trennlinie & Zeilenstruktur innerhalb der card-sub */
.card-sub .sub-path{
  font-size: 10px;
}
.card-sub .sub-sep{
  height:1px; background:var(--border);
  margin:6px 0 4px; border-radius:1px;
}
.card-sub .sub-desc{ }

/* --- Globale Statusleiste --- */
.status-summary{ margin-bottom: 14px; }
.status-summary-row{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.summary-item{ display:flex; align-items:center; gap:8px; font-weight:600; }
.summary-spacer{ flex:1; }
.summary-ts{ font-size:14px; }

/* Responsive */
@media (max-width: 860px){
  body{
    grid-template-columns: 1fr;
    height:auto;
    overflow:visible;
  }
  .content{
    height:auto;
    overflow:visible;
  }
  .sidebar{
    border-right:none; border-bottom:1px solid var(--border);
  }
}