/* 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 explanation page. Mobile first. */
.kopf { display: flex; align-items: center; gap: 12px; max-width: var(--breite); margin: 0 auto; padding: 10px var(--rand); }
.kopf .marke { margin-inline-end: auto; }
.kopf-nav { display: none; }
.kopf-tel { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; min-width: 44px; font: 700 16px/1 var(--display); text-decoration: none; }
.kopf-tel svg, .leiste-tel svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.kopf-knopf { display: none; }

main > section { max-width: var(--breite); margin: 0 auto; padding: clamp(34px, 5.5vw, 76px) var(--rand); border-top: 1px solid var(--haar); }
main > section.held { border-top: 0; }
.abschnitt-kopf h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.06; font-weight: 800; letter-spacing: -.025em; }
.abschnitt-kopf p { margin-top: 12px; font-size: 18px; color: var(--tinte-2); max-width: 52ch; }

/* ---- Hero: text and map ---- */
.held { display: grid; gap: 0; padding-top: 14px !important; padding-bottom: 30px !important; }
.held-text { display: contents; }
.held h1 { --zeile: 9.7; order: 1; font-size: clamp(22px, calc((100vw - 34px) / var(--zeile)), 72px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
/* --zeile = width of the first headline line in em ("Zahlst du zu viel Miete" 9.6em, Cyrillic about 12.6em),
   so the headline stays on two lines at every width; tests/check.mjs checks this for every language */
:lang(pl) .held h1 { --zeile: 10.4; }
:lang(sq) .held h1 { --zeile: 10.55; }
:lang(ro) .held h1 { --zeile: 11; }
:lang(tr) .held h1 { --zeile: 11.75; }
:lang(fa) .held h1 { --zeile: 11.9; }
:lang(hr) .held h1 { --zeile: 12.2; }
:lang(sk) .held h1 { --zeile: 12.65; }
:lang(uk) .held h1, :lang(ru) .held h1 { --zeile: 12.8; }
:lang(bg) .held h1 { --zeile: 14.5; }
.held-lead { order: 2; margin-top: 14px; font-size: 18px; line-height: 1.5; max-width: 46ch; }
.held-auszug { order: 2; display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 11px 13px; background: var(--orange-hell); border-radius: 4px; font-weight: 600; font-size: 16px; line-height: 1.4; max-width: 46ch; }
.held-auszug svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: var(--orange); stroke: var(--tinte); stroke-width: 1.4; stroke-linejoin: round; }
.held-karte { order: 3; margin: 22px -6px 0; }
.held-lead2 { margin-top: 22px !important; }
.held-lead2 { order: 5; margin-top: 26px; font-size: 17px; color: var(--tinte-2); max-width: 46ch; }
.plz { order: 4; margin-top: 22px; }
.plz label { display: block; font: 700 15px/1.3 var(--display); margin-bottom: 8px; }
.plz-zeile { display: flex; gap: 8px; }
.plz input { width: 7.2em; flex: none; min-height: 56px; padding: 0 14px; border: 1.5px solid var(--tinte); border-radius: 4px; background: var(--weiss);
  font: 700 24px/1 var(--display); letter-spacing: .08em; color: var(--tinte); font-variant-numeric: tabular-nums; caret-color: var(--orange-dunkel); }
.plz input::placeholder { font-size: 16px; font-weight: 500; letter-spacing: 0; color: #6f7b7e; }
.plz input:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
.plz input[aria-invalid="true"] { border-color: #a3261a; }
.plz .knopf { flex: 1; min-height: 56px; }
.plz-ort { margin-top: 10px; min-height: 1.5em; font-size: 15px; color: var(--tinte-2); }
.plz-ort.gefunden { color: var(--tinte); font-weight: 700; }
.plz-ort.fehler { color: #a3261a; }

.k-unter { display: grid; gap: 8px; margin: 12px 6px 0; }

/* ---- Upper limit ---- */
.grenze { display: grid; gap: 32px; }
.rechnung { margin: 0; border-top: 1.5px solid var(--tinte); }
.rechnung:empty { display: none; }
.rechnung > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--haar); }
.rechnung dt { font-weight: 600; }
.rechnung dd { margin: 0; font: 700 19px/1.3 var(--display); text-align: end; font-variant-numeric: tabular-nums; }
.rechnung .erkl { grid-column: 1 / -1; text-align: start; font-weight: 400; font-family: var(--text); line-height: 1.45; font-size: 15px; color: var(--tinte-2); }
.rechnung .summe { border-bottom: 1.5px solid var(--tinte); }


.grenze-ak { font-size: 16px !important; color: var(--tinte) !important; padding-top: 16px; border-top: 1px solid var(--haar); }
.grenze-ak .quelle { display: block; margin-top: 4px; }
.grenze-tafel { display: grid; gap: 0; }
.tafel-titel { margin: 34px 0 0; font: 800 15px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; padding-bottom: 10px; }
.grenze-tafel > .quelle { margin-top: 14px; }


/* ---- Real case and figures ---- */
.fall { display: grid; gap: 28px; }
.fall-karte { margin: 0 -6px; }
.fall-karte img { width: 100%; height: auto; }
.fall-text h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.06; font-weight: 800; letter-spacing: -.025em; }
.fall-daten { margin: 22px 0 12px; border-top: 1.5px solid var(--tinte); }
.fall-daten > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--haar); }
.fall-daten dt { color: var(--tinte-2); font-size: 15px; padding-top: 2px; }
.fall-daten dd { margin: 0; font: 700 18px/1.35 var(--display); }
.bilanz { padding: 20px 18px 18px; border-radius: 16px; background: var(--weiss); border: 1.5px solid var(--tinte); }
.bilanz h3 { font: 800 13px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.bilanz-gross { margin-top: 10px !important; font: 800 clamp(38px, 11vw, 52px)/1 var(--display); letter-spacing: -.03em; color: var(--orange-tinte); }
.bilanz-unter { margin-top: 6px !important; font-size: 15.5px; color: var(--tinte-2); line-height: 1.4; }
.bilanz-kurve { display: block; width: 100%; height: auto; margin-top: 14px; overflow: visible; }
.bilanz-werte { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--haar); }
.bilanz-werte div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.bilanz-werte dt { font-size: 13.5px; line-height: 1.35; color: var(--tinte-2); }
.bilanz-werte dd { margin: 0; font: 800 22px/1.1 var(--display); letter-spacing: -.01em; }

