/* Weinhang 19 · Vom Plan zum Licht */

@font-face { font-family: "Newsreader"; src: url("assets/newsreader-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("assets/newsreader-var-kursiv.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("assets/hanken-grotesk-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("assets/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --kalk: #ece8e1;
  --kalk-2: #e3ded5;
  --kalk-3: #d6d0c5;
  --oliv: #1f211c;
  --oliv-2: #2a2c26;
  --oliv-tief: #161713;
  --messing: #a8874f;
  --messing-hell: #d4b98a;
  --messing-dunkel: #7a5f30;
  --text-2: #4a4c44;
  --linie: rgba(31, 33, 28, .18);
  --linie-hell: rgba(236, 232, 225, .22);
  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "Hanken", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex", "IBM Plex Mono", Consolas, monospace;
  --rand: clamp(16px, 4vw, 64px);
  --kopf-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--kopf-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--kalk);
  color: var(--oliv);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(38px, 5vw, 76px); line-height: 1.02; }
h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; }
p { margin: 0; }
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: .01em; }
.klein { font-size: 13px; }
:focus-visible { outline: 2px solid var(--messing); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--oliv); color: var(--kalk); padding: 10px 14px; }
.sprung:focus { top: 12px; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: .02em;
  text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.knopf-messing { background: var(--messing); color: var(--oliv-tief); }
.knopf-messing:hover { background: var(--messing-hell); }
.knopf-hell { background: var(--kalk); color: var(--oliv); }
.knopf-hell:hover { background: #fff; }
.knopf-rahmen-hell { background: transparent; color: var(--kalk); border-color: rgba(236,232,225,.55); }
.knopf-rahmen-hell:hover, .knopf-rahmen-hell[aria-pressed="true"] { border-color: var(--messing); color: var(--messing-hell); }
.textlink { background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; font-size: 16px; }
.textlink.hell { color: var(--kalk); }
.textlink:hover { text-decoration-color: var(--messing); }

/* Kopfzeile */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--kopf-h);
  background: var(--kalk); color: var(--oliv); border-bottom: 1px solid var(--linie);
  transition: background-color .35s, color .35s, border-color .35s;
}
.js .kopf:not(.fest) { background: transparent; color: var(--kalk); border-bottom-color: transparent; }
.kopf-innen { height: 100%; display: flex; align-items: center; gap: 22px; padding: 0 var(--rand); }
.marke { font-family: var(--serif); font-size: 23px; font-weight: 400; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.zurueck { font-family: var(--mono); text-decoration: none; opacity: .72; white-space: nowrap; }
.zurueck:hover { opacity: 1; }
.hauptnav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.hauptnav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.hauptnav ul a { text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 1px solid transparent; }
.hauptnav ul a:hover { border-bottom-color: var(--messing); }
.nav-zurueck { display: none; }
.nav-cta { min-height: 40px; padding: 0 18px; }
.menue-knopf { display: none; margin-left: auto; background: none; border: 1px solid currentColor; border-radius: 0; height: 40px; padding: 0 14px; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.menue-striche { width: 16px; height: 9px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }

@media (max-width: 1100px) {
  .menue-knopf { display: inline-flex; }
  .zurueck { display: none; }
  .hauptnav {
    position: absolute; left: 0; right: 0; top: var(--kopf-h);
    background: var(--kalk); color: var(--oliv); border-bottom: 1px solid var(--linie);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--rand) 22px;
    display: none;
  }
  .hauptnav.offen { display: flex; }
  .hauptnav ul { flex-direction: column; gap: 0; }
  .hauptnav ul a { display: block; padding: 13px 0; border-bottom: 1px solid var(--linie); font-size: 17px; }
  .nav-zurueck { display: block; }
  .nav-zurueck a { font-family: var(--mono); font-size: 14px !important; }
  .nav-cta { margin-top: 16px; min-height: 48px; }
  .js .kopf:has(.hauptnav.offen) { background: var(--kalk); color: var(--oliv); }
}

/* Erster Bildschirm */
.held { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #1a2030; color: var(--kalk); }
.held-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; max-width: none; }
.held::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(14,18,26,.55) 0%, rgba(14,18,26,0) 22%),
              linear-gradient(to top, rgba(12,13,10,.88) 0%, rgba(12,13,10,.55) 26%, rgba(12,13,10,0) 52%); }
