html, body {
  height: auto;
}
main {
  padding-top: 0;
}

/* ###### Header allgemein ###### */

#header {
  /* margin-top: 1.5rem; */
  /* background: rgba(var(--weiss), 0); */
  margin-top: 0;
  background: rgba(var(--weiss), 0);
  box-shadow: unset;
}
#header > .container {
  padding-left: 1rem;
  padding-right: 1rem;
}
#header.header-scrolled {
  margin: 0;
  background-color: rgba(var(--weiss));
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  transition: all .5s;
}
#header.header-scrolled > .container {
  padding-left: 12px;
  padding-right: 12px;
  transition: all .5s;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  /* margin-top: 9rem; */
  width: 100%;
  /* height: 50vh; */
  /* height: 50rem; */
  background-color: rgba(var(--hauptfarbe), .25);
  position: relative;
}
#hero .container {
  padding-top: 80px;
}

#hero:before {
  content: "";
  /* background: rgba(0, 0, 0, 0.6); */
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
}

/* ===== Carousel ===== */
#hero .carousel,
#hero .carousel-inner,
#hero .carousel-item,
#hero .carousel-item::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}
/* #hero .carousel-item::before {
  content: "";
  background-color: rgba(4, 12, 21, 0.5);
} */

#hero .carousel-container {
  display: flex;
  align-items: center;
  position: absolute;
  bottom: 0;
  top: 82px;
  left: 50px;
  right: 50px;
}

#hero .carousel-inner .carousel-item {
  transition-property: opacity;
  background-position: center top;
}

#hero .carousel-inner .carousel-item,
#hero .carousel-inner .active.carousel-item-start,
#hero .carousel-inner .active.carousel-item-end {
  opacity: 0;
}

#hero .carousel-inner .active,
#hero .carousel-inner .carousel-item-next.carousel-item-start,
#hero .carousel-inner .carousel-item-prev.carousel-item-end {
  opacity: 1;
  transition: 0.5s;
}

#hero .carousel-inner .carousel-item-next,
#hero .carousel-inner .carousel-item-prev,
#hero .carousel-inner .active.carousel-item-start,
#hero .carousel-inner .active.carousel-item-end {
  left: 0;
  transform: translate3d(0, 0, 0);
}

#hero .carousel-control-next-icon,
#hero .carousel-control-prev-icon {
  /* background: none; */
  background: rgba(var(--gruen), .5);
  font-size: 30px;
  line-height: 0;
  width: auto;
  height: auto;
  /* background: rgba(255, 255, 255, 0.2); */
  border-radius: 50px;
  transition: 0.3s;
  color: rgba(255, 255, 255, .75);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero:hover .carousel-control-next-icon,
#hero:hover .carousel-control-prev-icon {
  background: rgba(var(--gruen), 1);
  color: rgba(var(--weiss));
}

#hero .carousel-indicators li {
  cursor: pointer;
  background: #fff;
  /* overflow: hidden; */
  border: 0;
  width: 12px;
  height: 12px;
  border-radius: 50px;
  opacity: 0.6;
  transition: 0.3s;
}

#hero .carousel-indicators li.active {
  opacity: 1;
  background: rgba(var(--akzentfarbe));
}
@media (max-width: 992px) {
  #hero .carousel-container {
    text-align: center;
    top: 74px;
  }
}
@media (min-width: 1024px) {
  #hero .carousel-control-prev,
  #hero .carousel-control-next {
    width: 5%;
  }
}
#hero .carousel-item {
  /* background-size: cover; */
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}
@media (orientation: portrait) {
  #hero .carousel-item {
    background-size: cover;
  }
}
/* @media (min-aspect-ratio: 2 / 1) {
  #hero {
    .carousel-item {
      background-size: contain!important;
      background-repeat: repeat-x!important;
    }
  }
} */
@media (aspect-ratio <= 5) {
  #header {
    background-color: white;
  }
  #hero {
    margin-top: 4rem;
    aspect-ratio: 2.8 / 1!important;
    transition: aspect-ratio 1s;
  }
  #hero .carousel-item {
    background-size: contain!important;
    background-repeat: repeat-x!important;
  }
}
@media (aspect-ratio <= 2) {
  #hero {
    aspect-ratio: 2.4 / 1!important;
    transition: aspect-ratio 1s;
  }
  #hero .carousel-item {
    background-size: cover!important;
    background-repeat: no-repeat!important;
  }
}
@media (aspect-ratio <= 1.33) {
  #hero {
    aspect-ratio: 2 / 1!important;
    transition: aspect-ratio 1s;
  }
  #hero .carousel-item {
    background-size: cover!important;
    background-repeat: no-repeat!important;
  }
}
@media (aspect-ratio <= 1) {
  #hero {
    aspect-ratio: 1.5 / 1!important;
    transition: aspect-ratio 1s;
  }
}
@media (aspect-ratio <= .5) {
  #hero {
    aspect-ratio: 4 / 3!important;
    transition: aspect-ratio 1s;
  }
  #hero .carousel-item {
    padding-top: 2rem;
  }
}
@media (max-width: 320px) {
  #hero .carousel-item {
    top: 1rem;
  }
}
.carousel-indicators {
  position: absolute;
  bottom: -2.5rem;
  /* margin-top: 1rem; */
  /* z-index: 1000; */
  /* background-color: lime; */
}


/* ===== Carousel Ende =====*/

#logo a {
  height: 8rem;
  position: relative;
  transition: height .5s;
}
@media (max-width: 1200px) {
  #hero {
    margin-top: 7rem;
  }
  #logo a {
    height: 6rem;
    transition: all .5s;
  }
}
@media (max-width: 576px) and (orientation: portrait) {
  #hero {
    margin-top: 5rem;
  }
  #logo a {
    height: 4rem;
    transition: all .5s;
  }
}
@media (max-width: 997px) and (orientation: landscape) and (pointer: coarse) {
  #logo a {
    height: 4rem;
    transition: all .5s;
  }
}
#header.header-scrolled #logo a {
  height: 4rem;
  transition: height .5s;
}
#header .logo-claim {
  fill: rgba(var(--hauptfarbe), 1);
  transition: all .5s;
}
#header.header-scrolled .logo-claim {
  fill: rgba(var(--hauptfarbe), 0);
  transition: all .5s;
}
#header #logo {
  margin-bottom: 0;
  transition: all .5s;
}
#header.header-scrolled #logo {
  margin-bottom: -1rem;
  transition: all .5s;
}

.komlinks p {
  opacity: 1;
}
#header.header-scrolled .komlinks p {
  opacity: 0;
  transition: all 1s;
}
.komlinks .knopf {
  margin: 0 0 .5rem;
}
@media (max-width: 991.9px) {
  .komlinks .knopf {
    margin: 0;
    padding: 0;
    transition: all .5s;
  }
}
@media (min-width: 992px) {
  #header.header-scrolled .komlinks .knopf {
    margin: .5rem 0 -1rem;
    transition: all .5s;
  }
}
