/* ==========================================================
   Schwansee.Haus – Ferienhaus Groß Schwansee
   ========================================================== */

:root {
  --sea: #10384f;
  --sea-dark: #0b2a3c;
  --sand: #f7f3ec;
  --sand-dark: #efe8dc;
  --reed: #b4885a;
  --reed-dark: #976f45;
  --ink: #22303a;
  --ink-soft: #5a6b77;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 56, 79, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-size: 16px;
}

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

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--sea); }

h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: .5rem; }

.section { padding: 4.5rem 0; }

.section-lead {
  color: var(--ink-soft);
  max-width: 46rem;
  margin-bottom: 2.2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--reed-dark);
  margin-bottom: .6rem;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .3s, box-shadow .3s;
  padding: .9rem 0;
}

.site-header.scrolled {
  background: rgba(247, 243, 236, .95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  transition: color .3s;
}

.site-header.scrolled .brand { color: var(--sea); }

.brand svg { width: 42px; height: 32px; fill: currentColor; }

.brand-logo {
  display: block;
  height: 62px;
  width: auto;
  background: #fff;
  padding: 6px 12px;
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .2);
}

.footer-logo { height: 78px; }

@media (max-width: 900px) {
  .brand-logo { height: 52px; }
}

.main-nav { display: flex; gap: 1.4rem; align-items: center; }

.main-nav a {
  text-decoration: none;
  color: var(--white);
  font-size: .92rem;
  font-weight: 500;
  transition: color .3s;
}

.site-header.scrolled .main-nav a { color: var(--ink); }

.main-nav a:hover { color: var(--reed); }

.main-nav .btn-book {
  background: var(--reed);
  color: var(--white) !important;
  padding: .55rem 1.1rem;
  border-radius: 999px;
}

.main-nav .btn-book:hover { background: var(--reed-dark); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  color: var(--white);
}

.site-header.scrolled .nav-toggle { color: var(--sea); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.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-in-out;
  transform: scale(1.03);
}

.hero-slide.active { opacity: 1; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(11,42,60,.42), rgba(11,42,60,.2) 40%, rgba(11,42,60,.8));
}

.hero-content { position: relative; z-index: 2; padding-bottom: 5rem; }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  max-width: 18ch;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}

.hero p.sub {
  margin-top: 1rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 42rem;
  text-shadow: 0 1px 10px rgba(0,0,0,.4);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.6rem;
}

.hero-badges span {
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: .35rem .95rem;
  font-size: .85rem;
}

.hero-cta { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  transition: transform .2s, background .2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--reed); color: var(--white); }
.btn-primary:hover { background: var(--reed-dark); }

.btn-ghost { border: 1.5px solid rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }

/* ---------- Highlights ---------- */

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.3rem;
}

.highlight {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow);
}

.highlight .icon { font-size: 1.7rem; margin-bottom: .7rem; }

.highlight h3 { font-size: 1.08rem; margin-bottom: .35rem; }

.highlight p { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Haus / Zimmer ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2.6rem;
  align-items: center;
}

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

.rooms-list { list-style: none; margin-top: 1.2rem; }

.rooms-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--sand-dark);
  font-size: .95rem;
}

.rooms-list li strong { color: var(--sea); font-weight: 600; }

.rooms-list li span { color: var(--ink-soft); text-align: right; }

/* ---------- Ausstattung ---------- */

.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.3rem;
}

.amenity-group {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}

.amenity-group h3 {
  font-size: 1.05rem;
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.amenity-group ul { list-style: none; }

.amenity-group li {
  padding: .28rem 0 .28rem 1.4rem;
  position: relative;
  font-size: .92rem;
  color: var(--ink-soft);
}

.amenity-group li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--reed);
  font-weight: 700;
}

/* ---------- Galerie ---------- */

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.6rem;
}

.gallery-filters button {
  border: 1.5px solid var(--sea);
  background: transparent;
  color: var(--sea);
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background .2s, color .2s;
}

.gallery-filters button.active,
.gallery-filters button:hover {
  background: var(--sea);
  color: var(--white);
}

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

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--sand-dark);
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem .8rem .6rem;
  background: linear-gradient(transparent, rgba(11,42,60,.8));
  color: var(--white);
  font-size: .8rem;
  opacity: 0;
  transition: opacity .3s;
}

.gallery-item:hover figcaption { opacity: 1; }

