:root{
  --brown:#7a2e1c;
  --sand:#f4d2b1;
  --green:#2f6b0f;
  --dark:#2b2b2b;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
  font-family:Arial,Helvetica,sans-serif;
}

body{
  color: #000000;
  background:#fdfbc4;
}
.gallery{
  max-width:1200px;
  margin:40px auto;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:20px;
  padding:0 20px;
}

.gallery img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:8px;
  cursor:pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery img:hover{
  transform: translateY(-5px);
  box-shadow:0 4px 12px rgba(0,0,0,0.2);
}


h1{
  text-align:center;
  margin-bottom:30px;
  color:var(--brown);
  font-size:32px;
}


@media(max-width:768px){
  .gallery{
    grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
  }
}
#lightbox{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.85);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:2000;
}

#lightbox img{
  max-width:90%;
  max-height:90%;
  border-radius:6px;
}

/* WICHTIG: relative Kontext */
#lightbox{
  position:fixed;
}

/* Pfeile */
.navi{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  font-size:60px;
  color:#fff;
  cursor:pointer;
  user-select:none;
  padding:10px 20px;
  z-index:2100;
}

.navi:hover{
  color:#f4d2b1;
}

.navi.left{ left:20px; }
.navi.right{ right:20px; }

/* Close */
#lightbox span{
  position:absolute;
  top:20px;
  right:30px;
  font-size:40px;
  color:#fff;
  cursor:pointer;
}
.map-container{
  max-width:1100px;
  margin:80px auto;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 8px 25px rgba(0,0,0,0.15);
}

iframe{
  width:100%;
  height:500px;
  border:none;
}
.text-content{
  padding:80px 20px;
}

/* Layout: Text links, Bild rechts */
.text-box{
  max-width:1100px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:60px;
}

/* TEXT */
.text-box .text{
  flex:1;
  font-size:18px;
  line-height:1.9;
  color:#333;
}

.text-box .text p{
  margin-bottom:18px;
}

/* BILD */
.text-box .image{
  flex:0 0 320px;
  display:flex;
  justify-content:center;
  align-items:center;
}

.text-box .image img{
  width:320px;
  height:320px;
  object-fit:cover;
  border-radius:50%;
  box-shadow:0 10px 30px rgba(0,0,0,0.15);
  border:4px solid #fff;
}
.contact {
  max-width: 600px;
  margin: auto;
  background: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  text-align: center;
  margin-bottom: 40px;
}

.contact p {
  margin: 8px 0;
  font-size: 16px;
}

.contact a {
  color: var(--green);
  text-decoration: none;
  font-weight: bold;
}

.contact a:hover {
  text-decoration: underline;
}

form {
  max-width: 600px;
  margin: auto;
  background: #fff;
  padding: 30px 35px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: var(--brown);
}

#status {
  text-align:center; 
  margin-top:20px; 
  font-weight:bold;
  font-size:16px;
}


#overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.6);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.header-divider{
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:2px;
  background:white;
}

.overlay-box{
  background:#fff;
  padding:30px 25px;
  max-width:400px;
  width:90%;
  text-align:center;
  border-radius:8px;
}

.overlay-box h2{
  margin-bottom:15px;
  color:var(--brown);
}

.overlay-box p{
  margin-bottom:20px;
}

.overlay-box button{
  background:var(--green);
  color:#fff;
  border:none;
  padding:10px 25px;
  font-size:16px;
  cursor:pointer;
}

/* HEADER */
.site-header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:1000;
  background:#fdfbc4;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 24px;
  border-bottom:4px solid #fff;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  max-width:220px;
}

.logo a{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}

.logo img{
  height:70px;
  width:auto;
  display:block;
}

.logo h2{
  margin:0;
  font-size:20px;
  font-weight:700;
  color:var(--brown);
  white-space:nowrap;
}

.right{
  display:flex;
  align-items:center;
  gap:18px;
}

.login-btn{
  padding:8px 18px;
  border:1px solid var(--brown);
  border-radius:6px;
  color:#fff;
  text-decoration:none;
  background:var(--brown);
  font-size:14px;
  font-weight:500;
}

.login-btn:hover{
  background:#fff;
  color:#000;
}

