:root {
  --ink: #14213d;
  --accent: #d62839;
  --accent-dark: #a81e2c;
  --bg: #f3f5f9;
  --card: #ffffff;
  --line: #dde2ec;
  --muted: #5c6780;
  --ok: #1e7b4a;
  --warn: #b26a00;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 24px 16px 56px; }
.wrap.narrow { max-width: 680px; }
.hero { margin: 8px 0 20px; }
.kicker { margin: 0; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
h1 { margin: 4px 0 0; font-size: 1.7rem; line-height: 1.2; }
h2 { margin: 0 0 12px; font-size: 1.15rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.lead { margin-top: 0; font-size: 1.05rem; }
label { display: block; font-weight: 600; margin: 16px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: inherit;
  border: 1px solid #b9c1d3; border-radius: 8px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
small, .small, .muted { color: var(--muted); font-size: .875rem; }
small { display: block; margin-top: 4px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 18px 0 0; }
label.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  display: inline-block; padding: 11px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  color: #fff; background: var(--accent); border: 0; border-radius: 8px;
}
.btn:hover { background: var(--accent-dark); }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid #b9c1d3; }
.btn.secondary:hover { background: #eef1f7; }
.btn.small { padding: 6px 12px; font-size: .85rem; }
.alert { padding: 12px 16px; border-radius: 8px; margin: 0 0 16px; background: #fdecee; border: 1px solid #f3b8be; color: #7a1420; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert.ok { background: #e8f6ee; border-color: #a9dcc0; color: #14573a; }
.alert.warn { background: #fff4e0; border-color: #f0cf94; color: #6e4300; }
.success h2 { color: var(--ok); }
.voucher {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.7rem; font-weight: 700; letter-spacing: .04em;
  background: #f3f5f9; border: 2px dashed var(--accent); border-radius: 10px;
  padding: 14px 18px; text-align: center; word-break: break-all;
}
.steps { padding-left: 20px; }
.steps li { margin: 6px 0; }

/* Report */
.topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.topbar nav { display: flex; gap: 8px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--muted); font-size: .85rem; }
.stat span { display: block; font-size: 1.8rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.tablehead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.tablehead h2 { margin: 0; }
.tablehead input { max-width: 320px; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.addr { min-width: 170px; }
td.rowform { min-width: 330px; }
form.inline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
form.inline select { width: auto; padding: 6px 8px; }
form.inline input[type=text] { flex: 1; min-width: 120px; padding: 6px 8px; }
select.st-offen { border-color: #e2a04a; }
select.st-gestellt { border-color: #4a7de2; }
select.st-bezahlt { border-color: var(--ok); }
code { background: #eef1f7; padding: 2px 6px; border-radius: 4px; font-size: .85rem; }

@media print {
  body { background: #fff; }
  .noprint { display: none !important; }
  .card, .stat { border: 0; padding: 0; }
  .wrap { max-width: none; padding: 0; }
  form.inline input, form.inline select { border: 0; padding: 0; background: none; appearance: none; }
  td, th { font-size: 9pt; }
}
