/* SEO-Check im fourplex-Designsystem (fourplex.de-v2/DESIGN.md).
   Tokens 1:1 aus app/assets/styles/index.css übernommen. */

@font-face { font-family: 'Buvera'; src: url('fonts/Buvera-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Buvera'; src: url('fonts/Buvera-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Buvera'; src: url('fonts/Buvera-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Buvera'; src: url('fonts/Buvera-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Buvera'; src: url('fonts/Buvera-Black.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Aeion Mono'; src: url('fonts/AeionMono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --color-light: #ffffff;
  --color-dark: #1f2425;
  --color-blue: #009dc5;
  --color-purple: #78368c;
  --color-marker: #d1d7da;
  --color-deep: #14181a;
  --color-surface: #353a3b;
  --color-line: #474b4c;
  --color-error: #dc2626;
  --gradient-brand: linear-gradient(95deg, var(--color-blue) 0%, var(--color-purple) 100%);

  --font-primary: 'Buvera', system-ui, sans-serif;
  --font-secondary: 'Aeion Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --text-sm: clamp(0.875rem, 0.85rem + 0.125vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.5rem);
  --text-md: clamp(1.125rem, 0.975rem + 0.75vw, 1.6rem);
  --text-lg: clamp(1.5rem, 1.3rem + 1vw, 2.5rem);
  --text-xl: clamp(1.875rem, 1.5rem + 1.875vw, 3.75rem);
  --text-4xl: clamp(2.25rem, 1.222rem + 4.219vw, 5.9375rem);

  --radius-xs: 0.25rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-base: 1.25rem;

  --gap-sm: 0.5rem;
  --gap-md: 0.75rem;
  --gap-lg: 1rem;
  --gap-xl: 1.5rem;
  --gap-2xl: 2rem;

  --boxed: 1700px;
  --bar-clear: 4rem;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-float: 0 25px 50px -12px rgb(20 24 26 / 0.65);
  --card-fill: color-mix(in srgb, var(--color-light) 3%, var(--color-dark));
  --card-border: color-mix(in srgb, var(--color-light) 12%, transparent);
  color-scheme: dark;
}

@media (min-width: 48rem) {
  :root { --bar-clear: 6.25rem; }
}

@media (min-width: 64rem) {
  :root {
    --gap-sm: 1rem;
    --gap-md: 1.5rem;
    --gap-lg: 2rem;
    --gap-xl: 3rem;
    --gap-2xl: 4rem;
  }
}

/* ---------- Basis */

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  /* Sprungziele und fokussierte Elemente nicht unter dem fixierten Header verstecken */
  scroll-padding-top: calc(var(--bar-clear) + 1rem);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-dark);
  color: var(--color-light);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
}

p { margin: 0; }

a { color: var(--color-blue); text-decoration: none; touch-action: manipulation; }

@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration: underline; }
}

:focus-visible { outline: 2px solid var(--color-light); outline-offset: 3px; }

button, summary, [role='button'] { touch-action: manipulation; user-select: none; -webkit-user-select: none; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 90;
  padding: 0.5rem 1rem; border-radius: 9999px; background: var(--color-blue); color: var(--color-light);
}
.skip:focus { top: 1rem; }

@media (max-width: 23.75rem) {
  html, * { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 6 3 3; }
}

/* ---------- Container: Rahmen sitzen auf der Containerkante, Text auf der Inhaltskante */

.wrap {
  width: calc(100% - 1.5rem);
  max-width: var(--boxed);
  margin-inline: auto;
}

@media (min-width: 48rem) {
  .wrap { width: calc(100% - 4rem); }
}

.edge { padding-inline: 1rem; }
@media (min-width: 48rem) { .edge { padding-inline: 0; } }
@media (min-width: 64rem) { .edge { padding-inline: 3rem; } }

/* ---------- Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid transparent; border-radius: 9999px;
  background: transparent; color: var(--color-light);
  font: 500 var(--text-base) / 1.6 var(--font-primary);
  white-space: nowrap; cursor: pointer; text-decoration: none !important;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, scale 160ms var(--ease);
}
.btn:active { scale: 0.97; }
.btn svg { width: 1em; height: 1em; flex: none; }
.btn:disabled { opacity: 0.55; cursor: progress; }

.btn-primary { background: var(--color-blue); }
.btn-outline { border-color: var(--color-light); }
.btn-base { background: var(--color-surface); }
.btn-sm { padding: 0.375rem 1.125rem; font-size: var(--text-sm); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--color-purple); }
  .btn-outline:hover { background: var(--color-blue); border-color: var(--color-blue); }
  .btn-base:hover { background: var(--color-line); }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease; }
  .btn:active { scale: 1; }
}

/* Pillen-Chips: Filter, Tabs, zuletzt geprüft, Technik */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--color-line); border-radius: 9999px;
  background: transparent; color: var(--color-light);
  font: 400 0.75rem / 1.3 var(--font-secondary);
  letter-spacing: 0.06em; text-transform: uppercase;
}
button.chip { cursor: pointer; transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
button.chip[aria-pressed='true'] { background: var(--color-blue); border-color: var(--color-blue); }
.chip .count { color: var(--color-marker); }
button.chip[aria-pressed='true'] .count { color: var(--color-light); }

@media (hover: hover) and (pointer: fine) {
  button.chip:hover { border-color: var(--color-blue); }
}

/* ---------- Header */

.bar { position: fixed; inset: 0 0 auto; z-index: 70; }

.bar-scrim {
  position: absolute; inset: 0 0 auto; height: 20vh; min-height: 8rem; pointer-events: none;
  background: linear-gradient(180deg,
    var(--color-dark) 0%,
    color-mix(in srgb, var(--color-dark) 82%, transparent) 22%,
    color-mix(in srgb, var(--color-dark) 55%, transparent) 45%,
    color-mix(in srgb, var(--color-dark) 26%, transparent) 68%,
    color-mix(in srgb, var(--color-dark) 8%, transparent) 85%,
    transparent 100%);
}

.bar-row {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1rem;
}
@media (max-width: 47.9375rem) { .bar-row { padding-inline: 1rem; } }
@media (min-width: 48rem) { .bar-row { padding-block: 1.5rem; } }

.logo { display: block; padding-block: 0.375rem; margin-block: -0.375rem; }
.logo img { display: block; width: auto; height: 2rem; }
@media (min-width: 64rem) { .logo img { height: 2.5rem; } }

@media (max-width: 47.9375rem) { .bar-cta { display: none; } }

/* ---------- Hero */

.hero { padding-top: calc(var(--bar-clear) + 2.5rem); padding-bottom: 3.5rem; }
@media (min-width: 64rem) { .hero { padding-top: calc(var(--bar-clear) + 4.5rem); padding-bottom: 6rem; } }

.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 64rem) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