.burger{
  font-size:28px;
  background:none;
  border:none;
  cursor:pointer;
}

/* MENU */
.menu-overlay,
.menu-overlay2{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.7);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
  z-index:2000;
}

.menu-overlay.active,
.menu-overlay2.active{
  opacity:1;
  pointer-events:auto;
}

.overlay-nav,
.overlay-nav2{
  display:flex;
  flex-direction:column;
  gap:24px;
  text-align:center;
}

.overlay-nav a,
.overlay-nav2 a{
  color:#fff;
  font-size:24px;
  text-decoration:none;
  font-weight:500;
}

.close-btn,
.close-btn2{
  position:absolute;
  top:24px;
  right:28px;
  font-size:42px;
  background:none;
  border:none;
  color:#fff;
  cursor:pointer;
}

/* HERO */
.hero{
  margin-top:96px;
  height:420px;
  background:url("/bilder/general/image.png") center center no-repeat;
  background-size:100% auto;
  display:flex;
  justify-content:center;
  align-items:center;
  position:relative;
  overflow:hidden;
}

.hero::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:14px;
  background:
    linear-gradient(to bottom,
      #fff 0px,
      #fff 4px,
      rgb(253, 251, 196) 4px,
      rgb(253, 251, 196) 14px
    );
}

.hero::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:14px;
  background:
    linear-gradient(to bottom,
      rgb(253, 251, 196) 0px,
      rgb(253, 251, 196) 10px,
      #fff 10px,
      #fff 14px
    );
}

#h1-hero{
  font-family:"Helvetica",sans-serif;
  color:#fff;
  font-size:42px;
  text-align:center;
  text-shadow:0 1px 0 #ccc,0 2px 0 #bbb,0 3px 0 #aaa,0 4px 6px rgba(0,0,0,0.4);
}

.hero h1{
  font-family:"Helvetica",sans-serif;
  color:#fff;
  font-size:42px;
  text-align:center;
  text-shadow:0 1px 0 #ccc,0 2px 0 #bbb,0 3px 0 #aaa,0 4px 6px rgba(0,0,0,0.4);
}


body.menu-open{
  overflow:hidden;
}

/* SECTIONS */
.section{
  max-width:1200px;
  margin:auto;
  padding:70px 20px;
}

.welcome{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:40px;
  align-items:center;
}

.welcome h2{
  color:var(--brown);
  font-size:32px;
  margin-bottom:20px;
}

.welcome p{
  margin-bottom:12px;
}

.welcome img{
  width:260px;
  height:260px;
  border-radius:50%;
  object-fit:cover;
}

/* STATS */
.stats{
  padding-top:40px;
  margin-top:-70px;
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  text-align:center;
  align-items:center;
}

.stat{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.stat strong{
  font-size:36px;
  color:#c0392b;
}

.stat span{
  margin-top:8px;
}

.divider{
  width:100%;
  max-width:900px;
  height:1px;
  background:rgba(0,0,0,0.2);
  margin:30px auto;
}

/* LINKS */
.links{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}

.links img{
  width:100%;
  max-width:260px;
  border-radius:50%;
}

.links a{
  display:block;
  margin:8px 0;
  color:#fff;
  background:var(--green);
  padding:12px 18px;
  text-decoration:none;
  border-radius:6px;
  width:max-content;
}

.news-wrapper{
 background:var(--sand);
 border-radius: 12px;
text-align: center;
 } 

.news-grid{
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
 gap:20px;
 margin-top:30px;
 } 

.news {
 background: #fff; 
text-decoration: none;
 color: #000;
 display: block;
 border-radius: 6px;
 overflow: hidden;
 transition: transform 0.2s ease, box-shadow 0.2s ease;
 } 

.news:hover {
 transform: translateY(-5px); 
box-shadow: 0 4px 10px rgba(0,0,0,0.15);
 } 

.news img {
 width: 100%;
 height: auto;
 object-fit: cover;
 display: block;
 image-rendering: auto;
 transition: transform 0.2s ease, box-shadow 0.2s ease;
 } 
.news div{ 
padding:15px;
 }


/* ===== CTA MIT FARBSTREIFEN ===== */

.cta{
  height:240px;
  background:url("/bilder/general/image.png") center/cover;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}

/* OBEN: weiß - gelb */
.cta::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:14px;
  background:linear-gradient(
    to bottom,
    #ffffff 0px,
    #ffffff 4px,
    rgb(253, 251, 196) 4px,
    rgb(253, 251, 196) 14px
  );
}

