/* ==========================================================================
   Am Brunnenzelg – Stylesheet
   Swiss grid, grotesk typography, restrained palette.
   ========================================================================== */

:root {
  --paper: #f6f5f2;
  --paper-2: #edebe6;
  --white: #ffffff;
  --ink: #161615;
  --ink-2: #45443f;
  --muted: #8a877f;
  --line: #dcdad4;
  --dark: #1b1b19;
  --dark-2: #262624;
  --on-dark: #ecebe7;
  --on-dark-muted: #94918a;
  --on-dark-line: rgba(236, 235, 231, .16);
  --accent: #8b6f52;            /* bronze, from the metal roof */

  --ok: #3f6b4e;
  --hold: #a8782e;
  --sold: #9a4a3c;

  --display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --col-gap: clamp(16px, 2vw, 28px);
  --section: clamp(88px, 12vw, 176px);
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .21, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 400;
  font-size: clamp(15.5px, .35vw + 14px, 17px);
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 4.4vw, 4.1rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); letter-spacing: -0.025em; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }

.lead {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.2rem, 1.5vw, 1.45rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 1.2em;
}
.muted { color: var(--muted); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section) 0; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.grid-12 > * { grid-column: 1 / -1; }

/* Section head: rule, numbered label, title on the 4th column */
.sec-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  border-top: 1px solid var(--ink);
  padding-top: 20px;
  margin-bottom: clamp(48px, 7vw, 104px);
}
.sec-label {
  grid-column: 1 / -1;
  font-family: var(--text); font-size: .82rem; font-weight: 500; letter-spacing: 0;
  margin: 0 0 28px;
}
.sec-num { display: inline-block; min-width: 2.6em; color: var(--muted); font-variant-numeric: tabular-nums; }
.sec-title { grid-column: 1 / -1; }
.sec-title h2 { max-width: 18ch; }
.sec-title .lead { margin-top: 28px; max-width: 40ch; color: var(--ink-2); }
@media (min-width: 960px) {
  .sec-label { grid-column: 1 / span 3; margin: 0; }
  .sec-title { grid-column: 4 / -1; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 0;
  font-family: var(--text); font-size: .9rem; font-weight: 500; letter-spacing: 0;
  text-decoration: none; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn svg, .link-arrow svg, .btn-row svg, .unit-pager svg {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square;
  transition: transform .35s var(--ease);
}
.btn:hover svg, .link-arrow:hover svg, .btn-row:hover svg { transform: translateX(3px); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--paper-2); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--accent); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .92rem; font-weight: 500; text-decoration: none;
  padding-bottom: 4px; border-bottom: 1px solid currentColor;
}
.link-arrow:hover { color: var(--accent); }
.link-arrow-light { color: var(--on-dark); }
.link-arrow-light:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.site-header.is-solid,
.site-header.is-open {
  background: rgba(246, 245, 242, .92);
  color: var(--ink);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.wordmark { display: inline-flex; align-items: baseline; gap: 14px; text-decoration: none; color: inherit; }
.wordmark-name { font-family: var(--display); font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; }
.wordmark-place {
  font-size: .78rem; font-weight: 400; opacity: .7;
  padding-left: 14px; border-left: 1px solid currentColor; line-height: 1;
}

.main-nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.main-nav a {
  font-size: .88rem; font-weight: 400; text-decoration: none;
  position: relative; padding: 6px 0;
}
.nav-num { font-size: .68rem; opacity: .55; margin-right: 6px; font-variant-numeric: tabular-nums; vertical-align: 1px; }
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.main-nav a:not(.nav-cta):hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }
.nav-cta { border: 1px solid currentColor; padding: 9px 16px !important; transition: background-color .3s, color .3s; }
.site-header:not(.is-solid) .nav-cta:hover { background: #fff; color: var(--ink); }
.site-header.is-solid .nav-cta:hover { background: var(--ink); color: var(--white); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.nav-toggle-bar { position: absolute; left: 11px; right: 11px; height: 1px; background: currentColor; transition: transform .35s var(--ease); }
.nav-toggle-bar:nth-of-type(2) { top: 18px; }
.nav-toggle-bar:nth-of-type(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(3) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100svh - var(--header-h));
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 16px var(--gutter) 40px;
    background: var(--paper); color: var(--ink);
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; }
  .main-nav a {
    font-family: var(--display); font-size: 2rem; font-weight: 300; letter-spacing: -0.03em;
    padding: 16px 0; border-bottom: 1px solid var(--line);
  }
  .main-nav a::after { display: none; }
  .main-nav .nav-num { font-family: var(--text); font-size: .75rem; letter-spacing: 0; vertical-align: 10px; margin-right: 14px; }
  .main-nav .nav-cta { border: 0; border-bottom: 1px solid var(--line); padding: 16px 0 !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; overflow: hidden; background: var(--dark);
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 42%;
  animation: hero-zoom 14s var(--ease) both;
}
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,14,13,.5) 0%, rgba(14,14,13,0) 18%),
    linear-gradient(90deg, rgba(14,14,13,.5) 0%, rgba(14,14,13,.15) 45%, rgba(14,14,13,0) 70%),
    linear-gradient(0deg, rgba(14,14,13,.78) 0%, rgba(14,14,13,.3) 34%, rgba(14,14,13,0) 58%);
}
.hero-content { position: relative; padding-top: 140px; padding-bottom: clamp(40px, 6vh, 72px); }
.hero-label {
  display: flex; align-items: center; gap: 14px;
  font-size: .82rem; font-weight: 500; color: rgba(255,255,255,.85); margin-bottom: 24px;
}
.hero-label::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.hero-title {
  font-size: clamp(3.4rem, 10vw, 9.75rem); font-weight: 300;
  line-height: .92; letter-spacing: -0.05em; margin: 0 0 .22em -0.05em;
}
.hero-lead {
  font-family: var(--display); font-weight: 300; font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  letter-spacing: -0.015em; line-height: 1.35; color: rgba(255,255,255,.9);
  max-width: 30ch; margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-bar { position: relative; border-top: 1px solid rgba(255,255,255,.28); }
.hero-facts {
  display: grid; grid-template-columns: repeat(2, 1fr); margin: 0 auto;
}
.hero-facts > div { padding: 18px 0 22px; }
.hero-facts dt { font-size: .74rem; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.hero-facts dd { margin: 0; font-size: .98rem; }
@media (min-width: 900px) {
  .hero-facts { grid-template-columns: repeat(4, 1fr); column-gap: var(--col-gap); }
  .hero-facts > div { padding: 22px 0 26px; }
  .hero-facts > div + div { border-left: 1px solid rgba(255,255,255,.18); padding-left: var(--col-gap); }
}
@media (max-width: 899px) {
  .hero-facts > div { padding-top: 14px; padding-bottom: 16px; }
  .hero-facts > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
  .hero-facts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.18); }
}

