/*
Theme Name: FamilienCampingFun
Theme URI: https://familiencampingfun.de
Author: FamilienCampingFun
Author URI: https://familiencampingfun.de
Description: Maßgeschneidertes Theme für die Wohnmobil-Vermietung FamilienCampingFun. Modernes Design mit Buchungssystem, Galerie, FAQ und Adminbereich.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: familiencamping
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* === DESIGN TOKENS === */
:root {
  --forest:      #2d6a4f;
  --forest-dark: #1b4332;
  --forest-light:#40916c;
  --lemon:       #f4d35e;
  --coral:       #e07a5f;
  --blue:        #3d8bcd;
  --ink:         #1a2e25;
  --mist:        #f4f7f5;
  --mint:        #d8f3dc;
  --white:       #ffffff;
  --line:        rgba(26,46,37,0.10);
  --muted:       #5a7268;
  --radius:      8px;
  --shadow-sm:   0 2px 8px rgba(26,46,37,0.08);
  --shadow-md:   0 8px 24px rgba(26,46,37,0.12);
  --shadow-lg:   0 20px 48px rgba(26,46,37,0.16);
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --max-w:       1200px;
  --section-py:  clamp(60px, 10vw, 110px);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* === TYPOGRAPHY === */
h1,h2,h3,h4,h5,h6 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--muted); line-height: 1.7; }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}
.section { padding: var(--section-py) 0; }
.section-sm { padding: clamp(40px,6vw,72px) 0; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 150ms, box-shadow 150ms, background 150ms;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 12px 32px rgba(45,106,79,0.28);
}
.btn-primary:hover { background: var(--forest-dark); }
.btn-secondary {
  background: var(--lemon);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(244,211,94,0.30);
}
.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
}
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); }

/* === EYEBROW === */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-dark);
  background: var(--mint);
  padding: 5px 14px;
  border-radius: 999px;
}

/* === NAVBAR === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--forest);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand-text small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  transition: background 150ms, color 150ms;
}
.site-nav a:hover,
.site-nav a.current-menu-item { background: var(--mint); color: var(--forest-dark); }
.site-nav a.nav-admin { color: var(--coral); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 300ms, opacity 300ms;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,67,50,0.82) 0%, rgba(27,67,50,0.45) 60%, rgba(27,67,50,0.15) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
  padding: 100px 0 80px;
}
.hero-content .eyebrow { margin-bottom: 20px; color: var(--ink); background: rgba(255,255,255,0.9); }
.hero-content h1 { color: #fff; margin-bottom: 20px; }
.hero-content p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 520px; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.inquiry-card {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.inquiry-card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.inquiry-card p { font-size: 0.88rem; margin-bottom: 20px; }
.inquiry-card .btn { width: 100%; justify-content: center; }

/* === TRUST STRIP === */
.trust-strip {
  background: var(--mint);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 48px);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--forest-dark);
}
.trust-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--forest);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* === BENEFIT GRID === */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.benefit-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow 200ms, transform 200ms;
}
.benefit-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--lemon);
  color: var(--forest-dark);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.benefit-card h4 { margin-bottom: 6px; }
.benefit-card p { font-size: 0.88rem; }

/* === FEATURE BAND === */
.feature-band { background: var(--mist); }
.feature-band .container { padding-top: var(--section-py); padding-bottom: var(--section-py); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}
.feature-item .feature-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.feature-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.feature-item p { font-size: 0.82rem; }

/* === GALLERY GRID === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 400ms;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.featured { grid-column: span 2; }
.gallery-item.wide { grid-column: span 3; }
.gallery-item img.tall { height: 360px; }

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; border-radius: 8px; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* === FAQ === */
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: none;
  border: none;
  text-align: left;
  font-weight: 750;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  gap: 12px;
}
.faq-question .faq-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--forest-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 300ms;
  font-size: 0.9rem;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* === BOOKING CALENDAR === */
