/* Shared stylesheet.
   Contrast (WCAG AA) of every text/UI token pair, measured against --c-bg (#fff) and --c-bg-alt (#f4f6f8):
     --c-text   #0d1117  ~18:1        --c-muted  #4a5260  ~7.4:1 / ~6.9:1
     --c-accent #0a4a7f  ~9.3:1 / ~8.6:1, white on accent ~9.3:1, accent on --c-accent-tint-2 ~7.2:1
     --c-line-strong #5f6b7a (form borders) ~5.4:1  --c-error #a1251b ~7.6:1
   --c-line is decorative only (card/table rules) and is never the sole indicator of anything. */

/* ------------------------------------------------------------------ tokens */
:root {
  /* colour */
  --c-text: #0d1117;
  --c-muted: #4a5260;
  --c-bg: #ffffff;
  --c-bg-alt: #f4f6f8;
  --c-bg-tint: #ebf1f7;            /* top of the page gradient */
  --c-line: #d6dce3;               /* decorative rules */
  --c-line-strong: #5f6b7a;        /* form control borders: >= 3:1 */
  --c-accent: #0a4a7f;
  --c-accent-hover: #083a64;
  --c-accent-active: #062c4c;
  --c-accent-tint: #e8f0f8;        /* secondary button hover */
  --c-accent-tint-2: #d6e4f2;      /* secondary button active */
  --c-focus: var(--c-accent);
  --c-error: #a1251b;
  --c-on-accent: #ffffff;

  /* type */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.625rem, 1.2rem + 1.4vw, 2rem);
  --fs-3xl: clamp(1.75rem, 1.1rem + 2.8vw, 3rem);
  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-body: 1.6;
  --fw-normal: 400;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --section-y: clamp(3rem, 2rem + 4vw, 5rem);

  /* layout */
  --wrap: 72rem;
  --gutter: 1.25rem;
  --measure: 46rem;
  --control-h: 2.75rem;

  /* shape */
  --radius-sm: 4px;
  --radius: 6px;
  --border: 1px solid var(--c-line);
  --focus-ring: 3px solid var(--c-focus);
  --focus-offset: 2px;

  /* motion: everything <= 0.2 s, and none at all with prefers-reduced-motion */
  --dur: 0.15s;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: var(--fw-normal) var(--fs-base)/var(--lh-body) var(--font-sans);
  color: var(--c-text);
  background: linear-gradient(180deg, var(--c-bg-tint) 0, var(--c-bg) 36rem) no-repeat, var(--c-bg);
  overflow-wrap: break-word; /* long German compounds must never force horizontal scrolling at 320 px */
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
/* Prose keeps the shared left edge of .wrap but limits the line length of its children. */
.prose > * { max-width: var(--measure); }
img { max-width: 100%; height: auto; }
code, kbd, samp { font-family: var(--font-mono); font-size: 0.9em; }
:not(pre) > code { padding: 0.05em 0.3em; border: var(--border); border-radius: var(--radius-sm); background: var(--c-bg-alt); overflow-wrap: anywhere; }

a { color: var(--c-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--c-accent-hover); text-decoration-thickness: 2px; }
a:active { color: var(--c-accent-active); }
:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
main:focus { outline: none; }

.skip { position: absolute; left: var(--sp-2); top: -4rem; z-index: 10; background: var(--c-bg); color: var(--c-accent); padding: var(--sp-2) var(--sp-3); border: 2px solid var(--c-accent); border-radius: var(--radius-sm); font-weight: var(--fw-semibold); }
.skip:focus { top: var(--sp-2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------------ header / nav */
.site-header { border-bottom: var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); padding-top: var(--sp-3); padding-bottom: var(--sp-3); }
.brand { display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1) 0; font-weight: var(--fw-bold); color: var(--c-text); text-decoration: none; letter-spacing: -0.01em; }
.brand::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 2px; background: var(--c-accent); flex: none; }
.brand:hover { color: var(--c-accent); text-decoration: underline; }
.site-header nav ul, .site-footer nav ul { list-style: none; margin: 0; padding: 0; }
/* Wraps onto further lines on narrow screens: never a horizontal scroller. */
.site-header nav ul { display: flex; flex-wrap: wrap; gap: 0 var(--sp-5); }
.site-header nav a {
  display: inline-block; padding: var(--sp-2) 0; font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  color: var(--c-text); text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: 2px; text-underline-offset: 0.45em;
  transition: text-decoration-color var(--dur), color var(--dur);
}
.site-header nav a:hover { color: var(--c-accent); text-decoration-color: currentColor; }
/* Active page: underline (shape), not colour alone. */
.site-header nav a[aria-current="page"] { color: var(--c-accent); text-decoration-color: currentColor; text-decoration-thickness: 3px; }

