/* Seeterrasse Oberhofen: ein Blatt der Landeskarte 1:25'000.
   Farben nach den Druckfarben der Karte: Situation schwarz, Gelände braun, Gewässer blau, Wald grün,
   dazu der rote Nachführungsdruck für alles, was der Besucher einträgt oder auslöst. */

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

:root {
  --papier: #FBFAF5; --papier-tief: #F0EDE2; --schwarz: #1A1A1A; --tinte: #4E4B45;
  --braun: #8C5A2B; --braun-tief: #6F4520; --gelaende: #F3E8D8;
  --blau-tief: #1D5F99; --see: #DCEEF9;
  --gruen: #7FB35A; --gruen-tief: #3D6E23; --wald: #E3EED3;
  --gelb: #F2C230; --sonne: #F2B705; --sonne-hell: #FBE9A8;
  --rot: #C4122F; --rot-tief: #9E0E26; --rot-hell: #F9E3E6;
  --haar: rgba(26, 26, 26, .2);
  --karte: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --nav-h: 46px; --leiste-h: 60px; --rand: clamp(16px, 4.2vw, 60px); --breite: 1320px;
  --lage: clamp(18px, 3vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 14px); -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--schwarz) var(--papier-tief); }
body.seite-verkauf { padding-bottom: 0; }
body { margin: 0; padding-bottom: var(--leiste-h); background: var(--papier); color: var(--schwarz);
  font: 400 1rem/1.55 var(--text); font-variant-numeric: lining-nums; overflow-x: clip; }
::selection { background: var(--rot); color: var(--papier); }
:focus-visible { outline: 2.5px solid var(--rot); outline-offset: 2px; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--karte); margin: 0; text-wrap: balance; }
h3 { font-weight: 800; font-stretch: 92%; font-size: 1.18rem; line-height: 1.2; }
h4 { font-weight: 700; font-size: .92rem; margin: 22px 0 6px; }
p { margin: 0 0 .8em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
main a:hover, nav a:hover, footer a:hover { color: var(--rot-tief); }
button, input, select, textarea { font: inherit; color: inherit; caret-color: var(--rot); }
button { cursor: pointer; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
th, td { padding: 8px; border-bottom: 1px solid var(--haar); text-align: left; vertical-align: baseline; font-weight: 400; }
thead th { font: 600 .76rem var(--karte); color: var(--tinte); border-bottom: 1.5px solid var(--schwarz); }
tbody th { font-weight: 600; }
.r { text-align: right; }
[hidden] { display: none !important; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.zeichen { position: absolute; width: 0; height: 0; overflow: hidden; }
.sprung { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--schwarz); color: var(--papier); }
.sprung:focus { top: 8px; }
.quelle { font-size: .8rem; line-height: 1.45; color: var(--tinte); max-width: 78ch; margin: 10px 0 0; }
.herkunft { font: 600 .75rem var(--karte); color: var(--braun-tief); letter-spacing: .01em; }
.hilfe { font: 400 .82rem/1.4 var(--text); color: var(--tinte); margin: 2px 0 0; }
.fehler { color: var(--rot-tief); font-weight: 600; font-size: .9rem; }
.klein { font-size: .85rem; margin: 2px 0; }
.leer { color: var(--tinte); }
.st { display: block; font: 400 .78rem/1.3 var(--text); color: var(--tinte); }
svg.z { width: 20px; height: 20px; flex: none; }
svg.sig { width: 16px; height: 16px; flex: none; vertical-align: -3px; background: var(--papier); }
.ladefehler, .ohne-js { margin: 24px var(--rand); padding: 14px 16px; border: 1.5px solid var(--rot); background: var(--rot-hell); }

/* ---------- Bedienelemente ---------- */
.knopf { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1.5px solid var(--schwarz);
  background: var(--papier); color: var(--schwarz); font: 650 .95rem/1.2 var(--karte); font-stretch: 94%;
  text-decoration: none; border-radius: 0; transition: background-color .16s ease-out, color .16s ease-out; }
.knopf:hover { background: var(--schwarz); color: var(--papier); }
.knopf svg { width: 18px; height: 18px; flex: none; }
.knopf[aria-pressed="true"] { color: var(--rot-tief); border-color: var(--rot); }
.knopf[aria-pressed="true"]:hover { color: var(--papier); background: var(--rot); }
.knopf-rot { background: var(--rot); border-color: var(--rot); color: var(--papier); }
.knopf-rot:hover { background: var(--rot-tief); border-color: var(--rot-tief); color: var(--papier); }
.knopf-klein { padding: 8px 12px; font-size: .9rem; }
.textknopf { background: none; border: 0; padding: 2px 0; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .2em; font: inherit; color: inherit; }
.textknopf:hover { color: var(--rot-tief); }
.rund { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0; border: 1.5px solid var(--schwarz);
  border-radius: 50%; background: var(--papier); transition: background-color .16s ease-out, color .16s ease-out; }
.rund:hover, .rund[aria-pressed="true"] { background: var(--schwarz); color: var(--papier); }
.rund svg { width: 18px; height: 18px; }
.rund.klein { width: 28px; height: 28px; }
.rund.klein svg { width: 13px; height: 13px; }
.gespiegelt svg { transform: scaleX(-1); }
.umschalter { display: inline-flex; flex-wrap: wrap; border: 1.5px solid var(--schwarz); background: var(--papier); }
.umschalter button { padding: 9px 14px; border: 0; background: none; font: 650 .92rem/1.1 var(--karte); font-stretch: 92%; }
.umschalter button + button { border-left: 1.5px solid var(--schwarz); }
.umschalter .kurz { display: none; }
abbr { text-decoration: none; }
.umschalter button[aria-pressed="true"] { background: var(--schwarz); color: var(--papier); }
.umschalter button:hover:not([aria-pressed="true"]) { background: var(--papier-tief); }

.wahlreihe { display: flex; flex-wrap: wrap; gap: 6px; }
.wahl { position: relative; display: inline-flex; }
.wahl input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.wahl span { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 11px; border: 1.5px solid var(--schwarz);
  background: var(--papier); font: 650 .88rem/1.1 var(--karte); }
.wahl span b { font-weight: 800; }
.filter .wahl input[type="checkbox"]:not(:checked) + span { border-style: dashed; border-color: var(--tinte); color: var(--tinte);
  text-decoration: line-through; background: transparent; }
.anfrage .wahl input[type="checkbox"]:checked + span { background: var(--schwarz); color: var(--papier); }
.wahl input[type="radio"]:checked + span { background: var(--schwarz); color: var(--papier); }
.wahl input:focus-visible + span { outline: 2.5px solid var(--rot); outline-offset: 2px; }
.wahlreihe-gross .wahl span { padding: 10px 14px; font-size: .95rem; }
.haken { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; margin: 4px 0 10px; }
.haken input, .option input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--rot); flex: none; }

