/* ============================================================
   Hof Palant – Einfach glücklich
   Main Stylesheet
   ============================================================ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --cream:       #f2f5ef;
  --warm-white:  #f8faf6;
  --rose-dust:   #7a9e72;
  --sage:        #5a7d52;
  --sage-light:  #a8c4a0;
  --terracotta:  #6b8f5e;
  --brown-warm:  #3d5e35;
  --brown-dark:  #1f3318;
  --linen:       #d8e5d2;
  --gold:        #8aad62;
  --text-body:   #2d3d28;
  --text-soft:   #536b4a;
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'EB Garamond', Georgia, serif;
  background: var(--cream);
  color: var(--text-body);
  overflow-x: hidden;
}

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; }

/* ── Navigation ────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 242, 234, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linen);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(61, 43, 31, 0.08); }
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--brown-dark);
}
.nav-logo span { color: var(--rose-dust); }
nav ul { list-style: none; display: flex; gap: 32px; }
nav a {
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--text-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--rose-dust);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
nav a:hover { color: var(--brown-dark); }
nav a:hover::after { transform: scaleX(1); }

/* ── Hamburger (mobile) ────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown-dark);
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ──────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(10, 25, 8, 0.48) 0%,
    rgba(10, 25, 8, 0.32) 50%,
    rgba(10, 25, 8, 0.55) 100%
  );
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center 35%;
  opacity: 0.75;
  filter: saturate(0.8) brightness(0.85);
  z-index: -1;
}
.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 100px 20px 60px;
}
.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(30,16,8,0.9), 0 0 30px rgba(30,16,8,0.7);
  animation: fadeUp 1.2s 0.2s ease both;
}
.hero-title {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 300;
  font-style: italic;
  color: #fdfaf5;
  line-height: 0.95;
  margin-bottom: 28px;
  text-shadow: 0 2px 24px rgba(30,16,8,0.5), 0 1px 4px rgba(30,16,8,0.4);
  animation: fadeUp 1.2s 0.35s ease both;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(30,16,8,0.9), 0 0 30px rgba(30,16,8,0.7);
  animation: fadeUp 1.2s 0.5s ease both;
}
.hero-place {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-style: italic;
  color: #ffe8cc;
  margin-bottom: 44px;
  text-shadow: 0 1px 8px rgba(30,16,8,0.9), 0 0 30px rgba(30,16,8,0.7);
  animation: fadeUp 1.2s 0.6s ease both;
}
.hero-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-bottom: 44px;
  animation: fadeUp 1.2s 0.7s ease both;
}
.hero-divider::before,
.hero-divider::after {
  content: '';
  width: 80px;
  height: 1px;
  background: rgba(247, 235, 220, 0.4);
}
.hero-divider-icon { color: var(--rose-dust); font-size: 1.1rem; }
.hero-cta {
  display: inline-block;
  padding: 14px 42px;
  border: 2px solid #fff;
  background: rgba(20, 45, 15, 0.55);
  color: #fff;
  text-decoration: none;
  font-family: 'EB Garamond', serif;
  font-size: 0.88rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.35s ease;
  animation: fadeUp 1.2s 0.8s ease both;
  position: relative;
  overflow: hidden;
}
.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(247, 235, 220, 0.2);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s ease;
  z-index: -1;
}
.hero-cta:hover { background: rgba(20, 45, 15, 0.85); border-color: #fff; }
.hero-cta:hover::before { transform: scaleY(1); }
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  opacity: 0.5;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Section Shared ────────────────────────────────────── */
section { position: relative; z-index: 1; }
.section-inner { max-width: 1100px; margin: 0 auto; padding: 90px 40px; }
.section-label {
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-dust);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: '';
  flex: 1;
  max-width: 50px;
  height: 1px;
  background: var(--rose-dust);
  opacity: 0.5;
}
.section-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  color: var(--brown-dark);
  line-height: 1.1;
  margin-bottom: 28px;
}
.section-title em { font-style: italic; color: var(--terracotta); }
.floral-divider {
  text-align: center;
  padding: 16px 0;
  color: var(--sage-light);
  font-size: 1.2rem;
  letter-spacing: 0.5em;
  opacity: 0.6;
}

