/* =============================================================================
   News general
   ========================================================================== */

.news .headline.-small {
  margin-bottom: 0;
}

.news .article .headline h3 {
  font-size: var(--f-size-l-1);
  font-weight: var(--f-weight-n);
  text-align: left;
}

.news .article__teaser {
  margin: 1.25rem 0;
}

.news .article__teaser p:last-child {
  margin-bottom: 0;
}

.news .article__footer {
  line-height: 120%;
}

.news .article__date {
  padding-right: 5px;
  border-right: 1px solid rgb(var(--c-neutral-dark));
}

.news .article__more {
  margin-left: 5px;
  color: rgb(var(--c-secondary));
}

.news .article__more::after {
  content: '\f054';
  font-family: 'FaLight', sans-serif;
  font-size: var(--f-size-s-2);
  margin-left: 0.3rem;
}

@media (hover: hover) {
  .news a.article__more:hover {
    color: rgb(var(--c-primary-dark));
  }
}

/* =============================================================================
   News list
   ========================================================================== */

.news.-list .article {
  margin-bottom: 15px;
  padding-bottom: 15px;
}

.news.-list .article.-withimage {
  display: grid;
  grid-gap: 1.5em;
  grid-template-columns: 30% 1fr;
}

.news.-list .article__image {
  margin-bottom: 1em;
}

.news.-list .article__image img {
  border: 1px solid rgb(var(--c-neutral-light));
  display: block;
  height: auto;
  width: 100%;
}

.news.-list .f3-widget-paginator {
  margin-top: var(--g-gap);
}

.news.-list .f3-widget-paginator li.gap {
  background: none;
}

/* =============================================================================
   News cards (latest, topnews, offers)
   ========================================================================== */

.news.-latest .article,
.news.-topnews .article,
.news.-offers .article {
  background: rgb(var(--c-neutral-lightest));
  border-radius: var(--b-radius-s);
  box-sizing: border-box;
  overflow: hidden;
}

.news.-latest .article__link,
.news.-topnews .article__link,
.news.-offers .article__link {
  color: rgb(var(--c-neutral-dark));
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 1fr auto;
  height: 100%;
}

.news.-latest .article__image,
.news.-topnews .article__image,
.news.-offers .article__image {
  grid-column: 1;
  grid-row: 1 / 3;
  margin-bottom: 70px;
  overflow: hidden;
}

.news.-latest .article__image img,
.news.-topnews .article__image img,
.news.-offers .article__image img {
  display: block;
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
  width: 100%;
}

.news.-latest .article__link::after,
.news.-topnews .article__link::after,
.news.-offers .article__link::after {
  align-items: center;
  background: rgba(var(--c-secondary), 0.9);
  border-radius: 50%;
  color: rgb(var(--c-neutral-lightest));
  content: '\f054';
  display: flex;
  font-family: 'FaLight', sans-serif;
  font-size: var(--f-size-l-1);
  grid-column: 1;
  grid-row: 1;
  height: 50px;
  justify-content: center;
  opacity: 0;
  place-self: center;
  transition: opacity 0.3s ease;
  width: 50px;
  z-index: 2;
}

.news.-latest .article__text,
.news.-topnews .article__text,
.news.-offers .article__text {
  align-self: end;
  background: rgb(var(--c-neutral-lighter));
  border-radius: 0 0 var(--b-radius-s) var(--b-radius-s);
  box-sizing: border-box;
  grid-column: 1;
  grid-row: 2;
  padding: 25px;
  position: relative;
  z-index: 1;
}

.news.-latest .article__reveal,
.news.-topnews .article__reveal {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.news.-offers .article__text {
  background: rgb(var(--c-neutral-lightest));
  padding-bottom: 6px;
  transition: padding-bottom 0.3s ease;
}

.news.-offers .article__footer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.news.-offers .article__more {
  display: inline-block;
  margin-left: 0;
}

.news.-offers .article__more::first-letter {
  text-transform: uppercase;
}

@media (hover: hover) {
  .news.-latest .article:hover .article__reveal,
  .news.-topnews .article:hover .article__reveal {
    max-height: 20rem;
  }

  .news.-offers .article:hover .article__footer {
    max-height: 3rem;
  }

  .news.-offers .article:hover .article__text {
    padding-bottom: 25px;
  }

  .news.-latest .swiper-button-prev:hover,
  .news.-latest .swiper-button-next:hover {
    --swiper-navigation-color: rgb(var(--c-primary));
  }

  .news.-latest .article:hover .article__image img,
  .news.-topnews .article:hover .article__image img,
  .news.-offers .article:hover .article__image img {
    filter: blur(3px);
    transform: scale(1.1);
  }

  .news.-latest .article:hover .article__link::after,
  .news.-topnews .article:hover .article__link::after,
  .news.-offers .article:hover .article__link::after {
    opacity: 1;
  }
}

/* Offers */
.news.-offers {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: 1fr;
}

/* Latest slider */
.news.-latest {
  padding: 0 25px;
  position: relative;

  --swiper-navigation-sides-offset: 0;
}

.news.-latest .swiper-slide {
  height: auto;
  width: 100%;
}

.news.-latest .article {
  height: 100%;
}

.news.-latest .swiper-button-disabled {
  display: none;
}

/* Aschheim: slider aligned with the content on the left, but only while all news fit
   and Swiper hides the arrows (swiper-button-lock) - otherwise the arrow needs its space */
.-aschheim .news.-latest:has(.swiper-button-prev.swiper-button-lock) {
  padding-left: 0;
}

/* =============================================================================
   News detail
   ========================================================================== */

.news.-single .article__headline {
  margin-bottom: 2rem;
}

.news.-single .article__headline h1 {
  text-align: left;
}

.news.-single .article__teaser {
  margin-top: 0;
}

.media__item {
  margin-bottom: var(--g-gap);
}

.media__item:last-child {
  margin-bottom: 0;
}

.media__image {
  position: relative;
  overflow: hidden;
}

.news.-single .media__image img {
  border: 1px solid rgb(var(--c-neutral-light));
}

.news.-single .article__backlink {
  border-top: 1px solid rgb(var(--c-neutral-light));
  grid-column: 1 / -1;
  margin-top: 2rem;
  padding-top: 1rem;
}

.article__backlink .font__button {
  text-transform: uppercase;
}

.article__backlink .font__button::before {
  content: '\f053';
  font-family: "FaLight", sans-serif;
  font-size: var(--f-size-s-2);
  margin-right: 0.4rem;
}

/* =============================================================================
   Media Queries
   ========================================================================== */

@media (min-width: 400px) {
  .news.-single .article__media {
    grid-column: span 4;
  }

  .news.-single .article__extra,
  .news.-single .article__text {
    grid-column: span 8;
  }
}

@media (min-width: 721px) {
  .news.-offers {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 761px) {
  .news.-latest {
    padding: 0 35px;
  }

  .news.-latest .swiper-slide {
    margin-right: 10px;
    width: calc((100% - 10px) / 2);
  }
}

@media (min-width: 1141px) {
  .news.-offers {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1201px) {
  .news.-latest .swiper-slide {
    width: calc((100% - 20px) / 3);
  }
}
