:root {
  --bg: #f5f3ee;
  --bg-warm: #ece6db;
  --bg-dark: #14181c;
  --bg-deep: #0c0f12;
  --ink: #14181c;
  --ink-soft: #4a5057;
  --muted: #73787e;
  --line: #d8d2c3;
  --accent: #c18a49;
  --accent-deep: #9a6b34;
  --on-dark: #f5f3ee;
  --on-dark-muted: #a8a298;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', -apple-system, sans-serif;

  --max: 1400px;
  --pad-x: clamp(1.25rem, 4vw, 4rem);

  --t-fast: 220ms;
  --t-med: 480ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* scroll-behavior intentionally not set — Lenis handles smooth scroll */
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ========== SHARED ========== */
.eyebrow,
.section__label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.section__index {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--accent);
  margin-right: 0.6em;
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3rem;
}

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin-bottom: 1.5rem;
}

.section__title em {
  font-style: italic;
  color: var(--accent-deep);
}

.section__lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 3rem;
}

.section {
  /* Vertikaler Abschnittsabstand um ~30 % reduziert (vorher clamp(5rem,10vw,9rem)) */
  padding: clamp(3.5rem, 7vw, 6.3rem) var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem var(--pad-x);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom-color: var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav__brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  text-indent: -2px;
  line-height: 1;
}

.nav__links {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.nav__links a {
  position: relative;
  padding-bottom: 2px;
  transition: color var(--t-fast) var(--ease);
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.65rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.nav__cta:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Hamburger button (mobile only) */
.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav__toggle-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease), top var(--t-fast) var(--ease);
}

.nav__toggle-bar:nth-child(1) { top: 14px; }
.nav__toggle-bar:nth-child(2) { top: 21px; }
.nav__toggle-bar:nth-child(3) { top: 28px; }

.nav__toggle.is-open .nav__toggle-bar:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.nav__toggle.is-open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle.is-open .nav__toggle-bar:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* Mobile slide-down menu panel */
.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--bg);
  padding: 5.5rem var(--pad-x) 2.5rem;
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(20, 24, 28, 0.25);
  display: none;
}

.nav-mobile.is-open {
  transform: translateY(0);
}

.nav-mobile__links {
  display: flex;
  flex-direction: column;
}

.nav-mobile__links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav-mobile__index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0;
  font-weight: 400;
  flex: 0 0 auto;
}

.nav-mobile__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.nav-mobile__contact a {
  color: var(--ink-soft);
}

html.nav-open,
html.nav-open body {
  overflow: hidden;
}

@media (max-width: 720px) {
  .nav {
    padding: 0.8rem var(--pad-x);
  }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__brand-text { display: none; }
  .nav__toggle { display: block; }
  .nav-mobile { display: block; }
}

/* ========== BUTTON ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 1rem 1.6rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn__icon {
  display: inline-block;
  transition: transform var(--t-fast) var(--ease);
}

.btn:hover .btn__icon {
  transform: translateX(3px);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 8rem var(--pad-x) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--on-dark);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* promote to its own GPU layer so parallax doesn't repaint the page */
  transform: translateZ(0);
  contain: paint;
}

.hero__media img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: center 40%;
  transform: translate3d(0, 0, 0) scale(1.06);
  will-change: transform;
  backface-visibility: hidden;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(12, 15, 18, 0.05), rgba(12, 15, 18, 0.05)),
    linear-gradient(180deg, rgba(12, 15, 18, 0.15) 0%, rgba(12, 15, 18, 0) 35%),
    linear-gradient(180deg, rgba(12, 15, 18, 0) 50%, rgba(12, 15, 18, 0.7) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero .eyebrow {
  color: var(--on-dark);
  margin-bottom: 1.2rem;
  display: inline-block;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero__title span {
  display: block;
}

.hero__title .serif em {
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 0 1px rgba(0, 0, 0, 0.4);
}

.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--on-dark);
  max-width: 60ch;
  margin-bottom: 2rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.hero__actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero .btn--primary {
  background: var(--bg);
  color: var(--ink);
}

.hero .btn--primary:hover {
  background: var(--accent);
  color: var(--bg);
}

.hero .btn--ghost {
  color: var(--on-dark);
  border-color: var(--on-dark);
}

.hero .btn--ghost:hover {
  background: var(--on-dark);
  color: var(--ink);
}

.hero__meta {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 243, 238, 0.25);
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
}

