/* Hallmark · shape: Flächenplan (Karte als Hero, Typo-Zeilen, Bezirks-Index, Rückruf als Schluss) · genre: editorial · theme: custom · redesign: full · job: hire · idea: "Die Seite ist der amtliche Flächenplan Berlins: zwölf Bezirke und 82 Erhaltungsgebiete aus den Senatsdaten, in die man die eigene Adresse setzt." · vibe: "amtlich, Berlin, Planpapier, ruhig, genau"
 * paper: oklch(96.5% 0.006 245) · accent: oklch(55% 0.21 28) · display: Archivo (narrow 700, self-hosted) · body: Archivo 400 · hero: head and address field left, the drawn map of the 82 areas right, bleeding to the edge; a hit turns its area red · nav: wordmark left, links, EN pill, one outlined Rückruf · footer: mast, the wordmark large over the links and credits · imagery: photographs, the user's own 8 (five Wikimedia credited, two portraits, the avatar), the owner's 29-second explainer video (click to play, poster), the map drawn from data · signature: the map from the Senate data with the visitor's address placed in it
 * axes: light/display-condensed/chromatic-red · posture: Committed (field: the 82 areas in --color-field) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: E, a redesign keeps 1 500 words and ten sections, so the screen budget is held by disclosures and rows rather than cuts */
