/* bueroflaeche-duesseldorf.de, Motiv „Belegungsplan“: Grundriss im Architekturstrich auf Papierweiß.
   Bestand in Blaupausenblau, Einbauten in Rotstift-Rot (wie Neubau auf Umbauplänen), Gelb nur für offene Stellen.
   Schriften lokal (SIL OFL 1.1), keine Abrufe bei Dritten. Eine Hintergrundfarbe für die ganze Seite (iPhone-Safari). */

@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-var-latin.woff2") format("woff2-variations"), url("/assets/fonts/instrument-sans-var-latin.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --papier: #F5F2EB;
  --blatt: #FCFBF7;
  --tinte: #182134;
  --tinte-2: #4A5368;
  --blau: #1E4B98;
  --blau-tief: #163A78;
  --blau-hell: #DCE4F1;
  --blau-hauch: rgba(30, 75, 152, .075);
  --rot: #B42F38;
  --rot-hauch: rgba(180, 47, 56, .07);
  --rot-flaeche: rgba(180, 47, 56, .1);
  --linie: #CDD3DD;
  --marker: #F7D257;
  --kopf-h: 4.25rem;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --rand: clamp(1rem, 4vw, 2.5rem);
  --raster: linear-gradient(var(--blau-hauch) 1px, transparent 1px), linear-gradient(90deg, var(--blau-hauch) 1px, transparent 1px);
}

*, *::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(--papier); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--papier); color: var(--tinte); font: 400 1.0625rem/1.62 var(--sans); font-kerning: normal; font-variant-numeric: tabular-nums; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--blau); text-decoration-thickness: .07em; text-underline-offset: .2em; }
a:hover { color: var(--rot); }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--blau-hell); color: var(--tinte); }

h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.012em; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 6.4vw, 5.1rem); color: var(--blau-tief); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font: 600 1.2rem/1.25 var(--sans); letter-spacing: -.005em; margin: 1.6em 0 .45em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .4em; }
strong, b { font-weight: 650; }
.huelle { max-width: 76rem; margin: 0 auto; padding: 0 var(--rand); }
.lesen { max-width: 43rem; }
.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 { font: 600 .95rem/1.3 var(--sans); font-stretch: 82%; letter-spacing: .01em; color: var(--blau); margin: 0 0 .6rem; }
.offen { background: var(--marker); color: var(--tinte); padding: .05em .3em; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; font-size: .95em; }

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

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 50; background: var(--papier); 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: .65rem; min-height: 2.75rem; text-decoration: none; color: var(--tinte); font: 400 1.42rem/1 var(--serif); white-space: nowrap; }
.marke b { font-weight: 400; color: var(--blau); }
.marke:hover { color: var(--tinte); }
/* Zeichen: Raumecke mit Türaufschlag */
.marke-zeichen { width: 1.75rem; height: 1.75rem; flex: none; position: relative; border: 2.5px solid var(--blau); border-right-color: transparent; border-bottom-color: transparent; }
.marke-zeichen::before { content: ""; position: absolute; left: 3px; bottom: -2.5px; width: 1.15rem; height: 1.15rem; border-top: 1.5px dashed var(--rot); border-right: 1.5px dashed var(--rot); border-top-right-radius: 100%; }
.marke-zeichen::after { content: ""; position: absolute; left: 3px; bottom: -2.5px; width: 2px; height: 1.15rem; background: var(--rot); }
.menue { display: flex; align-items: center; gap: .2rem 1.15rem; }
.menue a { text-decoration: none; color: var(--tinte); font-weight: 500; font-size: 1rem; padding: .4rem 0; white-space: nowrap; }
.menue a:hover { color: var(--blau); }
.menue a[aria-current="page"] { color: var(--blau); box-shadow: inset 0 -2px 0 var(--rot); }
.menue-schalter { display: none; }
.fortschritt { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--rot) 0 calc(var(--fortschritt, 0) * 100%), transparent 0); }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.3rem; border-radius: 3px;
  background: var(--blau); color: #fff; font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 2px solid var(--blau); transition: background .2s, border-color .2s, color .2s; }
