:root {
  --bg: #f3efe6;
  --bg-deep: #e7e0d2;
  --ink: #1c1914;
  --muted: #5c564c;
  --card: #fffdf8;
  --line: #d4cdb8;
  --accent: #c45c26;
  --accent-ink: #fff;
  --ok: #2f6b4f;
  --warn: #9a6b16;
  --sold: #7a7368;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(28, 25, 20, 0.08);
  --font: "Outfit", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #fff8e8 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #efe4d2 0%, transparent 50%),
    var(--bg);
  line-height: 1.55;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(243, 239, 230, 0.88);
  border-bottom: 1px solid var(--line);
}
.site-header__inner,
.site-footer__inner,
.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}
.brand {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand span { color: var(--accent); }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
}
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }

.hero {
  padding: 3.2rem 0 2.2rem;
}
.hero__badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 14ch; }
.hero p { max-width: 42ch; color: var(--muted); font-size: 1.08rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }

.miebach-btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(196, 92, 38, 0.25);
}
.miebach-btn:hover,
.button:hover { filter: brightness(1.05); color: var(--accent-ink); text-decoration: none; }
.miebach-btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.miebach-btn--ghost:hover { color: var(--accent); border-color: var(--accent); }

.filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr) auto;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.filters label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.filters input,
.filters select {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.filters button { align-self: end; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
  padding-bottom: 3rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(28, 25, 20, 0.12);
  color: inherit;
  text-decoration: none;
}
.card__media {
  aspect-ratio: 4 / 3;
  background: var(--bg-deep);
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 0.95rem 1rem 1.1rem; display: grid; gap: 0.35rem; flex: 1; }
.card__meta { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; }
.card__title { font-family: var(--display); font-size: 1.15rem; margin: 0; }
.card__price { font-weight: 700; font-size: 1.05rem; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e8f3ec;
  color: var(--ok);
}
.badge--reserviert { background: #fff1d6; color: var(--warn); }
.badge--verkauft { background: #ece9e3; color: var(--sold); }

.single {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  padding: 2rem 0 3rem;
}
.single__gallery {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.single__gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.single__panel { display: grid; gap: 1rem; align-content: start; }
.single__price { font-size: 1.8rem; font-weight: 700; }
.single__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}
.single__facts strong { color: var(--ink); }
.content { color: var(--muted); }
.content p:first-child { margin-top: 0; }

.miebach-inquiry {
  margin-top: 0.5rem;
  padding: 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.miebach-inquiry h2 { font-size: 1.35rem; }
.miebach-inquiry__form { display: grid; gap: 0.75rem; }
.miebach-inquiry__form label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.92rem; }
.miebach-inquiry__form input,
.miebach-inquiry__form textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.miebach-inquiry__check {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500 !important;
}
.miebach-notice { padding: 0.75rem 0.9rem; border-radius: 10px; }
.miebach-notice--ok { background: #e8f3ec; color: var(--ok); }
.miebach-notice--err { background: #fbe8e4; color: #8a2f1d; }
.miebach-notice--muted { color: var(--muted); }

.page-block {
  padding: 2.5rem 0 3.5rem;
  max-width: 70ch;
}
.page-block h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; }

.empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.4);
}

.pagination { display: flex; gap: 0.5rem; justify-content: center; padding: 0 0 3rem; }
.pagination a, .pagination span {
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  text-decoration: none;
  background: var(--card);
}
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (max-width: 860px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filters button { grid-column: 1 / -1; }
  .single { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .filters { grid-template-columns: 1fr; }
  .site-header__inner { flex-direction: column; align-items: flex-start; }
}

.miebach-map {
  margin: 1.25rem 0 2rem;
  display: grid;
  gap: 0.9rem;
}
.miebach-map__iframe {
  width: 100%;
  height: min(420px, 60vh);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-deep);
}
.miebach-map__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.miebach-recaptcha { margin: 0.25rem 0 0.75rem; }
