/* Hallmark · shape: Narrative Workflow, re-ordered after the reference (zweipunktnull-bretten.de, sonnenhaeuser-angersdorf.de) · genre: editorial · theme: custom by request (light, after the reference; Atelier type kept) · job: sign up · draw: e2ee2e
 * hero: Poster, full-bleed render at dusk · nav: masthead with a Termin-Bau bar · footer: statement · imagery: the project's own 3D renders · signature: the two houses floor by floor, every flat a button that opens it in the list
 * axes: light/roman-serif/warm · posture: confident · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E4 S5 R4 V4 · weakest: R, the renders are 1280 px; the hero holds them at their size above 1440 and asks for larger renders */
/* Hallmark · waive 46b · .figures holds the plan's own counts (22 flats, 2 houses, sizes) · they are the project, not a claimed metric */
/* Hallmark · waive 59 · .figures sits flush under the hero · it is the hero's caption band, not a section */
/* Hallmark · dropped fuer-wen, ablauf, sky · the investor line answers a question in #fragen, the steps live in #fortschritt */
@import url("./tokens.css");
@import url("./base.css");

@font-face { font-family: "Sentient"; src: url("./sentient-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Sentient"; src: url("./sentient-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("./hanken-grotesk.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

body { color: var(--color-ink-2); font-size: 1.0625rem; line-height: 1.6; }
h1, h2 { font-weight: var(--display-weight); color: var(--color-ink); }
h3 { font-weight: var(--serif-small); color: var(--color-ink); }
.label, th, dt, figcaption, .btn, nav, label, summary small { font-family: var(--font-body); }
.label { font-size: var(--text-sm); color: var(--color-muted); }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-accent); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-size: var(--text-md); font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-ink); border-color: var(--color-ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--line { background: transparent; color: var(--color-ink); border-color: var(--color-rule-2); }
.btn--line:hover { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.btn--light { background: transparent; color: var(--color-on-night); border-color: color-mix(in oklab, var(--color-on-night) 55%, transparent); }
.btn--light:hover { background: var(--color-on-night); color: var(--color-ink); border-color: var(--color-on-night); }
.btn--sm { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
a { text-decoration-color: color-mix(in oklab, var(--color-accent) 60%, transparent); transition: color var(--dur-short) var(--ease-out); }
a:hover { color: var(--color-accent); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* Top bar and masthead */
.topbar { background: var(--color-paper-2); font-size: var(--text-sm); color: var(--color-ink-2); }
.topbar .container { display: flex; justify-content: space-between; gap: var(--space-md); min-height: 36px; align-items: center; }
.topbar a { color: var(--color-ink); }
.mast { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 94%, transparent); backdrop-filter: blur(10px); border-bottom: var(--rule-hair) solid var(--color-rule); }
.mast .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 76px; }
.wordmark { display: grid; text-decoration: none; color: var(--color-ink); line-height: 1.1; }
.wordmark b { font-family: var(--font-display); font-weight: 400; font-size: 1.625rem; letter-spacing: var(--tracking-display); white-space: nowrap; }
.wordmark span { font-size: var(--text-xs); color: var(--color-muted); }
.mast ul { display: flex; align-items: center; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); }
.mast ul a:not(.btn) { color: var(--color-ink); text-decoration: none; padding-block: var(--space-xs); }
.mast ul a:not(.btn):hover { color: var(--color-accent); }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: min(calc(100svh - 112px), 860px); display: grid; align-items: end; color: var(--color-on-night); background: var(--color-night); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--scrim), var(--scrim-foot); z-index: -1; }
.hero .container { padding-block: var(--space-3xl) var(--space-2xl); }
.hero :focus-visible, .contact :focus-visible:not(.card *) { outline-color: var(--color-on-night); }
.hero .chip { margin-top: var(--space-lg); }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--space-sm); border: var(--rule-hair) solid color-mix(in oklab, var(--color-on-night) 45%, transparent); border-radius: var(--radius-pill); font-size: var(--text-sm); color: var(--color-on-night); }
.hero h1 { font-size: clamp(3rem, 6.4vw, 6.5rem); line-height: 1; color: var(--color-on-night); max-width: 12ch; }
.hero .lead { margin-top: var(--space-lg); color: var(--color-on-night-2); max-width: 40ch; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.hero figcaption { position: absolute; right: var(--gutter); bottom: var(--space-lg); font-size: var(--text-xs); color: var(--color-on-night-2); }

/* Figures row */
.figures { background: var(--color-white); border-bottom: var(--rule-hair) solid var(--color-rule); }
.figures ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.figures li { padding: var(--space-xl) var(--space-lg); border-left: var(--rule-hair) solid var(--color-rule); }
.figures li:first-child { border-left: 0; padding-left: 0; }
.figures b { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 3vw, 2.875rem); line-height: 1; color: var(--color-ink); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.figures span { display: block; margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }

/* Sections */
.section { padding-block: var(--section-gap-s); }
.section--sand { background: var(--color-paper-2); }
.head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap-columns) var(--space-3xl); align-items: end; margin-bottom: var(--space-2xl); }
.head p { color: var(--color-ink-2); }