/* Regler als Massstabsbalken */
.balken { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 0; background: transparent; --stand: 100%; }
.balken::-webkit-slider-runnable-track { height: 9px; border: 1.5px solid var(--schwarz);
  background: linear-gradient(90deg, transparent var(--stand), var(--papier) var(--stand)),
    repeating-linear-gradient(90deg, var(--schwarz) 0 22px, var(--papier) 22px 44px); }
.balken::-moz-range-track { box-sizing: border-box; height: 12px; border: 1.5px solid var(--schwarz);
  background: linear-gradient(90deg, transparent var(--stand), var(--papier) var(--stand)),
    repeating-linear-gradient(90deg, var(--schwarz) 0 22px, var(--papier) 22px 44px); }
.balken::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 28px; margin-top: -11px; border: 2px solid var(--papier);
  border-radius: 0; background: var(--rot); box-shadow: 0 0 0 1.5px var(--rot); cursor: ew-resize; }
.balken::-moz-range-thumb { box-sizing: border-box; width: 16px; height: 32px; border: 2px solid var(--papier); border-radius: 0; background: var(--rot);
  box-shadow: 0 0 0 1.5px var(--rot); cursor: ew-resize; }
.balken:focus-visible { outline-offset: 4px; }

.feld { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; font: 650 .88rem/1.3 var(--karte); }
.feld-zeile { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; }
.feld input[type="text"], .feld input[type="email"], .feld textarea, select, #assistent-frage {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--schwarz); border-radius: 0; background: var(--papier);
  font: 400 1rem/1.3 var(--text); color: var(--schwarz); }
.feld input::placeholder, #assistent-frage::placeholder { color: #6B675F; }
.feld textarea { resize: vertical; min-height: 84px; }
select { -webkit-appearance: none; appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231A1A1A' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; }
.feld-zeile select { width: auto; flex: 1 1 14em; }
[aria-invalid="true"] { border-color: var(--rot) !important; background-color: #FDF3F4 !important; }
fieldset { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 7px; font: 650 .8rem var(--karte); color: var(--tinte); }

/* ---------- Rahmen von Webrohbau ---------- */
.rahmen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 24px; padding: 7px var(--rand);
  background: var(--schwarz); color: var(--papier); font: 400 .8rem/1.4 var(--text); }
.rahmen p { margin: 0; }
.rahmen-kurz { display: none; }
@media (max-width: 719px) { .rahmen-lang { display: none; } .rahmen-kurz { display: inline; } }
.rahmen strong { font: 800 .82rem var(--karte); }
.rahmen a { color: var(--papier); white-space: nowrap; }
.rahmen a:hover { color: var(--gelb); }

/* ---------- Titelblatt ---------- */
.blatt { position: relative; height: clamp(600px, calc(100svh - var(--leiste-h) - 44px), 940px); overflow: hidden; border-bottom: 1.5px solid var(--schwarz);
  background: var(--see); --kante: 14px; --links: clamp(34px, 5.4vw, 92px); --spalte: min(41vw, 600px); --unten: clamp(100px, 13.5vh, 132px); }
.blatt-karte { position: absolute; inset: 0; overflow: hidden; }
.blatt-karte img { position: absolute; left: 0; top: 0; max-width: none; height: auto; transform-origin: 0 0; will-change: transform; user-select: none; }
.blatt-rand { position: absolute; inset: 0; pointer-events: none; }
.blatt-rand::before { content: ""; position: absolute; inset: var(--kante); border: 1.5px solid var(--schwarz); }
.blatt-rand::after { content: ""; position: absolute; inset: calc(var(--kante) + 4px); border: .5px solid var(--schwarz); }
.rand-o, .rand-l { position: absolute; font: 600 .66rem/1 var(--karte); font-stretch: 80%; }
.rand-o { left: 0; right: 0; top: var(--kante); }
.rand-l { top: 0; bottom: 0; left: var(--kante); }
.rand-o i, .rand-l i { position: absolute; font-style: normal; padding: 2px 4px; background: var(--papier); border: 1px solid var(--schwarz); }
.rand-o i { top: -1px; transform: translateX(-50%); }
.rand-l i { left: -1px; transform: translateY(-50%); writing-mode: vertical-rl; }

.blatt-links { position: absolute; left: var(--links); top: calc(var(--kante) + 26px); bottom: var(--unten); width: var(--spalte);
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.blattkopf { padding: 16px 20px 15px; border: 1.5px solid var(--schwarz); background: var(--papier); }
.blattkopf h1 { font-weight: 800; font-stretch: 78%; font-size: clamp(2.6rem, 5.3vw, 4.7rem); line-height: .9; letter-spacing: -.012em; }
.blattkopf h1 span { display: block; }
.blatt-satz { margin: 14px 0 16px; max-width: 27em; font-weight: 500; font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.4; }
.massstab { display: flex; align-items: center; gap: 10px; font: 650 .8rem/1 var(--karte); }
.massstab-balken { display: flex; height: 8px; min-width: 40px; border: 1.5px solid var(--schwarz); background: var(--papier); }
.massstab-balken i { flex: 1; }
.massstab-balken i:nth-child(odd) { background: var(--schwarz); }
.kote { margin: 10px 0 0; font: 600 .8rem/1.2 var(--karte); font-stretch: 86%; letter-spacing: .01em; }
.kote span { color: var(--braun-tief); margin-left: 10px; }

.neubau-linie { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.neubau-linie path { fill: none; stroke: var(--rot); stroke-width: 1.5; }
.neubau-punkt { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.neubau-punkt i { position: absolute; left: -9px; top: -5px; width: 18px; height: 10px; background: var(--rot); border: 1.5px solid var(--papier);
  transform: rotate(35deg); box-shadow: 0 0 0 1px var(--rot); }
.neubau-punkt i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border: 1.5px solid var(--rot);
  border-radius: 50%; }
.neubau-punkt b { position: absolute; left: 30px; top: -30px; font: italic 700 .86rem var(--text); color: var(--rot-tief); white-space: nowrap;
  --f: var(--papier); text-shadow: 1.5px 0 0 var(--f), -1.5px 0 0 var(--f), 0 1.5px 0 var(--f), 0 -1.5px 0 var(--f), 1px 1px 0 var(--f), -1px 1px 0 var(--f), 1px -1px 0 var(--f), -1px -1px 0 var(--f); }

.ausschnitt { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin: 0; border: 1.5px solid var(--schwarz);
  background: var(--papier); padding: 6px 6px 0; box-shadow: 0 0 0 4px var(--papier), 0 0 0 5px var(--schwarz); }
.ausschnitt img { display: block; flex: 1 1 auto; min-height: 0; width: 100%; object-fit: cover; }
.ausschnitt figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 6px 2px 7px; font: 600 .78rem/1.2 var(--karte); }
.ausschnitt figcaption span + span { color: var(--tinte); font-weight: 500; }

.legende-kurz { position: absolute; left: calc(var(--links) + var(--spalte) + 30px); bottom: var(--unten); display: flex; flex-wrap: wrap;
  align-items: center; gap: 10px 20px; max-width: 36vw; padding: 12px 14px; border: 1.5px solid var(--schwarz); background: var(--papier); }
.legende-kurz h2 { flex: 1 0 100%; font: 800 .8rem/1 var(--karte); }
.legende-kurz ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.legende-kurz li { display: flex; align-items: center; gap: 6px; }
.legende-kurz li b { font: 800 1.1rem var(--karte); }

.randangaben { position: absolute; left: var(--kante); right: var(--kante); bottom: var(--kante); display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; background: var(--papier); border: 1.5px solid var(--schwarz); }
.randangaben div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 3px; padding: 10px 12px 11px; min-width: 0; }
.randangaben div + div { border-left: 1px solid var(--haar); }
.randangaben dt { font: 400 .78rem/1.3 var(--text); color: var(--tinte); }
.randangaben dt .herkunft::before { content: "· "; }
.randangaben dd { margin: 0; font: 800 clamp(.98rem, 1.5vw, 1.32rem)/1.1 var(--karte); font-stretch: 80%; white-space: nowrap; }
.blatt-quelle { position: absolute; right: calc(var(--kante) + 10px); top: calc(var(--kante) + 26px); margin: 0; padding: 2px 6px; background: rgba(251, 250, 245, .88); }

/* ---------- Abschnittsleiste ---------- */
.blattnav { position: sticky; top: 0; z-index: 30; display: flex; align-items: stretch; height: var(--nav-h); padding-left: var(--rand);
  background: var(--papier); border-bottom: 1.5px solid var(--schwarz); }
.blattnav-name { display: flex; align-items: center; padding-right: 18px; font: 800 1rem/1 var(--karte); font-stretch: 80%; text-decoration: none; white-space: nowrap; }
.blattnav ul { display: flex; margin: 0; padding: 0 var(--rand) 0 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.blattnav ul::-webkit-scrollbar { display: none; }
.blattnav li { display: flex; }
.blattnav ul a { display: flex; align-items: center; padding: 0 12px; font: 600 .86rem/1 var(--karte); text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
.blattnav ul a:hover { color: var(--rot-tief); }
.blattnav ul a[aria-current] { color: var(--rot-tief); border-bottom-color: var(--rot); }

/* ---------- Abschnitte ---------- */
.abschnitt { position: relative; padding: clamp(60px, 9vw, 124px) var(--rand) clamp(44px, 6vw, 84px); border-top: 1.5px solid var(--schwarz); }
.abschnitt:first-child { border-top: 0; }
.abschnitt::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--schwarz) 0 1px, transparent 1px 110px); background-position: var(--rand) 0; }
.abschnitt > * { max-width: var(--breite); margin-inline: auto; }
.abschnitt-see { background: var(--see); }
#tragbarkeit .rechner-ergebnis { background: var(--papier-tief); }
#umgebung { background: var(--wald); }
.abschnitt-kopf { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px var(--lage); align-items: end;
  margin-bottom: clamp(26px, 4vw, 48px); }
