/* T-Systems / Telekom Farbschema */
:root {
  --tm: #E20074;          /* Telekom Magenta */
  --tm-dark: #B0005D;
  --ink: #1D1D1D;
  --grey-900: #333333;
  --grey-600: #63666A;
  --grey-400: #A5A6AD;
  --grey-100: #F5F5F5;
  --white: #FFFFFF;
  --crit: #C60C30;
  --high: #E20074;
  --med: #EE7A00;
  --low: #66B34A;
  --ok: #2BAD46;
  --attn: #2C7A9B;   /* Attention/EPSS */
  --border: #E3E5E8;
  --shadow: 0 2px 8px rgba(29,29,29,.05);
  /* Konstanten, die im Dark-Theme NICHT kippen dürfen */
  --on-accent: #FFFFFF;   /* Text auf Magenta/Badge-Hintergründen */
  --footer-bg: #1D1D1D;   /* Footer bleibt dunkel */
  --field-bg: #FAFBFC;    /* Eingabefelder */
  --spinner: #FFFFFF;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: "TeleNeo", "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--grey-100);
  color: var(--ink);
  font-size: 14px;
  display: flex;
  overflow: hidden;   /* Scrollen nur in der Content-Spalte (.shell) */
}

/* ---------- Kopf: linke Sidebar ---------- */
header {
  flex: none; width: 272px; height: 100vh;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(226, 0, 116, .045), transparent 240px),
    var(--white);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 30;
}
.shell {
  flex: 1; min-width: 0; height: 100vh;
  overflow-y: auto; overflow-x: hidden;
}
main, .foot-inner {
  width: 100%; max-width: 1500px; margin: 0 auto; padding: 0 32px;
}
.head-inner {
  display: flex; flex-direction: column;
  height: 100%; padding: 24px 16px 16px;
  overflow-y: auto;             /* falls die Sidebar einmal schrumpft */
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
/* Menüposition auf allen Seiten identisch: Sidebar vertikal */
.brand { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0;
  margin: 0 8px; text-decoration: none; line-height: 1.15; border-radius: 8px; }
.brand-tick {
  display: flex; align-items: center; gap: 12px;
  font-size: 40px; font-weight: 800; letter-spacing: -.055em; line-height: 1;
  color: var(--ink); }
.brand-tick::before {
  content: ""; flex: 0 0 48px; width: 48px; height: 48px;
  background: url("tick-mark.svg") center / contain no-repeat;
  border-radius: 14px; box-shadow: 0 6px 16px rgba(226, 0, 116, .2);
  transition: transform .18s ease, box-shadow .18s ease;
}
.brand-tick::after {
  content: ""; flex: 0 0 6px; width: 6px; height: 6px;
  margin-left: -6px; align-self: flex-end; margin-bottom: 6px;
  border-radius: 2px; background: var(--tm);
}
.brand:hover .brand-tick::before,
.brand:focus-visible .brand-tick::before {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(226, 0, 116, .3);
}
@media (prefers-reduced-motion: reduce) {
  .brand-tick::before { transition: none; }
  .brand:hover .brand-tick::before,
  .brand:focus-visible .brand-tick::before { transform: none; }
}
.brand-sub {
  font-size: 10.5px; font-weight: 600; letter-spacing: .035em; line-height: 1.5;
  color: var(--grey-600); max-width: 240px; }
.head-right {
  display: grid; grid-template-columns: minmax(0, 1fr) 44px 44px; gap: 8px;
  align-items: center; flex-shrink: 0;
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border);
}
.head-right #themeToggle { grid-column: 2; }
.head-right #langToggle { grid-column: 3; }
.head-right .src-link {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px; border-radius: 12px;
  background: var(--white); font-size: 12px; text-decoration: none;
}
.lang-toggle {
  font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  min-height: 44px; padding: 8px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--white); color: var(--ink); cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.lang-toggle:hover { background: var(--tm); border-color: var(--tm); color: var(--on-accent); }