/* ------------------------------------------------------------------ type */
h1, h2, h3, h4 { color: var(--c-text); letter-spacing: -0.015em; hyphens: auto; }
h1 { font-size: var(--fs-3xl); line-height: var(--lh-tight); letter-spacing: -0.025em; margin: var(--sp-7) 0 var(--sp-4); }
h2 { font-size: var(--fs-2xl); line-height: 1.2; margin: 0 0 var(--sp-4); }
h3 { font-size: var(--fs-lg); line-height: var(--lh-snug); margin: var(--sp-6) 0 var(--sp-2); }
p { margin: 0 0 var(--sp-4); }
.lead { font-size: var(--fs-lg); color: var(--c-muted); margin: 0 0 var(--sp-4); }
.muted { color: var(--c-muted); }
.small { font-size: var(--fs-sm); }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
.kicker { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: 0.02em; color: var(--c-accent); margin: 0 0 var(--sp-4); }

/* ------------------------------------------------------------------ section rhythm */
section { padding: var(--section-y) 0; }
section > .wrap > :last-child, section > .wrap > .prose > :last-child { margin-bottom: 0; }
.alt { background: var(--c-bg-alt); border-top: var(--border); }
.page-intro { padding-bottom: var(--sp-6); }
.page-intro .lead:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ hero */
.hero { padding: var(--sp-7) 0 var(--section-y); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); align-items: start; }
.hero h1 { margin-top: 0; }
.hero-text .lead { margin-top: var(--sp-6); }
.hero-visual { margin: 0; }
.hero-visual img { display: block; width: 100%; border: var(--border); border-radius: var(--radius); background: var(--c-bg); }
@media (min-width: 60rem) {
  .hero { padding-top: var(--sp-8); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-8); }
  .hero-visual { margin-top: var(--sp-6); }
}

/* trust row */
.trust { border-top: var(--border); border-bottom: var(--border); }
.trust-list { list-style: none; margin: 0; padding: var(--sp-4) 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); }
.trust-list li {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted);
  display: inline-flex; align-items: center; gap: var(--sp-2);
}
.trust-list li::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 1px; background: var(--c-accent); flex: none; }

/* ------------------------------------------------------------------ buttons */
button, .btn {
  display: inline-block; min-height: var(--control-h); padding: var(--sp-2) var(--sp-5);
  font: inherit; font-weight: var(--fw-semibold); line-height: var(--lh-body); text-align: center;
  border-radius: var(--radius-sm); cursor: pointer; text-decoration: none;
  transition: background-color var(--dur), border-color var(--dur), color var(--dur);
}
.btn-primary { color: var(--c-on-accent); background: var(--c-accent); border: 1px solid var(--c-accent); }
a.btn-primary:hover, .btn-primary:hover { color: var(--c-on-accent); background: var(--c-accent-hover); border-color: var(--c-accent-hover); }
a.btn-primary:active, .btn-primary:active { color: var(--c-on-accent); background: var(--c-accent-active); border-color: var(--c-accent-active); }
.btn-secondary { color: var(--c-accent); background: var(--c-bg); border: 1px solid var(--c-accent); }
.btn-secondary:hover { color: var(--c-accent-hover); background: var(--c-accent-tint); border-color: var(--c-accent-hover); }
.btn-secondary:active { color: var(--c-accent-active); background: var(--c-accent-tint-2); border-color: var(--c-accent-active); }
.btn-primary[aria-disabled="true"], [aria-busy="true"] { cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-5) 0 0; }

