/* ===== Reset ===== */
* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

/* ===== Body ===== */
    body {
        font-family: 'Cabin', sans-serif;
        background: #1D9440;
        padding: 10px;
    }

/* ===== Header ===== */
    header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        box-shadow: 0px 25px 30px rgba(0,0,0,0.2);
    }

    .header img {
        max-width: 220px;
        height: auto;
        max-height: 80px;
    }

/* ===== Buttons ===== */
nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  padding: 12px 28px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #404040;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* ===== Dropdowns ===== */
.dropdown {
  position: relative;
}

.dropdown:hover .menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(2,6,23,0.08);
  padding: 4px;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  border: 1px solid #f0f0f0;
  z-index: 100;
}

.menu-item {
  display: block;
  padding: 10px 29px;
  border-radius: 6px;
  font-size: 14px;
  color: #404040;
  text-decoration: none;
  border: 1px solid #f0f0f0;
  margin: 5px;  
}

.menu-item:hover {
  background: #f6f8fb;
}

/* ===== Burger ===== */
#nav-toggle {
  display: none;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 110;
}

.burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #404040;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Burger animation */
#nav-toggle:checked + .burger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#nav-toggle:checked + .burger span:nth-child(2) {
  opacity: 0;
}
#nav-toggle:checked + .burger span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== Galerie Slideshow ===== */
.gallery-container {
  margin-top: 100px;
  max-height: 250px;
  padding: 0 5px;
  border-radius: 10px;
}

.slideshow {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  padding: 20px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

/* Äußerer Rahmen – feste Höhe für den sichtbaren Bereich */
.slide-viewport {
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: #f8f8f8;
  position: relative;
  border-radius: 10px;
}

/* Scrollender Streifen mit allen Slides nebeneinander */
.slide-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  border-radius: 10px;
}

/* Ein einzelner Slide (eine Raster-Seite) */
.slide {
  flex: 0 0 100%;
  height: 100%;
  display: grid;
  border-radius: 8px;
  gap: 12px;
  padding: 12px;
  box-sizing: border-box;
}

