.item {
  height: 708px;
}
.carousel {
  overflow: hidden;
  height: 708px;
}
.image {
  -webkit-background-size: 100% 100%;
  -moz-background-size: 100% 100%;
  -o-background-size: 100% 100%;
  background-size: 100% 100%;
  display: table;
  min-height: 450px;

  width: 100%;
}
.image img {
  width: 100%;
  height: 100%;
}
.legend {
  border: 675px solid transparent;
  border-left: 800px solid rgba(52, 73, 94, 0.7);
  border-bottom: 0;
  position: absolute;
  bottom: 0;
}
.item.active .carousel-caption {
  animation: animate-carousel-text 1.5s normal forwards;
}

@keyframes animate-carousel-text {
  0% {
    transform: translate(-10em, 0);
    opacity: 0;
  }
  70% {
    transform: translate(1em, 0);
    opacity: 1;
  }
  100% {
    transform: translate(0, 0);
  }
}

.carousel-caption {
  width: 400px;
  bottom: 0;
  left: 1%;
  text-align: left;
  position: absolute;
}
.carousel-caption * {
  box-sizing: border-box;
}

.hero__title,
.hero__teaser,
.hero__btn {
  position: relative;
}
.hero__title {
  font-size: 40px;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.025em;
  color: white;
}
.hero__teaser {
  font-size: 18px;
  line-height: 1.66;
  color: white;
}
.hero__btn {
  margin-top: 25px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 600;
  display: block;
  width: 55px;
  padding: 8px 25px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 0;
  background-color: #fed136;
  text-decoration: none;
  color: #5f55c1 !important;
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-width: 95px;
}
.hero__btn:hover {
  text-decoration: none !important;
  color: white !important;
  background-color: rgba(254, 209, 54, 0.75);
}

.hero__btn:visited {
  color: #5f55c1 !important;
}
.hero__btn:focus {
  color: #5f55c1 !important;
}
.hero__btn:active {
  color: #5f55c1 !important;
}
.hero__btn:focus-within {
  color: #5f55c1 !important;
}

.carousel-control {
  height: 800px;
  width: 10%;
  top: -92px;
}
@media screen and (width < 1025px) {
  .hero__title{
    padding-bottom: 20px;
  }
}

@media screen and (width < 1580px) {
  .carousel,
  .item {
    height: 600px;
  }
  .carousel-control {
    top: -200px;
  }
}
@media screen and (width < 1335px) {
  .carousel,
  .item {
    height: 500px;
  }
  .carousel-control {
    top: -300px;
  }
}
@media screen and (width < 1115px) {
  .carousel,
  .item,
  .carousel-control {
    height: 400px;
  }
  .carousel-control {
    top: 0;
  }
  .carousel-control.left span,
  .carousel-control.right span {
    visibility: hidden;
  }
  .carousel-control.left:hover > span,
  .carousel-control.right:hover > span {
    visibility: visible;
  }
}
@media screen and (width < 895px) {
  .carousel,
  .item,
  .carousel-control {
    height: 300px;
  }
}
@media screen and (width < 670px) {
  .carousel,
  .item,
  .carousel-control {
    height: 250px;
  }
}

@media screen and (max-width: 64em) {
  .hero--slider .hero__title {
    font-size: 30px;
    font-weight: 200;
    line-height: 1.5;
  }
  .hero--slider .hero__teaser {
    font-size: 16px;
  }
}

@media screen and (max-width: 895px) {
  .hero__title {
    font-size: 28px;
  }
  .hero__teaser {
    font-size: 14px;
  }
}

@media screen and (max-width: 30em) {
  .hero__btn {
    margin-top: 15px;
    min-width: 0;
    display: block;
  }
}

@media screen and (width < 575px) {
  #hero-carousel {
    display: none;
  }
}

@media (min-width: 576px) and (max-width: 990px) {
  .content-txt {
    top: 65px !important;
  }
}