.news-teaser {
  max-width: 269px;
}
.news-teaser__image {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
  overflow: hidden;
  width: fit-content;
}
.news-teaser__content {
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  padding: 62px 1rem 1rem 1rem;
  gap: 12px;
  margin-top: -32px;
  max-width: 246px;
  box-shadow: 0 -32px 32px 0 rgba(0, 0, 0, 0.08);
  position: relative;
}
.news-teaser .news-teaser__content {
  border-top-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.news-teaser--extended .news-teaser__content {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}
.news-teaser__tags {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--color-secondary--3);
  padding: 8px 32px;
  border-bottom-right-radius: 30px;
  width: fit-content;
}
.news-teaser__title,
.news-teaser__description p {
  margin: 0;
}
.news-teaser__tags--desktop {
  display: none;
}
.news-teaser .news-teaser__image img {
  transition: all 0.3s ease-in-out;
}
.news-teaser:hover .news-teaser__image img {
  transform: scale(1.15);
  filter: brightness(0.5);
}
.news-teaser__title {
  font-size: 20px;
}
@media all and (min-width: 1000px) {
  .news-teaser.swiper-slide {
    max-width: unset;
    width: fit-content;
  }
  .news-teaser__content {
    max-width: 292px;
  }
}
@media all and (min-width: 1440px) {
  .news-teaser {
    position: relative;
    height: fit-content;
  }
  .news-teaser__content {
    position: absolute;
    bottom: 0;
    right: -66px;
  }
  .news-teaser:not(.news-teaser--extended) .news-teaser__content {
    padding: 2rem;
  }
  .news-teaser__tags--mobile {
    display: none;
  }
  .news-teaser__tags--desktop {
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
  }
  .news-teaser:not(.news-teaser--extended) .news-teaser__description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .news-teaser__title {
    font-size: 1.5rem;
  }
}


/**
 * News teaser extended
 */


@media all and (min-width: 1440px) {
  .news-teaser--extended .news-teaser__content {
    bottom: 32px;
    right: unset;
    left: 50%;
    transform: translateX(-50%);
    max-width: 470px;
    width: 100%;
    padding: 81px 2rem 2rem 2rem;
  }
  .news-teaser.news-teaser--extended .news-teaser__description {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .news-teaser--extended .news-teaser__title {
    font-size: 2rem;
  }
}


/**
 * News teaser secondary
 */

.news-teaser--secondary {
  grid-area: unset !important;
}
.news-teaser--secondary .news-teaser__tags {
  border-top-left-radius: 10px;
}
.news-teaser--secondary:not(.news-teaser--extended) .news-teaser__content {
  position: static;
  max-width: unset;
  margin: 0;
  padding: 8px 16px;
  box-shadow: none;
}
.news-teaser--secondary .news-teaser__tags {
  position: static;
  margin-left: -16px;
  margin-top: -8px;
}
.news-teaser--secondary .news-teaser__image {
  border-top-left-radius: 10px;
}
.news-teaser--secondary .news-teaser__content {
  background-color: #fff;
  transform: translateY(-20px)
}
@media all and (min-width: 800px){
  .news-teaser--secondary {
    max-width: unset;
  }
}


/**
 * First news of news page on mobile
 */
@media all and (min-width: 550px) and (max-width: 800px) {
  .news .news__header .news-teaser--extended {
    grid-column-start: 1;
    grid-column-end: 3;
    max-width: unset;
    width: 100%;
  }
  .news .news__header .news-teaser--extended .news-teaser__image,
  .news .news__header .news-teaser--extended .news-teaser__image picture,
  .news .news__header .news-teaser--extended .news-teaser__image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    height: 100%;
    display: block;
  }
  .news .news__header .news-teaser--extended .news-teaser__content {
    max-width: unset;
  }
}
