/* 1immobilien-düsseldorf.de — Motiv „Zehn Stadtbezirke“: Düsseldorf als Kachelkarte, der Rhein als Band.
   Rheingrau und Blaugrau, ein warmer Akzent (Honig) für Bezirk 1 und die Hervorhebung. Schriften lokal (SIL OFL 1.1):
   Fraunces für Überschriften und Bezirkszahlen, Figtree für Text und Bedienung. Eine Hintergrundfarbe für die Seite;
   dunkle Bänder laufen über die volle Breite (iPhone-Safari färbt die Ränder richtig). Keine Abrufe bei Dritten. */

@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --grund: #E4E9EC;        /* Rheingrau, Seitenhintergrund */
  --flaeche: #F4F6F7;      /* helle Flächen, Karten */
  --flaeche-2: #D3DBE0;    /* leere Kacheln, Tabellenstreifen */
  --linie: #C3CDD3;
  --tinte: #1C2B35;        /* Schiefer, Text und dunkle Bänder */
  --tinte-2: #46565F;
  --schiefer: #2F4552;     /* gefüllte Kacheln */
  --rhein: #8DA2AD;        /* Blaugrau, der Rhein */
  --rhein-tief: #5B7380;
  --honig: #F0A93B;        /* warmer Akzent als Fläche */
  --bernstein: #8F520C;    /* warmer Akzent als Schrift auf hellem Grund (5,1 : 1) */
  --marker: #FFE08A;
  --hell-auf-dunkel: #E9EEF1;
  --leise-auf-dunkel: #B9C6CE;
  --schatten: 0 1px 0 rgba(28, 43, 53, .05), 0 24px 48px -30px rgba(28, 43, 53, .45);
  --kopf-h: 4.5rem;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --rand: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-h) + 1rem); background: var(--grund); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--grund); color: var(--tinte); font: 400 1.0625rem/1.68 var(--sans); font-kerning: normal; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--tinte); text-decoration-color: var(--bernstein); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--bernstein); }
:focus-visible { outline: 3px solid var(--bernstein); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--honig); color: var(--tinte); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -.015em; margin: 0 0 .55em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4.1rem); line-height: 1.03; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.3rem); }
h3 { font-size: 1.3rem; letter-spacing: -.005em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .45em; }
strong, b { font-weight: 700; }
.huelle { max-width: 76rem; margin: 0 auto; padding: 0 var(--rand); }
.lesen { max-width: 42rem; }
.leise { color: var(--tinte-2); font-size: .95rem; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { display: flex; align-items: center; gap: .6rem; font: 600 .95rem/1.3 var(--sans); color: var(--bernstein); margin: 0 0 .9rem; }
.offen { background: var(--marker); padding: .05em .3em; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.sprung { position: absolute; left: -999px; top: .5rem; background: var(--tinte); color: var(--flaeche); padding: .7rem 1rem; z-index: 100; }
.sprung:focus { left: 1rem; }
.entwurf { background: var(--marker); color: var(--tinte); font: 600 .9rem/1.4 var(--sans); text-align: center; padding: .45rem var(--rand); }

/* Bezirkskachel als Marke (Abschnitte, Legende) */
.bz { display: inline-grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 7px; background: var(--schiefer);
  color: var(--flaeche); font: 600 1rem/1 var(--serif); letter-spacing: 0; }
.bz-1 { background: var(--honig); color: var(--tinte); }
.bz-10 { font-size: .9rem; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 50; background: var(--grund); border-bottom: 1px solid var(--linie); }
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--kopf-h); }
.marke { display: flex; align-items: center; gap: .7rem; min-height: 2.75rem; text-decoration: none; color: var(--tinte); font: 600 1.25rem/1.05 var(--serif); letter-spacing: -.01em; }
.marke:hover { color: var(--tinte); }
.marke b { display: block; font: 600 .875rem/1.3 var(--sans); letter-spacing: .01em; color: var(--tinte-2); }
.marke-zeichen { width: 2.35rem; height: 2.35rem; flex: none; background: url("/assets/img/zeichen.svg") center / contain no-repeat; }
.menue { display: flex; align-items: center; gap: .2rem 1.15rem; }
.menue a { text-decoration: none; font-weight: 600; font-size: 1rem; padding: .4rem 0; white-space: nowrap; }
.menue a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--honig); text-decoration-thickness: 3px; text-underline-offset: .45em; }
.menue-schalter { display: none; }
/* Lesefortschritt in zehn Abschnitten, Bezirk für Bezirk */
.fortschritt { position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; pointer-events: none;
  background: linear-gradient(90deg, var(--honig) 0 calc(var(--fortschritt, 0) * 100%), transparent 0);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(10% - 5px), transparent calc(10% - 5px) 10%);
  mask: repeating-linear-gradient(90deg, #000 0 calc(10% - 5px), transparent calc(10% - 5px) 10%); }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .7rem 1.4rem; border-radius: 10px;
  background: var(--tinte); color: var(--flaeche); font: 700 1rem/1.2 var(--sans); text-decoration: none; border: 2px solid var(--tinte);
  transition: background-color .2s, border-color .2s, color .2s; }
