/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */

body {
  padding-top: 3rem;
  padding-bottom: 3rem;
  color: #5a5a5a;
}


/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
  margin-bottom: 4rem;
}
/* Since positioning the image, we need to help out the caption */
.carousel-caption {
  bottom: 3rem;
  z-index: 10;
  /* background-color: rgba(194, 194, 194, 0.735); */
  margin: 5px;
  color: rgb(255, 255, 255) !important;
}
.carousel_header_2 {
  background-color: rgba(0, 43, 68, 0.9);
  width: fit-content;
  padding: 10px;
  bottom: 3rem;
  z-index: 10;
  margin: 5px;
  margin-left: 10%;
  color: rgb(255, 255, 255) !important;
  font-weight: bold; /* Diese Zeile hinzufügen */
  /* border: 1px solid aliceblue;  */
}

.custom-caption,
.custom-caption h1,h2,h3 {
    color: black !important;
}
/* Declare heights because of positioning of img element */
.carousel-item {
  height: 32rem;
  /* height: auto !important;  */
}

.custom-headline {
  margin-left: 10%;
}
.carousel-item > img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  /* max-width: 100%; */
  height: 32rem;
}
/* Carousel Anpassungen */
.img-container {
    overflow: hidden;
    height: 70vh; /* Feste Höhe */
    position: relative;
}

.carousel-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Auffälligere Carousel-Pfeile */
.carousel-control-prev,
.carousel-control-next {
    width: 50px !important;
    height: 50px !important;
    background-color: rgba(0, 43, 68, 0.7) !important;
    border-radius: 50% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
}

.carousel-control-prev { left: 10px !important; }
.carousel-control-next { right: 10px !important; }

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem !important;
    height: 2.5rem !important;
    background-size: 100% 100% !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 43, 68, 0.9) !important;
    transform: translateY(-50%) scale(1.1) !important;
}




/* Langsamer Scroll-Effekt */
.carousel-inner {
    transition: transform 10s linear; /* Verlangsamung */
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .img-container {
        height: 50vh;
    }
    .carousel-caption {
        max-width: 90% !important;
        font-size: 0.9rem;
    }
}


/* Panorama-Scrolling Effekt - Mobile only 
-------------------------------------------------- */

@media (max-width: 767.98px) {
  .carousel-inner {
    overflow: hidden;
  }
  
  .carousel-item.active img {
    width: 200% !important;
    max-width: none !important;
    height: 70vh;
    object-fit: cover;
    animation: panorama-scroll 5s linear infinite;
  }
  
  @keyframes panorama-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
}

/* MARKETING CONTENT
-------------------------------------------------- */

/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
  margin-bottom: 1.5rem;
  text-align: center;
}
.marketing h2 {
  font-weight: 400;
}
/* rtl:begin:ignore */
.marketing .col-lg-4 p {
  margin-right: .75rem;
  margin-left: .75rem;
}
/* rtl:end:ignore */


/* Featurettes
------------------------- */

.featurette-divider {
  margin: 5rem 0; /* Space out the Bootstrap <hr> more */
}

/* Thin out the marketing headings */
.featurette-heading {
  font-weight: 300;
  line-height: 1;
  /* rtl:remove */
  letter-spacing: -.05rem;
}


/* RESPONSIVE CSS
-------------------------------------------------- */

@media (min-width: 40em) {
  /* Bump up size of carousel content */
  .carousel-caption p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .featurette-heading {
    font-size: 50px;
  }
}

@media (min-width: 62em) {
  .featurette-heading {
    margin-top: 7rem;
  }
}