/* ------------------------------------------------------------------ scan form */
form { margin-top: var(--sp-4); }
label { display: block; font-weight: var(--fw-semibold); margin-bottom: var(--sp-1); }
.hint { color: var(--c-muted); font-size: var(--fs-sm); margin: 0 0 var(--sp-2); }
.row { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
input[type="url"], input[type="text"] {
  flex: 1 1 16rem; min-width: 0; min-height: var(--control-h); padding: var(--sp-2) var(--sp-3);
  font: inherit; color: var(--c-text); background: var(--c-bg);
  border: 1px solid var(--c-line-strong); border-radius: var(--radius-sm);
  transition: border-color var(--dur);
}
input[type="url"]:hover, input[type="text"]:hover { border-color: var(--c-text); }
input[aria-invalid="true"] { border: 2px solid var(--c-error); }
.error { color: var(--c-error); font-weight: var(--fw-semibold); margin: var(--sp-2) 0 0; }
.error:empty { display: none; }
.status { margin: var(--sp-3) 0 0; }
.status:empty { margin: 0; }
.scan-intro { margin-top: var(--sp-3); }

/* ------------------------------------------------------------------ lead forms */
.lead-form { border: var(--border); border-radius: var(--radius); padding: var(--sp-5); background: var(--c-bg-alt); }
.lead-form h4, .lead-form h3 { margin-top: 0; }
.lead-form .field { margin-bottom: var(--sp-4); }
.lead-form label { margin-bottom: var(--sp-1); }
.lead-form input,
.lead-form textarea,
.lead-form select {
  display: block; width: 100%; flex: 1 1 auto; min-height: var(--control-h);
  padding: var(--sp-2) var(--sp-3); font: inherit; color: var(--c-text); background: var(--c-bg);
  border: 1px solid var(--c-line-strong); border-radius: var(--radius-sm);
}
.lead-form textarea { min-height: 6rem; resize: vertical; }
.lead-form input:hover, .lead-form textarea:hover, .lead-form select:hover { border-color: var(--c-text); }
.lead-form .hint { margin-bottom: var(--sp-4); }
.lead-form button { margin-top: var(--sp-1); }
.lead-form button + .hint { margin-top: var(--sp-4); }
.req { color: var(--c-error); font-weight: var(--fw-bold); }
.grid2 { display: grid; gap: 0 var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 40rem) { .grid2 { grid-template-columns: 1fr 1fr; } }
.status.ok { border-left: 3px solid var(--c-accent); padding: var(--sp-2) var(--sp-3); background: var(--c-bg); font-weight: var(--fw-semibold); }
.status.ok:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.disclaimer { border-left: 3px solid var(--c-muted); padding: var(--sp-2) var(--sp-3); background: var(--c-bg-alt); margin: var(--sp-5) 0 0; font-size: var(--fs-sm); }
.alt .disclaimer { background: var(--c-bg); }
.note { border: 1px dashed var(--c-line-strong); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); background: var(--c-bg); margin: var(--sp-5) 0; }
.note > :first-child { margin-top: 0; }
.note > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ scan result */
.result { margin-top: var(--sp-6); border: var(--border); border-radius: var(--radius); padding: var(--sp-5); background: var(--c-bg); }
.result > h2:first-child { font-size: var(--fs-xl); margin-top: 0; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--sp-1) var(--sp-4); margin: 0; }
dl.facts dt { font-weight: var(--fw-semibold); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
ul.sev, ol.top { padding-left: 0; list-style: none; margin: 0; }
ul.sev li, ol.top li { display: flex; gap: var(--sp-3); align-items: baseline; padding: var(--sp-2) 0; border-bottom: var(--border); font-variant-numeric: tabular-nums; }
ol.top li { flex-wrap: wrap; }
.badge { display: inline-block; min-width: 5.5rem; padding: 0 var(--sp-2); border: 1px solid currentColor; border-radius: var(--radius-sm); font-weight: var(--fw-bold); font-size: var(--fs-xs); text-align: center; background: var(--c-bg); }
.sev-critical { color: #a1251b; } .sev-serious { color: #9a3c00; } .sev-moderate { color: #6b5300; } .sev-minor { color: #2f5d3a; } .sev-unknown { color: var(--c-muted); }
.paywall { margin-top: var(--sp-6); padding: var(--sp-5); border: 1px solid var(--c-accent); border-radius: var(--radius); }
.paywall h3 { margin-top: 0; }
.offers { list-style: none; padding: 0; margin: 0 0 var(--sp-4); }
.offers li { padding: var(--sp-2) 0; border-bottom: var(--border); }
.offers strong { display: block; }

/* ------------------------------------------------------------------ lists, steps */
ul.check { padding-left: var(--sp-5); }
ul.check li { margin: var(--sp-2) 0; }
ul.check li::marker { color: var(--c-muted); }
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
ol.steps li { counter-increment: step; border: var(--border); border-radius: var(--radius); padding: var(--sp-5); background: var(--c-bg); }
ol.steps li::before { content: "Schritt " counter(step); display: block; font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-muted); }
ol.steps h3 { margin: var(--sp-2) 0; }
ol.steps p { margin: 0; color: var(--c-muted); }

/* ------------------------------------------------------------------ pricing cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.card { border: var(--border); border-radius: var(--radius); padding: var(--sp-5); background: var(--c-bg); display: flex; flex-direction: column; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-1) var(--sp-3); }
.card h3 { margin: 0; font-size: var(--fs-base); }
/* Recommendation is stated in text; the heavier border only repeats it. */
.card-flag { margin: 0; padding: 0 var(--sp-2); font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-accent); border: 1px solid var(--c-accent); border-radius: var(--radius-sm); }
.card-featured { border: 2px solid var(--c-accent); padding: calc(var(--sp-5) - 1px); }
.card .price { margin: var(--sp-4) 0 0; line-height: 1.1; font-variant-numeric: tabular-nums; }
.card .price .amount { display: block; font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: -0.02em; }
.card .price small { display: block; margin-top: var(--sp-1); font-size: var(--fs-xs); color: var(--c-muted); }
.card .benefit { margin: var(--sp-3) 0 0; font-weight: var(--fw-semibold); line-height: var(--lh-snug); }
.card ul.features { padding-left: var(--sp-5); margin: var(--sp-3) 0 var(--sp-5); font-size: var(--fs-sm); color: var(--c-muted); }
.card ul.features li { margin: var(--sp-1) 0; }
.card ul.features li::marker { color: var(--c-muted); }
.card-actions { margin-top: auto; display: flex; flex-direction: column; justify-content: flex-start; gap: var(--sp-2); min-height: 4.75rem; }
.card-actions .btn { display: block; width: 100%; }
.card-actions .card-alt { align-self: center; font-size: var(--fs-sm); padding: var(--sp-1) 0; }
@media (min-width: 60rem) {
  .card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 15rem minmax(0, 1fr) 15rem; column-gap: var(--sp-6); align-items: start; }
  .card-wide .card-head, .card-wide .price, .card-wide .benefit { grid-column: 1; }
  .card-wide ul.features { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .card-wide .card-actions { grid-column: 3; grid-row: 1 / span 3; margin-top: 0; }
}