/* UNTEN: gelb - weiß */
.cta::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:14px;
  background:linear-gradient(
    to bottom,
    rgb(253, 251, 196) 0px,
    rgb(253, 251, 196) 10px,
    #ffffff 10px,
    #ffffff 14px
  );
}

/* LINK STYLE */
.cta a{
  color:#fff;
  font-size:28px;
  text-decoration:none;
  border-bottom:2px solid #fff;
  z-index:2;
  position:relative;
}
/* FOOTER */
.site-footer{
  background:#333;
  color:#fff;
  margin-top:80px;
  position:relative;
}

.site-footer::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:4px;
  border-bottom:2px solid #fff;
}

.footer-top{
  max-width:1200px;
  margin:auto;
  padding:50px 20px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:40px;
}

.footer-col h3{
  font-size:16px;
  margin-bottom:15px;
}

.footer-col h3::after{
  content:"";
  display:block;
  width:40px;
  height:2px;
  margin-top:6px;
  background:var(--sand);
}

.footer-col p,
.footer-col a{
  font-size:14px;
  color:#ddd;
}

.footer-col a{
  display:block;
  text-decoration:none;
  margin:6px 0;
  opacity:0.85;
}

.footer-col a:hover{
  opacity:1;
}

.footer-bottom{
  text-align:center;
  padding:20px;
  font-size:13px;
  color:#bbb;
  border-top:1px solid rgba(255,255,255,0.1);
}

/* BUTTONS */
.stats-buttons{
  max-width:1200px;
  margin:30px auto 0;
  padding:0 20px;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:15px;
}

.stats-buttons a{
  flex:1;
  text-align:center;
  background:var(--green);
  color:#fff;
  text-decoration:none;
  padding:12px 22px;
  border-radius:6px;
  font-size:15px;
}
@media (max-width:600px){

  .site-header{
    padding:10px 14px;
  }

  .logo img{
    height:50px;
  }

  .logo h2{
    font-size:16px;
  }

  .hero{
    height:260px;
    background-size:cover;
  }

  .hero h1,
  #h1-hero{
    font-size:26px;
    padding:0 10px;
  }

  .text-box{
    flex-direction:column;
    text-align:center;
    gap:30px;
  }

  .text-box .image img{
    width:200px;
    height:200px;
  }

  .welcome{
    grid-template-columns:1fr;
    text-align:center;
  }

  .welcome img{
    margin:auto;
  }

    .stats-grid{
    grid-template-columns:repeat(3,1fr);
    gap:15px;
  }

  .stat strong{
    font-size:22px; /* 👈 kleiner */
  }

  .stat span{
    font-size:13px;
  }
  .links{
    grid-template-columns:1fr;
    text-align:center;
  }

  .links a{
    margin:auto;
  }

  .footer-top{
    grid-template-columns:1fr;
    text-align:center;
  }

  iframe{
    height:300px;
  }

  .map-container{
    margin:40px 10px;
  }

  form,
  .contact{
    padding:20px;
  }
}
@media (min-width:601px) and (max-width:1024px){

  .hero{
    height:320px;
    background-size:cover;
  }

  .hero h1,
  #h1-hero{
    font-size:32px;
  }

  .text-box{
    flex-direction:column;
    text-align:center;
  }

  .text-box .image img{
    width:240px;
    height:240px;
  }

  .welcome{
    grid-template-columns:1fr;
    text-align:center;
  }

  .stats-grid{
    grid-template-columns:repeat(3,1fr);
  }

  .links{
    grid-template-columns:1fr;
    text-align:center;
  }

  .footer-top{
    grid-template-columns:repeat(2,1fr);
  }

  iframe{
    height:400px;
  }
}
@media (min-width:1025px) and (max-width:1300px){

  .hero{
    height:360px;
  }

  .text-box{
    gap:40px;
  }

  .welcome{
    grid-template-columns:1.5fr 1fr;
  }

  .stats-grid{
    grid-template-columns:repeat(3,1fr);
  }
}