/* Two houses */
.houses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); }
.house { display: grid; grid-template-rows: auto 1fr; background: var(--color-card); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.house figure { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.house figure img { width: 100%; height: 100%; object-fit: cover; }
.house figcaption { position: absolute; left: var(--space-md); bottom: var(--space-md); padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-paper) 88%, transparent); font-size: var(--text-xs); color: var(--color-ink-2); }
.house .body { padding: var(--space-xl); display: grid; gap: var(--space-lg); align-content: start; }
.house h3 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); font-weight: 300; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-xs) var(--space-lg); margin: 0; }
.facts dt { font-size: var(--text-sm); color: var(--color-muted); padding-top: var(--space-3xs); }
.facts dd { margin: 0; color: var(--color-ink); }

/* Floor by floor */
.floors { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-3xl); align-items: center; }
.cut svg { width: 100%; height: auto; }
.cut-ground { stroke: var(--color-ink); stroke-width: 2; }
.cut-roof { fill: var(--color-paper-3); stroke: var(--color-ink-2); stroke-width: 1; }
.cut-open { fill: none; stroke: var(--color-rule-2); stroke-width: 1; stroke-dasharray: 4 4; }
.cut-garage { fill: var(--color-paper-3); stroke: var(--color-ink-2); stroke-width: 1; }
.cut-t { font-family: var(--font-body); font-size: 12px; fill: var(--color-ink-2); pointer-events: none; }
.cut-m { font-family: var(--font-body); font-size: 11px; fill: var(--color-muted); pointer-events: none; }
.cut-name { font-family: var(--font-display); font-size: 17px; fill: var(--color-ink); }
.cut-note { font-family: var(--font-body); font-size: 11px; fill: var(--color-muted); }
.unit rect { fill: var(--color-white); stroke: var(--color-ink-2); stroke-width: 1; transition: fill var(--dur-short) var(--ease-out); }
.unit { cursor: pointer; outline: none; }
.unit:hover rect, .unit:focus-visible rect { fill: var(--color-accent-soft); }
.unit:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.unit:focus-visible rect { stroke: var(--color-focus); stroke-width: 2; }
.unit[aria-pressed="true"] rect { fill: var(--color-accent); }
.unit[aria-pressed="true"] text { fill: var(--color-accent-ink); }
.picked { padding: var(--space-xl); background: var(--color-card); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.picked h3 { font-size: var(--text-section); font-weight: 300; }
.picked .facts { margin-block: var(--space-lg); }
.picked p { font-size: var(--text-sm); color: var(--color-muted); }

/* Flats list */
.filter { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-lg); }
.filter button { min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); cursor: pointer; font-size: var(--text-sm); transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.filter button:hover { border-color: var(--color-ink); }
.filter button[aria-pressed="true"] { background: var(--color-paper-3); color: var(--color-ink); border-color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-ink); }
.flats { width: 100%; border-collapse: collapse; background: var(--color-card); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.flats th { position: relative; text-align: left; font-weight: 400; font-size: var(--text-sm); color: var(--color-muted); padding: var(--space-md) var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); white-space: nowrap; }
.flats td { padding: var(--space-sm) var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink); white-space: nowrap; }
.flats tr:last-child td { border-bottom: 0; }
.flats td.num, .flats th.num { text-align: right; font-variant-numeric: tabular-nums; }
.flats td:first-child { font-family: var(--font-display); font-size: 1.125rem; }
.flats tr.is-picked td { background: var(--color-accent-soft); }
.state { display: inline-flex; min-height: 28px; align-items: center; padding: 0 var(--space-sm); border-radius: var(--radius-pill); background: var(--color-paper-2); font-size: var(--text-sm); color: var(--color-ink-2); }
.flats .btn { min-height: 44px; }
.small { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }

/* Equipment */
.kit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-ink); }
.kit li { padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); font-family: var(--font-display); font-size: 1.25rem; color: var(--color-ink); line-height: 1.3; }

/* Progress */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: var(--space-xl) var(--space-lg) 0 0; border-top: 2px solid var(--color-rule); }
.steps li.done, .steps li.now { border-top-color: var(--color-accent); }
.steps li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--color-paper); border: 2px solid var(--color-rule-2); }
.steps li.done::before { background: var(--color-accent); border-color: var(--color-accent); }
.steps li.now::before { background: var(--color-paper); border-color: var(--color-accent); box-shadow: 0 0 0 4px var(--color-accent-soft); }
.steps b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; color: var(--color-ink); line-height: 1.2; }
.steps span { display: block; margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }

