:root {
  --bg: #F2EDE4;
  --bg-2: #EAE3D6;
  --ink: #1A1714;
  --ink-2: #3A332A;
  --muted: #7A6F5F;
  --rule: rgba(26, 23, 20, .18);
  --rule-strong: #1A1714;
  --gutter: clamp(20px, 2.6vw, 40px);
  --max: 1480px;
  --ar-cinema: 0.43;
  --cinema-left: 140px;
  --blob-1: #EBDDC4; --blob-2: #EBDED7; --blob-3: #E5E5D5; --blob-4: #EBDBC9;
  --blob-5: #E7E2C9; --blob-6: #EEDDD2; --blob-7: #E9DFC9; --blob-8: #E5E1C5;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); overflow-x: hidden; }
body {
  font-family: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  position: relative; overflow-x: hidden;
}

/* ── ORGANIC BACKGROUND ─────────────────────────── */
.organic-bg {
  position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.blob {
  position: absolute; will-change: transform; filter: blur(64px); opacity: .66; mix-blend-mode: multiply;
}
.blob.b1 { top: 2%;  left: -12%; width: 46vw; height: 46vw; background: var(--blob-1); border-radius: 62% 38% 54% 46% / 48% 60% 40% 52%; transform: rotate(-12deg); }
.blob.b2 { top: 11%; right: -14%; width: 50vw; height: 42vw; background: var(--blob-2); border-radius: 38% 62% 44% 56% / 56% 38% 62% 44%; transform: rotate(18deg); }
.blob.b3 { top: 25%; left: 30%;   width: 42vw; height: 42vw; background: var(--blob-3); border-radius: 54% 46% 36% 64% / 42% 58% 42% 58%; transform: rotate(-6deg); }
.blob.b4 { top: 38%; left: -10%;  width: 40vw; height: 46vw; background: var(--blob-4); border-radius: 48% 52% 62% 38% / 60% 44% 56% 40%; transform: rotate(8deg); }
.blob.b5 { top: 52%; right: -8%;  width: 44vw; height: 38vw; background: var(--blob-5); border-radius: 60% 40% 50% 50% / 38% 56% 44% 62%; transform: rotate(-22deg); }
.blob.b6 { top: 64%; left: 20%;   width: 38vw; height: 34vw; background: var(--blob-6); border-radius: 42% 58% 60% 40% / 54% 42% 58% 46%; transform: rotate(14deg); }
.blob.b7 { top: 78%; right: -12%; width: 46vw; height: 42vw; background: var(--blob-7); border-radius: 56% 44% 40% 60% / 46% 60% 40% 54%; transform: rotate(-10deg); }
.blob.b8 { top: 90%; left: -8%;   width: 40vw; height: 36vw; background: var(--blob-8); border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%; transform: rotate(6deg); }

nav.top, .wrap, footer.foot, #sm-mobile-nav, .sm-stoerer { position: relative; z-index: 2; }
::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; text-decoration: none; }

.serif { font-family: "EB Garamond", "Times New Roman", serif; font-style: italic; font-weight: 400; }
.mono  { font-family: "Geist Mono", ui-monospace, Menlo, monospace; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ── NAV ────────────────────────────────────────── */
nav.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  position: sticky; top: 0; z-index: 20;
  background: rgba(242, 237, 228, .75);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.brand {
  font-family: "Geist", sans-serif; font-weight: 500; font-size: 13px;
  letter-spacing: -.005em; display: flex; align-items: baseline; gap: 6px;
}
.brand .mark {
  display: inline-block; width: 10px; height: 10px; background: var(--ink);
  transform: translateY(1px) rotate(-12deg);
  border-radius: 62% 38% 54% 46% / 48% 60% 40% 52%;
}
.lbl .mark {
  display: block; flex-shrink: 0; width: 7px; height: 7px; background: var(--muted);
  transform: translateY(0px) rotate(-12deg);
  border-radius: 62% 38% 54% 46% / 48% 60% 40% 52%;
}
.brand .serif { font-size: 15px; margin-left: 2px; }
nav.top .right { display: flex; gap: 28px; font-size: 12px; align-items: center; }
nav.top .right a { color: var(--ink); position: relative; padding-bottom: 2px; }
nav.top .right a:hover { border-bottom: 1px solid var(--ink); }
nav.top .right .meta { color: var(--muted); font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: .05em; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; padding: 8px; background: none; border: none;
  cursor: pointer; margin-left: 12px;
}
.hamburger span {
  display: block; width: 18px; height: 1px; background: var(--ink);
  transition: opacity .2s;
}

/* Mobile Nav Overlay */
#sm-mobile-nav {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg); display: flex; flex-direction: column;
  padding: 40px var(--gutter);
  transform: translateX(100%); transition: transform .3s ease;
}
#sm-mobile-nav.is-open { transform: translateX(0); }
#sm-mobile-close {
  position: absolute; top: 20px; right: var(--gutter);
  background: none; border: none; cursor: pointer; color: var(--ink); padding: 8px;
}
#sm-mobile-nav nav { margin-top: 48px; display: flex; flex-direction: column; gap: 28px; }
#sm-mobile-nav nav a { font-size: clamp(28px, 7vw, 44px); font-weight: 300; letter-spacing: -.02em; color: var(--ink); }
#sm-mobile-nav .mobile-meta {
  margin-top: auto; font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
  font-family: "Geist Mono", monospace;
}

