body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: #fff;
  color: #333;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
.welcome {
  text-align: center;
  padding: 4rem 2rem;
  background: #f8fbf7;
  color: #2d6a4f;
  margin-bottom: 1rem;
}
.welcome h1 {
  font-size: 3rem;
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.05em;
}
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
  color: #2d6a4f;
  letter-spacing: 0.05em;
}
.section p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  color: #666;
}
header {
  background: #fff;
  padding: 2rem 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.logo {
  max-width: 150px;
  margin-bottom: 1rem;
}
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 3rem;
}
nav a {
  color: #2d6a4f;
  text-decoration: none;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}
/* ===== Header Layout ===== */
.header-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link { display: inline-flex; align-items: center; }
.logo { max-width: 150px; height: auto; }

/* ===== Hamburger Button (mobil) ===== */
.nav-toggle{
  display: none; /* standardmäßig auf Desktop ausblenden */
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  border-radius: 8px;
}
.nav-toggle:focus-visible{ outline: 2px solid #52b788; outline-offset: 2px; }
.nav-toggle-bar{
  display:block; width:26px; height:2px; background:#2d6a4f; margin:6px 0; transition:transform .25s, opacity .25s;
}

/* ===== Basis-Navigation ===== */
.nav{ /* Container, lässt sich ein-/ausblenden */
  --nav-bg: #ffffff;
}
.nav-list{
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 3rem;
}
.nav-list a{
  color:#2d6a4f; text-decoration:none; font-weight:400; font-size:1.1rem; letter-spacing:.02em;
  padding:.5rem 1rem; transition: color .2s;
}
.nav-list a:hover, .nav-list a:focus{ color:#52b788; }

/* ===== Mobile: Menü einklappen ===== */
@media (max-width: 800px){
  /* Header */
  header { padding: .75rem 0; }
  .logo { max-width: 120px; }

  /* Toggle sichtbar */
  .nav-toggle{ display: inline-flex; }

  /* Navigation im mobilen Zustand: zu Beginn versteckt */
  .nav{
    position: absolute;
    top: 100%;               /* direkt unter dem Header */
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid #eaeaea;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
  }
  .nav.open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Liste vertikal */
  .nav-list{
    flex-direction: column;
    gap: 0;
    padding: .5rem;
  }
  .nav-list li{ border-top: 1px solid #f1f1f1; }
  .nav-list li:first-child{ border-top: none; }
  .nav-list a{
    display: block;
    padding: .9rem 1rem;
    font-size: 1rem;
  }

  /* Hamburger in "X" animieren, wenn offen */
  .nav-toggle.active .nav-toggle-bar:nth-child(1){ transform: translateY(8px) rotate(45deg); }
  .nav-toggle.active .nav-toggle-bar:nth-child(2){ opacity: 0; }
  .nav-toggle.active .nav-toggle-bar:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }
}

/* optional: wenn der Header sticky ist (du hast bereits sticky + Shadow) */
header{ position: sticky; top: 0; z-index: 100; }

nav a:hover, nav a:focus {
  color: #52b788;
}
.hero {
  background: url('https://xn--glcksgarten-uhb.at/bilder/margit_werner.jpg') center/cover no-repeat;
  color: #fff;
  padding: 6rem 2rem 4rem 2rem;
  text-align: center;
  border-radius: 2rem;
  margin-top: 2rem;
  box-shadow: 0 8px 32px #b7e4c722;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 12px #23232344;
}
.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255,255,255,0.13);
  border-radius: 1rem;
  padding: 1.2rem 1rem;
  box-shadow: 0 2px 8px #0001;
}
.bereiche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin: 3rem 0;
}
.bereich-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}
.bereich-card:hover {
  transform: translateY(-10px);
}
.bereich-card img {
  width: 100%;
  max-width: 250px;
  height: 150px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}
.bereich-card h3 {
  margin: 0 0 1rem 0;
  color: #2d6a4f;
  font-size: 1.5rem;
  font-weight: 300;
}
section {
  margin: 2.5rem 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 2px 12px #b7e4c711;
  max-width: 420px;
  margin: 0 auto 2rem auto;
  backdrop-filter: blur(2px);
}
form input, form textarea {
  padding: 1rem;
  border: 1.5px solid #b7e4c744;
  border-radius: 0.7rem;
  font-size: 1.08rem;
  background: #f8fbf7;
  transition: border 0.18s;
}
form input:focus, form textarea:focus {
  border: 1.5px solid #52b788;
  outline: none;
}
form button {
  background: #52b788;
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: 0.7rem;
  font-size: 1.15rem;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 8px #b7e4c722;
  transition: background 0.2s, transform 0.15s;
}
form button:hover {
  background: #40916c;
  transform: scale(1.04);
}
.kontakt-info {
  text-align: center;
  margin-top: 2rem;
  color: #232323;
  background: #e9f5ee;
  border-radius: 1rem;
  padding: 1.2rem 0.7rem;
  box-shadow: 0 2px 8px #b7e4c711;
}
footer {
  background: #f8fbf7;
  color: #2d6a4f;
  text-align: center;
  padding: 3rem 2rem;
  font-size: 1rem;
  border-top: 1px solid #e0e0e0;
}
.intro-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}
.intro-text {
  flex: 1 1 340px;
  min-width: 280px;
  max-width: 600px;
  font-size: 1.13rem;
  line-height: 1.7;
}
.intro-img {
  flex: 1 1 280px;
  min-width: 220px;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-flex:nth-child(even) .intro-text {
  order: 2;
  text-align: left;
}
.intro-flex:nth-child(even) .intro-img {
  order: 1;
}
.intro-flex:nth-child(odd) .intro-text {
  order: 1;
  text-align: left;
}
.intro-flex:nth-child(odd) .intro-img {
  order: 2;
}
@media (max-width: 900px) {
  .bereiche-grid, .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 { font-size: 2rem; }
  .intro-flex {
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
  }
  .intro-img, .intro-text {
    max-width: 100%;
    min-width: 0;
  }
  .intro-text {
    text-align: left;
  }
}
@media (max-width: 600px) {
  .bereiche-grid, .gallery {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 3rem 0.5rem 2rem 0.5rem;
    border-radius: 1rem;
  }
  nav ul {
    gap: 1rem;
    padding: 0.5rem 0.5rem;
  }
  .bereich-card img, .gallery img {
    max-width: 100%;
    height: 110px;
  }
  form {
    padding: 1rem 0.5rem;
  }
}

/* Modal für Galerie */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  border-radius: 1rem;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.gallery-img:hover {
  transform: scale(1.05);
}

.bereich-gallery {
  cursor: pointer;
  transition: transform 0.3s;
}

.bereich-gallery:hover {
  transform: scale(1.05);
}

/* Modal für Galerie */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  border-radius: 1rem;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.prev-gallery, .next-gallery {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 30px;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
}

.prev-gallery {
  left: 20px;
}

.next-gallery {
  right: 20px;
}

.prev-gallery:hover, .next-gallery:hover {
  background-color: rgba(0,0,0,0.8);
}

#thumbnails {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  max-width: 80%;
  overflow-x: auto;
  padding: 10px;
  background-color: rgba(0,0,0,0.5);
  border-radius: 10px;
}

.thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.thumbnail:hover {
  border-color: #fff;
}

.thumbnail.active {
  border-color: #52b788;
}