/* ---------- 01 Projekt ---------- */
.projekt-media { margin: 0 0 clamp(48px, 6vw, 88px); }
.projekt-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 60%; }
figcaption { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.projekt-text { max-width: 62ch; }
@media (min-width: 960px) {
  .projekt-text { grid-column: 4 / span 6; }
}

.specs-wrap { margin-top: clamp(64px, 8vw, 120px); }
.specs-title {
  font-family: var(--text); font-size: .82rem; font-weight: 500; letter-spacing: 0;
  padding-top: 20px; border-top: 1px solid var(--ink); margin-bottom: 0;
}
.specs { margin: 0; display: grid; grid-template-columns: 1fr; column-gap: var(--col-gap); }
.specs > div {
  display: grid; grid-template-columns: minmax(110px, 2fr) 3fr; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.specs dt { color: var(--muted); font-size: .88rem; }
.specs dd { margin: 0; }
.specs a { text-decoration: none; border-bottom: 1px solid var(--line); }
.specs a:hover { border-color: var(--ink); }
@media (min-width: 960px) {
  .specs-title { grid-column: 1 / span 3; }
  .specs-wrap .specs { grid-column: 4 / -1; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
  .specs-wrap .specs > div:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 959px) {
  .specs-title { margin-bottom: 8px; }
}

/* ---------- 02 Wohnungen ---------- */
.wohnungen { background: var(--white); }
.units-intro { align-items: end; margin-bottom: clamp(48px, 6vw, 88px); row-gap: 40px; }
.units-lead { max-width: 34ch; margin: 0; color: var(--ink-2); }
.building { margin: 0; width: 100%; max-width: 380px; }
@media (min-width: 960px) {
  .units-lead { grid-column: 4 / span 5; align-self: start; }
  .building { grid-column: 9 / span 4; justify-self: end; }
}
.building svg { width: 100%; height: auto; overflow: visible; }
.b-roof { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: miter; }
.b-ground { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 4; }
.b-unit { cursor: pointer; outline: none; }
.b-unit path, .b-unit rect {
  fill: var(--white); stroke: var(--ink); stroke-width: 1;
  transition: fill .3s var(--ease);
}
.b-unit text { text-anchor: middle; pointer-events: none; transition: fill .3s var(--ease); }
.b-num { font-family: var(--display); font-size: 26px; font-weight: 300; fill: var(--ink); letter-spacing: -0.02em; }
.b-meta { font-family: var(--text); font-size: 11px; fill: var(--muted); }
.b-unit:hover path, .b-unit:hover rect,
.b-unit.is-hot path, .b-unit.is-hot rect,
.b-unit:focus-visible path, .b-unit:focus-visible rect { fill: var(--ink); }
.b-unit:hover text, .b-unit.is-hot text, .b-unit:focus-visible text { fill: var(--white); }
.b-unit[data-status="reserviert"] path, .b-unit[data-status="reserviert"] rect { fill: #f4ecdf; }
.b-unit[data-status="verkauft"] path, .b-unit[data-status="verkauft"] rect { fill: url(#hatch); }
.hatch-line { stroke: var(--line); stroke-width: 1.5; }
.b-common rect { fill: var(--paper); stroke: var(--line); stroke-width: 1; }
.b-common text { text-anchor: middle; }
.b-common-label { font-family: var(--display); font-size: 15px; font-weight: 400; fill: var(--ink-2); }
.b-common-meta { font-family: var(--text); font-size: 10.5px; fill: var(--muted); }

.units-table-wrap { min-width: 0; }
.units-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.units-table th, .units-table td { text-align: left; padding: 20px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.units-table th:first-child, .units-table td:first-child { padding-left: 0; }
.units-table th:last-child, .units-table td:last-child { padding-right: 0; }
.units-table thead th {
  font-size: .78rem; font-weight: 500; color: var(--muted);
  padding-top: 0; padding-bottom: 14px; border-bottom-color: var(--ink);
}
.units-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.units-table tbody th {
  font-family: var(--display); font-size: 1.3rem; font-weight: 400; letter-spacing: -0.02em; white-space: nowrap;
}
.u-num { font-family: var(--text); font-size: .74rem; font-weight: 400; color: var(--muted); margin-right: 14px; letter-spacing: 0; vertical-align: 3px; }
.units-table td { white-space: nowrap; }
.units-table td[data-label="Aussenraum"] { white-space: normal; line-height: 1.5; font-size: .9rem; min-width: 190px; }
.units-table td[data-label="Aussenraum"] .muted { font-size: .84rem; }
.units-table tbody tr { cursor: pointer; transition: background-color .25s var(--ease); }
.units-table tbody tr:hover, .units-table tbody tr.is-hot { background: var(--paper); }
.units-table .cell-action { text-align: right; width: 1%; }
.tag {
  display: inline-block; font-size: .7rem; font-weight: 500;
  padding: 2px 7px; border: 1px solid var(--line); color: var(--muted); margin-left: 6px; vertical-align: 1px;
}
.status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.status[data-status="reserviert"]::before { background: var(--hold); }
.status[data-status="verkauft"]::before { background: var(--sold); }
.status[data-status="verkauft"] { color: var(--muted); }
.btn-row {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 8px 0; font-size: .88rem; font-weight: 500;
  border-bottom: 1px solid var(--ink);
}
.btn-row svg { width: 16px; height: 16px; }
tr:hover .btn-row svg { transform: translateX(3px); }
.table-note { font-size: .8rem; color: var(--muted); margin-top: 16px; }

@media (max-width: 860px) {
  .units-table thead { display: none; }
  .units-table, .units-table tbody, .units-table tr, .units-table th, .units-table td { display: block; }
  .units-table tbody tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px;
    padding: 24px 0; border-bottom: 1px solid var(--line);
  }
  .units-table tbody tr:first-child { border-top: 1px solid var(--ink); }
  .units-table tbody tr:hover { background: none; }
  .units-table th, .units-table td { padding: 0; border: 0; white-space: normal; }
  .units-table .num { text-align: left; }
  .units-table tbody th { grid-column: 1 / -1; font-size: 1.6rem; margin-bottom: 4px; }
  .units-table td::before {
    content: attr(data-label); display: block; font-size: .74rem; color: var(--muted); margin-bottom: 2px;
  }
  .units-table td[data-label="Aussenraum"] { min-width: 0; }
  .units-table .cell-action { grid-column: 1 / -1; text-align: left; width: auto; margin-top: 6px; }
  .units-table .cell-action::before { display: none; }
}

.plans-row { margin-top: clamp(80px, 10vw, 150px); }
.plans-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 32px;
  border-top: 1px solid var(--ink); padding-top: 20px; margin-bottom: 32px;
}
.plan-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--col-gap); }
@media (min-width: 700px) { .plan-cards { grid-template-columns: repeat(3, 1fr); } }
.plan-card { display: block; text-decoration: none; }
.plan-card-img {
  display: block; aspect-ratio: 1 / 1; background: var(--paper); border: 1px solid var(--line);
  padding: 24px; transition: border-color .3s var(--ease);
}
.plan-card-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.plan-card:hover .plan-card-img { border-color: var(--ink); }
.plan-card-text { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; }
.plan-card-text strong { font-family: var(--display); font-size: 1.15rem; font-weight: 400; letter-spacing: -0.015em; }
.plan-card-text span { font-size: .86rem; color: var(--muted); }

/* ---------- 03 Ausbau ---------- */
.ausbau { background: var(--dark); color: var(--on-dark); }
.ausbau .sec-head { border-top-color: var(--on-dark); }
.ausbau .sec-num { color: var(--on-dark-muted); }
.ausbau .sec-title .lead { color: var(--on-dark-muted); }
.features {
  list-style: none; margin: 0 0 clamp(64px, 8vw, 112px); padding: 0;
  display: grid; grid-template-columns: 1fr; column-gap: var(--col-gap);
}
.features li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--on-dark-line); }
.f-num { color: var(--on-dark-muted); font-size: .8rem; min-width: 2.2em; padding-top: 3px; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .features { grid-template-columns: repeat(3, 1fr); margin-left: calc((100% + var(--col-gap)) / 4); }
}

.gallery { display: grid; grid-template-columns: 1fr; gap: 40px var(--col-gap); }
.g-item { margin: 0; }
.g-item a { display: block; overflow: hidden; background: var(--dark-2); cursor: zoom-in; }
.g-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.g-item a:hover img { transform: scale(1.03); }
.g-item figcaption { display: flex; gap: 14px; color: var(--on-dark-muted); font-size: .82rem; margin-top: 12px; }
.g-item figcaption span { min-width: 2.2em; font-variant-numeric: tabular-nums; }
.g-portrait img { aspect-ratio: 4 / 5; }
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .g-lg { grid-column: 1 / -1; }
  .g-lg img { aspect-ratio: 16 / 9; }
}
@media (min-width: 960px) {
  .gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .g-item { grid-column: span 4; }
  .g-lg { grid-column: span 8; }
  .g-lg img, .g-portrait img { aspect-ratio: auto; height: clamp(320px, 36vw, 560px); }
}
.disclaimer { font-size: .78rem; color: var(--on-dark-muted); margin-top: 48px; max-width: 80ch; }

