/* =========================================================
   Ferienforsthaus Eifel – Stylesheet
   Schlankes, wartungsarmes Design im Wald-Farbschema
   ========================================================= */

:root {
  --green:       #319f49;
  --green-dark:  #277d3a;
  --green-light: #e9f0e3;
  --brown:       #59450a;
  --brown-dark:  #362c16;
  --cream:       #f4efe4;
  --text:        #3a3320;
  --muted:       #6b6450;
  --white:       #ffffff;
  --shadow:      0 4px 16px rgba(54, 44, 22, .12);
  --radius:      8px;
  --maxw:        1140px;
  --serif:       Georgia, "Times New Roman", serif;
  --sans:        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  font-size: 17px;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--brown-dark);
  line-height: 1.25;
  font-weight: 700;
}

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

/* ---------------- Header / Navigation ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e6e0d2;
  box-shadow: 0 2px 8px rgba(54, 44, 22, .06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 56px; width: auto; }
.brand-text { font-family: var(--serif); line-height: 1.1; }
.brand-text strong { display: block; color: var(--brown-dark); font-size: 1.15rem; }
.brand-text span { color: var(--green-dark); font-size: .8rem; letter-spacing: .04em; }

.menu {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.menu a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--brown-dark);
  font-weight: 600;
  font-size: .96rem;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.menu a:hover { background: var(--green-light); color: var(--green-dark); }
.menu a.active { color: var(--green-dark); }
.menu a.active::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--green);
  border-radius: 3px;
  margin-top: 4px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--brown-dark);
  border-radius: 2px;
  transition: .3s;
}

/* ---------------- Hero / Page banner ---------------- */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(30, 40, 20, .35), rgba(30, 40, 20, .5));
}
.hero .hero-inner { position: relative; z-index: 2; padding: 30px 20px; max-width: 820px; }
.hero h1 { color: #fff; font-size: 2.9rem; margin: 0 0 12px; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.hero p { font-size: 1.2rem; margin: 0; text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* slimmer banner for sub-pages */
.page-banner {
  min-height: 300px;
}
.page-banner h1 { font-size: 2.4rem; }

.hero .btn { margin-top: 24px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 50px;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s, transform .15s;
  box-shadow: var(--shadow);
}
.btn:hover { background: var(--green-dark); transform: translateY(-2px); color: #fff; }
.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  box-shadow: none;
}
.btn-outline:hover { background: #fff; color: var(--green-dark); }

/* ---------------- Sections ---------------- */
section { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-green { background: var(--green-light); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head h2 { font-size: 2rem; margin: 0 0 14px; }
.section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--green);
  border-radius: 3px;
  margin: 16px auto 0;
}
.section-head p { color: var(--muted); margin: 0; font-size: 1.08rem; }

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

/* ---------------- Intro / two-column ---------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.badge-dtv { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.badge-dtv img { height: 70px; width: auto; box-shadow: none; border-radius: 0; }
.badge-dtv span { font-size: .95rem; color: var(--muted); }

/* ---------------- Feature cards (Home) ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 28px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(54,44,22,.18); }
.card .icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card .icon img { width: 34px; height: auto; }
.card h3 { margin: 0 0 10px; color: var(--green-dark); font-size: 1.3rem; }
.card p { margin: 0 0 18px; color: var(--muted); font-size: .98rem; flex: 1; }
.card .more { color: var(--green-dark); font-weight: 600; font-size: .95rem; }

/* ---------------- Gallery strip (home) ---------------- */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.strip img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ---------------- Content prose ---------------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.7rem; margin: 38px 0 14px; color: var(--green-dark); }
.prose h3 { font-size: 1.25rem; margin: 26px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--green-dark); }

/* feature blocks with image + text alternating */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 0 0 56px;
}
.feature-row:nth-child(even) .feature-img { order: 2; }
.feature-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.feature-text h2 { margin-top: 0; }
.feature-text ul { padding-left: 20px; }

/* two images side by side inside a feature */
.img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.img-pair img { aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------------- Price table ---------------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0 0 36px;
}
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #eee5d4; }
.price-table thead th { background: var(--green); color: #fff; font-family: var(--serif); }
.price-table tbody tr:nth-child(even) { background: var(--cream); }
.price-table .price { font-weight: 700; color: var(--brown-dark); white-space: nowrap; }
.price-highlight td { background: var(--green-light) !important; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}
.info-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
}
.info-box h3 { margin: 0 0 14px; color: var(--green-dark); }
.info-box ul { margin: 0; padding-left: 20px; }

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

/* ---------------- Lightbox ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 14, .92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox .lb-close, .lightbox .lb-nav {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 2rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox .lb-close:hover, .lightbox .lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #fff; font-size: .95rem; }

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}
.contact-card {
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 22px;
}
.contact-card h3 { margin: 0 0 12px; color: var(--green-dark); }
.contact-card p { margin: 4px 0; }

form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
form input, form textarea, form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d0bd;
  border-radius: 6px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
}
form input:focus, form textarea:focus, form select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(49,159,73,.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--brown-dark);
  color: #d9d2c2;
  padding: 56px 0 26px;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 1.1rem; }
.site-footer a { color: #bfe0c4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer img.flogo { height: 64px; width: auto; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 7px 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  color: #9a9482;
  font-size: .88rem;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid #e6e0d2;
    box-shadow: var(--shadow);
    padding: 10px 16px 18px;
    gap: 2px;
    display: none;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 10px; }
  .menu a.active::after { display: none; }

  .split, .feature-row, .contact-grid, .info-grid { grid-template-columns: 1fr; gap: 28px; }
  .feature-row:nth-child(even) .feature-img { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: 2.1rem; }
  .page-banner h1 { font-size: 1.9rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  section { padding: 44px 0; }
  .brand-text strong { font-size: 1rem; }
  .strip { grid-template-columns: 1fr 1fr; }
}
