#slideshow {
  position: relative;
  pointer-events: none;
  z-index: 0;
  /*height: calc(100dvh - var(--header-height) - var(--miniform-height));*/
  height: 102dvh;
}

#slideshow .slideshow-wrapper,
#slideshow .slideshow-swiper {
  height: 100%;
}

#slideshow img {
  width: 100vw;
  object-fit: cover;
}

#slideshow .swiper-slide {
  overflow: hidden;
}
#slideshow .swiper-wrapper img {
  animation: kenburns 20s ease-in-out infinite alternate;
  transform-origin: center;
  will-change: transform;
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.15) translate(2%, -2%);
  }
}

#slideshow .swiper-button::after {
  content: "";
  display: block;
  --my-size: clamp(12px, calc(4.42px + 1.33vw), 22px);
  width: var(--my-size);
  height: calc(var(--my-size) * 2.18);
  background-image: url(../img/icon-arrow);
  background-size: contain;
  background-repeat: no-repeat;
}

#slideshow .swiper-button {
  display: none;
}

/*
#slideshow .swiper-button.swiper-button-prev {
  left: 40px;
}

#slideshow .swiper-button.swiper-button-next {
  right: 40px;
  left: unset;
}

#slideshow .swiper-button.swiper-button-next::after {
  transform: rotate(180deg);
}
  */

#slideshow .swiper-slide {
  display: flex;
  justify-content: center;
}

#slideshow .slideshow-wrapper #hero-plakette {
  position: absolute;
  width: clamp(48px, 12vw, 135px);
  top: 50%;
  left: 50%;
  z-index: 9;
  height: unset;
  transform: translate(-50%, -50%);
}

#slideshow .slideshow-wrapper #hero-plakette img:first-child {
  width: clamp(48px, 12vw, 135px);
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: unset !important;
  transform: translate(-50%, -50%);
}

#slideshow .slideshow-wrapper #hero-plakette img:last-child {
  position: absolute;
  max-width: unset !important;
  aspect-ratio: 163/138;
  top: 50%;
  left: 50%;
  width: clamp(100px, 20vw, 280px);
  transform-origin: center;
  height: auto;
  animation: spin 40s;
  object-fit: cover;
  overflow: visible;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
#slideshow .swiper-pagination {
  position: unset;
}
#slideshow .slideshow-swiper {
  position: relative;
}

@media (max-width: 1024px) {
  #slideshow {
    height: 70vw !important;
  }
  #slideshow img {
    height: 100%;
  }
  #slideshow .swiper-button.swiper-button-next {
    right: 0;
  }
  #slideshow .swiper-button.swiper-button-prev {
    left: 0;
  }
}

@media (max-width: 1300px) and (min-width: 768px) {
  #slideshow .slideshow-wrapper #hero-plakette img:first-child {
    max-width: 9vw !important;
  }
}

@media (max-height: 800px) and (min-width: 1024px) {
  .sub-menu li.menu-item a {
    line-height: 1.8 !important;
  }

  #menu-hauptmenu > .menu-item.imp-sub-active > .menu-link,
  #menu-hauptmenu > .menu-item.current-menu-item:not(.no-current) > a {
    padding: calc(var(--gap-s) * 1) calc(var(--gap-l) * 2) !important;
  }

  #menu-hauptmenu {
    margin-top: var(--gap-m) !important;
  }

  body.impmenu-active #theme-logo img {
    max-height: 70px;
  }
}

@media (max-height: 650px) and (min-width: 1024px) {
  body.impmenu-active #theme-logo img {
    max-height: 50px;
  }
}
