/* Gestaltung: klar und sachlich. Systemschriften, keine fremden Dateien. */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #0d1117;
  --muted: #5b6472;
  --line: #e3e6eb;
  --accent: #0b5fff;
  --accent-soft: #eaf1ff;
  --ok: #0a7a4b;
  --ok-soft: #e4f6ed;
  --bad: #c62a1b;
  --bad-soft: #fdecea;
  --warn: #8f5b00;
  --warn-soft: #fff3d6;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(13, 17, 23, .05), 0 8px 28px rgba(13, 17, 23, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f14;
    --surface: #151a21;
    --ink: #eef1f5;
    --muted: #9aa4b2;
    --line: #262d38;
    --accent: #6ea0ff;
    --accent-soft: #14233f;
    --ok: #5fd39d;
    --ok-soft: #10291f;
    --bad: #ff8b7e;
    --bad-soft: #351816;
    --warn: #f2c260;
    --warn-soft: #33290f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2 { font-weight: 750; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; margin: 0; }
p { margin: 0; }
mark { background: none; color: var(--accent); }
[hidden] { display: none !important; }

.site-head, .site-foot, main { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.site-head { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 20px; }
.brand { font-size: 17px; font-weight: 750; letter-spacing: -0.02em; text-decoration: none; }
.brand::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 9px; background: var(--accent); border-radius: 3px; }
.site-head nav a, .site-foot nav a { font-size: 15px; color: var(--muted); margin-left: 24px; text-decoration: none; }
.site-head nav a:hover, .site-foot nav a:hover { color: var(--ink); }
.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 96px; padding-top: 20px; padding-bottom: 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-foot nav a:first-child { margin-left: 0; }