.hero-title { font-size: var(--text-4xl); line-height: 1.05; letter-spacing: 0.025em; }
.nowrap { white-space: nowrap; }

/* Die zweite Zeile ist die „Antwort“: hohl gezeichnet, eigene Zeile, ca. 0.72em */
.outline {
  display: block;
  margin-top: 0.12em;
  font-size: 0.72em;
  font-weight: 800;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px currentColor;
  paint-order: stroke fill;
}
@supports not (-webkit-text-stroke: 1px currentColor) {
  .outline { -webkit-text-fill-color: currentColor; }
}

.lead { max-width: 40rem; margin-top: 1.5rem; color: var(--color-marker); font-size: var(--text-md); line-height: 1.5; }

.search { display: flex; flex-direction: column; gap: 1rem; max-width: 46rem; margin-top: 2.5rem; }
@media (min-width: 48rem) { .search { flex-direction: row; } }

.field {
  flex: 1; min-width: 0; min-height: 3.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--color-light) 18%, transparent);
  border-radius: 9999px;
  background: color-mix(in srgb, var(--color-light) 4%, transparent);
  color: var(--color-light);
  font: 400 var(--text-base) / 1.4 var(--font-primary);
  outline: 2px solid transparent;
  transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}
.field::placeholder { color: color-mix(in srgb, var(--color-light) 40%, transparent); }
.field:focus, .field:focus-visible {
  border-color: var(--color-blue);
  background: color-mix(in srgb, var(--color-light) 6%, transparent);
  box-shadow: 0 0 0 3px rgb(0 157 197 / 0.16);
}
.field[aria-invalid='true'] { border-color: var(--color-error); background: color-mix(in srgb, var(--color-error) 8%, transparent); }
.field[aria-invalid='true']::placeholder { color: color-mix(in srgb, var(--color-error) 70%, var(--color-light)); }

@media (hover: hover) and (pointer: fine) {
  .field:hover:not(:focus) { border-color: color-mix(in srgb, var(--color-light) 30%, transparent); }
}

.search .btn { min-height: 3.5rem; flex: none; }
@media (min-width: 48rem) { .search .btn { min-width: 12rem; } }

.option { display: inline-flex; align-items: flex-start; gap: 0.75rem; margin-top: 1.25rem; color: var(--color-marker); font-size: var(--text-sm); cursor: pointer; }
.option input { flex: none; width: 1.125rem; height: 1.125rem; margin: 0.2em 0 0; accent-color: var(--color-blue); cursor: pointer; }

.recent { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1.5rem; }
.recent-label { margin-right: 0.25rem; color: var(--color-marker); font-size: var(--text-sm); }
.recent .chip { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Pixel-Website, die im Hero abgescannt wird */
.scan { display: none; }
@media (min-width: 64rem) {
  .scan {
    --cycle: 6.5s;
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    gap: clamp(3px, 0.35vw, 6px);
    width: 100%;
    max-width: 34rem;
    justify-self: end;
  }
}
.px { position: relative; aspect-ratio: 1; border-radius: 2px; background: color-mix(in srgb, var(--color-line) 14%, transparent); }
.px.w { background: var(--color-line); }
/* Der Scan läuft im Ruhezustand zweimal und steht dann still, beim Analysieren durchgehend */
.px.w::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: var(--color-blue); opacity: 0;
  animation: px-scan var(--cycle) linear 2;
  animation-delay: calc(var(--r) * 75ms + 0.6s);
}
/* Eigener Name, damit die Animation neu startet, auch wenn der Ruhe-Scan schon fertig ist */
.scan.is-busy .px.w::after { animation: px-scan-busy 1.6s linear infinite; animation-delay: calc(var(--r) * 75ms); }
.px.b { background: var(--color-blue); }

@keyframes px-scan {
  0%, 14%, 100% { opacity: 0; }
  4% { opacity: 1; }
}
@keyframes px-scan-busy {
  0%, 14%, 100% { opacity: 0; }
  4% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .px.w::after, .scan.is-busy .px.w::after { animation: none; }
}

/* ---------- Abschnitte */

.section { padding-block: 3.5rem; }
@media (min-width: 64rem) { .section { padding-block: 6rem; } }

.section-title { font-size: var(--text-xl); line-height: 1.15; letter-spacing: 0.02em; }

/* Karten: Feature-Card aus DESIGN.md */
.card {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-fill);
}
@media (min-width: 64rem) { .card { padding: 1.75rem; } }

