/* ------------------------------------------------------------------
   Ferienwohnung Möwe – Pellworm
   ------------------------------------------------------------------ */

:root {
  --color-sea:        #2c5f7f;
  --color-sea-dark:   #1f4460;
  --color-sea-light:  #5e8aa6;
  --color-sand:       #d4a574;
  --color-sand-soft:  #ecdbc1;
  --color-terracotta: #c97b5c;
  --color-bg:         #fafaf7;
  --color-bg-alt:     #f3ede3;
  --color-surface:    #ffffff;
  --color-text:       #2b2b2b;
  --color-text-soft:  #555e68;
  --color-border:     #e3dfd6;

  --ff-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --ff-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(20, 40, 60, 0.08);
  --shadow:    0 8px 24px rgba(20, 40, 60, 0.10);
  --shadow-lg: 0 20px 60px rgba(20, 40, 60, 0.18);

  --container: 1200px;
  --container-narrow: 820px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--color-sea); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-terracotta); }

h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-sea-dark);
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }

p { margin: 0 0 1em; }

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

/* ============================ HEADER ============================= */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--ff-serif);
  font-size: 1.35rem;
  color: var(--color-sea-dark);
  letter-spacing: .02em;
}
.brand-mark {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-sea);
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
}
.nav-list {
  display: flex;
  gap: 2rem;
  margin: 0; padding: 0;
  list-style: none;
}
.nav-list a {
  color: var(--color-text);
  font-size: 0.96rem;
  letter-spacing: .02em;
}
.nav-list a:hover { color: var(--color-sea); }

.nav-toggle {
  display: none;
  background: none; border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-text);
  margin: 5px auto;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ HERO =============================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: end start;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../assets/img/hero-sonnenuntergang.jpg") center/cover no-repeat;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
              rgba(20,40,60,0.25) 0%,
              rgba(20,40,60,0.10) 45%,
              rgba(20,40,60,0.75) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 1.5rem 4.5rem;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.hero h1 {
  color: #fff;
  font-weight: 400;
  max-width: 18ch;
  margin-bottom: .3em;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.hero .tagline {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  max-width: 52ch;
  margin-bottom: 2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
  opacity: .95;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.98rem;
  letter-spacing: .02em;
}
.hero-meta span {
  display: inline-flex; align-items: center; gap: .5rem;
}

/* ============================ BUTTONS ============================ */

.btn {
  display: inline-block;
  padding: .95rem 2rem;
  font-size: 1rem;
  font-family: inherit;
  letter-spacing: .04em;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .25s ease;
}
.btn-primary {
  background: var(--color-terracotta);
  color: #fff;
}
.btn-primary:hover {
  background: #b56a4d;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--color-sea-dark);
}

/* ============================ SECTIONS =========================== */

section { padding: 6rem 0; }
section.tight { padding: 4rem 0; }
section.alt-bg { background: var(--color-bg-alt); }

.section-eyebrow {
  display: inline-block;
  color: var(--color-terracotta);
  font-size: 0.85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title { margin-bottom: 2.5rem; }
.section-title.centered { text-align: center; }
.section-title.centered + p { text-align: center; }
.lede { font-size: 1.15rem; color: var(--color-text-soft); max-width: 60ch; }

/* ============================ INTRO ============================== */

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.intro-grid .intro-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.intro-grid .intro-image img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ============================ FACTS ============================== */

.facts-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.fact {
  background: var(--color-surface);
  padding: 1.75rem 1rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: transform .25s ease, box-shadow .25s ease;
}
.fact:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.fact-icon {
  font-size: 1.8rem;
  margin-bottom: .4rem;
  color: var(--color-sea);
  display: block;
}
.fact-value {
  font-family: var(--ff-serif);
  font-size: 1.35rem;
  color: var(--color-sea-dark);
  line-height: 1.1;
}
.fact-label {
  display: block;
  font-size: 0.82rem;
  color: var(--color-text-soft);
  letter-spacing: .04em;
  margin-top: .2rem;
}

/* ============================ GALLERY ============================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  position: relative;
  background: #0e2030;
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease, opacity .4s ease;
}
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: .9rem 1rem .8rem;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: .02em;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.6));
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery figure:hover figcaption { opacity: 1; }

/* Masonry-like sizing */
.gallery .span-6 { grid-column: span 6; aspect-ratio: 4/3; }
.gallery .span-4 { grid-column: span 4; aspect-ratio: 4/3; }
.gallery .span-8 { grid-column: span 8; aspect-ratio: 16/9; }
.gallery .span-3 { grid-column: span 3; aspect-ratio: 3/4; }

/* ============================ AMENITIES ========================== */

.amenities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}
.amenities h3 {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: .6rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--color-sea);
}
.amenities ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.amenities li {
  position: relative;
  padding: .35rem 0 .35rem 1.6rem;
  color: var(--color-text-soft);
  font-size: 0.97rem;
}
.amenities li::before {
  content: "";
  position: absolute;
  left: 0; top: .85rem;
  width: 6px; height: 6px;
  background: var(--color-terracotta);
  border-radius: 50%;
}