/* ── Reveal animation ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }

/* ── Unterkunft ────────────────────────────────────────── */
#unterkunft {
  background: var(--warm-white);
  border-top: 1px solid var(--linen);
  border-bottom: 1px solid var(--linen);
}
.unterkunft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 72px;
}
.unterkunft-text p {
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 16px;
}
.info-box {
  background: var(--cream);
  border: 1px solid var(--linen);
  padding: 28px 32px;
  border-left: 3px solid var(--rose-dust);
  margin-top: 28px;
}
.info-box.sage  { border-left-color: var(--sage);  margin-top: 0; margin-bottom: 24px; }
.info-box.gold  { border-left-color: var(--gold);  margin-top: 0; }
.info-box h4 {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--brown-dark);
  margin-bottom: 14px;
}
.info-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.info-list li {
  font-size: 0.93rem;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.info-list li::before {
  content: '✿';
  color: var(--rose-dust);
  font-size: 0.72rem;
  flex-shrink: 0;
  margin-top: 4px;
}

/* ── Amenities ─────────────────────────────────────────── */
.amenities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.amenity {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid var(--linen);
  background: var(--cream);
  transition: border-color 0.3s, transform 0.3s;
}
.amenity:hover { border-color: var(--rose-dust); transform: translateY(-4px); }
.amenity-icon  { font-size: 1.8rem; margin-bottom: 10px; display: block; }
.amenity-name  { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-style: italic; color: var(--brown-dark); display: block; margin-bottom: 4px; }
.amenity-desc  { font-size: 0.8rem; color: var(--text-soft); }

/* ── Gallery ───────────────────────────────────────────── */
.gallery-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-style: italic;
  color: var(--brown-dark);
  text-align: center;
  margin-bottom: 28px;
}
.gallery-main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 260px 220px 220px;
  gap: 10px;
  margin-bottom: 10px;
}
.gallery-main .gi:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
.gallery-main .gi:nth-child(2) { grid-column: 3;     grid-row: 1; }
.gallery-main .gi:nth-child(3) { grid-column: 4;     grid-row: 1 / 3; }
.gallery-main .gi:nth-child(4) { grid-column: 1;     grid-row: 2; }
.gallery-main .gi:nth-child(5) { grid-column: 2 / 4; grid-row: 2; }
.gallery-main .gi:nth-child(6) { grid-column: 1 / 3; grid-row: 3; }
.gallery-main .gi:nth-child(7) { grid-column: 3;     grid-row: 3; }
.gallery-main .gi:nth-child(8) { grid-column: 4;     grid-row: 3; }
.gallery-row2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  height: 200px;
  margin-bottom: 10px;
}
.gallery-flowers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  height: 200px;
}
.gi {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--linen);
}
.gi img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.gi:hover img { transform: scale(1.06); }
.gi-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61,43,31,0.45) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.gi:hover .gi-overlay { opacity: 1; }
.gi-caption {
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
}
.gallery-hint {
  text-align: center;
  margin-top: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-soft);
  opacity: 0.6;
}

/* ── Lightbox ──────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 18, 10, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 88vw; max-height: 88vh; object-fit: contain; border: 2px solid rgba(247,242,234,0.15); }
.lb-close { position: absolute; top: 24px; right: 32px; color: rgba(247,242,234,0.7); font-size: 2.2rem; cursor: pointer; line-height: 1; }
.lb-close:hover { color: var(--cream); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); color: rgba(247,242,234,0.6); font-size: 2.5rem; cursor: pointer; padding: 20px; transition: color 0.2s; user-select: none; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-prev:hover, .lb-next:hover { color: var(--cream); }
.lb-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(247,242,234,0.5); font-size: 0.85rem; letter-spacing: 0.15em; }

/* ── Ausflüge ──────────────────────────────────────────── */
#ausflüge { background: var(--cream); }
.season-block { margin-bottom: 52px; }
.season-title {
  font-size: 1.7rem;
  font-style: italic;
  color: var(--brown-dark);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--linen);
  display: flex;
  align-items: center;
  gap: 14px;
}
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tip-card {
  background: var(--warm-white);
  border: 1px solid var(--linen);
  padding: 22px 24px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}
.tip-card:hover { border-color: var(--rose-dust); transform: translateY(-3px); }
.tip-card h4 { font-size: 1.15rem; font-style: italic; color: var(--brown-dark); margin-bottom: 8px; }
.tip-card p  { font-size: 0.88rem; line-height: 1.65; color: var(--text-soft); margin-bottom: 10px; }
.tip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-dust);
  text-decoration: none;
  transition: color 0.2s;
}
.tip-link::after { content: '→'; transition: transform 0.2s; }
.tip-link:hover { color: var(--terracotta); }
.tip-link:hover::after { transform: translateX(3px); }
.tip-tag {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  border: 1px solid var(--sage-light);
  padding: 2px 8px;
}

