/* direktbon start pages — same language as direktbon.de: white, dark ink, one orange
   accent, square controls, hard offset shadows. No pills, nothing rounded (storefront D7). */
:root {
  --ink: #0F151E; --ink-body: #3F3C38; --ink-2: #59636F; --line: #E7E4DE;
  --orange: #FC4C1F; --orange-soft: #FFF0EA; --wa: #25D366; --warn: #B42318; --warn-soft: #FFF5F4;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.5 var(--font); color: var(--ink-body); background: #fff; }
:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 3px; }
h1 { color: var(--ink); font-size: 28px; line-height: 1.15; letter-spacing: -.02em; margin: 8px 0 12px; }
a { color: var(--ink); }

.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px;
       padding: 14px 16px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.02em; }
.steps { font-size: 14px; color: var(--ink-2); }
.page { max-width: 640px; margin: 0 auto; padding: 16px 16px 40px; }
.lead { font-size: 18px; margin: 0 0 20px; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 20px; max-width: 640px; margin: 0 auto;
        padding: 20px 16px 32px; border-top: 1px solid var(--line); font-size: 14px; }
.foot-help { font-weight: 700; margin-right: auto; }

.stack { display: grid; gap: 18px; }
fieldset { margin: 0; padding: 16px; border: 1px solid var(--line); display: grid; gap: 12px; min-width: 0; }
legend { padding: 0 4px; font-weight: 700; color: var(--ink); font-size: 18px; }
label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); }
input[type=text], input[type=email], input[type=tel], input:not([type]) {
  font: inherit; font-weight: 400; min-height: 48px; padding: 10px 12px; width: 100%;
  border: 1.5px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); }

/* Choices: square boxes, the whole row is the target. */
.option { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px;
          border: 1.5px solid var(--ink); font-weight: 600; cursor: pointer; }
.option input { width: 22px; height: 22px; margin: 0; accent-color: var(--orange); flex: none; }
.option:has(input:checked) { background: var(--orange-soft); box-shadow: 3px 3px 0 var(--ink); }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 12px; font-weight: 600; min-height: 44px; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--orange); }

.field-msg { font-size: 15px; font-weight: 700; color: var(--warn); }
.field-msg:empty { display: none; }
.field.invalid input, .choice.invalid .option { border-color: var(--warn); background: var(--warn-soft); }
.field.invalid input { outline: 2px solid var(--warn); outline-offset: -1px; }
.error { color: var(--warn); font-weight: 700; }
.hint { margin: 0; font-size: 15px; color: var(--ink-2); }
.note { font-size: 14px; color: var(--ink-2); margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
       padding: 14px 26px; border: 0; font: inherit; font-size: 17px; font-weight: 800;
       background: #16181D; color: #fff; text-decoration: none; cursor: pointer;
       box-shadow: 4px 4px 0 rgba(252, 76, 31, .9); transition: transform 80ms ease, box-shadow 80ms ease; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(252, 76, 31, .9); }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-wa { background: var(--wa); color: var(--ink); box-shadow: 4px 4px 0 #16181D; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

.panel { border: 1px solid var(--line); padding: 16px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.big { margin: 4px 0 0; font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.summary { border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--orange); }
.summary p { margin: 0; }
.summary-today { font-size: 20px; font-weight: 800; color: var(--ink); }

/* Honeypot: off-screen for people, still in the form for bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 720px) {
  h1 { font-size: 34px; }
  .page { padding-top: 32px; }
}

/* The contract: readable inside the page, scrolls on its own on small screens. */
.docs { max-height: 60vh; overflow: auto; border: 1.5px solid var(--ink); padding: 16px; margin: 0 0 20px; font-size: 15px; background: #fff; }
.docs h2 { font-size: 20px; color: var(--ink); margin: 0 0 8px; }
.docs h3 { font-size: 16px; color: var(--ink); margin: 16px 0 4px; }
.docs .doc + .doc { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.docs .draft { border: 1.5px solid var(--warn); color: var(--warn); padding: 8px 10px; font-weight: 700; }

.btn-plain { background: #fff; color: var(--ink); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }

/* Einrichtung: section list, chips, notices. */
h2 { color: var(--ink); font-size: 20px; margin: 0 0 8px; }
.crumb { margin: 0; font-size: 15px; }
.progress { margin: 0 0 8px; }
.sections { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
               min-height: 56px; padding: 12px 14px; border: 1.5px solid var(--ink);
               color: var(--ink); text-decoration: none; font-weight: 700; }
.section-row:hover { background: var(--orange-soft); }
.section-row.is-done { border-color: var(--line); font-weight: 600; }
.chip { flex: none; font-size: 13px; font-weight: 700; padding: 4px 8px; border: 1px solid var(--line); color: var(--ink-2); }
.chip-open { border-color: var(--orange); color: var(--ink); background: var(--orange-soft); }
.chip-done { border-color: #1E7F43; color: #1E7F43; }
.panel-warn { border-color: var(--warn); background: var(--warn-soft); }
.panel-warn ul { margin: 4px 0 0; padding-left: 20px; }
.panel-ok { border-color: #1E7F43; }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }
.next-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
textarea { font: inherit; font-weight: 400; min-height: 96px; padding: 10px 12px; width: 100%;
           border: 1.5px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); }
input[type=time], input[type=url], input[type=file], select {
  font: inherit; font-weight: 400; min-height: 48px; padding: 10px 12px; width: 100%;
  border: 1.5px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); }
.field.invalid textarea, .field.invalid select { border-color: var(--warn); background: var(--warn-soft); }

/* docs/FRONTEND.md: author display rules beat the browser's [hidden] default. */
[hidden] { display: none !important; }

/* Einrichtung forms. */
.time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.day { gap: 10px; }
.btn-small { min-height: 44px; padding: 8px 14px; font-size: 15px; }
.link-button { background: none; border: 0; padding: 8px 0; min-height: 44px; font: inherit;
               font-weight: 700; color: var(--ink); text-decoration: underline; cursor: pointer; }
.address-input { display: flex; align-items: stretch; }
.address-input input { flex: 1 1 auto; min-width: 0; }
.address-suffix { display: flex; align-items: center; padding: 0 12px; border: 1.5px solid var(--ink);
                  border-left: 0; background: #F6F5F2; font-weight: 600; white-space: nowrap; }
.field-ok { font-size: 15px; font-weight: 700; color: #1E7F43; }
.field-ok:empty { display: none; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.files li { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.files img { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--line); flex: none; }
.file-icon { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--line);
             font-size: 13px; font-weight: 800; color: var(--ink-2); flex: none; }
.file-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-weight: 400; }

/* Text links people tap on a phone get a finger-sized target. */
.crumb a, .btn-row > a, .links a, .foot a { display: inline-flex; align-items: center; min-height: 44px; }
.page > .panel { margin: 0 0 16px; }
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

/* Part 1: Daten and Übersicht. */
.plz-row { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; align-items: start; }
.offer .unit { font-size: 17px; font-weight: 600; color: var(--ink-2); }
.ticks { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.trial { border: 2px solid var(--ink); }

/* Part 2: progress, review page. */
.progress-label { font-weight: 700; color: var(--ink-2); }
.review { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.review-item { border: 1px solid var(--line); padding: 12px 14px; }
.review-item.is-open { border-color: var(--orange); }
.review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.review-head h2 { font-size: 18px; margin: 0; }
.review-head a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.answers { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.week { display: grid; gap: 12px; }
.online h2 { margin-top: 0; }
.status-line { margin: 8px 0; }
.answers li, .file-name { overflow-wrap: anywhere; }