/* Hallmark · hero-review: fix · 5 findings · 3 resolved (map on the phone fold with the form stacked; district names, boundaries, scale bar and legend drawn, the map set against the right edge; caption inside the 1280 fold) 1 partial (the checker grammar on the left is the owner's kept copy) 1 unresolved (the real Archivo file is pending in the handoff) */
/* Hallmark · finish-review: subagent · 8 findings · 7 resolved (field inside the phone fold; Sanierung as a two-column statement and the other wells as rows; labels clear of the areas and off the phone; field focus in the plan blue; the price line back under the field; the postcard once; tile heads at h3 with a hidden Für wen, press as a list) 1 answered (the 375 footer checked in the browser) · gap: the display face until archivo.woff2 is in /fonts/ */
/* Hallmark · waive 42 · wordmark, seven kept links, one outlined action · the links are the site's kept routes and the shape is named above */
/* Hallmark · waive 59 · ten sections, each holding content the live page had · a full redesign keeps every section's content */
/* Hallmark · font slot · Archivo is named first and self-hosted from /fonts/archivo.woff2; Helvetica Neue stands in until the file is there (no Google Fonts per the site's Datenschutzerklärung) */
/* Hallmark · dropped "Natalia Kurda · über zehn Jahre Immobilienbranche, bis in den Vorstand. Jeder Antrag geht über meinen Schreibtisch. Wer dahinter steht →" from the hero · 58 names a third text block; the facts stand in #wer */
/* Hallmark · reworded "Festpreis 1.500 € zzgl. USt. pro Wohnung · Entwurf in einer Woche · Nur Milieuschutz, nichts anderes." to "Festpreis 1.500 € zzgl. USt. pro Wohnung. Entwurf in einer Woche. Nur Milieuschutz, nichts anderes." · 63 names the middle dots */
/* Hallmark · dropped the second paul-lincke-ufer-1900.jpg figure and its caption "Paul-Lincke-Ufer, Kreuzberg, um 1900. Viele dieser Häuser stehen heute in Erhaltungsgebieten." beside the district index · the same postcard already stands in the Bestandshalter tile; the index runs full width with its silhouettes */
/* Hallmark · reworded "Prüf deine Adresse. 30 Sekunden." to "„Erzähl mir kurz, was du vorhast.“" · the owner's direction (13.11.2026): the close is the callback, her own line from the result card */
/* Hallmark · dropped checkliste, checkliste-h · the owner removed the 12-point list on 13.11.2026 */
/* Hallmark · dropped "Die 12-Punkte-Checkliste.", "Ausschlusspunkte", "Plausibilität", "Vollständigkeit" · the headings of the removed 12-point list */
/* Hallmark · dropped 18.04 · the "Stand 18.04.2026" line of the removed 12-point list */
/* Hallmark · dropped onclick="window.plausible&&plausible('Checkliste CTA',{props:{ziel:'antragsstart'}})", onclick="window.plausible&&plausible('Checkliste CTA',{props:{ziel:'rueckruf'}})" · the two actions of the removed 12-point list */
/* Hallmark · dropped the request form #anfrage · the owner wants contact and a call, not a second form beside the address check */
/* Hallmark · dropped gebiete.svg · the hero now draws the same 82 areas inline from erhaltungsgebiete.json, with the district outlines added */
/* Hallmark · reworded "„Das ist doch nur ein neues Bad."" to "„Das ist doch nur ein neues Bad.“" · F1 names the straight closing quote */
/* Hallmark · reworded "„Und wenn der Antrag abgelehnt wird?"" to "„Und wenn der Antrag abgelehnt wird?“" · F1 names the straight closing quote */
/* Hallmark · reworded "„Wir haben schon gebaut."" to "„Wir haben schon gebaut.“" · F1 names the straight closing quote */
/* Hallmark · reworded "„Wir suchen noch eine Baufirma."" to "„Wir suchen noch eine Baufirma.“" · F1 names the straight closing quote */
/* Hallmark · reworded "„Wir wollen das ganze Haus energetisch sanieren."" to "„Wir wollen das ganze Haus energetisch sanieren.“" · F1 names the straight closing quote */
/* Hallmark · reworded "„Wir warten erstmal ab."" to "„Wir warten erstmal ab.“" · F1 names the straight closing quote */
/* Hallmark · dropped "Paul-Lincke-Ufer, Kreuzberg, um 1900. Viele dieser Häuser stehen heute in Erhaltungsgebieten." · the caption of the duplicate postcard beside the district index; the postcard stays in the Bestandshalter tile */
/* Hallmark · dropped 1900 · the second paul-lincke-ufer-1900.jpg figure beside the district index; the same postcard stays in the Bestandshalter tile */
/* Hallmark · swapped pictures 13.11.2026 at the owner's request: gipsstrasse-mitte.jpg to fidicinstrasse-bergmannkiez.jpg, paul-lincke-ufer-1900.jpg to viktoria-luise-platz-schoeneberg.jpg, nuernberger-strasse-charlottenburg.jpg to hof-knesebeckstrasse-charlottenburg.jpg, altbau-tuer-prenzlauer-berg.jpg to kastenfenster-berliner-altbau.jpg · all Wikimedia Commons, CC BY-SA, credited in the footer; bergmannkiez-kreuzberg.jpg stays */
/* Hallmark · reworded "Flügeltür in einem Altbau in Prenzlauer Berg. Die VV entscheidet nicht nach Geschmack, sondern nach Standard oder darüber." to "Kastenfenster in einem Berliner Altbau. Die VV entscheidet nicht nach Geschmack, sondern nach Standard oder darüber." · the caption follows the swapped picture */
/* Hallmark · dropped https://commons.wikimedia.org/wiki/File:Berlin,_Mitte,_Gipsstrasse_6,_Mietshaus_01.jpg, https://commons.wikimedia.org/wiki/File:N%C3%BCrnberger_Stra%C3%9Fe_17_(Berlin-Charlottenburg).JPG, https://commons.wikimedia.org/wiki/File:T%C3%BCr_berliner_altbau_2018-04-23_-_5.jpg, https://commons.wikimedia.org/wiki/File:Berlin-Kreuzberg_Postkarte_066.jpg, https://creativecommons.org/publicdomain/zero/1.0/deed.de · the credit links of the four swapped pictures; the new pictures carry their own credits */
/* Hallmark · dropped 04-23-5 · the Tür figure gave way to the Kastenfenster figure */
/* Hallmark · dropped gipsstrasse-mitte.jpg, nuernberger-strasse-charlottenburg.jpg, altbau-tuer-prenzlauer-berg.jpg · swapped at the owner's request for Commons pictures of the Bergmannkiez, Schöneberg and a Charlottenburg courtyard */
/* Hallmark · reworded "Steht davon etwas in deiner Planung? Hak an, was zutrifft." to "Steht davon etwas in deiner Planung? Wähle aus, was zutrifft." and "Hak an, was bei dir geplant ist." to "Wähle aus, was bei dir geplant ist." · the owner asked for another wording (13.11.2026) */
/* Hallmark · waive 69 · 249 € stands in five kept sections (three ways, two check CTAs, the price row, one objection) · a full redesign keeps the owner's copy where it stood */
/* Hallmark · waive 49b · Charlottenburg-Wilmersdorf wraps once at 320px in the district index · a Berlin district's name cannot be shortened */
@import url("./tokens.css");
@import url("./base.css");