.card-title { font-size: var(--text-md); line-height: 1.25; letter-spacing: 0.01em; }

/* Hervorgehobene Karte: 2px-Rahmen im Markenverlauf (laut DESIGN.md erlaubt) */
.card-highlight {
  border: 2px solid transparent;
  background: linear-gradient(var(--card-fill), var(--card-fill)) padding-box, var(--gradient-brand) border-box;
}
.cards .card-wide { grid-column: 1 / -1; }
.cat-note { margin-top: 0.6rem; color: var(--color-marker); font-size: var(--text-sm); max-width: 72ch; }
/* .scale (weiter unten) setzt margin: 0 – deshalb mit beiden Klassen */
.scale.geo-groups { margin-top: 1.25rem; max-width: 36rem; }

/* Bühne: vertiefte Fläche für Abläufe und Messungen */
.stage {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-base);
  background: var(--color-deep);
}
@media (min-width: 64rem) { .stage { padding: 2.5rem; } }

.cards { display: grid; gap: var(--gap-md); margin-top: var(--gap-xl); }
@media (min-width: 48rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 80rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cards .card p { margin-top: 0.75rem; color: var(--color-marker); font-size: var(--text-sm); line-height: 1.55; }

/* ---------- Ladeablauf (Flow-Demo) */

.loading { padding-block: 1rem 3.5rem; }

.flow-label { font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-marker); overflow-wrap: anywhere; }
.flow-label b { color: var(--color-blue); font-weight: 500; }

.flow {
  --progress: 0;
  position: relative;
  display: flex; justify-content: space-between;
  margin: 1.75rem 0 0; padding: 0; list-style: none;
}
.flow::before, .flow::after {
  content: ''; position: absolute; left: 0; top: 50%; height: 2px; translate: 0 -50%;
}
.flow::before { right: 0; background: var(--color-line); }
.flow::after { right: 0; background: var(--color-blue); transform: scaleX(var(--progress)); transform-origin: left center; transition: transform 500ms var(--ease); }

.flow-step {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 2rem; height: 2rem;
  border: 1px solid var(--color-line); border-radius: var(--radius-xs);
  background: var(--color-deep);
  color: var(--color-marker);
  font: 400 0.7rem / 1 var(--font-secondary);
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, scale 200ms var(--ease);
}
@media (min-width: 48rem) { .flow-step { width: 2.5rem; height: 2.5rem; font-size: 0.8rem; } }
.flow-step.is-done { border-color: var(--color-blue); color: var(--color-light); }
.flow-step.is-active { border-color: var(--color-blue); background: var(--color-blue); color: var(--color-light); scale: 1.15; }

.flow-now { margin-top: 1.5rem; font-size: var(--text-md); font-weight: 600; }
.flow-hint { margin-top: 0.25rem; color: var(--color-marker); font-size: var(--text-sm); }

@media (prefers-reduced-motion: reduce) {
  .flow::after, .flow-step { transition: none; }
  .flow-step.is-active { scale: 1; }
}

.stage-error { border-color: var(--color-error); }
.stage-error .card-title { color: var(--color-light); }
.stage-error p { margin-top: 0.75rem; color: var(--color-marker); max-width: 60ch; }
.stage-error p.msg { color: var(--color-light); font-size: var(--text-md); }

/* ---------- Ergebnis */

.report { padding-block: 1rem 4rem; scroll-margin-top: var(--bar-clear); }
@media (min-width: 64rem) { .report { padding-bottom: 6rem; } }

.report-title { font-size: var(--text-4xl); line-height: 1.05; letter-spacing: 0.025em; }
.report-title .outline { overflow-wrap: anywhere; }

.report-grid { display: grid; gap: var(--gap-md); margin-top: var(--gap-xl); align-items: start; }
@media (min-width: 64rem) {
  .report-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .aside { grid-column: span 5; align-self: stretch; }
  .main { grid-column: span 7; }
}
@media (min-width: 80rem) {
  .aside { grid-column: span 4; }
  .main { grid-column: span 8; }
}

.main { display: grid; gap: var(--gap-md); min-width: 0; }

@media (min-width: 64rem) {
  .aside .card {
    position: sticky;
    top: calc(var(--bar-clear) + 0.5rem);
    max-height: calc(100dvh - var(--bar-clear) - 1.5rem);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-line) transparent;
  }
}

.aside-block + .aside-block { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-line); }