/* ── HERO ───────────────────────────────────────── */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(24px, 3vw, 40px); }
.hero-meta {
  font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: clamp(40px, 6vw, 80px); line-height: 1.8;
}
.hero-title {
  font-family: "Geist", sans-serif; font-weight: 300;
  font-size: clamp(45px, 4.6vw, 72px); line-height: 1.02;
  letter-spacing: -.025em; margin: 0; max-width: 18ch;
}
.hero-title em.serif { font-style: italic; font-weight: 400; letter-spacing: -.01em; }
/* wysiwyg-Output im h1: p-Tags unsichtbar, em = Garamond */
.hero-title p { display: contents; margin: 0; padding: 0; }
.hero-title em { font-family: "EB Garamond", "Times New Roman", serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.hero-sub {
  margin-top: clamp(24px, 3vw, 40px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
}
.hero-sub .lead { grid-column: 1 / span 5; font-size: 14px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.hero-sub .right { grid-column: 8 / span 4; align-self: end; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; text-align: right; }

/* ── IMAGE SLOTS ────────────────────────────────── */
.img-slot-wrap { display: block; width: 100%; background: var(--bg-2); overflow: hidden; }
.img-slot-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; }
.img-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 240px;
  font-family: "Geist Mono", monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}

/* ── CINEMA ─────────────────────────────────────── */
.cinema { margin: clamp(40px, 6vw, 80px) 0 clamp(14px, 1.5vw, 18px); }
.cinema .img-slot-wrap {
  width: calc(100vw - var(--cinema-left, 140px));
  max-width: none; margin-left: auto;
  margin-right: calc(50% - 50vw);
  aspect-ratio: 1 / var(--ar-cinema);
}
.caption {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  margin-top: 14px; margin-bottom: clamp(60px, 9vw, 120px);
}
.caption .num  { grid-column: 1 / span 1; font-family: "Geist Mono", monospace; font-size: 11px; color: var(--muted); }
.caption .ttl  { grid-column: 2 / span 4; font-size: 13px; color: var(--ink); }
.caption .desc { grid-column: 7 / span 4; font-size: 12px; color: var(--muted); line-height: 1.5; max-width: 42ch; }
.caption .tag  { grid-column: 12 / span 1; text-align: right; font-family: "Geist Mono", monospace; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* ── COLLAGE ────────────────────────────────────── */
.collage {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter); row-gap: 0;
  margin-bottom: clamp(80px, 11vw, 160px); align-items: start;
}
.collage .img-slot-wrap { display: block; width: 100%; }
.collage .cap { margin-top: 16px; font-size: 13px; color: var(--ink); line-height: 1.45; }
.collage .cap small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.collage .cap .r { font-family: "Geist Mono", monospace; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; display: block; margin-top: 6px; }

/* COLLAGE 01 */
.collage-01 .a { grid-column: 1 / span 7; grid-row: 1; }
.collage-01 .a .img-slot-wrap { aspect-ratio: 4 / 5; }
.collage-01 .b { grid-column: 7 / span 5; grid-row: 1; margin-top: 30%; z-index: 2; }
.collage-01 .b .img-slot-wrap { aspect-ratio: 6 / 5; }
.collage-01 .cap-a { grid-column: 1 / span 4; grid-row: 2; }
.collage-01 .cap-b { grid-column: 9 / span 4; grid-row: 2; text-align: right; }

/* COLLAGE 02 */
.collage-02 { position: relative; }
.collage-02 .big { grid-column: 1 / span 12; grid-row: 1; position: relative; }
.collage-02 .big .img-slot-wrap {
  aspect-ratio: 16 / 9;
  width: 100vw; max-width: 100vw;
  margin-left: calc(50% - 50vw);
}
.collage-02 .small { grid-column: 9 / span 3; grid-row: 1; align-self: start; margin-top: -9%; z-index: 2; }
.collage-02 .infobox {
  background: var(--ink); color: var(--bg);
  padding: 28px 24px; font-family: "Geist Mono", monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em; line-height: 1.5;
}
.collage-02 .infobox-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 12px; margin-bottom: 18px;
  border-bottom: 1px solid rgba(242, 237, 228, .22);
  color: rgba(242, 237, 228, .55);
}
.collage-02 .infobox dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.collage-02 .infobox dt { color: rgba(242, 237, 228, .55); font-size: 10px; letter-spacing: .08em; }
.collage-02 .infobox dd {
  margin: 3px 0 0; color: var(--bg);
  font-family: "Geist", sans-serif; font-size: 13px;
  text-transform: none; letter-spacing: 0; line-height: 1.4;
}
.collage-02 .infobox dd em.serif { font-size: 14px; }
.collage-02 .cap-big { grid-column: 1 / span 5; grid-row: 2; }