@font-face { font-family: "Archivo"; src: url("/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }

html { scroll-behavior: smooth; }
body { font-size: var(--text-md); line-height: 1.55; font-synthesis: none; }
h1, h2, h3 { font-weight: 700; font-stretch: 82%; letter-spacing: var(--tracking-display); line-height: 1.04; color: var(--color-ink); }
h1 { font-size: var(--text-display); max-width: 18ch; line-height: 0.98; }
h2 { font-size: var(--text-section); max-width: 24ch; }
h3 { font-size: var(--text-title); font-stretch: 90%; line-height: 1.15; max-width: 40ch; }
p { max-width: 65ch; }
a { color: var(--color-ink); text-decoration-color: var(--color-muted); transition: text-decoration-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
a:hover { text-decoration-color: var(--color-accent); }
strong { font-weight: 700; }
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sec { margin-top: var(--section-gap); }
.sub { max-width: 60ch; color: var(--color-ink-2); margin-top: var(--space-md); font-size: var(--text-lead); }
.sub.sub--tight { margin-top: var(--space-lg); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons: one filled primary, one quiet ---------- */
.btn, .checkform button, .cta-btn, .cta-nav {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 52px; padding: 0 var(--space-lg); border: 1px solid var(--color-accent); border-radius: var(--radius-card);
  background: var(--color-accent); color: var(--color-accent-ink); font-weight: 700; font-size: var(--text-md); line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:hover, .checkform button:hover, .cta-btn:hover, .cta-nav:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); color: var(--color-accent-ink); }
.btn:active, .checkform button:active, .cta-btn:active, .cta-nav:active { transform: translateY(1px); }
.btn:focus-visible, .checkform button:focus-visible, .cta-btn:focus-visible, .cta-nav:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .checkform button:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--quiet, .btnp, .btno, .cta-btn.secondary, .rr-btn { background: transparent; color: var(--color-ink); border-color: var(--color-ink); }
.btn--quiet:hover, .btnp:hover, .btno:hover, .cta-btn.secondary:hover, .rr-btn:hover { background: var(--color-paper-2); border-color: var(--color-ink); color: var(--color-ink); }
.btnp, .btno, .rr-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg); border: 1px solid var(--color-ink); border-radius: var(--radius-card); font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btnp:active, .btno:active, .rr-btn:active, .cta-btn.secondary:active { transform: translateY(1px); }
.btnp:focus-visible, .btno:focus-visible, .rr-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.rr-btn svg, .sticky .p svg { flex-shrink: 0; }
.more { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.row { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }

/* ---------- english bar + header ---------- */
.en-bar { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); justify-content: center; padding: var(--space-xs) var(--gutter); background: var(--color-ink); color: var(--color-paper); font-size: var(--text-sm); }
.en-bar a { color: var(--color-paper); text-decoration-color: var(--color-paper); }
.en-bar-more { color: var(--color-paper-3); }
header { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: 1px solid var(--color-rule); }
.header-inner { display: flex; align-items: center; gap: var(--space-lg); min-height: 72px; width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.brand a { display: block; text-decoration: none; font-weight: 700; font-stretch: 112%; letter-spacing: -0.01em; line-height: 1.05; font-size: var(--text-lg); white-space: nowrap; }
.brand small { display: block; font-size: var(--text-sm); font-weight: 400; font-stretch: 100%; color: var(--color-muted); margin-top: var(--space-3xs); }
.nav { display: flex; align-items: center; gap: var(--space-lg); margin-left: auto; }
.nav a { text-decoration: none; font-size: var(--text-md); white-space: nowrap; padding: var(--space-xs) 0; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.nav .cta-nav { min-height: 44px; padding: 0 var(--space-md); text-decoration: none; }
.lang-switch { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-ink); border-radius: var(--radius-pill); text-decoration: none; font-weight: 700; font-size: var(--text-sm); white-space: nowrap; }
.lang-switch:hover { background: var(--color-paper-2); }
.hamburger { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 1px solid var(--color-ink); border-radius: var(--radius-card); background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: var(--space-2xs); }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--color-ink); }
.hamburger:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* ---------- hero: the plan ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: center; width: 100%; padding: var(--space-2xl) 0 var(--space-2xl) max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); min-height: calc(100svh - 72px); }
.hero-text > .lead { margin-top: var(--space-lg); font-size: var(--text-lead); max-width: 40ch; color: var(--color-ink-2); }
.checkpanel { margin-top: var(--space-xl); max-width: 36rem; position: relative; }
.cp-label { display: block; font-weight: 700; font-size: var(--text-lg); margin-bottom: var(--space-sm); }
.checkform { display: flex; gap: var(--space-xs); position: relative; margin: 0; }
.checkform input[type="text"] { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-md); outline: 2px solid transparent; outline-offset: -3px; transition: background-color var(--dur-short) var(--ease-out); }
.checkform input[type="text"]::placeholder { color: var(--color-muted); }
.checkform input[type="text"]:hover { background: var(--color-paper-2); }
.checkform input[type="text"]:focus-visible { outline-color: var(--color-field); }
.checkform input[type="text"]:disabled { opacity: 0.55; cursor: not-allowed; }
.checkpanel.ping input[type="text"] { animation: cp-ping 1.1s var(--ease-out); }
@keyframes cp-ping { 0% { outline-color: var(--color-focus); } 100% { outline-color: transparent; } }
.cp-meta { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.cp-meta a, .rr-wrap a { white-space: nowrap; }
.hero-facts { margin-top: var(--space-lg); max-width: 40ch; color: var(--color-ink-2); }
.adresse-suggestions { position: absolute; top: 100%; left: 0; right: 0; z-index: var(--z-dropdown); margin-top: var(--space-2xs); background: var(--color-paper); border: 1px solid var(--color-rule); border-radius: var(--radius-card); box-shadow: var(--shadow-drop); max-height: 18rem; overflow-y: auto; }
.adresse-suggestions:empty { display: none; }
.suggestion-item { padding: var(--space-sm) var(--space-md); cursor: pointer; line-height: 1.4; }
.suggestion-item:hover, .suggestion-item.active { background: var(--color-paper-2); }
.suggestion-item .s-main { font-weight: 700; }
.suggestion-item .s-sub { display: block; font-size: var(--text-sm); color: var(--color-muted); }

#result { max-width: 36rem; }
#result:empty { display: none; }
.result-card { margin-top: var(--space-lg); padding: var(--space-lg); background: var(--color-paper-2); border-radius: var(--radius-card); }
.result-card h2 { font-size: var(--text-title); display: flex; align-items: flex-start; gap: var(--space-xs); }
.result-card h2 svg { flex-shrink: 0; margin-top: var(--space-2xs); }
.result-card p { margin-top: var(--space-sm); }
.result-positive .gebiet { margin-top: var(--space-md); padding: var(--space-sm) var(--space-md); background: var(--color-paper); }
.result-positive .gebiet strong { display: block; }
.geprueft { display: block; font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-2xs); }
.result-hinweis { font-size: var(--text-sm); color: var(--color-muted); }
.result-positive .person { display: flex; gap: var(--space-sm); align-items: center; margin-top: var(--space-md); }
.result-positive .avatar-img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.result-positive .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--color-field); color: var(--color-field-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.result-positive .person .n { font-size: var(--text-sm); color: var(--color-muted); }
.result-positive .cta-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }
.result-positive .cta-sub { font-size: var(--text-sm); color: var(--color-ink-2); margin-top: var(--space-sm); }
.result-positive .cta-alt { margin-top: var(--space-sm); }
.result-negative h2 { color: var(--color-success); }
.result-negative .alt-service, .result-negative .hinweis-aufstellung { margin-top: var(--space-sm); padding: var(--space-md); background: var(--color-paper); }
.result-error { margin-top: var(--space-md); padding: var(--space-sm) var(--space-md); background: var(--color-paper-2); color: var(--color-error); }
.auswahl-list { display: grid; gap: var(--space-xs); margin-top: var(--space-sm); }
.auswahl-item { display: block; width: 100%; text-align: left; background: var(--color-paper); border: 1px solid var(--color-rule); border-radius: var(--radius-card); padding: var(--space-sm) var(--space-md); cursor: pointer; color: var(--color-ink); transition: background-color var(--dur-short) var(--ease-out); }
.auswahl-item:hover { background: var(--color-paper-3); }
.auswahl-item:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.auswahl-item .s-main { display: block; font-weight: 700; }
.auswahl-item .s-sub { display: block; font-size: var(--text-sm); color: var(--color-muted); }
.loading { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-md); color: var(--color-muted); }
.spinner { width: 20px; height: 20px; border: 2px solid var(--color-rule); border-top-color: var(--color-accent); border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-map { margin: 0; min-width: 0; display: grid; justify-items: end; }
.karte { width: auto; max-width: 100%; height: min(calc(100svh - 300px), 760px); }
.karte-namen text { font-family: var(--font-body); font-size: 15px; fill: var(--color-muted); paint-order: stroke; stroke: var(--color-paper-2); stroke-width: 4px; stroke-linejoin: round; }
.karte-massstab path { stroke: var(--color-ink-2); stroke-width: 1.5; fill: none; }
.karte-massstab text { font-family: var(--font-body); font-size: 14px; fill: var(--color-ink-2); font-variant-numeric: tabular-nums; }
.legende { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); margin-bottom: var(--space-xs); color: var(--color-ink-2); }
.legende-flaeche { width: 14px; height: 14px; background: var(--color-field); flex-shrink: 0; }
.legende-item { display: inline-flex; align-items: center; gap: var(--space-xs); white-space: nowrap; }
.legende-grenze { width: 22px; height: 0; border-top: 2px solid var(--color-rule); flex-shrink: 0; }
.karte-bezirke path { fill: var(--color-paper-2); stroke: var(--color-rule); stroke-width: 1.5; stroke-linejoin: round; }
.karte-gebiete path { fill: var(--color-field); stroke: var(--color-field-2); stroke-width: 0.6; stroke-linejoin: round; transition: fill var(--dur-short) var(--ease-out); }
.karte-gebiete path.is-treffer { fill: var(--color-accent); stroke: var(--color-accent-2); }
.karte-link { cursor: pointer; }
.karte-link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.karte-bezirke .karte-link:hover path, .karte-bezirke .karte-link:focus-visible path { fill: var(--color-paper-3); }
.karte-gebiete .karte-link:hover path, .karte-gebiete .karte-link:focus-visible path { fill: var(--color-field-2); }
.karte-link:focus-visible path { stroke: var(--color-focus); stroke-width: 2.5; }
.karte-namen text { pointer-events: none; transition: fill var(--dur-short) var(--ease-out); }
.karte-namen text.is-hot { fill: var(--color-ink); font-weight: 700; }
.karte-marker circle { fill: none; stroke: var(--color-accent); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: marker-in 0.6s var(--ease-out) both; }
@keyframes marker-in { from { opacity: 0; transform: scale(2.2); } to { opacity: 1; transform: none; } }
.js .karte:not(.is-in) .karte-gebiete path { opacity: 0; transform: scale(0.4); }
.js .karte-gebiete path { transform-box: fill-box; transform-origin: center; transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), fill var(--dur-short) var(--ease-out); transition-delay: calc(var(--i, 0) * 4ms), calc(var(--i, 0) * 4ms), 0ms; }
.karte-info { min-height: 1lh; margin-bottom: var(--space-xs); color: var(--color-ink-2); }
.hero-map figcaption { justify-self: start; width: 100%; margin-top: var(--space-sm); padding-right: var(--gutter); font-size: var(--text-sm); color: var(--color-muted); max-width: 64ch; }

