/* ============================================================
   Ferienwohnung Marita – Stylesheet
   Landleben-Ästhetik · Mobile-first · responsiv
   ------------------------------------------------------------
   Farbpalette:
     Salbeigrün  #7d8c6a / dunkel #5d6a4e
     Cremeweiß   #f6f3ea
     warmes Beige #e7ddc9
     Terrakotta  #bf6a4b (Akzent)
   Schriften:
     Überschriften: 'Lora' (Serif)
     Fließtext:     'Nunito Sans' (Sans-Serif)
   ============================================================ */

/* ---------- 1. Farb- & Maß-Variablen ---------- */
:root {
  --sage:        #7d8c6a;
  --sage-dark:   #586547;
  --sage-light:  #aab59a;
  --cream:       #f6f3ea;
  --cream-deep:  #efe9da;
  --beige:       #e7ddc9;
  --terracotta:  #bf6a4b;
  --terracotta-dark: #a4583c;
  --ink:         #3a3a33;
  --ink-soft:    #6a6a5f;
  --white:       #fffdf8;

  --font-head: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, Arial, sans-serif;

  --maxw: 1140px;
  --gap:  clamp(1rem, 4vw, 2.5rem);
  --radius: 4px;
  --shadow: 0 8px 30px rgba(58, 58, 51, 0.10);
}

/* ---------- 2. Reset / Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5em;
}

/* ---------- 3. Layout-Helfer ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section-alt { background: var(--cream-deep); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terracotta);
  margin: 0 0 0.6rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.85em 1.8em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(191, 106, 75, 0.35);
}
.btn-primary:hover { background: var(--terracotta-dark); }

.btn-block { width: 100%; }

/* ============================================================
   KOPFZEILE / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 234, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--beige);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--terracotta); font-size: 1rem; }

.main-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { color: var(--terracotta-dark); border-color: var(--terracotta); text-decoration: none; }

/* Mobile-Menü-Schalter (nur mobil sichtbar) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 9px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ============================================================
   1) HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  /* Platzhalter-Hintergrund (Beige) + Hero-Foto, sobald vorhanden */
  background:
    linear-gradient(rgba(88, 101, 71, 0.10), rgba(88, 101, 71, 0.10)),
    var(--beige) url("../images/hero.jpg") center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58,58,51,0.15) 0%, rgba(58,58,51,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
  margin-inline: auto;
  max-width: 760px;
  padding-block: 4rem;
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--cream);
}
.hero-title {
  font-size: clamp(2.6rem, 8vw, 5rem);
  color: var(--white);
  margin: 0 0 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.hero-slogan {
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  max-width: 38ch;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}
.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  font-size: 1.6rem;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  animation: bob 2s ease-in-out infinite;
}
.hero-scroll:hover { text-decoration: none; background: rgba(255,255,255,0.15); }
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ============================================================
   2) EINLEITUNG
   ============================================================ */
.intro-inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.intro-text {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
}
.intro-signature {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--sage-dark);
  margin-top: 1.5rem;
}

/* ============================================================
   3) GALERIE
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  /* Platzhalter-Hintergrund, falls Bild noch fehlt */
  background: repeating-linear-gradient(45deg, var(--beige), var(--beige) 12px, var(--cream-deep) 12px, var(--cream-deep) 24px);
  box-shadow: var(--shadow);
}
/* Platzhalter-Beschriftung (sichtbar solange kein Foto geladen ist) */
.gallery-item::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: monospace;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--sage-dark);
  pointer-events: none;
}
.gallery-item.has-image::after { display: none; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ============================================================
   4) AUSSTATTUNG
   ============================================================ */
.features-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.features-lead {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.facts li { display: flex; flex-direction: column; }
.fact-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 600;
  color: var(--terracotta);
  line-height: 1;
}
.fact-lbl { font-size: 0.9rem; color: var(--ink-soft); }

.amenities {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.amenity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
}
.amenity-icon {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--sage-dark);
}
.amenity-icon svg { width: 22px; height: 22px; }
.amenity-label { font-weight: 600; font-size: 0.98rem; }

/* ============================================================
   5) AUSFLUGSZIELE
   ============================================================ */
.trips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.trip-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trip-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(58,58,51,0.16); }
.trip-media {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: repeating-linear-gradient(45deg, var(--beige), var(--beige) 12px, var(--cream-deep) 12px, var(--cream-deep) 24px);
}
.trip-media::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--sage-dark);
  pointer-events: none;
}
.trip-media.has-image::after { display: none; }
.trip-media img { width: 100%; height: 100%; object-fit: cover; }
.trip-body { padding: 1.3rem 1.4rem 1.6rem; }
.trip-title { font-size: 1.3rem; margin-bottom: 0.4rem; }
.trip-text { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* ============================================================
   6) KONTAKT
   ============================================================ */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.contact-lead { color: var(--ink-soft); margin-bottom: 1.5rem; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; flex-direction: column; }
.contact-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sage-dark);
  margin-bottom: 0.2rem;
}
.contact-value { font-size: 1.05rem; }

/* Formular */
.contact-form {
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  box-shadow: var(--shadow);
}
.form-intro {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1.2rem;
  color: var(--ink);
}
.field { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.75em 0.9em;
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  background: var(--cream);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(125, 140, 106, 0.2);
}
.field textarea { resize: vertical; }
.form-note {
  margin: 1rem 0 0;
  font-weight: 600;
  color: var(--sage-dark);
  min-height: 1.2em;
}

/* ============================================================
   7) FOOTER
   ============================================================ */
.site-footer {
  background: var(--sage-dark);
  color: var(--cream);
  padding-block: 2.5rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 1.15rem;
}
.footer-brand .brand-mark { color: var(--terracotta); }
.footer-copy { margin: 0; font-size: 0.9rem; color: rgba(246, 243, 234, 0.8); }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { color: var(--cream); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--white); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(40, 42, 34, 0.92);
  padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: min(92vw, 1000px);
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}
.lightbox button {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.lightbox button:hover { background: rgba(255,255,255,0.28); }
.lightbox-close { top: 1.2rem; right: 1.2rem; width: 46px; height: 46px; font-size: 1.8rem; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; }
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }

/* ============================================================
   RESPONSIVE BREAKPOINTS (Mobile-first → größer)
   ============================================================ */

/* ---- ab 600px: Galerie 2 Spalten, Ausstattung 2 Spalten ---- */
@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .amenities    { grid-template-columns: repeat(2, 1fr); }
  .trips-grid   { grid-template-columns: repeat(2, 1fr); }
}

/* ---- ab 900px: Desktop-Layout ---- */
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .features-inner { grid-template-columns: 1fr 1fr; align-items: start; gap: 3.5rem; }
  .contact-inner  { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .trips-grid     { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   MOBILE-NAVIGATION (unter 760px: Burger-Menü)
   ============================================================ */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--beige);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 340px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gap) 1rem;
  }
  .main-nav li { border-bottom: 1px solid var(--beige); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a { display: block; padding: 0.85rem 0; }

  /* Burger → X Animation */
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---- Footer ab 700px in einer Reihe ---- */
@media (min-width: 700px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---- Reduzierte Bewegung respektieren ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}

/* ---- Formular: Spam-Schutz (Honeypot) & optionale Felder ---- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field-opt {
  font-weight: 400;
  font-size: 0.82em;
  opacity: 0.6;
}
