/* Inserat Oberbofel 45 — Mikrosite Styling
   Inspiriert von der grj-X / ROD-Spoke-Linie (heller Hintergrund, grün #47aa8d Akzente),
   leicht erweitert um warmes Holz-Beige für Immobilien-Kontext. */

:root {
  --primary: #47aa8d;
  --primary-dark: #357a66;
  --bg: #f7f6f2;          /* warmes Hellbeige, passt zum Tannenholz */
  --surface: #ffffff;
  --text: #2a2a2a;
  --text-muted: #6b6b6b;
  --border: #e6e2d8;
  --accent-wood: #d4b58a;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 6px;
  --maxw: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── HERO ─────────────────────────────────────────── */

.hero {
  position: relative;
  height: 78vh;
  min-height: 540px;
  max-height: 760px;
  overflow: hidden;
  color: #fff;
}

.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 75%;
  filter: brightness(0.7);
  transform: scale(1.03);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}

.hero-content {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 56px;
}

.kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 12px;
  opacity: 0.92;
}

.hero h1 {
  font-size: clamp(1.7rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  max-width: 720px;
}

.lead {
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 28px;
  opacity: 0.96;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.cta.primary {
  background: var(--primary);
  color: #fff;
}

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

.cta.secondary {
  background: rgba(255,255,255,0.95);
  color: var(--text);
}

.cta.secondary:hover {
  background: #fff;
  transform: translateY(-1px);
}

/* ─── QUICK FACTS ──────────────────────────────────── */

.quick-facts {
  background: var(--surface);
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.quick-facts .container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.fact {
  text-align: center;
  padding: 4px 8px;
}

.fact .num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.fact .lbl {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── SECTIONS ─────────────────────────────────────── */

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--surface);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text);
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--primary-dark);
}

h3.spaced {
  margin-top: 36px;
}

h3.no-margin {
  margin: 0 0 8px;
}

p {
  margin-bottom: 14px;
  max-width: 70ch;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 20px;
}

.list {
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* ─── DISTANZEN ────────────────────────────────────── */

.distanzen {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.dist {
  background: var(--bg);
  padding: 18px 16px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
}

.dist strong {
  display: block;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 2px;
}

/* ─── HINWEIS-BOX ──────────────────────────────────── */

.hinweis {
  background: #fff8e1;
  border-left: 3px solid var(--accent-wood);
  padding: 12px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 12px;
  font-size: 0.95rem;
  max-width: none;
}

/* ─── EXTERIOR GRID (Das Haus) ─────────────────────── */

.exterior-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.exterior-grid figure {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.exterior-grid figure.span-2 {
  grid-column: span 2;
}

.exterior-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.exterior-grid figure.span-2 img {
  height: 360px;
}

.exterior-grid figure:hover img {
  transform: scale(1.03);
}

.exterior-grid figcaption {
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .exterior-grid {
    grid-template-columns: 1fr 1fr;
  }
  .exterior-grid figure.span-2 {
    grid-column: span 2;
  }
  .exterior-grid img,
  .exterior-grid figure.span-2 img {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .exterior-grid {
    grid-template-columns: 1fr;
  }
  .exterior-grid figure.span-2 {
    grid-column: span 1;
  }
}

/* ─── GALLERY ──────────────────────────────────────── */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.gallery figure {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery figure:hover img {
  transform: scale(1.03);
}

.gallery figcaption {
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  min-height: 0;
}

.gallery figcaption:empty {
  display: none;
}

/* ─── PRICES ────────────────────────────────────────── */

.prices {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
}

.prices td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.prices .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.prices tr.total td {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-bottom: none;
}

/* ─── CALLOUT ──────────────────────────────────────── */

.callout {
  margin-top: 40px;
  padding: 24px 28px;
  border-left: 4px solid var(--primary);
  background: var(--bg);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ─── CONTACT ──────────────────────────────────────── */

.contact-card {
  background: var(--bg);
  padding: 24px 28px;
  border-radius: var(--radius);
  margin: 20px 0;
  max-width: 480px;
  border: 1px solid var(--border);
}

.contact-card p {
  margin-bottom: 6px;
}

.contact-card a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
}

.contact-card a:hover {
  text-decoration: underline;
}

.footnote {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ─── FOOTER ───────────────────────────────────────── */

footer {
  background: #2a2a2a;
  color: #ddd;
  padding: 28px 0;
  text-align: center;
}

footer p {
  margin: 0 auto 4px;
  max-width: none;
}

footer .small {
  font-size: 0.82rem;
  opacity: 0.7;
}

/* ─── RESPONSIVE ───────────────────────────────────── */

@media (max-width: 768px) {
  .quick-facts .container {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .distanzen {
    grid-template-columns: repeat(2, 1fr);
  }
  .section {
    padding: 48px 0;
  }
  .hero {
    min-height: 460px;
  }
}

@media (max-width: 480px) {
  .quick-facts .container {
    grid-template-columns: 1fr 1fr;
  }
  .fact .num {
    font-size: 1.25rem;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .hero-content {
    padding-bottom: 36px;
  }
}
