/* BaustellenMappe. Fonts are self-hosted (no requests to Google from the visitor's browser). */
@font-face { font-family: 'Archivo'; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/archivo.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url(/assets/fonts/barlow-condensed-700.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url(/assets/fonts/barlow-condensed-800.woff2) format('woff2'); }

/* Design tokens: variant A "Signal" (the variants differ only here). */
:root {
  --font: 'Archivo', system-ui, sans-serif; --hfont: 'Barlow Condensed', 'Archivo', sans-serif; --hcase: uppercase; --mono: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ink: #161616; --muted: #4c4c4c; --bg: #fff; --hero: #ffc400; --hero-ink: #161616; --hdr: #161616; --hdr-ink: #fff;
  --card: #fff; --soft: #f4f4f1; --line: #d9d9d4; --line2: #ececE8;
  --accent: #161616; --accent-ink: #ffc400; --chip: #fff3c2; --chip-ink: #5c4700; --cardline: #161616;
  --pos: #12663b; --neg: #b3261e; --focus: #1d5fd1; --r: 4px;
  --stripe: repeating-linear-gradient(-45deg, #161616 0 14px, #ffc400 14px 28px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.005em; }
h1, h2 { font-family: var(--hfont); font-weight: 800; text-transform: var(--hcase); }
h1 { font-size: clamp(40px, 6.4vw, 72px); margin: 8px 0 18px; }
h2 { font-size: clamp(30px, 4vw, 44px); margin: 48px 0 18px; }
h3 { font-size: 20px; margin: 28px 0 8px; font-weight: 800; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 10; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }
.center { text-align: center; }

.site-header { background: var(--hdr); color: var(--hdr-ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 8px 24px; flex-wrap: wrap; }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 800; font-size: 20px; text-decoration: none; }
.nav { display: flex; gap: 6px 22px; font-size: 15px; flex-wrap: wrap; align-items: center; }
.nav a { text-decoration: none; opacity: .9; padding: 4px 0; }
.nav a:hover, .nav a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav a.nav-cta { background: #ffc400; color: #161616; padding: 7px 14px; border-radius: var(--r); font-weight: 700; opacity: 1; text-decoration: none; }
.stripe { height: 10px; background: var(--stripe); }

.hero { background: var(--hero); color: var(--hero-ink); padding: 56px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.hero .txt { padding-bottom: 64px; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.lead { font-size: 20px; max-width: 580px; }
.btns { display: flex; gap: 12px; margin: 26px 0 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--r);
  font: 700 16px/1.2 var(--font); border: 2px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.25); }
.btn-ghost { background: transparent; }
.btn-small { padding: 7px 12px; font-size: 14px; border-width: 1.5px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 6px 0; text-decoration: underline; font: 600 15px var(--font); color: var(--muted); cursor: pointer; }
.danger { color: var(--neg); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.ticks { display: flex; gap: 8px 22px; font-size: 15px; font-weight: 600; flex-wrap: wrap; }
.ticks span::before { content: "✓ "; font-weight: 900; }
.note { font-size: 14px; color: var(--muted); margin: 8px 0; }

/* Phone mockup on the landing page (real screenshot of the app) */
.phone { width: 320px; margin: 0 auto; background: #111; border-radius: 42px 42px 0 0; padding: 12px 12px 0; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.phone img { display: block; border-radius: 32px 32px 0 0; }

section.band { padding: 16px 0 64px; }
section.soft { background: var(--soft); padding-top: 24px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.card { background: var(--card); border: 2px solid var(--cardline); border-radius: var(--r); padding: 22px; text-decoration: none; display: block; }
.card h3 { margin: 12px 0 6px; font-size: 19px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.ic { width: 44px; height: 44px; border-radius: var(--r); background: var(--chip); color: var(--chip-ink); display: grid; place-items: center; font-weight: 900; }
.kw { font-size: 12px; color: var(--chip-ink); font-weight: 700; margin-top: 12px; letter-spacing: .04em; text-transform: uppercase; }
.price-card.hl { background: #ffc400; }
.amt { font: 800 44px/1.1 var(--hfont); margin: 6px 0; }
ul.chk { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
ul.chk li { padding-left: 30px; position: relative; }
ul.chk li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 13px; display: grid; place-items: center; font-weight: 900; }
.pdfprev { background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.08); }

/* Articles */
.article { padding: 40px 0 64px; }
.article h1 { font-size: clamp(36px, 5vw, 56px); }
.article p, .article li { max-width: 72ch; }
.answer { font-size: 18px; border-left: 6px solid #ffc400; padding: 4px 0 4px 16px; }
.qa { border-top: 1px solid var(--line); padding: 4px 0; }
.qa h3 { font-size: 18px; }
table.facts { border-collapse: collapse; margin: 16px 0; font-size: 15px; width: 100%; max-width: 780px; }
table.facts th, table.facts td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
table.facts th { background: var(--soft); }
.tablewrap { overflow-x: auto; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.cta-box { background: #ffc400; border: 2px solid #161616; padding: 20px; border-radius: var(--r); margin: 32px 0; }
.cta-box p { margin: 0 0 12px; }
.err { color: var(--neg); font-weight: 600; }

.site-footer { padding: 28px 0 40px; font-size: 14px; background: var(--hdr); color: #ddd; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 8px 18px; flex-wrap: wrap; }

.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; max-width: 640px; margin: 0 auto; background: #fff; border: 2px solid #161616;
  box-shadow: 0 8px 30px rgba(0,0,0,.2); padding: 16px 18px; border-radius: var(--r); font-size: 14px; }
.consent p { margin: 0 0 12px; }
.consent .btns { margin: 0; }

/* ------------------------------------------------------------ App (/app/) */
body.app { background: var(--soft); font-size: 16px; }
body.app .site-header, body.app .site-footer, body.app .stripe { display: none; }
#app { max-width: 640px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: 96px; }
.atop { background: #161616; color: #ffc400; padding: 14px 16px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 5; padding-top: max(14px, env(safe-area-inset-top)); }
.atop-t { flex: 1; min-width: 0; }
.atop small { display: block; color: #ffe27a; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atop b { display: block; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atop .back { color: #ffc400; text-decoration: none; font-size: 34px; line-height: 1; padding: 0 6px 4px 0; }
.atop-r { color: #161616; background: #ffc400; text-decoration: none; font-size: 13px; font-weight: 800; padding: 6px 10px; border-radius: var(--r); }
.logo-s { width: 28px; height: 28px; border-radius: var(--r); background: #ffc400 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='2.5'%3E%3Cpath d='M3 20h18M5 20v-7a7 7 0 0 1 14 0v7M12 6V3'/%3E%3C/svg%3E") center/18px no-repeat; }
.tabs { display: flex; gap: 6px; padding: 10px 12px; background: var(--card); border-bottom: 1px solid var(--line); overflow-x: auto; position: sticky; top: 58px; z-index: 4; }
.tab { font-size: 14px; font-weight: 700; padding: 8px 12px; border-radius: 999px; background: var(--soft); white-space: nowrap; text-decoration: none; }
.tab span { font-weight: 500; opacity: .7; }
.tab.on { background: #161616; color: #ffc400; }
.apad { padding: 14px 14px 8px; }
.empty { padding: 8px 4px 4px; }
.empty h2 { margin-top: 8px; font-size: 32px; }
.pcard, .dcard { display: block; text-decoration: none; background: var(--card); border: 2px solid #161616; border-radius: var(--r); padding: 14px 16px; margin: 0 0 10px; }
.pcard b, .dcard b { display: block; font-size: 17px; }
.pcard span, .dcard span { display: block; color: var(--muted); font-size: 14px; }
.pcard small { color: var(--muted); font-size: 13px; }
.dcard .dl { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; background: #fff3c2; color: #5c4700; padding: 2px 8px; border-radius: 99px; }
.dcard .dl.ok { background: #dff1e6; color: var(--pos); }
.prow { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; align-items: center; }
.form h3 { font-size: 17px; margin: 22px 0 8px; }
.form h3 small { font-weight: 600; color: var(--muted); font-size: 14px; }
.fld { margin: 0 0 12px; min-width: 0; }
.fld label, .sigbox label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.fld input, .fld select, .fld textarea, .rows input, .pos input, .prow input {
  width: 100%; font: 400 16px var(--font); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r); background-color: #fff; color: var(--ink); min-width: 0; }
.fld textarea { resize: vertical; }
/* One height for text, date, time and select fields, so fields in a row line up (date/time inputs are taller natively). */
.fld input:not([type=checkbox]):not([type=radio]):not([type=file]), .fld select, .rows input, .pos input, .prow input { height: 48px; line-height: 1.2; }
.fld input[type=date], .fld input[type=time] { -webkit-appearance: none; appearance: none; display: block; }
.fld input::-webkit-date-and-time-value { text-align: left; }
/* Custom chevron for every select (owner 2026-10-31: native arrow looks ugly). */
select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 40px !important; cursor: pointer; text-overflow: ellipsis; white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23161616' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; }
select::-ms-expand { display: none; }
select:hover { border-color: var(--ink); }
.fld select:focus { border-color: #161616; outline: none; box-shadow: 0 0 0 3px #ffe27a; }
/* Fields side by side: labels share one row track, so a label that wraps to two lines does not push its input
   below the neighbour's; hints sit in a third track under the inputs. */
@supports (grid-template-rows: subgrid) {
  .row > .fld, .row3 > .fld { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
  .row > .fld > label, .row3 > .fld > label { align-self: end; }
}
.fld input:focus, .fld textarea:focus, .rows input:focus, .pos input:focus { border-color: #161616; outline: none; box-shadow: 0 0 0 3px #ffe27a; }
.fld .hint { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.fld.short { max-width: 160px; }
.row { display: grid; column-gap: 10px; grid-template-columns: 1fr 1fr; }
.row3 { display: grid; column-gap: 10px; grid-template-columns: 1fr 1fr 1fr; }
.rows { margin-bottom: 8px; }
.rowi { display: flex; gap: 6px; margin-bottom: 6px; align-items: center; }
.rowi input { flex: 1 1 0; }
.rowi input.num { flex: 0 0 72px; text-align: right; }
.rowi input.unit { flex: 0 0 64px; }
.rowi input.date { flex: 0 0 140px; }
.x { flex: 0 0 auto; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 6px; }
.pos { border: 2px solid #161616; border-radius: var(--r); padding: 10px; margin: 0 0 12px; }
.pos .row3 { grid-template-columns: 70px 1fr 70px; margin-bottom: 8px; }
.zl { display: grid; grid-template-columns: 1fr 1.3fr auto 72px auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.zl output { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.zl .bad { border-color: var(--neg); }
.abz { font-size: 13px; display: flex; gap: 4px; align-items: center; white-space: nowrap; }
.posf { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: start; }
.ph { margin: 0; position: relative; }
.ph img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: var(--soft); display: block; }
.ph input { width: 100%; font-size: 13px; padding: 5px 6px; border: 1px solid var(--line); border-radius: var(--r); margin-top: 4px; }
.ph .x { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.6); color: #fff; border-radius: 50%; width: 28px; height: 28px; font-size: 18px; padding: 0; }
.ph.add { aspect-ratio: 1; border: 2px dashed var(--line); border-radius: var(--r); display: grid; place-items: center; cursor: pointer; background: var(--soft); }
.ph.add span { font-size: 30px; text-align: center; line-height: 1; color: var(--muted); }
.ph.add small { display: block; font-size: 13px; }
.ph.missing img { visibility: hidden; }
.sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.sigbox { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 10px; background: #fff; }
.sigbox img { display: block; max-height: 60px; margin-bottom: 4px; }
.sigbox small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.chk { display: flex; gap: 8px; align-items: center; margin: 6px 0 14px; font-weight: 600; }
.chk input { width: 20px; height: 20px; }
.abar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--card); border-top: 1px solid var(--line); padding: 10px 14px max(12px, env(safe-area-inset-bottom)); }
.abar { display: flex; gap: 10px; align-items: center; max-width: 640px; margin: 0 auto; }
.abar .saved { flex: 1; color: var(--muted); font-size: 14px; }
.abar .btn { flex: 0 0 auto; padding: 12px 22px; }
.key { font-size: 18px; background: #fff3c2; padding: 10px 12px; border-radius: var(--r); word-break: break-all; }
.tag { display: inline-block; font-size: 11px; background: #fff3c2; color: #5c4700; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.logo-prev { max-height: 60px; display: block; margin: 6px 0; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 40; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: var(--r); padding: 18px; width: 100%; max-width: 560px; }
.modal-box h2 { margin: 0 0 10px; font-size: 28px; }
.modal canvas { width: 100%; height: 200px; border: 2px dashed var(--line); border-radius: var(--r); touch-action: none; background: #fff; display: block; margin: 8px 0; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: #161616; color: #fff; padding: 10px 16px; border-radius: var(--r); z-index: 50; font-size: 15px; max-width: calc(100% - 32px); }
.toast[hidden] { display: none; }

@media (max-width: 860px) {
  .hero .wrap, .grid3, .two { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .hero { padding: 32px 0 0; }
  .hero .txt { padding-bottom: 8px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .grid4 { grid-template-columns: 1fr; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
  .nav a:not(.nav-cta) { display: none; }
  .phone { width: 280px; }
  .row3 { grid-template-columns: 1fr 1fr; }
  .zl { grid-template-columns: 1fr 1fr auto; }
  .zl output { grid-column: 1 / 3; text-align: left; }
  .sigs { grid-template-columns: 1fr; }
}
