/* ================================================
   KARTEN -> Infobox Startsteite
   ================================================ */

.card-overlay {
  position: relative;
  width: 100%;
  padding-top: 10%;
  padding-bottom: 20%;
  overflow: hidden;
}

.card-overlay .card-body {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 2rem;
}


/* ================================================
   INTRO / TITELBILD
   ================================================ */

#intro {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

#intro img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
  z-index: 0;
  position: relative;
}

@media (max-width: 991.98px) {
  #intro img {
    transform: scale(2.0);
    transform-origin: center;
  }
}

@media (max-width: 575.98px) {
  #intro img {
    transform: scale(2.5);
  }
}


/* ================================================
   LAYOUT / PAGE WRAPPER
   ================================================ */

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ================================================
   GALERIE
   ================================================ */

.gallery-img {
  transition: transform 0.4s ease, filter 0.4s ease;
  cursor: pointer;
}

.gallery-img:hover {
  transform: scale(1.1);
  filter: brightness(85%);
}


/* ================================================
   ABSTÄNDE SEKTIONEN
   ================================================ */

section {
  padding: 60px 0;
}


/* ================================================
   NAVIGATION / NAVBAR
   ================================================ */

/* Weisses Hamburger-Icon */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22' /%3E%3C/svg%3E");
}

.navbar-toggler {
  border: 1px solid white;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
}


/* ================================================
   LOGO-OVERLAY (über Titelbild)
   ================================================ */

.logo-overlay {
  position: absolute;
  top: 50%;
  right: 30px;
  left: auto;
  transform: translateY(-50%);
  text-align: center;
}

.logo-img {
  width: 200px;
  max-width: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 991.98px) {
  .logo-img {
    width: 130px;
  }
}

@media (max-width: 570px) {
  .logo-img {
    width: 130px;
  }
}

/* ================================================
   WILLKOMMEN / LOGO MOBIL
   ================================================ */

@media (max-width: 991.98px) {
  #willkommen .d-lg-none .col-12 {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  #willkommen .d-lg-none img {
    width: 70%;
    max-width: 100px;
  }
}


/* ================================================
   Slideshow und Video
   ================================================ */
    .lokal-carousel .carousel-item img {
      height: 420px;
      object-fit: cover;
      width: 100%;
    }
    @media (max-width: 767.98px) {
      .lokal-carousel .carousel-item img {
        height: 240px;
      }
    }
    .lokal-carousel .carousel-caption {
      background: rgba(0, 0, 0, 0.45);
      border-radius: 6px;
      padding: 4px 12px;
      bottom: 16px;
      left: 50%;
      transform: translateX(-50%);
      width: auto;
      white-space: nowrap;
    }
    .lokal-carousel .carousel-caption p {
      margin: 0;
      font-size: 14px;
    }

    /* Video-Bereich */
    .video-section {
      background: #f8f9fa;
      border-radius: 10px;
      border: 1px dashed #ced4da;
      padding: 40px 20px;
      text-align: center;
      color: #6c757d;
    }
    .video-section .video-icon {
      font-size: 48px;
      margin-bottom: 12px;
      color: #adb5bd;
    }


    /* ================================================
   Bildergalerie
   ================================================ */
       /* Galerie-Styles */
    .gallery-img {
      transition: transform 0.4s ease, filter 0.4s ease;
      cursor: pointer;
    }

    .gallery-img:hover {
      transform: scale(1.05);
      filter: sepia(50%) brightness(95%);
    }

    /* Bildunterschriften */
    .gallery-item {
      position: relative;
      text-align: center;
    }

    .gallery-caption {
      font-size: 0.85rem;
      color: #555;
      margin-top: 5px;
    }

    /* Modal-Buttons */
    #prevBtn, #nextBtn {
      background: rgba(0,0,0,0.5);
      color: white;
      font-size: 2rem;
      border: none;
      width: 50px;
      height: 50px;
      border-radius: 50%;
    }

    #prevBtn:hover, #nextBtn:hover {
      background: rgba(0,0,0,0.8);
    }

    /* Modal Caption */
    #modalCaption {
      font-size: 1rem;
      color: white;
      text-align: center;
      margin-top: 10px;
    }