/* ============================================================
   Zwergennest Remels – Hauptstylesheet
   Naturnahes Design – Grün & Erde
   ============================================================ */

/* === Variablen === */
:root {
  --g900: #163516;
  --g800: #1f4d1f;
  --g700: #2d5a27;
  --g600: #3d7332;
  --g500: #4d8f3d;
  --g400: #6aad56;
  --g200: #b6dba5;
  --g100: #e4f2dc;
  --g50:  #f2f8ef;

  --gold:     #c9973a;
  --gold-lt:  #f0d898;
  --gold-bg:  #fdf6e3;

  --brown:    #7b5e3c;

  --text:     #1e2a1e;
  --text-md:  #3d4d3d;
  --text-lt:  #6b7d6b;
  --border:   #d5e3cc;
  --bg:       #f7faf4;
  --white:    #ffffff;
  --shadow:   0 4px 24px rgba(30,60,30,.10);
  --shadow-md:0 8px 36px rgba(30,60,30,.14);

  --ff-serif: 'Playfair Display', Georgia, serif;
  --ff-sans:  'Lato', 'Helvetica Neue', Arial, sans-serif;
  --r:  10px;
  --rl: 18px;
  --max-w: 1180px;
  --nav-h: 72px;
}

/* === Reset & Base === */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--g700); text-decoration: none; }
a:hover { color: var(--g500); }

/* === Container === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.5rem;
  border-radius: var(--r);
  font-family: var(--ff-sans);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary     { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-primary:hover{ background: #b3831f; border-color: #b3831f; color: var(--white); }
.btn-outline     { background: transparent; color: var(--g700); border-color: var(--g700); }
.btn-outline:hover{ background: var(--g700); color: var(--white); }
.btn-outline-light{ background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover{ background: rgba(255,255,255,.15); color: var(--white); }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--g700);
  height: var(--nav-h);
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

/* Nav */
.site-nav ul {
  display: flex;
  list-style: none;
  gap: .15rem;
  flex-wrap: nowrap;
}
.site-nav a {
  display: block;
  padding: .45rem .75rem;
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all .2s;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,.12);
}
.site-nav a.active { color: var(--gold-lt); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--g900) 0%, var(--g700) 50%, var(--g600) 100%);
  overflow: hidden;
  color: var(--white);
}

/* Decorative leaves */
.hero-leaves { position: absolute; inset: 0; pointer-events: none; }
.leaf { position: absolute; color: var(--white); }
.leaf-1 { width: 360px; right: -60px; top: -80px; transform: rotate(-30deg); }
.leaf-2 { width: 220px; left: -50px; bottom: -30px; transform: rotate(140deg); }
.leaf-3 { width: 180px; right: 240px; bottom: -20px; transform: rotate(10deg); }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 5rem 0 4rem;
}
.hero-eyebrow {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--gold-lt);
  font-weight: 700;
  margin-bottom: .75rem;
}
.hero h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-tagline {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   PAGE BANNER
   ============================================================ */
.page-banner {
  background: linear-gradient(135deg, var(--g800) 0%, var(--g600) 100%);
  color: var(--white);
  padding: 2.5rem 0 2rem;
}
.page-banner h1 {
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-top: .5rem;
}
.breadcrumb {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .25rem;
}
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--white); }

/* ============================================================
   MAIN
   ============================================================ */
.site-main {
  padding: 3rem 0 5rem;
}

/* === Startseite: Welcome === */
.home-welcome {
  max-width: 760px;
  margin: 0 auto 4rem;
  text-align: center;
}
.home-welcome p {
  font-size: 1.1rem;
  color: var(--text-md);
  margin-bottom: 1rem;
}
.home-welcome p:last-child { margin-bottom: 0; }

/* === Feature-Cards === */
.features { margin-bottom: 5rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--white);
  border-radius: var(--rl);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--g100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--g600);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  color: var(--g700);
  margin-bottom: .6rem;
}
.feature-card p {
  font-size: .93rem;
  color: var(--text-lt);
  line-height: 1.6;
}

/* === Räumlichkeiten & Außengelände === */
.facility-showcase { margin-bottom: 5rem; }
.facility-intro {
  max-width: 760px;
  margin: -1rem auto 2.5rem;
  color: var(--text-md);
  font-size: 1.05rem;
}
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.facility-card {
  background: var(--white);
  border-radius: var(--rl);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
}
.facility-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.facility-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--g100);
}
.facility-card-img img { width: 100%; height: 100%; object-fit: cover; }
.facility-card h3 {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  color: var(--g700);
  margin: 1.25rem 1.5rem .5rem;
}
.facility-card p {
  font-size: .93rem;
  color: var(--text-lt);
  line-height: 1.6;
  margin: 0 1.5rem 1.5rem;
}

/* === Section Header === */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.section-header h2 {
  font-family: var(--ff-serif);
  font-size: 1.9rem;
  color: var(--g700);
}

