:root {
  --bg: #f7f3ec; --paper: #fffdf9; --ink: #1f2a24; --muted: #5d6b63;
  --green: #2f5d4a; --green-dark: #24493a; --terra: #c4673a; --sand: #ffd9a3; --line: #e4dccf;
  --shadow: 0 10px 30px rgba(31, 42, 36, .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
section[id], header[id] { scroll-margin-top: 64px; }
.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--terra); font-weight: 700; margin-bottom: .6em; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.klein { font-size: .85rem; color: var(--muted); }

/* Knöpfe */
.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 999px; font-weight: 600; border: 0; cursor: pointer; font-size: 1rem; font-family: inherit; transition: background .2s; }
.btn:hover { background: var(--green-dark); }
.btn.light { background: #fff; color: var(--green); }
.btn.light:hover { background: #f1ece2; }
.btn.ghost { background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .5); }
.btn.ghost:hover { background: rgba(255, 255, 255, .28); }

/* Navigation */
nav { position: sticky; top: 0; z-index: 50; background: rgba(247, 243, 236, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
nav .brand { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
nav li a { text-decoration: none; color: var(--muted); font-size: .95rem; white-space: nowrap; }
nav li a:hover { color: var(--green); }
nav .btn { padding: 9px 16px; font-size: .9rem; white-space: nowrap; }

/* Titelbild: Text links auf Grün, Foto rechts */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(78vh, 720px); background: var(--green); color: #fff; }
.hero-text { display: flex; align-items: center; padding: 64px 56px 64px max(24px, calc((100vw - 1100px) / 2 + 24px)); }
.hero-inner { max-width: 540px; }
.hero-bild { position: relative; min-height: 360px; }
.hero-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero .kicker { color: var(--sand); }
.hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.hero p { font-size: 1.1rem; opacity: .92; }
.price-tag { display: inline-flex; flex-direction: column; background: var(--paper); color: var(--ink); border-radius: 16px; padding: 14px 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); margin: 8px 0 22px; }
.price-tag strong { font-family: var(--serif); font-size: 1.9rem; color: var(--green); line-height: 1.1; }
.price-tag span { font-size: .9rem; color: var(--muted); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Faktenleiste */
.facts { background: var(--paper); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; padding: 0; background: var(--line); }
.fact { padding: 22px 12px; text-align: center; background: var(--paper); }
.fact b { display: block; font-family: var(--serif); font-size: 1.45rem; color: var(--green); white-space: nowrap; }
.fact span { font-size: .85rem; color: var(--muted); }

/* Karten und Raster */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.abstand { margin-top: 24px; }
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid var(--line); }
ul.clean li:last-child { border-bottom: 0; }
ul.clean li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* Zeilen mit Bezeichnung und Wert */
.dist { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.dist.letzte { border-bottom: 0; }
.dist > span { flex: 1 1 auto; min-width: 0; color: var(--muted); }
.dist > b { flex: 0 1 auto; text-align: right; }
.dist > span > b { color: var(--ink); }
.dist > b.betrag { white-space: nowrap; }
.dist small { display: block; font-weight: 400; font-size: .8rem; opacity: .8; }

/* Galerie */
.gallery h3 { margin: 28px 0 12px; color: var(--muted); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tiles.viele { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tile { display: block; overflow: hidden; border-radius: 12px; background: #ddd; cursor: zoom-in; }
.tiles.hoch .tile { aspect-ratio: 3 / 4; }
.tiles.quer .tile { aspect-ratio: 4 / 3; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tile:hover img { transform: scale(1.04); }

/* Video */
.video-box { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 40px; align-items: center; }
.video-box video { width: 100%; border-radius: 16px; box-shadow: var(--shadow); background: #000; aspect-ratio: 9 / 16; }

/* Grundrisse */
.grundrisse { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grundrisse figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.grundrisse figcaption { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.grundrisse figcaption b { color: var(--ink); display: block; font-size: .95rem; }
.tile.plan { background: #fff; padding: 8px; border: 1px solid var(--line); }
.tile.plan img { height: 320px; object-fit: contain; }
.tile.plan:hover img { transform: none; }

/* Preis */
.price-section { background: var(--green); color: #fff; }
.price-section h2, .price-section h3 { color: #fff; }
.price-section .kicker { color: var(--sand); }
.price-section .big { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 3.8rem); font-weight: 700; line-height: 1; margin: .15em 0 .25em; }
.price-section .lead { color: rgba(255, 255, 255, .9); }
.price-section .card { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); box-shadow: none; color: #fff; }
.price-section ul.clean li { border-color: rgba(255, 255, 255, .18); }
.price-section ul.clean li::before { color: var(--sand); }
.price-section a { color: var(--sand); }
.price-section .dist { border-color: rgba(255, 255, 255, .18); }
.price-section .dist > span { color: rgba(255, 255, 255, .88); }
.price-section .grid-3 { align-items: stretch; }
.price-section .klein { color: rgba(255, 255, 255, .75); }

/* Zustand: eine Liste, das Symbol zeigt den Status */
.status { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.status-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.status-row:last-child { border-bottom: 0; }
.status-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.status-row.ok .status-icon { background: #e3efe7; color: var(--green); }
.status-row.hinweis .status-icon { background: #f8e7da; color: #a4512a; font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.status-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 4px 0 6px; }
.status-kopf b { font-size: 1.05rem; }
.status-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.status-row.ok .status-tag { color: var(--green); }
.status-row.hinweis .status-tag { color: #a4512a; }
.status-row p { margin: 0; }
.status-row ul { margin: 6px 0 0; padding-left: 18px; }
.status-row li { margin: 3px 0; }

/* Ablauf */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 20px 72px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--terra); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps li b { display: block; margin-bottom: 4px; font-size: 1.05rem; }

/* Formular */
form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { font-size: .9rem; font-weight: 600; display: block; }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid #cfc6b8; border-radius: 10px; font: inherit; font-weight: 400; background: #fff; color: var(--ink); margin-top: 4px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); }
.check input { width: auto; margin: 5px 0 0; flex: none; }
.hidden { display: none; }
form .btn { justify-self: start; }

footer { padding: 40px 0; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
footer a { color: var(--muted); }

/* Fester Knopf "Besichtigung anfragen", nur auf dem Handy */
.cta-mobil { display: none; }

/* Bildansicht (Lightbox) mit Vor/Zurück */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(14, 20, 17, .95); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; }
.lb[hidden] { display: none; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; }
.lb-img { display: block; max-width: min(92vw, 1100px); max-height: calc(100vh - 110px); width: auto; height: auto; border-radius: 8px; }
.lb-img.ist-plan { background: #fff; padding: 12px; }
.lb-cap { color: #e6e1d6; font-size: .9rem; text-align: center; }
.lb-btn { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255, 255, 255, .28); outline: none; }
.lb-close { position: absolute; top: 16px; right: 16px; font-size: 28px; }

/* Tablet */
@media (max-width: 1000px) {
  nav ul { gap: 16px; }
  .tiles, .tiles.viele { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  nav .btn { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-bild { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .hero-text { padding: 40px 24px 48px; }
}

/* Handy */
@media (max-width: 700px) {
  section { padding: 52px 0; }
  section[id], header[id] { scroll-margin-top: 96px; }
  .wrap { padding: 0 20px; }
  nav .wrap { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 10px; padding-bottom: 10px; }
  nav ul { flex-wrap: wrap; gap: 2px 16px; }
  nav li a { font-size: .85rem; }
  .hero-text { padding: 32px 20px 40px; }
  .hero p { font-size: 1.02rem; }
  .status-row { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 18px 16px; }
  .status-icon { width: 30px; height: 30px; }
  .tiles, .tiles.viele { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .video-box { grid-template-columns: 1fr; gap: 24px; }
  .video-box video { max-width: 320px; }
  .tile.plan img { height: 240px; }
  .row { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .steps li { padding: 18px 16px 18px 62px; }
  .steps li::before { left: 14px; }
  .lb { padding: 12px; }
  .lb-img { max-width: 100%; max-height: calc(100vh - 160px); }
  .lb-prev, .lb-next { position: absolute; bottom: 20px; }
  .lb-prev { left: 24px; }
  .lb-next { right: 24px; }
  .cta-mobil { display: block; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 40; text-align: center; padding: 15px 20px; background: var(--terra); color: #fff; text-decoration: none; border-radius: 999px; font-size: 1rem; font-weight: 600; box-shadow: 0 8px 22px rgba(31, 42, 36, .3); transition: opacity .2s, transform .2s; }
  .cta-mobil.weg { opacity: 0; transform: translateY(20px); pointer-events: none; }
  body { padding-bottom: 76px; }
}