/* ── Local (Cafés & Restaurants) ───────────────────────── */
.local-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.local-box {
  background: var(--warm-white);
  border: 1px solid var(--linen);
  padding: 28px 32px;
  border-top: 3px solid var(--gold);
}
.local-box h3 { font-size: 1.4rem; font-style: italic; color: var(--brown-dark); margin-bottom: 18px; }
.local-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.local-list li { font-size: 0.93rem; color: var(--text-body); padding-left: 18px; position: relative; }
.local-list li::before { content: '✾'; position: absolute; left: 0; color: var(--gold); font-size: 0.65rem; top: 3px; }
.local-list a { color: var(--terracotta); text-decoration: none; }
.local-list a:hover { text-decoration: underline; }

/* ── Prices ────────────────────────────────────────────── */
#preise {
  background: linear-gradient(135deg, var(--brown-dark) 0%, #2e4a24 100%);
  padding: 76px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#preise::before {
  content: '❧';
  position: absolute;
  font-size: 18rem;
  opacity: 0.04;
  color: var(--cream);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
#preise .section-label { justify-content: center; color: var(--rose-dust); }
#preise .section-label::after { display: none; }
#preise .section-title { color: var(--cream); text-align: center; margin: 0 auto 44px; }
.prices-row {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto 44px;
}
.price-item { text-align: center; color: var(--cream); }
.price-number { font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 300; line-height: 1; color: var(--gold); display: block; margin-bottom: 8px; }
.price-label  { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.65; }
.prices-divider { width: 1px; background: rgba(255,255,255,0.12); align-self: stretch; }
.prices-notes { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.price-note { color: rgba(247,242,234,0.6); font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.price-note::before { content: '·'; color: var(--rose-dust); }

/* ── Contact ───────────────────────────────────────────── */
#kontakt { background: var(--warm-white); border-top: 1px solid var(--linen); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-intro { font-size: 1.45rem; font-style: italic; color: var(--brown-warm); line-height: 1.5; margin-bottom: 28px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-icon { width: 38px; height: 38px; border: 1px solid var(--linen); display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--cream); }
.contact-detail-text strong { display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose-dust); margin-bottom: 3px; font-weight: 400; }
.contact-detail-text span   { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--brown-dark); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); }
.form-group input,
.form-group textarea {
  border: 1px solid var(--linen);
  background: var(--cream);
  padding: 11px 15px;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  color: var(--text-body);
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--rose-dust); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input.error { border-color: #c9a49a; }
.form-btn {
  padding: 14px 38px;
  background: var(--brown-dark);
  color: var(--cream);
  border: none;
  font-family: 'EB Garamond', serif;
  font-size: 0.88rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  align-self: flex-start;
}
.form-btn:hover    { background: var(--terracotta); }
.form-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.form-success {
  display: none;
  background: var(--sage-light);
  border: 1px solid var(--sage);
  padding: 20px 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--brown-dark);
  margin-bottom: 20px;
}
.form-error {
  display: none;
  background: #f9e8e8;
  border: 1px solid #c9a49a;
  padding: 16px 24px;
  font-size: 0.9rem;
  color: #7a2020;
  margin-bottom: 20px;
}

/* ── Footer ────────────────────────────────────────────── */
footer {
  background: var(--brown-dark);
  color: rgba(247, 242, 234, 0.5);
  text-align: center;
  padding: 44px 40px;
}
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-style: italic; color: var(--cream); margin-bottom: 10px; }
.footer-logo span { color: var(--rose-dust); }
.footer-sub { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1rem; color: rgba(247,242,234,0.4); margin-bottom: 4px; }
.footer-divider { display: flex; align-items: center; gap: 16px; justify-content: center; margin: 16px 0; opacity: 0.2; }
.footer-divider::before,
.footer-divider::after { content: ''; width: 90px; height: 1px; background: var(--cream); }
.footer-copy { font-size: 0.78rem; margin-top: 8px; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  nav ul { display: none; position: absolute; top: 68px; left: 0; right: 0; background: rgba(247,242,234,0.98); flex-direction: column; gap: 0; border-bottom: 1px solid var(--linen); }
  nav ul.open { display: flex; }
  nav ul li a { display: block; padding: 14px 24px; border-bottom: 1px solid var(--linen); }
  .nav-toggle { display: flex; }
  .section-inner { padding: 60px 24px; }
  .unterkunft-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-main { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-main .gi { grid-column: auto !important; grid-row: auto !important; height: 180px; }
  .gallery-row2 { grid-template-columns: 1fr 1fr; height: auto; }
  .gallery-row2 .gi { height: 150px; }
  .tips-grid { grid-template-columns: 1fr; }
  .local-grid { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .prices-divider { display: none; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 3.8rem; }
  .amenities { grid-template-columns: 1fr; }
  .gallery-row2 { display: none; }
  .gallery-flowers .gi:last-child { display: none; }
  #preise { padding: 56px 24px; }
}