/* ---- Reviews and press ---- */
.stimmen { display: grid; gap: 28px; }
.wertung { font-size: 17px !important; color: var(--tinte) !important; }
.wertung b { font: 800 44px/1 var(--display); letter-spacing: -.02em; margin-right: 6px; vertical-align: -4px; }
.zitate { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1.5px solid var(--tinte); }
.zitate li { padding: 20px 0; border-bottom: 1px solid var(--haar); }
.zitate blockquote { margin: 0; font: 500 18px/1.5 var(--text); }
.zitate p { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--tinte-2); }
.presse h3 { font: 800 15px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; padding-bottom: 10px; border-bottom: 1.5px solid var(--tinte); }
.presse ul { list-style: none; margin: 0; padding: 0; }
.presse li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--haar); }
.presse a { font: 700 17px/1.35 var(--display); }
.presse span { font-size: 14px; color: var(--tinte-2); }

/* ---- Route: the procedure as a line with stations ---- */
.weg { display: grid; gap: 36px; }
.linie { list-style: none; margin: 0; padding: 0; position: relative; }
.linie li { position: relative; padding-block: 0 34px; padding-inline: 44px 0; }
.linie li::before { content: ''; position: absolute; inset-inline-start: 11px; top: 8px; bottom: -8px; width: 6px; background: var(--orange); }
.linie li:last-child::before { display: none; }
.linie li::after { content: ''; position: absolute; inset-inline-start: 3px; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--weiss); border: 2.5px solid var(--tinte); box-sizing: border-box; }
.linie li.ziel::after { background: var(--orange); width: 26px; height: 26px; inset-inline-start: 1px; top: 0; }
.linie b { display: block; font: 800 20px/1.25 var(--display); letter-spacing: -.01em; }
.linie p { margin-top: 6px; color: var(--tinte-2); max-width: 40ch; }

/* ---- FAQ ---- */
.fragen { display: grid; gap: 28px; }
.fragen-liste { border-top: 1.5px solid var(--tinte); }
.fragen details { border-bottom: 1px solid var(--haar); }
.fragen summary { list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 18px 0; min-height: 44px; font: 700 18px/1.35 var(--display); }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: ''; flex: none; width: 14px; height: 14px; margin-top: 5px; background: linear-gradient(var(--tinte), var(--tinte)) center / 14px 2px no-repeat, linear-gradient(var(--tinte), var(--tinte)) center / 2px 14px no-repeat; transition: transform .2s; }
.fragen details[open] summary::after { transform: rotate(45deg); }
.fragen summary:hover { color: var(--orange-tinte); }
.fragen details p { padding: 0 0 20px; max-width: 64ch; color: var(--tinte-2); }