.meta__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--on-dark-muted);
  margin-bottom: 0.4rem;
}

.meta__value {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 400;
}

@media (max-width: 720px) {
  .hero__meta {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ========== MARQUEE ========== */
.marquee {
  background: var(--ink);
  color: var(--on-dark);
  padding: 1.4rem 0;
  overflow: hidden;
  border-top: 1px solid var(--ink);
}

.marquee__track {
  display: flex;
  width: max-content;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 300;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  flex-shrink: 0;
}

.marquee__track .dot {
  color: var(--accent);
}

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ========== PROJECT ========== */
.project__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem 5rem;
  align-items: start;
}

.project__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  grid-column: 1 / 2;
}

.project__copy {
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.project__chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.project__chips li {
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.project__chips li:hover {
  background: var(--ink);
  color: var(--bg);
}

@media (max-width: 900px) {
  .project__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .project__title,
  .project__copy {
    grid-column: 1 / -1;
  }
}

/* ========== STATS ========== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.stat:last-child {
  border-right: none;
}

.stat__number {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  color: var(--ink);
}

.stat__number .prefix {
  font-size: 0.5em;
  font-style: italic;
  color: var(--ink-soft);
  margin-right: 0.2em;
}

.stat__number .thousands {
  margin-left: -0.15em;
}

.stat__number sup {
  font-size: 0.4em;
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.stat__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 600;
}

.stats__note {
  grid-column: 1 / -1;
  padding: 1.2rem clamp(1rem, 3vw, 2rem) 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ========== UNITS ========== */
.units {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.unit {
  background: var(--bg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

/* "Anfragen"-Link behaelt normalen Link-Cursor */
.unit .unit__cta { cursor: pointer; }

.unit:hover,
.unit:focus-within {
  background: var(--bg-warm);
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(17, 48, 43, 0.14);
  z-index: 50;
}

.unit__thumb {
  position: relative;
  display: block;
  width: 100%;
  min-height: 110px;
  margin: 0 0 0.4rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.unit__thumb img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 180px;
  margin: 0 auto;
  transition: transform var(--t-fast) var(--ease);
}

.unit:hover .unit__thumb img {
  transform: scale(1.05);
}

.unit__thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Immer sichtbarer Hinweis, dass das Vorschaubild anklickbar ist */
.unit__thumb-hint {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(20, 24, 28, 0.85);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
  transition: opacity var(--t-fast) var(--ease);
}

.unit:hover .unit__thumb-hint {
  opacity: 0;
}

/* Hover: Klick-Ansicht (beide Grundrisse) vergroessert an der Stelle des Vorschaubilds */
.unit__hoverview {
  position: absolute;
  left: 50%;
  top: 1.6rem;
  transform: translateX(-50%) scale(0.86);
  transform-origin: top center;
  width: 186%;
  max-width: 680px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 26px 64px rgba(20, 24, 28, 0.32);
  padding: 13px;
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.unit:hover .unit__hoverview,
.unit:focus-within .unit__hoverview {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Gleiche Anordnung wie im Modal: Einzelgrundriss links (~40%), Geschossplan rechts groesser + Beschriftung */
/* Feste Hoehe -> ALLE Vorschauen haben denselben Umriss, Plaene werden mittig eingepasst (object-fit: contain) */
.unit__hoverview-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  height: 210px;
}
.unit__hoverview-plan {
  display: block;
  flex: 0 0 40%;
  max-width: 40%;
  height: 100%;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.unit__hoverview-fig {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.unit__hoverview-fig img {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.unit__hoverview-fig figcaption {
  flex: 0 0 auto;
  margin-top: 6px;
  text-align: center;
  font-size: 0.58rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}
/* Wohnungsdaten in der Vorschau (lesbar, damit die Karte als Ganzes "groesser" erscheint) */
.unit__hoverview-data {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.unit__hoverview-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.1;
  color: var(--ink);
}
.unit__hoverview-meta {
  margin-top: 5px;
  font-size: 0.82rem;
  color: var(--muted);
}
.unit__hoverview-meta strong { color: var(--ink); font-weight: 700; }
.unit__hoverview-price {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
}
.unit__hoverview-hint {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent-deep);
}

@media (max-width: 720px) {
  .unit__hoverview { display: none; }
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact__form-status {
  grid-column: 1 / -1;
  margin: 0.4rem 0 0;
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--muted);
}
.contact__form-status[data-state="ok"]    { color: #1f7a3a; }
.contact__form-status[data-state="error"] { color: #b1322b; }

.contact__form-wrap {
  position: relative;
}

.contact__success[hidden] { display: none !important; }

.contact__success {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1.4rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  animation: contactSuccessIn 0.55s var(--ease) both;
}

.contact__success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  margin-bottom: 0.6rem;
}

.contact__success-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.contact__success-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.contact__success-text {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36em;
  margin: 0.2rem 0 0;
}

.contact__success-meta {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 36em;
  margin: 0.6rem 0 0;
}

.contact__success-meta a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

@keyframes contactSuccessIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.unit__index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
}

.unit__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.unit__meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.unit__meta strong {
  color: var(--ink);
  font-weight: 600;
}

.unit__price {
  margin-top: 0.6rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.unit__actions {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
}

.unit__floorplan {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.unit__floorplan:hover,
.unit__floorplan:focus-visible {
  background: var(--accent);
  outline: none;
  transform: translateY(-1px);
}

.unit__floorplan svg {
  flex: 0 0 auto;
  opacity: 0.85;
}

.unit__cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.units__note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.units__note + .units__note {
  margin-top: 0.4rem;
}

/* ========== INTERIOR ==========
   Magazine-Layout: links 1 Hero-Bild (2 cols x 2 rows), rechts 2 kleinere
   gestapelt. Alle Zellen haben das gleiche Seitenverhaeltnis ~1.4:1,
   passt fuer horizontale Innenraum-Fotos. */
.interior {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, clamp(180px, 18vw, 260px));
  gap: 1rem;
}

.interior__item {
  position: relative;
  overflow: hidden;
  background: var(--bg-warm);
  border-radius: 4px;
}

.interior__item--hero {
  grid-row: span 2;
}

.interior__item--placeholder {
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--line);
  background: transparent;
}

.interior__item--image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 720px) {
  .interior {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    aspect-ratio: auto;
  }
  .interior__item {
    aspect-ratio: 4/3;
  }
  .interior__item:nth-child(1),
  .interior__item:nth-child(3) {
    grid-row: auto;
    grid-column: auto;
    aspect-ratio: 4/3;
  }
  .interior__item--placeholder {
    min-height: 0;
  }
}

/* ========== ANSICHTEN (Vorder-/Rueckansicht + Lageplan) ========== */
/* Vorderansicht = gross (links), Lageplan = mittel, Rueckansicht = klein (rechts gestapelt) */
.views {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  grid-template-areas:
    "front plan"
    "front rear";
  gap: 1.5rem;
  align-items: start;
}

.views__item {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.views__item img {
  display: block;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.views__item figcaption {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.views__item--front { grid-area: front; }
.views__item--plan  { grid-area: plan; }
.views__item--rear  { grid-area: rear; }

/* Vorderansicht fuellt die volle Hoehe der beiden rechten Kacheln -> groesstes Bild */
.views__item--front img { flex: 1 1 auto; min-height: 0; height: 100%; }
.views__item--plan img  { height: 248px; }   /* mittel */
.views__item--rear img  { height: 150px; }   /* kleinstes Bild */

@media (max-width: 760px) {
  .views {
    grid-template-columns: 1fr;
    grid-template-areas:
      "front"
      "plan"
      "rear";
    gap: 1.2rem;
  }
  .views__item--front img { height: 240px; }
  .views__item--plan img  { height: 210px; }
  .views__item--rear img  { height: 170px; }
}

/* ========== LOCATION ========== */
.location {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: stretch;
}

.location__copy {
  display: flex;
  flex-direction: column;
}

.location__copy .section__title {
  margin-bottom: 1rem;
}

.location__facts {
  margin-top: 2rem;
}

.location__facts li {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.location__facts li span:first-child {
  color: var(--ink);
  font-weight: 500;
}

.location__facts li span:last-child {
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
}

.location__map {
  position: relative;
  min-height: 400px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.location__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.2) contrast(1.05);
}

@media (max-width: 900px) {
  .location {
    grid-template-columns: 1fr;
  }
  .location__map {
    min-height: 320px;
  }
}

/* ========== ENERGY ========== */
.energy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.energy__table {
  width: 100%;
  border-collapse: collapse;
}

.energy__table tr {
  border-bottom: 1px solid var(--line);
}

.energy__table th,
.energy__table td {
  padding: 1.4rem 0;
  text-align: left;
  vertical-align: baseline;
}

.energy__table th {
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  width: 40%;
}

.energy__table td {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--ink);
}

.energy__note {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* ========== CONTACT ========== */
.section--contact {
  background: var(--bg-dark);
  color: var(--on-dark);
  max-width: none;
  margin: 0;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section--contact .section__head {
  border-bottom-color: rgba(245, 243, 238, 0.15);
}

.section--contact .section__index {
  color: var(--accent);
}

.section--contact .section__label {
  color: var(--on-dark-muted);
}

.contact__title {
  color: var(--on-dark);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__channel {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(245, 243, 238, 0.15);
  transition: border-color var(--t-fast) var(--ease);
}

a.contact__channel:hover {
  border-bottom-color: var(--accent);
}

.contact__channel-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--on-dark-muted);
  margin-bottom: 0.4rem;
}

.contact__channel-value {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.contact__channel-meta {
  font-size: 0.85rem;
  color: var(--on-dark-muted);
  margin-top: 0.3rem;
}

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field span {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  color: var(--on-dark-muted);
}

.field input,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(245, 243, 238, 0.3);
  padding: 0.7rem 0;
  font: inherit;
  color: var(--on-dark);
  font-size: 1rem;
  font-family: var(--sans);
  transition: border-color var(--t-fast) var(--ease);
  resize: none;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.contact__form .btn {
  grid-column: 1 / -1;
  justify-self: start;
  background: var(--bg);
  color: var(--ink);
  margin-top: 0.5rem;
}

.contact__form .btn:hover {
  background: var(--accent);
  color: var(--bg);
}

@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
  }
  .contact__form {
    grid-template-columns: 1fr;
  }
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-deep);
  color: var(--on-dark-muted);
  padding: 2rem var(--pad-x);
  font-size: 0.8rem;
}

.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__row + .footer__row {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 243, 238, 0.08);
}

.footer__row--small {
  font-size: 0.75rem;
}

.footer a:hover {
  color: var(--accent);
}

/* ========== ANIMATIONS ========== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 0.13s; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 0.21s; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 0.29s; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 0.37s; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 0.45s; }
[data-reveal-stagger].is-visible > *:nth-child(n+7) { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee__track { animation: none; }
}

/* ========== MODAL (Grundriss-Lightbox) ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.modal.is-open {
  display: flex;
  animation: modalIn 0.25s var(--ease);
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 15, 18, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-radius: 8px;
  max-width: min(1280px, 100%);
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
}

.modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(245, 243, 238, 0.92);
  color: var(--ink);
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.modal__close:hover {
  background: var(--ink);
  color: var(--bg);
  transform: scale(1.05);
}

.modal__head {
  padding: 1.5rem 4rem 1rem 1.8rem;
  border-bottom: 1px solid var(--line);
}

.modal__index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}

.modal__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.modal__meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.modal__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem 1.5rem;
  background: var(--bg-warm);
  min-height: 280px;
  overflow: auto;
}

/* margin:auto zentriert den Inhalt, wenn er passt, und erlaubt sauberes
   Scrollen (ohne Klipp-Fehler), wenn er hoeher als der Body ist */
.modal__body > .modal__loading,
.modal__body > .modal__placeholder { margin: auto; }

.modal__image {
  max-width: 100%;
  max-height: 60vh;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}

.modal__loading {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.modal__placeholder {
  text-align: center;
  max-width: 32ch;
  color: var(--ink-soft);
}

.modal__placeholder-mark {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.modal__placeholder strong {
  color: var(--ink);
}

.modal__placeholder p + p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
}

/* Einzelgrundriss + Geschoss-Lageplan gestapelt */
/* Desktop: Einzelgrundriss links, Geschossplan rechts nebeneinander */
.modal__plans {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
}

.modal__plans .modal__image {
  max-height: 72vh;
  max-width: 40%;
}

.modal__overview {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.modal__overview img {
  max-width: 100%;
  max-height: 66vh;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}

.modal__overview figcaption {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
}

/* Schmale Bildschirme: Pläne wieder untereinander stapeln */
@media (max-width: 860px) {
  .modal__plans {
    flex-direction: column;
    gap: 1rem;
  }
  .modal__plans .modal__image {
    max-height: 40vh;
    max-width: 100%;
  }
  .modal__overview {
    flex: none;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
  .modal__overview img {
    max-height: 34vh;
  }
}

.modal__foot {
  padding: 1rem 1.8rem 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.modal__foot .btn {
  padding: 0.75rem 1.4rem;
  font-size: 0.85rem;
}

html.modal-open,
html.modal-open body {
  overflow: hidden;
}

@keyframes modalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ========== MOBILE POLISH (≤720px) ========== */
@media (max-width: 720px) {
  /* Hero kompakter */
  .hero {
    min-height: 88vh;
    padding-top: 6rem;
  }
  .hero__title {
    font-size: clamp(2.6rem, 11vw, 4rem);
  }
  .hero__meta {
    margin-top: 2.2rem;
    gap: 0.8rem;
  }
  .hero__meta-item {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(245, 243, 238, 0.18);
  }
  .hero__meta-item:last-child { border-bottom: 0; }
  .meta__label { margin-bottom: 0; }
  .meta__value { font-size: 1.2rem; }

  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }

  /* Section padding & headings runter */
  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .section__head {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
  }
  .section__title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }
  .section__lead {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  /* Project-Chips wickeln zentriert */
  .project__chips {
    margin-top: 0.5rem;
    padding-top: 1.5rem;
  }
  .project__chips li {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }

  /* Stats: 1 Spalte, sonst bricht 'ab 275.600 €' haesslich */
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1.8rem var(--pad-x);
  }
  .stat:last-child { border-bottom: 0; }
  .stat__number { font-size: clamp(2.2rem, 10vw, 3rem); }

  /* Wohnungen: 1-2 Spalten je nach Breite */
  .units {
    grid-template-columns: 1fr;
  }
  .unit { padding: 1.4rem; }
  .unit__floorplan {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
  }

  /* Energy: Tabelle als Karten-Stack */
  .energy__table tr {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    gap: 0.3rem;
  }
  .energy__table th,
  .energy__table td {
    padding: 0;
    width: auto;
  }
  .energy__table td {
    font-size: 1.15rem;
  }

  /* Location-Facts kompakter */
  .location__facts li {
    padding: 0.8rem 0;
    font-size: 0.9rem;
  }

  /* Contact-Channels: groesseres Tap-Target */
  .contact__channel-value {
    font-size: 1.3rem;
    word-break: break-word;
  }

  /* Footer: vertikal stapeln */
  .footer__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  /* Form Inputs: groesseres Tap-Target + iOS-Zoom verhindern */
  .field input,
  .field textarea {
    font-size: 16px;
    padding: 0.9rem 0;
  }

  /* Modal: Vollbild auf Mobile */
  .modal {
    padding: 0;
  }
  .modal__panel {
    max-width: 100%;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
  }
  .modal__head { padding: 1.2rem 4rem 0.9rem 1.2rem; }
  .modal__title { font-size: 1.4rem; }
  .modal__body { padding: 1rem; }
  .modal__image { max-height: 100%; }
  .modal__foot { padding: 1rem 1.2rem 1.4rem; }

  /* Bei offenem Mobile-Menue: Nav-Hintergrund opak */
  .nav.nav--menu-open {
    background: var(--bg);
    border-bottom-color: var(--line);
  }
}

/* Sehr schmale Geraete (<380px) */
@media (max-width: 380px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .section__title { font-size: 1.7rem; }
}
