/* Vermieter leicht – shared styles (no external fonts/CDNs). */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1b2430;
  --muted: #52606d;
  --border: #d5dbe1;
  --brand: #1d5f8a;
  --brand-dark: #154866;
  --accent: #2f855a;
  --warn-bg: #fff7e6;
  --warn-border: #d69e2e;
  --err-bg: #fdecec;
  --err-border: #c53030;
  --info-bg: #ebf4fb;
  --radius: 10px;
  --focus: 0 0 0 3px rgba(29, 95, 138, .35);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); line-height: 1.55; font-size: 16px; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* header / footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.logo span { color: var(--brand); }
.site-footer { margin-top: 48px; padding: 28px 0 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; background: var(--surface); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 44px; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn.secondary { background: var(--surface); color: var(--brand); }
.btn.secondary:hover { background: var(--info-bg); color: var(--brand-dark); }
.btn.success { background: var(--accent); border-color: var(--accent); }
.btn.small { padding: 6px 12px; min-height: 34px; font-size: .9rem; }
.btn.link { background: none; border: none; color: var(--brand); padding: 4px; min-height: 0; font-weight: 500; text-decoration: underline; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* landing */
.hero { padding: 48px 0 32px; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.2; margin: 0 0 14px; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.deadline-badge { display: inline-block; background: var(--warn-bg); border: 1px solid var(--warn-border); color: #744210; padding: 4px 10px; border-radius: 999px; font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; align-items: center; }
.price-note { color: var(--muted); font-size: .95rem; }
section { padding: 28px 0; }
section h2 { font-size: 1.5rem; margin: 0 0 16px; letter-spacing: -.01em; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps-list li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 14px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
ul.checks { list-style: none; padding: 0; }
ul.checks li { padding-left: 26px; position: relative; margin-bottom: 6px; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
table.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
table.compare th, table.compare td { border: 1px solid var(--border); padding: 9px 10px; text-align: left; vertical-align: top; font-size: .95rem; }
table.compare th { background: var(--info-bg); }
.table-scroll { overflow-x: auto; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; }
.notice { background: var(--info-bg); border-left: 4px solid var(--brand); padding: 10px 14px; border-radius: 6px; }
.draft-banner { background: var(--warn-bg); border: 1px dashed var(--warn-border); padding: 8px 12px; border-radius: 6px; font-size: .9rem; margin: 16px 0; }
.legal h1 { margin-top: 28px; }
.legal h2 { font-size: 1.2rem; margin-top: 24px; }

/* wizard */
.wizard { padding: 24px 0 40px; }
.progress { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; flex-wrap: wrap; }
.progress li { flex: 1 1 120px; }
.progress button { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: .88rem; color: var(--muted); cursor: pointer; }
.progress button[aria-current="step"] { border-color: var(--brand); color: var(--brand); font-weight: 700; background: var(--info-bg); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.panel h2 { margin: 0 0 4px; font-size: 1.35rem; }
.panel .hint { color: var(--muted); margin: 0 0 18px; }
fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px 6px; margin: 0 0 16px; }
legend { font-weight: 700; padding: 0 6px; }
.fields { display: grid; gap: 12px 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.field label { font-weight: 600; font-size: .93rem; }
.field small { color: var(--muted); font-size: .82rem; }
input[type=text], input[type=number], input[type=date], select, textarea {
  font: inherit; padding: 9px 10px; border: 1px solid #a9b4be; border-radius: 6px; background: #fff; color: var(--text); min-height: 42px; width: 100%;
}
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: var(--focus); outline: none; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 10px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.radio-group { display: grid; gap: 8px; margin-bottom: 12px; }
.radio-group label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.radio-group input { margin-top: 4px; }
.cost-row { border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.cost-row header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 6px; }
.cost-row header strong { font-size: .98rem; }
.cost-row .help { color: var(--muted); font-size: .84rem; margin: 0 0 8px; }
.add-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.add-row select { max-width: 420px; }
.nav-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* result */
.msg { border-radius: 8px; padding: 10px 14px; margin: 0 0 10px; }
.msg.error { background: var(--err-bg); border-left: 4px solid var(--err-border); }
.msg.warn { background: var(--warn-bg); border-left: 4px solid var(--warn-border); }
.msg.info { background: var(--info-bg); border-left: 4px solid var(--brand); }
.msg ul { margin: 4px 0 0; padding-left: 20px; }
.checklist { list-style: none; padding: 0; margin: 0 0 14px; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 4px; }
.checklist li.ok::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.checklist li.no::before { content: "✗"; position: absolute; left: 4px; color: var(--err-border); font-weight: 700; }
.preview { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; padding: 16px; background: #fff; }
.preview::after { content: "VORSCHAU"; position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(3rem, 12vw, 7rem); font-weight: 800; color: rgba(29, 95, 138, .09); transform: rotate(-24deg); pointer-events: none; letter-spacing: .1em; }
.preview.unlocked::after { content: none; }
table.result { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.result th, table.result td { border-bottom: 1px solid var(--border); padding: 7px 6px; text-align: left; vertical-align: top; }
table.result td.num, table.result th.num { text-align: right; white-space: nowrap; }
table.result tfoot td { font-weight: 700; border-top: 2px solid var(--text); }
.balance { font-size: 1.25rem; font-weight: 700; margin: 12px 0; }
.unlock-box { margin-top: 18px; padding: 16px; border: 2px solid var(--brand); border-radius: var(--radius); background: var(--info-bg); }
.consent { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (max-width: 640px) {
  .panel { padding: 16px; }
  .hero { padding-top: 30px; }
  table.result { font-size: .82rem; }
}
@media print {
  .site-header, .site-footer, .progress, .nav-row, .unlock-box { display: none; }
}
