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

:root {
  --blue-dark: #042C53;
  --blue-mid: #185FA5;
  --blue-light: #E6F1FB;
  --teal-dark: #0F6E56;
  --teal-mid: #1D9E75;
  --teal-light: #E1F5EE;
  --teal-pale: #9FE1CB;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --bg: #f7f8f6;
  --surface: #ffffff;
  --border: rgba(0,0,0,0.1);
  --border-light: rgba(0,0,0,0.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 44, 83, 0.96);
  backdrop-filter: blur(8px);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-logo span { color: var(--teal-pale); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

.nav-cta {
  background: var(--teal-mid);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 100px;
  font-weight: 500 !important;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue-mid) 55%, var(--teal-dark) 100%);
  padding: 5rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-pale);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--teal-pale);
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 300;
}

.btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.2s, transform 0.15s;
}

.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary { background: var(--teal-mid); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.3); }

.hero-pills {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.pill {
  background: rgba(255,255,255,0.11);
  color: rgba(255,255,255,0.88);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  border: 0.5px solid rgba(255,255,255,0.2);
}

/* ── LAYOUT ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 0.5rem;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.section-intro {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

hr.divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 0 0 3rem;
}

/* ── HOUSE CARDS ── */
.houses { display: flex; flex-direction: column; gap: 2rem; }

.house-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* Gallery */
.gallery {
  position: relative;
  height: 280px;
  background: #c8d8e0;
  overflow: hidden;
}

.gallery img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gallery img.active { opacity: 1; }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 14px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.52));
  color: #fff;
  font-size: 12px;
  font-weight: 400;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.32);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.gallery-btn:hover { background: rgba(0,0,0,0.55); }
.gallery-btn.prev { left: 12px; }
.gallery-btn.next { right: 12px; }

.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.dot.active { background: #fff; }

/* Card content */
.house-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 0.5px solid var(--border-light);
}

.house-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
}