.dataage {
  grid-column: 1 / -1; padding: 0 8px 4px; overflow-wrap: anywhere;
  font-size: 11px; color: var(--grey-600); text-align: left; line-height: 1.6;
}
.dashboard-nav {
  display: flex; flex-direction: column; gap: 16px;
  margin: 28px 0 24px; flex-shrink: 0;
}
.dashboard-nav a {
  display: flex; align-items: center; gap: 10px; min-height: 40px; min-width: 0;
  color: var(--grey-600); padding: 9px 12px;
  border: 1px solid transparent; border-radius: 10px;
  font-size: 13px; font-weight: 600; line-height: 1.4; text-decoration: none;
  transition: background .18s ease, color .18s ease,
    border-color .18s ease, box-shadow .18s ease;
}
.dashboard-nav a::before {
  content: ""; flex: 0 0 18px; width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: var(--nav-icon) center / contain no-repeat;
  mask: var(--nav-icon) center / contain no-repeat;
}
.dashboard-nav a[href="/"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 8 3v6c0 5-8 9-8 9s-8-4-8-9V6Z'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E");
}
.dashboard-nav a[href="/watch.html"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.dashboard-nav a[href="/os-support.html"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='13' rx='2'/%3E%3Cpath d='M8 21h8m-4-4v4M7 8l3 3-3 3m6 0h4'/%3E%3C/svg%3E");
}
.dashboard-nav a[href="/apps-lifecycle.html"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E");
}
.dashboard-nav a[href="/server-apps.html"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='7' rx='2'/%3E%3Crect x='3' y='14' width='18' height='7' rx='2'/%3E%3Cpath d='M7 6.5h.01M7 17.5h.01M12 6.5h5M12 17.5h5M7 10v4m10-4v4'/%3E%3C/svg%3E");
}
.dashboard-nav a[href="/db-support.html"], .dashboard-nav a[href="/osv.html"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='8' ry='3'/%3E%3Cpath d='M4 5v14c0 4 16 4 16 0V5M4 12c0 4 16 4 16 0'/%3E%3C/svg%3E");
}
.dashboard-nav a[href="/supply-chain.html"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m10 13 4-4m-6 7-1 1a4 4 0 0 1-6-6l4-4a4 4 0 0 1 6 0m2 10a4 4 0 0 0 6 0l4-4a4 4 0 0 0-6-6l-1 1' transform='translate(0 -1)'/%3E%3C/svg%3E");
}
.dashboard-nav a[href="/news.html"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 8h4v4H7Zm8 0h2m-2 4h2M7 16h10'/%3E%3C/svg%3E");
}
.dashboard-nav a[href="/sources.html"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cellipse cx='12' cy='12' rx='4' ry='9'/%3E%3Cpath d='M3 12h18'/%3E%3C/svg%3E");
}
.dashboard-nav a[href="/stats.html"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 3v17h17M8 15v-4m5 4V6m5 9V9'/%3E%3C/svg%3E");
}
.dashboard-nav a[href="/report.html"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H5v18h14V8Zm0 0v5h5M8 12h8m-8 4h6'/%3E%3C/svg%3E");
}
.dashboard-nav a[href="/api.html"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 7-5 5 5 5m10-10 5 5-5 5M14 4l-4 16'/%3E%3C/svg%3E");
}
.dashboard-nav a:hover {
  color: var(--ink); background: rgba(226, 0, 116, .06);
  border-color: rgba(226, 0, 116, .12);
}
.dashboard-nav a[aria-current="page"] {
  color: #FFFFFF; background: linear-gradient(120deg, var(--tm), var(--tm-dark));
  border-color: transparent; font-weight: 700;
  box-shadow: 0 4px 12px rgba(226, 0, 116, .2), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.dashboard-nav a[aria-current="page"]:hover {
  box-shadow: 0 6px 16px rgba(226, 0, 116, .3);
}
.dashboard-nav .navtitle {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 28px;
  padding: 4px 12px; margin: 0 0 4px;
  background: none; border: 0; border-radius: 8px; text-align: left;
  font: inherit; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; line-height: 1.5; color: var(--grey-600);
  user-select: none; cursor: pointer;
}
.dashboard-nav .navtitle:hover { color: var(--ink); background: var(--grey-100); }
.dashboard-nav .navtitle::after {
  content: ""; flex: 0 0 6px; width: 6px; height: 6px; margin-left: auto;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .15s ease;
}
.dashboard-nav .navgroup.closed .navtitle::after { transform: rotate(-45deg); }
.dashboard-nav .navlinks { display: flex; flex-direction: column; gap: 4px; }
.dashboard-nav .navgroup.closed .navlinks { display: none; }
@media (prefers-reduced-motion: reduce) {
  .dashboard-nav .navtitle::after { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-nav a, .lang-toggle { transition: none; }
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--tm); outline-offset: 4px;
}

.btn-primary {
  background: var(--tm); color: var(--on-accent); border: none; cursor: pointer;
  padding: 12px 20px; border-radius: 4px; font-size: 14px; font-weight: 600;
  transition: background .15s ease;
}
.btn-primary:hover:not(:disabled) { background: var(--tm-dark); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost {
  background: transparent; color: var(--grey-600); border: 1px solid var(--border);
  padding: 9px 14px; border-radius: 4px; cursor: pointer; font-size: 13px;
}
.btns a.btn-ghost { text-decoration: none; display: inline-block; line-height: 1.3; }
.badge.kev { background: #B06016; }
.badge.epss { background: var(--attn); }
.pkglink { color: inherit; text-decoration: underline dotted;
  text-underline-offset: 2px; }
.pkglink:hover { color: var(--tm); }
.osv-pkg-legend { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 12px;
  font-size: 11.5px; color: var(--grey-600); align-items: center; }
.lgchip-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px;
  margin-right: 4px; vertical-align: middle; }
.btn-ghost:hover { border-color: var(--grey-400); color: var(--ink); }

/* ---------- Statusleiste ---------- */
.statusbar {
  background: var(--grey-900); color: var(--white);
  padding: 10px 32px; font-size: 13px;
}
.statusbar.hidden { display: none; }
.statuslog { color: #DDDDDD; font-size: 11.5px; }
.srcchip {
  display: inline-block; background: rgba(255,255,255,.14); border-radius: 999px;
  padding: 3px 10px; margin-right: 6px; font-size: 12px; white-space: nowrap;
}
.src-ok::before, .src-err::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 5px; vertical-align: 1px;
}
.src-ok::before { background: #7BE495; }
.src-err::before { background: #FF8FA3; }
.spinner {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: var(--spinner);
  animation: spin .8s linear infinite; margin-right: 8px; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

main { flex: 1; min-width: 0; padding-top: 32px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 24px; }
.page-intro { border-left: 4px solid var(--tm); padding: 0 0 0 20px; }
.eyebrow { margin: 0 0 8px; color: var(--grey-600); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.page-intro h1 { margin: 0; color: var(--tm); font-size: clamp(30px, 4vw, 44px); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; }
.intro-text { margin: 12px 0 0; color: var(--grey-600); font-size: 15px; line-height: 1.6; }

/* ---------- KPI-Karten ---------- */
.kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.kpi {
  background: var(--white); border-radius: 4px; padding: 20px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.kpi .k-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--grey-600); font-weight: 600; }
.kpi .k-num { font-size: 32px; font-weight: 700; }
.kpi .k-sub { font-size: 11.5px; color: var(--grey-400); }
.kpi.crit .k-num { color: var(--crit); }
.kpi.high .k-num { color: var(--high); }
.kpi.ok .k-num { color: var(--ok); }
.kpi.bad .k-num { color: var(--crit); }
.kpi .k-delta { display: block; font-size: 12px; margin-top: 2px; font-weight: 700;
  font-variant-numeric: tabular-nums; }
.k-delta.d-up { color: var(--crit); }
.k-delta.d-down { color: var(--ok); }

/* Zweispaltige Kartengruppen (Statistik) */
.card-twocol {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px;
}
.card-twocol > .card { margin: 0; }

/* Horizontale Balkenlisten (Statistik: Pakete, Liga, Alter) */
.hbars { display: grid; gap: 7px; }
.hbar-row {
  display: grid; grid-template-columns: minmax(110px, 220px) 1fr 130px;
  gap: 10px; align-items: center; font-size: 12.5px; min-width: 0;
}
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink); font-weight: 600; }
.hbar-track { background: var(--grey-100); border: 1px solid var(--grey-200);
  border-radius: 4px; height: 15px; overflow: hidden; min-width: 60px; }
.hbar-fill { height: 100%; background: var(--tm); border-radius: 3px 0 0 3px; }
.hbar-fill.alt { background: #2C7A9B; }
.hbar-val { text-align: right; color: var(--grey-600);
  font-variant-numeric: tabular-nums; }
.dist { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin-top: 6px; background: var(--dist-bg, #ECEDEF); }
.dist > div { height: 100%; }
:root[data-theme="dark"] {
  --white: #1B1E25;
  --grey-100: #14161B;
  --grey-200: #262A33;
  --border: #2E323C;
  --grey-400: #6B6F79;
  --grey-600: #A9ADB6;
  --grey-900: #ECEDEF;
  --ink: #ECEDEF;
  --shadow: 0 2px 10px rgba(0, 0, 0, .5);
  --dist-bg: #262932;
  --row-hover: rgba(226, 0, 116, .08);
  --footer-bg: #0E0F13;
  --field-bg: #20242C;
}
:root[data-theme="dark"] .notice-error { color: #FF9FB2;
  background: rgba(198, 12, 48, .15); }

.kpi .k-share { font-size: 11.5px; color: var(--grey-600); margin-top: 3px;
  font-variant-numeric: tabular-nums; }

/* ---------- Filter ---------- */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: 4px;
  box-shadow: var(--shadow);
}
.filters { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.f-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.f-item { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.f-item.grow { flex: 1 1 260px; }
.f-item label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--grey-600); font-weight: 600; }
select, input[type=search] {
  font: inherit; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 4px; background: var(--white); color: var(--ink);
}
select:focus, input[type=search]:focus { outline: 2px solid var(--tm); outline-offset: -1px; }
.ppsel { min-width: auto; padding: 7px 8px !important; }

.chiprow { align-items: center; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chiplabel { font-size: 12px; color: var(--grey-600); font-weight: 600; }
.ml { margin-left: 10px; }
.chip {
  border: 1.5px solid var(--border); border-radius: 999px; padding: 5px 12px;
  font-size: 12.5px; cursor: pointer; user-select: none; background: var(--white);
  color: var(--grey-600); transition: all .12s ease;
}
.chip:hover { border-color: var(--grey-400); }
.chip.on { background: var(--grey-900); border-color: var(--grey-900); color: var(--white); font-weight: 600; }
.chip.on[data-sev="critical"] { background: var(--crit); border-color: var(--crit); }
.chip.on[data-sev="high"] { background: var(--high); border-color: var(--high); }
.chip.on[data-sev="medium"] { background: var(--med); border-color: var(--med); }
.chip.on[data-sev="low"] { background: var(--low); border-color: var(--low); }
.chip.on[data-st="fixed"] { background: var(--ok); border-color: var(--ok); }
.chip.on[data-st="affected"] { background: var(--crit); border-color: var(--crit); }
.chip.on[data-st="will_not_fix"] { background: var(--grey-600); border-color: var(--grey-600); }

/* ---------- Quellen-Seite ---------- */
.src-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 18px 6px; }
.src-actions .btn-primary { margin-right: 6px; }
.src-progress {
  margin: 10px 18px 4px; padding: 12px 14px; border-radius: 4px;
  background: var(--grey-900); color: var(--white); font-size: 13px;
}
.src-progress .srclog {
  color: #DDDDDD; font-size: 11.5px; margin-top: 6px;
  white-space: pre-line; font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.src-mod { white-space: nowrap; }
.src-cat { color: var(--grey-600); font-size: 11.5px; margin-top: 2px; }
.src-status { max-width: 460px; }
.src-msg {
  color: var(--grey-600); font-size: 11.5px; margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px;
}
.badge.src-ok-b { background: var(--ok); }
.badge.src-warn-b { background: #E8A33D; }
.badge.src-err-b { background: var(--crit); }
.src-link {
  font-size: 13px; color: var(--grey-600); border: 1px solid var(--border);
  padding: 7px 12px; border-radius: 4px; font-weight: 600;
}
.src-link:hover { border-color: var(--grey-400); color: var(--ink); text-decoration: none; }
.dspin {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,.15); border-top-color: var(--tm);
  animation: spin .8s linear infinite; margin-right: 6px; vertical-align: -2px;
}

/* ---------- Statistik-Seite ---------- */
.chartbox { padding: 14px 20px 20px; overflow-x: auto; }
.chart { width: 100%; min-width: 980px; height: auto; display: block; }
.axlab { fill: var(--grey-600); font-size: 13px; font-weight: 600;
  font-family: "TeleNeo", "Segoe UI", sans-serif; }
.pt { cursor: pointer; }
.chart-export { margin-left: auto; align-self: center; display: inline-flex; gap: 6px; }
.export-btn {
  font-family: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer;
  color: var(--grey-600); background: var(--grey-100);
  border: 1px solid var(--border); border-radius: 4px; padding: 4px 10px;
}
.export-btn:hover { color: var(--ink); border-color: var(--grey-400); }
.export-all { align-self: flex-start; margin-top: 2px; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 6px 0; }
.legend-foot { padding: 2px 20px 16px; }
.lgchip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  color: var(--grey-900); background: var(--grey-100); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 12px; cursor: pointer; white-space: nowrap;
}
button.lgchip::before {
  content: ""; display: inline-block; width: 11px; height: 11px;
  border-radius: 50%; background: var(--lgc, var(--grey-400));
}
span.lgchip::before {
  content: ""; display: inline-block; width: 11px; height: 11px;
  border-radius: 50%; background: var(--lgc, var(--grey-400));
}
button.lgchip:hover { border-color: var(--grey-400); }
button.lgchip.off { opacity: .45; text-decoration: line-through; }
.st-note { color: var(--grey-600); font-size: 12px; line-height: 1.5; }

/* ---------- Tabelle ---------- */
.tablecard { overflow: hidden; }
.tablehead { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px 0; }
.tablehead h2 { margin: 0; font-size: 16px; }
.rescount { color: var(--grey-600); font-size: 13px; }
.pie-pct { fill: #FFFFFF; font-size: 12.5px; font-weight: 700; }
.pie-total { fill: var(--ink); font-size: 26px; font-weight: 700; }
.pie-sub { fill: var(--grey-600); font-size: 12.5px; }
.head-select { align-self: center; padding: 4px 8px !important; font-size: 12.5px; min-width: auto; }
.tablewrap { overflow-x: auto; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--grey-600); padding: 12px 14px; border-bottom: 2px solid var(--tm);
  background: var(--grey-100); position: sticky; top: 0; white-space: nowrap;
}
tbody td { padding: 9px 14px; border-bottom: 1px solid var(--grey-100); vertical-align: top; }
tbody tr:hover { background: var(--row-hover, #FFF4F9); }
a { color: var(--tm); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
.cve-id { white-space: nowrap; }
.cvss { color: var(--grey-600); font-size: 12px; margin-left: 6px; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; color: var(--on-accent);
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.sev-critical { background: var(--crit); }
.sev-high { background: var(--high); }
.sev-medium { background: var(--med); }
.sev-low { background: var(--low); }
.sev-unknown { background: var(--grey-400); }
.st-fixed { background: var(--ok); }
.st-affected { background: var(--crit); }
.st-will_not_fix { background: var(--grey-600); }
.st-not_affected { background: #7B8794; }
.st-unknown { background: var(--grey-400); }

.pkgwrap { display: flex; gap: 4px; flex-wrap: wrap; max-width: 420px; }
.pkg {
  background: var(--grey-100); color: var(--grey-900); border-radius: 4px;
  padding: 2px 7px; font-size: 12px; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  border: 1px solid var(--border);
}
.pkgfix { color: var(--ok); font-weight: 700; }
.morepkg { color: var(--grey-600); font-size: 12px; padding: 2px 4px; }
.fixver {
  display: block; font-size: 11px; color: var(--ok); font-family: ui-monospace, Menlo, monospace;
  margin-top: 2px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.srcline { font-size: 12.5px; white-space: nowrap; }

.empty { padding: 34px; text-align: center; color: var(--grey-600); }
.hidden { display: none !important; }

.pager { display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; gap: 12px; flex-wrap: wrap; }
.pager .pinfo { color: var(--grey-600); font-size: 13px; }
.pager .btns { display: flex; gap: 8px; }
.pager button {
  border: 1px solid var(--border); background: var(--white); color: var(--grey-900);
  border-radius: 6px; padding: 7px 14px; cursor: pointer; font: inherit; font-size: 13px;
}
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager button:hover:not(:disabled) { border-color: var(--tm); color: var(--tm); }
.qb-text, textarea#qcText {
  width: 100%; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px;
  resize: vertical; background: var(--field-bg); color: var(--ink);
}
textarea#qcText:focus { outline: 2px solid var(--tm); outline-offset: -1px; }
.qc-vuln { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 0; }
.qc-vuln .sc-note { width: 100%; }
.qc-list { max-width: 560px; }
.empty { padding: 24px; text-align: center; color: var(--grey-600); }

/* ---------- Footer ---------- */
footer { background: var(--footer-bg); color: #CCCCCC; font-size: 12.5px; border-top: 4px solid var(--tm); line-height: 1.6; }
.foot-inner { padding-top: 18px; padding-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.foot-inner strong { color: #FFFFFF; }
.foot-inner a { color: #E9B3D0; font-weight: 400; }
.footmeta { color: var(--grey-400); }

/* ---------- Supply Chain ---------- */
.sc-section { padding: 24px; line-height: 1.6; min-width: 0; }
.sc-section h2, .notice h2 { font-size: 18px; margin: 0 0 12px; }
.sc-section p { margin-top: 8px; margin-bottom: 12px; }
.sc-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sc-note { color: var(--grey-600); font-size: 12.5px; overflow-wrap: anywhere; }
.sc-summary { font-weight: 600; }
.notice { border-left: 4px solid var(--grey-400); background: var(--white); padding: 16px 20px; line-height: 1.6; overflow-wrap: anywhere; }
.notice-error { border-left-color: var(--crit); color: #970024; background: #FFF1F4; }
.sc-toolbar { margin: 20px 0 12px; }
.sc-tablewrap { max-height: 650px; }
#scTable td { min-width: 110px; overflow-wrap: anywhere; }
#scTable td:first-child { min-width: 40px; }
#scTable td:nth-child(2) { min-width: 180px; }
#scTable td:last-child { min-width: 280px; width: 50%; }
.sc-state { font-weight: 600; color: var(--grey-600); }
.sc-state-findings, .sc-state-error, .sc-error-text { color: var(--crit); }
.sc-state-no_known_findings { color: var(--grey-900); }
.sc-findings { margin-top: 8px; }
.sc-findings summary, #scWarnings summary { cursor: pointer; font-weight: 600; }
.sc-findings article { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; }
.sc-findings .badge { margin-left: 6px; }
.sc-consent { background: var(--grey-100); border: 1px solid var(--border); padding: 20px; margin-top: 20px; }
.sc-check { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0 20px; }
input[type=checkbox] { accent-color: var(--tm); width: 18px; height: 18px; flex: none; cursor: pointer; }
input[type=checkbox]:disabled { cursor: not-allowed; }
input[type=file] { max-width: 100%; font: inherit; }
button:disabled { cursor: not-allowed; opacity: .5; }

@media (max-width: 720px) {
  /* Kleinbildschirm: Sidebar wird wieder zu einer Kopfzeile, Content normal scrollend */
  body { display: block; height: auto; overflow: visible; }
  header { width: 100%; height: auto; }
  .shell { height: auto; overflow: visible; }
  .head-inner { height: auto; overflow: visible; padding: 20px 16px 16px; }
  main, .foot-inner { padding-left: 20px; padding-right: 20px; }
  .dashboard-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
    gap: 8px; margin: 24px 0 16px; }
  .dashboard-nav a { min-height: 44px; padding: 10px; gap: 8px; font-size: 12px;
    background: var(--grey-100); border-color: var(--border); }
  .dashboard-nav .navgroup, .dashboard-nav .navlinks { display: contents; }
  .dashboard-nav .navgroup.closed .navlinks { display: contents; }
  .dashboard-nav .navtitle { display: none; }
  .head-right { margin-top: 0; padding-top: 12px; width: 100%; }
  .dataage { text-align: left; }
  .brand-sub { display: none; }
  .statusbar { padding-left: 20px; padding-right: 20px; }
  main { padding-top: 24px; gap: 20px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi:first-child { grid-column: 1 / -1; }
  .kpi .k-num { font-size: 22px; }
  .f-item { width: 100%; min-width: 0; }
  .f-item.grow { flex-basis: auto; }
  .card-twocol { grid-template-columns: 1fr; }
  .hbar-row { grid-template-columns: minmax(90px, 1fr) 1fr 84px; }
  .tablehead { flex-wrap: wrap; }
  .ml { margin-left: 0; }
  .sc-section { padding: 16px; }
  .sc-consent { padding: 14px; }
}
/* ---------- Druck ---------- */
@media print {
  header { display: none !important; }
  body { display: block; overflow: visible; height: auto; background: #fff; }
  .shell { height: auto; overflow: visible; }
  .filters, .pager, .btns, .sc-toolbar, .src-actions { display: none !important; }
  .chart-export, .tablehead .export-btn { display: none !important; }
  .card, table { box-shadow: none; }
  .tablewrap { max-height: none !important; overflow: visible !important; }
  tr { page-break-inside: avoid; }
  a { text-decoration: none; color: inherit; }
}

/* ---------- Watchlist ---------- */
.wl td { vertical-align: middle; font-size: 12.5px; }
.wl th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--grey-600); }

/* ---------- Newsfeed-Seite ---------- */
.ns-day { border-bottom: 1px solid var(--border); padding: 10px 14px; }
.ns-day:last-child { border-bottom: none; }
.ns-dayhead { margin: 0 0 6px; font-size: 15px; }
.ns-dayhead .axlab { margin-left: 8px; }
.ns-items { list-style: none; margin: 0; padding: 0; }
.ns-item { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
  padding: 5px 0; border-top: 1px dashed var(--border); }
.ns-item:first-child { border-top: none; }
.ns-itemtitle { flex: 1 1 320px; min-width: 240px; }
.ns-itemtitle a { color: var(--ink); text-decoration: none; font-weight: 600; }
.ns-itemtitle a:hover { text-decoration: underline; color: var(--tm); }
.ns-itemmeta { flex: 0 0 auto; font-size: 12px; color: var(--grey-600); }
.ns-itemcves { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.ns-marks { font-weight: 700; }

/* ---------- OS-Support-Seite (Lifecycle/EOL, Community-Daten) ---------- */
.notice-comm { border-left-color: var(--tm); }
.notice-comm h2 { font-size: 18px; margin: 0 0 8px; color: var(--tm); }
.comm-legend { color: var(--grey-600); font-size: 12.5px; margin-top: 2px; }
.comm-mark {
  display: inline-block; margin-left: 3px; cursor: help; line-height: 1;
  font-size: 13px; color: var(--tm); font-weight: 700;
}
.os-eol-row { color: var(--grey-400); }
.os-eol-row td { opacity: .75; }
.os-eol-row .badge { opacity: 1; }
.os-untile { color: var(--grey-600); font-size: 11.5px; margin-top: 2px; }
.db-note { color: var(--grey-600); font-size: 11.5px; font-weight: 400; }
.db-note + .badge { display: inline-block; margin-top: 2px; }
.nowrap { white-space: nowrap; }
.tablehead .badge.epss { cursor: help; }

/* ---------- PDF-Export-Buttons (OS-/DB-Support) ---------- */
.chips .export-btn { margin-left: auto; align-self: center; }

/* ---------- Inventar-Seite ---------- */
.host-row { cursor: pointer; }
.host-row:hover { background: var(--grey-100); }
.host-detail td { background: var(--field-bg, var(--grey-100)); padding: 10px 14px 14px; }
.host-cves .hc-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 8px; }
.host-cves table { font-size: 12px; }
.host-cves table th { text-align: left; padding: 4px 10px 4px 0; color: var(--grey-600); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- MCP-Seite ---------- */
.mcp-body { padding: 14px 18px 18px; display: block; }
.mcp-body p { margin: 10px 0 6px; color: var(--grey-600); font-size: 13px; }
.mcp-body p:first-child { margin-top: 0; }
.mcp-body pre {
  background: var(--grey-100); border: 1px solid var(--border); border-radius: 6px;
  padding: 12px 14px; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px; line-height: 1.55; overflow-x: auto;
  white-space: pre-wrap; word-break: break-word; color: var(--ink);
}
.mcp-body pre::-webkit-scrollbar { height: 8px; }
.mcp-cmd { color: var(--tm); font-weight: 700; }
.mcp-steps { margin: 0; padding-left: 18px; display: flex;
  flex-direction: column; gap: 12px; }
.mcp-steps li strong { display: block; margin-bottom: 4px; }
.mcp-foot { color: var(--grey-600); font-size: 12px; padding: 4px 18px 16px; }