/* ---------- film: the explainer ---------- */
.film { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: end; }
.film-text p { margin-top: var(--space-md); color: var(--color-ink-2); font-size: var(--text-lead); }
.film-frame { margin: 0; min-width: 0; }
.film-frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; background: var(--color-ink); border-radius: var(--radius-card); outline: 1px solid var(--color-keyline); outline-offset: -1px; }
.film-frame video:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* ---------- für wen: three photographs ---------- */
.wege { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.wege > div { display: flex; flex-direction: column; min-width: 0; }
.wege-bild { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--radius-card); outline: 1px solid var(--color-keyline); outline-offset: -1px; }
.wege h3 { font-size: var(--text-title); margin-top: var(--space-lg); }
.wege p { margin-top: var(--space-sm); color: var(--color-ink-2); }
.wege .row { margin-top: auto; padding-top: var(--space-lg); }

/* ---------- drei wege ---------- */
.drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin-top: var(--space-xl); }
.drei > div { padding-top: var(--space-lg); border-top: 1px solid var(--color-ink); }
.drei .kond { margin-top: var(--space-xs); font-weight: 700; }
.drei .kond.blue { color: var(--color-field); }
.drei p + p { margin-top: var(--space-sm); color: var(--color-ink-2); }
.drei .more { display: inline-block; margin-top: var(--space-md); }
.antrag-direkt { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-ink); max-width: 60ch; }
.antrag-direkt p { margin-top: var(--space-xs); color: var(--color-ink-2); }
.antrag-direkt .btnp { margin-top: var(--space-md); }