/* ---------- 04 Lage ---------- */
.lage-body { row-gap: 48px; align-items: stretch; }
.specs-compact { margin: 32px 0; border-bottom: 1px solid var(--line); }
.specs-compact > div { grid-template-columns: minmax(110px, 1fr) 2fr; }
@media (min-width: 960px) {
  .lage-text { grid-column: 4 / span 4; }
  .map { grid-column: 8 / span 5; }
}
.map { position: relative; min-height: 420px; background: var(--paper-2); overflow: hidden; }
@media (min-width: 960px) { .map { min-height: 620px; } }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.map-consent {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px; gap: 6px;
  background-color: var(--paper-2);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
}
.map-consent::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--paper-2) 0 22%, rgba(237,235,230,.4) 60%, rgba(237,235,230,0));
}
.map-consent > * { position: relative; }
.map-pin { width: 32px; height: 32px; fill: none; stroke: var(--ink); stroke-width: 1.2; margin-bottom: 10px; }
.map-consent p { margin: 0 0 14px; font-size: .95rem; }
.map-consent .map-note { font-size: .78rem; color: var(--muted); margin: 14px 0 0; max-width: 30ch; }

/* ---------- 05 Kontakt ---------- */
.kontakt { background: var(--white); }
.kontakt-body { row-gap: 56px; align-items: start; }
@media (min-width: 960px) {
  .kontakt-info { grid-column: 4 / span 4; }
  .contact-form { grid-column: 8 / span 5; }
}
.kontakt-info .lead { color: var(--ink-2); max-width: 30ch; }
.contact-specs dd strong { font-weight: 500; }

