/* ===========================================================
   Ferienwohnung Kirschenhagen – Stylesheet
   =========================================================== */

:root {
  --cream:      #faf7f2;
  --surface:    #ffffff;
  --ink:        #2e2a26;
  --muted:      #6f675e;
  --line:       #e7e0d6;
  --cherry:     #9e2b3a;
  --cherry-dk:  #832230;
  --green:      #46584a;
  --green-dk:   #36463a;
  --shadow:     0 6px 24px rgba(46,42,38,.08);
  --shadow-lg:  0 16px 50px rgba(46,42,38,.16);
  --radius:     14px;
  --maxw:       1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

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

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--surface); }

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 720px;
}

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

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,247,242,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
}
.brand span {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cherry);
}
.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: rgba(158,43,58,.08); text-decoration: none; }
.nav-links a.active { color: var(--cherry); background: rgba(158,43,58,.10); }

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: .25s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--cherry);
  color: #fff;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  transition: background .2s, transform .1s;
}
.btn:hover { background: var(--cherry-dk); text-decoration: none; transform: translateY(-1px); }
.btn--ghost {
  background: rgba(255, 255, 255, .18);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .7);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--cherry); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 76vh;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(rgba(46,42,38,.42), rgba(46,42,38,.58)),
              var(--hero) center/cover no-repeat;
}
.hero__inner { position: relative; max-width: 760px; margin: 0 auto; padding: 60px 24px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #ffd9c2; }
.hero p { font-size: 1.25rem; color: rgba(255,255,255,.92); margin-bottom: 1.6rem; }

.hero--page { min-height: 42vh; }
.hero--page h1 { margin: 0; }

/* ---------- Flat cards (home) ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.card__img { aspect-ratio: 4/3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 22px 22px 24px; }
.card__body h3 { color: var(--ink); margin-bottom: .3rem; }
.card__meta { color: var(--cherry); font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.card__body p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Two-column intro ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* ---------- Feature lists ---------- */
.features {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
}
.features li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
}
.features li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--cherry);
  font-weight: 700;
}
.factbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}
.factbar li {
  background: rgba(70,88,74,.10);
  color: var(--green-dk);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: .9rem;
  font-weight: 600;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery button {
  border: 0; padding: 0; cursor: pointer;
  background: none;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 10px;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s, filter .2s;
}
.gallery button:hover img { transform: scale(1.06); filter: brightness(1.04); }

/* ---------- Price table ---------- */
.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 1.5rem;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.price-card h3 { margin-bottom: .4rem; }
.price-card .amount {
  font-family: "Playfair Display", serif;
  font-size: 2.6rem;
  color: var(--cherry);
  line-height: 1;
  margin: .3rem 0;
}
.price-card .amount small { font-size: 1rem; color: var(--muted); }
.price-card p { color: var(--muted); font-size: .92rem; margin: 0; }

.note {
  background: rgba(158,43,58,.06);
  border-left: 3px solid var(--cherry);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.info-block { margin-bottom: 1.6rem; }
.info-block h3 { color: var(--green-dk); font-size: 1.1rem; }
.contact-line { font-size: 1.05rem; margin: .2rem 0; }
.map-embed { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

details.impressum {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
details.impressum summary { cursor: pointer; font-weight: 600; color: var(--muted); }
details.impressum p { font-size: .82rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dk);
  color: rgba(255,255,255,.85);
  padding: 48px 0 28px;
  margin-top: 0;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.site-footer h4 { font-family: "Playfair Display", serif; color: #fff; margin: 0 0 .6rem; font-size: 1.15rem; }
.site-footer p { font-size: .95rem; margin: .15rem 0; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { display: block; padding: 3px 0; font-size: .95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 18px;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  text-align: center;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20,18,16,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 10px 60px rgba(0,0,0,.5); }
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff; border: 0; cursor: pointer;
  width: 50px; height: 50px; border-radius: 50%;
  font-size: 1.6rem; line-height: 1;
  transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev { left: 22px; }
.lightbox__nav.next { right: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    gap: 2px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .grid-3, .prices { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .section { padding: 52px 0; }
}