/* ---------- zahlen beside the street ---------- */
.zahlen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: start; }
.zahlen figure { margin: 0; }
.zahlen figure img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--radius-card); outline: 1px solid var(--color-keyline); outline-offset: -1px; }
.zahlen figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.figs { margin-top: var(--space-xl); }
.figs > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-lg); align-items: baseline; padding: var(--space-lg) 0; border-top: 1px solid var(--color-rule); }
.figs b { font-family: var(--font-display); font-weight: 700; font-stretch: 82%; font-size: var(--text-figure); line-height: 0.95; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--color-field); }
.figs span { color: var(--color-ink-2); font-size: var(--text-lead); }
.src { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- wer dahinter steht ---------- */
.wer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: start; }
.wer-foto { margin: 0; }
.wer-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-card); outline: 1px solid var(--color-keyline); outline-offset: -1px; }
.wer-rolle { margin-top: var(--space-xs); color: var(--color-muted); }
.wer-zitat { margin: var(--space-lg) 0 0; font-family: var(--font-display); font-weight: 700; font-stretch: 82%; font-size: var(--text-2xl); line-height: 1.1; letter-spacing: -0.02em; max-width: 24ch; }
.wer-fakten { margin: var(--space-lg) 0 0; padding: 0; list-style: none; max-width: 60ch; }
.wer-fakten li { padding: var(--space-sm) 0; border-top: 1px solid var(--color-rule); }
.wer-fakten li:last-child { border-bottom: 1px solid var(--color-rule); }
.wer-text > p { margin-top: var(--space-md); color: var(--color-ink-2); }
.wer-presse { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-xs) var(--space-sm); align-items: baseline; margin: var(--space-lg) 0 0; }
.wer-presse dt { grid-column: 1 / -1; font-weight: 700; }
.wer-presse dd { display: contents; }
.presse-was { color: var(--color-ink-2); }
.wer-presse-label { font-weight: 700; }
.wer-presse a { display: inline-flex; align-items: center; gap: var(--space-2xs); text-decoration: none; }
.wer-presse a:hover { text-decoration: underline; }
.wer-presse svg { flex-shrink: 0; color: var(--color-muted); }
.wer-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-lg); }
.wer-klein { font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- scheitern: self-check ---------- */
.scheitern-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: start; margin-top: var(--space-xl); }
.scheitern-bild { margin: 0; position: sticky; top: var(--space-3xl); }
.scheitern-bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-card); outline: 1px solid var(--color-keyline); outline-offset: -1px; }
.scheitern-bild figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.sc-lead { font-weight: 700; font-size: var(--text-lg); }
.sc-list { list-style: none; margin: var(--space-md) 0 0; padding: 0; }
.sc-item { padding: var(--space-md) 0; border-top: 1px solid var(--color-rule); }
.sc-item:last-child { border-bottom: 1px solid var(--color-rule); }
.sc-row { display: flex; align-items: flex-start; gap: var(--space-sm); cursor: pointer; }
.sc-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sc-box { flex-shrink: 0; width: 24px; height: 24px; margin-top: var(--space-3xs); border: 1px solid var(--color-muted); border-radius: var(--radius-card); display: flex; align-items: center; justify-content: center; color: var(--color-ink); background: var(--color-paper); transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
.sc-box svg { opacity: 0; }
.sc-row:hover .sc-box { background: var(--color-paper-2); }
.sc-row input:checked + .sc-box { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.sc-row input:checked + .sc-box svg { opacity: 1; }
.sc-row input:focus-visible + .sc-box { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.sc-text { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-sm); align-items: baseline; }
.sc-title { font-weight: 700; }
.sc-ref { font-size: var(--text-sm); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.sc-why { margin-top: var(--space-xs); padding-left: calc(var(--space-lg) + var(--space-sm)); font-size: var(--text-sm); color: var(--color-ink-2); }
.sc-result { margin-top: var(--space-lg); padding: var(--space-lg); background: var(--color-paper-2); border-radius: var(--radius-card); }
.sc-cta { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }

/* ---------- preise ---------- */
.prices { margin-top: var(--space-xl); }
.price { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); padding: var(--space-xl) 0; border-top: 1px solid var(--color-rule); }
.price:last-child { border-bottom: 1px solid var(--color-rule); }
.price .n { font-family: var(--font-display); font-weight: 700; font-stretch: 82%; font-size: var(--text-3xl); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price .n small { display: block; margin-top: var(--space-xs); font-family: var(--font-body); font-stretch: 100%; font-weight: 400; font-size: var(--text-sm); letter-spacing: 0; color: var(--color-muted); }
.price .n.text { font-size: var(--text-xl); max-width: 14ch; font-variant-numeric: tabular-nums; }
.price p { margin-top: var(--space-xs); color: var(--color-ink-2); }
.price .more { display: inline-block; margin-top: var(--space-md); }
.pricenote { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.rueckruf { display: flex; align-items: center; gap: var(--space-md); margin-top: var(--space-xl); padding: var(--space-md) var(--space-lg); background: var(--color-paper-2); border-radius: var(--radius-card); }
.rueckruf img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rueckruf p { flex: 1 1 auto; min-width: 0; color: var(--color-ink-2); }
.rueckruf p strong { display: block; color: var(--color-ink); }
.rueckruf .rr-btn { flex-shrink: 0; }

/* ---------- sanierung: a change of paper ---------- */
.band { background: var(--color-ink); color: var(--color-paper); }
.band h2, .band h3 { color: var(--color-paper); }
.band a { color: var(--color-paper); text-decoration-color: var(--color-paper-3); }
.sanierung { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap-columns); align-items: start; padding: var(--space-3xl) var(--gutter); width: 100%; max-width: var(--container); margin-inline: auto; }
.sanierung h2 { font-size: var(--text-display-s); max-width: 14ch; }
.sanierung p { max-width: 50ch; font-size: var(--text-lead); color: var(--color-paper-3); }
.sanierung p + p { margin-top: var(--space-md); }
.sanierung .btnp { margin-top: var(--space-lg); }
.sanierung .hinweis { font-size: var(--text-sm); }
.sanierung .btnp { color: var(--color-paper); border-color: var(--color-paper); }
.sanierung .btnp:hover { background: var(--color-ink-2); color: var(--color-paper); border-color: var(--color-paper); }

/* ---------- einwände: disclosures ---------- */
.einw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap-columns); margin-top: var(--space-xl); border-top: 1px solid var(--color-ink); }
.einw details { border-bottom: 1px solid var(--color-rule); }
.einw summary { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) 0; cursor: pointer; list-style: none; }
.einw summary::-webkit-details-marker { display: none; }
.einw summary::after { content: "+"; flex-shrink: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: 1; color: var(--color-muted); transition: transform var(--dur-short) var(--ease-out); }
.einw details[open] summary::after { transform: rotate(45deg); }
.einw summary:hover h3 { text-decoration: underline; text-decoration-color: var(--color-accent); }
.einw summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.einw h3 { font-size: var(--text-lg); }
.einw details > p { padding-bottom: var(--space-md); color: var(--color-ink-2); }
.einw .rr-wrap { padding-bottom: var(--space-lg); }