.knopf:hover { background: var(--blau-tief); border-color: var(--blau-tief); color: #fff; }
.knopf.hell { background: transparent; color: var(--blau); }
.knopf.hell:hover { background: var(--blau); color: #fff; }
.knopf.klein { min-height: 2.6rem; padding: .45rem 1rem; font-size: .97rem; }
.menue .knopf.klein { color: #fff; margin-left: .3rem; }
.knoepfe { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: .6rem; }
.aufruf { margin: 1.8rem 0 0; }
.aufruf .leise a { font-weight: 600; white-space: nowrap; }

/* Seitenkopf mit Belegungsplan */
.seitenkopf { padding: clamp(1.8rem, 5vw, 3.6rem) 0 clamp(1.5rem, 4vw, 2.5rem); background-image: var(--raster); background-size: 24px 24px; background-position: -1px -1px;
  border-bottom: 1px solid var(--linie); }
.seitenkopf .huelle { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.seitenkopf .huelle.lesen, .seitenkopf .huelle:not(:has(> .belegungsplan, > .ansprech, > figure)) { display: block; }
.seitenkopf h1 { max-width: 13ch; }
.seitenkopf.start h1 { max-width: 11ch; }
.seitenkopf-text:only-child h1, .seitenkopf .lesen h1 { max-width: 22ch; }
.pfad { font: 500 .95rem/1.4 var(--sans); font-stretch: 85%; color: var(--tinte-2); margin-bottom: 1.2rem; }
.pfad a { color: var(--tinte-2); }
.unterzeile { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.5; color: var(--tinte-2); max-width: 36rem; }
.seitenkopf .aufruf { margin: 1.4rem 0 1.6rem; }
.kurz { position: relative; max-width: 40rem; margin: 0 0 1rem; padding: 1rem 1.15rem 1.05rem; background: var(--blatt); border: 1px solid var(--blau); border-radius: 2px; }
.kurz::before { content: ""; position: absolute; left: -1px; top: -1px; width: 14px; height: 14px; border-left: 3px solid var(--rot); border-top: 3px solid var(--rot); }
.kurz p { margin: 0; font-size: 1.06rem; }
.kurz .kurz-marke { font: 600 .9rem/1 var(--sans); font-stretch: 80%; color: var(--blau); margin-bottom: .5rem; letter-spacing: .02em; }
.stand { font: 500 .9rem/1.4 var(--sans); font-stretch: 85%; color: var(--tinte-2); margin: 0; }

/* Plan-Blatt */
.belegungsplan { margin: 0; background: var(--blatt); border: 1px solid var(--blau); box-shadow: 0 1px 0 rgba(24, 33, 52, .05), 0 22px 44px -30px rgba(22, 58, 120, .45); }
.plan-blatt { padding: .6rem .6rem 0; }
.plan-svg { display: block; width: 100%; height: auto; }
.plan-hoch { display: none; }
.schriftfeld { border-top: 1px solid var(--blau); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.schriftfeld > p { margin: 0; padding: .55rem .8rem; border-bottom: 1px solid var(--linie); }
.sf-titel { font: 400 1.3rem/1.15 var(--serif); color: var(--blau-tief); grid-column: 1; border-right: 1px solid var(--linie); }
.sf-zeile { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; font: 500 .9rem/1.35 var(--sans); font-stretch: 85%; color: var(--tinte-2); }
.sf-zaehler b { color: var(--rot); font-weight: 700; }
.sf-hinweis { grid-column: 1 / -1; font-size: .9rem; color: var(--tinte-2); line-height: 1.45; }
.raumbuch { grid-column: 1 / -1; width: 100%; border-collapse: collapse; font-size: .95rem; }
.raumbuch caption { text-align: left; font: 600 .9rem/1 var(--sans); font-stretch: 80%; color: var(--blau); padding: .7rem .8rem .3rem; }
.raumbuch th, .raumbuch td { text-align: left; padding: .3rem .8rem; border-top: 1px solid var(--linie); }
.raumbuch thead th { font: 600 .875rem/1.2 var(--sans); font-stretch: 80%; color: var(--tinte-2); border-top: 0; }
.raumbuch tbody th { font-weight: 600; color: var(--blau); width: 4.2rem; }
.raumbuch td:nth-child(3), .raumbuch td:nth-child(4), .raumbuch thead th:nth-child(3), .raumbuch thead th:nth-child(4) { text-align: right; white-space: nowrap; }
.raumbuch a { color: var(--tinte); }

/* Zeichnung */
.pl-boden { fill: var(--blatt); }
.pl-raster { fill: none; stroke: var(--blau-hauch); stroke-width: 1; }
.pl-aussen { fill: none; stroke: var(--blau); stroke-width: 6; stroke-linejoin: miter; }
.pl-innen { fill: none; stroke: var(--blau); stroke-width: 2.6; }
.pl-luecke { fill: var(--blatt); }
.pl-glas { stroke: var(--blau); stroke-width: 1; }
.pl-tuerblatt { stroke: var(--blau); stroke-width: 1.8; }
.pl-aufschlag { fill: none; stroke: var(--blau); stroke-width: 1; stroke-dasharray: 3 3; }
.pl-kern { stroke: none; }
.pl-schraffur { stroke: var(--blau); stroke-width: 1; opacity: .35; }
.pl-stuetze { fill: var(--blau); }
.pl-belegt { fill: var(--rot-hauch); }
.pl-tisch { fill: var(--rot-flaeche); stroke: var(--rot); stroke-width: 1.5; }
.pl-stuhl { fill: var(--blatt); stroke: var(--rot); stroke-width: 1.4; }
.pl-kabine, .pl-zeile { fill: none; stroke: var(--rot); stroke-width: 1.5; }
.pl-becken { fill: none; stroke: var(--rot); stroke-width: 1.2; }
.pl-stempel rect { fill: var(--blatt); stroke: var(--tinte); stroke-width: 1.3; }
.pl-stempel line { stroke: var(--tinte); stroke-width: .8; }
.pl-st-nr { font: 650 14px/1 var(--sans); font-stretch: 80%; fill: var(--blau); }
.pl-st-pl { font: 600 14px/1 var(--sans); font-stretch: 75%; fill: var(--rot); }
.pl-masslinie { stroke: var(--tinte-2); stroke-width: 1; }
.pl-hilfslinie { stroke: var(--tinte-2); stroke-width: .6; }
.pl-tick { stroke: var(--tinte); stroke-width: 1.6; }
.pl-masstext { font: 500 14px/1 var(--sans); font-stretch: 78%; fill: var(--tinte-2); }
.pl-flur { font: italic 400 17px/1 var(--serif); fill: var(--blau); letter-spacing: .04em; }
.pl-ms-voll { fill: var(--tinte); }
.pl-ms-leer { fill: var(--blatt); stroke: var(--tinte); stroke-width: 1; }
.pl-nord circle { fill: none; stroke: var(--tinte); stroke-width: 1; }
.pl-nord path { fill: var(--tinte); }

/* Abschnitte und Kapitel mit Raumstempel */
.abschnitt { padding: clamp(2.2rem, 5vw, 3.8rem) 0; }
.kapitel-raster { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); gap: 0 clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.kapitel-text { max-width: 44rem; }
.kapitel-text > .lesen, .kapitel-text > p { max-width: 43rem; }
.raumstempel { position: sticky; top: calc(var(--kopf-h) + 1.4rem); display: grid; grid-template-columns: 5.6rem 1fr; border: 1.5px solid var(--tinte); background: var(--blatt);
  font: 600 .95rem/1.2 var(--sans); font-stretch: 80%; margin-top: .55rem; }
.raumstempel > span { padding: .45rem .55rem; }
.rs-nr { color: var(--blau); border-right: 1px solid var(--tinte); border-bottom: 1px solid var(--tinte); font-size: 1.05rem; }
.rs-name { border-bottom: 1px solid var(--tinte); font: 400 1.15rem/1.1 var(--serif); font-stretch: normal; color: var(--tinte); }
.rs-m2 { border-right: 1px solid var(--tinte); color: var(--tinte-2); white-space: nowrap; }
.rs-pl { color: var(--rot); }
.schwelle { display: flex; align-items: flex-end; max-width: 76rem; margin: 0 auto; padding: 0 var(--rand); height: 4.5rem; }
.sw-wand { flex: 1; height: 12px; margin-bottom: 6px; border-top: 1.5px solid var(--blau); border-bottom: 1.5px solid var(--blau);
  background: repeating-linear-gradient(45deg, transparent 0 5px, var(--blau-hauch) 5px 6.5px); }
.sw-wand:first-child { flex: 0 0 clamp(2rem, 16%, 12rem); }
.sw-tuer { width: 96px; height: 72px; flex: none; overflow: visible; }
.sw-luecke { fill: var(--papier); }
.sw-bogen { fill: none; stroke: var(--blau); stroke-width: 1; stroke-dasharray: 3 3; }
.sw-blatt { stroke: var(--rot); stroke-width: 2.4; transform-box: view-box; transform-origin: 8px 60px; transform: rotate(calc(var(--t, 1) * -90deg)); }
.sw-anschlag { stroke: var(--blau); stroke-width: 1.5; }

.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem clamp(1.2rem, 3vw, 2.4rem); margin: 1.4rem 0 1.6rem; }
.blattkarte { background: var(--blatt); border: 1px solid var(--linie); border-top: 3px solid var(--blau); padding: 1.1rem 1.2rem .9rem; }
.blattkarte h3 { margin-top: 0; }
.blattkarte p:last-child, .blattkarte ul:last-child { margin-bottom: 0; }
.merk { padding-left: 1.15rem; }
.merk li::marker { color: var(--rot); }
.hinweis { background: var(--blatt); border-left: 3px solid var(--rot); padding: .9rem 1.1rem; margin: 1.4rem 0; }
.hinweis p:last-child { margin: 0; }
.schritte { list-style: none; padding: 0; margin: 1.4rem 0; counter-reset: s; display: grid; gap: 0; border-left: 1.5px solid var(--blau); }
.schritte li { counter-increment: s; position: relative; padding: 0 0 1.2rem 2.4rem; margin: 0; }
.schritte li::before { content: counter(s); position: absolute; left: -1rem; top: -.1rem; width: 2rem; height: 2rem; border: 1.5px solid var(--blau); background: var(--papier);
  font: 600 .95rem/1.85rem var(--sans); text-align: center; color: var(--blau); }
.schritte b { display: block; }

/* Tabellen */
.tabelle-huelle { overflow-x: auto; margin: 1.4rem 0; }
.tabelle { width: 100%; border-collapse: collapse; background: var(--blatt); border: 1px solid var(--blau); font-size: 1rem; }
.tabelle caption { caption-side: bottom; text-align: left; padding: .65rem 0 0; font-size: .9rem; color: var(--tinte-2); }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: .7rem .9rem; border-bottom: 1px solid var(--linie); }
.tabelle thead th { font: 600 .95rem/1.25 var(--sans); font-stretch: 82%; color: var(--blau); border-bottom: 1.5px solid var(--blau); background: var(--blau-hauch); }
.tabelle tbody th { font-weight: 600; }
.tabelle tr:last-child th, .tabelle tr:last-child td { border-bottom: 0; }

/* Fragen */
.fragen { display: grid; gap: 0; margin: 1.2rem 0; border-top: 1px solid var(--blau); max-width: 46rem; }
.fragen details { border-bottom: 1px solid var(--linie); }
.fragen summary { -webkit-tap-highlight-color: transparent; cursor: pointer; list-style: none; padding: 1rem 2.6rem 1rem 0; font-weight: 600; position: relative; min-height: 2.75rem; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: ""; position: absolute; right: .35rem; top: 1.15rem; width: 1rem; height: 1rem; border-top: 1.5px dashed var(--rot); border-right: 1.5px dashed var(--rot);
  border-top-right-radius: 100%; transition: transform .25s; }
.fragen details[open] summary::after { transform: rotate(90deg); }
.fragen summary:hover { color: var(--blau); }
.fragen .antwort { padding: 0 0 1.1rem; }
.fragen .antwort p { margin: 0; }
.fragen-bereich .huelle > h2, .fragen-bereich .huelle > .lesen { max-width: 46rem; }
.faq-verzeichnis { font-weight: 500; }

/* Weiterlesen, Quellen, Ansprechpartner */
.weiter { border-top: 1px solid var(--linie); }
.weiter-liste { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0; border-top: 1px solid var(--blau); border-left: 1px solid var(--linie); }
.weiter-liste li { margin: 0; padding: 1rem 1.1rem 1.1rem; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); display: grid; gap: .25rem; background: var(--blatt); }
.weiter-liste a { font: 400 1.3rem/1.15 var(--serif); color: var(--blau-tief); text-decoration: none; }
.weiter-liste a:hover { color: var(--rot); text-decoration: underline; }
.weiter-liste span { color: var(--tinte-2); font-size: .97rem; }
.quellen { font-size: .92rem; color: var(--tinte-2); border-top: 1px solid var(--linie); padding-top: 1rem; margin-top: 2rem; max-width: 44rem; }
.ansprech { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.1rem; align-items: start; background: var(--blatt); border: 1px solid var(--linie); padding: 1.1rem; max-width: 34rem; }
.ansprech img { width: 7.5rem; height: 7.5rem; object-fit: cover; filter: grayscale(.15); }
.ansprech p { margin: 0 0 .45rem; }
.ansprech-name { font: 400 1.4rem/1.1 var(--serif); color: var(--blau-tief); }
.ansprech-rolle { font-size: .95rem; color: var(--tinte-2); }
.ansprech-tel { font-weight: 600; }
.querlinks { margin-top: 1.5rem; }

/* Fuß */
.fuss { background: var(--papier); border-top: 1.5px solid var(--blau); padding: 3rem 0 2.5rem; font-size: .97rem; background-image: var(--raster); background-size: 24px 24px; }
.fuss .spalten { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 2rem; }
.fuss h2 { font: 400 1.35rem/1.1 var(--serif); margin-bottom: .7rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: .35rem; }
.fuss a { color: var(--tinte); }
.fuss .klein { margin-top: 2rem; font-size: .9rem; color: var(--tinte-2); max-width: 60rem; }

/* Anfrageformular als Planblatt */
.anfrage-karte { background: var(--blatt); border: 1.5px solid var(--blau); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.2rem, 4vw, 3rem);
  padding: clamp(1.2rem, 4vw, 2.6rem); position: relative; }
.anfrage-karte::before, .anfrage-karte::after { content: ""; position: absolute; width: 18px; height: 18px; border-color: var(--rot); border-style: solid; }
.anfrage-karte::before { left: -2px; top: -2px; border-width: 3px 0 0 3px; }
.anfrage-karte::after { right: -2px; bottom: -2px; border-width: 0 3px 3px 0; }
.anfrage-kopf h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.anfrage .feld { margin: 0 0 1rem; }
.anfrage label, .anfrage legend { display: block; font-weight: 600; margin-bottom: .35rem; }
.anfrage fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.anfrage input[type=text], .anfrage input[type=tel], .anfrage input[type=email], .anfrage textarea, .anfrage select {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--tinte); background: #fff; border: 1.5px solid var(--linie); border-radius: 2px; padding: .7rem .85rem; min-height: 3rem; }
.anfrage select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem;
  background: #fff linear-gradient(45deg, transparent 50%, var(--blau) 50%) no-repeat right 1.05rem center / 7px 7px; }
.anfrage input:focus, .anfrage textarea:focus, .anfrage select:focus { border-color: var(--blau); outline: none; box-shadow: 0 0 0 3px var(--blau-hell); }
.anfrage .feld-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.wahl { display: flex; flex-wrap: wrap; gap: .5rem; }
.wahl label { -webkit-tap-highlight-color: transparent; display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .35rem .9rem; border: 1.5px solid var(--linie);
  border-radius: 2px; cursor: pointer; font-weight: 500; background: #fff; margin: 0; }
.anfrage .wahl label { display: inline-flex; font-weight: 500; margin: 0; }
.wahl input { width: 1.1rem; height: 1.1rem; accent-color: var(--blau); margin: 0; }
.wahl label:has(input:checked) { border-color: var(--blau); background: var(--blau-hauch); }
.anfrage .einwilligung label { font-weight: 400; display: grid; grid-template-columns: 1.25rem 1fr; gap: .7rem; align-items: start; font-size: .95rem; }
.anfrage .einwilligung input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--blau); }
.anfrage button.knopf { cursor: pointer; font-size: 1.05rem; }
.form-status[data-stand="fehler"] { color: var(--rot); font-weight: 600; }
.versteckt, .anfrage .versteckt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.danach { list-style: none; padding: 0; margin: 1.4rem 0 0; counter-reset: d; display: grid; gap: .9rem; }
.danach li { counter-increment: d; display: grid; grid-template-columns: 2.2rem 1fr; gap: .15rem .8rem; margin: 0; }
.danach li::before { content: counter(d); grid-row: span 2; font: 600 .95rem/2.05rem var(--sans); color: var(--blau); border: 1.5px solid var(--blau); width: 2.2rem; height: 2.2rem; text-align: center; }
.danach b { display: block; }
.danach span { color: var(--tinte-2); font-size: .97rem; }

