/* =========================
   Basis-Layout & Grundfarben
   ========================= */
body {
  font-family: 'Lato', Arial, sans-serif;
  margin: 0;
  background: #f8f8f8;
}

/* =========================
   Header & Navigation
   ========================= */
header {
  position: sticky;
  top: 0;
  z-index: 3000;
  background: #118b38;
}
header h1 {
  margin: 0;
  padding: 0.5em 0;
}
header h1, header span { margin: 0; }

nav { 
  position: sticky;
  top: 68px;
  z-index: 2999;
  background: #19cf53;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
nav li { margin: 0; }
nav a {
  display: block;
  color: #111 !important;
  text-decoration: none;
  padding: 1em;
  font-size: 1.0em; /* Schriftgröße etwas kleiner */
}
nav a:hover { 
  background: #0a5422; 
  color: #fff !important;
}

/* =========================
   Footer
   ========================= */
footer { 
  text-align: center; 
  margin-top: 2em; 
}

/* =========================
   Index/Homepage Design
   ========================= */
body.index-home .slider-wrapper {
  max-width: 1200px;
  margin: 2em auto;
  position: relative;
}
body.index-home .slider {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0002;
}
body.index-home .slider-caption {
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 1em;
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  left: 50%;
  transform: translateX(-50%);
}
body.index-home .slider-caption h2 {
  color: #fff !important;
  text-shadow: 1px 1px 8px #0008;
}
body.index-home .slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}
body.index-home .slider-controls button {
  background: rgba(0,0,0,0.4);
  border: none;
  color: #fff; 
  font-size: 2em;
  cursor: pointer;
  pointer-events: all;
  padding: 0 0.5em;
  border-radius: 50%;
  z-index: 11;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
body.index-home .flex-row { display: flex; flex-wrap: wrap; gap: 2em; }
body.index-home .flex-col { flex: 1 1 200px; min-width: 200px; text-align: center; }
body.index-home .flex-col img { max-width: 128px; margin-bottom: 1em; }
body.index-home .schwerpunkte { margin-top: 2em; }
body.index-home .schwerpunkte .flex-col img { max-width: 128px; }
body.index-home .slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}
body.index-home header img { max-width:120px; max-height:80px; border-radius:8px; margin-right:1em; }

/* =========================
   Standardseiten (Aktuelles etc.)
   ========================= */