/* Score als Pixelfeld: so viele Zellen leuchten, wie es Punkte gibt */
.score { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.5rem; }
.score-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; width: 9.5rem; flex: none; }
@media (min-width: 80rem) { .score-grid { width: 11rem; gap: 4px; } }
.cell { aspect-ratio: 1; border-radius: 2px; background: var(--color-line); }
.cell.on { background: var(--color-blue); animation: cell-on 240ms var(--ease) both; animation-delay: calc(var(--i) * 7ms); }
@keyframes cell-on { from { opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) { .cell.on { animation: none; } }

.score-num { font-size: var(--text-xl); font-weight: 900; line-height: 1; }
.score-num span { font-size: 0.5em; font-weight: 800; }
.score-word { margin-top: 0.35rem; font-size: var(--text-md); font-weight: 600; }
.score-label { margin-top: 0.15rem; color: var(--color-marker); font-size: var(--text-sm); }

/* Begrenzter Score: kurzer Grund mit rotem Rand, damit niemand die Zahl ohne Erklärung liest */
.score-cap { margin-top: 1rem; padding-left: 0.75rem; border-left: 2px solid var(--color-error); color: var(--color-light); font-size: var(--text-sm); line-height: 1.5; max-width: 72ch; }
.cat-head + .score-cap { margin-top: 0.75rem; }
.scale-note { margin-top: 1.25rem; color: var(--color-marker); font-size: var(--text-sm); line-height: 1.5; }
.check-tag { margin-left: 0.4rem; color: var(--color-marker); font: 400 0.6875rem / 1 var(--font-secondary); letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 0.1em; }

/* SEO- und GEO-Score gleichwertig nebeneinander */
.scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.score-col { display: block; min-width: 0; color: var(--color-light); text-decoration: none !important; }
.score-col > span { display: block; }
.score-col .score-grid { display: grid; width: 100%; max-width: 8.5rem; gap: 3px; }
.score-col .score-num { margin-top: 1rem; }
@media (hover: hover) and (pointer: fine) {
  a.score-col:hover .score-label { color: var(--color-blue); }
}

.site { margin-top: 1.25rem; }
.site a { color: var(--color-light); font-weight: 600; overflow-wrap: anywhere; }
.site p { color: var(--color-marker); font-size: var(--text-sm); }

/* Kategorien als Skala */
.scale { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.scale a { display: block; color: var(--color-light); text-decoration: none !important; }
.scale-top { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--text-sm); font-weight: 500; }
.scale-num { color: var(--color-marker); font-family: var(--font-secondary); letter-spacing: 0.06em; }
.scale-track { display: block; position: relative; height: 2px; margin-top: 0.45rem; background: var(--color-line); }
.scale-fill {
  position: absolute; inset: 0 auto 0 0;
  width: calc(var(--v) * 1%);
  background: var(--gradient-brand);
  background-size: calc(10000% / max(var(--v), 1)) 100%;
}
@media (hover: hover) and (pointer: fine) {
  .scale a:hover .scale-name { color: var(--color-blue); }
}

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; margin: 1.25rem 0 0; }
@media (min-width: 48rem) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts-chips { margin-top: 1.5rem; }
.stats dt { color: var(--color-marker); font-size: var(--text-sm); }
.stats dd { margin: 0; font-size: var(--text-md); font-weight: 600; line-height: 1.3; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Filterleiste */
.toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.toolbar-label { margin-right: 0.25rem; color: var(--color-marker); font-size: var(--text-sm); }

/* Statuszellen: eckig wie alle Daten im System */
.st {
  display: inline-grid; place-items: center; flex: none;
  width: 1.375rem; height: 1.375rem;
  border: 1px solid; border-radius: var(--radius-xs);
}
.st svg { width: 0.875rem; height: 0.875rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.st.good { border-color: var(--color-blue); color: var(--color-blue); }
.st.warn { border-color: var(--color-light); color: var(--color-light); }
.st.bad { border-color: var(--color-error); background: var(--color-error); color: var(--color-light); }
.st.info { border-color: var(--color-line); color: var(--color-marker); }

/* To-dos */
.todos { margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: todo; }
.todos li { border-top: 1px solid var(--color-line); }
.todos a {
  display: grid; grid-template-columns: 2rem auto minmax(0, 1fr); gap: 0.25rem 0.875rem; align-items: start;
  padding: 0.9rem 0; color: var(--color-light); text-decoration: none !important;
}
.todo-rank { padding-top: 0.15rem; color: var(--color-marker); font: 400 0.8rem / 1.6 var(--font-secondary); letter-spacing: 0.06em; }
.todo-title { font-weight: 600; line-height: 1.4; transition: color 200ms ease; }
.todo-cat { display: block; color: var(--color-marker); font-size: var(--text-sm); font-weight: 500; }
.todo-msg { grid-column: 3; color: var(--color-marker); font-size: var(--text-sm); line-height: 1.55; max-width: 72ch; }
.todo-tags { grid-column: 3; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.35rem; }
.todo-tags .chip { padding: 0.15rem 0.6rem; font-size: 0.65rem; color: var(--color-marker); }
/* Quick Win = sofort umsetzbar, daher das eine Blau */
.todo-tags .chip-on { border-color: var(--color-blue); background: var(--color-blue); color: var(--color-light); }
@media (hover: hover) and (pointer: fine) {
  .todos a:hover .todo-title { color: var(--color-blue); }
}

/* Google-Vorschau im Browserrahmen */
.device {
  margin-top: 1.25rem; overflow: hidden;
  border: 1px solid var(--color-line); border-radius: var(--radius-lg);
  background: var(--color-deep);
  box-shadow: var(--shadow-float);
}
.device-bar { display: flex; align-items: center; gap: 1rem; padding: 0.7rem 1rem; }
.device-dots { display: flex; gap: 0.4rem; flex: none; }
.device-dots i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--color-line); }
.device-url {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 0.2rem 0.9rem; border: 1px solid var(--color-line); border-radius: 9999px;
  color: var(--color-marker); font-size: 0.8rem;
}
.device-screen { padding: 1.25rem 1.25rem 1.5rem; background: #fff; }
@media (min-width: 48rem) { .device-screen { padding: 1.5rem 2rem 1.75rem; } }

.serp { max-width: 600px; font-family: Arial, sans-serif; color: #202124; }
.serp-site { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.4rem; }
.serp-fav { display: grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; overflow: hidden; border: 1px solid #dadce0; border-radius: 50%; background: #f1f3f4; }
.serp-fav img { width: 1.1rem; height: 1.1rem; }
.serp-name { display: block; font-size: 14px; line-height: 1.3; color: #202124; }
.serp-crumb { display: block; font-size: 12px; line-height: 1.3; color: #4d5156; overflow-wrap: anywhere; }
.serp-title { margin: 0 0 0.25rem; font: 400 20px / 1.3 Arial, sans-serif; color: #1a0dab; overflow-wrap: anywhere; text-transform: none; }
.serp-desc { font-size: 14px; line-height: 1.58; color: #474747; overflow-wrap: anywhere; }

.notes { margin: 1.25rem 0 0; padding-left: 1.1rem; color: var(--color-marker); font-size: var(--text-sm); }
.notes li + li { margin-top: 0.25rem; }

/* Kategorie-Karten mit Prüfpunkten */
.cat-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; }
.cat-score { display: inline-flex; align-items: center; gap: 0.75rem; }
.cat-score .scale-num { font-size: var(--text-sm); }
.mini { display: grid; grid-template-columns: repeat(10, 0.45rem); gap: 2px; }
.mini .cell { border-radius: 1px; }

.checks { margin: 1rem 0 0; padding: 0; list-style: none; }
.check { border-top: 1px solid var(--color-line); }
.check-row, .check summary {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.875rem; align-items: start;
  padding: 0.9rem 0;
}
.check summary { cursor: pointer; list-style: none; }
.check summary::-webkit-details-marker { display: none; }
.check-title { display: block; font-weight: 600; line-height: 1.4; transition: color 200ms ease; }
.check-msg { display: block; margin-top: 0.2rem; color: var(--color-marker); font-size: var(--text-sm); line-height: 1.55; max-width: 72ch; }
.chev { width: 1.25rem; height: 1.25rem; margin-top: 0.1rem; color: var(--color-marker); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: rotate 200ms var(--ease); }
details[open] .chev { rotate: 180deg; }
@media (hover: hover) and (pointer: fine) {
  .check summary:hover .check-title { color: var(--color-blue); }
  .check summary:hover .chev { color: var(--color-light); }
}
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }

.details { min-width: 0; padding: 0 0 1.25rem 2.25rem; color: var(--color-marker); font-size: var(--text-sm); line-height: 1.55; }
.details ul { margin: 0; padding-left: 1.1rem; }
.details li { margin: 0.15rem 0; overflow-wrap: anywhere; }
.details blockquote { margin: 0; padding: 0.75rem 1rem; border-radius: var(--radius-md); background: var(--color-deep); color: var(--color-light); overflow-wrap: anywhere; }
.details dl { display: grid; grid-template-columns: minmax(7rem, max-content) minmax(0, 1fr); gap: 0.3rem 1.25rem; margin: 0; }
.details dd { margin: 0; color: var(--color-light); overflow-wrap: anywhere; }
.details .more { margin-top: 0.5rem; }
.details a { overflow-wrap: anywhere; }

/* Konkrete Elemente der Seite: Vorschaubild, Datei/Ziel, Fundort */
.elements { padding: 0 !important; list-style: none; }
.element { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.875rem; padding: 0.7rem 0; border-top: 1px solid var(--color-line); }
.element:first-child { border-top: 0; padding-top: 0; }
.element.has-thumb { grid-template-columns: 3rem minmax(0, 1fr); }
.element-thumb {
  display: grid; place-items: center; width: 3rem; height: 3rem; overflow: hidden;
  border: 1px solid var(--color-line); border-radius: var(--radius-xs); background: var(--color-deep);
}
.element-thumb img { width: 100%; height: 100%; object-fit: contain; }
.element-body { min-width: 0; }
.element-title { display: block; color: var(--color-light); font-weight: 600; overflow-wrap: anywhere; }
.element-title a { color: var(--color-light); }
.element-line { display: block; margin-top: 0.1rem; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) {
  .element-title a:hover { color: var(--color-blue); }
}

.outline-list { padding: 0 !important; list-style: none; }
.outline-list li { display: flex; align-items: baseline; gap: 0.6rem; }
.outline-list .chip { flex: none; padding: 0.05rem 0.45rem; font-size: 0.65rem; }
.outline-list .lvl-1 .chip { border-color: var(--color-light); }
.outline-list .lvl-1 { color: var(--color-light); }

.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
th, td { padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--color-line); text-align: left; vertical-align: top; }
th { color: var(--color-marker); font-weight: 500; white-space: nowrap; }
td { color: var(--color-light); overflow-wrap: anywhere; }
th.num, td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
th.mark, td.mark { width: 3.5rem; text-align: center; padding-right: 0; }

/* Begriffe: vorhanden = leuchtende Zelle */
.hit { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 2px; background: var(--color-line); vertical-align: middle; }
.hit.on { background: var(--color-blue); }

.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.kw-intro { margin-top: 0.75rem; color: var(--color-marker); font-size: var(--text-sm); max-width: 72ch; }
.kw-panel { margin-top: 1rem; }

.report[data-filter='bad'] .check:not(.s-bad),
.report[data-filter='warn'] .check:not(.s-warn),
.report[data-filter='good'] .check:not(.s-good) { display: none; }
.report[data-filter] .category.is-empty { display: none; }

/* PageSpeed */
.psi-body { margin-top: 1.25rem; }
.psi-body > p { color: var(--color-marker); font-size: var(--text-sm); max-width: 72ch; }
.psi-score { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.metric dt { display: flex; align-items: center; gap: 0.5rem; color: var(--color-marker); font-size: var(--text-sm); }
.metric dd { margin: 0.2rem 0 0; font-size: var(--text-md); font-weight: 600; }
.metric .st { width: 0.9rem; height: 0.9rem; }
.psi-sub { margin-top: 1.75rem; font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.psi-list { margin: 0.75rem 0 0; padding-left: 1.1rem; color: var(--color-marker); font-size: var(--text-sm); }
.psi-list li + li { margin-top: 0.25rem; }
.psi-error { color: var(--color-light); }
.psi-devices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.psi-device .score-num { margin-top: 0.6rem; }
.psi-device .score-word { font-size: var(--text-sm); }
.psi-val { display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.45rem; }
.psi-val .st { width: 0.9rem; height: 0.9rem; }
.psi-val .st svg { width: 0.6rem; height: 0.6rem; }
.psi-table td:first-child { color: var(--color-light); }
.spinner { width: 2.5rem; height: 2.5rem; border: 2px solid var(--color-line); border-top-color: var(--color-blue); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* ---------- Kontakt-Band mit Mesh-Gradient (wie im Footer von fourplex.de) */

.cta { position: relative; isolation: isolate; overflow: hidden; padding-block: 4.5rem 5rem; text-align: center; }
@media (min-width: 64rem) { .cta { padding-block: 7rem; } }
.cta-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; scale: 1.15; filter: blur(40px); pointer-events: none; }
.cta-title { font-size: var(--text-xl); line-height: 1.05; letter-spacing: 0.04em; }
.cta-text { max-width: 36rem; margin: 1.25rem auto 0; color: color-mix(in srgb, var(--color-light) 85%, transparent); }
.cta-form { display: flex; flex-direction: column; gap: 1rem; max-width: 40rem; margin: 2rem auto 0; }
@media (min-width: 48rem) { .cta-form { flex-direction: row; } }
.cta-form .btn { min-height: 3.5rem; flex: none; }
@media (min-width: 48rem) { .cta-form .btn { min-width: 12rem; } }
.btn-glass {
  border-color: color-mix(in srgb, var(--color-light) 32%, transparent);
  background: color-mix(in srgb, var(--color-light) 12%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-light) 25%, transparent);
}
@media (hover: hover) and (pointer: fine) {
  .btn-glass:hover {
    border-color: color-mix(in srgb, var(--color-light) 50%, transparent);
    background: color-mix(in srgb, var(--color-light) 20%, transparent);
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-light) 35%, transparent), 0 0 24px rgb(0 157 197 / 0.3);
  }
}

/* ---------- Footer */

.foot { padding-block: 2.5rem; border-top: 1px solid var(--color-line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.foot img { display: block; width: 9rem; height: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot nav a, .foot p { color: var(--color-marker); font-size: var(--text-sm); }
@media (hover: hover) and (pointer: fine) {
  .foot nav a:hover { color: var(--color-light); text-decoration: none; }
}

/* ---------- KI-Einschätzung und Mehrseiten-Scan */

.ins-summary { max-width: 72ch; margin-top: 1rem; font-size: var(--text-md); line-height: 1.5; }
.ins-cols { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .ins-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ins-list { margin: 0.6rem 0 0; padding-left: 1.1rem; color: var(--color-marker); font-size: var(--text-sm); }
.ins-list li + li { margin-top: 0.3rem; }

.rewrites { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.rewrite { padding: 1rem 1.1rem; border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-deep); }
.rewrite-target { color: var(--color-marker); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.rewrite-old, .rewrite-new { margin-top: 0.6rem; font-size: var(--text-sm); }
.rewrite-old { color: var(--color-marker); }
.rewrite-new { color: var(--color-light); }
.rewrite-old span, .rewrite-new span { display: block; margin-bottom: 0.15rem; color: var(--color-marker); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.rewrite-why { margin-top: 0.6rem; color: var(--color-marker); font-size: var(--text-sm); }

.buyer { margin: 0.75rem 0 0; padding: 0.9rem 1.1rem; border-left: 2px solid var(--color-blue); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--color-deep); font-size: var(--text-md); }

.link-btn { padding: 0; border: 0; background: none; color: var(--color-blue); font: inherit; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .link-btn:hover { text-decoration: underline; } }
.muted { color: var(--color-marker); }
.project-table td:last-child { color: var(--color-marker); }

/* ---------- PDF-Bericht: eigene A4-Seiten mit Kopf (Logo, Adresse) und Fuß (Titel, Seitenzahl)
   Der Browser bekommt Seitenrand 0: So bleibt kein Platz für seine eigenen Kopf- und Fußzeilen (Seitentitel,
   Adresse, Datum), auch wenn sie im Druckdialog eingeschaltet sind. Umbrochen wird in renderPrintReport(). */

#print-report { display: none; }

@media print {
  @page { size: A4; margin: 0; }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  /* sonst färbt Chrome die Seitenränder im dunklen Farbschema mit #121212 */
  :root { color-scheme: light; }
  html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  body > *:not(#print-report) { display: none !important; }
  #print-report { display: block; }
}

/* Zum Messen der Blöcke: unsichtbar, aber mit echtem Layout */
#print-report.pr-measuring { display: block !important; position: absolute; top: 0; left: -10000px; visibility: hidden; }

/* Druckvorschau im Browser: ?druckvorschau – die Seiten untereinander, wie sie gedruckt werden */
body.print-preview { background: #8a8f91; }
body.print-preview > *:not(#print-report) { display: none !important; }
body.print-preview #print-report { display: block; width: 210mm; margin: 10mm auto; }
body.print-preview .pr-page { margin-bottom: 8mm; box-shadow: 0 2px 12px rgb(0 0 0 / 0.25); }

/* Bericht-Styles gelten nur innerhalb von #print-report, der am Bildschirm sonst unsichtbar ist */
#print-report { color: #1f2425; font-family: var(--font-primary); font-size: 9pt; line-height: 1.45; }
#print-report h1, #print-report h2, #print-report h3 { margin: 0; text-transform: uppercase; }
#print-report p { margin: 0; }

/* Seite */
#print-report .pr-page {
  box-sizing: border-box; display: flex; flex-direction: column;
  width: 210mm; height: 297mm; padding: 10mm 16mm 9mm; overflow: hidden;
  background: #fff; break-after: page;
}
#print-report .pr-page:last-child { break-after: auto; }
.pr-head { flex: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 6mm; margin-bottom: 8mm; padding-bottom: 2.5mm; border-bottom: 0.3mm solid #d1d7da; }
.pr-head-logo { display: block; width: 27mm; height: 8.2mm; }
#print-report .pr-head p { color: #474b4c; font-size: 8pt; line-height: 1.2; }
.pr-head b { color: #1f2425; font-weight: 600; }
.pr-body { flex: 1 1 auto; min-height: 0; }
.pr-foot { flex: none; display: flex; justify-content: space-between; gap: 6mm; margin-top: 4mm; padding-top: 2.5mm; border-top: 0.3mm solid #d1d7da; color: #474b4c; font-size: 7.5pt; }

/* Inhaltsblöcke: flow-root hält die Abstände im Block, damit die Messung stimmt */
.pr-blk { display: flow-root; }
#print-report .pr-first { padding-top: 0; }
#print-report .pr-first > h3:first-child { margin-top: 0; }
.pr-sec { padding-top: 7mm; }
.pr-gap { padding-top: 3mm; }
.pr-rule { border-top: 0.3mm solid #1f2425; }

/* Deckblatt: füllt die ganze Seite, Kontakt unten angeschlagen */
.pr-page-cover .pr-body { display: flex; flex-direction: column; }
.pr-cover { flex: 1; display: flex; flex-direction: column; gap: 7mm; }
.pr-cover-title { padding-top: 6mm; }
.pr-kicker { color: #009dc5; font-size: 9pt; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
#print-report .pr-cover h1 { margin-top: 2.5mm; font-size: 32pt; font-weight: 900; line-height: 1.05; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.pr-cover-title::after { content: ""; display: block; width: 24mm; height: 1mm; margin-top: 5mm; background: var(--gradient-brand); }
#print-report .pr-meta { margin-top: 3mm; color: #474b4c; font-size: 9pt; overflow-wrap: anywhere; }

.pr-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 10mm; }
.pr-panel { padding: 5mm; border: 0.3mm solid #e6e9eb; border-radius: 2mm; }
.pr-panel-head { display: flex; align-items: center; gap: 5mm; margin-bottom: 5mm; }
.pr-ring-wrap { position: relative; flex: none; width: 28mm; height: 28mm; }
.pr-ring { display: block; width: 100%; height: 100%; }
#print-report .pr-ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 20pt; font-weight: 900; line-height: 1; }
.pr-ring-num span { margin-left: 0.5mm; font-size: 0.5em; font-weight: 800; }
.pr-label { color: #474b4c; font-size: 8.5pt; }
#print-report .pr-word { margin-top: 0.5mm; font-size: 13pt; font-weight: 800; }
#print-report .pr-cap { margin-top: 2mm; padding-left: 2mm; border-left: 0.5mm solid #dc2626; font-size: 7.5pt; line-height: 1.4; }

.pr-scales { display: grid; gap: 2.6mm; align-content: start; margin: 0; padding: 0; list-style: none; }
#print-report .pr-scales li { margin: 0; }
.pr-scale-top { display: flex; justify-content: space-between; gap: 4mm; font-size: 8pt; }
.pr-scale-top b { color: #474b4c; font-family: var(--font-secondary); font-weight: 400; }
.pr-track { position: relative; display: block; height: 0.7mm; margin-top: 1mm; background: #e6e9eb; }
.pr-track span { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); background: var(--gradient-brand); background-size: calc(10000% / max(var(--v), 1)) 100%; }

.pr-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6mm; }
.pr-stat { display: grid; gap: 1mm; padding-top: 2.5mm; border-top: 0.3mm solid #d1d7da; }
.pr-stat.hl { border-top: 0; background: var(--gradient-brand) top / 100% 0.6mm no-repeat; }
.pr-stat b { font-family: var(--font-secondary); font-size: 20pt; font-weight: 400; line-height: 1; }
.pr-stat span { color: #474b4c; font-size: 8.5pt; }

#print-report .pr-levers h2 { margin-bottom: 3mm; font-size: 10pt; font-weight: 900; letter-spacing: 0.04em; }
.pr-levers ol { display: grid; gap: 2.5mm; margin: 0; padding: 0; list-style: none; }
#print-report .pr-levers li { display: grid; grid-template-columns: 9mm 1fr; align-items: baseline; margin: 0; }
.pr-levers li b { display: block; font-size: 10pt; font-weight: 800; }
.pr-levers .pr-muted { font-size: 8pt; }

.pr-cover-foot { display: grid; grid-template-columns: 0.8fr 0.8fr 1.4fr; gap: 8mm; margin-top: auto; padding-top: 5mm; border-top: 0.3mm solid #d1d7da; font-size: 8.5pt; line-height: 1.5; }
#print-report .pr-foot-label { margin-bottom: 1mm; color: #009dc5; font-size: 7.5pt; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

/* Inhaltsseiten */
#print-report .pr-sec h2 { margin-bottom: 3mm; font-size: 13pt; font-weight: 900; letter-spacing: 0.02em; }
.pr-sec h2::after { content: ""; display: block; width: 18mm; height: 0.8mm; margin-top: 1.5mm; background: var(--gradient-brand); }
#print-report .pr-body h3 { margin: 4mm 0 1.5mm; font-size: 9.5pt; font-weight: 900; }
.pr-lead { max-width: 175mm; font-size: 10.5pt; line-height: 1.5; }
.pr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 7mm; }
.pr-body ul { margin: 0; padding-left: 4mm; }
.pr-body li + li { margin-top: 0.8mm; }

.pr-table { width: 100%; margin-top: 2mm; border-collapse: collapse; font-size: 8.5pt; }
.pr-table th { padding: 1.5mm 2mm 1.5mm 0; border-bottom: 0.3mm solid #1f2425; color: #474b4c; font-size: 7pt; font-weight: 500; letter-spacing: 0.06em; text-align: left; text-transform: uppercase; white-space: normal; }
/* globale td-Farbe kommt aus dem dunklen Bildschirm-Layout und muss hier überschrieben werden */
.pr-table td { padding: 1.8mm 2mm 1.8mm 0; border-bottom: 0.2mm solid #d1d7da; color: #1f2425; vertical-align: top; }
#print-report .pr-muted { color: #474b4c; }

/* To-dos: Nummer, Punkt mit Erklärung, Wirkung/Aufwand als Balken */
#print-report .pr-todo { display: grid; grid-template-columns: 9mm 1fr 30mm; gap: 3mm; padding: 2.4mm 0; border-bottom: 0.2mm solid #d1d7da; }
.pr-no { color: #009dc5; font-family: var(--font-secondary); font-size: 12pt; line-height: 1.1; }
#print-report .pr-todo-title { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5mm 2mm; margin-bottom: 0.8mm; font-size: 9.5pt; }
.pr-todo-title b { font-weight: 800; }
.pr-todo .pr-muted { font-size: 8.5pt; line-height: 1.45; }
.pr-meters { display: grid; gap: 1.4mm; align-content: start; padding-top: 0.6mm; }
.pr-meter { display: flex; justify-content: space-between; align-items: center; gap: 2mm; color: #474b4c; font-size: 7pt; }
.pr-bars { display: inline-flex; gap: 0.7mm; }
.pr-bars i { width: 4mm; height: 1.4mm; border-radius: 0.3mm; background: #e6e9eb; }
.pr-bars i.on { background: #009dc5; }
.pr-qw {
  display: inline-block; padding: 0.3mm 1.6mm; border-radius: 9999px; background: #009dc5; color: #fff;
  font-family: var(--font-secondary); font-size: 6.5pt; letter-spacing: 0.06em; text-transform: uppercase;
}
.pr-target { display: block; margin-top: 0.4mm; color: #474b4c; font-size: 6.5pt; white-space: nowrap; }
.pr-psi td:first-child { font-weight: 600; }
#print-report .pr-note { margin-top: 3mm; color: #474b4c; font-size: 7.5pt; }
.pr-project { table-layout: fixed; }
.pr-mini { display: grid; gap: 0.8mm; padding-right: 3mm; }
.pr-mini b { font-weight: 500; }
.pr-mini .pr-track { margin: 0; background: #e6e9eb; }
.pr-ref { color: #009dc5; font-family: var(--font-secondary); font-size: 7pt; white-space: nowrap; }
.pr-quote { margin-bottom: 1.5mm !important; font-size: 10pt; font-weight: 600; }
.pr-plus, .pr-minus { padding-left: 0 !important; list-style: none; }
.pr-plus li, .pr-minus li { position: relative; padding-left: 4mm; }
.pr-plus li::before, .pr-minus li::before { content: ""; position: absolute; left: 0; top: 1.6mm; width: 1.6mm; height: 1.6mm; border-radius: 0.3mm; background: #009dc5; }
.pr-minus li::before { background: #1f2425; }

.pr-st { display: inline-grid; place-items: center; flex: none; width: 3.6mm; height: 3.6mm; border: 0.25mm solid; border-radius: 0.6mm; }
.pr-st svg { width: 2.4mm; height: 2.4mm; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pr-st.good, #print-report .st.good { border-color: #009dc5; color: #009dc5; }
.pr-st.warn, #print-report .st.warn { border-color: #1f2425; color: #1f2425; }
.pr-st.bad, #print-report .st.bad { border-color: #dc2626; background: #dc2626; color: #fff; }
.pr-st.info, #print-report .st.info { border-color: #d1d7da; color: #474b4c; }
#print-report .psi-val .st { width: 3.2mm; height: 3.2mm; }

/* Alle Prüfpunkte untereinander: Kategorie-Kopf, Probleme mit Text, Erfülltes als eine Zeile */
.pr-cat-head { padding-top: 6mm; }
#print-report .pr-cat-head h3 { display: flex; justify-content: space-between; margin: 0 0 1mm; }
.pr-cat-head h3 b { font-family: var(--font-secondary); font-weight: 400; }
.pr-cat-head .pr-track { margin: 0 0 1mm; }
/* Seite beginnt mitten in einer Kategorie: Name wiederholen */
#print-report .pr-cont p { margin-bottom: 0.5mm; padding-bottom: 1mm; border-bottom: 0.3mm solid #d1d7da; color: #474b4c; font-size: 7.5pt; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
#print-report .pr-check { display: flex; align-items: flex-start; gap: 2mm; padding: 1.2mm 0; border-bottom: 0.2mm solid #e6e9eb; font-size: 8pt; line-height: 1.4; }
.pr-check b { font-weight: 600; }
#print-report .pr-ok { margin-top: 1.5mm; color: #474b4c; font-size: 7.5pt; }
#print-report .pr-end { color: #474b4c; font-size: 7.5pt; line-height: 1.5; }