/* === Gallery Preview & Full === */
.gallery-preview  { margin-bottom: 5rem; }

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

.gallery-card {
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
}
.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.gallery-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--g100);
}
.gallery-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-card:hover .gallery-card-img img { transform: scale(1.04); }

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,70,30,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}
.gallery-card-overlay svg { width: 36px; height: 36px; color: var(--white); }
.gallery-card--clickable { cursor: pointer; }
.gallery-card--clickable:hover .gallery-card-overlay { opacity: 1; }

.gallery-card-body {
  padding: 1rem 1.1rem 1.1rem;
}
.gallery-card-body h4 {
  font-family: var(--ff-serif);
  font-size: 1rem;
  color: var(--g700);
  margin-bottom: .3rem;
}
.gallery-card-body p {
  font-size: .87rem;
  color: var(--text-lt);
  line-height: 1.55;
}

.gallery-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-lt);
}
.gallery-empty svg { width: 64px; height: 64px; margin: 0 auto 1rem; color: var(--g200); }
.gallery-empty a { color: var(--g600); font-weight: 700; }

/* === Contact Teaser === */
.contact-teaser {
  background: linear-gradient(135deg, var(--g700), var(--g600));
  border-radius: var(--rl);
  padding: 2.5rem 2.5rem;
  color: var(--white);
  margin-bottom: 2rem;
}
.contact-teaser-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact-teaser-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-teaser-icon svg { width: 28px; height: 28px; color: var(--white); }
.contact-teaser h2 {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  margin-bottom: .3rem;
}
.contact-teaser p { opacity: .85; font-size: .95rem; }
.contact-teaser-links {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-left: auto;
  flex-shrink: 0;
}

/* === Standard Seiteninhalte === */
.page-content {
  max-width: 780px;
  margin: 0 auto;
}
.page-intro {
  margin-bottom: 2.5rem;
  padding: 0;
}

.page-content h2 {
  font-family: var(--ff-serif);
  font-size: 2rem;
  color: var(--g700);
  margin: 2rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--g100);
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  color: var(--g600);
  margin: 1.75rem 0 .65rem;
}
.page-content p   { margin-bottom: 1rem; color: var(--text-md); }
.page-content ul,
.page-content ol  { margin: .75rem 0 1rem 1.5rem; }
.page-content li  { margin-bottom: .35rem; color: var(--text-md); }
.page-content a   { color: var(--g600); text-decoration: underline; }
.page-content a:hover { color: var(--g800); }
.page-content strong { color: var(--text); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10,20,10,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.lightbox[hidden] { display: none; }
.lightbox-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--r);
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  margin: 0 auto;
}
.lightbox-info {
  margin-top: 1rem;
  color: rgba(255,255,255,.85);
}
.lightbox-info h4 { font-family: var(--ff-serif); font-size: 1.2rem; margin-bottom: .25rem; }
.lightbox-info p  { font-size: .9rem; opacity: .75; }
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--g900);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}
.footer-logo .logo-img { height: 36px; }
.footer-tagline { font-size: .9rem; opacity: .7; line-height: 1.5; }
.footer-col h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold-lt);
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li {
  margin-bottom: .5rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .92rem;
}
.footer-col li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: .2rem; opacity: .6; }
.footer-col a { color: rgba(255,255,255,.75); }
.footer-col a:hover { color: var(--white); }
.footer-vorstand {
  margin-top: 1.25rem;
  font-size: .88rem;
  opacity: .65;
  line-height: 1.7;
}
.footer-bottom {
  padding: 1.25rem 0;
  text-align: center;
  font-size: .85rem;
  opacity: .5;
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { opacity: 1; color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .facility-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .footer-col:last-child { grid-column: span 2; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  /* Mobile Nav */
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--g800);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
  }
  .site-nav.open { max-height: 80vh; overflow-y: auto; }
  .site-nav ul   { flex-direction: column; gap: 0; padding: .5rem 0 1rem; }
  .site-nav li   { border-bottom: 1px solid rgba(255,255,255,.06); }
  .site-nav a    { padding: .85rem 1.5rem; font-size: .95rem; border-radius: 0; }

  .hero-content  { padding: 3.5rem 0 3rem; }
  .hero-actions  { flex-direction: column; align-items: flex-start; }
  .leaf-1        { width: 200px; right: -40px; }
  .leaf-2        { width: 140px; }
  .leaf-3        { display: none; }

  .features-grid { grid-template-columns: 1fr; gap: 1rem; }
  .facility-grid { grid-template-columns: 1fr; gap: 1rem; }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .contact-teaser        { padding: 1.75rem; }
  .contact-teaser-inner  { gap: 1.25rem; }
  .contact-teaser-links  { margin-left: 0; width: 100%; }

  .section-header { flex-direction: column; align-items: flex-start; }

  .footer-grid   { grid-template-columns: 1fr; gap: 2rem; }
  .footer-col:last-child { grid-column: auto; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .page-banner h1 { font-size: 1.6rem; }
}
