:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #1d2124;
  --muted: #5f666b;
  --line: #dcd9d2;
  --accent: #1f5f7a;
  --accent-ink: #ffffff;
  --accent-soft: #e3eef2;
  --placeholder: #b4471f;
  --radius: 10px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }

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

/* Platzhalter sichtbar markieren — vor Livegang entfernen */
.ph { color: var(--placeholder); background: #fbeee8; padding: 0 4px; border-radius: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 245, 242, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--ink); letter-spacing: 0.01em; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600;
  border: 0; font-size: 1rem;
}
.btn:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
@media (max-width: 760px) { .nav { display: none; } }

/* Hero */
.hero { position: relative; color: #fff; }
.hero-img {
  height: min(72vh, 640px);
  background: linear-gradient(135deg, #2b3a42 0%, #1f5f7a 55%, #6d8b96 100%);
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.6) 100%);
  display: flex; align-items: flex-end;
}
.hero-content { padding-bottom: 56px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; opacity: 0.9; margin: 0 0 8px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 14px; max-width: 18ch; }
.hero p.lead { font-size: 1.15rem; max-width: 52ch; margin: 0 0 24px; opacity: 0.95; }
.hero .ph { background: rgba(255,255,255,0.18); color: #ffd9c9; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.6); }

/* Key facts */
.facts { margin-top: -36px; position: relative; z-index: 2; }
.facts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.fact { padding: 22px 24px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact .num { font-size: 1.6rem; font-weight: 700; }
.fact .lbl { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 760px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Sections */
section.block { padding: 80px 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 10px; line-height: 1.2; }
.section-head p { color: var(--muted); margin: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
section.alt .card { background: var(--bg); }
.card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.card .size { font-size: 1.05rem; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.card li { margin: 4px 0; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; background: var(--bg); }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; }
.note { color: var(--muted); font-size: 0.92rem; margin-top: 12px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery .shot { margin: 0; }
.gallery .shot a { display: block; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.gallery .shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.gallery .shot a:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Grundriss */
.plan { margin: 40px 0 0; max-width: 520px; }
.plan a { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.plan figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }

/* Location */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); position: relative; }
.list-check li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.map-ph {
  aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--muted);
}

/* Energy */
.energy { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 16px; }
.energy .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.energy .k { color: var(--muted); font-size: 0.9rem; }
.energy .v { font-size: 1.4rem; font-weight: 700; }
@media (max-width: 560px) { .energy { grid-template-columns: 1fr; } }

/* Sale band */
.sale { background: var(--ink); color: #fff; }
.sale .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.sale h2 { margin: 0 0 6px; font-size: 1.6rem; }
.sale p { margin: 0; opacity: 0.85; max-width: 60ch; }
.sale .btn { background: #fff; color: var(--ink); }

/* Contact */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.contact-card .name { font-weight: 700; font-size: 1.15rem; }
.contact-card .role { color: var(--muted); margin-bottom: 16px; }
.contact-line { display: flex; gap: 10px; margin: 8px 0; }
.contact-line span:first-child { color: var(--muted); min-width: 70px; }

/* Footer */
.site-footer { padding: 36px 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: var(--muted); }

/* Legal pages */
.legal { padding: 60px 0 80px; }
.legal h1 { margin-top: 0; }
.legal h2 { font-size: 1.2rem; margin-top: 32px; }
.legal .wrap { max-width: 760px; }