/* ============================ LOCATION =========================== */

.location-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.location-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.location-image img { width: 100%; height: 100%; object-fit: cover; }

.distances {
  list-style: none;
  padding: 0; margin: 1.5rem 0 0;
  border-top: 1px solid var(--color-border);
}
.distances li {
  display: flex;
  justify-content: space-between;
  padding: .85rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-soft);
}
.distances strong { color: var(--color-sea-dark); font-weight: 500; }

/* ============================ PRICE ============================== */

.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.price-card .price {
  font-family: var(--ff-serif);
  font-size: 3rem;
  color: var(--color-sea-dark);
  line-height: 1;
}
.price-card .price small {
  font-size: 1rem;
  color: var(--color-text-soft);
  font-family: var(--ff-sans);
}
.price-card .note {
  color: var(--color-text-soft);
  font-size: 0.93rem;
  margin: 1rem 0 1.8rem;
}
.price-card .btn { width: 100%; }

.price-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem 1.5rem;
  margin: 1.5rem 0;
  list-style: none;
  padding: 0;
  text-align: left;
  font-size: 0.93rem;
  color: var(--color-text-soft);
}
.price-features li::before {
  content: "✓";
  color: var(--color-terracotta);
  margin-right: .5rem;
  font-weight: bold;
}

/* ============================ HOST =============================== */

.host {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}
.host-photo {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-sand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-serif);
  font-size: 5rem;
  color: var(--color-sea-dark);
  border: 1px solid var(--color-border);
}
.host blockquote {
  font-family: var(--ff-serif);
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--color-text);
  border-left: 3px solid var(--color-terracotta);
  padding-left: 1.4rem;
  margin: 0 0 1.5rem;
}
.host cite {
  display: block;
  font-style: normal;
  color: var(--color-text-soft);
  letter-spacing: .04em;
}

/* ============================ REVIEWS ============================ */

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.review {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}
.review-stars {
  color: var(--color-sand);
  font-size: 1.1rem;
  letter-spacing: .1em;
  margin-bottom: .8rem;
}
.review-text {
  flex: 1;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}
.review-meta {
  color: var(--color-text-soft);
  font-size: 0.88rem;
  letter-spacing: .04em;
}

/* ============================ CONTACT ============================ */

.contact {
  background: var(--color-sea-dark);
  color: #fff;
}
.contact h2 { color: #fff; }
.contact .lede { color: rgba(255,255,255,.82); }
.contact a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.contact a:hover { color: var(--color-sand); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}
.contact-item h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .15em; margin-bottom: .5rem; }
.contact-item p { color: rgba(255,255,255,.85); }

/* ============================ FOOTER ============================= */

.site-footer {
  background: #0f2030;
  color: rgba(255,255,255,.7);
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
}
.site-footer .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.site-footer a { color: rgba(255,255,255,.9); }
.site-footer a:hover { color: var(--color-sand); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }

/* ============================ LEGAL PAGES ======================== */

.legal-page {
  padding-top: 140px;
  padding-bottom: 4rem;
}
.legal-page h1 { margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.legal-page h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.legal-page p, .legal-page li { color: var(--color-text); }
.legal-page .placeholder {
  background: var(--color-sand-soft);
  color: #6a4e2a;
  padding: .1em .4em;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em;
}

/* ============================ LIGHTBOX =========================== */

.lightbox {
  position: fixed; inset: 0;
  background: rgba(10, 20, 30, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,.22);
}

/* ============================ RESPONSIVE ========================= */

@media (max-width: 960px) {
  section { padding: 4rem 0; }
  .intro-grid,
  .location-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .intro-grid .intro-image { aspect-ratio: 16/10; }
  .facts-grid { grid-template-columns: repeat(3, 1fr); }
  .amenities { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .reviews { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .host { grid-template-columns: 160px 1fr; gap: 2rem; }
  .host-photo { font-size: 3.5rem; }
  .gallery { grid-template-columns: repeat(6, 1fr); }
  .gallery .span-8,
  .gallery .span-6 { grid-column: span 6; }
  .gallery .span-4 { grid-column: span 3; }
  .gallery .span-3 { grid-column: span 3; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-list {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    background: var(--color-bg);
    padding: 2rem 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-110%);
    transition: transform .3s ease;
  }
  .nav-open .nav-list { transform: translateY(0); }
  .nav-toggle { display: block; }

  .hero-content { padding-top: 6rem; padding-bottom: 3rem; }
  .hero-meta { gap: .8rem 1.5rem; font-size: .9rem; }

  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .amenities { grid-template-columns: 1fr; }
  .host { grid-template-columns: 1fr; text-align: center; }
  .host-photo { max-width: 180px; margin: 0 auto; }
  .host blockquote { text-align: left; }
  .gallery .span-4, .gallery .span-3, .gallery .span-6, .gallery .span-8 {
    grid-column: span 6;
    aspect-ratio: 4/3;
  }
  .price-features { grid-template-columns: 1fr; }

  .site-footer .inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
