:root {
  --navy: #12213f;
  --navy-2: #2c3e6b;
  --gold: #c99b3f;
  --gold-soft: #e8ce96;
  --gold-deep: #a87f2a;
  --green: #2d6a4f;
  --green-bg: #e9f5ef;
  --red: #a3312a;
  --red-bg: #fbebe9;
  --ink: #2f3338;
  --muted: #59616d;
  --line: #d9dce5;
  --light: #f5f6fa;
  --white: #fff;
  --shadow-sm: 0 1px 2px rgba(18, 33, 63, .06);
  --shadow-md: 0 4px 14px rgba(18, 33, 63, .08);
  --shadow-lg: 0 12px 40px rgba(18, 33, 63, .14);
  --shadow-xl: 0 24px 64px rgba(18, 33, 63, .18);
  --radius: 5px;
  --radius-lg: 9px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #eef1f6;
  color: var(--ink);
  font: 15.5px/1.6 system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--navy); }
button, input { font: inherit; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
[hidden] { display: none !important; }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* Kopfbereich: Die Navigation bleibt kompakt, damit der Prüfaufruf sofort sichtbar ist. */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--navy); border-bottom: 2px solid var(--gold); }
.topbar-inner { width: min(var(--max), calc(100% - 48px)); min-height: 68px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--white); }
.brand:hover { color: var(--white); }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--navy); font-size: 13px; font-weight: 850; box-shadow: 0 2px 10px rgba(201, 155, 63, .4); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { color: var(--gold-soft); font-size: 10px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.brand-text span { font-size: 15px; font-weight: 750; }
.topbar-meta { display: flex; align-items: center; gap: 9px; color: #aebbd0; font-size: 12.5px; }
.topbar-meta a { color: #d9e3f3; }
.topbar-meta:hover, .topbar-meta:focus-visible, .topbar-meta a:hover, .topbar-meta a:focus-visible { color: var(--white); }
.topbar-divider { width: 1px; height: 17px; background: rgba(255, 255, 255, .22); }
.live-dot, .kicker-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5fd98a; box-shadow: 0 0 0 4px rgba(95, 217, 138, .16); }

/* Hero und Eingabekarte bilden den primären Einstieg in einer klaren Zweispaltenstruktur. */
.hero { position: relative; overflow: hidden; padding: 64px 0 76px; background: var(--navy); color: var(--white); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .55; pointer-events: none; background-image: linear-gradient(rgba(201, 155, 63, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 155, 63, .06) 1px, transparent 1px); background-size: 64px 64px; }
.hero-orbit { position: absolute; border: 1px solid rgba(201, 155, 63, .18); border-radius: 50%; pointer-events: none; }
.hero-orbit-one { width: 530px; height: 530px; right: -205px; top: 42px; }
.hero-orbit-two { width: 700px; height: 700px; right: -290px; top: -42px; border-color: rgba(201, 155, 63, .09); }
.hero-grid-lines { position: absolute; right: 5%; bottom: -150px; width: 420px; height: 420px; border: 1px solid rgba(255, 255, 255, .06); transform: rotate(18deg); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 470px; align-items: start; gap: 64px; }
.hero-copy { padding-top: 22px; }
.hero-kicker, .section-kicker, .step-eyebrow { color: var(--gold); font-size: 11px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px; border: 1px solid rgba(201, 155, 63, .42); border-radius: 100px; background: rgba(201, 155, 63, .07); }
.hero-title-accent { color: var(--gold-soft); }
.hero-title-adjective { display: inline-block; min-width: 4.5ch; color: var(--white); }
.hero-title-adjective.is-typing { border-right: 2px solid rgba(255, 255, 255, .82); animation: hero-caret 780ms steps(1, end) infinite; }
@keyframes hero-caret { 50% { border-color: transparent; } }
.hero h1 { max-width: 610px; margin: 21px 0 18px; color: var(--white); font-size: clamp(34px, 4.6vw, 53px); line-height: 1.07; letter-spacing: -.035em; }
.hero-lead { max-width: 600px; margin: 0 0 13px; color: #d1dae7; font-size: 17px; line-height: 1.65; }
.hero-detail { max-width: 590px; margin: 0; color: #aebbd0; font-size: 14px; line-height: 1.7; }
.hero-rating { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; color: #f1d895; font-size: 13px; line-height: 1.4; }
.hero-rating-star { color: var(--gold); font-size: 17px; line-height: 1; }
.hero-rating strong { font-weight: 700; letter-spacing: .01em; }
.hero-pricing { display: flex; align-items: flex-start; gap: 9px; max-width: 590px; margin: 17px 0 0; padding: 11px 13px; border: 1px solid rgba(201, 155, 63, .3); border-radius: var(--radius); background: rgba(201, 155, 63, .08); color: #f2d998; font-size: 12.5px; font-weight: 650; line-height: 1.5; }
.hero-pricing span { flex: 0 0 auto; color: var(--gold); font-size: 9px; line-height: 1.65; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 21px; margin-top: 27px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .11); color: #aebbd0; font-size: 12.5px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust b { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: rgba(201, 155, 63, .19); color: var(--gold); font-size: 11px; }

@media (prefers-reduced-motion: reduce) {
  .hero-title-adjective.is-typing { border-right: 0; animation: none; }
}

.step-card { overflow: hidden; min-height: 470px; scroll-margin-top: 88px; background: var(--white); border-top: 4px solid var(--gold); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); color: var(--ink); }
.step-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 27px; background: var(--navy); color: var(--white); }
.step-header h2 { margin: 0; color: var(--white); font-size: 16px; }
.step-badge { color: var(--gold-soft); font-size: 10px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.step-progress { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--light); border-bottom: 1px solid var(--line); }
.progress-segment { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 54px; padding: 8px 6px; border-right: 1px solid var(--line); color: #7c8491; font-size: 10.5px; font-weight: 650; text-align: center; }
.progress-segment:last-child { border-right: 0; }
.progress-segment b { display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #d9dce5; color: #758092; font-size: 11px; }
.progress-segment.active { background: #fff9ed; color: var(--gold-deep); }
.progress-segment.active b { background: var(--gold); color: var(--navy); }
.step-body { padding: 31px 32px 34px; }
.step-eyebrow { margin-bottom: 8px; color: var(--gold-deep); }
.step-body h3 { margin: 0 0 8px; color: var(--navy); font-size: 23px; letter-spacing: -.018em; line-height: 1.2; }
.step-subtitle { margin: 0 0 24px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.scope-note { display: flex; align-items: flex-start; gap: 8px; margin: -10px 0 22px; padding: 10px 12px; border-left: 3px solid var(--gold); background: #fff9ed; color: #6c5a35; font-size: 11.5px; line-height: 1.5; }
.scope-note span { flex: 0 0 auto; color: var(--gold-deep); font-size: 14px; line-height: 1.1; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; color: var(--navy); font-size: 11.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.url-input-row { display: flex; align-items: stretch; gap: 8px; }
.url-input-row input { min-width: 0; flex: 1; }
input { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--light); color: var(--ink); }
input:focus { outline: 0; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(201, 155, 63, .16); }
.copy-button { flex: 0 0 48px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--light); color: var(--navy); cursor: pointer; font-size: 20px; line-height: 1; }
.copy-button:hover { background: #fff9ed; border-color: var(--gold); }
.field-help { margin-top: 7px; color: #7c8491; font-size: 11.5px; line-height: 1.45; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px 21px; border: 0; border-radius: var(--radius); background: var(--navy); color: var(--white); cursor: pointer; font-weight: 750; letter-spacing: .015em; text-decoration: none; transition: background .15s ease, transform .15s ease, box-shadow .15s ease; }
.btn:hover { background: var(--navy-2); color: var(--white); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(18, 33, 63, .22); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; box-shadow: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy); }
.audit-legal { display: flex; align-items: flex-start; gap: 7px; margin: 17px 0 0; color: #7c8491; font-size: 11.5px; line-height: 1.5; text-align: center; }
.audit-legal span { color: var(--gold-deep); font-size: 14px; line-height: 1.1; }
.status { display: none; margin-top: 18px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); white-space: pre-wrap; }
.status.visible { display: block; }
.status.error { border-color: #e0b3b0; background: var(--red-bg); color: #7a2520; }
.status.ok { border-color: #bfe0cc; background: var(--green-bg); color: #1f4a34; }

/* Die Code-Stufe bleibt bewusst klein: sie bestätigt nur den Auftrag und zeigt
   weder den Code noch interne Verifizierungsdaten in der Seite an. */
.step-panel { display: none; }
.step-panel.active { display: block; animation: panel-in .2s ease; }
@keyframes panel-in { from { opacity: .3; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.progress-segment.done { background: #f0f8f3; color: var(--green); }
.progress-segment.done b { background: var(--green); color: var(--white); }
.verification-note { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 22px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--light); color: var(--muted); font-size: 12px; }
.verification-note strong { overflow-wrap: anywhere; color: var(--navy); font-weight: 750; }
.verification-code { display: block; width: 100%; max-width: none; letter-spacing: .28em; text-align: center; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.28em; font-weight: 750; }
.code-actions { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 9px; }
.step-back { border: 1px solid var(--line); background: var(--white); color: var(--navy-2); }
.step-back:hover { background: #f5f7fb; color: var(--navy-2); }
.start-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.start-actions .btn { flex: 1 1 190px; }
.resend-button { display: block; margin: 16px auto 0; padding: 0; border: 0; background: transparent; color: var(--navy-2); cursor: pointer; font-size: 12px; text-decoration: underline; }
.resend-button:disabled { color: #8c94a1; cursor: wait; text-decoration: none; }
.success-banner { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 22px; padding: 14px 15px; border: 1px solid #bfe0cc; border-left: 4px solid var(--green); border-radius: var(--radius); background: var(--green-bg); color: #1f4a34; }
.success-banner h3 { margin: 0 0 4px; color: #1f4a34; font-size: 17px; }
.success-banner p { margin: 0; color: #315d47; font-size: 13px; line-height: 1.5; }
.success-icon { display: grid; flex: 0 0 26px; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: var(--white); font-weight: 800; }

/* Das Ergebnis bleibt eine eigenständige Karte und wird erst nach einem echten Lauf eingeblendet. */
.report-panel { margin-top: 26px; padding: 29px 32px 31px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.report-panel h2, .recent-section h2, .section-header h2, .cta-block h2 { margin: 7px 0 8px; color: var(--navy); font-size: 27px; line-height: 1.2; letter-spacing: -.02em; }
.report-panel p { max-width: 800px; margin: 0; color: var(--muted); }
.report-panel p.report-pricing { margin-top: 9px; color: var(--navy-2); font-size: 12.5px; font-weight: 700; }
.result-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; margin-top: 21px; }
.metric { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--light); }
.metric strong { display: block; overflow-wrap: anywhere; color: var(--navy); font-size: 22px; line-height: 1.2; }
.metric span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.report-link { display: inline-block; margin-top: 16px; color: var(--navy-2); font-weight: 700; text-decoration: underline; }
.available-report { display: flex; align-items: flex-start; gap: 14px; margin-top: 22px; padding: 16px 18px; border: 1px solid #c9d5e5; border-left: 4px solid var(--navy-2); border-radius: var(--radius); background: #f4f7fb; }
.available-report-icon, .pdf-icon { display: inline-grid; flex: 0 0 auto; place-items: center; width: 40px; height: 46px; border: 2px solid #c83d35; border-radius: 4px; background: #fff; color: #b52f29; font-size: 9px; font-weight: 850; letter-spacing: .04em; line-height: 1; }
.available-report-label { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.available-report strong { display: block; color: var(--navy); font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.available-report p { margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.report-purchase { margin-top: 21px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #f8fafc; }
.report-purchase h3 { margin: 0 0 6px; color: var(--navy); font-size: 17px; }
.report-purchase > p { font-size: 13px; line-height: 1.55; }
.payment-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.payment-product-card { display: flex; min-width: 0; flex-direction: column; justify-content: space-between; gap: 18px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.payment-product-card-featured { border-color: var(--gold); box-shadow: inset 0 3px 0 var(--gold); }
.payment-product-card-head { display: flex; align-items: flex-start; gap: 12px; }
.payment-product-card-head > div { min-width: 0; }
.payment-product-card h4 { margin: 1px 0 6px; color: var(--navy); font-size: 16px; line-height: 1.3; }
.payment-product-card p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.payment-product-feature { display: inline-block; margin-top: 9px; color: var(--gold-deep); font-size: 11px; font-weight: 800; }
.payment-product-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.payment-price { color: var(--navy); font-size: 18px; white-space: nowrap; }
.payment-product { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 0; padding: 11px 13px; text-align: center; }
.payment-product.selected { outline: 2px solid rgba(18, 33, 63, .18); outline-offset: 2px; }
.pdf-icon-small { width: 22px; height: 25px; border-width: 1px; font-size: 6px; }
.coupon-row { margin-top: 16px; }
.coupon-row > label { display: block; margin-bottom: 6px; color: var(--navy-2); font-size: 12px; font-weight: 750; }
.coupon-input-wrap { display: flex; align-items: stretch; gap: 20px; }
.coupon-input-wrap input { min-width: 200px; flex: 1; }
.coupon-input-wrap .btn { width: auto; flex: 0 0 auto; white-space: nowrap; }
.payment-summary { min-height: 22px; margin-top: 13px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.payment-summary.ok { color: #1f4a34; }
.payment-summary.error { color: #7a2520; }
.payment-note { margin-top: 11px !important; font-size: 11.5px !important; }
.payment-note a { color: var(--navy-2); text-decoration: underline; }
.payment-rights { display: flex; align-items: flex-start; gap: 9px; margin-top: 17px; color: var(--ink); font-size: 12px; line-height: 1.5; }
.payment-rights input { width: 18px; height: 18px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--navy); }
.payment-rights input:focus-visible { outline: 3px solid rgba(201, 155, 63, .45); outline-offset: 2px; }
.report-downloads { margin-top: 21px; padding-top: 17px; border-top: 1px solid var(--line); }
.report-downloads h3 { margin: 0 0 9px; color: var(--navy); font-size: 16px; }
.report-downloads a { display: block; margin: 7px 0; color: var(--navy-2); font-weight: 650; text-decoration: underline; }
.report-note { margin-top: 14px !important; color: var(--muted); font-size: 12.5px; }

/* Die Liste zeigt nur die von der API gelieferten, begrenzten Metadaten. */
.recent-section { position: relative; overflow: hidden; padding: 74px 0 68px; border-top: 1px solid var(--line); background: #eef1f6; }
.recent-section::after { content: ""; position: absolute; right: -125px; top: -210px; width: 500px; height: 500px; border: 1px solid rgba(18, 33, 63, .06); border-radius: 50%; pointer-events: none; }
.recent-header { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.recent-header > div { max-width: 760px; }
.recent-header h2 { margin-bottom: 9px; }
.recent-header p { margin: 0; color: var(--muted); font-size: 14px; }
.recent-detail { max-width: 760px; margin-top: 8px !important; font-size: 13px !important; line-height: 1.55; }
.recent-points { display: grid; gap: 5px; margin: 13px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12.5px; }
.recent-points li { position: relative; padding-left: 21px; }
.recent-points li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 800; }
.recent-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.recent-search { display: block; min-width: 280px; }
.recent-search label { color: var(--navy-2); font-size: 10.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.recent-search-box { position: relative; }
.recent-search-box input { min-height: 42px; padding: 10px 36px 10px 35px; border-radius: var(--radius); background: var(--white); font-size: 12.5px; }
.recent-search-box input::-webkit-search-cancel-button { display: none; }
.recent-search-icon { position: absolute; z-index: 1; left: 12px; top: 50%; display: grid; place-items: center; width: 17px; height: 17px; color: var(--gold-deep); pointer-events: none; transform: translateY(-50%); }
.recent-search-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.recent-search-clear { position: absolute; right: 6px; top: 50%; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1; transform: translateY(-50%); }
.recent-search-clear:hover { background: var(--light); color: var(--navy); }
.recent-search-count { color: var(--muted); font-size: 11px; line-height: 1.35; }
.recent-refresh { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--navy-2); cursor: pointer; font-size: 12px; font-weight: 700; }
.recent-refresh:hover { border-color: var(--navy); background: var(--light); }
.recent-refresh span { font-size: 17px; line-height: 1; }
.recent-refresh.loading span { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.recent-list { position: relative; z-index: 1; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.recent-list-header, .recent-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px 130px 180px; align-items: center; gap: 20px; padding: 12px 20px; }
.recent-list-header { border-bottom: 1px solid var(--line); background: var(--light); color: #7c8491; font-size: 10.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.recent-row { min-height: 70px; border-bottom: 1px solid #edf0f4; }
.recent-row:last-child { border-bottom: 0; }
.recent-row:hover { background: #fafbfd; }
.recent-target { display: flex; align-items: center; gap: 12px; min-width: 0; }
.recent-initial { flex: 0 0 36px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #12213f; color: #fff; font-size: 12px; font-weight: 800; }
.recent-target-text { min-width: 0; }
.recent-domain { overflow: hidden; color: var(--navy); font-size: 14px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.recent-url { display: block; overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.recent-url:hover { color: var(--navy-2); text-decoration: underline; text-underline-offset: 2px; }
.recent-date, .recent-state { color: var(--muted); font-size: 12px; }
.recent-pages { color: var(--navy-2); font-size: 12px; font-weight: 650; }
.recent-state { color: var(--muted); font-weight: 400; }
.recent-empty { padding: 28px 20px; color: var(--muted); font-size: 13px; text-align: center; }
.recent-pager { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 16px; }
.pager-button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--navy-2); cursor: pointer; font-size: 12px; font-weight: 700; }
.pager-button:hover:not(:disabled) { border-color: var(--navy); background: var(--light); }
.pager-button:disabled { cursor: not-allowed; opacity: .42; }
.pager-button span[aria-hidden="true"] { color: var(--gold-deep); font-size: 16px; line-height: 1; }
.pager-status { min-width: 96px; color: var(--muted); font-size: 12px; text-align: center; }

/* Erklärungsteil schafft Orientierung, ohne den eigentlichen Prüfablauf zu überladen. */
.explain-section { padding: 76px 0 84px; background: var(--white); }
.section-header { max-width: 760px; margin-bottom: 30px; }
.section-header h2 { margin-top: 8px; }
.section-header > p { margin: 0; color: var(--muted); font-size: 15px; }
.section-header > p.explain-disclaimer { margin-top: 13px; font-size: 13.5px; line-height: 1.6; }
.explain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.explain-card { min-height: 188px; padding: 22px 21px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fbfcfe; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.explain-card:hover { border-color: var(--gold-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.explain-number { display: block; margin-bottom: 19px; color: var(--gold-deep); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.explain-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 16px; }
.explain-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.58; }
.cta-block { display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: center; gap: 30px; margin-top: 35px; padding: 28px 30px; border-radius: var(--radius-lg); background: var(--navy); color: var(--white); }
.cta-block h2 { margin-top: 7px; color: var(--white); font-size: 24px; }
.cta-block p { max-width: 650px; margin: 0; color: #c8d2e0; font-size: 13.5px; }
.cta-button { width: auto; min-width: 205px; justify-self: end; }
.site-footer { padding: 24px 0 30px; background: var(--navy); color: #aebbd0; font-size: 12px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 17px; }
.footer-links a { color: #d9e3f3; text-decoration: underline; text-underline-offset: 2px; }
.footer-links a:hover { color: var(--gold-soft); }

/* Rechtliche Seiten bleiben im gleichen visuellen System wie die Startseite,
   damit der Nutzer beim Wechsel aus dem Footer den Kontext nicht verliert. */
.legal-hero { position: relative; overflow: hidden; padding: 56px 0 96px; background: var(--navy); color: var(--white); }
.legal-hero::before { content: ""; position: absolute; inset: 0; opacity: .55; pointer-events: none; background-image: linear-gradient(rgba(201, 155, 63, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 155, 63, .06) 1px, transparent 1px); background-size: 64px 64px; }
.legal-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -210px; top: -160px; border: 1px solid rgba(201, 155, 63, .18); border-radius: 50%; pointer-events: none; }
.legal-hero .container { position: relative; z-index: 1; }
.legal-hero h1 { max-width: 760px; margin: 0 0 14px; color: var(--white); font-size: clamp(31px, 4vw, 46px); line-height: 1.12; letter-spacing: -.03em; }
.legal-hero p { max-width: 720px; margin: 0; color: #c8d2e0; font-size: 16px; }
.legal-main { padding: 0 0 78px; background: #eef1f6; }
.legal-sheet, .legal-card { position: relative; z-index: 2; margin-top: -56px; padding: 42px 48px 50px; border-top: 4px solid var(--gold); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-lg); }
.legal-stamp { margin: 0 0 30px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.legal-sheet h2, .legal-card h2 { margin: 34px 0 9px; color: var(--navy); font-size: 20px; line-height: 1.3; letter-spacing: -.012em; }
.legal-sheet h2:first-of-type, .legal-card h2:first-child { margin-top: 0; }
.legal-sheet h2::before, .legal-card h2::before { display: block; width: 34px; height: 2px; margin-bottom: 13px; border-radius: 2px; background: var(--gold); content: ""; }
.legal-sheet p, .legal-card p { margin: 0 0 13px; color: var(--ink); }
.legal-sheet a, .legal-card a { color: var(--navy-2); text-decoration: underline; text-underline-offset: 3px; }
.legal-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 18px; margin-top: -56px; }
.legal-grid .legal-card { margin-top: 0; padding: 38px 40px 44px; }
.legal-grid .legal-card:first-child > h2 { margin-bottom: 19px; }
.legal-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.legal-grid .legal-card:first-child .legal-row { padding-top: 20px; padding-bottom: 20px; }
.legal-grid .legal-card:first-child .legal-row:first-of-type { padding-top: 0; }
.legal-row:first-of-type { padding-top: 0; }
.legal-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.legal-label { padding-top: 3px; color: var(--gold-deep); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.legal-value { color: var(--navy); font-size: 16px; font-weight: 700; word-break: break-word; }
.legal-sub { margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.legal-note { margin-top: 24px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); background: var(--light); color: var(--muted); font-size: 13px; }
.legal-block { margin-bottom: 28px; }
.legal-block:last-child { margin-bottom: 0; }
.legal-block h3 { margin: 0 0 9px; color: var(--gold-deep); font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.legal-block p { color: var(--muted); font-size: 13.5px; }
.legal-hours { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; color: var(--muted); font-size: 13.5px; }
.legal-hours b { color: var(--navy); text-align: right; }
.legal-persons { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 14px 0 8px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.legal-persons > div { padding: 17px 19px; background: var(--white); }
.legal-persons span { display: block; margin-bottom: 4px; color: var(--gold-deep); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.legal-persons b { color: var(--navy); font-size: 15px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 38px; }
  .hero-copy { padding-top: 0; }
  .step-card { max-width: 600px; }
  .explain-grid { grid-template-columns: repeat(2, 1fr); }
  .result-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .container, .topbar-inner { width: min(100% - 28px, var(--max)); }
  .topbar-inner { min-height: 62px; }
  .topbar-meta span:not(.live-dot), .topbar-divider { display: none; }
  .topbar-meta a { font-size: 11px; }
  .hero { padding: 43px 0 52px; }
  .hero h1 { font-size: 36px; }
  .hero-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .step-body, .report-panel { padding: 24px 20px; }
  .step-progress { grid-template-columns: 1fr; }
  .progress-segment { min-height: 35px; justify-content: flex-start; padding-left: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .progress-segment:last-child { border-bottom: 0; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .payment-products { grid-template-columns: 1fr; }
  .payment-product-card-foot { align-items: stretch; flex-direction: column; }
  .payment-product { width: 100%; }
  .coupon-input-wrap { align-items: stretch; flex-direction: column; gap: 10px; }
  .coupon-input-wrap input { min-width: 0; }
  .coupon-input-wrap .btn { width: 100%; }
  .code-actions { grid-template-columns: 1fr; }
  .verification-code { max-width: none; }
  .recent-section, .explain-section { padding: 53px 0; }
  .recent-header { align-items: flex-start; flex-direction: column; }
  .recent-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .recent-search { width: 100%; min-width: 0; }
  .recent-refresh { justify-content: center; }
  .recent-list-header { display: none; }
  .recent-row { grid-template-columns: 1fr; gap: 5px; padding: 16px 18px; }
  .recent-date::before { content: "Aktualisiert: "; color: var(--navy); font-weight: 650; }
  .recent-pages::before { content: "PDF-Seiten: "; color: var(--navy); font-weight: 650; }
  .recent-state::before { content: "Status: "; color: var(--navy); font-weight: 650; }
  .recent-pager { justify-content: space-between; gap: 8px; }
  .pager-button { padding: 8px 10px; }
  .pager-button span:not([aria-hidden="true"]) { display: none; }
  .pager-status { min-width: 82px; }
  .explain-grid { grid-template-columns: 1fr; }
  .cta-block { grid-template-columns: 1fr; gap: 21px; padding: 24px 20px; }
  .cta-button { justify-self: stretch; width: 100%; }
  .footer-inner { display: grid; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-sheet, .legal-grid .legal-card { padding: 32px 24px 38px; }
  .legal-hero { padding: 44px 0 84px; }
  .legal-hero h1 { font-size: 30px; }
  .legal-row { grid-template-columns: 1fr; gap: 4px; }
  .legal-persons { grid-template-columns: 1fr; }
}