/* Raster-Layouts je nach Bildanzahl pro Slide */
.slide[data-count="1"] {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.slide[data-count="2"] {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}
.slide[data-count="3"] {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.slide[data-count="3"] .slide-img:nth-child(1) {
  grid-row: 1 / 3;
}
.slide[data-count="4"] {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

/* Einzelnes Bild im Raster */
.slide-img {
  width: 100%;
  height: 375px;
  object-fit: contain;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
  border-radius: 10px;

}
.slide-img:hover {
  transform: scale(1.01);
  filter: brightness(1.02);
}

/* Navigations-Pfeile */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 20%;
}
.arrow:hover {
  background: #f0f0f0;
  transform: translateY(-50%) scale(1.1);
  opacity: 90%;
}

.arrow-left  { left: 24px; }
.arrow-right { right: 24px; }
.arrow svg {
  width: 24px;
  height: 24px;
  stroke: #404040;
  stroke-width: 2;
  fill: none;
}

/* Indikator-Punkte */
.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.dot.active {
  background: #404040;
  transform: scale(1.2);
}

/* Play / Pause */
.controls {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}
.control-btn {
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 20%;
}
    .control-btn:hover {
        background: #f0f0f0;
        transform: translateY(-50%) scale(1.1);
        opacity: 90%;
    }

/* Beitragsabteilung ------------------------------------------------------------------------------------------------- */

.conributions-header {
  background: #ffffff;
  padding: 20px 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-height: 100px;
  text-align: center;
}

.conributions-header h2 {
  font-size: 32px;
  color: #404040;
  margin-bottom: 10px;
}

.conributions-header p {
  color: #666;
  font-size: 16px;
}

/* Post Slider Container */
.posts-slider-container {
    margin: 20px auto;
    display: flex;
    flex-direction: column; /* alles untereinander */
    gap: 20px;             /* Abstand zwischen Posts */
    overflow: visible;     /* kein horizontal scroll */
}

.post-card {
    width: 100%;
    flex: none;           /* keine Flex-Shrinking oder -Wachstum */
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #f0f0f0;
}


.posts-track {
  display: flex;
  gap: 20px;
}

@media (min-width: 768px) {
  .post-card {
    flex: 0 0 calc(50% - 10px); /* Tablet: 2 per view */
  }
}

@media (min-width: 1024px) {
  .post-card {
    flex: 0 0 calc(33.333% - 14px); /* Desktop: 3 per view */
  }
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #e2e8f0;
}

.post-content {
  padding: 20px;
}

.post-date {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
  display: block;
}

.post-title {
  font-size: 18px;
  font-weight: 600;
  color: #404040;
  margin-bottom: 8px;
  line-height: 1.4;
}

.post-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.post-readmore {
  font-size: 14px;
  font-weight: 600;
  color: #404040;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Bottom Bar Navigation */
.posts-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 15px;
}

.nav-btn {
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 20%;
  margin-top: 20px;
}
.nav-btn:hover {
  background: #f0f0f0;
  transform: translateY(-50%) scale(1.1);
  opacity: 90%;
}

.nav-btn:hover svg {
  stroke: #404040;
}

.nav-btn svg {
  width: 20px;
  height: 20px;
  stroke: #404040;
  stroke-width: 2;
  fill: none;
  transition: all 0.3s ease;
}

.nav-dots {
  display: flex;
  gap: 8px;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-dot.active {
  background: #404040;
  transform: scale(1.2);
}

.actions-header {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  padding: 30px;
  margin-bottom: 20px;
}

.actions-header h2 {
  font-size: 32px;
  color: #404040;
  margin-bottom: 10px;
}

.actions-header p {
  color: #808080;
  font-size: 16px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.post-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-header {
  margin-bottom: 15px;
}

.post-title {
  font-size: 24px;
  color: #404040;
  font-weight: 600;
  margin-bottom: 5px;
}

.post-subtitle {
  font-size: 16px;
  color: #808080;
  margin-bottom: 10px;
}

.post-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #a0a0a0;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.post-content {
  color: #606060;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
  max-height: 1245px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.post-image-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.post-image-thumb:hover {
  transform: scale(1.05);
}

.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.image-modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal-image {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 15px;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #f0f0f0;
  transform: rotate(90deg);
}

.no-posts {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  padding: 40px;
  text-align: center;
  color: #808080;
}

/* ===== Mobile ===== */
@media (max-width: 900px) {
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 20px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    display: none;
    animation: slideDown 0.3s ease forwards;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  #nav-toggle:checked + .burger + nav {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .dropdown:hover .menu {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    margin-top: 5px;
  }

  .menu {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    margin-top: 5px;
  }

  .header img {
    max-width: 180px;
    margin: 0 auto;
  }

/* Mobile Galerie */
  .slide-viewport {
    height: 260px;
  }

  .arrow {
    width: 40px;
    height: 40px;
  }

  .arrow-left {
    left: 10px;
  }

  .arrow-right {
    right: 10px;
  }

  .arrow svg {
    width: 20px;
    height: 20px;
  }

  .slideshow {
    padding: 15px;
  }  
}

@media (max-width: 500px) {
  .slide-viewport {
    height: 200px;
  }

  .slide {
    gap: 8px;
    padding: 8px;
  }

  .arrow {
    width: 35px;
    height: 35px;
  }

  .arrow svg {
    width: 18px;
    height: 18px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .actions-header h2 {
    font-size: 24px;
  }
  
  .post-title {
    font-size: 20px;
  }  
}
        /* ===== Body ===== */
        body {
            font-family: 'Poppins', sans-serif;
            background: #1D9440;
            padding: 10px;
            padding-top: 100px;
        }

        .container-header {
            background: #ffffff;
            padding: 20px 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            border-radius: 10px;
            justify-content: space-between;
            align-items: center;
            position: relative;
            max-height: 100px;
            text-align: center;
            margin-top: 100px;
            font-weight: bold;
            color: #404040;

            .headline {
                font-size: 36px;
            }

            .subheadline {
                font-size: 16px;
            }
        }

        .form {
            background: #ffffff;
            border-radius: 10px;
            padding: 20px;
            margin-top: 20px;
            color: #8f8f8f;
            text-decoration: none;
        }


        /* ===== Fehlermeldungen ===== */

        .error-page {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 20px;

        }

        .error-container {
            background: #ffffff;
            padding: 40px;
            border-radius: 10px;
            justify-content: space-between;
            align-items: center;
            text-align: center;
            margin-top: 200px;
            color: #8f8f8f;
            text-decoration: none;
            width: 40%;
        }

        .error-code {
            font-size: 64px;
            font-weight: bold;
        }

        .error-subtitle {
            font-size: 18px;
            font-family: 'Cabin'
        }

        .error-description {
            font-size: 14px;
            font-family: 'Cabin'
        }

        .btn {
            padding: 12px 28px;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
            background: #ffffff;
            color: #404040;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .btn:hover {
            background: #f0f0f0;
            transform: translateY(-2px);
        }

        /* ===== Formulare ===== */

        .form-conatiner {
            display: flex;
            flex-direction: column;
            gap: 20px;
            color: #404040;
            background: #ffffff;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            margin: 0 auto;
            text-decoration: none;
        }
        .download {
            color:#404040;
            display: flex;
            justify-content: space-between;
            text-decoration: none;
            font-family: 'Cabin';
        }

        .download-icon {
            fill: currentColor;
            width: 40px;
            height: 40px;
            border: 2px solid #a0a0a0;
            border-radius: 5px;
            padding: 5px;

        }
