/* Öffentliche Angebots-Seite – eigenständig, ohne SPA. Mobil zuerst. Helles Soft-UI wie Startseite und Portal. */
@font-face { font-family: "Geist"; src: url("/static/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #d6d9de; --surface: #eceef1; --surface-2: #e2e5e9; --border: #ccd1d8; --text: #15171c; --muted: #4f5561;
  --brand: #26292f; --accent: #26292f; --accent-soft: #d3d7de; --warm: #e8892b; --danger: #c62828; --danger-soft: #fbe2e2;
  --ok: #1d6b30; --ok-soft: #dcefe0; --radius: 22px; --tap: 52px; --hi: rgb(255 255 255 / 70%);
  --shadow: 8px 8px 20px rgb(136 144 158 / 42%), -8px -8px 18px rgb(255 255 255 / 82%);
  --press: inset 3px 3px 7px rgb(136 144 158 / 42%), inset -3px -3px 7px rgb(255 255 255 / 85%);
  --glow: 0 14px 26px -10px #e8892b, 0 4px 10px -2px rgb(20 22 26 / 30%);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font: 16px/1.5 "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text);
  background: radial-gradient(900px 600px at 30% 0%, rgb(255 255 255 / 55%), transparent 65%), linear-gradient(#d9dce1, #caced5) fixed;
  min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); }
h1 { font-size: 1.4rem; line-height: 1.2; margin: 4px 0 6px; }
h2 { font-size: 1.08rem; margin: 0 0 8px; }
p { margin: 0 0 10px; white-space: pre-line; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 16px; padding-bottom: 24px; }
.muted { color: var(--muted); } .center { text-align: center; } .small { font-size: .86rem; }
.top { background: rgb(236 238 241 / 84%); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--text); position: sticky; top: 0; z-index: 5;
  border-bottom: 1px solid var(--hi); box-shadow: 0 10px 26px rgb(120 128 142 / 30%); }
.top-in { max-width: 760px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.brand { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call { background: linear-gradient(180deg, #363940, #17191d); box-shadow: var(--glow); color: #fff; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 10px 16px; }
.foot { color: var(--muted); font-size: .82rem; padding-bottom: 24px; }
.box { background: var(--surface); border: 1px solid var(--hi); border-radius: var(--radius); padding: 18px; margin: 0 0 16px; box-shadow: var(--shadow); }
.box.ok { background: var(--ok-soft); border-color: transparent; }
.box.danger { background: var(--danger-soft); border-color: var(--danger); }
.box.note { background: var(--accent-soft); border-color: transparent; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 8px 0 0; font-size: .92rem; }
.meta dt { color: var(--muted); } .meta dd { margin: 0; font-weight: 600; }
.items { width: 100%; border-collapse: collapse; font-size: .92rem; }
.items th, .items td { padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; }
.items th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.items .num { text-align: right; white-space: nowrap; }
.items tr.title td { background: var(--surface-2); font-weight: 700; }
.items tr.sum td { font-weight: 700; border-bottom: 2px solid var(--border); }
.items tr.opt td { color: var(--muted); }
.items .sub { display: block; color: var(--muted); font-size: .8rem; white-space: pre-line; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 6px; padding: 1px 6px; background: var(--surface-2); margin-right: 4px; }
.totals { width: 100%; font-size: .95rem; border-collapse: collapse; }
.totals td { padding: 4px 0; } .totals td:last-child { text-align: right; white-space: nowrap; }
.totals tr.grand td { font-weight: 800; font-size: 1.08rem; border-top: 2px solid var(--text); padding-top: 8px; }
@media (max-width: 560px) {
  .items thead { display: none; }
  .items tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; border-bottom: 1px solid var(--border); padding: 8px 0; }
  .items td { border: 0; padding: 0 4px; }
  .items td.pos { display: none; }
  .items td.desc { grid-column: 1 / -1; }
  .items td.qty { color: var(--muted); text-align: left; }
  .items td.ep { display: none; }
}
label.field { display: block; margin: 0 0 12px; font-weight: 600; }
input[type=text], textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid transparent; border-radius: 16px;
  background: var(--surface-2); box-shadow: var(--press); color: var(--text); min-height: var(--tap); margin-top: 4px; }
textarea { min-height: 90px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 0 0 12px; }
.check input { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.sign { border: 2px dashed var(--border); border-radius: 18px; background: #f7f8f9; box-shadow: var(--press); touch-action: none; width: 100%; height: 170px; display: block; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { font: inherit; font-weight: 700; border: 0; border-radius: 999px; min-height: var(--tap); padding: 0 20px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn-primary { background: linear-gradient(180deg, #363940, #17191d); color: #fff; flex: 1; box-shadow: var(--glow); }
.btn-ghost { background: var(--surface); color: var(--text); box-shadow: 4px 4px 10px rgb(136 144 158 / 38%), -4px -4px 10px rgb(255 255 255 / 80%); }
.btn:disabled { opacity: .55; cursor: default; }
.err { color: var(--danger); font-weight: 600; }

/* Widerrufsbelehrung (Verbraucher) */
.legal summary { min-height: 44px; display: flex; align-items: center; }
.legal p { white-space: pre-line; }
.legal .form-text { border-top: 1px solid var(--border); padding-top: 10px; }
.block { display: block; font-weight: 400; }

/* Widerrufsfunktion (§ 356a BGB) */
input[type=email] { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid transparent; border-radius: 16px;
  background: var(--surface-2); box-shadow: var(--press); color: var(--text); min-height: var(--tap); margin-top: 4px; }
.box.withdraw { border: 2px solid var(--danger); }
.btn-danger { background: var(--danger); color: #fff; flex: 1; }
.check.sub-check { margin-left: 34px; }
.receipt dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 8px 0; }
.receipt dt { color: var(--muted); } .receipt dd { margin: 0; font-weight: 600; }
.receipt blockquote { margin: 8px 0; padding: 10px 14px; border-left: 4px solid var(--border); background: var(--surface-2); border-radius: 10px; white-space: pre-line; }
@media print { .top, .foot, .noprint { display: none !important; } .box { box-shadow: none; } }