.contact-form { display: grid; gap: 28px; align-content: start; }
.contact-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: flex; gap: 28px; }
.field-grid { display: grid; gap: 28px var(--col-gap); }
@media (min-width: 600px) { .field-grid { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field > span, .field > legend { font-size: .8rem; color: var(--muted); padding: 0; }
.field > legend { margin-bottom: 12px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 8px 0 10px; transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--sold); }

.radio, .check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .92rem; }
.radio { align-items: center; }
.radio input, .check input { accent-color: var(--ink); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.radio input { margin: 0; }
.checks { display: grid; gap: 14px; }
.check a { color: inherit; text-underline-offset: 3px; }
.check.is-invalid span { color: var(--sold); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip span {
  display: inline-block; padding: 9px 16px; border: 1px solid var(--line);
  font-size: .88rem; transition: background-color .25s, border-color .25s, color .25s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip input:focus-visible + span { outline: 1.5px solid var(--accent); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form-status { margin: 0; font-size: .9rem; }
.form-status.is-error { color: var(--sold); }
.form-status.is-ok { color: var(--ok); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: clamp(72px, 9vw, 120px) 0 32px; font-size: .88rem; }
.footer-top {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 24px;
  padding-bottom: 40px; border-bottom: 1px solid var(--on-dark-line);
}
.wordmark-footer { color: var(--on-dark); }
.wordmark-footer .wordmark-name { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 300; letter-spacing: -0.04em; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px var(--col-gap); padding: 40px 0 56px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-grid p { margin: 0; color: var(--on-dark); line-height: 1.7; }
.footer-grid p.footer-label { color: var(--on-dark-muted); margin-bottom: 10px; font-size: .78rem; }
.site-footer a { text-decoration: none; }
.site-footer .footer-grid a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  padding-top: 24px; border-top: 1px solid var(--on-dark-line); font-size: .76rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Unit dialog ---------- */
.unit-dialog {
  width: min(1180px, calc(100% - 24px)); max-height: calc(100% - 24px);
  padding: 0; border: 0; background: var(--white); color: var(--ink);
}
.unit-dialog::backdrop { background: rgba(20, 20, 19, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.unit-dialog[open] { animation: dialog-in .45s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } }
.unit-dialog-inner { display: grid; position: relative; }
@media (min-width: 900px) { .unit-dialog-inner { grid-template-columns: 1.2fr 1fr; } }
.dialog-close, .lb-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 44px; height: 44px; border: 0; background: transparent;
  display: grid; place-items: center;
}
.dialog-close svg, .lb-close svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.2;
  transition: transform .35s var(--ease);
}
.dialog-close:hover svg, .lb-close:hover svg { transform: rotate(90deg); }

.unit-plan { position: relative; display: block; background: var(--paper); cursor: zoom-in; }
.unit-plan img { width: 100%; height: 100%; max-height: 84vh; object-fit: contain; padding: 24px; mix-blend-mode: multiply; }
@media (max-width: 899px) { .unit-plan img { max-height: 50vh; } }
.unit-plan-zoom {
  position: absolute; left: 20px; bottom: 20px; font-size: .76rem; font-weight: 500;
  background: var(--white); padding: 6px 10px;
}
.unit-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; }
.unit-body .sec-label { margin: 0 0 20px; color: var(--muted); font-weight: 400; }
.unit-body h3 { font-size: clamp(2.4rem, 4vw, 3.4rem); letter-spacing: -0.04em; margin-bottom: 6px; }
.unit-sub { color: var(--ink-2); }
.unit-specs { margin: 20px 0 32px; display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--ink); }
.unit-specs dt, .unit-specs dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.unit-specs dt { color: var(--muted); padding-right: 24px; font-size: .88rem; }
.unit-specs dd { text-align: right; }
.unit-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.unit-pager { display: flex; justify-content: space-between; margin-top: auto; padding-top: 32px; }
.unit-pager button { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 8px 0; font-size: .86rem; color: var(--muted); }
.unit-pager button:hover { color: var(--ink); }
.unit-pager svg { width: 16px; height: 16px; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(16, 16, 15, .96); color: #fff;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] {
  display: grid; grid-template-columns: 72px 1fr 72px; align-items: center;
  animation: fade-in .3s ease;
}
@keyframes fade-in { from { opacity: 0; } }
.lb-figure { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb-figure img { max-width: 100%; max-height: calc(100svh - 120px); object-fit: contain; }
.lightbox.is-plan .lb-figure img { background: #fff; padding: 12px; }
.lb-figure figcaption { color: var(--on-dark-muted); font-size: .86rem; text-align: center; margin: 0; }
.lb-close { color: #fff; top: 16px; right: 16px; }
.lb-nav { background: none; border: 0; color: #fff; height: 72px; display: grid; place-items: center; opacity: .7; transition: opacity .25s; }
.lb-nav:hover { opacity: 1; }
.lb-nav svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1; }
.lb-prev { grid-column: 1; }
.lb-next { grid-column: 3; }
@media (max-width: 640px) {
  .lightbox[open] { grid-template-columns: 0 1fr 0; }
  .lb-nav { position: absolute; bottom: 12px; }
  .lb-prev { left: 12px; } .lb-next { right: 12px; }
  .lb-figure { padding: 0 8px; }
}
.lightbox.is-single .lb-nav { display: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img { animation: none; }
}

body.no-scroll { overflow: hidden; }

/* ---------- Simple pages (Impressum, Datenschutz) ---------- */
.page-simple .site-header { color: var(--ink); background: var(--paper); border-bottom-color: var(--line); }
.page-content { padding: calc(var(--header-h) + 80px) 0 var(--section); }
.page-content .container { max-width: 880px; }
.page-content h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); margin-bottom: .8em; letter-spacing: -0.045em; }
.page-content h2 { font-size: 1.35rem; font-weight: 400; letter-spacing: -0.02em; margin: 2.2em 0 .6em; padding-top: 16px; border-top: 1px solid var(--line); }
.page-content a { text-underline-offset: 3px; }