.held-text { position: absolute; inset: 0; z-index: 2; }
.held-name {
  position: absolute; left: var(--rand); top: calc(var(--kopf-h) + 1.5vh);
  font-size: min(15.5vw, 25vh); line-height: .9; font-weight: 250; letter-spacing: -.035em;
}
.held-unten { position: absolute; left: var(--rand); right: var(--rand); bottom: max(28px, 5vh); max-width: 760px; }
.held-fakten { font-size: 14px; color: var(--messing-hell); margin-bottom: 14px; }
.held-satz { font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.3; max-width: 34em; }
.held-satz em { font-style: italic; }
.held-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 24px; }
@media (max-width: 700px) {
  .held-name { font-size: min(20vw, 15vh); }
  .held-name span { display: block; }
  .held-fakten { font-size: 13px; text-shadow: 0 1px 10px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.8); }
}

/* Abschnittsköpfe */
.abschnitt-kopf { padding: 0 var(--rand); max-width: 1440px; margin: 0 auto 48px; }
.abschnitt-kopf h2 { max-width: 14em; }
.abschnitt-kopf p { margin-top: 20px; max-width: 38em; font-size: 18px; color: var(--text-2); }

/* 1 · Grundriss wird Raum */
.grundriss { position: relative; background: var(--kalk); }
.gr-buehne { position: relative; overflow: hidden; padding: calc(var(--kopf-h) + 40px) var(--rand) 60px; }
.gr-szene { position: relative; }
.gr-plan { position: relative; width: min(904px, 100%); aspect-ratio: 904 / 800; margin: 32px auto; }
.gr-plan svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gr-wand .wand-form { fill: var(--oliv); }
.gr-foto { display: none; }
.gr-kopf { position: relative; z-index: 3; }
.gr-schritte { list-style: none; display: flex; gap: 18px; margin: 0 0 14px; padding: 0; font-size: 13px; color: var(--text-2); }
.gr-schritte li { padding-bottom: 4px; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.gr-schritte li.ist { color: var(--oliv); border-bottom-color: var(--messing); }
.gr-titel { font-size: clamp(34px, 4.2vw, 64px); line-height: 1.02; }
.gr-zeile { margin-top: 12px; font-size: 15px; }
@media (max-width: 700px) { .gr-zeile { font-size: 13px; } }
.gr-fuss { position: relative; z-index: 3; }
.gr-raeume { list-style: none; margin: 0; padding: 0; font-size: 13px; width: 250px; }
.gr-raeume li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--linie); padding: 4px 0; }
.gr-hinweis { margin-top: 12px; font-size: 14px; color: var(--text-2); max-width: 26em; transition: opacity .3s; }

