/* ============================================================
   Template 07 – Hofladen / Direktvermarktung
   Warmes, rustikales One-Pager-Layout.
   --straw (Akzent) wird vom CMS inline überschrieben.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --straw:    #E8C84A;
  --earth:    #6B4A2A;
  --earth-lt: #9B7355;
  --cream:    #FAF6EE;
  --sage:     #7A9B76;
  --dark:     #2E1F0F;
  --white:    #FFFDF7;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}

/* ── HEADER ── */
header {
  min-height: 100vh;
  background: var(--earth);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem;
}

.header-texture {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(232,200,74,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(122,155,118,0.10) 0%, transparent 40%);
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Ccircle cx='50' cy='80' r='1.5' fill='%23E8C84A' opacity='.18'/%3E%3Ccircle cx='120' cy='30' r='1' fill='%23E8C84A' opacity='.12'/%3E%3Ccircle cx='200' cy='150' r='2' fill='%23E8C84A' opacity='.10'/%3E%3Ccircle cx='300' cy='60' r='1.5' fill='%23E8C84A' opacity='.15'/%3E%3Ccircle cx='370' cy='200' r='1' fill='%23E8C84A' opacity='.08'/%3E%3Ccircle cx='80' cy='280' r='2' fill='%23E8C84A' opacity='.12'/%3E%3Ccircle cx='250' cy='320' r='1.5' fill='%23E8C84A' opacity='.10'/%3E%3Ccircle cx='330' cy='380' r='1' fill='%23E8C84A' opacity='.14'/%3E%3C/svg%3E");
  background-size: 400px 400px;
}

.header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
}

.hen-illustration {
  width: 110px;
  height: auto;
  margin-bottom: 2rem;
  animation: bob 4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.header-eyebrow {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--straw);
  margin-bottom: 1.2rem;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

h1 em {
  font-style: italic;
  color: var(--straw);
}

.header-sub {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  color: rgba(255,253,247,0.72);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.cta-btn {
  display: inline-block;
  background: var(--straw);
  color: var(--dark);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2.2rem;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s, filter 0.2s;
}

.cta-btn:hover { filter: brightness(1.07); transform: translateY(-2px); }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,253,247,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-hint svg { animation: bounce 2s ease-in-out infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ── DIVIDER ── */
.divider {
  height: 6px;
  background: linear-gradient(90deg, var(--earth) 0%, var(--straw) 40%, var(--sage) 100%);
}

/* ── SECTIONS ── */
section {
  padding: 6rem 2rem;
}

.container {
  max-width: 860px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.8rem;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--earth);
  line-height: 1.2;
  margin-bottom: 1.4rem;
}

h2 em {
  font-style: italic;
  color: var(--earth-lt);
}

p {
  font-size: 1rem;
  line-height: 1.8;
  color: #4a3520;
  max-width: 620px;
}

/* ── EGG SECTION ── */
.egg-section {
  background: var(--white);
}

.egg-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 640px) {
  .egg-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

.egg-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.egg-box-card {
  background: var(--earth);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--white);
  width: 100%;
  max-width: 280px;
}

.egg-box-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--straw);
  margin-bottom: 0.6rem;
}

.egg-box-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.egg-box-card p {
  font-size: 0.85rem;
  color: rgba(255,253,247,0.7);
  line-height: 1.6;
  max-width: none;
}

.open-badge {
  display: inline-block;
  background: var(--sage);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 2px;
  margin-top: 1rem;
}

.eggs-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

/* ── FAMILY SECTION ── */
.family-section {
  background: var(--cream);
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 640px) {
  .family-grid { grid-template-columns: 1fr; }
}

.family-card {
  background: var(--white);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  border-top: 3px solid var(--straw);
}

.family-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.family-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--earth);
  margin-bottom: 0.6rem;
}

.family-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #6b5540;
}

/* ── GALLERY SECTION ── */
.gallery-section {
  background: var(--earth);
  padding: 5rem 2rem;
}

.gallery-section .section-eyebrow {
  color: var(--straw);
  opacity: 0.8;
}

.gallery-section h2 {
  color: var(--white);
}

.gallery-section h2 em {
  color: var(--straw);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-item {
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  background: rgba(0,0,0,0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(30,12,4,0.75));
  color: rgba(255,253,247,0.9);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1.2rem 0.8rem 0.7rem;
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,253,247,0.92);
  padding: 5rem 2rem 3rem;
}

.footer-grid {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--straw);
  margin-bottom: 1rem;
}

.footer-col p, .footer-col address {
  font-size: 0.88rem;
  line-height: 1.9;
  font-style: normal;
  color: rgba(255,253,247,0.88);
}

.footer-col a {
  color: rgba(255,253,247,0.75);
  text-decoration: none;
}
.footer-col a:hover { color: var(--straw); }

.map-placeholder {
  margin-top: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(255,253,247,0.4);
  letter-spacing: 0.1em;
}

.footer-bottom {
  max-width: 860px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,253,247,0.55);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom .flegal { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.footer-bottom .flegal button,
.footer-bottom .flegal a {
  background: none; border: none; cursor: pointer;
  color: inherit; font-family: inherit; font-size: inherit;
  padding: 0; text-decoration: none;
}
.footer-bottom .flegal button:hover,
.footer-bottom .flegal a:hover { color: var(--straw); }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MODALS (Impressum / Datenschutz / Barrierefreiheit) ── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(30,20,8,0.55);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 9998;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal-box {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -48%) scale(.98);
  width: min(680px, calc(100vw - 2rem));
  max-height: 85vh; overflow: hidden;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  z-index: 9999;
}
.modal-backdrop.open + .modal-box,
.modal-box.open {
  opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1);
}
.modal {
  background: var(--white); border-radius: 6px; position: relative;
  max-height: 85vh; overflow-y: auto; padding: 2.5rem 2.2rem 2rem;
  box-shadow: 0 20px 60px rgba(30,20,8,0.4);
}
.modal-close {
  position: absolute; top: 1rem; right: 1.1rem;
  background: none; border: none; font-size: 1.2rem; cursor: pointer;
  color: var(--earth-lt); line-height: 1;
}
.modal-title {
  font-family: 'Playfair Display', serif; font-size: 1.7rem;
  color: var(--earth); margin-bottom: 1.2rem;
}
.modal-body h3 {
  font-family: 'Playfair Display', serif; font-size: 1.05rem;
  color: var(--earth); margin: 1.2rem 0 0.4rem;
}
.modal-body p { font-size: 0.9rem; line-height: 1.7; color: #4a3520; max-width: none; }
.modal-body a { color: var(--earth-lt); }
