/* ============================================================
   Ferienwohnung – Stylesheet
   Modernes, helles, responsives Design
   ============================================================ */

:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f6f4f0;
  --color-text: #2b2b2b;
  --color-muted: #6b6b6b;
  --color-accent: #c2855a;       /* warmes Terrakotta */
  --color-accent-dark: #a96b42;
  --color-line: #e7e2da;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --max-width: 1140px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-accent-dark); }

h1, h2, h3 { line-height: 1.2; font-weight: 600; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4.5rem 0; }
.section--soft { background: var(--color-bg-soft); }

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0 0 .5rem;
}

.section__lead {
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 0 2.5rem;
}

.text-center { text-align: center; }
.center-block { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: .85rem 1.7rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--color-accent-dark); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn--ghost:hover { background: rgba(255,255,255,.15); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav__brand {
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: .3px;
}
.nav__brand span { color: var(--color-accent); }
.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.nav__links a:hover { color: var(--color-accent); }
.nav__links a.is-active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav__toggle span {
  width: 26px;
  height: 2px;
  background: var(--color-text);
  transition: .3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
              url("../images/hero.jpg") center/cover no-repeat;
}
.hero__inner { max-width: 720px; padding: 2rem 1.25rem; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0 0 1rem;
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin: 0 0 2rem;
  opacity: .95;
}
.hero__buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery figure { cursor: pointer; }
.gallery figure:hover img { transform: scale(1.06); }

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, .88);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: .75;
  transition: opacity .2s;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: .95rem;
  text-align: center;
  margin: 0;
  opacity: .85;
  white-space: nowrap;
}

/* ---------- Karten / Features ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.card__icon { font-size: 2rem; margin-bottom: .6rem; }
.card h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--color-muted); }

/* ---------- Ausstattungsliste ---------- */
.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .75rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.amenities li {
  padding-left: 1.8rem;
  position: relative;
}
.amenities li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* ---------- Preistabelle ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.price-table th,
.price-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-line);
}
.price-table th { background: var(--color-bg-soft); font-weight: 600; }
.price-table tr:last-child td { border-bottom: none; }
.price-table .price { font-weight: 600; color: var(--color-accent-dark); white-space: nowrap; }
.price-note { color: var(--color-muted); font-size: .9rem; margin-top: 1rem; }

/* ---------- Formular ---------- */
.form {
  display: grid;
  gap: 1.1rem;
  max-width: 640px;
}
.form__row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.form label { font-weight: 500; display: block; margin-bottom: .35rem; }
.form input,
.form textarea {
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(194, 133, 90, .18);
}
.form textarea { resize: vertical; min-height: 130px; }

/* ---------- Kalender-Einbettung ---------- */
.calendar-embed {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-line);
  background: #fff;
}
.calendar-embed iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
}
@media (max-width: 600px) {
  .calendar-embed iframe { height: 480px; }
}

/* ---------- Info-Layout (Umgebung) ---------- */
.media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}
.media:last-child { margin-bottom: 0; }
.media--reverse .media__img { order: 2; }
.media__img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.media h3 { font-size: 1.45rem; margin: 0 0 .6rem; }
.media p { color: var(--color-muted); margin: 0 0 .8rem; }

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */
.legal { max-width: 780px; }
.legal h2 {
  font-size: 1.25rem;
  margin: 2.2rem 0 .6rem;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
.legal p,
.legal ul { color: var(--color-text); margin: 0 0 1rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .35rem; }
.legal a { word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer {
  background: #2b2b2b;
  color: #d8d4ce;
  padding: 3rem 0 2rem;
  margin-top: 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.site-footer h4 { color: #fff; margin: 0 0 .8rem; font-size: 1.05rem; }
.site-footer a { color: #d8d4ce; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
.footer__bottom {
  border-top: 1px solid #444;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  color: #9a958d;
  font-size: .9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav__links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { padding: .6rem 0; border-bottom: 1px solid var(--color-line); }
  .nav__links li:last-child { border-bottom: none; }
  .nav__toggle { display: flex; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .media,
  .media--reverse { grid-template-columns: 1fr; }
  .media--reverse .media__img { order: 0; }
  .form__row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
}
