/* Runtime fixes and clean-template overrides */

@media (max-width: 991px) {
  .collapsing {
    height: auto !important;
    overflow: hidden;
  }

  .navbar-collapse,
  .navbar-collapse.collapsing {
    -webkit-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }

  .navbar-toggle {
    touch-action: manipulation;
    -ms-touch-action: manipulation;
  }

  #main-menu .navbar-collapse .container,
  #main-menu .navbar-collapse.in .container {
    -webkit-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
  }
}

@media (hover: none) and (pointer: coarse), (max-width: 991px) {
  html,
  body {
    background: #f6f6f6;
  }

  body {
    position: relative;
  }

  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    background-image: url("../backgrounds/bg_IMG_1457.jpg");
    background-position: left top;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
    z-index: 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
  }

  .page {
    position: relative;
    z-index: 1;
    background-image: none !important;
    background-attachment: scroll !important;
    background-size: auto !important;
    background-color: transparent;
  }

  #panel_second .container {
    position: relative;
    z-index: 1;
    background-color: #3c4043 !important;
  }
}

#wir-suchen-aktuell {
  scroll-margin-top: 120px;
}

#slider-host .alwert-modern-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
  touch-action: pan-y;
  user-select: none;
}

#slider-host .alwert-modern-slider__viewport {
  position: relative;
  aspect-ratio: 13 / 6;
  overflow: hidden;
  border-radius: 5px;
}

#slider-host .alwert-modern-slider__track {
  display: flex;
  height: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

#slider-host .alwert-modern-slider__track.is-animated {
  transition: transform 460ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

#slider-host .alwert-modern-slider__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}

#slider-host .alwert-modern-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  border-radius: 5px;
}

#slider-host .alwert-modern-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 45px;
  height: 45px;
  margin-top: -25px;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 999px;
  background: transparent;
  opacity: 1;
  color: transparent;
  cursor: pointer;
  transition: background-color 180ms ease, opacity 180ms ease;
}

#slider-host .alwert-modern-slider__nav::before {
  content: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  margin-left: -4px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}

#slider-host .alwert-modern-slider__nav--prev {
  left: 18px;
}

#slider-host .alwert-modern-slider__nav--prev::before {
  margin-left: -2px;
  transform: rotate(-135deg);
}

#slider-host .alwert-modern-slider__nav--next {
  right: 18px;
}

#slider-host .alwert-modern-slider__nav:hover,
#slider-host .alwert-modern-slider__nav:focus {
  background: transparent;
  opacity: 1;
  outline: none;
}

#slider-host .alwert-modern-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

#slider-host .alwert-modern-slider__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

#slider-host .alwert-modern-slider__dot.is-active {
  transform: none;
  background: #fff;
}

#site-content-main .text-formatted img[src^="images/content/"] {
  border-radius: 5px;
  -webkit-border-radius: 5px;
}

@media (max-width: 767px) {
  #slider-host .alwert-modern-slider {
    border-radius: 5px;
  }

  #slider-host .alwert-modern-slider__nav {
    width: 36px;
    height: 36px;
    margin-top: -18px;
  }

  #slider-host .alwert-modern-slider__nav--prev {
    left: 10px;
  }

  #slider-host .alwert-modern-slider__nav--next {
    right: 10px;
  }
}

.site-sidebar .text-formatted a[href],
#panel_second .text-formatted a[href],
#footer .text-formatted a[href] {
  font-weight: 700;
  text-decoration: none !important;
}

.site-sidebar .text-formatted a[href]:hover,
.site-sidebar .text-formatted a[href]:focus,
.site-sidebar .text-formatted a[href]:active,
#panel_second .text-formatted a[href]:hover,
#panel_second .text-formatted a[href]:focus,
#panel_second .text-formatted a[href]:active,
#footer .text-formatted a[href]:hover,
#footer .text-formatted a[href]:focus,
#footer .text-formatted a[href]:active {
  font-weight: 700;
  text-decoration: none !important;
}
