:root {
  --bg: #faf8f4;
  --bg-alt: #f0ece3;
  --ink: #2c2a26;
  --muted: #6b665d;
  --accent: #6b7d5b;
  --accent-dark: #55664a;
  --line: #e2dcd0;
  --radius: 14px;
  --maxw: 1100px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-weight: 300;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 400;
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--accent-dark); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  /* Lege ein Foto unter public/img/hero.jpg ab – sonst greift der Farbverlauf */
  background-image: url("img/hero.jpg"), linear-gradient(135deg, #4a5a3d, #7d8f68 60%, #aeb89a);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,38,24,0.25), rgba(30,38,24,0.5));
}
.hero-content {
  position: relative;
  padding: 2rem 1.5rem;
  max-width: 680px;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0 0 1rem;
  opacity: 0.9;
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 6rem);
  margin: 0 0 0.3em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  margin: 0 0 2rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: 0;
  transition: transform 0.15s, background 0.2s;
}
.btn-primary {
  background: #fff;
  color: var(--accent-dark);
}
.hero .btn-primary:hover { transform: translateY(-2px); text-decoration: none; }
.booking-form .btn-primary {
  background: var(--accent);
  color: #fff;
}
.booking-form .btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 1.5rem; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-inner.narrow { max-width: 680px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Großes Foto-Band – lege public/img/haus.jpg ab (Fallback: Farbverlauf) */
.feature-photo {
  margin-top: 3rem;
  height: clamp(220px, 38vw, 460px);
  border-radius: var(--radius);
  background-image: url("img/haus.jpg"), linear-gradient(135deg, #6f8453, #aeb89a);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px -24px rgba(40, 50, 35, 0.5);
}

.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Facts ---------- */
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.facts li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
}
.section-alt .facts li { background: #fff; }
.fact-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.fact-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- Amenities ---------- */
.amenities {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem 2rem;
}
.amenities li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  padding-left: 1.8rem;
}
.amenities li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---------- Gallery ---------- */
.gallery {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 12px 30px -22px rgba(40, 50, 35, 0.55);
  transition: transform 0.25s ease;
}
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item figcaption {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 0.85rem;
  padding: 0.8rem 1rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(0,0,0,0.45));
}
/* Lege deine Fotos unter public/img/galerie-1.jpg … galerie-6.jpg ab.
   Fehlt eine Datei, greift automatisch der Farbverlauf darunter. */