.booking-widget {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.calendar-nav-btn {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1rem;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-day-header {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  padding: 4px 0 8px;
  text-transform: uppercase;
}
.calendar-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms, color 150ms;
  border: 1.5px solid transparent;
  position: relative;
}
.calendar-day:hover:not(.disabled):not(.booked) { background: var(--mint); }
.calendar-day.today { border-color: var(--forest); font-weight: 800; }
.calendar-day.free { color: var(--ink); }
.calendar-day.booked { background: #fee2e2; color: #991b1b; cursor: not-allowed; }
.calendar-day.requested { background: #fef9c3; color: #854d0e; cursor: not-allowed; }
.calendar-day.selected { background: var(--forest); color: #fff; }
.calendar-day.in-range { background: var(--mint); color: var(--forest-dark); }
.calendar-day.disabled { color: #d1d5db; cursor: not-allowed; }
.calendar-day.empty { cursor: default; }
.calendar-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 0.8rem;
}
.legend-item { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* === BOOKING FORM === */
.booking-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: grid; gap: 6px; }
.form-label { font-size: 0.88rem; font-weight: 750; color: var(--ink); }
.form-input, .form-textarea, .form-select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: border-color 150ms, box-shadow 150ms;
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}
.form-textarea { min-height: 110px; resize: vertical; }
.booking-summary {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.booking-summary h4 { margin-bottom: 12px; font-size: 0.95rem; }
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.summary-row:last-child { border-bottom: none; font-weight: 800; color: var(--ink); font-size: 1rem; }

/* === PRICE / SEASON TABLE === */
.rate-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.rate-panel table { width: 100%; border-collapse: collapse; }
.rate-panel th {
  background: var(--mist);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rate-panel td { padding: 14px 16px; border-top: 1px solid var(--line); font-size: 0.9rem; }
.rate-panel tr:hover td { background: var(--mist); }
.rate-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}
.rate-badge.high { background: #fee2e2; color: #991b1b; }
.rate-badge.mid  { background: #fef9c3; color: #854d0e; }
.rate-badge.low  { background: var(--mint); color: var(--forest-dark); }

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.contact-info-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 4px 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow 180ms;
  text-decoration: none;
  color: inherit;
}
.contact-info-card:hover { box-shadow: var(--shadow-md); }
.contact-info-label { font-size: 0.78rem; font-weight: 750; color: var(--muted); align-self: center; }
.contact-info-value { font-weight: 750; color: var(--forest); align-self: center; }

/* === FOOTER === */
.site-footer {
  background: var(--forest-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand { color: #fff; font-weight: 900; font-size: 1rem; margin-bottom: 10px; }
.footer-brand small { display: block; font-size: 0.78rem; font-weight: 400; color: rgba(255,255,255,0.55); margin-top: 2px; }
.footer-desc { font-size: 0.88rem; line-height: 1.65; color: rgba(255,255,255,0.65); }
.footer-col h5 { color: #fff; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.65); margin-bottom: 8px; transition: color 150ms; }
.footer-col a:hover { color: var(--lemon); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--lemon); }

/* === PAGE HEADER === */
.page-header {
  background: linear-gradient(135deg, var(--forest-dark), var(--forest));
  padding: 72px 0 54px;
}
.page-header .eyebrow { color: var(--forest-dark); background: rgba(216,243,220,0.92); margin-bottom: 16px; }
.page-header h1 { color: #fff; margin-top: 16px; }
.page-header p { color: rgba(255,255,255,0.85); max-width: 560px; font-size: 1.1rem; }

/* === CENTERED SECTION HEADER === */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-header .eyebrow { margin-bottom: 14px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1rem; }

/* === CARDS === */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 200ms, transform 200ms;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* === ADMIN NOTICE === */
.fcf-admin-notice {
  background: var(--mint);
  border-left: 4px solid var(--forest);
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: var(--forest-dark);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .inquiry-card { max-width: 480px; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: rgba(255,255,255,0.98); padding: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.featured, .gallery-item.wide { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .benefit-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.featured, .gallery-item.wide { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