/* ---- Who ---- */
.wer { display: grid; gap: 28px; }
.wer-text p { margin-top: 16px; font-size: 18px; max-width: 52ch; }
.wer-adresse { font-style: normal; display: grid; gap: 14px; padding-top: 18px; border-top: 1.5px solid var(--tinte); }
.wer-adresse a { font-weight: 600; }
.wer-los { display: grid; gap: 14px; align-content: start; }
.wer-los p { font: 700 20px/1.3 var(--display); }
.wer-los .knopf { justify-self: start; }

.fuss { max-width: var(--breite); margin: 0 auto; padding: 28px var(--rand) calc(96px + env(safe-area-inset-bottom)); border-top: 1px solid var(--haar); display: grid; gap: 8px; font-size: 14px; color: var(--tinte-2); }

/* ---- Bottom bar on phones ---- */
.leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 10px; padding: 10px var(--rand) calc(10px + env(safe-area-inset-bottom));
  background: rgba(244, 246, 242, .96); border-top: 1px solid var(--haar); transform: translateY(110%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.leiste.an { transform: none; }
.leiste .knopf { flex: 1; }
.leiste-tel { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border: 1.5px solid var(--tinte); border-radius: 4px; color: var(--tinte); }

/* ---- Check inside the page ---- */
.check-schicht { position: fixed; inset: 0; z-index: 50; background: var(--papier); visibility: hidden; opacity: 0; transform: translateY(12px); transition: opacity .22s ease-out, transform .32s cubic-bezier(.16, 1, .3, 1), visibility 0s .32s; }
.check-schicht.offen { visibility: visible; opacity: 1; transform: none; transition: opacity .22s ease-out, transform .32s cubic-bezier(.16, 1, .3, 1); }
.check-schicht iframe { width: 100%; height: 100%; border: 0; display: block; }
html.check-offen, html.check-offen body { overflow: hidden; }

@media (min-width: 700px) {
  .held-karte { margin: 28px 0 0; }
  .k-unter { margin: 14px 0 0; grid-template-columns: 1fr; }
  .weg, .fragen { grid-template-columns: 1fr; }
  .wer { grid-template-columns: 1.3fr 1fr; }
  .wer-los { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 20px; }
  .leiste { display: none; }
}

@media (min-width: 1000px) {
  .linie { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 20px; padding-top: 4px; }
  .linie li { padding: 44px 0 0; padding-inline: 0; }
  .linie li::before { inset-inline: 10px -30px; top: 8px; bottom: auto; width: auto; height: 6px; }
  .linie li::after { inset-inline-start: 0; top: 0; }
  .linie li.ziel::after { inset-inline-start: -2px; top: -2px; }
  .kopf { padding-top: 14px; padding-bottom: 14px; gap: 28px; }
  .kopf-nav { display: flex; gap: 24px; margin-right: 8px; }
  .kopf-nav a { font: 600 15px/1 var(--text); text-decoration: none; color: var(--tinte-2); padding: 12px 0; }
  .kopf-nav a:hover { color: var(--tinte); text-decoration: underline; text-decoration-color: var(--orange); }
  .kopf-knopf { display: inline-flex; min-height: 46px; font-size: 16px; }
  .held { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 56px; align-items: center; padding-top: 36px !important; padding-bottom: 72px !important; }
  .held-text { display: block; grid-column: 1; }
  .held h1 { font-size: clamp(calc(368px / var(--zeile)), calc(35.9vw / var(--zeile)), calc(466px / var(--zeile))); }
  .held-lead { margin-top: 24px; font-size: 19px; }
  .held-karte { grid-column: 2; grid-row: 1; margin: 0 -24px 0 0; }
  .held-lead2 { margin-top: 18px; }
  .plz { margin-top: 30px; }
  .grenze { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
  .grenze .lage { grid-column: 1 / -1; }
  .fragen { grid-template-columns: 4fr 8fr; gap: 56px; }
  .fall { grid-template-columns: 6fr 6fr; gap: 40px 56px; align-items: center; }
  .fall-karte { margin: 0; }
  .bilanz { grid-column: 1 / -1; }
  .bilanz { display: grid; grid-template-columns: 7fr 5fr; gap: 0 48px; align-items: center; padding: 28px 32px; }
  .bilanz-werte { margin: 0; padding: 0 0 0 40px; border-top: 0; border-inline-start: 1px solid var(--haar); gap: 28px 24px; }
  .bilanz-werte dd { font-size: 26px; }
  .bilanz-kurve { max-width: 460px; }
  .stimmen { grid-template-columns: 4fr 8fr; gap: 28px 56px; align-items: start; }
  .stimmen .abschnitt-kopf { grid-row: 1 / span 2; }
  .zitate { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .stimmen > .quelle { grid-column: 2; }
  .presse { grid-column: 2; margin-top: 12px; }
  .wer { grid-template-columns: 5fr 4fr 3fr; gap: 56px; }
  .wer-los { grid-column: auto; grid-template-columns: 1fr; }
  .fuss { grid-template-columns: 1fr; }
}
@media (min-width: 1360px) {
  .held-karte { margin-right: -64px; }
}

/* E multilingual additions */
@media (max-width: 419px) {
  .plz input { width: 5.6em; padding: 0 10px; }
  .plz .knopf { padding: 0 12px; white-space: nowrap; }
  .plz .knopf .pfeil { display: none; }
  .kopf { gap: 8px; }
  .kopf-tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .kopf-tel { border: 1.5px solid var(--haar); border-radius: 4px; }
}
@media (min-width: 1000px) {
  .kopf .marke { margin-inline-end: 0; }
  .kopf-nav { margin-inline-start: auto; }
}

/* Round 1 (Julius, 29.09.2026): real-case label, deadline blocks, numbered route, tighter rhythm */
.fall-karte { position: relative; }
.stempel { position: absolute; inset-inline-start: 6px; top: 4px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 13px 7px 9px;
  background: var(--weiss); border: 1.5px solid var(--tinte); border-radius: 4px; box-shadow: 0 6px 16px -10px rgba(22, 36, 42, .55);
  font: 800 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.stempel svg { width: 18px; height: 18px; flex: none; }
.fall { gap: 18px 56px; }
.fall-daten { margin-top: 16px; }
.fristen { display: grid; gap: 10px; margin-top: 2px; }
.frist-block { padding: 14px 16px 16px; background: var(--weiss); border: 1.5px solid var(--tinte); border-radius: 4px; }
.frist-block h4 { margin: 0 0 6px; font: 800 17px/1.25 var(--display); }
.frist-block p { font-size: 17px; line-height: 1.45; }
.linie-nr { counter-reset: station; }
.linie-nr li { counter-increment: station; padding-block-end: 26px; padding-inline-start: 50px; }
.linie-nr li::after { content: counter(station); display: grid; place-items: center; width: 30px; height: 30px; top: -1px; inset-inline-start: 0; border-width: 2.5px;
  font: 800 14px/1 var(--display); color: var(--tinte); font-variant-numeric: tabular-nums; }
.linie-nr li.ziel::after { width: 30px; height: 30px; inset-inline-start: 0; top: -1px; background: var(--orange); }
.linie-nr li::before { inset-inline-start: 12px; top: 14px; bottom: -14px; }
.linie-nr b { font-size: 19px; padding-top: 3px; }
.linie-nr p { margin-top: 4px; }
.weg { gap: 26px; }
.grenze { gap: 24px; }
.fragen summary { padding: 15px 0; }
@media (min-width: 600px) {
  .fristen { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (min-width: 1000px) {
  .linie-nr li { padding: 46px 0 0; padding-inline: 0; }
  .linie-nr li::after { top: 0; inset-inline-start: 0; }
  .linie-nr li.ziel::after { top: 0; inset-inline-start: 0; }
  .linie-nr li::before { inset-inline: 12px -32px; top: 12px; bottom: auto; }
  .fall-karte .stempel { top: 12px; }
}

/* button under "So viel Miete ist im Altbau erlaubt"; duration line under the process intro */
.grenze-knopf { margin-top: 22px; width: 100%; }
.weg-dauer { display: inline-flex; align-items: center; gap: 9px; margin-top: 14px !important; padding: 9px 14px; border-radius: 999px; background: var(--orange-hell); color: var(--tinte) !important; font-weight: 700; font-size: 15.5px !important; line-height: 1.3; }
.weg-dauer svg { width: 20px; height: 20px; flex: none; color: var(--orange-tinte); }
@media (min-width: 1000px) { .grenze-knopf { width: auto; justify-self: start; } }