main {
  max-width: 900px;
  margin: 2em auto;
  border-radius: 14px;
  box-shadow: 0 2px 16px #39a96b22;
  padding: 2em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.4,2,.6,1);
}
body.page-loaded main {
  opacity: 1;
  transform: translateY(0);
}
h1, h2 { color: #000000; }
hr { border: none; border-top: 1px solid #ccc; margin: 2em 0; }
img { max-width: 100%; height: auto; border-radius: 8px; }
main table, main img {
  max-width: 100%;
  box-sizing: border-box;
}

/* =========================
   Menü Dropdown
   ========================= */
.dropdown { position: relative; }
.submenu {
  display: none;
  position: absolute;
  background: #19cf53;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 180px;
  z-index: 2001;
}
.dropdown:hover .submenu {
  display: block;
}
.submenu li a {
  padding: 1em;
  color: #111 !important;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  font-size: 0.8em;
}
.submenu li a:hover {
  background: #0a5422;
  color: #fff !important;
}
nav ul li ul { display: none; }
nav ul li.touch-open > ul { display: block; }
.submenu-arrow {
  font-size: 0.8em;
  margin-left: 0.3em;
}


/* =========================
   Kreatives-Seite (kreatives.html)
   ========================= */
body.kreatives-seite {
  background: #ffe3c2 !important;
}
body.kreatives-seite main,
body.kreatives-seite .main-content {
  background: #ffefd9 !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 12px;
}
body.kreatives-seite .kreativgruppe {
  max-width: 900px;
  margin: 2em auto;
  background: #ffefd9;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  line-height: 1.6;
}
body.kreatives-seite .kreativ-info {
  background: #ffe3c2;
  padding: 1.5em;
  border-left: 5px solid #b85c38;
  border-radius: 10px;
  margin-top: 1.5em;
  margin-bottom: 1em;
}
body.kreatives-seite .kreativ-deko {
  position: fixed;
  top: 2vw;
  right: 2vw;
  width: 18vw;
  max-width: 250px;
  min-width: 100px;
  z-index: 1;
  pointer-events: none;
  transform: rotate(-10deg);
}
body.kreatives-seite .main-content .kreativ-deko {
  position: absolute;
  top: 2.5em;
  right: 5.5em;
  width: 300px;
  max-width: 30%;
  min-width: 80px;
  z-index: 2;
  pointer-events: none;
  transform: rotate(-10deg);
}
main h1 {
  top: 0;
  background: #fff;
  z-index: 3000;
  margin-top: 0;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}
h1 {
  background: transparent !important;
  }
  header h1 {
  color: #000 !important;
}
#vorstand-tabelle th,
#vorstand-tabelle td {
  text-align: left;
}
/* =========================
   Kreativ-Treff Emojis & Buttons
   ========================= */
.kreativ-button-emoji-block {
  text-align: center;
  margin: 2em 0;
}
.emoji-row {
  font-size: 1.5em;
  margin-bottom: 0.3em;
}
.kreativ-button-emoji-frame {
  background-color: #fff3e6;
  padding: 20px 40px;
  font-size: 1.6rem;
  font-family: 'Dancing Script', cursive, sans-serif !important;
  color: #3d2a1a;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 8px #b85c3822;
  transition: background 0.2s, color 0.2s;
  border: 2px solid #b85c38;
  display: inline-block;
}
.kreativ-button-emoji-frame:hover {
  background: #b85c38;
  color: #fff;
}

.emoji-col {
  display: flex;
  flex-direction: column;
  font-size: 1.5em;
  margin-right: 0.5em;
  align-items: center;
  gap: 0.1em;
}

/* =========================
   Responsive Design
   ========================= */
@media (max-width: 700px) {
  /* Flex-Layout für Spalten und Navigation */
  .flex-row { flex-direction: column; gap: 1em; }
  nav ul { flex-direction: column; overflow-y: auto; max-height: 90vh; }
  nav a {
    font-size: 1em;
    padding: 0.2em 0.8em; /* Weniger Abstand oben/unten und seitlich */
  }

  /* Submenu-Einträge kleiner */
  .submenu li a {
    padding: 0.4em 0.8em;
    font-size: 0.8em;
  }

  /* Bienen-Bilder */
  .bienen-bilder {
    flex-direction: column !important;
    align-items: center;
  }
  .bienen-bilder img {
    margin-bottom: 1em;
    max-width: 60vw;
  }
 
  /* Main-Content und Überschriften */
 h1 {
    font-size: 1.3em !important;
  }
  h2 {
    font-size: 1.1em !important;
  }

  /* Kreativ-Seite Deko */
  body.kreatives-seite .main-content .kreativ-deko {
    position: absolute;
    top: 2.0em;
    right: 2.0em;
    left: auto;
    margin: 0;
    width: 90px;
    max-width: 30vw;
    min-width: 40px;
    transform: rotate(-5deg);
    display: block;
    z-index: 10;
  }

  /* Umweltschutz-Seite Deko */
  body.umweltschutz-seite .main-content .umweltschutz-deko {
    width: 70px !important;
    top: 0.5em !important;
    right: 00.5em !important;
  }


  /* Ticker auf der Startseite kleiner */
  body.index-home .ticker,
  .ticker {
    height: 40px;
  }
  body.index-home .ticker-content,
  .ticker-content {
    font-size: 1.1em;
    padding: 0.2em 0;
  }

  .table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-scroll table {
    min-width: 600px;
    width: max-content;
  }
  nav {
    position: static;
    /* ...deine weiteren nav-Regeln... */
  }
  h1, h2, h3, h4, h5, h6 {
  color: #000 !important;
  }

  /* Ticker immer schwarz */
  .ticker, .ticker-content {
    color: #000 !important;
  }

  .kreativ-button-container {
    position: static !important;
    left: 0 !important;
    justify-content: center;
    width: 100%;
    margin-bottom: 1em;
    display: flex;
  }
  .kreativ-button-gedreht {
    margin: 0 auto 1em auto;
    display: block;
    position: static;
    transform: rotate(-90deg);
  }
  
    body.index-home .slide img {
    height: 250px; /* halb so hoch wie 500px */
  }

}

/* =========================
   Vorstand & Kontaktinformationen
   ========================= */
body.vorstand-info main table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
  overflow: hidden;
}
body.vorstand-info main table th,
body.vorstand-info main table td {
  padding: 0.7em 1em;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
  font-size: 1em;
}
body.vorstand-info main table tr:last-child td {
  border-bottom: none;
}
body.vorstand-info main table th {
  background: #19cf53;
  color: #fff;
  font-weight: bold;
}
body.vorstand-info main table tr:nth-child(even) {
  background: #f8f8f8;
}
body.vorstand-info main h1 {
  margin-top: 0;
  color: #118b38;
}
body.vorstand-info main {
  max-width: 1200px;
  margin: 2em auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
  padding: 2em;
}

/* Vorstandstabelle: Spaltenbreiten */
#vorstand-tabelle td, #vorstand-tabelle th {
  padding: 1em 1.5em;
}
#vorstand-tabelle tr {
  height: 2.5em;
}
#vorstand-tabelle td:nth-child(2),
#vorstand-tabelle th:nth-child(2) {
  min-width: 220px;
  width: 22%;
}
#vorstand-tabelle td:nth-child(4),
#vorstand-tabelle th:nth-child(4) {
  min-width: 300px;
  width: 22%;
}