.js .grundriss { height: 240vh; }
.js .gr-buehne { position: sticky; top: 0; height: 100vh; padding: 0; }
.js .gr-szene { position: absolute; inset: 0; z-index: 1; perspective: 1400px; }
.js .gr-plan { position: absolute; width: 904px; height: 800px; margin: 0; aspect-ratio: auto; transform-style: preserve-3d; will-change: transform; }
.js .gr-plan svg { width: 904px; height: 800px; }
.js .gr-plan .gr-wand { transform-origin: 0 0; }
.js .gr-foto { display: block; position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none; }
.js .gr-foto img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.js .gr-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(16,17,14,.62) 0%, rgba(16,17,14,0) 34%), linear-gradient(to top, rgba(16,17,14,.6) 0%, rgba(16,17,14,0) 30%); }
.js .gr-kopf { position: absolute; left: var(--rand); top: calc(var(--kopf-h) + 28px); right: var(--rand); }
.js .gr-fuss { position: absolute; left: var(--rand); bottom: 28px; right: var(--rand); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.js .gr-titel { max-width: 7.5em; font-size: clamp(34px, 3.6vw, 56px); }
.ruhig .grundriss { height: auto; }
.ruhig .gr-buehne { position: relative; height: 100vh; min-height: 640px; }
.gr-buehne.hell .gr-kopf, .gr-buehne.hell .gr-fuss { color: var(--kalk); }
.gr-buehne.hell .gr-schritte, .gr-buehne.hell .gr-hinweis { color: rgba(236,232,225,.8); }
.gr-buehne.hell .gr-schritte li.ist { color: var(--kalk); }
.gr-buehne.hell .gr-raeume li { border-top-color: var(--linie-hell); }
.gr-kopf, .gr-fuss { transition: color .4s; }
@media (max-width: 700px) {
  .js .gr-fuss { flex-direction: column; align-items: flex-start; bottom: 18px; }
  .gr-raeume { width: 100%; max-width: 320px; columns: 2; column-gap: 18px; font-size: 12px; }
  .gr-raeume li { break-inside: avoid; }
  .gr-hinweis { font-size: 13px; }
}
@media (max-height: 800px) and (min-width: 701px) {
  .gr-raeume { font-size: 12px; }
}

/* 2 · Tageslicht */
.licht { position: relative; background: var(--oliv-tief); color: var(--kalk); }
.licht-ausschnitt { position: relative; overflow: hidden; height: min(56.25vw, 92vh); }
.licht-rahmen {
  position: absolute; left: 50%; top: 50%;
  width: max(100%, calc(min(56.25vw, 92vh) * 16 / 9)); aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
}
.licht-rahmen img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.lt { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lt-mul { mix-blend-mode: multiply; opacity: 0; }
.lt-scr { mix-blend-mode: screen; opacity: 0; }
.lt-sonne { mix-blend-mode: screen; }
.lt-innen {
  mix-blend-mode: screen; opacity: 0;
  background:
    radial-gradient(ellipse 9% 12% at 24.5% 43%, rgba(255,196,120,.95), rgba(255,170,90,0) 100%),
    radial-gradient(ellipse 22% 26% at 25% 52%, rgba(214,130,60,.55), rgba(214,130,60,0) 100%),
    radial-gradient(ellipse 4% 3% at 5.2% 10.5%, rgba(255,214,160,.9), rgba(255,214,160,0) 100%),
    radial-gradient(ellipse 3% 2.4% at 16.5% 12%, rgba(255,214,160,.85), rgba(255,214,160,0) 100%),
    radial-gradient(ellipse 3% 2.4% at 66.5% 13.5%, rgba(255,214,160,.8), rgba(255,214,160,0) 100%),
    radial-gradient(ellipse 30% 22% at 24% 18%, rgba(190,120,60,.45), rgba(190,120,60,0) 100%),
    radial-gradient(ellipse 34% 26% at 45% 82%, rgba(170,105,50,.4), rgba(170,105,50,0) 100%),
    linear-gradient(to right, rgba(150,90,40,.35) 0%, rgba(150,90,40,.2) 44%, rgba(150,90,40,0) 50%);
}
.licht-pult { padding: 32px var(--rand) 48px; max-width: 560px; }
.licht-titel { font-size: clamp(34px, 3.4vw, 48px); }
.licht-satz { margin-top: 10px; font-size: 16px; color: rgba(236,232,225,.86); }
.licht-satz .mono { color: var(--messing-hell); white-space: nowrap; }
.licht-regelung { display: flex; align-items: flex-end; gap: 18px; margin-top: 18px; color: var(--kalk); }
.sonnenbahn { width: 200px; height: auto; flex: none; overflow: visible; }
.uhr { font-size: 34px; line-height: 1; padding-bottom: 6px; font-variant-numeric: tabular-nums; }
.regler-beschriftung { display: block; margin-top: 18px; font-size: 13px; color: rgba(236,232,225,.75); }
.regler { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 4px 0 0; cursor: pointer; }
.regler::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--messing) var(--fuell, 50%), rgba(236,232,225,.3) var(--fuell, 50%)); }
.regler::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; border-radius: 50%; background: var(--kalk); border: 5px solid var(--messing); }
.regler::-moz-range-track { height: 2px; background: rgba(236,232,225,.3); }
.regler::-moz-range-progress { height: 2px; background: var(--messing); }
.regler::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--kalk); border: 5px solid var(--messing); }
.regler:focus-visible { outline: 2px solid var(--messing-hell); outline-offset: 4px; }
.regler-skala { display: flex; justify-content: space-between; font-size: 12px; color: rgba(236,232,225,.6); padding: 0 3px; }
.licht-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.licht-klein { font-size: 13px; color: rgba(236,232,225,.7); max-width: 24em; line-height: 1.45; }
@media (min-width: 1000px) {
  .licht-pult { position: absolute; left: var(--rand); bottom: 4vh; width: 390px; padding: 26px 28px 24px; background: rgba(22,23,19,.93); z-index: 2; }
  .licht-titel { font-size: 36px; }
}
@media (min-width: 1000px) and (max-height: 820px) {
  .licht-pult { bottom: 2.5vh; padding: 18px 22px 18px; }
  .sonnenbahn { width: 150px; }
  .licht-regelung { margin-top: 10px; }
  .regler-beschriftung { margin-top: 10px; }
  .licht-knoepfe { margin-top: 12px; }
}
@media (max-width: 760px) {
  .licht-ausschnitt { height: 62vh; height: 62svh; }
  .licht-rahmen { width: auto; height: 100%; transform: translate(-60%, -50%); }
}