.abschnitt-kopf h1, .abschnitt-kopf h2 { font-weight: 800; font-stretch: 80%; font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: .96; letter-spacing: -.012em; }
.abschnitt-kopf p { margin: 0; max-width: 62ch; font-size: clamp(1rem, 1.2vw, 1.1rem); }

/* ---------- Wohnungsfinder ---------- */
.finder { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(470px, 1fr); gap: var(--lage); align-items: start; }
.finder-bild { position: sticky; top: calc(var(--nav-h) + 14px); }
.ansicht { position: relative; margin: 0; border: 1.5px solid var(--schwarz); overflow: hidden; background: var(--papier-tief);
  aspect-ratio: 16 / 9; touch-action: pan-y; cursor: grab; user-select: none; }
.ansicht img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
.ansicht figcaption { position: absolute; left: 0; bottom: 0; padding: 5px 10px; background: var(--papier); border-top: 1.5px solid var(--schwarz);
  border-right: 1.5px solid var(--schwarz); font: 600 .8rem/1.2 var(--karte); }
.flaechen { position: absolute; inset: 0; width: 100%; height: 100%; }
.fl { stroke: var(--papier); stroke-width: 1.5; vector-effect: non-scaling-stroke; cursor: pointer; pointer-events: all; transition: opacity .15s ease-out; }
.fl.aus { stroke: rgba(251, 250, 245, .7); stroke-dasharray: 4 4; stroke-width: 1; }
.fl.betont { stroke: var(--schwarz); stroke-width: 3; }
.fl.gewaehlt { stroke: var(--rot); stroke-width: 3.5; }
.fl.besonnt { fill: rgba(246, 200, 30, .42); stroke: rgba(26, 26, 26, .55); stroke-width: 1; }
.fl.besonnt.gewaehlt, #sonne-flaechen .fl.gewaehlt { stroke: var(--rot); stroke-width: 3; }
.windrose { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.rose { position: relative; width: 96px; height: 96px; flex: none; border: 1.5px solid var(--schwarz); border-radius: 50%; background: var(--papier); }
.rose-n { position: absolute; left: 50%; top: 13px; transform: translateX(-50%); font: 800 .7rem/1 var(--karte); }
.rose-haus { position: absolute; left: 50%; top: 50%; width: 26px; height: 11px; margin: -5.5px -13px; background: var(--schwarz); transform: rotate(35deg); }
.rose-punkt { position: absolute; width: 16px; height: 16px; margin: -8px; padding: 0; border: 1.5px solid var(--schwarz); border-radius: 50%; background: var(--papier); }
.rose-punkt::before { content: ""; position: absolute; inset: -11px; border-radius: 50%; }
.rose-punkt:hover { background: var(--schwarz); }
.rose-punkt[aria-current] { background: var(--rot); border-color: var(--rot); box-shadow: 0 0 0 2px var(--papier), 0 0 0 3.5px var(--rot); }

.legende { padding: clamp(14px, 1.8vw, 22px); border: 1.5px solid var(--schwarz); background: var(--papier); }
.legende h3 { margin-bottom: 14px; }
.filter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; }
.filter-status, .filter .haken, .filter-stand { grid-column: 1 / -1; }
.filter-regler { margin: 0 0 8px; }
.filter-regler label { display: flex; justify-content: space-between; gap: 12px; font: 650 .8rem var(--karte); color: var(--tinte); }
.filter-regler output { font: 800 .92rem var(--karte); color: var(--schwarz); }
.filter-stand { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; margin: 10px 0 6px; font-size: .88rem; font-weight: 600; }
.filter-stand .textknopf { font-weight: 400; }
.wohnliste th, .wohnliste td { padding: 6px 5px; vertical-align: middle; }
.wohnliste tbody tr { cursor: pointer; }
.wohnliste tbody tr.betont { background: var(--papier-tief); }
.wohnliste tr.gewaehlt { outline: 2px solid var(--rot); outline-offset: -2px; background: #FDF6F1; }
.wohnliste tr.aus, .wohnliste tr.aus .st, .wohnliste tr.aus .nr, .wohnliste tr.aus .merk { color: #6B675F; }
.wohnliste tr.aus svg.sig { opacity: .45; }
.wohnliste .nr { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 2px 4px 2px 2px; border: 0; background: none; font: 800 1.02rem var(--karte); }
.wohnliste .preis { white-space: nowrap; font-weight: 600; }
.merk { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; background: none; }
.merk:hover, .merk[aria-pressed="true"] { color: var(--rot); }

.datenblatt { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--lage); margin-top: clamp(30px, 4vw, 52px);
  padding-top: clamp(22px, 3vw, 34px); border-top: 1.5px solid var(--schwarz); }
.db-plan .umschalter { margin-bottom: 10px; }
.plan { border: 1.5px solid var(--schwarz); background: #fff; aspect-ratio: 420 / 297; max-height: 78vh; overflow: hidden; }
.plan svg { display: block; width: 100%; height: 100%; }
.db-text h3 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); font-stretch: 84%; line-height: 1.05; }
.db-status { display: flex; align-items: center; gap: 6px; margin: 10px 0 2px; font-weight: 600; }
.db-preis { margin: 0 0 12px; }
.db-preis b { display: block; font: 800 clamp(1.8rem, 3vw, 2.5rem)/1.1 var(--karte); font-stretch: 78%; }
.db-preis span { font-size: .9rem; color: var(--tinte); }
.db-werte { margin: 0; border-top: 1.5px solid var(--schwarz); }
.db-werte div { display: grid; grid-template-columns: 10.5em minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--haar); }
.db-werte dt { font-size: .86rem; color: var(--tinte); }
.db-werte dd { margin: 0; font-weight: 500; }
.db-raeume { columns: 2; column-gap: 26px; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.db-raeume li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dotted rgba(26, 26, 26, .45); break-inside: avoid; }
.db-raeume li span + span { font-variant-numeric: tabular-nums; white-space: nowrap; }
.db-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* ---------- Sonne ---------- */
.sonne { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); gap: 20px var(--lage); align-items: start;
  grid-template-areas: "wahl wahl" "bild bahn" "stunden stunden"; }