/* ---------- bezirke: the plan as an index ---------- */
.bezirk-liste { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap-columns); border-bottom: 1px solid var(--color-rule); }
.bezirk-liste li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: var(--space-md); padding: var(--space-sm) 0; border-top: 1px solid var(--color-rule); }
.bezirk-sil { width: 64px; height: 64px; }
.bezirk-sil .sil-umriss { fill: var(--color-paper-2); stroke: var(--color-paper-3); stroke-width: 0.8; }
.bezirk-sil .sil-gebiete path { fill: var(--color-field); }
.bezirk-liste a { font-weight: 700; text-decoration: none; }
.bezirk-liste a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.bezirk-liste .anz { color: var(--color-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bezirk-liste .ohne span:not(.anz) { font-weight: 700; color: var(--color-muted); }
.bezirk-alle { margin-top: var(--space-lg); }

/* ---------- schluss: the request ---------- */
.schluss { margin-top: var(--section-gap); background: var(--color-paper-2); }
.schluss-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); padding-block: var(--space-3xl); }
.schluss-grid > div > p { margin-top: var(--space-md); color: var(--color-ink-2); font-size: var(--text-lead); }
.schluss-grid .row { margin-top: var(--space-xl); }
.schluss-klein { font-size: var(--text-sm) !important; color: var(--color-muted) !important; margin-top: var(--space-lg); }
.schluss-person { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-lg); align-items: end; margin: 0; }
.schluss-person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius-card); outline: 1px solid var(--color-keyline); outline-offset: -1px; }
.schluss-person figcaption { color: var(--color-ink-2); max-width: 28ch; }
.schluss-person strong { display: block; color: var(--color-ink); font-size: var(--text-lg); }

