/* Mietheld: tokens, type, map, buttons. Shared by the page and the check. */
/* Red Hat Display/Text: Teilmengen latin und latin-ext unverändert von Google Fonts (OFL, fonts/OFL-red-hat.txt),
   unicode-range wie dort (wie Casino N3). latin-ext lädt nur, wo solche Zeichen vorkommen (sr, bs, hr, tr, pl, ro, hu, sk).
   Kein Kursiv: die Donau-Beschriftung steht aufrecht. */
@font-face { font-family: 'Red Hat Display'; src: url(../fonts/red-hat-display-latin-ext.woff2) format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Red Hat Display'; src: url(../fonts/red-hat-display-latin.woff2) format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Red Hat Text'; src: url(../fonts/red-hat-text-latin-ext.woff2) format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Red Hat Text'; src: url(../fonts/red-hat-text-latin.woff2) format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Kyrillisch (Onest) und Arabisch/Farsi (Vazirmatn), OFL, wie Fassung D; laden nur, wenn solche Zeichen vorkommen. */
@font-face { font-family: 'Onest'; src: url(../fonts/onest-cyrillic.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; src: url(../fonts/onest-cyrillic-ext.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Vazirmatn'; src: url(../fonts/vazirmatn-arabic.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* Ersatz bis die Webschrift da ist: Arial (iPhone, Mac, Windows) bzw. Roboto (Android), auf Laufweite und Zeilenmaße
   der Webschrift gebracht, damit beim Schriftwechsel keine Zeile anders umbricht und nichts springt. size-adjust = Breite
   des sichtbaren Seitentexts ohne Leerzeichen in der Webschrift geteilt durch Arial (gemessen in Chrome, de/pl/tr,
   ru/uk/bg, ar/fa; normal gegen Arial, ab 550 gegen Arial Bold); Ober-/Unterlänge der Webschrift durch size-adjust
   geteilt. Je Schrift nur ihr Zeichenbereich, damit Kyrillisch und Arabisch beim eigenen Ersatz landen. Display bewusst
   etwas schmaler (98,5 statt 100 %), damit die zweizeilige Überschrift (--zeile in seite.css) im Ersatz nie dreizeilig wird.
   ponytail: ein Satz Werte für Arial und Roboto; Roboto läuft etwas schmaler und hat kein Arabisch (Android nimmt dort
   die Systemschrift ohne Anpassung). Eigene Werte erst, wenn es auf Android-Handys sichtbar springt. */
@font-face { font-family: 'Red Hat Display Ersatz'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Roboto Bold'), local('Roboto-Bold'); font-weight: 100 900; size-adjust: 98.5%; ascent-override: 103.4%; descent-override: 31.0%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Red Hat Text Ersatz'; src: local('Arial'), local('ArialMT'), local('Roboto'), local('Roboto-Regular'); font-weight: 100 549; size-adjust: 100%; ascent-override: 101.8%; descent-override: 30.5%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Red Hat Text Ersatz'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Roboto Bold'), local('Roboto-Bold'); font-weight: 550 900; size-adjust: 101%; ascent-override: 100.8%; descent-override: 30.2%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Das Leerzeichen eigens: bei Red Hat viel schmaler als bei Arial (Text 0,233 gegen 0,278 em, Display 0,201). Auf
   kyrillischen und arabischen Seiten kommt es aus Red Hat, die Buchstaben aus Onest/Vazirmatn; ohne das hier bricht
   der Einleitungstext anders um, solange nur eine der beiden Schriften da ist. Später definiert, gilt also zuerst. */
@font-face { font-family: 'Red Hat Display Ersatz'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Roboto Bold'), local('Roboto-Bold'); font-weight: 100 900; size-adjust: 72.3%; ascent-override: 140.8%; descent-override: 42.2%; line-gap-override: 0%; unicode-range: U+0020; }
@font-face { font-family: 'Red Hat Text Ersatz'; src: local('Arial'), local('ArialMT'), local('Roboto'), local('Roboto-Regular'); font-weight: 100 549; size-adjust: 83.9%; ascent-override: 121.3%; descent-override: 36.4%; line-gap-override: 0%; unicode-range: U+0020; }
@font-face { font-family: 'Red Hat Text Ersatz'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Roboto Bold'), local('Roboto-Bold'); font-weight: 550 900; size-adjust: 83.9%; ascent-override: 121.3%; descent-override: 36.4%; line-gap-override: 0%; unicode-range: U+0020; }
@font-face { font-family: 'Onest Ersatz'; src: local('Arial'), local('ArialMT'), local('Roboto'), local('Roboto-Regular'); font-weight: 100 549; size-adjust: 103%; ascent-override: 94.2%; descent-override: 29.6%; line-gap-override: 0%; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Onest Ersatz'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Roboto Bold'), local('Roboto-Bold'); font-weight: 550 900; size-adjust: 99%; ascent-override: 98.0%; descent-override: 30.8%; line-gap-override: 0%; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Vazirmatn Ersatz'; src: local('Arial'), local('ArialMT'); font-weight: 100 549; size-adjust: 118%; ascent-override: 86.9%; descent-override: 45.5%; line-gap-override: 0%; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Vazirmatn Ersatz'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 550 900; size-adjust: 120%; ascent-override: 85.4%; descent-override: 44.8%; line-gap-override: 0%; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
:root {
  /* Scheme "Grün" (Julius, 30.09.2026). ponytail: the --orange-* names now carry the green accent
     (buttons, result, highlights); the map dots stay Altbau orange via --punkte. */
  --papier: #f4f6f2;
  --land: #e4e9e0;
  --tinte: #13241c;
  --tinte-2: #4a5a52;
  --haar: #d0d8cc;
  --grenze: #86948b;
  --wasser: #bcd7ea;
  --wasser-tinte: #2a6590;
  --orange: #15884c;
  --orange-dunkel: #107340;
  --orange-hell: #d3eedd;
  --orange-tinte: #0e6a39;
  --punkte: #e5812a;
  --knopf-text: #ffffff;
  --weiss: #fcfdfb;
  --display: 'Red Hat Display', 'Red Hat Display Ersatz', 'Onest', 'Onest Ersatz', 'Vazirmatn', 'Vazirmatn Ersatz', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Red Hat Text', 'Red Hat Text Ersatz', 'Onest', 'Onest Ersatz', 'Vazirmatn', 'Vazirmatn Ersatz', 'Helvetica Neue', Arial, sans-serif;
  --rand: max(16px, env(safe-area-inset-left));
  --breite: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--papier); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--papier); color: var(--tinte); font: 400 17px/1.55 var(--text); font-feature-settings: 'tnum' 0; -webkit-font-smoothing: antialiased; }
::selection { background: var(--orange-hell); color: var(--tinte); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--orange); }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.zahl { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Legal line in the footer (Seite and Check): every part nowrap, the "·" sits before each part and is
   cut off at the start of a line (negative margin inside overflow:hidden), so no line begins with a dot. */
.fusszeile { overflow: hidden; }
.fusszeile p { display: flex; flex-wrap: wrap; align-items: baseline; margin-inline-start: -1.3em; }
.fusszeile span { white-space: nowrap; }
.fusszeile span::before { content: "·"; display: inline-block; width: 1.3em; text-align: center; }
.fusszeile a { display: inline-block; padding: 10px 0; }
.fusszeile a:focus-visible { outline-offset: -3px; }
.fuss-karte { font-size: 12px; }

/* Wordmark: the map's "your flat" marker plus the name */
.marke { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: -.02em; min-height: 44px; }
.marke img { width: 32px; height: 32px; flex: none; }
.pin-ring { fill: var(--orange); stroke: var(--tinte); stroke-width: 1.6; }
.pin-kern { fill: var(--tinte); }

/* Buttons: orange like a signpost, ink type */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 4px;
  background: var(--orange); color: var(--knopf-text); font: 700 17px/1 var(--display); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(19, 36, 28, .25), 0 6px 14px -8px rgba(14, 106, 57, .55); transition: background-color .15s, transform .15s; }
.knopf:hover { background: var(--orange-dunkel); text-decoration: none; }
.knopf:active { transform: translateY(1px); }
.knopf[disabled] { opacity: .6; cursor: progress; }
.knopf .pfeil { width: 18px; height: 18px; }
.knopf-still { display: inline-flex; align-items: center; min-height: 44px; font: 600 16px/1.2 var(--text); color: var(--tinte); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Skip link, language menu (from D, in E colours), expandable legal basis */
.sprung { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 60; padding: 10px 14px; background: var(--tinte); color: var(--weiss); border-radius: 4px; }
.sprung:focus { top: 8px; }
.sprachwahl { position: relative; }
.sprachwahl summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 1.5px solid var(--haar); border-radius: 4px; list-style: none; cursor: pointer; font: 600 15px/1 var(--text); white-space: nowrap; }
.sprachwahl summary::-webkit-details-marker { display: none; }
.sprachwahl summary:hover { border-color: var(--tinte); }
.sprachwahl summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }
.sprachwahl[open] summary { background: var(--tinte); color: var(--weiss); border-color: var(--tinte); }
.sprachliste { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 50; min-width: 220px; max-width: calc(100vw - 32px); max-height: 70vh; overflow: auto; margin: 0; padding: 6px; list-style: none; background: var(--weiss); border: 1.5px solid var(--tinte); border-radius: 4px; box-shadow: 0 10px 30px -14px rgba(22, 36, 42, .45); }
.sprachliste a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 3px; text-decoration: none; font-weight: 500; font-family: system-ui, sans-serif; }   /* Systemschrift: das Öffnen lädt keine Schriftdateien nach (Русский, العربية …) */
.sprachliste a[dir="rtl"] { justify-content: flex-end; }   /* Arabic and Farsi names left-aligned like the others */
.sprachliste a:hover { background: var(--land); }
.sprachliste a[aria-current] { font-weight: 700; }
.sprachliste a[aria-current]::after { content: ''; width: 10px; height: 10px; margin-inline-start: auto; border-radius: 50%; background: var(--orange); border: 1.5px solid var(--tinte); }
/* more languages above or below: a fade with an arrow sticks to the edge until the list is scrolled to that end */
.sprach-mehr { position: sticky; height: 44px; display: flex; justify-content: center; color: var(--tinte); pointer-events: none; transition: opacity .2s; }
.sprach-mehr.unten { bottom: -6px; margin: -44px -6px -6px; align-items: flex-end; padding-bottom: 6px; background: linear-gradient(rgba(252, 253, 251, 0), var(--weiss) 70%); }
.sprach-mehr.oben { top: -6px; margin: -6px -6px -44px; align-items: flex-start; padding-top: 6px; background: linear-gradient(var(--weiss) 30%, rgba(252, 253, 251, 0)); z-index: 1; }
.sprach-mehr svg { width: 22px; height: 22px; }
.sprach-mehr.oben svg { transform: rotate(180deg); }
.sprachliste.am-ende .sprach-mehr.unten, .sprachliste.am-anfang .sprach-mehr.oben { opacity: 0; }
.sprachliste:not(.am-ende) .sprach-mehr.unten svg { animation: sprach-runter 1s ease-in-out 2; }
.sprachliste:not(.am-anfang) .sprach-mehr.oben svg { animation: sprach-rauf 1s ease-in-out 2; }
@keyframes sprach-runter { 50% { transform: translateY(4px); } }
@keyframes sprach-rauf { 0%, 100% { transform: rotate(180deg); } 50% { transform: rotate(180deg) translateY(4px); } }
.recht { margin-top: 14px; font-size: 14px; color: var(--tinte-2); }
.recht summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-weight: 600; list-style: none; color: var(--tinte); }
.recht summary::-webkit-details-marker { display: none; }
.recht summary::before { content: ''; width: 8px; height: 8px; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.recht[open] summary::before { transform: rotate(45deg); }
.recht p, .recht ul { margin: 2px 0 8px; }
.recht ul { padding-inline-start: 18px; }
.recht li { margin: 4px 0; }

/* ---- The map ---- */
.karte { margin: 0; position: relative; }
.k-blatt { position: relative; }
.k-svg { width: 100%; height: auto; overflow: visible; }
.k-land { fill: var(--land); }
.k-see { fill: var(--wasser); }
.k-strom { fill: none; stroke: var(--wasser); stroke-width: 3.4; stroke-linejoin: round; stroke-linecap: round; }
.k-kanal { fill: none; stroke: #93bfdf; stroke-width: .7; }
.k-fluss { fill: none; stroke: #93bfdf; stroke-width: .55; }
.k-altbau { pointer-events: none; }
.k-bezirke path { fill: transparent; stroke: var(--grenze); stroke-width: .9px; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: fill .2s; }
.k-bezirke path.an { fill: rgba(229, 129, 42, .16); }
.k-bezirke path.gewaehlt { fill: rgba(229, 129, 42, .24); stroke: var(--tinte); stroke-width: 2px; }
.k-grenze { fill: none; stroke: var(--tinte); stroke-width: 1.6px; vector-effect: non-scaling-stroke; stroke-linejoin: round; pointer-events: none; }
.k-marke-hof { fill: var(--punkte); stroke: var(--tinte); stroke-width: 1.8px; vector-effect: non-scaling-stroke; }
.k-marke-punkt { fill: var(--tinte); }
.k-marke[hidden] { display: none; }
.k-namen text { font-family: var(--display); fill: var(--tinte); paint-order: stroke; stroke: var(--land); stroke-width: .28em; stroke-linejoin: round; pointer-events: none; }
.k-namen .k-nr { font-weight: 800; fill: var(--tinte-2); }
.k-namen .k-name { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; fill: var(--tinte-2); }
.k-namen .k-name.gewaehlt, .k-namen .k-nr.gewaehlt { fill: var(--tinte); }
.k-namen .k-wasser-name { font-family: var(--text); font-weight: 500; fill: var(--wasser-tinte); stroke: var(--wasser); letter-spacing: .06em; }
.k-namen [hidden] { display: none; }
.karte.klickbar .k-bezirke path { cursor: pointer; }

/* scale bar: 5 km = 50 map units of 298 */
.k-massstab { position: absolute; inset-inline-start: 3%; bottom: 2%; width: calc(100% * 50 / 298); font: 600 11px/1 var(--text); color: var(--tinte-2); pointer-events: none; }
.k-massstab i { display: block; height: 5px; border: 1.5px solid var(--tinte); border-top: 0; margin-bottom: 4px; background: linear-gradient(90deg, var(--tinte) 50%, transparent 50%) bottom / 100% 1.5px no-repeat; }
.k-massstab span { display: flex; justify-content: space-between; white-space: nowrap; }
.k-massstab span b:last-child { transform: translateX(55%); }
[dir="rtl"] .k-massstab span b:last-child { transform: translateX(-55%); }

.k-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font: 500 13.5px/1.35 var(--text); color: var(--tinte-2); }
.lg { display: inline-flex; align-items: center; gap: 7px; }
.lg-punkte { width: 22px; height: 10px; background: radial-gradient(circle, var(--punkte) 2.6px, transparent 3px) 0 50% / 8px 10px repeat-x; }
.lg-wasser { width: 18px; height: 8px; border-radius: 2px; background: var(--wasser); }
.lg-grenze { width: 18px; height: 0; border-top: 1.5px solid var(--grenze); }
.quelle { font: 400 12.5px/1.4 var(--text); color: var(--tinte-2); }
.quelle a { color: inherit; }

/* Mietheld: the rent check. Mobile first: a map strip above the question, on the
   postcode step the full map below the field. From 900 px the map stands beside the form. */
body { min-height: 100dvh; display: flex; flex-direction: column; }
.c-kopf { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 6px var(--rand); max-width: var(--breite); width: 100%; margin: 0 auto; }
.zaehler { margin: 0 0 8px; font: 600 14px/1.2 var(--text); color: var(--tinte-2); }
body[data-schritt="danke"] .zaehler, body.ist-stopp .zaehler { display: none; }
.c-tel { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; min-width: 44px; justify-content: flex-end; font: 700 16px/1 var(--display); text-decoration: none; }
.c-tel svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.fortschritt { height: 3px; background: var(--haar); }
.fortschritt span { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(var(--anteil, 0)); transition: transform .45s cubic-bezier(.16, 1, .3, 1); }

.c-buehne { flex: 1; width: 100%; max-width: var(--breite); margin: 0 auto; display: flex; flex-direction: column; }

/* map strip */
.c-karte { position: relative; margin: 0; border-bottom: 1px solid var(--haar); }
.c-karte .k-blatt { height: 168px; }
.c-karte .k-svg { width: 100%; height: 100%; overflow: hidden; }
body[data-schritt="lage"] .c-karte { order: 2; border: 0; padding: 4px 6px 12px; }
body[data-schritt="lage"] .c-karte .k-blatt { height: auto; }
body[data-schritt="lage"] .c-karte .k-svg { height: auto; }
body[data-schritt="danke"] .c-karte, body.ist-stopp .c-karte { display: none; }
body.ausserhalb:not([data-schritt="lage"]) .c-karte .k-blatt { display: none; }
.c-karte .k-land { fill: var(--land); }
.c-karte.klickbar .k-bezirke path:hover { fill: rgba(229, 129, 42, .16); }

.c-legende { padding: 8px var(--rand) 10px; font-size: 13.5px; }
.c-legende-titel { display: none; }
.c-legende dl { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.c-legende[hidden], .c-legende [hidden] { display: none; }
.c-legende div { display: flex; gap: 5px; align-items: baseline; }
.c-legende dt { color: var(--tinte-2); }
.c-legende dd { margin: 0; font-weight: 700; }
body[data-schritt="lage"] .c-legende { display: none; }

/* ---- form ---- */
#formular { padding: 22px var(--rand) 28px; }
.schritt { animation: rein .38s cubic-bezier(.16, 1, .3, 1); }
.schritt.sofort { animation: none; }
@keyframes rein { from { opacity: 0; transform: translateY(8px); } }
.s-titel { hyphens: manual; font-size: clamp(27px, 7.4vw, 40px); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; outline: none; }
.s-sub { margin-top: 10px; color: var(--tinte-2); }
.schritt > p:not(.s-sub):not(.fehler) { margin-top: 14px; max-width: 58ch; }

.wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.wahl-zeilen { grid-template-columns: 1fr; }
.wahl label { position: relative; display: block; }
.wahl label.breit { grid-column: 1 / -1; }
.wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wahl label > span { display: grid; align-content: start; gap: 3px; min-height: 64px; height: 100%; padding: 14px 14px 13px; background: var(--weiss); border: 1.5px solid #b4bbb1; border-radius: 4px; cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s; }
.wahl label > span:hover { border-color: var(--tinte); }
.wahl b { font: 700 17.5px/1.25 var(--display); letter-spacing: -.01em; }
.wahl small { font-size: 14px; color: var(--tinte-2); }
.wahl .zeichen { width: 34px; height: 34px; margin-bottom: 8px; }
.wahl label.breit > span { grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; }
.wahl label.breit .zeichen { grid-row: span 2; margin: 0; }
.wahl-zeilen label > span { align-content: center; }
.wahl input:checked + span { border-color: var(--tinte); background: var(--orange-hell); box-shadow: inset 0 0 0 1px var(--tinte); }
.wahl input:focus-visible + span { outline: 3px solid var(--tinte); outline-offset: 2px; }
.wahl input:disabled + span { cursor: progress; }
.wahl[aria-invalid="true"] label > span { border-color: #a3261a; }

.feld { margin-top: 22px; }
.feld > label { display: block; font: 600 15px/1.35 var(--text); margin-bottom: 8px; max-width: 46ch; }
.feld input { width: 100%; min-height: 56px; padding: 0 14px; border: 1.5px solid var(--tinte); border-radius: 4px; background: var(--weiss); color: var(--tinte);
  font: 600 18px/1.2 var(--text); caret-color: var(--orange-dunkel); }
.feld input:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
.feld.ungueltig input { border-color: #a3261a; }
.feld-plz input { width: 6.2em; font: 800 28px/1 var(--display); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.plz-ort { margin-top: 10px; min-height: 1.4em; font-weight: 700; }
.mit-einheit { position: relative; max-width: 14em; }
.mit-einheit input { padding-inline-end: 52px; font: 800 28px/1 var(--display); font-variant-numeric: tabular-nums; }
.mit-einheit span { position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%); font: 700 20px/1 var(--display); color: var(--tinte-2); pointer-events: none; }
.fehler { margin-top: 8px; color: #a3261a; font-size: 15px; font-weight: 600; }
.vorschlag { margin-top: 6px; font-size: 15px; }
.vorschlag .knopf-still { min-height: 32px; font-size: 15px; }
.felder .feld:first-child { margin-top: 18px; }
.datenschutz { margin-top: 18px !important; font-size: 14px; color: var(--tinte-2); }

.aktionen { display: flex; gap: 10px; margin-top: 26px; }
.aktionen .knopf { flex: 1; order: 2; }
.aktionen .knopf[hidden] { display: none; }
.zurueck { order: 1; min-height: 52px; padding: 0 18px; border: 1.5px solid var(--tinte); border-radius: 4px; background: transparent; color: var(--tinte); font: 700 16px/1 var(--display); cursor: pointer; }
.zurueck:hover { background: var(--weiss); }
.zurueck[hidden] { display: none; }
.stopp-weiter { display: none; margin-top: 18px; font-size: 15px; }
body.ist-stopp .stopp-weiter { display: block; }
.versand-fehler { margin-top: 18px; padding: 12px 14px; border: 1.5px solid #a3261a; border-radius: 4px; color: #a3261a; font-weight: 600; }
.versand-fehler[hidden] { display: none; }

/* ---- estimate: a card with a scale bar ---- */
.e-karte { padding: 20px 18px 22px; background: var(--weiss); border: 1.5px solid var(--tinte); border-radius: 4px; }
.e-ort { font-size: 14px; font-weight: 600; color: var(--tinte-2); margin-bottom: 8px; }
.e-stufe[data-stufe="gut"] { color: var(--orange-tinte); }
.e-stufe[data-stufe="gering"] { color: var(--tinte-2); }
.e-betrag { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 12px !important; padding: 12px 14px; background: var(--orange-hell); border-radius: 4px; }
.e-betrag b { font: 800 30px/1 var(--display); letter-spacing: -.02em; color: var(--orange-tinte); font-variant-numeric: tabular-nums; }
.e-betrag span { font-size: 16px; font-weight: 600; }
.e-betrag[hidden] { display: none; }
/* floors: one per € per m², grid lines every 5 € (--fuenf), dashed line at the rough limit */
.e-stockwerke { display: grid; grid-template-columns: 34px 1fr; margin: 18px 0 6px; }
.e-einheit { grid-column: 1 / -1; margin-bottom: 10px !important; font-size: 12.5px; color: var(--tinte-2); }
.e-achse { position: relative; }
.e-achse span { position: absolute; inset-inline-end: 8px; transform: translateY(50%); font-size: 12.5px; color: var(--tinte-2); font-variant-numeric: tabular-nums; }
.e-plot, .e-namen { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 28px; padding-inline: 14px; }
.e-plot { position: relative; align-items: end; border-bottom: 3px solid var(--tinte); background: repeating-linear-gradient(to top, var(--haar) 0 1px, transparent 1px var(--fuenf)); }
.e-namen { grid-column: 2; }
.e-stapel { display: flex; flex-direction: column-reverse; gap: 2px; width: 100%; max-width: 150px; justify-self: center; }
.e-stapel i { display: block; border: 1.5px solid var(--tinte); background: var(--land); }
/* your column in the orange of the map dots: light up to the limit, darker above it */
.e-stapel-du i { background: #f8dcc0; }
.e-stapel-du i.zu { background: #d9701d; }
.e-grenzlinie { position: absolute; inset-inline: 0; border-top: 2px dashed var(--orange-tinte); }
.e-name { margin-top: 8px !important; text-align: center; font-size: 14px; color: var(--tinte-2); }
.e-name b { display: block; font: 800 18px/1.15 var(--display); white-space: nowrap; color: var(--tinte); font-variant-numeric: tabular-nums; }
.e-name.ueber b, .e-name.ueber { color: #a8500f; }
.e-stockwerke [hidden] { display: none; }
.e-text { margin-top: 10px !important; font-size: 16.5px; }
.e-quelle { margin-top: 10px !important; font-size: 13px; color: var(--tinte-2); }
.e-quelle:empty { display: none; }
body[data-schritt="ergebnis"] .aktionen { margin-top: 14px; }

/* ---- thank-you ---- */
.c-linie { list-style: none; margin: 26px 0 0; padding: 0; }
.c-linie li { position: relative; padding-block: 0 22px; padding-inline: 40px 0; }
.c-linie li::before { content: ''; position: absolute; inset-inline-start: 9px; top: 8px; bottom: -8px; width: 5px; background: var(--orange); }
.c-linie li:last-child::before { display: none; }
.c-linie li::after { content: ''; position: absolute; inset-inline-start: 2px; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--weiss); border: 2.5px solid var(--tinte); box-sizing: border-box; }
.c-linie li.ziel::after { background: var(--orange); }
.c-linie b { font: 800 18px/1.25 var(--display); }
.c-linie p { margin-top: 4px; color: var(--tinte-2); }
.unterlagen { margin-top: 18px; padding-top: 20px; border-top: 1.5px solid var(--tinte); display: grid; gap: 10px; justify-items: start; }
.unterlagen h2 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.unterlagen p { color: var(--tinte-2); }
.knopf-rand { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 1.5px solid var(--tinte); border-radius: 4px; font: 700 16px/1 var(--display); cursor: pointer; }
.knopf-rand:hover { background: var(--weiss); }
.knopf-rand:focus-within { outline: 3px solid var(--tinte); outline-offset: 2px; }
.datei-liste { margin: 0; padding-inline-start: 18px; font-size: 15px; }
.datei-liste:empty { display: none; }
.upload-status { font-weight: 700; color: var(--tinte) !important; }
.upload-status.fehler { color: #a3261a !important; }
.upload-status:empty { display: none; }
#hochladen[disabled] { opacity: .6; cursor: progress; }
/* Honeypot: in the form for bots, invisible and unreachable for people */
.honig { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.d-kontakt { margin-top: 22px !important; }

.c-fuss { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 18px var(--rand) calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--haar); display: grid; gap: 6px; font-size: 13px; color: var(--tinte-2); }
/* Consent line only on the step that sends the request */
.fuss-werbung { display: none; font-size: 12px; }
body[data-schritt="kontakt"] .fuss-werbung { display: block; }
.fuss-werbung button { padding: 4px 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.fuss-werbung button:hover { color: var(--tinte); }
/* Consent text: same sheet as the viewing calendar */
.dok-hinweis { margin-top: 8px !important; font-size: 14px; color: var(--tinte-2); }
html[lang="de"] .dok-hinweis { display: none; }
.dok-text p { margin-top: 12px; font-size: 15px; line-height: 1.5; text-align: start; }
.termin-fehler { margin-top: 16px !important; color: #a3261a; font-weight: 600; }

@media (max-width: 419px) {
  .c-tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .c-tel { border: 1.5px solid var(--tinte); border-radius: 4px; width: 44px; justify-content: center; }
}
@media (min-width: 600px) {
  .c-karte .k-blatt { height: 250px; }
  .e-karte { padding: 26px 28px 28px; }
}
@media (min-width: 900px) {
  .c-kopf { padding-top: 10px; padding-bottom: 10px; }
  .c-buehne { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 48px; padding: 0 var(--rand); align-items: start; }
  #formular { grid-column: 1; grid-row: 1; padding: 48px 0 56px; max-width: 560px; }
  .c-karte, body[data-schritt="lage"] .c-karte { grid-column: 2; grid-row: 1; position: sticky; top: 16px; margin-top: 28px; padding: 0; border: 0; height: min(640px, calc(100dvh - 120px)); }
  .c-karte .k-blatt, body[data-schritt="lage"] .c-karte .k-blatt { height: 100%; }
  .c-karte .k-svg, body[data-schritt="lage"] .c-karte .k-svg { height: 100%; }
  body.ausserhalb:not([data-schritt="lage"]) .c-karte .k-blatt { display: block; opacity: .35; }
  .c-legende, body[data-schritt="lage"] .c-legende { position: absolute; inset-inline-start: 0; bottom: 0; display: block; min-width: 190px; padding: 12px 16px 14px; background: var(--weiss); border: 1.5px solid var(--tinte); border-radius: 4px; box-shadow: 0 8px 24px -16px rgba(22, 36, 42, .5); }
  .c-legende-titel { display: block; font: 800 12px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid var(--haar); margin-bottom: 6px; }
  .c-legende dl { display: grid; gap: 4px; }
  .c-legende dl div { display: grid; grid-template-columns: 5.2em 1fr; }
  .c-legende[hidden] { display: none; }
  .wahl { gap: 12px; }
}

/* E multilingual: house drawings, rooms, "don't know" options, callback language */
.wahl-haus { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.wahl-haus label > span { justify-items: center; text-align: center; padding: 10px 6px 11px; }
.wahl-haus .zeichnung { width: 100%; max-width: 96px; height: auto; margin-bottom: 6px; fill: none; stroke: var(--tinte); stroke-width: 1.4; stroke-linejoin: round; }
.wahl-haus .z-fenster { fill: #dfe8ee; }
.wahl-haus .z-akzent { fill: var(--orange); stroke: none; }
.wahl-haus input:checked + span .z-fenster { fill: var(--weiss); }
.wahl-haus b { font-size: clamp(14px, 4vw, 15.5px); hyphens: manual; }
.wahl-haus small { font-size: 12.5px; line-height: 1.25; }
.wahl-haus label.text { grid-column: 1 / -1; }
.wahl-haus label.text > span { justify-items: start; text-align: start; min-height: 56px; align-content: center; padding: 12px 14px; }
.wahl label.leise > span { background: transparent; border-style: dashed; }
.wahl-zimmer { grid-template-columns: repeat(4, 1fr); }
.wahl-zimmer label:last-child { grid-column: 1 / -1; }
.wahl-zimmer label > span { justify-items: center; align-content: center; }
.wahl-zimmer b { font-size: 22px; }
.wahl-zimmer label:last-child b { font-size: 17.5px; }
.weiss-nicht { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--tinte); font: 600 16px/1.2 var(--text); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.c-kopf .sprachwahl summary { padding: 0 8px; }
@media (min-width: 600px) {
  .wahl-haus { gap: 12px; }
  .wahl-haus label.text { grid-column: 1 / -1; }
}

/* ---- Viewing appointment: bottom sheet on phones, centred card from 700 px ---- */
.termin-oeffnen { margin-top: 18px; }
.termin { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; padding: 0; border: 0; border-radius: 18px 18px 0 0; background: var(--weiss); color: var(--tinte); overflow: auto; overscroll-behavior: contain; box-shadow: 0 -12px 40px -16px rgba(19, 36, 28, .45); }
.termin::backdrop { background: rgba(19, 36, 28, .55); }
.termin[open] { animation: termin-hoch .38s cubic-bezier(.16, 1, .3, 1); }
.termin[open]::backdrop { animation: termin-ein .3s ease-out; }
@keyframes termin-hoch { from { transform: translateY(40%); opacity: .4; } }
@keyframes termin-ein { from { opacity: 0; } }
.termin form { position: relative; padding: 22px var(--rand) calc(20px + env(safe-area-inset-bottom)); }
.termin form::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--haar); }
.termin-zu { position: absolute; top: 12px; inset-inline-end: 10px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--tinte-2); cursor: pointer; }
.termin-zu svg { width: 20px; height: 20px; }
.termin-zu:hover { background: var(--land); }
.termin-zeichen { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--orange-hell); color: var(--orange-tinte); }
.termin-zeichen svg { width: 26px; height: 26px; }
.termin-zeichen.ok { background: var(--orange); color: var(--knopf-text); }
.termin h2 { margin-top: 14px; font: 800 24px/1.15 var(--display); letter-spacing: -.02em; padding-inline-end: 40px; }
.termin h2:focus { outline: none; }
.termin-text { margin-top: 6px !important; color: var(--tinte-2); font-size: 16px; line-height: 1.45; }
.termin-feld { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.termin-feld legend { padding: 0; margin-bottom: 8px; font: 700 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--tinte-2); }
.termin-tage { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rand); margin-inline: calc(-1 * var(--rand)); padding: 2px var(--rand) 6px; scrollbar-width: none; }
.termin-tage::-webkit-scrollbar { display: none; }
.termin-tage label { flex: none; scroll-snap-align: start; cursor: pointer; }
.termin-tage span { display: grid; justify-items: center; gap: 4px; width: 64px; padding: 10px 0 11px; border: 1.5px solid var(--haar); border-radius: 12px; background: var(--weiss); transition: background-color .15s, border-color .15s; }
.termin-tage small { font-size: 13px; font-weight: 600; color: var(--tinte-2); }
.termin-tage b { font: 800 17px/1 var(--display); font-variant-numeric: tabular-nums; }
.termin-tage input:checked + span { background: var(--orange); border-color: var(--orange); color: var(--knopf-text); }
.termin-tage input:checked + span small { color: inherit; opacity: .85; }
.termin-tage input:focus-visible + span, .termin-zeiten input:focus-visible + span { outline: 3px solid var(--tinte); outline-offset: 2px; }
.termin-zeiten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.termin-zeiten label { position: relative; cursor: pointer; }
.termin-zeiten span { display: grid; place-items: center; min-height: 48px; border: 1.5px solid var(--haar); border-radius: 10px; background: var(--weiss); font: 700 16px/1 var(--display); font-variant-numeric: tabular-nums; transition: background-color .15s, border-color .15s; }
.termin-zeiten label:hover span { border-color: var(--orange); }
.termin-zeiten input:checked + span { background: var(--orange); border-color: var(--orange); color: var(--knopf-text); }
.termin-zeiten .weg { cursor: not-allowed; }
.termin-zeiten .weg span { border-style: dashed; background: transparent; color: #8a968f; text-decoration: line-through; font-weight: 600; }
.termin-zeiten .weg:hover span { border-color: var(--haar); }
.termin-zeiten small { position: absolute; bottom: 3px; inset-inline: 0; text-align: center; font-size: 10.5px; color: #6f7b74; }
.termin-zeiten .weg span { padding-bottom: 10px; }
.termin-ok { width: 100%; margin-top: 20px; }
.termin-ok[disabled] { opacity: .45; cursor: not-allowed; }
.termin-spaeter { display: flex; margin: 8px auto 0; }
.termin-was { margin-top: 10px !important; font: 800 19px/1.3 var(--display); color: var(--orange-tinte); }
@media (min-width: 700px) {
  .termin { max-width: 520px; margin: auto; border-radius: 16px; box-shadow: 0 24px 60px -24px rgba(19, 36, 28, .55); }
  .termin form { padding: 28px 28px 24px; }
  .termin form::before { display: none; }
  .termin[open] { animation-name: termin-auf; }
  .termin-tage { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; }
  .termin-zeiten { grid-template-columns: repeat(5, 1fr); }
}
@keyframes termin-auf { from { transform: translateY(12px) scale(.98); opacity: 0; } }