.sonne-wahl { grid-area: wahl; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; }
.sonne-uhr { display: flex; align-items: center; gap: 12px; }
.uhrzeit { font: 800 clamp(2.2rem, 4.2vw, 3.3rem)/1 var(--karte); font-stretch: 76%; font-variant-numeric: tabular-nums; min-width: 4.2ch; text-align: right; }
.sonne-bild { grid-area: bild; position: relative; margin: 0; }
.sonne-bild img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1.5px solid var(--schwarz); background: var(--papier-tief); }
.sonne-bild .flaechen { inset: 0 0 auto 0; height: auto; aspect-ratio: 16 / 9; }
.sonne-bild figcaption { padding-top: 8px; font-size: .95rem; min-height: 3.2em; }
.sonnenbahn { grid-area: bahn; min-width: 0; }
#bahn { display: block; width: 100%; touch-action: pan-y; cursor: ew-resize; user-select: none; overflow: visible; }
.bahn-netz { stroke: rgba(26, 26, 26, .28); stroke-width: 1; stroke-dasharray: 2 6; }
.bahn-kote { font: 600 12px var(--karte); fill: var(--braun-tief); }
.bahn-gelaende { stroke: var(--braun); stroke-width: 1.5; stroke-linejoin: round; }
.bahn-gipfel { font: italic 500 12px var(--text); fill: var(--schwarz); paint-order: stroke; stroke: var(--gelaende); stroke-width: 3px; stroke-linejoin: round; }
.bahn-gipfel.gross { font-weight: 800; font-size: 12.5px; }
.bahn-fassade { stroke: var(--rot); stroke-width: 5; }
.bahn-hinweis { font: 600 11px var(--karte); fill: var(--rot-tief); }
.bahn-achse { stroke: var(--schwarz); stroke-width: 1; }
.bahn-richtung { font: 800 12px var(--karte); fill: var(--schwarz); }
.bahn-bogen { fill: none; stroke: var(--schwarz); stroke-width: 2; }
.bahn-bogen.unten { stroke: var(--tinte); stroke-width: 1.4; stroke-dasharray: 3 5; }
.bahn-stunde { fill: var(--papier); stroke: var(--schwarz); stroke-width: 1.4; }
.bahn-uhr { font: 600 11px var(--karte); fill: var(--schwarz); }
.sonne-scheibe { cursor: grab; }
.sonne-griff { fill: transparent; }
.sonne-kern { fill: #F6C81E; stroke: var(--schwarz); stroke-width: 2; }
.sonne-scheibe.unten .sonne-kern { fill: var(--papier); stroke-dasharray: 3 3; }
.balken-zeit { margin-top: 4px; }
.sonnenstunden { grid-area: stunden; min-width: 0; }
.stunden-zeichen { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 8px; padding: 0; list-style: none; font-size: .8rem; }
.stunden-zeichen i { display: inline-block; width: 20px; height: 10px; margin-right: 4px; border: 1px solid var(--schwarz); vertical-align: -1px; }
.z-voll { background: var(--sonne); }
.z-hell { background: var(--sonne-hell); }
.stunden { position: relative; --name: 6.6em; --wert: 3.9em; }
.stunde { display: grid; grid-template-columns: var(--name) minmax(0, 1fr) var(--wert); align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--haar); }
.stunde.gewaehlt { outline: 2px solid var(--rot); outline-offset: 1px; }
.stunde-kopf { border-bottom: 1.5px solid var(--schwarz); padding: 0; }
.stunden-achse { position: relative; height: 18px; font: 600 .75rem/18px var(--karte); color: var(--tinte); }
.stunden-achse span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.stunde-name { display: flex; flex-direction: column; align-items: flex-start; min-height: 36px; justify-content: center; padding: 0; border: 0; background: none; text-align: left; }
.stunde-name b { font: 800 .98rem/1.1 var(--karte); }
.stunde-name span { font-size: .75rem; line-height: 1.2; color: var(--tinte); white-space: nowrap; }
.stunde-band { position: relative; height: 16px; border: 1px solid rgba(26, 26, 26, .4); background: var(--papier-tief); }
.stunde-band i { position: absolute; top: 0; bottom: 0; }
.stunde-wert { text-align: right; font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stunde-wert b { font: 800 1.05rem var(--karte); }
.stunden-spur { position: absolute; top: 0; bottom: 0; left: calc(var(--name) + 10px); right: calc(var(--wert) + 10px); pointer-events: none; }
.stunden-marke { position: absolute; top: 19px; bottom: 0; width: 0; border-left: 2px solid var(--rot); }

/* ---------- Aussicht ---------- */
.aussicht-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 14px; }
.koten { display: flex; flex-wrap: wrap; gap: 8px; }
.pano-zoom { display: flex; align-items: center; gap: 10px; font: 650 .86rem var(--karte); }
.pano-zoom output { min-width: 9.5em; text-align: center; }
.rund:disabled { opacity: .35; cursor: default; background: var(--papier); color: var(--schwarz); }
.kote-knopf { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 14px 9px; border: 1.5px solid var(--schwarz); background: var(--papier); }
.kote-knopf b { font: 800 1.02rem/1.1 var(--karte); }
.kote-knopf span { font: 600 .76rem/1.1 var(--karte); color: var(--braun-tief); font-variant-numeric: tabular-nums; }
.kote-knopf[aria-pressed="true"] { background: var(--schwarz); color: var(--papier); }
.kote-knopf[aria-pressed="true"] span { color: #E9CFAE; }
.pano { position: relative; height: clamp(300px, 44vw, 540px); overflow: auto; border: 1.5px solid var(--schwarz); background: #C9DFEE;
  cursor: grab; overscroll-behavior-x: contain; scrollbar-color: var(--schwarz) var(--papier); }
.pano.zieht { cursor: grabbing; user-select: none; }
.pano-innen { position: relative; height: 100%; min-width: 100%; }
.pano-kacheln { display: flex; width: 100%; height: 100%; }
.pano-kacheln img { display: block; flex: none; height: 100%; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.pano-namen { position: absolute; inset: 0; pointer-events: none; }
.gipfelname { position: absolute; width: 0; height: 0; --h: 26px; }
.gipfelname::before { content: ""; position: absolute; left: -.5px; bottom: 3px; width: 1px; height: var(--h); background: var(--schwarz); box-shadow: 0 0 0 .5px rgba(251, 250, 245, .7); }
.gipfelname span { position: absolute; left: 0; bottom: calc(var(--h) + 3px); transform: translateX(-50%); padding: 2px 7px 3px; border: 1px solid var(--schwarz);
  background: var(--papier); font: 600 .76rem/1.15 var(--karte); color: var(--braun-tief); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gipfelname span b { font-weight: 800; color: var(--schwarz); }
.gipfelname.stufe-1 { --h: 56px; }
.gipfelname.stufe-2 { --h: 86px; }
.gipfelname.nur-strich { --h: 9px; }
.gipfelname.rand-l span { transform: translateX(-12px); }
.gipfelname.rand-r span { transform: translateX(calc(-100% + 12px)); }
.gipfelname.unten::before { bottom: auto; top: 3px; height: 14px; }
.gipfelname.unten span { bottom: auto; top: 18px; }
.pano-rose { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: rgba(251, 250, 245, .92); border-top: 1.5px solid var(--schwarz); }
.pano-rose i { position: absolute; top: 0; height: 5px; padding: 8px 0 0 3px; border-left: 1px solid var(--schwarz); font: 600 .75rem/1 var(--karte); font-style: normal; white-space: nowrap; color: var(--tinte); }
.pano-rose i.mittel { height: 9px; }
.pano-rose i.gross { height: 24px; font-weight: 800; font-size: .82rem; color: var(--schwarz); padding-top: 6px; }
.aussicht-text { margin: 14px 0 10px; max-width: 78ch; }
.gipfel summary { display: inline-block; padding: 6px 0; font: 650 .95rem var(--karte); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.gipfel table { max-width: 760px; margin-top: 8px; background: var(--papier); border: 1.5px solid var(--schwarz); }

/* ---------- Rundgang ---------- */
.fuehrung { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: var(--lage); align-items: start; }
.schau { position: relative; height: clamp(340px, 46vw, 700px); border: 1.5px solid var(--schwarz); background: #2A2925; overflow: hidden;
  cursor: grab; touch-action: pan-y; user-select: none; }
.schau.greift { cursor: grabbing; }
.schau canvas, .schau > img { display: block; width: 100%; height: 100%; }
.schau > img { object-fit: cover; }
.schau.voll { position: fixed; inset: 0; z-index: 90; height: auto; border: 0; touch-action: none; }
html.schau-voll { overflow: hidden; }
.schau-marken { position: absolute; inset: 0; pointer-events: none; }
.sprung-marke { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; border: 0; background: none;
  transform: translate(-50%, -50%); pointer-events: auto; }
.sprung-marke i { width: 30px; height: 30px; border: 2px solid var(--schwarz); border-radius: 50%; background: var(--papier);
  box-shadow: 0 0 0 2px var(--papier), 0 0 0 3.5px var(--schwarz); position: relative; }
.sprung-marke i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--schwarz); }
.sprung-marke span { padding: 2px 8px 3px; border: 1.5px solid var(--schwarz); background: var(--papier); font: 650 .82rem/1.15 var(--karte); white-space: nowrap; }
.sprung-marke:hover i, .sprung-marke:focus-visible i { background: var(--rot); border-color: var(--rot); box-shadow: 0 0 0 2px var(--papier), 0 0 0 3.5px var(--rot); }
.sprung-marke:hover i::after, .sprung-marke:focus-visible i::after { background: var(--papier); }
.schau-ort { position: absolute; left: 12px; top: 12px; margin: 0; padding: 6px 12px 7px; border: 1.5px solid var(--schwarz); background: var(--papier);
  font: 800 clamp(1rem, 1.6vw, 1.3rem)/1.1 var(--karte); font-stretch: 84%; }
.schau-knoepfe { position: absolute; right: 12px; top: 12px; display: flex; align-items: center; gap: 8px; }
.schau-knoepfe .knopf svg { width: 14px; height: 14px; }
.schau-knoepfe .knopf[aria-pressed="true"] { background: var(--rot); border-color: var(--rot); color: var(--papier); }
.schau-richtung { position: absolute; left: 12px; right: 12px; top: 50%; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  transform: translateY(-50%); pointer-events: none; }
.schau-richtung > * { pointer-events: auto; }
.schau-richtung .knopf { order: 1; }
.schau-richtung .rund:last-of-type { order: 2; }
.schau-ausbau { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); display: flex; flex-wrap: wrap; gap: 4px 18px;
  padding: 6px 9px 8px; border: 1.5px solid var(--schwarz); background: var(--papier); }
.schau-ausbau fieldset { margin: 0; }
.schau-ausbau legend { margin-bottom: 3px; font-size: .74rem; }
.schau-ausbau .wahlreihe { flex-wrap: nowrap; gap: 4px; }
.schau-ausbau .wahl span { min-height: 34px; padding: 3px 8px 4px; font-size: .8rem; flex-direction: column; align-items: flex-start; gap: 1px; white-space: nowrap; }
.schau-ausbau .wahl small { font: 500 .72rem/1.1 var(--karte); }
.fuehrung-seite { display: grid; gap: 14px; min-width: 0; }
.lageplan { position: relative; border: 1.5px solid var(--schwarz); background: #fff; aspect-ratio: 1 / 1; overflow: hidden; }
.lageplan svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.blickkegel { fill: rgba(196, 18, 47, .28); stroke: var(--rot); stroke-width: .5; }
.standpunkt { position: absolute; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; transform: translate(-50%, -50%);
  border: 1.5px solid var(--schwarz); border-radius: 50%; background: var(--papier); font: 800 .74rem/1 var(--karte); box-shadow: 0 0 0 1.5px var(--papier); }
.standpunkt::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.standpunkt:hover { background: var(--schwarz); color: var(--papier); }
.standpunkt[aria-current] { background: var(--rot); border-color: var(--rot); color: var(--papier); }
.raumliste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.raumliste button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 3px 8px 3px 3px; border: 1.5px solid var(--schwarz);
  background: var(--papier); text-align: left; font: 600 .84rem/1.15 var(--karte); }
.raumliste img { width: 36px; height: 36px; flex: none; object-fit: cover; border: 1px solid var(--schwarz); }
.raumliste b { font-weight: 800; }
.raumliste button:hover { background: var(--papier-tief); }
.raumliste li[aria-current] button { background: var(--schwarz); color: var(--papier); }
  border-top: 1.5px solid var(--schwarz); background: #2A2925; }
  border-left: 2px dashed var(--papier); }
  font: 800 clamp(1rem, 1.8vw, 1.4rem)/1.1 var(--karte); font-stretch: 84%; }