/* ---------- disclaimer + footer ---------- */
.disclaimer { max-width: var(--container); margin: var(--space-2xl) auto 0; padding-inline: var(--gutter); font-size: var(--text-sm); color: var(--color-muted); max-width: none; }
.disclaimer-inner { max-width: 70ch; }
footer { margin-top: var(--space-2xl); border-top: 1px solid var(--color-ink); }
.footer-inner { width: 100%; max-width: var(--container); margin-inline: auto; padding: var(--space-2xl) var(--gutter); }
.footer-name { font-family: var(--font-display); font-weight: 700; font-stretch: 112%; font-size: var(--text-display-s); letter-spacing: -0.02em; line-height: 1; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md) var(--space-xl); margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.footer-row nav { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.footer-row a { text-decoration: none; }
.footer-row a:hover { text-decoration: underline; }
.credits { margin-top: var(--space-lg); font-size: var(--text-xs); color: var(--color-muted); max-width: 90ch; }

/* ---------- sticky callback ---------- */
.sticky { position: fixed; right: var(--space-lg); bottom: var(--space-lg); z-index: var(--z-sticky); display: flex; gap: var(--space-xs); }
.sticky a { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border-radius: var(--radius-card); text-decoration: none; font-weight: 700; line-height: 1; }
.sticky .p { background: var(--color-accent); color: var(--color-accent-ink); border: 1px solid var(--color-accent); }
.sticky .p:hover { background: var(--color-accent-2); }
.sticky .s { display: none; }
.sticky.hidden-by-hero, .sticky.near-cta, .sticky.at-end { display: none; }

/* ---------- one reveal, visible without script ---------- */
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .checkpanel.ping input[type="text"] { animation: none; }
  .spinner { animation: none; }
  .karte-gebiete path, .karte-namen text { transition: none; }
  .js .karte:not(.is-in) .karte-gebiete path { opacity: 1; transform: none; }
  .karte-marker circle { animation: none; }
  .btn, .checkform button, .cta-btn, .anfrage button, .btnp, .btno, .rr-btn, .cta-nav, .auswahl-item, .einw summary::after { transition: none; }
}