/* COLLAGE 03 */
.collage-03 .meta-left { grid-column: 1 / span 3; grid-row: 1; align-self: end; padding-bottom: 20px; }
.collage-03 .im { grid-column: 4 / span 7; grid-row: 1; }
.collage-03 .im .img-slot-wrap { aspect-ratio: 4 / 3; }
.collage-03 .meta-right { grid-column: 11 / span 2; grid-row: 1; align-self: start; padding-top: 24px; text-align: right; }
.collage-03 .meta-left .ttl, .collage-03 .meta-right .ttl { font-size: 13px; color: var(--ink); }
.collage-03 .meta-left small, .collage-03 .meta-right small {
  display: block; font-size: 11px; color: var(--muted); margin-top: 3px;
  text-transform: uppercase; letter-spacing: .05em; font-family: "Geist Mono", monospace;
}

/* ── MAP ─────────────────────────────────────────── */
.map-section {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  margin-bottom: clamp(60px, 9vw, 120px); align-items: start;
}
.map-section .map-meta { grid-column: 1 / span 3; padding-top: 8px; }
.map-section .map-meta .lbl {
  font-family: "Geist Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 18px;
}
.map-section .map-meta .ttl { font-size: 13px; color: var(--ink); }
.map-section .map-meta small {
  display: block; font-size: 11px; color: var(--muted); margin-top: 3px;
  text-transform: uppercase; letter-spacing: .05em; font-family: "Geist Mono", monospace;
}
.map-section .map-meta .addr + .addr { margin-top: 18px; }
.map-section .map-canvas {
  grid-column: 4 / span 9; height: clamp(380px, 46vw, 580px);
  background: var(--bg-2); position: relative; overflow: hidden;
}
.map-section .map-canvas .map-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px; font-family: "Geist Mono", monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  text-align: center; padding: 24px; line-height: 1.6; pointer-events: none;
}
.map-section .map-canvas .map-placeholder strong { color: var(--ink); font-weight: 400; }

/* ── TEXT BLOCKS ─────────────────────────────────── */
.textblock {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  padding: clamp(50px, 7vw, 100px) 0; border-top: 1px solid var(--rule);
}
.textblock .lbl {
  grid-column: 1 / span 2;
  font-family: "Geist Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted);
  display: flex; align-items: center; gap: 7px;
}
.textblock .body { grid-column: 4 / span 5; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.textblock .body p { margin: 0 0 1em 0; }
.textblock .body p:last-child { margin-bottom: 0; }
.textblock .aside {
  grid-column: 10 / span 3;
  font-family: "Geist Mono", monospace; font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; line-height: 1.7; align-self: start;
}
.textblock .aside .k {
  display: block; color: var(--ink); text-transform: none;
  font-family: "Geist", sans-serif; font-size: 13px; letter-spacing: 0;
  margin-top: 3px; margin-bottom: 14px;
}

/* ── APARTMENTS TABLE ────────────────────────────── */
.apartments { padding: clamp(60px, 8vw, 100px) 0 30px; border-top: 1px solid var(--rule); }
.apartments .head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); margin-bottom: 30px; align-items: end; }
.apartments .head h3 {
  grid-column: 1 / span 6;
  font-family: "Geist", sans-serif; font-weight: 300; font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -.02em; margin: 0;
}
.apartments .head h3 .serif { font-size: 1.05em; }
.apartments .head .meta {
  grid-column: 9 / span 4; text-align: right;
  font-family: "Geist Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
table.units { width: 100%; border-collapse: collapse; font-size: 13px; }
table.units th, table.units td { text-align: left; padding: 14px 8px; border-top: 1px solid var(--rule); vertical-align: baseline; }
table.units th {
  font-family: "Geist Mono", monospace; font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  padding-top: 8px; padding-bottom: 14px;
}
table.units th:first-child, table.units td:first-child { padding-left: 0; }
table.units th:last-child,  table.units td:last-child  { padding-right: 0; text-align: right; }
table.units td.unit   { font-family: "Geist Mono", monospace; color: var(--muted); width: 80px; }
table.units td.rooms  { width: 80px; }
table.units td.area   { width: 110px; }
table.units td.floor  { width: 110px; color: var(--muted); }
table.units td.outdoor { color: var(--muted); }
table.units td.status {
  font-family: "Geist Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; width: 120px;
}
table.units td.status .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink); margin-right: 6px; transform: translateY(-1px);
}
table.units td.status.reserved .dot { background: transparent; border: 1px solid var(--ink); }
table.units td.status.sold { color: var(--muted); }
table.units td.status.sold .dot { background: var(--muted); opacity: .5; }
table.units tr.last td { border-bottom: 1px solid var(--rule); }