/* Location */
.place { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.place figure { margin: 0; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); position: relative; }
.place figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.place figcaption { position: absolute; left: var(--space-md); bottom: var(--space-md); padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-paper) 88%, transparent); font-size: var(--text-xs); color: var(--color-ink-2); }
.dist { margin: var(--space-xl) 0 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-ink); }
.dist li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.dist b { font-family: var(--font-display); font-weight: 300; font-size: 1.75rem; color: var(--color-ink); white-space: nowrap; font-variant-numeric: lining-nums; }
.place .more { margin-top: var(--space-lg); }

/* Safety */
.safe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.safe li { padding: var(--space-xl) var(--space-lg); background: var(--color-card); border-radius: var(--radius-card); box-shadow: var(--shadow-card); display: grid; gap: var(--space-sm); align-content: start; }
.safe--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.safe h3 { font-size: 1.375rem; }
.safe p { font-size: var(--text-sm); }

/* Builder */
.builder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: start; }
.builder .facts { margin-top: var(--space-lg); }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-3xl); }
.faq-list { border-top: var(--rule-hair) solid var(--color-ink); }
.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-lg); padding-block: var(--space-lg); cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 1.375rem; color: var(--color-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); color: var(--color-accent); }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--color-accent); }
.faq details p { padding-bottom: var(--space-lg); }

/* Contact */
.contact { background: var(--color-night); color: var(--color-on-night-2); }
.contact h2 { color: var(--color-on-night); }
.contact .grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: start; }
.contact .facts dt { color: var(--color-on-night-2); }
.contact .facts dd, .contact .facts a { color: var(--color-on-night); }
.contact .lead { margin-top: var(--space-lg); color: var(--color-on-night-2); }
.contact .energy { margin-top: var(--space-xl); font-size: var(--text-sm); }
.card { padding: var(--space-xl); background: var(--color-card); color: var(--color-ink-2); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-md); }
.form .wide { grid-column: 1 / -1; }
.field { display: grid; gap: var(--space-2xs); }
.field label { font-size: var(--text-sm); color: var(--color-ink-2); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; min-height: 50px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-white); color: var(--color-ink); font-size: var(--text-md); transition: border-color var(--dur-short) var(--ease-out); }
textarea { min-height: 112px; padding-block: var(--space-sm); resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--color-ink-2); }
input:disabled, select:disabled, textarea:disabled { opacity: 0.55; cursor: not-allowed; }
input:user-invalid, textarea:user-invalid { border-color: var(--color-error); }
.consent { display: flex; gap: var(--space-xs); align-items: flex-start; font-size: var(--text-sm); line-height: 1.45; }
.consent input { width: 20px; height: 20px; margin: var(--space-3xs) 0 0; accent-color: var(--color-accent); flex: none; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-error); border-radius: var(--radius-card); background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-sm); }

/* Footer */
.foot { padding-block: var(--space-2xl) var(--space-xl); background: var(--color-paper-2); }
.foot .statement { font-family: var(--font-display); font-weight: 300; font-size: var(--text-display-s); color: var(--color-ink); line-height: 1.05; max-width: 18ch; }
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-2); font-size: var(--text-sm); color: var(--color-muted); }
.foot ul { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.foot a { color: var(--color-ink-2); }

/* Sticky call on phones */
.dock { position: fixed; left: 50%; bottom: var(--space-md); transform: translateX(-50%); z-index: var(--z-sticky); display: none; }
.dock .btn { box-shadow: var(--shadow-card); }

@media (max-width: 68rem) {
  .mast ul li:not(:last-child) { display: none; }
  .figures ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .figures li:nth-child(4) { border-left: 0; padding-left: 0; }
  .safe, .safe--3, .kit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { padding: 0 0 var(--space-lg) var(--space-xl); border-top: 0; border-left: 2px solid var(--color-rule); }
  .steps li.done, .steps li.now { border-left-color: var(--color-accent); }
  .steps li::before { top: 0; left: -8px; }
}
@media (max-width: 60rem) {
  .head, .houses, .floors, .place, .builder, .faq, .contact .grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero .container { padding-block: var(--space-3xl) var(--space-xl); }
  .hero figcaption { position: static; padding: 0 var(--gutter) var(--space-3xl); }
  .hero::before { background: var(--scrim-phone); }
  .cut { overflow-x: auto; overscroll-behavior-x: contain; }
  .cut svg { width: 640px; max-width: none; }
  .dock { display: block; }
  .flats-wrap { overflow-x: auto; position: relative; }
}
@media (max-width: 40rem) {
  .topbar .container > span { display: none; }
  .figures ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures li { padding: var(--space-lg) var(--space-md); }
  .figures b { font-size: 1.75rem; }
  .figures li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .figures li:nth-child(4) { border-left: var(--rule-hair) solid var(--color-rule); padding-left: var(--space-md); }
  .safe, .safe--3, .kit, .form { grid-template-columns: minmax(0, 1fr); }
  .house .body, .card, .picked { padding: var(--space-lg); }
  .flats th:nth-child(2), .flats td:nth-child(2), .flats th:nth-child(5), .flats td:nth-child(5) { display: none; }
  .flats th, .flats td { padding-inline: var(--space-sm); }
}