.knopf:hover { background: var(--schiefer); border-color: var(--schiefer); color: var(--flaeche); }
.knopf.hell { background: transparent; color: var(--tinte); }
.knopf.hell:hover { background: var(--tinte); color: var(--flaeche); }
.knopf.klein { min-height: 2.75rem; padding: .45rem 1.1rem; font-size: .95rem; }
.menue .knopf.klein { color: var(--tinte); background: var(--honig); border-color: var(--honig); }
.menue .knopf.klein:hover { background: #F5BC5C; border-color: #F5BC5C; color: var(--tinte); }
.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .7rem; }
.aufruf { margin: 2rem 0 0; }
.aufruf .knoepfe .knopf:first-child { background: var(--honig); border-color: var(--honig); color: var(--tinte); }
.aufruf .knoepfe .knopf:first-child:hover { background: #F5BC5C; border-color: #F5BC5C; }
.aufruf .leise a { font-weight: 600; }

/* Seitenkopf */
.seitenkopf { padding: clamp(2.25rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); overflow: clip; }
.seitenkopf > .huelle { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-rows: auto 1fr; gap: 1.75rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.seitenkopf > .huelle.lesen { display: block; }
.seitenkopf-text { padding-top: clamp(0rem, 2vw, 1.5rem); grid-column: 1; }
.seitenkopf .aufruf-kopf { grid-column: 1; margin-top: 0; }
.seitenkopf > .huelle > .karte { grid-column: 2; grid-row: 1 / span 2; }
.pfad { font-size: .95rem; color: var(--tinte-2); margin-bottom: 1.4rem; }
.pfad a { color: var(--tinte-2); }
.unterzeile { font-size: clamp(1.1rem, 1.7vw, 1.28rem); line-height: 1.55; color: var(--tinte-2); max-width: 36rem; }
.kurz { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.15rem 1.3rem 1.2rem; margin: 1.6rem 0 1rem; max-width: 38rem; box-shadow: var(--schatten); }
.kurz p { margin: 0; }
.kurz .kurz-marke { display: flex; align-items: center; gap: .55rem; font: 700 .95rem/1.3 var(--sans); color: var(--bernstein); margin-bottom: .4rem; }
.kurz .kurz-marke::before { content: ""; width: .85rem; height: .85rem; border-radius: 3px; background: var(--honig); }
.stand { font-size: .95rem; color: var(--tinte-2); margin: 0; }

/* Karte */
.karte { margin: 0; width: 100%; max-width: 32rem; justify-self: end; position: relative; }
.karte-svg { display: block; width: 100%; height: auto; overflow: visible; }
.rhein-ufer { fill: none; stroke: var(--flaeche); stroke-width: 46; stroke-linecap: round; opacity: .8; }
.rhein { fill: none; stroke: var(--rhein); stroke-width: 30; stroke-linecap: round; }
.rhein-name { font: 600 18px var(--sans); fill: var(--rhein-tief); letter-spacing: .06em; }
.n1 { --n: 1; } .n2 { --n: 2; } .n3 { --n: 3; } .n4 { --n: 4; } .n5 { --n: 5; }
.n6 { --n: 6; } .n7 { --n: 7; } .n8 { --n: 8; } .n9 { --n: 9; } .n10 { --n: 10; }
.karte { --aufbau: 10; }
html.bewegt .karte[data-karte="aufbau"] { --aufbau: 1; }
.bz-kachel { --b: clamp(0, calc(var(--aufbau) - var(--n) + 1), 1); }
.bz-rand { fill: rgba(244, 246, 247, .6); stroke: var(--rhein-tief); stroke-width: 2; stroke-dasharray: 5 6; stroke-opacity: calc(1 - var(--b)); }
.bz-voll { fill: var(--schiefer); opacity: var(--b); transform: scale(calc(.86 + .14 * var(--b))); transform-box: fill-box; transform-origin: center; transition: fill .35s ease; }
.bz-muster { fill: none; }
.bz-zahl { font: 600 46px var(--serif); }
.bz-zahl.dunkel { fill: var(--rhein-tief); opacity: calc(1 - var(--b)); }
.bz-zahl.hell { fill: var(--flaeche); opacity: var(--b); }
.bz-name { font: 600 14px var(--sans); fill: var(--leise-auf-dunkel); opacity: var(--b); }
.n1 .bz-voll { fill: var(--honig); }
.n1 .bz-zahl.hell { fill: var(--tinte); }
.n1 .bz-name { fill: var(--tinte); }
.bz-kachel[data-ziel] { cursor: pointer; }
.bz-kachel[data-ziel]:hover .bz-voll { fill: var(--rhein-tief); opacity: 1; }
.bz-kachel[data-ziel].n1:hover .bz-voll { fill: #F5BC5C; }
.karte-unterschrift { font-size: .95rem; color: var(--tinte-2); margin: .8rem 0 0; max-width: 30rem; }

.legende { margin-top: 1.1rem; }
.karte:has(.legende) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1.5rem; align-items: center; max-width: 36rem; }
.karte:has(.legende) .legende { margin-top: 0; }
.legende-kopf { font: 700 .95rem/1.3 var(--sans); margin: 0 0 .5rem; color: var(--tinte-2); }
.legende-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.legende-liste li { margin: 0; }
.legende-liste a { display: flex; align-items: center; gap: .7rem; min-height: 2.75rem; padding: .2rem 0; text-decoration: none; font-weight: 600; line-height: 1.3; }
.legende-liste a:hover span:last-child { text-decoration: underline; text-decoration-color: var(--bernstein); }
.legende-liste .bz { width: 1.75rem; height: 1.75rem; font-size: .9rem; }

/* Abschnitte */
.abschnitt { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.bezirk-abschnitt { border-top: 1px solid var(--linie); }
.bezirk-abschnitt > .huelle { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.ab-kopf { position: sticky; top: calc(var(--kopf-h) + 1.5rem); }
.ab-kopf h2 { margin-bottom: 0; font-size: clamp(1.55rem, 2.3vw, 2rem); overflow-wrap: break-word; }
.ab-text { max-width: 46rem; min-width: 0; }
.ab-text > :last-child { margin-bottom: 0; }
.ab-text h3 { margin-top: 1.8rem; }

.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.feld-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.15rem 1.25rem; }
.feld-karte h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
.feld-karte p:last-child { margin-bottom: 0; }
.hinweis { border-left: 4px solid var(--honig); background: var(--flaeche); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.hinweis p:last-child { margin-bottom: 0; }
.zahl-gross { display: block; font: 600 clamp(1.8rem, 3vw, 2.3rem)/1.05 var(--serif); letter-spacing: -.02em; margin-bottom: .35rem; }

.merk { padding: 0; list-style: none; margin: 1.1rem 0 1.4rem; }
.merk li { position: relative; padding-left: 1.6rem; margin-bottom: .7rem; }
.merk li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .7rem; border-radius: 3px; background: var(--schiefer); }
ol.schritte { list-style: none; counter-reset: s; padding: 0; margin: 1.2rem 0 1.5rem; display: grid; gap: .9rem; }
ol.schritte > li { counter-increment: s; position: relative; padding: 0 0 0 3rem; margin: 0; }
ol.schritte > li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; width: 2rem; height: 2rem; border-radius: 7px; display: grid; place-items: center;
  background: var(--flaeche); border: 2px solid var(--schiefer); font: 600 1rem/1 var(--serif); }
ol.schritte b { display: block; }

/* Bezirke auf der Startseite */
.bezirke { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.bezirke li { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem .85rem; align-items: start; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: .95rem 1rem; }
.bezirke .bz { grid-row: span 2; }
.bezirke b { font: 600 1.05rem/1.3 var(--serif); }
.bezirke span.teile { color: var(--tinte-2); font-size: .95rem; line-height: 1.5; }
.bezirke .lage { grid-column: 2; font-size: .95rem; line-height: 1.45; margin-top: .3rem; }

/* Band (dunkel, volle Breite) */
.band { background: var(--tinte); color: var(--hell-auf-dunkel); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.band a { color: var(--hell-auf-dunkel); text-decoration-color: var(--honig); }
.band a:hover { color: var(--honig); }
.band h2 { color: var(--flaeche); }
.band .leise { color: var(--leise-auf-dunkel); }
.band .kicker { color: var(--honig); }
.band .knopf.hell { color: var(--flaeche); border-color: var(--leise-auf-dunkel); }
.band .knopf.hell:hover { background: var(--flaeche); color: var(--tinte); border-color: var(--flaeche); }
.band-ansprech > .huelle { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.band-ansprech .ansprech { background: #24363F; border-color: #3A4F5B; color: var(--hell-auf-dunkel); }
.band-ansprech .ansprech-rolle { color: var(--leise-auf-dunkel); }
.band-ansprech .ansprech-name { color: var(--flaeche); }
.band-ansprech .ansprech-tel { color: var(--honig); }
.band-text p { max-width: 36rem; }
.band-text .merk li::before { background: var(--honig); }

/* Ansprechpartner (kern) */
.ansprech { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1.4rem; align-items: start; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: calc(var(--radius) + 4px); padding: 1.4rem; box-shadow: var(--schatten); max-width: 36rem; }
.ansprech img { width: 10rem; height: 10rem; object-fit: cover; border-radius: 12px; display: block; background: var(--flaeche-2); }
.ansprech p { margin: 0 0 .6rem; }
.ansprech-name { font: 600 1.45rem/1.15 var(--serif); }
.ansprech-rolle { color: var(--tinte-2); font-size: .95rem; }
.ansprech-tel { display: inline-flex; align-items: center; min-height: 2.75rem; font: 700 1.1rem/1.2 var(--sans); text-decoration: none; color: var(--tinte); }
.ansprech-tel::before { content: ""; width: .7rem; height: .7rem; border-radius: 3px; background: var(--honig); margin-right: .55rem; }

/* Tabellen */
.tabelle-huelle { overflow-x: auto; margin: 1.4rem 0 1.6rem; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); }
.tabelle { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.tabelle caption { caption-side: bottom; text-align: left; padding: .8rem 1rem; font-size: .95rem; color: var(--tinte-2); border-top: 1px solid var(--linie); }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: .75rem 1rem; border-bottom: 1px solid var(--linie); }
.tabelle thead th { font: 700 .95rem/1.3 var(--sans); background: var(--flaeche-2); }
.tabelle tbody tr:last-child th, .tabelle tbody tr:last-child td { border-bottom: 0; }
.tabelle tbody th { font-weight: 600; }
.tabelle td.zahl, .tabelle th.zahl { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Fragen */
.fragen { display: grid; gap: .6rem; margin: 1.3rem 0; max-width: 46rem; }
.fragen details { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); }
.fragen summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 3rem;
  padding: .85rem 1.15rem; font: 600 1.05rem/1.4 var(--sans); }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: ""; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 6px; background:
  linear-gradient(var(--tinte), var(--tinte)) center / .75rem 2px no-repeat, linear-gradient(var(--tinte), var(--tinte)) center / 2px .75rem no-repeat, var(--flaeche-2); transition: transform .25s; }
.fragen details[open] summary::after { transform: rotate(45deg); background-color: var(--honig); }
.fragen .antwort { padding: 0 1.15rem 1rem; }
.fragen .antwort p { margin: 0; }
.fragen-bereich .huelle > h2, .fragen-bereich .huelle > .lesen { max-width: 46rem; }
.faq-verzeichnis { font-size: 1rem; }
.faq-gruppe { padding: clamp(2rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--linie); }
.faq-gruppe .kicker { color: var(--tinte-2); }

/* Quellen */
.quellen { font-size: .95rem; line-height: 1.6; color: var(--tinte-2); margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed var(--linie); max-width: 46rem; }
.quellen a { color: var(--tinte-2); }

/* Rechner und Preiswerkzeug */
.rechner { background: var(--flaeche); border: 1px solid var(--linie); border-radius: calc(var(--radius) + 4px); padding: clamp(1.1rem, 3vw, 1.8rem); box-shadow: var(--schatten); margin: 1.5rem 0; }
.rechner fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.rechner legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.rechner-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; }
.rechner label { display: block; font-weight: 600; margin-bottom: .35rem; line-height: 1.35; }
.rechner .eingabe { position: relative; }
.rechner input[type="text"], .rechner input[type="number"] { width: 100%; min-height: 3rem; padding: .6rem 3rem .6rem .85rem; font: 400 1.0625rem/1.3 var(--sans); color: var(--tinte);
  background: #fff; border: 1.5px solid var(--rhein-tief); border-radius: 10px; }
.rechner .einheit { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); color: var(--tinte-2); font-weight: 600; pointer-events: none; }
.rechner .hilfe { display: block; font-size: .95rem; color: var(--tinte-2); margin-top: .3rem; line-height: 1.4; }
.ergebnis { margin-top: 1.4rem; border-top: 1px solid var(--linie); padding-top: 1.2rem; }
.ergebnis[hidden] { display: none; }
.ergebnis-summe { font: 600 clamp(1.7rem, 3.5vw, 2.4rem)/1.1 var(--serif); margin: 0 0 .3rem; }
.ergebnis-zeilen { width: 100%; border-collapse: collapse; margin: 1rem 0; font-variant-numeric: tabular-nums; }
.ergebnis-zeilen th, .ergebnis-zeilen td { padding: .55rem 0; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.ergebnis-zeilen td { text-align: right; white-space: nowrap; padding-left: 1rem; }
.ergebnis-zeilen th { font-weight: 400; }
.ergebnis-zeilen tr.summe th, .ergebnis-zeilen tr.summe td { font-weight: 700; border-bottom: 0; }
.rechenweg { font-size: .95rem; color: var(--tinte-2); }
.rechenweg li { margin-bottom: .3rem; }
.rechner-hinweis { margin: 1rem 0 0; }
.rechner-hinweis[hidden] { display: none; }
.rechner noscript p, .preise noscript p { background: var(--marker); padding: .6rem .8rem; border-radius: 8px; }

.preise { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin: 1.5rem 0; }
.preise .karte { justify-self: start; max-width: 28rem; }
.preis-wahl { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; border: 0; padding: 0; }
.preis-wahl legend { font-weight: 700; margin-bottom: .5rem; padding: 0; width: 100%; }
.preis-wahl label { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .4rem .95rem; border: 1.5px solid var(--rhein-tief); border-radius: 999px; cursor: pointer; background: var(--flaeche); font-weight: 600; }
.preis-wahl input { accent-color: var(--tinte); width: 1.1rem; height: 1.1rem; margin: 0; }
.preis-wahl label:has(input:checked) { background: var(--tinte); color: var(--flaeche); border-color: var(--tinte); }
.lagen-schluessel { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .35rem; font-size: .95rem; }
.lagen-schluessel li { display: flex; align-items: center; gap: .6rem; margin: 0; }
.lagen-schluessel i { width: 1.1rem; height: 1.1rem; border-radius: 4px; flex: none; border: 1.5px solid var(--rhein-tief); }
.lagen-schluessel .s-einfach { background: #B9C6CE; }
.lagen-schluessel .s-mittel { background: var(--rhein-tief); }
.lagen-schluessel .s-hoch { background: var(--honig); }
.lagen-schluessel .s-gemischt { background: repeating-linear-gradient(135deg, #B9C6CE 0 5px, var(--rhein-tief) 5px 10px); }
.lagen-schluessel .s-keine { background: var(--flaeche); border-style: dashed; }
.preis-detail { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1.2rem; min-height: 8rem; }
.preis-detail h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.preis-detail p:last-child { margin-bottom: 0; }
.karte-preise .bz-voll { fill: var(--flaeche); }
.karte-preise .bz-zahl.hell { fill: var(--tinte); }
.karte-preise .bz-kachel.lage-einfach .bz-voll { fill: #B9C6CE; }
.karte-preise .bz-kachel.lage-mittel .bz-voll { fill: var(--rhein-tief); }
.karte-preise .bz-kachel.lage-mittel .bz-zahl.hell { fill: var(--flaeche); }
.karte-preise .bz-kachel.lage-hoch .bz-voll { fill: var(--honig); }
.karte-preise .bz-kachel.lage-gemischt .bz-voll { fill: #B9C6CE; }
.karte-preise .bz-kachel.lage-gemischt .bz-muster { fill: url(#streifen); opacity: var(--b); }
.karte-preise .bz-kachel.lage-keine .bz-voll { fill: var(--flaeche); }
.karte-preise .bz-kachel.gewaehlt .bz-rand { stroke: var(--tinte); stroke-width: 6; stroke-dasharray: none; stroke-opacity: 1; }
.karte-preise .bz-kachel { cursor: pointer; }

/* Anfrage (kern) */
.anfrage-bereich { background: var(--tinte); color: var(--hell-auf-dunkel); }
.anfrage-karte { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.anfrage-kopf h2 { color: var(--flaeche); }
.anfrage-kopf .kicker { color: var(--honig); }
.anfrage-kopf a { color: var(--hell-auf-dunkel); }
.danach { list-style: none; counter-reset: d; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.danach li { counter-increment: d; position: relative; padding-left: 2.9rem; margin: 0; }
.danach li::before { content: counter(d); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 7px; display: grid; place-items: center;
  background: var(--honig); color: var(--tinte); font: 600 1rem/1 var(--serif); }
.danach b { display: block; color: var(--flaeche); }
.danach span { color: var(--leise-auf-dunkel); }
form.anfrage { background: var(--flaeche); color: var(--tinte); border-radius: calc(var(--radius) + 4px); padding: clamp(1.1rem, 3vw, 1.8rem); }
form.anfrage a { color: var(--tinte); }
.feld { margin: 0 0 1rem; border: 0; padding: 0; min-width: 0; }
.feld label, .feld legend { display: block; font-weight: 600; margin-bottom: .35rem; padding: 0; line-height: 1.35; }
.feld-zeile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.feld input[type="text"], .feld input[type="tel"], .feld input[type="email"], .feld select, .feld textarea {
  width: 100%; min-height: 3rem; padding: .6rem .8rem; font: 400 1.0625rem/1.35 var(--sans); color: var(--tinte); background: #fff;
  border: 1.5px solid var(--rhein-tief); border-radius: 10px; }
.feld textarea { min-height: 6rem; resize: vertical; }
.feld select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem;
  background: #fff linear-gradient(45deg, transparent 50%, var(--tinte) 50%) calc(100% - 1.15rem) 52% / .45rem .45rem no-repeat; }
.wahl { display: flex; flex-wrap: wrap; gap: .5rem; }
.wahl label { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .4rem .9rem; border: 1.5px solid var(--rhein-tief); border-radius: 999px; cursor: pointer; font-weight: 600; margin: 0; background: #fff; }
.wahl input { accent-color: var(--tinte); width: 1.1rem; height: 1.1rem; margin: 0; }
.wahl label:has(input:checked) { background: var(--tinte); color: var(--flaeche); border-color: var(--tinte); }
.wahl label:has(input:checked) input, .preis-wahl label:has(input:checked) input { accent-color: var(--honig); }
.einwilligung label { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .95rem; line-height: 1.5; }
.einwilligung input { width: 1.3rem; height: 1.3rem; flex: none; margin-top: .15rem; accent-color: var(--tinte); }
.versteckt { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status[data-stand="fehler"] { color: #9B1C1C; font-weight: 600; }
form.anfrage .knopf { background: var(--honig); border-color: var(--honig); color: var(--tinte); }
form.anfrage .knopf:hover { background: #F5BC5C; border-color: #F5BC5C; }
form.anfrage .knopf[disabled] { opacity: .7; cursor: progress; }

/* Weiterlesen */
.weiter { border-top: 1px solid var(--linie); }
.weiter-liste { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .9rem; }
.weiter-liste li { margin: 0; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1.15rem; display: grid; gap: .25rem; }
.weiter-liste a { font: 600 1.15rem/1.25 var(--serif); text-decoration: none; display: inline-flex; min-height: 2.75rem; align-items: flex-start; padding-top: .1rem; }
.weiter-liste a:hover { text-decoration: underline; text-decoration-color: var(--bernstein); }
.weiter-liste span { color: var(--tinte-2); font-size: .95rem; line-height: 1.5; }

/* Fuß */
.fuss { background: var(--tinte); color: var(--leise-auf-dunkel); padding: 3rem 0 6rem; font-size: .95rem; }
.fuss a { color: var(--hell-auf-dunkel); }
.fuss a:hover { color: var(--honig); }
.fuss h2 { font: 600 1.1rem/1.3 var(--serif); color: var(--flaeche); margin-bottom: .7rem; }
.fuss .spalten { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 2rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin: 0; }
.fuss li a { display: inline-flex; min-height: 2.5rem; align-items: center; }
.fuss .klein { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid #3A4F5B; max-width: 60rem; }
.querlinks { margin-top: 2rem; }

/* Aufrufleiste am Handy */
.leiste-unten { display: none; }

/* Bewegung: Kacheln füllen sich in site.js über --aufbau; ohne Bewegung sofort voll */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .karte { --aufbau: 10 !important; }
}

/* Mittlere Breiten */
@media (max-width: 1120px) {
  .menue { gap: .2rem .9rem; }
  .menue a { font-size: .95rem; }
}
@media (max-width: 1020px) {
  .menue-schalter { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding: .45rem 1rem; border: 1.5px solid var(--tinte); border-radius: 10px;
    background: transparent; color: var(--tinte); font: 700 1rem/1 var(--sans); cursor: pointer; }
  .menue-schalter::before { content: ""; width: 1.1rem; height: .8rem; background: linear-gradient(var(--tinte), var(--tinte)) top / 100% 2px no-repeat,
    linear-gradient(var(--tinte), var(--tinte)) center / 100% 2px no-repeat, linear-gradient(var(--tinte), var(--tinte)) bottom / 100% 2px no-repeat; }
  .menue { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--grund); border-bottom: 1px solid var(--linie);
    flex-direction: column; align-items: stretch; padding: .5rem var(--rand) 1.2rem; gap: 0; box-shadow: 0 20px 30px -20px rgba(28, 43, 53, .35); }
  .menue.offen-menue { display: flex; }
  .menue a { padding: .75rem 0; min-height: 2.9rem; border-bottom: 1px solid var(--linie); font-size: 1.05rem; }
  .menue .knopf.klein { margin-top: .9rem; border-bottom: 0; }
  .seitenkopf > .huelle { grid-template-columns: minmax(0, 1fr); }
  .karte { justify-self: start; max-width: 30rem; }
  .seitenkopf > .huelle > .karte { grid-column: 1; grid-row: auto; }
  .bezirk-abschnitt > .huelle { grid-template-columns: minmax(0, 1fr); }
  .ab-kopf { position: static; }
  .band-ansprech > .huelle, .anfrage-karte, .preise { grid-template-columns: minmax(0, 1fr); }
  .fuss .spalten { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fuss .spalten > div:first-child { grid-column: 1 / -1; }
}

/* Handy */
@media (max-width: 680px) {
  body { font-size: 1.0625rem; }
  .marke { font-size: 1.12rem; }
  .marke-zeichen { width: 2.1rem; height: 2.1rem; }
  .kurz { padding: 1rem 1.05rem; }
  .karte { max-width: 22rem; }
  .karte:has(.legende) { grid-template-columns: minmax(0, 1fr); max-width: 100%; }
  .karte:has(.legende) .karte-svg { max-width: 15rem; }
  .karte:has(.legende) .legende { margin-top: 1rem; }
  .bz-name { display: none; }
  .zwei, .drei, .bezirke, .rechner-felder, .feld-zeile { grid-template-columns: minmax(0, 1fr); }
  .ansprech { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem; }
  .ansprech img { width: 6.5rem; height: 6.5rem; }
  .ansprech-name { font-size: 1.25rem; }
  .fuss .spalten { grid-template-columns: minmax(0, 1fr); }
  .tabelle.stapel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabelle.stapel, .tabelle.stapel tbody, .tabelle.stapel tr, .tabelle.stapel th, .tabelle.stapel td { display: block; width: 100%; }
  .tabelle.stapel tr { border-bottom: 1px solid var(--linie); padding: .4rem 0; }
  .tabelle.stapel tbody tr:last-child { border-bottom: 0; }
  .tabelle.stapel th, .tabelle.stapel td { border: 0; padding: .3rem 1rem; }
  .tabelle.stapel tbody th { padding-top: .6rem; font-size: 1.05rem; }
  .tabelle.stapel td::before { content: attr(data-spalte); display: block; font-size: .95rem; font-weight: 600; color: var(--tinte-2); }
  .tabelle.stapel td.zahl { white-space: normal; }
  .leiste-unten { display: flex; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .7rem var(--rand) calc(.7rem + env(safe-area-inset-bottom));
    background: var(--grund); border-top: 1px solid var(--linie); transform: translateY(110%); transition: transform .3s ease; box-shadow: 0 -12px 24px -18px rgba(28, 43, 53, .5); }
  .leiste-unten .knopf { flex: 1; }
  .leiste-unten .knopf:first-child { background: var(--honig); border-color: var(--honig); color: var(--tinte); }
  html.leiste-da .leiste-unten { transform: none; }
}
@media (max-width: 380px) {
  .marke b { font-size: .875rem; }
  .knoepfe .knopf { width: 100%; }
}

/* === Cover-Foto (Startseite, 14.11.2026) === */
.cover-foto { margin: 0; }
.cover-foto img { display: block; width: 100%; height: clamp(190px, 34vw, 470px); object-fit: cover; object-position: center; }
.cover-foto figcaption { padding: .35rem var(--rand) 0; font-size: .875rem; line-height: 1.4; color: var(--tinte-2); text-align: right; }
.cover-foto figcaption a { color: var(--tinte-2); text-decoration-color: var(--linie); }
/* === Ende Cover-Foto === */

/* Stadtbezirke aufklappbar (15.11.2026): die Liste bleibt im Text, nimmt aber keinen Platz mehr weg */
.bezirke-auf { margin: 1.2rem 0; }
.bezirke-auf > summary { cursor: pointer; font: 600 1rem/1.4 var(--sans, inherit); padding: .8rem 1rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); }
.bezirke-auf > summary:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.bezirke-auf[open] > summary { margin-bottom: .6rem; }