/* ── FOOTER ──────────────────────────────────────── */
footer.foot { padding: clamp(40px, 5vw, 70px) 0 30px; border-top: 1px solid var(--rule); }
footer .grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
footer .colofon { grid-column: 1 / span 4; }
footer .colofon .wm {
  font-family: "Geist", sans-serif; font-weight: 400; font-size: 15px;
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px;
}
footer .colofon .wm .mark {
  width: 10px; height: 10px; background: var(--ink); display: inline-block;
  transform: rotate(-12deg); border-radius: 62% 38% 54% 46% / 48% 60% 40% 52%;
}
footer .colofon .wm .serif { font-size: 17px; }
footer .colofon p { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0 0 1em 0; max-width: 32ch; }
footer .col { grid-column: span 2; }
footer .col h5 {
  font-family: "Geist Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 400; margin: 0 0 14px 0;
}
footer .col ul { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.9; }
footer .col ul a { color: var(--ink); border-bottom: 1px solid transparent; }
footer .col ul a:hover { border-bottom-color: var(--ink); }
footer .col p { font-size: 13px; line-height: 1.6; margin: 0 0 .6em 0; }
footer .col small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; display: block; margin-top: 4px; }
footer .col a { color: var(--ink); }
footer .col a:hover { text-decoration: underline; }
footer .bot {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter);
  margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--rule);
  font-family: "Geist Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}

/* ── STÖRER / POPUP ──────────────────────────────── */
.sm-stoerer {
  position: fixed; bottom: 28px; right: 28px; z-index: 50;
  display: none;
}
.sm-stoerer.is-visible { display: block; }
.sm-stoerer-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  padding: 14px 22px;
  font-family: "Geist Mono", monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: .08em;
  border: none; cursor: pointer;
  box-shadow: 0 4px 24px rgba(26, 23, 20, .18);
  text-decoration: none;
  transition: opacity .2s;
}
.sm-stoerer-btn:hover { opacity: .85; }
.sm-stoerer-btn::before {
  content: '';
  display: inline-block; width: 8px; height: 8px;
  background: var(--bg); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.75); }
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  nav.top .right { display: none; }
  .hamburger { display: flex; }
  .hero-sub .lead  { grid-column: 1 / -1; }
  .hero-sub .right { grid-column: 1 / -1; text-align: left; margin-top: 14px; }
  /* Full-bleed Elemente auf Mobile normalisieren */
  .cinema .img-slot-wrap {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .collage-02 .big .img-slot-wrap {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .caption .num, .caption .ttl, .caption .desc, .caption .tag { grid-column: 1 / -1; }
  .caption .num { margin-bottom: 4px; }
  .collage { grid-template-columns: 1fr; row-gap: 24px; }
  .collage .a, .collage .b, .collage .big, .collage .small,
  .collage .cap-a, .collage .cap-b, .collage .cap-big,
  .collage .meta-left, .collage .im, .collage .meta-right {
    grid-column: 1 / -1 !important; grid-row: auto !important;
    margin-top: 0 !important; padding: 0 !important; text-align: left !important;
  }
  .collage-02 .small { margin-top: 0; }
  .textblock .lbl, .textblock .body, .textblock .aside { grid-column: 1 / -1; }
  .textblock .body { margin: 14px 0; }
  .apartments .head h3, .apartments .head .meta { grid-column: 1 / -1; text-align: left; }
  .map-section .map-meta, .map-section .map-canvas { grid-column: 1 / -1; }
  .map-section .map-canvas { height: 340px; }
  table.units { font-size: 12px; }
  table.units td.floor, table.units td.outdoor,
  table.units th.h-floor, table.units th.h-outdoor { display: none; }
  footer .colofon { grid-column: 1 / -1; margin-bottom: 30px; }
  footer .col { grid-column: span 6; margin-bottom: 24px; }
  footer .bot { grid-template-columns: 1fr 1fr; }
  .sm-stoerer { bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
  footer .col { grid-column: 1 / -1; }
  footer .bot { grid-template-columns: 1fr; }
}