/* ---------- Einstieg */
.hero { display: grid; gap: 36px; padding: 36px 0 20px; }
@media (min-width: 880px) { .hero { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; padding-top: 72px; } }
.kicker { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 99px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); }
.lead { font-size: 20px; color: var(--muted); max-width: 32em; margin-top: 22px; }
.promises { margin: 36px 0 0; display: grid; gap: 14px; }
.promises > div { display: grid; grid-template-columns: 20px 1fr; column-gap: 12px; }
.promises > div::before { content: ""; grid-row: span 2; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230a7a4b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.promises dt { font-weight: 650; }
.promises dd { margin: 0; color: var(--muted); font-size: 16px; }

.drop {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px;
  min-height: 320px; padding: 30px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.drop::before { content: ""; position: absolute; inset: 10px; border: 1.5px dashed var(--line); border-radius: 12px; pointer-events: none; transition: border-color .15s; }
.drop:hover, .drop:focus-within, .drop.over { border-color: var(--accent); transform: translateY(-2px); }
.drop:hover::before, .drop:focus-within::before, .drop.over::before { border-color: var(--accent); }
.drop.over { background: var(--accent-soft); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop-tag { position: absolute; top: 30px; left: 30px; width: 44px; height: 44px; border-radius: 12px; font-size: 0; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 16V5m0 0l-4 4m4-4l4 4M5 19h14' fill='none' stroke='%230b5fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat; }
.drop-title { font-size: 28px; line-height: 1.1; font-weight: 750; letter-spacing: -0.03em; }
.drop-sub { font-size: 15px; color: var(--muted); }
.drop-btn, .btn {
  display: inline-block; margin-top: 14px; padding: 11px 18px; cursor: pointer;
  background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 10px;
  font: 600 15px var(--sans); transition: filter .15s, background .15s;
}
.btn { margin-top: 0; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn:hover, .drop:hover .drop-btn { filter: brightness(1.08); }
.btn.ghost:hover { border-color: var(--ink); filter: none; }
.below-drop { margin-top: 16px; font-size: 15px; color: var(--muted); }
.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.link:hover { text-decoration: underline; }

p.error { margin: 28px 0 0; padding: 14px 18px; border-radius: 12px; color: var(--bad); background: var(--bad-soft); font-weight: 600; }

/* ---------- Ergebnis */
.result { margin-top: 56px; }
.result-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; }
.file-name { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.result-bar .muted { font-size: 14px; margin-top: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.muted { color: var(--muted); }

.checks { display: grid; gap: 16px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 20px; }
@media (min-width: 720px) { .checks { grid-template-columns: 1fr auto; align-items: start; } }
.checks h2 { font-size: 24px; letter-spacing: -0.025em; }
.checks .muted { font-size: 15px; margin-top: 6px; max-width: 46em; }
.stamp { justify-self: start; padding: 6px 14px; border-radius: 99px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.stamp small { font-weight: 500; font-size: 13px; margin-left: 8px; opacity: .8; }
.checks.good .stamp { color: var(--ok); background: var(--ok-soft); }
.checks.mixed .stamp { color: var(--warn); background: var(--warn-soft); }
.checks.bad .stamp { color: var(--bad); background: var(--bad-soft); }
.finding-list { grid-column: 1 / -1; list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.finding-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 10px; background: var(--bg); font-size: 16px; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
li.error .badge { color: var(--bad); background: var(--bad-soft); }
li.warn .badge { color: var(--warn); background: var(--warn-soft); }
.rule { font: 12px/2 var(--mono); color: var(--muted); white-space: nowrap; }

.paper { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: clamp(18px, 4.5vw, 48px); font-variant-numeric: tabular-nums; }
.paper h3 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.paper p { overflow-wrap: anywhere; }
.paper-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.doc-type { font-size: 14px; font-weight: 600; color: var(--accent); }
.doc-number { font-size: 32px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.15; }
.meta { margin: 0; display: grid; gap: 4px; font-size: 15px; }
.meta-row { display: grid; grid-template-columns: 170px 1fr; gap: 12px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; padding: 26px 0; }
.party-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.party .muted { font-size: 14px; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
.lines th { font-size: 13px; font-weight: 600; color: var(--muted); text-align: left; border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; white-space: nowrap; }
.lines td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines .r { text-align: right; white-space: nowrap; padding-right: 0; padding-left: 12px; }
.line-name { display: block; font-weight: 600; }
.line-desc { display: block; font-size: 14px; color: var(--muted); }

.totals { display: flex; justify-content: flex-end; padding: 18px 0 22px; }
.totals table { width: auto; min-width: min(380px, 100%); }
.totals th { text-align: left; font-weight: 400; color: var(--muted); padding: 4px 28px 4px 0; }
.totals td { text-align: right; padding: 4px 0; white-space: nowrap; }
.totals tr.due th, .totals tr.due td { color: var(--ink); font-size: 20px; font-weight: 750; letter-spacing: -0.02em; border-top: 1px solid var(--ink); padding-top: 12px; }
.totals tr.due td { padding-left: 0; }
.payment, .notes { padding-top: 20px; border-top: 1px solid var(--line); margin-top: 6px; }
.notes { margin-top: 20px; }
.notes p { font-size: 15px; white-space: pre-wrap; }

.raw { margin-top: 20px; }
.raw summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--accent); }
.raw pre { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; overflow: auto; max-height: 420px; font: 12.5px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Fristen und Fragen */
.band { margin-top: 104px; }
.band h2 { font-size: clamp(30px, 4.4vw, 46px); max-width: 15em; }
.timeline { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
.timeline li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; color: var(--muted); font-size: 16px; }
.timeline li.next { background: var(--ink); border-color: var(--ink); color: color-mix(in srgb, var(--bg) 75%, transparent); }
.when { font-size: 34px; font-weight: 750; letter-spacing: -0.04em; color: var(--ink); line-height: 1.1; margin-bottom: 12px; }
.when span { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-bottom: 6px; }
.timeline li.next .when { color: var(--bg); }
.timeline li.next .when span { color: inherit; opacity: .7; }
.fine { font-size: 14px; color: var(--muted); max-width: 62em; margin-top: 16px; }

@media (min-width: 880px) {
  .faq { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
  .faq h2 { position: sticky; top: 24px; }
}
.faq-list { margin-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 880px) { .faq-list { margin-top: 0; } }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; font-size: 19px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.3; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-size: 18px; font-weight: 400; color: var(--muted); }
.faq-list details[open] summary::after { content: "–"; background: var(--ink); border-color: var(--ink); color: var(--bg); }
.faq-list details p { color: var(--muted); max-width: 40em; padding: 0 0 22px; }

/* ---------- Rechtsseiten */
.legal { max-width: 720px; margin-left: max(20px, calc((100vw - 1120px) / 2 + 20px)); padding-top: 44px; }
.legal h1 { font-size: 44px; margin-bottom: 20px; }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; margin: 30px 0 8px; }
.todo { background: var(--warn-soft); color: var(--warn); padding: 1px 6px; border-radius: 4px; font-weight: 600; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .finding-list li { grid-template-columns: 1fr; gap: 6px; justify-items: start; }
  .meta-row { grid-template-columns: 1fr; gap: 0; }
  .drop { min-height: 260px; }
  .band { margin-top: 72px; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-head, .site-foot, .hero, .band, .result-bar, .checks, .raw, p.error { display: none !important; }
  main { max-width: none; padding: 0; }
  .result { margin: 0; }
  .paper { border: 0; box-shadow: none; padding: 0; background: #fff; color: #000; }
  .paper .muted, .paper h3, .meta dt, .lines th, .totals th, .line-desc { color: #444; }
  .doc-type { color: #000; }
}

/* ---------- Ratgeber und Programmvergleich */
.page-intro { padding: 56px 0 8px; max-width: 760px; }
.page-intro h1 { font-size: clamp(34px, 5vw, 54px); }
.disclosure { margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--ink); font-size: 15px; }
.band.tight { margin-top: 56px; }
.section-note { color: var(--muted); margin-top: 8px; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; max-width: 760px; }
.checklist li { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.checklist strong { color: var(--ink); }
.tools { display: grid; gap: 14px; margin-top: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tool { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.tool-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tool h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); white-space: nowrap; }
.tag.neutral { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.tool-kind { color: var(--muted); font-size: 15px; }
.tool ul { margin: 0; padding-left: 18px; font-size: 15px; display: grid; gap: 4px; }
.tool-start { font-size: 14px; font-weight: 600; color: var(--ok); margin-top: auto; }
.tool .btn { align-self: flex-start; text-decoration: none; }
.prose { max-width: 760px; color: var(--muted); margin-top: 12px; }
.prose a { color: var(--accent); }
.fine { margin-top: 40px; }
.site-head nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Hinweis unter dem Prüfergebnis */
.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 20px; padding: 18px 22px; border-radius: 16px; background: var(--accent-soft); }
.cta p { margin: 0; max-width: 46em; }
.cta strong { display: block; }
.cta .btn { text-decoration: none; }
@media print { .cta { display: none !important; } }