/* 3 · Wohnungen */
.wohnungen { padding: 120px 0 110px; }
.wo-raster { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr); gap: 44px; padding: 0 var(--rand); max-width: 1440px; margin: 0 auto; align-items: start; }
.wo-bild { position: sticky; top: calc(var(--kopf-h) + 20px); }
.wo-rahmen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #1a2030; }
.wo-rahmen img, .wo-rahmen svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wo-dunkel path { fill: rgba(9, 10, 8, .5); opacity: 0; transition: opacity .45s; }
.wo-dunkel path.an { opacity: 1; }
.wo-glanz { mix-blend-mode: screen; }
.wo-glanz polygon { fill: rgb(255, 196, 128); opacity: 0; transition: opacity .45s; }
.wo-glanz polygon.an { opacity: .3; }
.wo-flaeche { fill: transparent; stroke: transparent; stroke-width: 2; vector-effect: non-scaling-stroke; cursor: pointer; transition: stroke .3s; }
.wo-flaeche.an { stroke: var(--messing-hell); }
.wo-flaeche.leer { fill: url(#schraffur); }
.wo-marke { position: absolute; left: 1%; transform: translateY(-50%); font-size: 12px; padding: 3px 7px; background: rgba(20,21,18,.78); color: var(--kalk); pointer-events: none; transition: background-color .3s, color .3s; }
.wo-marke.an { background: var(--messing); color: var(--oliv-tief); }
.wo-marke.leer { text-decoration: line-through; opacity: .7; }
.wo-legende { margin-top: 12px; font-size: 14px; color: var(--text-2); }

.wo-geschosse { display: flex; flex-direction: column; border-top: 1px solid var(--linie); }
.geschoss-knopf {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  background: none; border: 0; border-bottom: 1px solid var(--linie); padding: 14px 4px 14px 16px; text-align: left; cursor: pointer;
  position: relative; transition: background-color .25s;
}
.geschoss-knopf::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background: transparent; transition: background-color .25s; }
.geschoss-knopf:hover { background: rgba(31,33,28,.04); }
.geschoss-knopf[aria-pressed="true"] { background: var(--kalk-2); }
.geschoss-knopf[aria-pressed="true"]::before { background: var(--messing); }
.geschoss-knopf[aria-pressed="true"] .g-name { font-weight: 450; }
.g-name { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.g-info { font-size: 12px; color: var(--text-2); text-align: right; }
.geschoss-knopf.leer .g-name { color: var(--text-2); }

.wo-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 26px; }
.filter-titel { font-size: 13px; color: var(--text-2); margin-right: 4px; }
.filter-knopf { min-width: 44px; height: 44px; padding: 0 12px; background: transparent; border: 1px solid var(--linie); border-radius: 0; cursor: pointer; font-size: 14px; transition: background-color .2s, color .2s, border-color .2s; }
.filter-knopf:hover { border-color: var(--oliv); }
.filter-knopf[aria-pressed="true"] { background: var(--oliv); color: var(--kalk); border-color: var(--oliv); }
.filter-frei { margin-left: 8px; }
.filter-frei[aria-pressed="true"]::before { content: "✓ "; }

.wo-liste-titel { font-size: 30px; }
.wo-treffer { font-size: 13px; color: var(--text-2); margin: 4px 0 12px; }
.wo-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.wo-zeile { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .5s cubic-bezier(.3,.7,.2,1), opacity .4s; }
.wo-zeile.aus { grid-template-rows: 0fr; opacity: 0; }
.wo-zeile-innen { min-height: 0; overflow: hidden; }
.wo-karte { display: grid; grid-template-columns: 76px 1fr auto; grid-template-areas: "top daten status" "top preis knopf"; column-gap: 14px; row-gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--linie); align-items: baseline; }
.wo-top { grid-area: top; font-family: var(--mono); font-size: 18px; }
.wo-daten { grid-area: daten; font-family: var(--mono); font-size: 14px; }
.wo-preis { grid-area: preis; font-family: var(--mono); font-size: 15px; }
.wo-status { grid-area: status; font-family: var(--mono); font-size: 12px; display: inline-flex; align-items: center; gap: 7px; justify-self: end; }
.wo-status::before { content: ""; width: 10px; height: 10px; border: 1px solid var(--oliv); flex: none; }
.wo-status.frei::before { background: var(--messing); border-color: var(--messing-dunkel); }
.wo-status.reserviert::before { background: linear-gradient(135deg, var(--oliv) 50%, transparent 50%); }
.wo-status.verkauft::before { background: linear-gradient(45deg, transparent 45%, var(--oliv) 45%, var(--oliv) 55%, transparent 55%); }
.wo-zeile.verkauft .wo-preis, .wo-zeile.verkauft .wo-daten, .wo-zeile.verkauft .wo-top { color: #77786e; }
.wo-zeile.verkauft .wo-preis { text-decoration: line-through; text-decoration-thickness: 1px; }
.wo-merken { grid-area: knopf; justify-self: end; background: none; border: 0; padding: 2px 0; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.wo-merken[aria-pressed="true"] { text-decoration: none; color: var(--messing-dunkel); }
.wo-merken[aria-pressed="true"]::before { content: "✓ "; }
.wo-leer { margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: 20px; }
.wo-vorgemerkt { margin-top: 18px; font-size: 15px; padding: 12px 14px; border-left: 3px solid var(--messing); background: var(--kalk-2); }
@media (max-width: 1000px) {
  .wo-raster { grid-template-columns: 1fr; gap: 28px; }
  .wo-bild { position: static; }
}
@media (max-width: 520px) {
  .wo-karte { grid-template-columns: 66px 1fr auto; column-gap: 10px; }
  .wo-top { font-size: 16px; }
  .geschoss-knopf { flex-direction: column; align-items: flex-start; gap: 2px; }
  .g-info { text-align: left; }
  .wo-daten { font-size: 13px; }
  .g-name { font-size: 19px; }
  .wo-marke { font-size: 11px; padding: 2px 5px; }
}

/* 4 · Lage */
.lage { background: var(--oliv); color: var(--kalk); padding: 120px 0 100px; }
.lage .abschnitt-kopf p { color: rgba(236,232,225,.82); }
.lage-schalter { display: flex; flex-wrap: wrap; gap: 0; padding: 0 var(--rand); max-width: 1440px; margin: 0 auto 22px; }
.modus { background: transparent; border: 1px solid var(--linie-hell); color: var(--kalk); min-height: 44px; padding: 0 18px; font-size: 14px; cursor: pointer; margin-right: -1px; transition: background-color .2s, color .2s; }
.modus:hover { background: rgba(236,232,225,.08); }
.modus[aria-pressed="true"] { background: var(--kalk); color: var(--oliv); border-color: var(--kalk); position: relative; z-index: 1; }
.pano { position: relative; height: clamp(360px, 68vh, 700px); overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; background: #2a2c24; }
.pano.zieht { cursor: grabbing; }
.pano:focus-visible { outline-offset: -4px; }
.pano-bild { position: absolute; left: 0; top: 0; width: 160%; }
.pano-bild img { width: 100%; height: auto; max-width: none; pointer-events: none; }
.js .pano-bild { will-change: transform; }
.ort { position: absolute; width: 0; height: 0; --lang: calc(64px + var(--h) * 52px); }
.ort::before { content: ""; position: absolute; left: -0.5px; bottom: 0; width: 1px; height: var(--lang); background: rgba(236,232,225,.85); }
.ort::after { content: ""; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--kalk); box-shadow: 0 0 0 3px rgba(20,21,18,.35); }
.ort-text { position: absolute; left: 0; bottom: var(--lang); transform: translateX(-50%); white-space: nowrap; display: flex; flex-direction: column; align-items: center; padding: 6px 10px 6px; background: rgba(20,21,18,.8); line-height: 1.25; }
.ort-name { font-size: 14px; }
.ort-zeit { font-size: 14px; color: var(--messing-hell); display: inline-flex; align-items: baseline; gap: .35em; }
.tacho { display: inline-flex; height: 1.25em; overflow: hidden; }
.ziffer { display: inline-block; width: .6em; height: 1.25em; overflow: hidden; transition: width .5s, opacity .5s; text-align: center; }
.ziffer.leer { width: 0; opacity: 0; }
.band { display: flex; flex-direction: column; transition: transform .8s cubic-bezier(.25,.8,.2,1); }
.band span { height: 1.25em; line-height: 1.25em; }
.pano-leiste { display: flex; align-items: center; gap: 16px; padding: 16px var(--rand) 0; max-width: 1440px; margin: 0 auto; }
.pano-pfeil { background: transparent; border: 1px solid var(--linie-hell); color: var(--kalk); min-height: 44px; padding: 0 16px; cursor: pointer; font-size: 14px; flex: none; }
.pano-pfeil:hover { border-color: var(--messing); }
.kompass { position: relative; flex: 1; height: 32px; overflow: hidden; border-top: 1px solid var(--linie-hell); }
.kompass-band { position: absolute; left: 0; top: 0; height: 100%; width: 160%; }
.kompass-band span { position: absolute; top: 8px; transform: translateX(-50%); font-size: 12px; color: rgba(236,232,225,.75); }
.kompass-band span::before { content: ""; position: absolute; left: 50%; top: -9px; width: 1px; height: 6px; background: rgba(236,232,225,.6); }
.kompass-mitte { position: absolute; left: 50%; top: 0; width: 1px; height: 10px; background: var(--messing); }
@media (max-width: 700px) {
  .ort { --lang: calc(40px + var(--h) * 50px); }
  .ort-name, .ort-zeit { font-size: 12px; }
  .ort-text { padding: 4px 7px; }
  .pano { height: 58vh; height: 58svh; }
  .pano-pfeil { padding: 0 10px; font-size: 13px; }
}

/* 5 · Musterschublade */
.ausstattung { padding: 120px 0 110px; background: var(--kalk-2); overflow-x: clip; } /* die gedrehte letzte Platte ragt am Handy sonst 4 px über den Rand */
.au-raster { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 56px; padding: 0 var(--rand); max-width: 1440px; margin: 0 auto; align-items: center; }
.kasten { --ph: 300px; position: relative; height: calc(var(--ph) * 1.62); }
.kasten-reihe { display: flex; gap: 12px; flex-wrap: wrap; }
.platte {
  position: relative; width: calc(var(--ph) * .688); height: var(--ph); padding: 0; border: 0; border-radius: 0; cursor: pointer;
  background-color: #b9a88d; background-image: url("assets/material.webp"); background-repeat: no-repeat;
  background-size: var(--bs) auto; background-position: var(--bx) var(--by);
}
.platte-schild { position: absolute; left: 10px; top: 10px; font-size: 11px; background: var(--kalk); color: var(--oliv); padding: 3px 6px; white-space: nowrap; }
.kasten-front { display: none; }

.js .kasten { perspective: 1500px; perspective-origin: 40% 20%; }
.js .kasten-reihe { display: block; position: absolute; left: 4%; bottom: 13%; width: 92%; height: var(--ph); transform-style: preserve-3d; }
.js .platte {
  position: absolute; left: 0; bottom: 0; transform-style: preserve-3d; transform-origin: 50% 100%;
  transform: translate3d(var(--x, 0px), var(--y, 0px), var(--z, 0px)) rotateY(var(--ry, 50deg)) rotateZ(var(--rz, 0deg));
  transition: transform .7s cubic-bezier(.22,.8,.2,1), box-shadow .7s;
  box-shadow: 0 2px 0 rgba(0,0,0,.08);
}
.js .platte::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 100%; transform-origin: 0 50%; transform: rotateY(90deg); background: var(--kante, #9c8a6e); filter: brightness(.8); }
.js .platte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,18,12,.0), rgba(20,18,12,.32)); opacity: 1; transition: opacity .7s; pointer-events: none; }
.js .platte.gezogen { box-shadow: 0 46px 50px -24px rgba(20,18,12,.55), 0 10px 20px -10px rgba(20,18,12,.4); }
.js .platte.gezogen::after { opacity: .15; }
.js .platte:focus-visible { outline-offset: 4px; }
.js .kasten-front {
  display: flex; align-items: flex-end; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: 2;
  background:
    linear-gradient(to bottom, rgba(255,240,215,.28) 0, rgba(255,240,215,.28) 2px, rgba(18,15,10,.25) 3px, rgba(18,15,10,.55) 100%),
    url("assets/material.webp") 2% 12% / 380% auto no-repeat, #5a4630;
  box-shadow: 0 24px 40px -20px rgba(20,18,12,.5);
  padding: 0 18px 14px; pointer-events: none;
}
.kasten-front span { font-size: 11px; color: var(--oliv-tief); background: linear-gradient(135deg, #c9ab72, #a8874f 60%, #8d6f3c); padding: 4px 9px; }
.au-angabe { border-top: 1px solid var(--linie); padding-top: 22px; min-height: 300px; }
.au-nr { font-size: 13px; color: var(--text-2); }
.au-angabe h3 { font-size: clamp(32px, 3.2vw, 46px); margin-top: 8px; }
.au-daten { margin-top: 12px; font-size: 14px; color: var(--messing-dunkel); }
#au-text { margin-top: 14px; max-width: 30em; }
.au-wo { margin-top: 16px; font-size: 13px; color: var(--text-2); border-top: 1px solid var(--linie); padding-top: 12px; }
.au-wechsel { animation: au-ein .45s ease both; }
@keyframes au-ein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .au-raster { grid-template-columns: 1fr; gap: 28px; }
  .kasten { --ph: 250px; }
  .au-angabe { min-height: 0; }
}
@media (max-width: 420px) { .kasten { --ph: 220px; } }
@media (max-height: 800px) and (min-width: 901px) { .kasten { --ph: 270px; } }

/* Haus und Energie */
.haus { padding: 120px 0 100px; }
.schnitt { margin: 0 auto 56px; padding: 0 var(--rand); max-width: 1440px; }
.schnitt { overflow-x: auto; }
.schnitt svg { width: 100%; min-width: 580px; max-width: 900px; height: auto; display: block; }
.zahlen { margin: 0 auto; padding: 0 var(--rand); max-width: 1440px; }
.zahlen div { display: grid; grid-template-columns: minmax(170px, 260px) minmax(0, 38em); gap: 8px 32px; padding: 18px 0; border-top: 1px solid var(--linie); align-items: baseline; }
.zahlen div:last-child { border-bottom: 1px solid var(--linie); }
.zahlen dt { font-size: 22px; }
.zahlen dd { margin: 0; color: var(--text-2); }
@media (max-width: 640px) { .zahlen div { grid-template-columns: 1fr; } }

/* 6 · Besichtigung */
.besichtigung { background: var(--oliv); color: var(--kalk); padding: 120px var(--rand) 120px; }
.be-innen { max-width: 760px; margin: 0 auto; }
.be-kopf p { margin-top: 18px; font-size: 18px; color: rgba(236,232,225,.82); max-width: 36em; }
.formular { margin-top: 44px; display: grid; gap: 26px; }
.feld { border: 0; margin: 0; padding: 0; min-width: 0; }
.feld > label, .feld legend { display: block; font-size: 13px; font-family: var(--mono); color: rgba(236,232,225,.75); margin-bottom: 8px; padding: 0; }
.optional { color: rgba(236,232,225,.5); }
.formular input[type="text"], .formular input[type="tel"], .formular input[type="email"], .formular input[type="date"], .formular select {
  width: 100%; min-height: 50px; background: transparent; color: var(--kalk); border: 0; border-bottom: 1px solid rgba(236,232,225,.4); border-radius: 0;
  font: inherit; font-size: 18px; padding: 8px 2px; color-scheme: dark;
}
.formular select option { background: var(--oliv); color: var(--kalk); }
.formular input:focus, .formular select:focus { outline: none; border-bottom-color: var(--messing); box-shadow: 0 1px 0 var(--messing); }
.formular input:focus-visible, .formular select:focus-visible { outline: 2px solid var(--messing); outline-offset: 2px; }
.formular [aria-invalid="true"] { border-bottom-color: #e0a07a; }
.wahl { display: flex; flex-wrap: wrap; gap: 10px; }
.wahl label { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border: 1px solid rgba(236,232,225,.28); cursor: pointer; min-height: 48px; transition: border-color .2s, background-color .2s; }
.wahl label:hover { border-color: rgba(236,232,225,.6); }
.wahl label:has(input:checked) { border-color: var(--messing); background: rgba(168,135,79,.14); }
.wahl input { accent-color: var(--messing); margin: 4px 0 0; width: 16px; height: 16px; }
.wahl span { display: flex; flex-direction: column; line-height: 1.3; }
.wahl small { font-size: 12px; color: rgba(236,232,225,.6); margin-top: 2px; }
.fehler { color: #f0b48e; font-size: 15px; }
.absenden { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 8px; }
.absenden .klein { color: rgba(236,232,225,.6); }
.bestaetigung { margin-top: 44px; padding: 34px 0; border-top: 1px solid var(--linie-hell); border-bottom: 1px solid var(--linie-hell); }
.bestaetigung:focus { outline: none; }
.be-danke { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(26px, 3vw, 38px); line-height: 1.25; max-width: 24em; }
.bestaetigung .textlink { color: var(--kalk); margin-top: 22px; }

/* Fußbereich */
.fuss { background: var(--kalk); padding: 72px var(--rand) 26px; border-top: 1px solid var(--linie); }
.fuss-innen { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; font-size: 16px; }
.fuss-marke { font-family: var(--serif); font-size: 30px; margin-bottom: 8px; }
.fuss-label { font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.fuss-block p + p { margin-top: 8px; }
.fuss-hinweis { grid-column: 1 / -1; font-size: 14px; color: var(--text-2); max-width: 62em; border-top: 1px solid var(--linie); padding-top: 22px; }
.fuss-zeile-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; font-size: 15px; }
.fuss-zeile-links .knopf { margin-left: auto; }
@media (max-width: 700px) {
  .fuss-innen { grid-template-columns: 1fr; }
  .fuss-zeile-links .knopf { margin-left: 0; }
}

/* Bewegung aus */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

