/* Sicherheitslage – Stylesheet (keine externen Ressourcen) */
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --ink: #0f1726;
  --ink-2: #3c4658;
  --muted: #6b7587;
  --line: #dde2ea;
  --head: #0a1220;
  --head-ink: #e8edf5;
  --accent: #0b7a8f;
  --accent-ink: #ffffff;
  --focus: #0ea5c4;
  --crit: #b3122a;
  --high: #d9480f;
  --med: #b88700;
  --low: #2b8a3e;
  --none: #7a8494;
  --kev: #6d28d9;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 38, .06), 0 2px 8px rgba(15, 23, 38, .04);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b111c;
    --surface: #121a28;
    --surface-2: #18223352;
    --ink: #e6ebf3;
    --ink-2: #b9c3d3;
    --muted: #8893a6;
    --line: #243045;
    --head: #070c15;
    --accent: #22b8cf;
    --accent-ink: #04121a;
    --crit: #f0506e;
    --high: #fd7e3c;
    --med: #f2c94c;
    --low: #4cc26a;
    --none: #8a94a6;
    --kev: #a78bfa;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
code, .mono { font-family: var(--mono); font-size: .92em; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.sub { color: var(--muted); font-size: .86em; }
.sub-inline { color: var(--muted); font-size: .86em; }
.nowrap { white-space: nowrap; }

/* ---------- Kopf ---------- */
.top { background: var(--head); color: var(--head-ink); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(255,255,255,.06); }
.top-inner { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--head-ink); font-weight: 700; letter-spacing: .01em; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background:
  conic-gradient(from 210deg, #22b8cf, #0b7a8f 40%, #f0506e 70%, #22b8cf); box-shadow: inset 0 0 0 5px var(--head); }
.nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: #b9c4d6; padding: 8px 10px; border-radius: 8px; font-size: 14px; white-space: nowrap; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.nav a.active { color: #fff; background: rgba(34,184,207,.16); box-shadow: inset 0 -2px 0 #22b8cf; }
.nav-toggle { display: none; margin-left: auto; background: transparent; color: var(--head-ink); border: 1px solid rgba(255,255,255,.2); }

/* ---------- Seitenkopf ---------- */
main.wrap { padding-top: 28px; padding-bottom: 48px; }
.hero { margin-bottom: 22px; }
.hero h1 { font-size: 28px; letter-spacing: -.01em; }
.lead { color: var(--ink-2); margin: 6px 0 0; max-width: 820px; }
.crumbs { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.section-title { font-size: 18px; margin: 26px 0 12px; }

/* ---------- Kennzahlen ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.kpis.small { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); box-shadow: var(--shadow); position: relative; overflow: hidden; }
a.kpi:hover { text-decoration: none; border-color: var(--accent); }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.kpi-crit::before { background: var(--crit); }
.kpi-kev::before { background: var(--kev); }
.kpi-attack::before { background: var(--high); }
.kpi-n { font-size: 30px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-l { color: var(--muted); font-size: 13px; }

/* ---------- Karten ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2 { font-size: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.grid3 .card { margin-bottom: 0; }
.minor { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 16px 0 6px; }
.prose p { color: var(--ink-2); max-width: 860px; }
.prose h2 { font-size: 16px; margin-bottom: 4px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 9px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; padding-top: 2px; }
.list.compact li { padding: 5px 0; font-size: 14px; }
.list .sub { margin: 2px 0 0; }
.row-cve { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: start; }
.row-firm { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
.firm { font-weight: 600; color: var(--ink); }
.when { font-size: 13px; min-width: 86px; text-align: right; }
.title-link { color: var(--ink); font-weight: 500; display: block; margin-top: 3px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.src { font-weight: 600; color: var(--ink-2); }

/* ---------- Badges ---------- */
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 26px; padding: 0 6px; border-radius: 6px; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; color: #fff; }
.s-crit { background: var(--crit); }
.s-high { background: var(--high); }
.s-med { background: var(--med); color: #1b1400; }
.s-low { background: var(--low); }
.s-none { background: var(--none); }
@media (prefers-color-scheme: dark) { .score { color: #0b111c; } }
.ver { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 650; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; vertical-align: middle; }
.p-crit { color: var(--crit); }
.p-high { color: var(--high); }
.p-med { color: var(--med); }
.p-low { color: var(--low); }
.p-none { color: var(--none); }
.p-kev { color: var(--kev); }
.p-status { color: var(--ink-2); border-color: var(--line); background: var(--surface-2); }
.count { display: inline-flex; min-width: 26px; height: 22px; padding: 0 7px; align-items: center; justify-content: center; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 700; border: 1px solid var(--line); }

/* ---------- Verteilung ---------- */
.distbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.distbar .seg { display: block; height: 100%; min-width: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 10px 0 0; font-size: 13px; }
.legend a { color: var(--ink-2); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- Tabs & Filter ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 0 16px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 550; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.field.grow { flex: 1 1 240px; }
input[type=search], input[type=text], input[type=password], select {
  font: inherit; font-size: 14px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-height: 36px; }
input:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(14,165,196,.18); }
.check { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); min-height: 36px; }
button { font: inherit; font-size: 14px; font-weight: 600; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; padding: 8px 16px; min-height: 36px; cursor: pointer; }
button:hover { filter: brightness(1.08); }
button.secondary { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
button.small { padding: 4px 10px; min-height: 30px; font-size: 13px; }
button.danger { background: transparent; color: var(--crit); border: 1px solid var(--crit); }
.resultinfo { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.riskchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13.5px; }
.chip b { font-variant-numeric: tabular-nums; }
.chip:hover { text-decoration: none; border-color: var(--accent); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.c-crit { box-shadow: inset 3px 0 0 var(--crit); }
.c-high { box-shadow: inset 3px 0 0 var(--high); }
.c-med { box-shadow: inset 3px 0 0 var(--med); }
.c-low { box-shadow: inset 3px 0 0 var(--low); }

/* ---------- Tabellen ---------- */
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card .tablewrap { border: 0; border-radius: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 650; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); position: sticky; top: 0; }
.table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.table tr:first-child td { border-top: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table td.desc { max-width: 620px; color: var(--ink-2); }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: " ▸"; color: var(--accent); font-size: .85em; }
details[open] summary::after { content: " ▾"; }
details p { margin: 8px 0 0; }

/* ---------- Hinweise / Artikel ---------- */
.advlist, .artlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.adv, .art { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; border-left: 4px solid var(--none); }
.art { border-left-color: var(--accent); }
.adv.r-kritisch { border-left-color: var(--crit); }
.adv.r-hoch { border-left-color: var(--high); }
.adv.r-mittel { border-left-color: var(--med); }
.adv.r-niedrig { border-left-color: var(--low); }
.adv-title, .art-title { font-size: 16px; font-weight: 600; margin: 6px 0 0; }
.adv-title a, .art-title a { color: var(--ink); }
.adv-title a:hover, .art-title a:hover { color: var(--accent); }
.adv-sum, .art-sum { color: var(--ink-2); margin: 6px 0 0; font-size: 14px; }
.cvelinks { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.cvelinks a { font-size: 12px; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.tag { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(217,72,15,.1); color: var(--high); border: 1px solid rgba(217,72,15,.3); }
.tag:hover { text-decoration: none; background: rgba(217,72,15,.18); }

/* ---------- Firmen ---------- */
.firmgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.firmcard { display: flex; flex-direction: column; gap: 8px; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.firmcard:hover { text-decoration: none; border-color: var(--high); transform: translateY(-1px); }
.firmcard-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.firmname { font-weight: 700; font-size: 16px; }
.firmcard-title { color: var(--ink-2); font-size: 13.5px; flex: 1; }
.firmcard-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 14px 0 0; }
.facts div { display: flex; flex-direction: column; }
.facts dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 0; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.monthbars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; height: 140px; align-items: end; }
.mb { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.mb-bar { display: block; width: 100%; max-width: 38px; height: 2px; background: var(--high); border-radius: 4px 4px 1px 1px; opacity: .85; }
.mb-n { font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; min-height: 14px; }
.mb-l { font-size: 11px; color: var(--muted); }

/* ---------- Diverses ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 18px 0 0; }
.pager a, .pager span { padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.pager .cur { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager .gap { border: 0; background: transparent; }
.empty { padding: 18px; text-align: center; color: var(--ink-2); background: var(--surface-2); border-radius: 8px; }
.empty p { margin: 4px 0; }
.notice { padding: 10px 14px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.notice.ok { border-color: var(--low); }
.notice.err { border-color: var(--crit); color: var(--crit); }
.notice.import { margin-bottom: 18px; border-color: var(--accent); }
.importbar { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--line); overflow: hidden; }
.importbar span { display: block; height: 100%; width: 0; background: var(--accent); }
.log { background: var(--head); color: #cfe3ea; padding: 14px; border-radius: var(--radius); font: 12.5px/1.5 var(--mono); overflow: auto; max-height: 70vh; white-space: pre-wrap; }
form.inline { display: flex; gap: 6px; align-items: center; margin: 0; }
form.inline input[type=text] { min-width: 150px; }
.art form.inline { margin-top: 10px; }
.admin-hero { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-table tr.is-hidden td { opacity: .55; }
.loginform { max-width: 380px; display: grid; gap: 12px; }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 18px; padding-bottom: 28px; }

/* ---------- Responsiv ---------- */
@media (max-width: 1060px) {
  .kpis, .kpis.small { grid-template-columns: repeat(3, 1fr); }
  .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .nav a { padding: 8px 7px; font-size: 13.5px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 14px; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--head); flex-direction: column; padding: 8px 14px 14px; }
  .nav.open { display: flex; }
  .kpis, .kpis.small { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 23px; }
  .table td.desc { min-width: 260px; }
  .monthbars { gap: 4px; }
}

/* ---------- Beobachtung ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; margin-bottom: 18px; }
.grid2 .card { margin-bottom: 0; }
form.stack { display: grid; gap: 10px; margin-bottom: 10px; }
.stocklinks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; }
.stocklinks b { font-variant-numeric: tabular-nums; }
td form.inline { display: inline-flex; margin-right: 4px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- Scanner ---------- */
.scanform { display: grid; gap: 14px; }
.profiles { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.profiles legend { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.profile { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: var(--bg); }
.profile:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.scanactions { display: flex; gap: 8px; }
.scanprogress p { margin: 6px 0 0; }
.report-head { display: flex; gap: 22px; align-items: center; }
.report-head h1 { font-size: 24px; }
.report-meta .lead { margin-top: 4px; }
.grade { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 800; color: #fff; }
.g-crit { background: var(--crit); } .g-high { background: var(--high); } .g-med { background: var(--med); color: #1b1400; } .g-low { background: var(--low); } .g-none { background: var(--none); }
.gradepill { display: inline-flex; width: 26px; height: 26px; border-radius: 7px; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 14px; }
.levelcounts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.findings { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.finding { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--none); border-radius: var(--radius); padding: 14px 16px; }
.finding.f-crit { border-left-color: var(--crit); } .finding.f-high { border-left-color: var(--high); } .finding.f-med { border-left-color: var(--med); } .finding.f-low { border-left-color: var(--low); }
.finding h3 { font-size: 16px; margin: 6px 0 4px; }
.finding p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.finding .advice { background: var(--surface-2); border-radius: 6px; padding: 8px 10px; margin-top: 8px; color: var(--ink); }
.allclear { border-left: 4px solid var(--low); }
.allclear h2 { font-size: 18px; color: var(--low); margin-bottom: 6px; }
.checklist { padding-left: 18px; margin: 8px 0 0; display: grid; gap: 8px; color: var(--ink-2); }
@media (max-width: 760px) { .profiles { grid-template-columns: 1fr; } .report-head { flex-direction: column; align-items: flex-start; } }

/* ---------- Startseite ---------- */
.portal-hero { padding: 26px 0 8px; }
.portal-hero h1 { font-size: 32px; }
.portal { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 10px 0 30px; }
.portal-card { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.portal-card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.portal-icon { flex: 0 0 52px; height: 52px; border-radius: 12px; background: var(--head); position: relative; }
.portal-icon::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; border: 3px solid #22b8cf; }
.pi-lage::before { content: ""; position: absolute; left: 24px; top: 20px; width: 6px; height: 6px; border-radius: 50%; background: #f0506e; z-index: 1; }
.pi-scan::after { border-radius: 4px; border-style: dashed; }
.portal-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.portal-title { font-size: 21px; font-weight: 750; margin: 0; line-height: 1.25; }
.portal-intro { max-width: 88ch; }
.portal-text { color: var(--ink-2); }
.portal-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--ink-2); }
.portal-stats b { font-variant-numeric: tabular-nums; color: var(--ink); }
.portal-stats .crit b { color: var(--crit); }
.portal-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin-top: auto; }
.portal-go { color: var(--accent); font-weight: 650; font-size: 14px; }
@media (max-width: 860px) { .portal { grid-template-columns: 1fr; } }

/* ---------- Konten & Admin ---------- */
.userform { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.breakall { word-break: break-all; }
.nav a[href$="/konto/"] { margin-left: 8px; border: 1px solid rgba(255,255,255,.18); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rights { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rights label { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; }
.tabcount { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 5px; border-radius: 9px; background: var(--high); color: #fff; font-size: 11px; font-weight: 700; align-items: center; justify-content: center; }

/* ---------- SAP-Patchday ---------- */
.monthtabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.monthtabs a { white-space: nowrap; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 14px; }
.monthtabs a:hover { text-decoration: none; border-color: var(--accent); }
.monthtabs a.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sap-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.sap-head h2 { font-size: 20px; }
.sap-head p { margin: 4px 0 0; }
.sap-head .riskchips { margin: 0; }
.table tr.subhead td { background: var(--surface-2); font-weight: 650; color: var(--ink-2); font-size: 13px; }
.cvelinks-cell { font-size: 12.5px; white-space: nowrap; }

/* ---------- Statistik (Admin) ---------- */
.statkpis { grid-template-columns: repeat(4, 1fr); }
.kpi-s { color: var(--muted); font-size: 13px; }
.stat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stat-head .riskchips { margin: 0; }
.legend { margin: 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.legend span { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; }
.legend .lg-v { background: var(--accent); opacity: .35; }
.legend .lg-b { background: var(--accent); }
svg.chart { width: 100%; height: auto; display: block; margin-top: 10px; }
svg.chart .grid { stroke: var(--line); stroke-width: 1; }
svg.chart text { font-size: 12px; fill: var(--muted); font-family: inherit; }
svg.chart .ylab { text-anchor: end; }
svg.chart .xlab { text-anchor: middle; }
svg.chart .hit { fill: transparent; }
svg.chart .bar .v { fill: var(--accent); opacity: .35; }
svg.chart .bar .b { fill: var(--accent); }
svg.chart a:hover .hit, svg.chart .bar.active .hit { fill: var(--surface-2); }
svg.chart .bar.active .v { opacity: .55; }
.stat-title { font-size: 18px; margin: 22px 0 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.stat-title .muted { font-weight: 400; font-size: 15px; }
.small-link { font-size: 13px; font-weight: 400; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-grid .card, .stat-grid + .card { margin-bottom: 16px; }
.table.compact td, .table.compact th { padding: 7px 10px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tr.sel td { background: var(--surface-2); font-weight: 600; }
.flag { font-size: 16px; }
.statbar { display: block; height: 4px; margin-top: 4px; border-radius: 2px; background: var(--line); overflow: hidden; max-width: 260px; }
.statbar span { display: block; height: 100%; width: 0; background: var(--accent); }
.err-text { color: var(--crit); }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formgrid .field.full { grid-column: 1 / -1; }
.field textarea { width: 100%; font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); resize: vertical; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.legal h2 { font-size: 17px; margin: 20px 0 6px; }
.legal h2:first-child { margin-top: 0; }
.legal p { max-width: 75ch; line-height: 1.6; }
@media (max-width: 760px) {
  .statkpis, .stat-grid, .formgrid { grid-template-columns: 1fr 1fr; }
  .stat-grid, .formgrid { grid-template-columns: 1fr; }
}

/* ---------- Patchdays: SAP / Microsoft / Linux ---------- */
.vendortabs { display: inline-flex; gap: 2px; padding: 3px; margin: 2px 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.vendortabs a { padding: 6px 16px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.vendortabs a:hover { text-decoration: none; background: var(--surface-2); }
.vendortabs a.active { background: var(--accent); color: #fff; }
.txt-crit { color: var(--crit); }
.distrochips { margin: 10px 0 0; }
.p-distro { font-size: 11px; }
.p-distro.d-debian { color: #c70036; }
.p-distro.d-ubuntu { color: #e95420; }
.kbs { white-space: nowrap; }
.morecves summary { cursor: pointer; color: var(--muted); font-size: 12px; }

/* ---------- Rechtliches, Meldungen, Sicherheit ---------- */
.disclaimer { font-size: 13.5px; color: var(--ink-2); background: var(--surface-2); border-left: 3px solid var(--line); padding: 9px 12px; border-radius: 6px; max-width: 90ch; margin: 10px 0 0; }
.reportform { max-width: 680px; display: grid; gap: 12px; }
.reportform select, .reportform input { width: 100%; }
.report { margin-bottom: 12px; }
.report.open { border-left: 3px solid var(--high); }
.report.done { opacity: .75; }
.report-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.report-msg { background: var(--surface-2); padding: 10px 12px; border-radius: 6px; white-space: normal; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.chk-icon { flex: 0 0 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; background: var(--none); }
.chk-ok .chk-icon { background: var(--low); }
.chk-warn .chk-icon { background: var(--med); }
.chk-err .chk-icon { background: var(--crit); }
.chk-info .chk-icon { background: var(--accent); }
.steps { padding-left: 20px; line-height: 1.7; }
.totp-key { font-size: 15px; letter-spacing: .05em; padding: 2px 6px; }
.pd-summary { font-size: 16px; font-weight: 600; margin: 4px 0 14px; }
.pd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 14px; }
.pd-card h2 { font-size: 18px; }
.pd-nums { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.pd-num { display: inline-flex; flex-direction: column; align-items: center; min-width: 62px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; color: var(--muted); }
.pd-num b { font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pd-num.c-crit b { color: var(--crit); } .pd-num.c-high b { color: var(--high); } .pd-num.c-med b { color: var(--med); } .pd-num.c-low b { color: var(--low); } .pd-num.c-kev b { color: var(--kev); }
.pd-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13.5px; }
.pd-list li { line-height: 1.45; }
.pd-list .sub { display: block; margin-top: 2px; }
@media (max-width: 1000px) { .pd-grid { grid-template-columns: 1fr; } }
.rights-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; margin: 0 0 12px; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; }
.rights-legend .sub { flex-basis: 100%; }

/* ---------- Sprachauswahl, Über-Seite ---------- */
.langsw { display: inline-flex; margin-left: 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; overflow: hidden; flex: 0 0 auto; }
.langsw a { color: #b9c4d6; padding: 6px 9px; font-size: 12.5px; font-weight: 650; letter-spacing: .03em; }
.langsw a:hover { text-decoration: none; background: rgba(255,255,255,.08); color: #fff; }
.langsw a.active { background: rgba(255,255,255,.16); color: #fff; }
.about-list { padding-left: 20px; line-height: 1.7; }
.about-sources { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 10px 0; }
.about-sources dt { font-weight: 650; }
.about-sources dd { margin: 0; }
.foot .profiles { display: block; }
@media (max-width: 760px) { .about-sources { grid-template-columns: 1fr; } .langsw { margin-left: auto; } }
.p-distro.d-redhat { color: #cc0000; }
.p-distro.d-suse { color: #30ba78; }

/* ---------- Smarthome ---------- */
.pi-home::after { inset: 14px 13px 12px; border-radius: 3px; border-color: #ffa94d; }
.pi-home::before { content: ""; position: absolute; left: 12px; top: 8px; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 12px solid #ffa94d; z-index: 1; }
.portal { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
@media (max-width: 860px) { .portal { grid-template-columns: 1fr; } }
.sh-intro { max-width: 80ch; }
.sh-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.sh-fig { margin: 0; padding: 12px; }
.sh-fig svg { width: 100%; height: auto; display: block; }
.sh-fig figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.sh-procon { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.sh-procon ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.sh-procon li { padding-left: 26px; position: relative; line-height: 1.5; }
.sh-pro li::before { content: "+"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--low); color: #fff; font-weight: 700; font-size: 13px; text-align: center; line-height: 18px; }
.sh-con li::before { content: "–"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--high); color: #fff; font-weight: 700; font-size: 13px; text-align: center; line-height: 17px; }
.sh-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.sh-card { display: flex; flex-direction: column; gap: 10px; color: var(--ink); border-top: 4px solid var(--accent); transition: transform .15s, border-color .15s; }
.sh-card:hover { text-decoration: none; transform: translateY(-2px); }
.sh-openhab { border-top-color: #e8590c; }
.sh-homeassistant { border-top-color: #0d8fd6; }
.sh-card-head { font-size: 20px; font-weight: 750; }
.sh-card-text { color: var(--ink-2); }
.sh-compare th[scope=row] { width: 22%; color: var(--ink-2); font-weight: 600; }
@media (max-width: 960px) { .sh-figs, .sh-procon, .sh-cards { grid-template-columns: 1fr; } }
.sh-procon h2 { margin-bottom: 14px; }

/* ---------- Web-App ---------- */
.appbox { display: flex; gap: 22px; align-items: flex-start; }
.app-icon img { border-radius: 22px; box-shadow: var(--shadow); display: block; }
.app-actions { flex: 1; display: grid; gap: 14px; }
.app-actions h2 { font-size: 17px; margin: 0; }
.app-btn { font-size: 16px; padding: 12px 22px; justify-self: start; }
.app-state { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); }
@media (max-width: 600px) { .appbox { flex-direction: column; } }
/* in der installierten App: Abstand für die Statusleiste */
html.is-app .top { padding-top: env(safe-area-inset-top); }

/* ---------- Patch-Ampel, Meine Lage, Push ---------- */
.prio { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; white-space: nowrap; color: #fff; }
.prio-crit { background: var(--crit); }
.prio-high { background: var(--high); }
.prio-low { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.prio-card { border-left: 5px solid var(--line); }
.prio-box-crit { border-left-color: var(--crit); }
.prio-box-high { border-left-color: var(--high); }
.t-crit { color: var(--crit); }
.t-high { color: var(--high); }
.facts.small dd { font-size: 15px; font-weight: 600; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.plain li { line-height: 1.45; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.swgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.swgrid fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 10px; margin: 0; display: grid; gap: 6px; }
.swgrid legend { font-weight: 700; padding: 0 4px; font-size: 14px; }
.pushbox .checks { display: grid; gap: 6px; }
.cal-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.cal-list li { display: flex; gap: 12px; align-items: baseline; }
.cal-list .d { min-width: 108px; font-variant-numeric: tabular-nums; font-weight: 650; }
.diff-new { color: var(--crit); font-weight: 650; }
.diff-gone { color: var(--low); }
a.btn { display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; background: var(--accent); color: var(--accent-ink); border-radius: 8px; padding: 8px 16px; min-height: 36px; text-decoration: none; }
a.btn.secondary { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
a.btn:hover { filter: brightness(1.08); }
.btnrow > form { display: inline-flex; width: auto; margin: 0; }
/* ---------- Versionen ---------- */
.changelog { list-style: none; padding: 0; margin: 0; }
.changelog .card-head { flex-wrap: wrap; margin-bottom: 0; }
.changelog .card-head h2 { font-size: 17px; }
.changelog .cl-v { font-variant-numeric: tabular-nums; color: var(--accent); }
.changelog .cl-current { border-left: 4px solid var(--accent); }
.cl-items { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 4px; }

/* ---------- Startseite: Neu auf der Seite ---------- */
.whatsnew { margin-top: 22px; }
.whatsnew-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px 24px; }
.whatsnew-list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.whatsnew-list span { color: var(--ink-2); font-size: 14px; }

/* ---------- Konto löschen ---------- */
.danger-card { border-color: color-mix(in srgb, var(--crit) 40%, var(--line)); }
button.danger { background: var(--crit); color: #fff; }

/* ---------- Kontakt: Antworten ---------- */
.report .reply { border-left: 3px solid var(--accent); background: var(--surface-2); padding: 8px 12px; border-radius: 6px; margin: 10px 0; }
.report .reply p { margin: 4px 0 0; }
.report form textarea { width: 100%; }
.report .btnrow { align-items: center; justify-content: space-between; }

/* ---------- Statistik: angemeldet / Gäste ---------- */
svg.chart.split .bar .g { fill: var(--accent); opacity: .3; }
svg.chart.split .bar .a { fill: var(--accent); }
.legend .lg-g, .legend .lg-a { display: inline-block; width: 12px; height: 12px; border-radius: 2px; background: var(--accent); vertical-align: -1px; margin: 0 4px 0 10px; }
.legend .lg-g { opacity: .3; }
.splitbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--surface-2); margin-top: 6px; min-width: 120px; }
.splitbar .a { background: var(--accent); }
.splitbar .g { background: var(--accent); opacity: .3; }

/* ---------- Cookie-Hinweis (nur nach Anmeldung) ---------- */
.cookienote { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--ink); color: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.18); }
.cookienote-inner { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 0; flex-wrap: wrap; }
.cookienote p { margin: 0; font-size: 14px; line-height: 1.5; flex: 1 1 420px; }
.cookienote a { color: #9fd8e6; }
.cookienote form { margin: 0; }
.cookiehint { margin-top: 10px; }
.cookietable td { vertical-align: top; font-size: 13.5px; }
body:has(.cookienote) { padding-bottom: 110px; }

.tabs.subtabs { margin: 4px 0 10px; }

/* ---------- Klartext, Glossar, Betrug, Domain-Check (1.14) ---------- */
.klartext h3 { font-size: 14px; margin: 14px 0 4px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.klartext h3:first-of-type { margin-top: 0; }
.klartext ul, .klartext ol { margin: 4px 0 8px; padding-left: 20px; display: grid; gap: 4px; }
.azbar { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 14px; }
.azbar a { min-width: 30px; padding: 4px 8px; text-align: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-weight: 700; }
dl.glossary { margin: 0; }
dl.glossary dt { font-weight: 700; font-size: 16px; margin-top: 18px; scroll-margin-top: 80px; }
dl.glossary dt:first-child { margin-top: 0; }
dl.glossary dt:target { color: var(--accent); }
dl.glossary dd { margin: 4px 0 0; color: var(--ink-2); line-height: 1.5; max-width: 80ch; }
dl.glossary .anchor { color: var(--muted); font-weight: 400; text-decoration: none; }
.scamlist p.sub { margin: 3px 0 0; }
.dclist code.wrap { display: inline-block; margin-top: 4px; white-space: pre-wrap; word-break: break-all; font-size: 12px; color: var(--ink-2); }
.dclist p.sub { margin: 3px 0 0; }
#support .filters { margin: 12px 0 6px; }

.pi-scam::after { inset: auto; left: 12px; top: 11px; width: 0; height: 0; border-radius: 0; border: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 27px solid #ff6b6b; }
.pi-scam::before { content: "!"; position: absolute; left: 0; right: 0; top: 21px; text-align: center; font-weight: 900; font-size: 16px; line-height: 1; color: var(--head); z-index: 1; }
.inline-forms { display: flex; flex-wrap: wrap; gap: 10px; } .inline-forms form { display: inline-block; margin: 0; }
