/* DSGVO-Scanner · Website. Stil wie die Erweiterung. Lightness zwischen 5 % und 95 % (Ausnahme: CTA-Hintergrund #FFFFFF, aus dem Design übernommen). */

/* Roboto lokal (SIL OFL 1.1), beim Build aus @fontsource-variable/roboto kopiert */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/roboto-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/roboto-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Farbschema: folgt dem System. Der Sonne/Mond-Schalter im Footer kehrt es um (reines CSS, kein JavaScript, nichts wird gespeichert). */
:root {
  color-scheme: light dark;
  --canvas: light-dark(hsl(214 20% 92%), hsl(216 22% 7%));
  --surface: light-dark(hsl(214 28% 95%), hsl(216 18% 10%));
  --surface-subtle: light-dark(hsl(214 22% 93%), hsl(216 16% 12.5%));
  --border: light-dark(hsl(214 14% 82%), hsl(216 12% 22%));
  --border-muted: light-dark(hsl(214 15% 87%), hsl(216 12% 17%));
  --heading: light-dark(hsl(216 30% 10%), hsl(214 30% 90%));
  --text: light-dark(hsl(216 18% 18%), hsl(214 16% 82%));
  --muted: light-dark(hsl(216 9% 40%), hsl(214 9% 60%));
  --accent: light-dark(hsl(242 52% 32%), hsl(244 52% 58%));
  --accent-hover: light-dark(hsl(242 52% 26%), hsl(244 52% 64%));
  --accent-subtle: light-dark(hsl(242 40% 90%), hsl(244 30% 16%));
  --on-accent: light-dark(hsl(242 40% 95%), hsl(244 40% 95%));
  --focus: light-dark(hsl(242 60% 45% / 0.3), hsl(244 60% 65% / 0.35));
  --cta-bg: light-dark(#FFFFFF, hsl(216 22% 5%));
  --pv-canvas: light-dark(hsl(214 20% 91%), hsl(216 22% 7%));
  --pv-surface: light-dark(hsl(214 28% 95%), hsl(216 18% 10%));
  --pv-surface-subtle: light-dark(hsl(214 22% 93%), hsl(216 16% 12.5%));
  --pv-surface-hover: light-dark(hsl(214 20% 90.5%), hsl(216 15% 15%));
  --pv-border: light-dark(hsl(214 14% 81%), hsl(216 12% 22%));
  --pv-border-muted: light-dark(hsl(214 15% 87%), hsl(216 12% 17%));
  --pv-heading: light-dark(hsl(216 30% 10%), hsl(214 30% 90%));
  --pv-text: light-dark(hsl(216 18% 18%), hsl(214 16% 82%));
  --pv-muted: light-dark(hsl(216 9% 41%), hsl(214 9% 60%));
  --pv-faint: light-dark(hsl(216 8% 58%), hsl(214 8% 45%));
  --pv-accent: light-dark(hsl(242 52% 32%), hsl(244 52% 58%));
  --pv-accent-border: light-dark(hsl(242 52% 22% / 0.7), hsl(244 50% 66% / 0.5));
  --pv-on-accent: light-dark(hsl(242 40% 95%), hsl(244 40% 95%));
  --pv-logo-check: light-dark(hsl(242 40% 94%), hsl(216 18% 10%));
  --pv-critical: light-dark(hsl(356 62% 44%), hsl(356 75% 67%));
  --pv-warning: light-dark(hsl(30 82% 36%), hsl(38 80% 60%));
  --pv-warning-subtle: light-dark(hsl(40 85% 90%), hsl(38 40% 12%));
  --pv-warning-border: light-dark(hsl(38 60% 72%), hsl(38 40% 28%));
  --pv-info: light-dark(hsl(212 62% 42%), hsl(212 75% 68%));
  --pv-ok: light-dark(hsl(145 48% 29%), hsl(145 45% 56%));
  --pv-donate: hsl(357 78% 76%);
  --pv-donate-border: hsl(357 55% 66%);
  --pv-on-donate: hsl(357 50% 15%);
  --pv-stat-bg: light-dark(hsl(214 12% 90%), hsl(216 8% 14%));
  --pv-btn-bg: light-dark(hsl(214 24% 93.5%), hsl(216 15% 14%));
  --pv-btn-border: light-dark(hsl(214 14% 78%), hsl(216 12% 25%));
  --shadow-sm: 0 1px 1px light-dark(hsl(216 30% 10% / 0.04), transparent), 0 1px 3px light-dark(hsl(216 30% 10% / 0.06), hsl(216 30% 5% / 0.5));
  --shadow-lg: 0 2px 4px light-dark(hsl(216 30% 10% / 0.04), transparent), 0 12px 32px light-dark(hsl(216 30% 10% / 0.10), hsl(216 30% 4% / 0.6));
  --pv-shadow-xs: 0 1px 0 light-dark(hsl(216 30% 10% / 0.04), transparent);
  --pv-shadow-sm: 0 1px 1px light-dark(hsl(216 30% 10% / 0.04), transparent), 0 1px 3px light-dark(hsl(216 30% 10% / 0.06), hsl(216 30% 5% / 0.5));
}
@media (prefers-color-scheme: dark) { :root:has(#theme-toggle:checked) { color-scheme: light; } }
@media (prefers-color-scheme: light) { :root:has(#theme-toggle:checked) { color-scheme: dark; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 16px/1.6 "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--heading); margin: 0; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus); border-radius: var(--radius); }
:root { --radius: 6px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Header: bleibt beim Scrollen oben */
.top { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--border); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; color: var(--heading); font-size: 15px; }
.brand svg { width: 32px; height: 32px; color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); border: 1px solid transparent;
  font-weight: 500; font-size: 15px; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: background-color .15s;
}
.btn:hover { background: var(--accent-hover); }
.btn-sm { padding: 0 16px; font-size: 14px; }

/* Abschnitte */
section { padding: 88px 0; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
h2 { font-size: 32px; font-weight: 650; }
.lead { font-size: 18px; color: var(--muted); margin-top: 16px; }

/* Hero */
.hero { padding: 50px 0 65px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 52px; font-weight: 700; letter-spacing: -0.025em; }
.hero .lead { max-width: 34ch; }
.hero .actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 32px; }
.hero .note { font-size: 14px; color: var(--muted); }
.shot {
  justify-self: center; width: 378px; height: 531px; overflow: hidden;
  border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-lg); background: var(--surface);
}
.shot .popup { transform: scale(0.9); transform-origin: 0 0; pointer-events: none; user-select: none; }

/* Karten */
.section-alt { background: var(--surface); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.section-alt .card { background: var(--surface-subtle); border-color: var(--border-muted); box-shadow: none; }
.card .icon {
  width: 36px; height: 36px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--accent-subtle); color: var(--accent); margin-bottom: 16px;
}
.card .icon svg { width: 18px; height: 18px; }
.card h3 { font-size: 17px; font-weight: 600; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* CTA */
.cta { padding: 0 0 88px; background: var(--cta-bg); }
.cta .box { text-align: center; padding: 64px 24px; }
.cta-img {
  display: block; width: 100%; max-width: 760px; height: auto; margin: 0 auto 40px;
  border-radius: 15px; box-shadow: 0 2px 8px light-dark(hsl(216 30% 10% / 0.2), hsl(216 30% 3% / 0.6));
}
.cta .lead { margin: 12px auto 28px; }

/* Footer */
.bottom { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.bottom .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.bottom .left { display: flex; align-items: center; gap: 12px; }
.bottom nav { display: flex; gap: 20px; }
.bottom a { text-decoration: none; }
.bottom a:hover { color: var(--heading); }

/* Sonne/Mond-Schalter: Checkbox mit Label, ohne JavaScript */
.theme-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer;
  transition: color .15s, background-color .15s;
}
.theme-toggle:hover { color: var(--heading); background: var(--surface-subtle); }
.theme-input:focus-visible + .theme-toggle { box-shadow: 0 0 0 3px var(--focus); }
.theme-toggle svg { grid-area: 1 / 1; width: 18px; height: 18px; }
.theme-toggle .sun { color: light-dark(transparent, currentColor); }
.theme-toggle .moon { color: light-dark(currentColor, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Rechtstexte */
.legal { padding: 64px 0 88px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 36px; font-weight: 700; }
.legal .stand { color: var(--muted); margin-top: 8px; font-size: 14px; }
.legal h2 { font-size: 22px; font-weight: 650; margin-top: 48px; }
.legal h3 { font-size: 17px; font-weight: 600; margin-top: 28px; }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal li { margin-top: 6px; }
.legal address { font-style: normal; margin-top: 12px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border-muted); }
.legal th { color: var(--heading); background: var(--surface-subtle); font-weight: 600; }
.legal code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; }

/* ---------- Popup-Vorschau (statische Kopie der Erweiterung, 420 × 590) ---------- */
.popup {
  width: 420px; height: 590px; display: flex; flex-direction: column;
  background: var(--pv-canvas); color: var(--pv-text);
  font: 400 13px/1.5 "Roboto", ui-sans-serif, system-ui, sans-serif; letter-spacing: normal;
}
.popup p { margin: 0; }
.pv-muted { color: var(--pv-muted); }
.pv-small { font-size: 12px; }
.pv-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 52px; padding: 0 14px; flex: none;
  background: var(--pv-surface); border-bottom: 1px solid var(--pv-border);
}
.pv-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pv-logo { width: 24px; height: 24px; color: var(--pv-accent); flex: none; }
.pv-brand-text { min-width: 0; line-height: 1.25; }
.pv-title { font-size: 13px; font-weight: 600; color: var(--pv-heading); letter-spacing: -0.006em; }
.pv-site { font-size: 12px; color: var(--pv-muted); white-space: nowrap; }
.pv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 30px; padding: 0 12px; font-size: 12.5px; font-weight: 500; color: var(--pv-heading);
  background: var(--pv-btn-bg); border: 1px solid var(--pv-btn-border); border-radius: 6px;
  box-shadow: var(--pv-shadow-xs); white-space: nowrap;
}
.pv-btn svg { width: 14px; height: 14px; flex: none; color: var(--pv-muted); }
.pv-btn-sm { height: 26px; padding: 0 9px; font-size: 12px; }
.pv-btn-primary { background: var(--pv-accent); border-color: var(--pv-accent-border); color: var(--pv-on-accent); }
.pv-donate { margin-left: auto; background: var(--pv-donate); border-color: var(--pv-donate-border); color: var(--pv-on-donate); font-weight: 600; }
.pv-donate svg { width: 15px; height: 15px; color: var(--pv-on-donate); }
.pv-main { flex: 1; overflow: hidden; padding: 14px; }
.pv-box { background: var(--pv-surface); border: 1px solid var(--pv-border); border-radius: 6px; box-shadow: var(--pv-shadow-sm); overflow: hidden; }
.pv-box + .pv-flash, .pv-flash + .pv-actions { margin-top: 10px; }
.pv-box-header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px; background: var(--pv-surface-subtle); border-bottom: 1px solid var(--pv-border-muted);
  font-size: 12px; font-weight: 600; color: var(--pv-heading);
}
.pv-counter {
  display: inline-block; min-width: 20px; padding: 0 6px; text-align: center;
  font-size: 11px; font-weight: 500; line-height: 18px; color: var(--pv-muted);
  background: var(--pv-surface-hover); border: 1px solid var(--pv-border-muted); border-radius: 4px;
}
.pv-summary-head { display: flex; align-items: center; gap: 14px; padding: 14px; }
.pv-ring { position: relative; width: 60px; height: 60px; flex: none; }
.pv-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pv-ring circle { fill: none; stroke-width: 5; }
.pv-ring-bg { stroke: var(--pv-border-muted); }
.pv-ring-fg { stroke: var(--pv-critical); stroke-linecap: round; stroke-dasharray: 11.8752 169.646; }
.pv-ring-num { position: absolute; inset: 0; display: grid; place-content: center; }
.pv-ring-num span { font-size: 18px; font-weight: 650; color: var(--pv-heading); letter-spacing: -0.02em; }
.pv-eyebrow { font-size: 11px; font-weight: 500; color: var(--pv-muted); text-transform: uppercase; letter-spacing: .05em; }
.pv-grade { font-size: 16px; font-weight: 600; color: var(--pv-heading); letter-spacing: -0.01em; line-height: 1.3; }
.pv-stats { display: flex; gap: 6px; padding: 0 14px 14px; }
.pv-stat { flex: 1 1 0; min-width: 0; padding: 7px 8px; background: var(--pv-stat-bg); border: 1px solid var(--pv-border-muted); border-radius: 6px; }
.pv-stat-num { font-size: 18px; font-weight: 600; color: var(--pv-heading); line-height: 1.3; }
.pv-stat-label { font-size: 11px; font-weight: 600; color: var(--c); white-space: nowrap; letter-spacing: .01em; }
.pv-stat.pv-critical { --c: var(--pv-critical); }
.pv-stat.pv-warning { --c: var(--pv-warning); }
.pv-stat.pv-info { --c: var(--pv-info); }
.pv-stat.pv-ok { --c: var(--pv-ok); }
.pv-flash {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px;
  border: 1px solid var(--pv-warning-border); border-radius: 6px; background: var(--pv-warning-subtle); color: var(--pv-text);
}
.pv-flash-icon { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--pv-warning); }
.pv-flash-title { font-size: 12.5px; font-weight: 600; color: var(--pv-heading); margin-bottom: 1px; }
.pv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv-tabs { display: flex; justify-content: space-between; margin: 16px 0 10px; border-bottom: 1px solid var(--pv-border); }
.pv-tab {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 6px 8px; font-size: 12px; font-weight: 500; color: var(--pv-muted); white-space: nowrap;
}
.pv-tab.pv-active { color: var(--pv-heading); font-weight: 600; }
.pv-tab.pv-active::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: -1px; height: 2px;
  background: var(--pv-accent); border-radius: 2px 2px 0 0;
}
.pv-tab .pv-counter { min-width: 18px; padding: 0 5px; line-height: 16px; }
.pv-findings { display: flex; flex-direction: column; gap: 10px; }
.pv-sev-head { display: flex; align-items: center; gap: 6px; }
.pv-sev-head svg { width: 14px; height: 14px; }
.pv-sev-name { color: var(--pv-heading); }
.pv-finding summary { list-style: none; display: flex; align-items: flex-start; gap: 9px; padding: 9px 12px; color: var(--pv-heading); font-weight: 500; }
.pv-finding summary::-webkit-details-marker { display: none; }
.pv-t { flex: 1; line-height: 1.4; }
.pv-sev-icon { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.pv-sev-critical { color: var(--pv-critical); }
.pv-label {
  flex: none; font-size: 11px; font-weight: 500; line-height: 18px; padding: 0 6px;
  color: var(--pv-muted); background: var(--pv-surface-subtle); border: 1px solid var(--pv-border-muted); border-radius: 4px;
}
.pv-chev { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--pv-faint); transform: rotate(90deg); }
.pv-body { padding: 0 12px 12px 37px; display: flex; flex-direction: column; gap: 8px; color: var(--pv-text); }
.pv-callout { padding: 7px 10px; background: var(--pv-surface-subtle); border: 1px solid var(--pv-border-muted); border-left: 2px solid var(--pv-accent); border-radius: 4px; }
.pv-callout strong { color: var(--pv-heading); font-weight: 600; }
.pv-law { font-size: 11.5px; color: var(--pv-muted); }
.pv-bottom { flex: none; padding: 10px 14px 8px; background: var(--pv-surface); border-top: 1px solid var(--pv-border); }
.pv-export { display: flex; gap: 6px; align-items: center; }
.pv-disclaimer { margin-top: 7px; font-size: 11px; color: var(--pv-faint); text-align: center; }

/* Responsiv */
@media (max-width: 420px) {
  .shot { width: 336px; height: 472px; }
  .shot .popup { transform: scale(0.8); }
}
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 38px; }
  h2 { font-size: 26px; }
  .grid { grid-template-columns: 1fr; }
  .cta { padding: 0 0 64px; }
  .cta .box { padding: 48px 0; }
  .cta-img { margin-bottom: 32px; border-radius: 10px; }
}
