/* =========================
   SLIDER – GRUNDLAGE
   ========================= */

body {
  margin: 0;
}


.custom-slider-wrap {
  width: 100%;

  padding: 0;
  margin: 0;
}


.custom-slider {
  position: relative;

  width: 100%;
  height: 80vh;
  min-height: 600px;

  margin: 0;

  overflow: hidden;
}


.custom-slider__slides {
  position: relative;

  width: 100%;
  height: 100%;
}


/* =========================
   SLIDES
   ========================= */

.custom-slide {
  display: none;

  position: absolute;

  width: 100%;
  height: 100%;
}


.custom-slide.active {
  display: block;
}

.custom-slide.active > img {
  animation: customFade 1s ease-in-out;
}


.custom-slide img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* =========================
   FADE ANIMATION
   ========================= */

@keyframes customFade {

  from {
    opacity: 0.5;
  }

  to {
    opacity: 1;
  }

}


/* =========================
   ALLGEMEINES BILD-OVERLAY
   ========================= */

.custom-slide__overlay {
  position: absolute;

  inset: 0;

  background: rgba(0, 0, 0, 0.2);

  z-index: 1;
}


/* =========================
   TEXT AUF DEM SLIDER
   ========================= */

.custom-slide__content {
  position: absolute;

  bottom: 20%;
  left: 10%;

  z-index: 6;

  color: var(--color-light);

  max-width: 700px;
}


.custom-slide__content h2 {
  font-size: var(--font-size-h1);

  font-weight: 700;

  margin-top: 0;
  margin-bottom: 15px;

  line-height: var(--line-height-heading);
}


.custom-slide__content p {
  font-size: var(--font-size-body-large);

  line-height: var(--line-height-body);

  margin-bottom: 0;
}


/* =========================
   PFEIL-BEREICHE + VERLAUF
   ========================= */

.custom-slider__prev,
.custom-slider__next {
  position: absolute;

  top: 0;
  bottom: 0;

  width: 25%;
  height: 100%;

  border: none;
  padding: 0;

  cursor: pointer;
  user-select: none;

  z-index: 5;

  background-color: transparent;

  background-repeat: no-repeat;

  transition: opacity 0.2s ease;
}


/* =========================
   LINKER VERLAUF + PFEIL
   ========================= */

.custom-slider__prev {
  left: 0;

  background-image:
    url("icons/Pfeil_links.png"),
    linear-gradient(
      to right,
      rgba(24, 24, 23, 0.95) 0%,
      rgba(24, 24, 23, 0.75) 30%,
      rgba(24, 24, 23, 0.35) 60%,
      rgba(24, 24, 23, 0) 100%
    );

  background-position:
    32px center,
    center;

  background-size:
    80px 80px,
    100% 100%;
}


/* =========================
   RECHTER VERLAUF + PFEIL
   ========================= */

.custom-slider__next {
  right: 0;

  background-image:
    url("icons/Pfeil_rechts.png"),
    linear-gradient(
      to left,
      rgba(24, 24, 23, 0.95) 0%,
      rgba(24, 24, 23, 0.75) 30%,
      rgba(24, 24, 23, 0.35) 60%,
      rgba(24, 24, 23, 0) 100%
    );

  background-position:
    calc(100% - 32px) center,
    center;

  background-size:
    80px 80px,
    100% 100%;
}


/* =========================
   PFEIL HOVER
   ========================= */

.custom-slider__prev:hover,
.custom-slider__next:hover {
  opacity: 0.92;
}


/* =========================
   DOTS
   ========================= */

.custom-slider__dots {
  position: absolute;

  bottom: 18px;

  width: 100%;

  text-align: center;

  z-index: 6;
}


.custom-slider__dot {
  display: inline-block;

  width: 12px;
  height: 12px;

  margin: 0 5px;

  background-color: rgba(224, 219, 205, 0.5);

  border-radius: 50%;

  cursor: pointer;

  transition: background-color 0.3s ease;
}


.custom-slider__dot.active {
  background-color: var(--color-gold);
}


/* =========================
   TABLET
   ========================= */

@media (max-width: 991px) {

  .custom-slider {
    height: 500px;
    min-height: 0;
  }


  .custom-slider__prev,
  .custom-slider__next {
    width: 27%;
  }


  .custom-slider__prev {
    background-position:
      20px center,
      center;

    background-size:
      65px 65px,
      100% 100%;
  }


  .custom-slider__next {
    background-position:
      calc(100% - 20px) center,
      center;

    background-size:
      65px 65px,
      100% 100%;
  }


  .custom-slide__content {
    left: 12%;
    bottom: 18%;

    max-width: 65%;
  }

}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 767px) {

  .custom-slider {
    height: 360px;
    min-height: 0;
  }


  .custom-slider__prev,
  .custom-slider__next {
    top: 0;
    bottom: 0;

    width: 30%;
    height: 100%;

    transform: none;
  }


  .custom-slider__prev {
    left: 0;

    background-position:
      12px center,
      center;

    background-size:
      50px 50px,
      100% 100%;
  }


  .custom-slider__next {
    right: 0;

    background-position:
      calc(100% - 12px) center,
      center;

    background-size:
      50px 50px,
      100% 100%;
  }


  .custom-slide__content {
    left: 15%;
    bottom: 18%;

    max-width: 70%;
  }


  .custom-slide__content h2 {
    margin-bottom: 8px;
  }


  .custom-slider__dots {
    bottom: 12px;
  }


  .custom-slider__dot {
    width: 10px;
    height: 10px;

    margin: 0 4px;
  }

}