/* VIGIL – Lagezentrum Schwachstellen · leichtes Glas-Design auf blauem Verlauf */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --text: #F4F6FC; --text-2: #DCE2F0; --leise: #A3AEC8; --leiser: #7D89A8;
  --panel: rgba(19, 33, 78, .62); --panel-2: rgba(28, 46, 104, .55); --panel-hover: rgba(40, 62, 130, .45);
  --rand: rgba(126, 156, 255, .14); --rand-2: rgba(126, 156, 255, .26);
  --blau: #5B8CFF; --blau-hell: #8DB0FF; --tuerkis: #3DD9B4;
  --rot: #FF5D6C; --gelb: #F2C14E; --gruen: #34D399; --pink: #FF5D6C;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.45; font-weight: 400;
  background-color: #0A1A4A;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, #0B1640 0%, transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 110%, #2355D9 0%, transparent 60%),
    linear-gradient(180deg, #08133A 0%, #10287A 60%, #1C47C4 100%);
  background-attachment: fixed;
}
a { color: #A9C2FF; text-decoration: none; }
a:hover { color: #FFFFFF; text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blau-hell); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
svg { display: block; }

.sprung { position: absolute; left: -9999px; top: 8px; background: var(--blau); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.sprung:focus { left: 8px; }

/* Rahmen wie ein App-Fenster */
.rahmen {
  display: flex; width: calc(100% - 56px); max-width: 1440px; margin: 28px auto; min-height: calc(100vh - 56px);
  background: rgba(10, 22, 62, .78); border: 1px solid var(--rand); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(3, 8, 30, .55), inset 0 1px 0 rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}

/* Navigation links */
.leiste-nav { width: 76px; flex: none; display: flex; flex-direction: column; align-items: center; padding: 22px 0; gap: 26px; }
.nav-logo { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.nav-logo svg { width: 30px; height: 30px; }
.nav-gruppe { display: flex; flex-direction: column; gap: 10px; }
.nav-unten { margin-top: auto; }
.nav-knopf { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--leise); }
.nav-knopf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-knopf:hover { color: var(--text); background: var(--panel-2); }
.nav-knopf.aktiv { color: #fff; background: rgba(91, 140, 255, .28); box-shadow: inset 0 0 0 1px rgba(141, 176, 255, .35); }

.inhalt { flex: 1; min-width: 0; padding: 24px 28px 22px 8px; display: flex; flex-direction: column; gap: 16px; }

/* Kopf */
.kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.titel-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.titel-zeile h1 { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.live { font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: 5px; color: var(--gruen); background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .35); }
.live.alt { color: var(--gelb); background: rgba(244, 195, 80, .12); border-color: rgba(244, 195, 80, .35); }
.live.aus { color: var(--rot); background: rgba(255, 99, 117, .12); border-color: rgba(255, 99, 117, .35); }
.stand { font-size: 13px; color: var(--leise); }
.kopf-rechts { display: flex; align-items: center; gap: 10px; }
.uhr { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; margin-right: 4px; }
.pille {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0;
  background: linear-gradient(180deg, #7DA6FF 0%, #5582F5 100%); color: #08163F; font-weight: 500; font-size: 14px;
  box-shadow: 0 6px 18px rgba(64, 112, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.pille svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pille:hover { filter: brightness(1.07); }
.pille.aktiv { background: rgba(61, 217, 160, .14); color: var(--gruen); box-shadow: inset 0 0 0 1px rgba(61, 217, 160, .4); }
.pille-leer { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--rand-2); }
.pille:disabled { opacity: .5; cursor: default; }

.hinweis { padding: 12px 16px; border-radius: 12px; font-size: 13px; background: rgba(244, 195, 80, .1); border: 1px solid rgba(244, 195, 80, .35); color: #FBE2A6; }

/* Reihen und Panels */
.reihe { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.reihe-unten { align-items: flex-start; }
.panel {
  background: var(--panel); border: 1px solid var(--rand); border-radius: var(--r); padding: 18px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
.panel-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-bottom: 14px; }
.panel-kopf h2 { font-size: 17px; font-weight: 500; letter-spacing: -.005em; }
.panel-diagramm { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.panel-liste { flex: 999 1 560px; min-width: 0; outline: none; padding-bottom: 8px; }
.seitenleiste { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.klein-leise { font-size: 12px; color: var(--leise); }

.umschalter { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(8, 18, 54, .45); }
.umschalter button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--leise); font-size: 13px; }
.umschalter button:hover { color: var(--text); }
.umschalter button[aria-pressed="true"], .umschalter button[aria-selected="true"] { background: #2B4FB8; color: #fff; box-shadow: inset 0 0 0 1px rgba(141, 176, 255, .45); }
.umschalter button span { color: inherit; opacity: .7; margin-left: 2px; font-variant-numeric: tabular-nums; }

/* Diagramm */
.diagramm { flex: 1; min-height: 230px; position: relative; }
.diagramm svg { width: 100%; height: 100%; overflow: visible; }
.diagramm .achse { fill: var(--leise); font-size: 11px; font-family: var(--sans); }
.diagramm .gitter { stroke: rgba(126, 156, 255, .1); stroke-width: 1; }
.diagramm .linie-krit { fill: none; stroke: #6F98FF; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.diagramm .linie-alle { fill: none; stroke: rgba(141, 176, 255, .35); stroke-width: 1.5; stroke-dasharray: 4 4; }
.diagramm .punkt-krit { fill: #0B1A4A; stroke: #8DB0FF; stroke-width: 2; }
.diagramm-legende { display: flex; gap: 18px; margin-top: 8px; font-size: 12px; color: var(--leise); }
.diagramm-legende span::before { content: ""; display: inline-block; width: 14px; height: 2px; margin-right: 7px; vertical-align: middle; }
.l-krit::before { background: #6F98FF; }
.l-alle::before { background: rgba(141, 176, 255, .45); }

/* Karten rechts oben */
.karten { flex: 1 1 320px; min-width: 0; display: grid; gap: 12px; grid-template-rows: repeat(4, 1fr); }
.karte { background: var(--panel); border: 1px solid var(--rand); border-radius: var(--r); padding: 14px 18px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 2px 12px; align-content: center; }
.karte-label { font-size: 12px; color: var(--leise); grid-column: 1 / -1; }
.karte-wert { font-size: 18px; font-weight: 500; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.karte-zusatz { font-size: 12px; color: var(--leise); align-self: center; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.ampel { width: 9px; height: 9px; border-radius: 50%; background: var(--leiser); }
.karte.rot { border-color: rgba(255, 99, 117, .45); background: linear-gradient(135deg, rgba(255, 99, 117, .14), var(--panel) 60%); }
.karte.rot .ampel { background: var(--rot); box-shadow: 0 0 0 4px rgba(255, 99, 117, .2); animation: puls 1.8s ease-in-out infinite; }
.karte.rot .karte-wert { color: var(--rot); }
.karte.orange { border-color: rgba(244, 195, 80, .4); }
.karte.orange .ampel { background: var(--gelb); box-shadow: 0 0 0 4px rgba(244, 195, 80, .18); }
.karte.orange .karte-wert { color: var(--gelb); }
.karte.gruen .ampel { background: var(--gruen); box-shadow: 0 0 0 4px rgba(61, 217, 160, .16); }
.karte.gruen .karte-wert { color: var(--gruen); }
.wert-rot, .wert-blau { color: var(--text); }
@keyframes puls { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* Liste als Tabelle */
.liste-werkzeuge { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.suche { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; background: rgba(8, 18, 54, .45); color: var(--leise); width: 210px; }
.suche:focus-within { box-shadow: inset 0 0 0 1px var(--rand-2); }
.suche svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; flex: none; }
.suche input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font: inherit; font-size: 13px; }
.suche input::placeholder { color: var(--leiser); }
.filter-hinweis { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; margin-bottom: 8px; border-radius: 10px; background: rgba(91, 140, 255, .12); font-size: 13px; color: var(--text-2); }
.link-knopf { border: 0; background: none; color: var(--blau-hell); font-size: 13px; padding: 6px 0; }
.link-knopf:hover { text-decoration: underline; }

.tabelle-kopf, .zeile { display: grid; grid-template-columns: minmax(0, 3.2fr) 1.1fr .7fr 1.1fr 1.4fr 1.2fr 24px; gap: 12px; align-items: center; }
.tabelle-kopf { padding: 0 12px 8px; font-size: 12px; color: var(--leise); border-bottom: 1px solid var(--rand); }
.tabelle { display: flex; flex-direction: column; }
.zeile-block { border-bottom: 1px solid rgba(126, 156, 255, .08); }
.zeile-block:last-child { border-bottom: 0; }
.zeile { width: 100%; min-height: 56px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; font-size: 13.5px; color: var(--text); }
.zeile:hover { background: var(--panel-hover); }
.zeile-block.markiert .zeile, .zeile[aria-expanded="true"] { background: rgba(43, 79, 184, .28); }
.z-produkt { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.z-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z-unter { font-size: 12px; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z-unter .cve { font-family: var(--mono); font-size: 11.5px; color: var(--leise); }
.z-schwere { font-weight: 500; }
.z-schwere.kritisch { color: var(--rot); } .z-schwere.hoch { color: var(--gelb); } .z-schwere.offen { color: var(--leise); }
.z-cvss { font-variant-numeric: tabular-nums; color: var(--text); }
.z-epss { display: flex; align-items: center; gap: 8px; }
.mini-balken { flex: 1; max-width: 60px; height: 4px; border-radius: 2px; background: rgba(126, 156, 255, .15); overflow: hidden; }
.mini-balken span { display: block; height: 100%; width: 0; background: var(--blau); border-radius: 2px; }
.z-epss-wert { font-variant-numeric: tabular-nums; color: var(--text-2); min-width: 34px; }
.z-status { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.tag-kev { color: var(--rot); background: rgba(255, 93, 108, .1); }
.tag-neu { color: #A9C2FF; background: rgba(91, 140, 255, .14); }
.tag-ransom { color: var(--text-2); background: rgba(255, 255, 255, .07); }
.tag-exploit { color: var(--text-2); background: rgba(255, 255, 255, .07); }
.tag-unsicher { color: var(--leise); background: rgba(255, 255, 255, .05); }
.z-patch { font-size: 13px; color: var(--text-2); }
.z-patch.offen { color: var(--leise); }
.z-pfeil svg { width: 16px; height: 16px; fill: none; stroke: var(--leiser); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.zeile[aria-expanded="true"] .z-pfeil svg { transform: rotate(90deg); }

.details { margin: 4px 12px 14px; padding: 14px 16px; border-radius: 10px; background: rgba(8, 18, 54, .4); display: grid; gap: 12px; font-size: 13px; color: var(--text-2); }
.details .titel-de { font-size: 14px; color: var(--text); font-weight: 500; }
.details { color: var(--text-2); }
.details .beschreibung { line-height: 1.55; overflow-wrap: anywhere; color: var(--text-2); }
.details dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.details dt { color: var(--leise); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.details .vektor { font-family: var(--mono); font-size: 11.5px; }
.details ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.leer { padding: 28px; text-align: center; color: var(--leise); }

/* Hersteller */
.hersteller-liste { display: flex; flex-direction: column; }
.hz { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; min-height: 40px; padding: 6px 10px; margin: 0 -10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: 13.5px; }
.hz:hover { background: var(--panel-hover); }
.hz[aria-pressed="true"] { background: rgba(43, 79, 184, .32); }
.hz-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.hz-name::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--leiser); flex: none; opacity: .6; }
.hz.rot .hz-name::before { background: var(--rot); opacity: 1; }
.hz.gelb .hz-name::before { background: var(--gelb); opacity: 1; }
.hz-zahl { font-variant-numeric: tabular-nums; color: var(--text-2); min-width: 18px; text-align: right; }
.hz-art { font-size: 12px; min-width: 76px; text-align: right; color: var(--leise); }
.hz.rot .hz-art { color: var(--rot); } .hz.gelb .hz-art { color: var(--gelb); }
.hz-zahl { color: var(--text); }

/* Push */
.status-pille { font-size: 11px; padding: 2px 8px; border-radius: 5px; color: var(--leise); box-shadow: inset 0 0 0 1px var(--rand-2); }
.status-pille.an { color: var(--gruen); box-shadow: inset 0 0 0 1px rgba(61, 217, 160, .45); background: rgba(61, 217, 160, .1); }
.schalter-liste { display: grid; gap: 14px; margin-top: 4px; }
.schalter-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.schalter-zeile > div { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; }
.schalter-zeile small { font-size: 12px; color: var(--leise); }
.schalter { width: 44px; height: 26px; flex: none; border-radius: 999px; border: 0; padding: 3px; background: rgba(126, 156, 255, .22); display: flex; }
.schalter span { width: 20px; height: 20px; border-radius: 50%; background: #E8EDFF; transition: transform .15s; }
.schalter[aria-checked="true"] { background: var(--blau); }
.schalter[aria-checked="true"] span { transform: translateX(18px); }
.schalter:disabled { opacity: .4; cursor: not-allowed; }

/* Quellen */
.quellen { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.quellen li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.quellen li > span:first-child { display: flex; align-items: center; gap: 10px; }
.punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--leiser); flex: none; }
.punkt.ok { background: var(--gruen); } .punkt.fehler { background: var(--rot); }
.quellen .zeit { font-size: 12px; color: var(--leise); text-align: right; }
.quellen .zeit.fehler { color: var(--rot); }
.info { line-height: 1.55; padding-top: 12px; border-top: 1px solid var(--rand); }

.fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 6px 4px 0; font-size: 11.5px; color: var(--leise); }

/* Tablet */
@media (max-width: 1100px) {
  .tabelle-kopf { display: none; }
  .zeile { grid-template-columns: minmax(0, 1fr) auto auto 20px; grid-template-areas: "produkt schwere cvss pfeil" "status status patch patch"; row-gap: 6px; }
  .z-produkt { grid-area: produkt; } .z-schwere { grid-area: schwere; } .z-cvss { grid-area: cvss; }
  .z-pfeil { grid-area: pfeil; } .z-status { grid-area: status; } .z-patch { grid-area: patch; text-align: right; }
  .z-epss { display: none; }
}

/* Handy */
@media (max-width: 720px) {
  body { background-attachment: scroll; }
  .rahmen { width: 100%; margin: 0; border-radius: 0; border: 0; min-height: 100vh; flex-direction: column; background: rgba(10, 22, 62, .6);
    -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .karten { order: -1; }
  .leiste-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; width: auto; flex-direction: row; justify-content: space-around;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 0; background: rgba(9, 20, 58, .92); border-top: 1px solid var(--rand);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .nav-logo { display: none; }
  .nav-gruppe { flex-direction: row; gap: 4px; }
  .nav-unten { margin-top: 0; }
  .inhalt { padding: 16px 14px calc(84px + env(safe-area-inset-bottom)); gap: 12px; }
  .titel-zeile h1 { font-size: 20px; }
  .stand { flex-basis: 100%; }
  .uhr { display: none; }
  .kopf { align-items: flex-start; }
  .pille { min-height: 38px; padding: 0 14px; font-size: 13px; }
  .panel { padding: 14px; }
  .karten { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 10px; }
  .karte { grid-template-columns: 1fr; padding: 12px 14px; }
  .karte-zusatz { text-align: left; max-width: none; }
  .karte-wert { font-size: 17px; }
  .diagramm { min-height: 170px; }
  .liste-werkzeuge { width: 100%; }
  .suche { width: 100%; }
  .umschalter { width: 100%; }
  .umschalter button { flex: 1; padding: 0 6px; font-size: 12px; }
  .zeile { padding: 10px 6px; }
  .details { margin: 4px 0 12px; }
  .details dl { grid-template-columns: 1fr; gap: 2px; }
  .details dd { margin-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