/* =========================
   Bilderreihe
   ========================= */
.bilderreihe {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1em;
  margin-bottom: 1.5em;
}
.bilderreihe img {
  max-height: 250px;         /* Alle Bilder gleich hoch */
  width: auto;           /* Breite passt sich an */
  max-width: 100%;       /* Nicht breiter als das Elternelement */
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;   /* Bild bleibt im Rahmen, wird nicht verzerrt */
}

/* =========================
   Slider
   ========================= */
.slide {
  opacity: 0;
  transition: opacity 1.5s;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}
.slide.active {
  opacity: 1;
  z-index: 1;
  position: relative;
}
.slider {
  position: relative;
}

/* =========================
   Mietmöglichkeiten
   ========================= */
#mietmoeglichkeiten {
  margin: 1em 0;
  padding-left: 1.5em;
}
#mietmoeglichkeiten li {
  margin-bottom: 0.5em;
  font-size: 1.1em;
  font-family: inherit;
}
.miet-text {
  flex: 1 1 auto;
  min-width: 180px;
  display: inline-block;
  min-width: 22em;
}
.miet-preis {
  font-weight: bold;
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
  margin-left: 1em;
  display: inline-block;
  min-width: 12em;
}
#mietmoeglichkeiten-tabelle {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
  overflow: hidden;
}
#mietmoeglichkeiten-tabelle th,
#mietmoeglichkeiten-tabelle td {
  padding: 0.7em 1em;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
  font-size: 1.1em;
}
#mietmoeglichkeiten-tabelle th {
  background: #19cf53;
  color: #fff;
  font-weight: bold;
}
#mietmoeglichkeiten-tabelle tr:last-child td {
  border-bottom: none;
}
.miet-ueberschrift {
  font-weight: bold;
  background: #f0f0f0;
  text-align: left;
  padding: 1em 0.5em;
  font-size: 1.1em;
}

/* =========================
   Ticker
   ========================= */
.ticker {
  width: 100%;
  overflow: hidden;
  background: rgba(224,247,250,0.2); /* halbtransparent */
  height: 60px;
  position: relative;
  border-top: none;
  border-bottom: none;
}
.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 45s linear infinite;
  font-size: 24px;
  font-weight: bold;
  padding: 0.5em 0;
}
.ticker-content span {
  text-decoration: none !important;
}
.ticker-content a {
  text-decoration: none !important;
  color: inherit;
}
.ticker .ticker-content a,
.ticker-content span a {
  text-decoration: none !important;
  color: inherit !important;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
body:not(.bienen-seite):not(.umweltschutz-seite):not(.gartennatur-seite):not(.kreatives-seite) .ticker {
  background: rgba(224,247,250,0.2) !important;
  box-shadow: 0 2px 16px #39a96b22 !important;
  border-radius: 14px !important;
}

/* =========================
   Back-to-Top Button
   ========================= */
#back-to-top {
  display: none;
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  background: #19cf53;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2em;
  cursor: pointer;
  box-shadow: 0 2px 8px #0003;
  transition: opacity 0.3s;
  opacity: 0.8;
}
#back-to-top:hover {
  background: #118b38;
  opacity: 1;
}
#back-to-top.show {
  display: block;
}

/* =========================
   FAQ Bereich
   ========================= */
#faq-list details {
  margin-bottom: 1em;
  background: #f8f8f8;
  border-radius: 6px;
  padding: 1em;
  box-shadow: 0 1px 4px #0001;
}
#faq-list summary {
  font-weight: bold;
  cursor: pointer;
  color: #118b38;
  font-size: 1.1em;
}
#faq-list details[open] summary {
  color: #19cf53;
}

/* =========================
   Seitenfade-Effekt
   ========================= */
.page-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.4,2,.6,1);
}
body.page-loaded .page-fade {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Galerie & Lightbox
   ========================= */
#gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#gallery img.thumb {
  width: 200px;
  height: auto;
  cursor: pointer;
  border: 2px solid #ccc;
  transition: transform 0.2s;
}
#gallery img.thumb:hover {
  transform: scale(1.05);
}