/* Flächenrechner */
.rechner { background: var(--blatt); border: 1.5px solid var(--blau); margin: 0; }
.rechner-kopf { padding: clamp(1.1rem, 3vw, 1.8rem) clamp(1.1rem, 3vw, 1.8rem) .2rem; border-bottom: 1px solid var(--linie); }
.rechner-kopf h2 { margin-bottom: .35em; }
.rechner-kopf p { max-width: 46rem; color: var(--tinte-2); }
.wahl-spalte { flex-direction: column; align-items: stretch; margin: 0 0 1rem; }
.wahl-spalte label { justify-content: flex-start; }
.rechner [hidden] { display: none !important; }
.rechner-hinweise p { font-size: .95rem; margin: 0 0 .6rem; padding-left: .8rem; border-left: 2px solid var(--blau); }
.rechner select { width: 100%; max-width: 24rem; font: 400 1rem/1.4 var(--sans); color: var(--tinte); border: 1.5px solid var(--linie); border-radius: 2px; padding: .65rem 2.2rem .65rem .8rem; min-height: 3rem; appearance: none; -webkit-appearance: none; background: #fff linear-gradient(45deg, transparent 50%, var(--blau) 50%) no-repeat right 1rem center / 7px 7px; }
.rechner select:focus { border-color: var(--blau); outline: none; box-shadow: 0 0 0 3px var(--blau-hell); }
.rechner-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.rechner-eingabe { padding: clamp(1.1rem, 3vw, 1.8rem); border-right: 1px solid var(--linie); }
.rechner-ausgabe { padding: clamp(1.1rem, 3vw, 1.8rem); }
.rechner fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; }
.rechner legend { font: 400 1.3rem/1.15 var(--serif); color: var(--blau-tief); margin-bottom: .6rem; padding: 0; }
.rechner .feld { margin: 0 0 .9rem; }
.rechner label { display: block; font-weight: 600; margin-bottom: .3rem; }
.rechner .wahl label { display: flex; align-items: center; gap: .65rem; font-weight: 500; margin: 0; }
.rechner .wahl input { flex: none; }
.rechner input[type=number] { width: 100%; max-width: 13rem; font: 500 1.05rem/1.3 var(--sans); color: var(--tinte); background: #fff; border: 1.5px solid var(--linie); border-radius: 2px; padding: .65rem .8rem; min-height: 3rem; }
.rechner input[type=number]:focus { border-color: var(--blau); outline: none; box-shadow: 0 0 0 3px var(--blau-hell); }
.rechner .hilfe { display: block; font-size: .92rem; color: var(--tinte-2); margin-top: .25rem; }
.einheit { display: flex; align-items: center; gap: .5rem; }
.einheit span { color: var(--tinte-2); font-weight: 500; }
.ergebnis-zahl { font: 400 clamp(2.6rem, 6vw, 3.8rem)/1 var(--serif); color: var(--blau-tief); margin: .2rem 0 .3rem; }
.ergebnis-miete { font: 400 1.6rem/1.1 var(--serif); color: var(--rot); margin: 0 0 1rem; }
.rechenweg { list-style: none; counter-reset: none; padding: 0; margin: 0 0 1rem; border-top: 1px solid var(--linie); font-size: .98rem; }
.rechenweg li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; margin: 0; border-bottom: 1px solid var(--linie); }
.rechenweg li b { white-space: nowrap; }
.rechenweg li.summe { font-weight: 650; border-bottom: 1.5px solid var(--blau); }
.rechner-plan { border-top: 1px solid var(--blau); padding: .6rem; }
.rechner-plan svg { display: block; width: 100%; height: auto; max-height: 28rem; margin: 0 auto; }
.rp-umriss { fill: var(--blatt); stroke: var(--blau); stroke-width: 4; }
.rp-zone { fill: var(--blau-hauch); stroke: var(--blau); stroke-width: 1.5; }
.rp-verkehr { fill: url(#rp-schraffur); stroke: none; }
.rp-text { font: 500 14px/1 var(--sans); font-stretch: 80%; fill: var(--tinte-2); }
.rp-gross { font: 400 18px/1 var(--serif); fill: var(--blau-tief); }

/* Maßkette der Büromieten (Gewerbemietspiegel) */
.masskette-blatt { margin: 0; background: var(--blatt); border: 1px solid var(--blau); box-shadow: 0 22px 44px -30px rgba(22, 58, 120, .45); }
.mk-kopf { display: flex; justify-content: space-between; margin: 0; padding: .7rem .9rem .3rem; font: 600 .9rem/1.2 var(--sans); font-stretch: 80%; color: var(--blau); }
.masskette { list-style: none; margin: 0; padding: .2rem .9rem .4rem; }
.masskette li { display: grid; grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr) 4.6rem; gap: .7rem; align-items: center; margin: 0; padding: .28rem 0; border-bottom: 1px dotted var(--linie); }
.mk-name { font-size: .95rem; line-height: 1.25; }
.mk-wert { font: 600 .95rem/1 var(--sans); font-stretch: 85%; text-align: right; color: var(--tinte); }
.mk-linie { position: relative; height: 1.1rem; }
.mk-linie::before { content: ""; position: absolute; left: 0; top: 50%; height: 1px; width: calc(var(--m) * 100%); background: var(--tinte-2); transform-origin: 0 50%; }
.mk-linie::after { content: ""; position: absolute; top: calc(50% - 6px); left: calc(var(--m) * 100% - 1px); width: 1.5px; height: 12px; background: var(--tinte); transform: skewX(-40deg); }
.mk-linie i { position: absolute; top: calc(50% - 3px); height: 6px; left: calc(var(--a) * 100%); width: calc((var(--b) - var(--a)) * 100%); background: var(--rot); opacity: .85; }
.mk-achse { position: relative; height: 1.4rem; margin: 0 .9rem .4rem calc(.9rem + 12.5rem + .7rem); width: calc(100% - 1.8rem - 12.5rem - 1.4rem - 4.6rem); font: 500 .875rem/1 var(--sans); font-stretch: 80%; color: var(--tinte-2); }
.mk-achse span { position: absolute; left: calc(var(--x) * 100%); transform: translateX(-50%); top: .3rem; }
.mk-achse::before { content: ""; position: absolute; left: 0; right: 0; top: 0; border-top: 1px solid var(--linie); }

/* Lagekacheln */
.kachel-blatt { margin: 0; background: var(--blatt); border: 1px solid var(--blau); box-shadow: 0 22px 44px -30px rgba(22, 58, 120, .45); }
.kacheln { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 1.5rem repeat(4, minmax(0, 1fr)); gap: .45rem; margin: 0; padding: .8rem; }
.kachel-lage { border: 1.5px solid var(--tinte); background: var(--blatt); padding: .45rem .5rem; min-height: 4.6rem; margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: .3rem; }
.kachel-lage b { font: 400 1.05rem/1.05 var(--serif); color: var(--tinte); }
.kachel-lage > span { font: 650 .95rem/1.1 var(--sans); font-stretch: 78%; color: var(--rot); }
.kachel-lage.leer { border: 0; background: none; min-height: 0; }
.kacheln .rhein { grid-column: 3; grid-row: 1 / span 5; margin: -.8rem 0; background: var(--blau-hell); border-left: 1.5px solid var(--blau); border-right: 1.5px solid var(--blau);
  display: flex; align-items: center; justify-content: center; }
.kacheln .rhein span { writing-mode: vertical-rl; transform: rotate(180deg); font: italic 400 1rem/1 var(--serif); color: var(--blau); letter-spacing: .12em; }

/* ASR-Skizze */
.as-flaeche { font: 400 22px/1 var(--serif); fill: var(--blau-tief); }
.as-plaetze { font: 600 15px/1 var(--sans); font-stretch: 80%; fill: var(--rot); }
.asr-blatt .plan-svg { max-height: 22rem; }

/* Feste Aufrufleiste am Handy */
.leiste-unten { display: none; }
@media (max-width: 980px) {
  .leiste-unten { display: flex; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .6rem var(--rand) calc(.6rem + env(safe-area-inset-bottom));
    background: var(--papier); border-top: 1.5px solid var(--blau); transform: translateY(110%); transition: transform .3s ease; }
  .leiste-unten .knopf { flex: 1; min-height: 2.9rem; padding: .5rem .8rem; }
  .leiste-unten .knopf.hell { flex: 0 0 auto; }
  html.leiste-da .leiste-unten { transform: none; }
  html.leiste-da body { padding-bottom: 4.6rem; }
}

/* Bewegung: nur mit JavaScript (html.bewegt) und ohne Wunsch nach reduzierter Bewegung */
html.bewegt .belegungsplan .w { stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - clamp(0, calc(var(--p) * 8), 1)); }
html.bewegt .belegungsplan .m { opacity: clamp(0, calc((var(--p) - var(--s)) * 28), 1); }
html.bewegt .belegungsplan .pl-einbau { transform: translateY(calc((1 - clamp(0, calc((var(--p) - var(--s)) * 28), 1)) * -10px)); }
html.bewegt .raumstempel { opacity: 0; transform: scale(1.14) rotate(-2.5deg); }
html.bewegt .raumstempel.gesetzt { opacity: 1; transform: none; transition: opacity .18s ease-out, transform .42s cubic-bezier(.2, 1.5, .4, 1); }
html.bewegt .raumstempel .rs-pl { transition: background-color .5s .35s; }
html.bewegt .raumstempel.gesetzt .rs-pl { background: var(--rot-hauch); }
html.bewegt .masskette li .mk-linie::before, html.bewegt .masskette li .mk-linie i { transition: transform .9s cubic-bezier(.3, .7, .2, 1) calc(var(--i) * 55ms), opacity .4s calc(var(--i) * 55ms + .5s); }
html.bewegt .masskette-blatt.wartet .mk-linie::before { transform: scaleX(0); }
html.bewegt .masskette-blatt.wartet .mk-linie i { opacity: 0; }
html.bewegt .masskette-blatt.wartet .mk-linie::after { opacity: 0; }
html.bewegt .masskette li .mk-linie::after { transition: opacity .3s calc(var(--i) * 55ms + .8s); }
html.bewegt .kachel-lage:not(.leer) { transition: opacity .35s ease-out calc(var(--i) * 70ms), transform .5s cubic-bezier(.2, 1.4, .4, 1) calc(var(--i) * 70ms); }
html.bewegt .kachel-blatt.wartet .kachel-lage:not(.leer) { opacity: 0; transform: scale(.82); }
@media (prefers-reduced-motion: reduce) {
  html.bewegt .raumstempel { opacity: 1 !important; transform: none !important; }
  html.bewegt .belegungsplan .m { opacity: 1 !important; transform: none !important; }
  html.bewegt .belegungsplan .w { stroke-dashoffset: 0 !important; }
  .sw-blatt { transform: rotate(-90deg) !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Breite und schmale Bildschirme */
@media (max-width: 1120px) {
  :root { --kopf-h: 3.75rem; }
  .menue-schalter { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .4rem 1rem; border: 1.5px solid var(--blau); border-radius: 3px; background: transparent; color: var(--blau); font: 600 1rem/1 var(--sans); cursor: pointer; }
  .menue { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--papier); border-bottom: 1.5px solid var(--blau); flex-direction: column; align-items: stretch; padding: .5rem var(--rand) 1.2rem; gap: 0; }
  .menue.offen-menue { display: flex; }
  .menue a { padding: .8rem 0; border-bottom: 1px solid var(--linie); font-size: 1.08rem; }
  .menue a[aria-current="page"] { box-shadow: none; color: var(--rot); }
  .menue .knopf.klein { margin: .9rem 0 0; border-bottom: 2px solid var(--blau); }
}
@media (max-width: 1020px) {
  .fuss .spalten { grid-template-columns: 1fr 1fr; }
  .seitenkopf .huelle { grid-template-columns: 1fr; }
  .seitenkopf h1, .seitenkopf.start h1 { max-width: 16ch; }
  .rechner-raster { grid-template-columns: 1fr; }
  .rechner-eingabe { border-right: 0; border-bottom: 1px solid var(--linie); }
}
@media (max-width: 860px) {
  .anfrage-karte { grid-template-columns: 1fr; }
  .anfrage .feld-zeile { grid-template-columns: 1fr; }
  .kapitel-raster { grid-template-columns: 1fr; }
  .raumstempel { position: static; width: 14rem; margin: 0 0 1.1rem; }
  .zwei { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .masskette li { grid-template-columns: minmax(0, 1fr) 4.4rem; gap: .1rem .6rem; }
  .mk-name { grid-column: 1; }
  .mk-wert { grid-column: 2; grid-row: 1; }
  .mk-linie { grid-column: 1 / -1; }
  .mk-achse { margin-left: .9rem; width: calc(100% - 1.8rem); }
  .kacheln { gap: .3rem; padding: .5rem; }
  .kachel-lage { padding: .4rem .45rem; min-height: 4.2rem; }
  .kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
  .kachel-lage.leer { display: none; }
  .kachel-lage { order: 2; }
  .kachel-lage.links { order: 0; }
  .kacheln .rhein { order: 1; grid-column: 1 / -1; grid-row: auto; margin: .2rem -.5rem; height: 2rem; border: 0; border-top: 1.5px solid var(--blau); border-bottom: 1.5px solid var(--blau); }
  .kacheln .rhein span { writing-mode: horizontal-tb; transform: none; font-size: 1rem; }
  .kachel-lage b { font-size: 1rem; hyphens: manual; -webkit-hyphens: manual; }
  .kachel-lage > span { font-size: .95rem; }
  .plan-quer { display: none; }
  .plan-hoch { display: block; max-height: 78vh; margin: 0 auto; width: auto; max-width: 100%; }
  .schriftfeld { grid-template-columns: 1fr; }
  .sf-titel, .sf-zeile { grid-column: 1; border-right: 0; }
}
@media (max-width: 640px) {
  .fuss .spalten { grid-template-columns: 1fr; }
  .marke { font-size: 1.22rem; }
  .ansprech { grid-template-columns: 5.5rem 1fr; }
  .ansprech img { width: 5.5rem; height: 5.5rem; }
  .knoepfe .knopf { width: 100%; }
  .sw-wand:first-child { flex-basis: 1.2rem; }
  .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 { display: flex !important; flex-direction: column; }
  .tabelle.stapel tr { border-bottom: 1px solid var(--linie); padding: .4rem 0; }
  .tabelle.stapel tbody th { padding-bottom: .15rem; border: 0; }
  .tabelle.stapel td { border: 0; padding-top: .2rem; padding-bottom: .45rem; }
  .tabelle.stapel caption { order: 2; display: block; width: 100%; padding: .7rem .9rem .3rem; }
  .tabelle.stapel td::before { content: attr(data-spalte); display: block; font: 600 .9rem/1.3 var(--sans); font-stretch: 82%; color: var(--blau); margin-bottom: .1rem; }
}

/* === 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 === */