.gallery-item.hidden { display: none; }

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 24, 34, .93);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.lightbox .caption { color: #cfdde6; margin-top: 1rem; font-size: .95rem; text-align: center; }

.lightbox button {
  position: absolute;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background .2s;
}

.lightbox button:hover { background: rgba(255,255,255,.25); }

.lightbox .lb-close { top: 1.2rem; right: 1.2rem; }
.lightbox .lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ---------- Preise & Buchung ---------- */

.booking-section { background: var(--sea); color: #dbe7ee; }

.booking-section h2, .booking-section .eyebrow { color: var(--white); }

.booking-section .eyebrow { color: var(--reed); }

.booking-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.price-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}

.price-card .price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--white);
}

.price-card .price small { font-size: 1rem; color: #9fb8c6; }

.price-card ul { list-style: none; margin-top: 1.2rem; }

.price-card li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: .92rem;
}

.smoobu-booking {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 1.2rem;
  margin-top: 2rem;
  min-height: 320px;
}

.smoobu-booking iframe { width: 100% !important; border: 0; display: block; }

/* Belegungskalender (aus Smoobu-Daten) */

.availability { margin-top: 2.5rem; }

.availability h3 { color: var(--white); margin-bottom: 1rem; }

.cal-months {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.cal-month {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
}

.cal-month h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: .6rem;
  text-align: center;
}

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

.cal-grid .dow {
  font-size: .65rem;
  text-align: center;
  color: #9fb8c6;
  padding-bottom: .2rem;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  color: #7c95a5;
}

.cal-day.free { background: rgba(104, 190, 141, .28); color: #cdeedd; }

.cal-day.booked { background: rgba(220, 90, 90, .25); color: #e8b3b3; text-decoration: line-through; }

.cal-legend {
  display: flex;
  gap: 1.4rem;
  margin-top: 1rem;
  font-size: .85rem;
  color: #9fb8c6;
  flex-wrap: wrap;
}

.cal-legend span::before {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 4px;
  margin-right: .45rem;
  vertical-align: -1px;
}

.cal-legend .lg-free::before { background: rgba(104, 190, 141, .6); }
.cal-legend .lg-booked::before { background: rgba(220, 90, 90, .55); }

/* ---------- Lage ---------- */

.location-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.5rem;
  align-items: start;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

.distances { list-style: none; margin-top: 1rem; }

.distances li {
  display: flex;
  justify-content: space-between;
  padding: .55rem 0;
  border-bottom: 1px solid var(--sand-dark);
  font-size: .95rem;
}

.distances li span:last-child { color: var(--ink-soft); }

/* ---------- Nachhaltigkeit ---------- */

.eco { background: var(--sand-dark); }

.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.eco-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.3rem;
  font-size: .92rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow);
}

.eco-item strong { display: block; color: var(--sea); margin-bottom: .3rem; }

/* ---------- Bewertungen ---------- */

.reviews { background: var(--sand-dark); }

.review-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 1.5rem 0 2.4rem;
}

.score-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.8rem;
  text-align: center;
  min-width: 170px;
}

.score-card .score {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--reed-dark);
  line-height: 1;
}

.score-card .score small { font-size: 1rem; color: var(--ink-soft); }

.score-card .score-src { font-weight: 600; margin-top: .4rem; color: var(--sea); }

.score-card .score-count { font-size: .85rem; color: var(--ink-soft); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.3rem;
}

.review {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem;
  margin: 0;
}

.review .stars { color: #e0a52b; letter-spacing: 2px; margin-bottom: .6rem; }

.review p { font-size: .96rem; color: var(--ink); font-style: italic; }

.review footer { margin-top: .9rem; font-size: .85rem; color: var(--ink-soft); font-style: normal; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--sea-dark);
  color: #9fb8c6;
  padding: 3rem 0 2rem;
  font-size: .9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer .brand { color: var(--white); margin-bottom: .8rem; }

.site-footer h4 { color: var(--white); font-size: .95rem; margin-bottom: .7rem; }

.site-footer a { color: #cfdde6; text-decoration: none; }

.site-footer a:hover { color: var(--reed); }

.site-footer ul { list-style: none; }

.site-footer li { padding: .2rem 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
}

/* ---------- Legal pages ---------- */

.legal-page { padding: 8rem 0 4rem; max-width: 760px; }

.legal-page h1 { margin-bottom: 1.5rem; }

.legal-page h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }

.legal-page p, .legal-page li { color: var(--ink-soft); margin-bottom: .6rem; }

.todo-note {
  background: #fff4e2;
  border: 1px solid #eecf9f;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  color: #7a5a24;
  font-size: .9rem;
  margin: 1rem 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .split, .split.reverse, .booking-grid, .location-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(75vw, 320px);
    background: var(--sea-dark);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform .3s;
  }

  .main-nav.open { transform: translateX(0); }

  .main-nav a { color: var(--white) !important; font-size: 1.1rem; }
}