/* Lightbox Overlay */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
#lightbox img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px #fff;
}
#lightbox.hidden {
  display: none;
}
#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* Galerie Thumbnails */
.gallery img.thumb {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin: 5px;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

/* =========================
   Wildbienen-Seite (bienen.html)
   ========================= */
body.bienen-seite {
  background: linear-gradient(135deg, #fffbe6 0%, #ffe7b3 100%);
  background-attachment: fixed;
  position: relative;
}
body.bienen-seite::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: url('data:image/svg+xml;utf8,<svg width="60" height="52" viewBox="0 0 60 52" fill="none" xmlns="http://www.w3.org/2000/svg"><polygon points="30,2 58,15 58,41 30,54 2,41 2,15" stroke="%23b85c38" stroke-width="2" fill="none"/></svg>');
  background-size: 80px 70px;
  z-index: 0;
}
body.bienen-seite .bienen-deko {
  position: fixed;
  top: 2vw;
  right: 2vw;
  width: 18vw;
  max-width: 250px;
  min-width: 100px;
  z-index: 1;
  pointer-events: none;
  transform: rotate(20deg);
}
body.bienen-seite .main-content {
  position: relative;
  background: rgba(255, 249, 220, 0.85);
  box-shadow: 0 2px 16px #b85c3822;
  border-radius: 14px;
}
body.bienen-seite .main-content .bienen-deko {
  position: absolute;
  top: 0.0em;
  right: 0.0em;
  width: 180px;
  max-width: 30%;
  min-width: 80px;
  z-index: 0;
  pointer-events: none;
  transform: rotate(20deg);
}
.bienen-bilder {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  margin-bottom: 2em;
  position: relative; 
}
.bienen-bilder img {
  max-height: 300px;
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

/* =========================
   Umweltschutz-Seite (umweltschutz.html)
   ========================= */
body.umweltschutz-seite {
  background: linear-gradient(135deg, #e6fff8 0%, #11c089 100%);
  background-attachment: fixed;
  position: relative;
}
body.umweltschutz-seite::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  opacity: 0.80;
  background-image: url('data:image/svg+xml;utf8,<svg width="200" height="60" viewBox="0 0 200 60" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 30 Q50 60 100 30 T200 30 V60 H0 Z" fill="%2348b6a3" opacity="0.15"/></svg>');
  background-size: 300px 90px;
  z-index: 0;
}
body.umweltschutz-seite .umweltschutz-deko {
  position: fixed;
  top: 2vw;
  right: 2vw;
  width: 18vw;
  max-width: 250px;
  min-width: 100px;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 4px 16px #48b6a355);
}
body.umweltschutz-seite .main-content {
  position: relative;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 2px 16px #11c08922;
  border-radius: 14px;
}
body.umweltschutz-seite .main-content .umweltschutz-deko {
  position: absolute;
  top: 0.5em;
  right: -5.5em;
  width: 180px;
  max-width: 30%;
  min-width: 80px;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 4px 16px #48b6a355);
}

/* =========================
   Garten & Natur-Seite (gartennatur.html)
   ========================= */
body.gartennatur-seite {
  background: linear-gradient(135deg, #e8ffe8 0%, #b3e6b3 100%);
  background-attachment: fixed;
  position: relative;
}
body.gartennatur-seite::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image: url('data:image/svg+xml;utf8,<svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M60 10 Q70 40 110 60 Q70 80 60 110 Q50 80 10 60 Q50 40 60 10 Z" fill="%2348b6a3" opacity="0.3"/><ellipse cx="60" cy="60" rx="40" ry="20" fill="%2339a96b" opacity="0.15"/></svg>');
  background-size: 180px 180px;
  z-index: 0;
}
body.gartennatur-seite .main-content {
  position: relative;
  background: rgba(255, 249, 220, 0.85);
  box-shadow: 0 2px 16px #b85c3822;
  border-radius: 14px;
}

/* =========================
   Standardseiten: dezentes Grün & transparenter Inhalt
   ========================= */
body:not(.bienen-seite):not(.umweltschutz-seite):not(.gartennatur-seite) {
  background: linear-gradient(135deg, #e6ffe6 0%, #b3ffcc 100%);
  background-attachment: fixed;
}
body:not(.bienen-seite):not(.umweltschutz-seite):not(.gartennatur-seite):not(.kreatives-seite) main,
body:not(.bienen-seite):not(.umweltschutz-seite):not(.gartennatur-seite):not(.kreatives-seite) .main-content {
  background: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 2px 16px #39a96b22 !important;
  border-radius: 14px !important;
  position: relative;
}



 /* Lightbox für große Bildanzeige */
.bienen-bilder img.enlarged {
  position: relative;
  z-index: 10;
  max-width: 50vw;
  max-height: 40vh;
  box-shadow: 0 4px 32px #000a;
  transition: transform 0.3s;
  cursor: zoom-out;
  background: #fff;
  border-radius: 12px;
  margin: 0;
  display: block;
  transform: scale(1.8);
  transform-origin: center center;
}

/* Hero-Bereich halbtransparent */
.hero {
  background: linear-gradient(135deg, rgba(224,247,250,0.2), rgba(255,255,255,0.2));
  border-radius: 16px;
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 2em;
}