.ph-1 { background-image: url("img/galerie-1.jpg"), linear-gradient(135deg, #8a9a72, #b6bf9e); }
.ph-2 { background-image: url("img/galerie-2.jpg"), linear-gradient(135deg, #a08e74, #cdbfa3); }
.ph-3 { background-image: url("img/galerie-3.jpg"), linear-gradient(135deg, #7d9189, #adc0b6); }
.ph-4 { background-image: url("img/galerie-4.jpg"), linear-gradient(135deg, #6f8453, #9bae74); }
.ph-5 { background-image: url("img/galerie-5.jpg"), linear-gradient(135deg, #9c8a6b, #c7b690); }

.note { margin-top: 1.2rem; font-size: 0.85rem; color: var(--muted); }
.note code { background: var(--bg-alt); padding: 0.1rem 0.4rem; border-radius: 4px; }

/* ---------- Lage ---------- */
.bullets { padding-left: 1.2rem; color: var(--muted); }
.bullets li { margin-bottom: 0.4rem; }
.address {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.4;
  margin: 1.2rem 0;
}
.tips { margin-top: 3.5rem; }
.tips h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 0 0 1.5rem;
}
.tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.tip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: 0 12px 30px -26px rgba(40, 50, 35, 0.5);
}
.tip h4 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
  color: var(--accent-dark);
}
.tip p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.map-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #e7e1d5, #e7e1d5 12px, #ded7c8 12px, #ded7c8 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px solid var(--line);
}

/* ---------- Booking form ---------- */
.booking-form { margin-top: 2rem; display: grid; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-row:has(input[name="guests"]) { grid-template-columns: 1fr 1fr 0.7fr; }
.booking-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}
.booking-form input,
.booking-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.booking-form input:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107, 125, 91, 0.15);
}
.booking-form .btn { justify-self: start; }
.booking-form .btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
/* Honeypot: für Menschen unsichtbar, Bots tappen hinein */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note { font-size: 0.8rem; color: var(--muted); margin: 0; }
.form-status { font-size: 0.95rem; margin: 0; min-height: 1.2em; }
.form-status.success { color: var(--accent-dark); font-weight: 500; }
.form-status.error { color: #b04a3a; font-weight: 500; }

/* ---------- Calendar ---------- */
.calendar {
  margin-top: 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 16px 40px -28px rgba(40, 50, 35, 0.5);
}
.section-alt .calendar { background: var(--bg); }
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.calendar-head span {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
}
.calendar-head button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.calendar-head button:hover { background: var(--bg-alt); }
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-weekdays {
  margin-bottom: 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-align: center;
}
.cal-day {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.section-alt .cal-day { background: var(--bg); }
.cal-day:hover:not(:disabled) { background: var(--bg-alt); }
.cal-day.past { color: #c3bdb1; cursor: default; background: transparent; border-color: transparent; }
.cal-day.booked {
  background: #e9d9d3;
  color: #a06a58;
  cursor: not-allowed;
  border-color: #e0c7bd;
  text-decoration: line-through;
}
.cal-day.sel { background: var(--accent); color: #fff; border-color: var(--accent); }
.cal-day.sel-start { background: var(--accent-dark); border-color: var(--accent-dark); }
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.calendar-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.dot-free { background: #fff; border: 1px solid var(--line); }
.dot-booked { background: #e9d9d3; border: 1px solid #e0c7bd; }
.dot-sel { background: var(--accent); }

/* ---------- Rechtstexte (Impressum/Datenschutz) ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.legal a.back { font-size: 0.9rem; }
.legal h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.8rem); margin: 1rem 0 2rem; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
.legal p, .legal li { color: var(--ink); }
.legal .muted-note {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1.5rem 0;
}
.legal .fill { background: #fdf6d8; padding: 0 0.2rem; border-radius: 3px; }

/* ---------- Fehlerseite (404) ---------- */
.error-page {
  max-width: 560px;
  margin: 0 auto;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
.error-page h1 { font-size: clamp(2rem, 6vw, 3rem); }
.error-page .btn-primary {
  background: var(--accent);
  color: #fff;
  margin-top: 1rem;
}
.error-page .btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #d9d4c9;
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin: 0; }
.footer-tag { font-size: 0.85rem; opacity: 0.7; margin: 0.2rem 0 0; }
.footer-contact a, .footer-legal a { color: #d9d4c9; }
.footer-legal { display: flex; flex-direction: column; gap: 0.4rem; }
.copyright {
  max-width: var(--maxw);
  margin: 1.5rem auto 0;
  font-size: 0.8rem;
  opacity: 0.6;
  text-align: center;
}

/* ---------- Dark Mode ---------- */
[data-theme="dark"] {
  --bg: #1b1d18;
  --bg-alt: #23261f;
  --ink: #e8e4da;
  --muted: #a8a293;
  --accent: #8fa376;
  --accent-dark: #a6b88d;
  --line: #353a2d;
}
[data-theme="dark"] .site-header { background: rgba(27, 29, 24, 0.9); }
[data-theme="dark"] .section-alt .facts li,
[data-theme="dark"] .tip,
[data-theme="dark"] .calendar,
[data-theme="dark"] .booking-form input,
[data-theme="dark"] .booking-form textarea,
[data-theme="dark"] .cal-day { background: var(--bg-alt); color: var(--ink); }
[data-theme="dark"] .section-alt .calendar,
[data-theme="dark"] .section-alt .cal-day { background: var(--bg); }
[data-theme="dark"] .calendar-head button { background: var(--bg-alt); color: var(--ink); }
[data-theme="dark"] img { filter: brightness(0.92); }

.theme-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}
.theme-icon::before { content: "\263E"; font-size: 1.2rem; line-height: 1; }
[data-theme="dark"] .theme-icon::before { content: "\2600"; }

/* ---------- Hero-Slideshow ---------- */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay { z-index: 1; }
.hero-content { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* ---------- Wetter-Widget ---------- */
.weather {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  margin: 0 0 1.3rem;
  font-size: 0.92rem;
}
.weather-icon { font-size: 1.7rem; line-height: 1; }
.weather-loc { color: var(--muted); font-size: 0.78rem; }

/* ---------- Karte ---------- */
.map-embed {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px -24px rgba(40, 50, 35, 0.55);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 17, 12, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: lb-fade 0.2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lb-figure {
  margin: 0;
  max-width: 92vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.lb-figure img {
  max-width: 92vw;
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lb-figure figcaption { color: #eee; font-size: 0.95rem; }
.lb-close {
  position: absolute;
  top: 1rem;
  right: 1.4rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: #fff;
  font-size: 2.2rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-nav:hover { background: rgba(255, 255, 255, 0.25); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.gallery-item { cursor: pointer; }

/* ---------- Scroll-Animationen ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    align-items: flex-start;
    display: none;
  }
  .nav-links.open { display: flex; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .form-row,
  .form-row:has(input[name="guests"]) { grid-template-columns: 1fr; }
}