/* ---------- Ausbau ---------- */
.ausbau { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); gap: var(--lage); align-items: start; }
.ausbau-bild { position: sticky; top: calc(var(--nav-h) + 14px); margin: 0; }
.ausbau-bild img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 70%; border: 1.5px solid var(--schwarz); background: var(--papier-tief); }
.ausbau-bild figcaption { padding-top: 8px; font-size: .95rem; }
.gruppe { margin: 0; padding: 12px 0 6px; border-top: 1.5px solid var(--schwarz); }
.gruppe legend { float: left; width: 100%; margin: 0 0 4px; font: 800 1.02rem var(--karte); color: var(--schwarz); }
.option { clear: both; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--haar); cursor: pointer; }
.option:hover .option-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.option-preis { font: 700 .95rem/1.5 var(--karte); white-space: nowrap; font-variant-numeric: tabular-nums; }
.option input:checked ~ .option-name { font-weight: 700; }
.gruppe .hilfe { clear: both; padding-top: 6px; }
.rechnung { margin: 18px 0 6px; }
.rechnung div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 7px 0; border-bottom: 1px solid var(--haar); }
.rechnung dt small { display: block; font-size: .78rem; color: var(--tinte); }
.rechnung dd { margin: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rechnung .zwischen { border-top: 1.5px solid var(--schwarz); font-weight: 700; }
.rechnung .summe { border-top: 1.5px solid var(--schwarz); border-bottom: 3px double var(--schwarz); font: 800 1.22rem/1.2 var(--karte); font-stretch: 86%; }

/* ---------- Tragbarkeit ---------- */
.rechner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--lage); align-items: start; grid-template-areas: "eingabe ergebnis" "alle alle"; }
.rechner-eingabe { grid-area: eingabe; }
.rechner-eingabe .balken { margin-top: 2px; }
.rechner-ergebnis { grid-area: ergebnis; padding: clamp(16px, 2.4vw, 28px); border: 1.5px solid var(--schwarz); background: var(--papier); }
.grosswerte { margin: 12px 0 16px; border-top: 1.5px solid var(--schwarz); }
.grosswerte p { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; margin: 0; padding: 9px 0; border-bottom: 1px solid var(--haar); }
.grosswerte p > span { font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.grosswerte b { font: 800 clamp(1.35rem, 2.3vw, 1.9rem)/1.1 var(--karte); font-stretch: 78%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.urteil { margin: 0 0 14px; padding: 10px 12px; border: 1.5px solid var(--schwarz); font-weight: 600; }
.urteil.gut { border-color: var(--gruen-tief); background: var(--wald); }
.urteil.knapp { border-color: var(--rot); background: var(--rot-hell); }
td.gut { color: var(--gruen-tief); font-weight: 700; }
td.knapp { color: var(--rot-tief); font-weight: 600; }
.rechner-alle { grid-area: alle; min-width: 0; }
.rechner-alle table, .verkauf table { background: var(--papier); border: 1.5px solid var(--schwarz); }
.rechner-alle tr.gewaehlt { outline: 2px solid var(--rot); outline-offset: -2px; }
.rechner-alle .textknopf { font: 800 1rem var(--karte); }
.rechner-alle .st { display: inline; }
.rechner-alle .urteil-kurz { display: none; }
.urteil-kurz.gut { color: var(--gruen-tief); }
.urteil-kurz.knapp { color: var(--rot-tief); }

/* ---------- Umgebung ---------- */
.umgebung { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 26px var(--lage); align-items: start;
  grid-template-areas: "daten daten" "karte ziele" "quellen quellen"; }
.bundesdaten { grid-area: daten; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1.5px solid var(--schwarz); border-bottom: 1.5px solid var(--schwarz); }
.bundesdaten div { padding: 14px 18px 16px 0; }
.bundesdaten div + div { padding-left: 18px; border-left: 1px solid rgba(26, 26, 26, .3); }
.bundesdaten dt { font: 650 .8rem var(--karte); color: var(--tinte); }
.bundesdaten dd { margin: 0; }
.bundesdaten dd b { display: block; margin: 2px 0 6px; font: 800 clamp(1.5rem, 2.5vw, 2.15rem)/1.05 var(--karte); font-stretch: 78%; }
.bundesdaten dd span { display: block; font-size: .88rem; line-height: 1.45; }
.bundesdaten dd .herkunft { margin-top: 6px; }
.ortskarte { grid-area: karte; margin: 0; position: sticky; top: calc(var(--nav-h) + 14px); }
.ortskarte-bild { position: relative; aspect-ratio: 4 / 3; border: 1.5px solid var(--schwarz); overflow: hidden; background: var(--papier-tief); }
.ortskarte-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ziel { position: absolute; display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 4px; transform: translate(-50%, -50%);
  border: 1.5px solid var(--schwarz); background: var(--papier); font: 800 .72rem/1 var(--karte); color: var(--schwarz); box-shadow: 0 0 0 1.5px var(--papier); }
.ziel-oev { border-radius: 11px; background: var(--gelb); }
.ziel-see { border-radius: 11px; background: var(--blau-tief); color: var(--papier); }
.ziel-einkauf { background: #EBD9BF; }
.ziel-gesundheit { background: #CFE3B0; }
.ziel.betont { outline: 3px solid var(--rot); z-index: 2; }
.ziel.fern { border-style: dashed; }
.zielliste .ziel { position: static; transform: none; display: inline-grid; box-shadow: none; }
.ziel-neubau { position: absolute; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -100%); color: var(--rot); pointer-events: none; }
.ziel-neubau b { order: -1; padding: 0 5px; background: var(--papier); border: 1px solid var(--rot); font: 800 .76rem/1.4 var(--karte); color: var(--rot-tief); }
.ziel-neubau svg { width: 26px; height: 26px; fill: var(--papier); }
.ziele { grid-area: ziele; display: grid; gap: 18px; min-width: 0; }
.zielliste caption { padding-bottom: 5px; text-align: left; font: 800 1rem var(--karte); border-bottom: 1.5px solid var(--schwarz); }
.zielliste td, .zielliste th { padding: 5px 6px; vertical-align: middle; }
.zielliste td:first-child { width: 34px; padding-left: 0; }
.zielliste td.r { white-space: nowrap; }
#umgebung-quellen { grid-area: quellen; }

/* ---------- Merkliste, Anfrage ---------- */
.rollbar { overflow-x: auto; border: 1.5px solid var(--schwarz); background: var(--papier); }
.vergleichstabelle th, .vergleichstabelle td { padding: 8px 12px; min-width: 10.5em; }
.vergleichstabelle tbody th { position: sticky; left: 0; min-width: 11.5em; background: var(--papier); font: 400 .86rem var(--text); color: var(--tinte); }
.vergleichstabelle thead th { font: 800 1.1rem var(--karte); color: var(--schwarz); white-space: nowrap; }
.vergleichstabelle thead th .rund { margin-left: 10px; vertical-align: middle; }
.vergleichstabelle thead td { position: sticky; left: 0; background: var(--papier); border-bottom: 1.5px solid var(--schwarz); }
.vergleichstabelle tbody tr:last-child > * { border-bottom: 0; }
.anfrage { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--lage); align-items: start; }
.feldpaar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.anfrage-form .knopf { margin-top: 16px; }
.eintraege, .verkauf-anfragen > div { padding: clamp(14px, 1.8vw, 22px); border: 1.5px solid var(--schwarz); background: var(--papier); }
.verkauf-anfragen > div { padding-top: 4px; padding-bottom: 4px; }
.eintrag { padding: 13px 0; border-top: 1px solid var(--haar); }
.eintraege h3 + div > .eintrag:first-child, .verkauf-anfragen .eintrag:first-child { border-top: 0; }
.eintrag p { margin: 0 0 3px; }
.eintrag.erledigt p, .eintrag.erledigt .stempel span { color: #6B675F; }
.eintrag.erledigt .stempel b { color: #6B675F; border-color: #6B675F; }
.stempel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 6px !important; }
.stempel b { padding: 2px 9px 3px; border: 2px solid var(--rot); color: var(--rot-tief); font: 800 .9rem/1.1 var(--karte); letter-spacing: .02em; }
.stempel span { font-size: .8rem; color: var(--tinte); }
.stempel .herkunft.eigen { color: var(--rot-tief); }
.eintraege-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 16px 0 0; }

/* ---------- Übersicht des Verkäufers ---------- */
.verkauf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px var(--lage); align-items: start;
  grid-template-areas: "stand stand" "liste anfragen"; }
.verkauf h2 { font: 800 1.4rem/1.1 var(--karte); font-stretch: 86%; margin-bottom: 12px; }
.verkaufsstand { grid-area: stand; }
.verkauf-liste { grid-area: liste; min-width: 0; overflow-x: auto; }
.verkauf-anfragen { grid-area: anfragen; min-width: 0; }
.standband { display: flex; height: 28px; border: 1.5px solid var(--schwarz); }
.standband span + span { border-left: 1.5px solid var(--schwarz); }
.stand-verkauft { background: repeating-linear-gradient(45deg, #3A3A38 0 5px, #77756F 5px 8px); }
.stand-reserviert { background: repeating-linear-gradient(45deg, var(--gelb) 0 6px, #5C4A12 6px 8.5px); }
.stand-frei { background: var(--gruen); }
.verkauf select { width: auto; padding: 6px 32px 6px 10px; font-size: .92rem; }

/* ---------- Blattfuss ---------- */
.blattfuss { position: relative; border-top: 1.5px solid var(--schwarz); background: var(--papier-tief); padding: clamp(40px, 6vw, 80px) var(--rand) clamp(36px, 5vw, 64px); }
.blattfuss.mit-relief { background: linear-gradient(rgba(251, 250, 245, .8), rgba(251, 250, 245, .8)), url("../karten/relief_1800.webp") center / cover; }
.blattfuss-innen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px var(--lage); max-width: var(--breite); margin-inline: auto; }
.blattfuss h2 { margin-bottom: 10px; font: 800 1.2rem var(--karte); font-stretch: 88%; }
.blattfuss ul { margin: 0; padding: 0; list-style: none; }
.blattfuss li, .blattfuss p { font-size: .9rem; line-height: 1.5; }
.blattfuss li { padding: 5px 0; border-bottom: 1px solid var(--haar); }

/* ---------- Auswahlleiste und Assistent ---------- */
.leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: var(--leiste-h); padding: 8px max(var(--rand), env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(var(--rand), env(safe-area-inset-left));
  background: var(--papier); border-top: 1.5px solid var(--schwarz); }
.leiste-wahl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 14px; min-width: 0; margin: 0; font-size: .9rem; line-height: 1.3; }
.leiste-wahl b { font: 800 1.02rem var(--karte); white-space: nowrap; }
.leiste-preis { font: 700 .98rem var(--karte); font-variant-numeric: tabular-nums; white-space: nowrap; }
.leiste-knoepfe { display: flex; align-items: center; gap: 8px; flex: none; }
.leiste-merk, .leiste-frage { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 11px; border: 1.5px solid var(--schwarz); background: var(--papier);
  color: var(--schwarz); font: 650 .9rem/1 var(--karte); text-decoration: none; }
.leiste-merk:hover, .leiste-frage:hover, .leiste-frage[aria-expanded="true"] { background: var(--schwarz); color: var(--papier); }
.leiste-merk svg, .leiste-frage svg { width: 18px; height: 18px; }
.leiste .knopf-klein { height: 40px; }

.assistent { position: fixed; right: var(--rand); bottom: calc(var(--leiste-h) + 14px + env(safe-area-inset-bottom)); z-index: 50; display: flex; flex-direction: column;
  width: min(410px, calc(100vw - 2 * var(--rand))); max-height: min(640px, calc(100svh - var(--leiste-h) - var(--nav-h) - 34px));
  border: 1.5px solid var(--schwarz); background: var(--papier); box-shadow: 0 0 0 5px var(--papier), 0 0 0 6px var(--schwarz); }
.assistent > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-bottom: 1.5px solid var(--schwarz); }
.assistent h2 { font: 800 1.05rem var(--karte); }
.assistent-art { margin: 0; padding: 8px 14px; border-bottom: 1px solid var(--haar); background: var(--papier-tief); font-size: .78rem; line-height: 1.4; color: var(--tinte); }
.assistent-verlauf { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; min-height: 120px; padding: 12px 14px; overflow-y: auto; overscroll-behavior: contain; }
.beitrag { max-width: 92%; padding: 8px 12px 9px; border: 1.5px solid var(--schwarz); font-size: .94rem; line-height: 1.45; }
.beitrag p { margin: 0 0 4px; }
.beitrag p:last-child { margin-bottom: 0; }
.beitrag .klein { color: var(--tinte); font-size: .78rem; margin-top: 6px; }
.beitrag-frage { align-self: flex-end; background: var(--schwarz); color: var(--papier); }
.beitrag-assistent { align-self: flex-start; }
.assistent-vorschlaege { display: flex; flex-direction: column; padding: 0 14px 8px; }
.vorschlag { padding: 8px 0; border: 0; border-top: 1px solid var(--haar); background: none; text-align: left; font: 500 .9rem/1.3 var(--text); color: var(--blau-tief); }
.vorschlag:hover { text-decoration: underline; text-underline-offset: .2em; }
.assistent form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1.5px solid var(--schwarz); }
#assistent-frage { flex: 1; min-width: 0; padding: 8px 10px; font-size: .95rem; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1099px) {
  .finder { grid-template-columns: minmax(0, 1fr); }
  .finder-bild { position: static; }
}
@media (max-width: 899px) {
  :root { --leiste-h: 58px; }
  .rahmen { font-size: .74rem; }
  .blatt { height: auto; overflow: visible; display: flex; flex-direction: column; --kante: 10px; --kartenhoehe: clamp(300px, 48svh, 440px); background: var(--papier); padding-bottom: 6px; }
  .blatt-karte { position: relative; inset: auto; height: var(--kartenhoehe); border-bottom: 1.5px solid var(--schwarz); }
  .blatt-rand { bottom: auto; height: var(--kartenhoehe); }
  .blatt-links { position: static; width: auto; display: block; }
  .legende-kurz, .randangaben { position: static; width: auto; max-width: none; margin: 0 var(--rand); }
  .blattkopf { margin: 0 var(--rand); padding: 22px 0 0; border: 0; background: none; }
  .blattkopf h1 { font-size: clamp(3rem, 15.5vw, 5rem); }
  .ausschnitt { display: block; margin: 20px var(--rand) 0; box-shadow: none; }
  .ausschnitt img { aspect-ratio: 16 / 9; height: auto; }
  .legende-kurz { margin-top: 16px; }
  .randangaben { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; margin-bottom: 14px; }
  .randangaben div { border-top: 1px solid var(--haar); }
  .randangaben div:nth-child(-n+2) { border-top: 0; }
  .randangaben div:nth-child(odd) { border-left: 0; }
  .randangaben dd { font-size: 1.12rem; white-space: normal; }
  .blatt-quelle { top: calc(var(--kartenhoehe) - 30px); right: 16px; }
  .blattnav-name { display: none; }
  .abschnitt-kopf, .finder, .datenblatt, .ausbau, .anfrage, .rechner, .umgebung, .sonne, .verkauf { grid-template-columns: minmax(0, 1fr); }
  .rechner { grid-template-areas: "eingabe" "ergebnis" "alle"; }
  .fuehrung { grid-template-columns: minmax(0, 1fr); }
  .schau { height: clamp(320px, 62svh, 560px); margin-inline: calc(var(--rand) * -1); border-left: 0; border-right: 0; }
  .schau-knoepfe .knopf span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .raumliste { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .raumliste li { flex: none; }
  .lageplan { max-width: 420px; }
  .schau-ausbau { left: 0; right: 0; bottom: 0; max-width: none; border-left: 0; border-right: 0; border-bottom: 0; overflow-x: auto; flex-wrap: nowrap; }
  .umgebung { grid-template-areas: "daten" "karte" "ziele" "quellen"; }
  .sonne { grid-template-areas: "wahl" "bild" "bahn" "stunden"; }
  .verkauf { grid-template-areas: "stand" "liste" "anfragen"; }
  .finder-bild, .ausbau-bild, .ortskarte { position: static; }
  .legende { padding: 12px 10px; }
  .filter { gap: 0 12px; }
  .wohnliste { font-size: .86rem; table-layout: fixed; }
  .wohnliste th, .wohnliste td { padding: 5px 2px; overflow-wrap: anywhere; }
  .wohnliste thead th:nth-child(1) { width: 18%; }
  .wohnliste thead th:nth-child(2) { width: 18%; }
  .wohnliste thead th:nth-child(3) { width: 9%; }
  .wohnliste thead th:nth-child(4) { width: 16%; }
  .wohnliste thead th:nth-child(5) { width: 29%; }
  .wohnliste thead th:nth-child(6) { width: 10%; }
  .wohnliste .nr { gap: 5px; font-size: .95rem; }
  .wohnliste .preis { font-size: .8rem; }
  .wohnliste thead th { font-stretch: 76%; }
  .wohnliste .merk { width: 32px; }
  .db-werte div { grid-template-columns: 8.2em minmax(0, 1fr); }
  .bundesdaten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bundesdaten div { padding: 12px 12px 14px 0; }
  .bundesdaten div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .bundesdaten div:nth-child(n+3) { border-top: 1px solid rgba(26, 26, 26, .3); }
  .bundesdaten div:nth-child(even) { padding-left: 12px; }
  .rechner-alle, .gipfel { overflow-x: auto; }
  .rechner-alle .breit, .rechner-alle .breit2 { display: none; }
  .rechner-alle .urteil-kurz { display: block; font-weight: 700; }
  .rechner-alle .st { display: block; }
  .rechner-alle th, .rechner-alle td { padding: 7px 5px; }
  .vergleichstabelle { table-layout: fixed; width: calc((var(--n, 2) + 1) * 7.15em); min-width: 100%; }
  .vergleichstabelle th, .vergleichstabelle td { min-width: 0; padding: 7px 8px; overflow-wrap: break-word; hyphens: auto; }
  .vergleichstabelle tbody th { min-width: 0; font-size: .8rem; }
  .vergleichstabelle thead th { font-size: 1rem; white-space: normal; }
  .blattfuss-innen { grid-template-columns: minmax(0, 1fr); }
  .stunden { --name: 5.4em; --wert: 3.4em; }
  .leiste-wahl span:not(.leiste-preis) { display: none; }
  .leiste-wahl { flex-direction: column; gap: 0; }
}
@media (max-width: 520px) {
  .feldpaar { grid-template-columns: minmax(0, 1fr); }
  .db-raeume { columns: 1; }
  .bundesdaten { grid-template-columns: minmax(0, 1fr); }
  .bundesdaten div:nth-child(n) { padding-left: 0; border-left: 0; }
  .bundesdaten div:nth-child(n+2) { border-top: 1px solid rgba(26, 26, 26, .3); }
  .leiste-frage span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .filter-regler { grid-column: 1 / -1; }
  .umschalter .lang { display: none; }
  .umschalter .kurz { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