.house-type {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

.price-tag {
  background: var(--teal-light);
  color: var(--teal-dark);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.house-body { padding: 1.5rem 1.75rem; }

.house-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.amenity {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.amenity svg {
  width: 16px; height: 16px;
  stroke: var(--teal-mid);
  flex-shrink: 0;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0f4f1;
  border: 0.5px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── REGION ── */
.region-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.region-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.region-card p { font-size: 14px; color: var(--text-muted); line-height: 1.75; }

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 1.5rem;
}

.highlight {
  background: #f4f7f5;
  border-radius: 14px;
  padding: 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.highlight svg {
  width: 20px; height: 20px;
  stroke: var(--blue-mid);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 1px;
}

.highlight strong { font-size: 13px; font-weight: 500; display: block; margin-bottom: 2px; }
.highlight span { font-size: 12px; color: var(--text-muted); }

/* ── INFO GRID ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 2rem;
}

.info-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
}

.info-card h4 {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.info-card p { font-size: 13px; color: var(--text); line-height: 1.55; }

/* ── CONTACT ── */
.contact-box {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--teal-dark) 100%);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
}

.contact-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.contact-box p { font-size: 15px; color: rgba(255,255,255,0.72); margin-bottom: 2rem; line-height: 1.65; }

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-link:hover { opacity: 0.8; }

.contact-link svg {
  width: 20px; height: 20px;
  stroke: var(--teal-pale);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── LEGAL / PROSE PAGES (Impressum, Datenschutz) ── */
.legal { max-width: 760px; }

.legal h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.legal h2 {
  font-size: 19px;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal h3 {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.35rem;
}

.legal p, .legal li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.9rem;
}

.legal ul { padding-left: 1.25rem; margin-bottom: 0.9rem; }

.legal a { color: var(--blue-mid); }

.legal .todo {
  background: #fff7e6;
  border: 0.5px solid #f0c674;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 13px;
  color: #7a5a00;
  margin: 0.5rem 0 1.5rem;
}

.legal address {
  font-style: normal;
  line-height: 1.8;
  color: var(--text);
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 0.5px solid var(--border);
}

footer a { color: var(--text-muted); }

.footer-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ── VERFÜGBARKEITSKALENDER ── */
.avail-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.avail-tab {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 100px;
  border: 0.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.avail-tab:hover { border-color: var(--teal-mid); color: var(--text); }

.avail-tab[aria-selected="true"] {
  background: var(--teal-mid);
  border-color: var(--teal-mid);
  color: #fff;
  font-weight: 500;
}

.avail-panel { display: none; }
.avail-panel.active { display: block; }

.avail-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.avail-meta .price { font-size: 15px; font-weight: 500; color: var(--teal-dark); }
.avail-meta a { color: var(--blue-mid); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}

.cal-month {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1rem 1.1rem;
}

.cal-month-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  text-align: center;
  margin-bottom: 0.7rem;
  color: var(--text);
}

.cal-weekdays, .cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-weekdays {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.cal-weekdays span { text-align: center; padding: 2px 0; }

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  border-radius: 6px;
  color: var(--text);
  background: #f4f7f5;
}

.cal-day.empty { background: none; }

.cal-day.booked {
  background: #e2e5e3;
  color: #9a9a9a;
  text-decoration: line-through;
}

.cal-day.past { opacity: 0.35; }

.cal-day.today {
  outline: 1.5px solid var(--teal-mid);
  outline-offset: -1.5px;
  font-weight: 600;
}

.cal-legend {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1.25rem;
}

.cal-legend span { display: flex; align-items: center; gap: 7px; }

.cal-legend i {
  width: 14px; height: 14px;
  border-radius: 4px;
  display: inline-block;
}

.cal-legend i.free { background: #f4f7f5; border: 0.5px solid var(--border); }
.cal-legend i.busy { background: #e2e5e3; }

.avail-note {
  background: #fff7e6;
  border: 0.5px solid #f0c674;
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  font-size: 13px;
  color: #7a5a00;
  margin-bottom: 1.25rem;
}

.avail-error {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.avail-error a { color: var(--blue-mid); font-weight: 500; }

/* ── ANFRAGEFORMULAR ── */
.inquiry-form fieldset {
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.75rem 1.75rem;
  margin-bottom: 1.5rem;
  background: var(--surface);
}

.inquiry-form legend {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  padding: 0 0.6rem;
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.form-row:last-child { margin-bottom: 0; }

.form-field { display: flex; flex-direction: column; gap: 5px; }

.form-field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-field .req { color: var(--teal-mid); }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field textarea { resize: vertical; min-height: 110px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.13);
}

.field-error { font-size: 12px; color: #b3261e; text-transform: none; letter-spacing: 0; }

.form-field:has(.field-error) input,
.form-field:has(.field-error) select,
.form-field:has(.field-error) textarea { border-color: #b3261e; }

.form-errors {
  background: #fdecea;
  border: 0.5px solid #f0a9a2;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 14px;
  color: #8c1d18;
  margin-bottom: 1.5rem;
}

.form-errors ul { margin: 0.5rem 0 0 1.1rem; }

.form-success {
  background: var(--teal-light);
  border: 0.5px solid var(--teal-pale);
  border-radius: 16px;
  padding: 2rem;
  color: var(--teal-dark);
}

.form-success h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.form-success p { font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.form-success a { color: var(--teal-dark); font-weight: 500; }

.form-privacy {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 560px;
}

.form-privacy a { color: var(--blue-mid); }

/* Honeypot — für Menschen unsichtbar, für Bots ein Köder.
   Nicht display:none, das erkennen manche Bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .cal-grid { grid-template-columns: 1fr; }
  .avail-tab { flex: 1 1 auto; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .inquiry-form fieldset { padding: 1.25rem 1.1rem 1.4rem; }
  nav .nav-links { display: none; }
  .hero { padding: 4rem 1.25rem 5rem; }
  .amenities { grid-template-columns: 1fr; }
  .house-header { flex-direction: column; }
  .gallery { height: 220px; }
}