/* ------------------------------------------------------------------ tables: thin rules, no zebra, no sticky */
.table-scroll { overflow-x: auto; margin: var(--sp-4) 0; }
.table-scroll table { min-width: 34rem; }
table { border-collapse: collapse; width: 100%; background: transparent; font-variant-numeric: tabular-nums; margin: var(--sp-4) 0; }
.table-scroll table { margin: 0; }
caption { text-align: left; font-weight: var(--fw-semibold); padding: 0 0 var(--sp-2); }
th, td { border: 0; border-bottom: var(--border); padding: var(--sp-2) var(--sp-3); text-align: left; vertical-align: top; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
thead th { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-muted); border-bottom: 1px solid var(--c-line-strong); vertical-align: bottom; }
tbody th { font-weight: var(--fw-semibold); }
th.num, td.num { text-align: right; }
td.mono { font-family: var(--font-mono); font-size: var(--fs-sm); }

/* ------------------------------------------------------------------ FAQ */
details { border: var(--border); border-radius: var(--radius); background: var(--c-bg); margin: 0 0 var(--sp-3); }
summary { cursor: pointer; padding: var(--sp-3) var(--sp-4); font-weight: var(--fw-semibold); list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4); border-radius: var(--radius); }
summary::-webkit-details-marker { display: none; }
/* Drawn chevron (no text content, so nothing extra is announced); rotates when open. */
summary::after { content: ""; flex: none; width: 0.5rem; height: 0.5rem; margin-right: var(--sp-1); border-right: 2px solid var(--c-muted); border-bottom: 2px solid var(--c-muted); transform: translateY(-0.15rem) rotate(45deg); transition: transform var(--dur); }
details[open] > summary::after { transform: translateY(0.1rem) rotate(-135deg); }
summary:hover { color: var(--c-accent); }
details[open] summary { border-bottom: var(--border); border-radius: var(--radius) var(--radius) 0 0; }
details .answer { padding: var(--sp-2) var(--sp-4) var(--sp-3); }

/* ------------------------------------------------------------------ legal pages */
.legal h2 { font-size: var(--fs-xl); margin-top: var(--sp-6); }
.legal address { font-style: normal; }
.todo { background: #fff4d6; border: 2px solid #6b5300; padding: 0 var(--sp-1); font-weight: var(--fw-semibold); }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: var(--border); background: var(--c-bg-alt); padding: var(--sp-7) 0 var(--sp-8); font-size: var(--fs-sm); }
.site-footer .wrap { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-h { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-muted); margin: 0 0 var(--sp-3); }
.site-footer p { margin: 0 0 var(--sp-3); }
.site-footer address { font-style: normal; }
.site-footer nav ul { display: flex; flex-direction: column; gap: var(--sp-1); }
.site-footer nav a { display: inline-block; padding: 0.125rem 0; }

/* ------------------------------------------------------------------ preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .badge, .card, .card-flag, details, .note, .result, .paywall, .hero-visual img, .trust, th, td { border-color: CanvasText; }
  .brand::before, .trust-list li::before { background: CanvasText; }
  summary::after { border-color: CanvasText; }
}

/* ------------------------------------------------------------------ print */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .skip, .site-header nav, .site-footer nav, #scan-form, .status, .hero-visual, .trust, .actions, .card-actions, noscript { display: none !important; }
  .site-header, .site-footer { border: 0; background: none; }
  section, .hero { padding: 1.25rem 0; }
  .alt { background: none; border-top: 1px solid #999; }
  .hero-grid { display: block; }
  .card, details, .note, .result, ol.steps li, tr, figure { break-inside: avoid; page-break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
  a { color: #000; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  .table-scroll { overflow: visible; }
  .table-scroll table { min-width: 0; }
}
