/* Website absichern lassen. Farbe heißt hier Befund: Rot = Lücke, Gelb = Warnung, Grün = sicher.
   Sonst nur Tinte auf Papier. Schrift: Barlow (Text) und Barlow Semi Condensed (Überschriften, Zahlen). */
@font-face { font-family: "Barlow"; src: url("/assets/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/barlow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("/assets/barlow-sc-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("/assets/barlow-sc-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #f3f5f2;
  --sheet: #ffffff;
  --ink: #13203a;
  --muted: #4b5668;
  --rule: #cdd3d9;
  --tint: #e6ebf0;
  --bad: #c4122f;  --bad-bg: #fbe4e7;  --bad-tx: #9b0e25;
  --warn: #e0a000; --warn-bg: #fdf1d3; --warn-tx: #6e4600;
  --ok: #13865a;   --ok-bg: #dcf1e6;   --ok-tx: #0c5f3f;
  --scan: #9aa5b1;
  --text: "Barlow", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --head: "Barlow SC", "Barlow", "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
html[lang="de"] [lang="en"], html[lang="en"] [lang="de"] { display: none !important; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -.005em; }
h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.05; }
h3 { font-size: 24px; line-height: 1.15; font-weight: 600; }

/* Kopfzeile */
.top { display: flex; justify-content: space-between; align-items: center; padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: 18px; }
.brand { font: 700 19px/1 var(--head); text-decoration: none; }
.brand span { font-family: var(--text); font-weight: 500; font-size: 16px; color: var(--muted); margin-left: 6px; }
.lang { display: flex; border: 1.5px solid var(--rule); border-radius: 999px; padding: 3px; background: var(--sheet); }
.lang button { font: 600 14px/1 var(--text); color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 8px;
  background: var(--ink); color: #fff; border: 1.5px solid var(--ink); font: 600 17px/1.2 var(--text); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: #223559; border-color: #223559; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--tint); }

/* Hero: Text links, Prüfbericht rechts */
.hero { display: grid; gap: 40px; padding-top: 28px; padding-bottom: 72px; align-items: center; }
@media (min-width: 920px) { .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; padding-top: 56px; padding-bottom: 104px; } }
.hero h1 { font-size: clamp(42px, 6vw, 70px); line-height: .98; max-width: 15ch; letter-spacing: -.012em; }
.lead { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 50ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.report { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 6px; padding: 20px 20px 18px; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.r-title { font: 700 22px/1.1 var(--head); }
.r-site { margin-top: 3px; font-size: 15px; color: var(--muted); }
.r-note { display: inline-block; margin-left: 6px; padding: 1px 7px; border: 1px solid var(--rule); border-radius: 4px; font-size: 13px; }
.switch { display: flex; flex-shrink: 0; border: 1.5px solid var(--ink); border-radius: 7px; overflow: hidden; }
.switch button { font: 600 14px/1 var(--text); color: var(--ink); background: var(--sheet); border: 0; padding: 9px 12px; cursor: pointer; }
.switch button + button { border-left: 1.5px solid var(--ink); }
.switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.checks { list-style: none; }
.checks li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed var(--rule); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--scan); transform: translateY(1px); transition: background-color .25s; }
.what { font-weight: 600; font-size: 17px; line-height: 1.3; }
.detail { grid-column: 2; grid-row: 2; font-size: 15px; line-height: 1.35; color: var(--muted); margin-top: 2px; }
.tag { grid-column: 3; grid-row: 1; font: 600 13px/1 var(--text); padding: 5px 8px; border-radius: 4px; background: var(--tint); color: var(--muted); white-space: nowrap; transition: background-color .25s, color .25s; }
.checks[data-state="vorher"] .n, .checks[data-state="nachher"] .v { display: none; }
.checks li[data-s="scan"] .detail { visibility: hidden; }
.checks li[data-s="scan"] .dot { animation: pulse .7s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .3; } }
li[data-s="bad"] .dot { background: var(--bad); }   li[data-s="bad"] .tag { background: var(--bad-bg); color: var(--bad-tx); }
li[data-s="warn"] .dot { background: var(--warn); } li[data-s="warn"] .tag { background: var(--warn-bg); color: var(--warn-tx); }
li[data-s="ok"] .dot { background: var(--ok); }     li[data-s="ok"] .tag { background: var(--ok-bg); color: var(--ok-tx); }
html[lang="de"] li[data-s="scan"] .tag::after { content: "prüft"; }  html[lang="en"] li[data-s="scan"] .tag::after { content: "checking"; }
html[lang="de"] li[data-s="bad"] .tag::after { content: "Lücke"; }   html[lang="en"] li[data-s="bad"] .tag::after { content: "Hole"; }
html[lang="de"] li[data-s="warn"] .tag::after { content: "Warnung"; } html[lang="en"] li[data-s="warn"] .tag::after { content: "Warning"; }
html[lang="de"] li[data-s="ok"] .tag::after { content: "sicher"; }   html[lang="en"] li[data-s="ok"] .tag::after { content: "safe"; }

.sum { padding-top: 14px; font: 700 21px/1.2 var(--head); min-height: 40px; }
.sum .s-v { color: var(--bad-tx); }
.sum .s-n { color: var(--ok-tx); }
.report:not([data-sum="vorher"]) .s-v, .report:not([data-sum="nachher"]) .s-n { display: none; }

/* Ablauf: echte Reihenfolge, daher nummeriert */
.steps { padding-bottom: 96px; }
.steps ol { list-style: none; counter-reset: step; display: grid; gap: 28px; margin-top: 32px; }
@media (min-width: 760px) { .steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; } }
@media (min-width: 1040px) { .steps ol { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; border-top: 1.5px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(step); display: block; font: 700 52px/1 var(--head); margin-bottom: 10px; }
.steps h3 { font-size: 22px; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 17px; max-width: 42ch; }

/* Pakete */
.plans { padding-bottom: 96px; }
.plan-grid { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 820px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.plan { display: flex; flex-direction: column; background: var(--sheet); border: 1.5px solid var(--rule); border-radius: 6px; padding: 26px 24px 24px; }
.plan.main { border-color: var(--ink); }
.plan h3 { font-size: 30px; }
.price { margin-top: 6px; }
.amt { font: 700 46px/1 var(--head); font-variant-numeric: tabular-nums; }
.per { font-size: 16px; color: var(--muted); margin-left: 4px; }
.fit { margin-top: 12px; color: var(--muted); font-size: 17px; max-width: 40ch; }
.plus { margin-top: 18px; font-weight: 600; font-size: 16px; }
.plan ul { list-style: none; margin: 14px 0 26px; display: grid; gap: 10px; }
.plan ul, .plus + ul { margin-top: 14px; }
.plan li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.4; }
.plan li::before { content: ""; position: absolute; left: 3px; top: .32em; width: 6px; height: 11px; border: solid var(--ok); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* Laufender Schutz: gestrichelt, weil er an ein Paket anschließt */
.retainer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; margin-top: 24px; padding: 22px 24px; border: 1.5px dashed var(--ink); border-radius: 6px; }
.retainer > div { flex: 1 1 420px; }
.retainer h3 { font-size: 26px; }
.retainer .price { display: inline-block; margin-left: 10px; white-space: nowrap; }
.retainer .amt { font-size: 26px; }
.retainer .per { font-size: 15px; }
.retainer p { margin-top: 6px; color: var(--muted); font-size: 17px; max-width: 62ch; }
.aside { margin-top: 18px; color: var(--muted); font-size: 17px; }

/* Fragen */
.faq { padding-bottom: 96px; max-width: 900px; margin-left: max(0px, calc((100% - 1140px) / 2)); }
.faq h2 { margin-bottom: 20px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 600; font-size: 19px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 66ch; }

/* Anfrage */
.ask { display: grid; gap: 28px; padding-bottom: 96px; scroll-margin-top: 16px; }
@media (min-width: 920px) { .ask { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; } }
.ask-intro p { margin-top: 14px; color: var(--muted); max-width: 38ch; }
form, .done { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 6px; padding: 24px; }
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
form > * { grid-column: 1 / -1; }
@media (min-width: 560px) { .field.half { grid-column: span 1; } }
.pick { border: 0; display: grid; gap: 8px; }
.pick legend, .field > label { font-weight: 600; font-size: 16px; margin-bottom: 8px; display: block; }
.pick label { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--rule); border-radius: 8px; cursor: pointer; font-size: 17px; }
.pick label:has(input:checked) { border-color: var(--ink); background: var(--tint); }
.pick .p { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--ink); width: 20px; height: 20px; flex-shrink: 0; }
.field input, .field textarea { width: 100%; font: 400 17px/1.4 var(--text); color: var(--ink); background: var(--sheet); border: 1.5px solid #9aa5b1; border-radius: 8px; padding: 12px 14px; min-height: 50px; }
.field textarea { resize: vertical; min-height: 112px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"], .pick[aria-invalid="true"] label { border-color: var(--bad); }
.opt { font-weight: 400; color: var(--muted); margin-left: 4px; }
.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 16px; line-height: 1.45; }
.consent input { margin-top: 1px; }
.consent .err { grid-column: 2; }
.err { color: var(--bad-tx); font-size: 15px; font-weight: 500; margin-top: 6px; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send { justify-self: start; min-width: 200px; }
.send[disabled] { opacity: .6; cursor: progress; }
.status { font-size: 16px; color: var(--bad-tx); }
.status:empty { display: none; }
.done h3 { font-size: 28px; color: var(--ok-tx); }
.done p { margin-top: 8px; color: var(--muted); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 28px; padding-bottom: max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); font-size: 16px; color: var(--muted); }
.foot p { display: flex; flex-wrap: wrap; gap: 4px 20px; }

@media (max-width: 420px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .report { padding: 16px 14px 14px; }
  .report-head { flex-direction: column; }
}
@media (max-width: 600px) {
  .hero { padding-top: 12px; gap: 32px; }
  .lead { font-size: 17px; margin-top: 16px; }
  .actions { margin-top: 22px; gap: 10px; }
  .actions .btn { flex: 1 1 0; padding: 0 14px; font-size: 16px; }
  .brand span { font-size: 15px; }
  .steps li::before { font-size: 40px; margin-bottom: 6px; }
  .steps, .plans, .faq, .ask { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot, .tag, .faq summary::after { transition: none; }
  .checks li[data-s="scan"] .dot { animation: none; }
}

/* Rechtliche Seiten */
.legal { max-width: 760px; margin-left: max(0px, calc((100% - 1140px) / 2)); padding-top: 32px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.05; margin-bottom: 24px; }
.legal h2 { font-size: 26px; margin: 32px 0 8px; }
.legal p { max-width: 68ch; color: var(--muted); }
.legal .todo { padding: 12px 14px; background: var(--warn-bg); color: var(--warn-tx); border-radius: 6px; }
.legal .back { margin-top: 40px; }