/* ---------- widths ---------- */
@media (max-width: 75rem) {
  .nav { gap: var(--space-md); }
  .nav a { font-size: var(--text-sm); }
}
@media (max-width: 60rem) {
  .hamburger { display: flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: var(--space-sm) var(--gutter) var(--space-lg); background: var(--color-paper); border-bottom: 1px solid var(--color-rule); }
  .nav.open { display: flex; }
  .nav a { padding: var(--space-sm) 0; border-top: 1px solid var(--color-rule); font-size: var(--text-md); }
  .nav .cta-nav { margin-top: var(--space-sm); border-top: 1px solid var(--color-accent); }
  .header-inner { gap: var(--space-sm); min-height: 64px; }
  .brand { flex: 1 1 0; min-width: 0; }
  .brand a { white-space: normal; font-stretch: 100%; font-size: var(--text-md); }
  h1 { font-size: 2.25rem; }
  .lang-switch { order: 2; }
  .hamburger { order: 3; margin-left: 0; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); padding: var(--space-lg) var(--gutter) var(--space-xl); min-height: 0; }
  .hero-map { display: contents; }
  .hero-map .karte { order: -1; }
  .hero-map figcaption { order: 1; }
  .hero-map figcaption { padding-right: 0; }
  .karte { width: 100%; height: auto; max-height: 32svh; }
  .karte-namen { display: none; }
  .karte-massstab text { font-size: 20px; }
  .checkform { flex-direction: column; }
  .checkform button { width: 100%; }
  .wege, .drei, .film { grid-template-columns: minmax(0, 1fr); }
  .zahlen, .wer, .scheitern-grid, .schluss-grid, .bezirk-liste, .sanierung { grid-template-columns: minmax(0, 1fr); }
  .scheitern-bild { position: static; }
  .scheitern-bild img, .zahlen figure img, .wer-foto img { aspect-ratio: 4 / 3; }
  .schluss-person { grid-template-columns: minmax(0, 1fr); }
  .schluss-person img { aspect-ratio: 4 / 5; max-width: 22rem; }
  .einw { grid-template-columns: minmax(0, 1fr); }
  .price { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); padding: var(--space-lg) 0; }
  .rueckruf { flex-wrap: wrap; }
  .sticky { left: 0; right: 0; bottom: 0; gap: 0; }
  .sticky a { flex: 1 1 0; border-radius: 0; min-height: 56px; }
  .sticky .s { display: inline-flex; background: var(--color-ink); color: var(--color-paper); border: 1px solid var(--color-ink); }
  .sticky .s:hover { background: var(--color-ink-2); }
}
@media (max-width: 40rem) {
  .bezirk-liste li { grid-template-columns: 48px minmax(0, 1fr); }
  .bezirk-sil { width: 48px; height: 48px; grid-row: span 2; }
  .bezirk-liste .anz { grid-column: 2; }
  .figs > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .en-bar { justify-content: flex-start; }
  .en-bar-more, .en-bar strong { display: none; }
  .hero-map figcaption { font-size: var(--text-xs); }
}

/* ---------- logo (16.11.2026): rotes m.-Zeichen vor der Wortmarke, im Kopf und im Fuß ---------- */
.brand a { display: flex; align-items: center; gap: var(--space-sm); }
.brand .mark { width: 40px; height: 40px; flex: none; }
.footer-brand { display: flex; align-items: center; gap: var(--space-md); }
.footer-brand .mark { width: 44px; height: 44px; flex: none; }
@media (max-width: 60rem) { .brand .mark { width: 34px; height: 34px; } .footer-brand .mark { width: 36px; height: 36px; } }
@media (max-width: 40rem) { .brand .mark { width: 32px; height: 32px; } .brand a { gap: var(--space-xs); font-size: var(--text-sm); } .brand small { display: none; } }
@media (max-width: 40rem) {
  .wer-presse { grid-template-columns: minmax(0, 1fr); gap: var(--space-3xs); }
  .wer-presse .presse-was { margin-bottom: var(--space-xs); }
}
