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

.news .headline.-small h3 {
  margin: 0;
  color: rgb(var(--c-primary));
  font-size: var(--f-size-l-1);
  font-weight: var(--f-weight-n);
  line-height: 1.4;
  text-transform: uppercase;
}

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

.news .article__teaser p {
  margin: 0;
}

.article__more {
  display: inline-block;
}

.article__more::after {
  content: '\f105';
  margin-left: 0.3em;
  font-family: 'FaLight', sans-serif;
  font-size: 90%;
}

.article__footer {
  padding-top: var(--g-gap-s);
  border-top: 1px solid rgb(var(--c-neutral-lighter));
}

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

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

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

.article__backlink {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid rgb(var(--c-neutral-light));
}

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

.article__backlink .font__button::before {
  content: '\f104';
  font-family: "FaLight", sans-serif;
  margin-right: 0.4rem;
}

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

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

.news.-list .article {
  display: block;
  margin-bottom: 2em;
}

.news.-list .article__image {
  margin-bottom: 1em;
  border: 1px solid rgb(var(--c-neutral-light));
}

.news.-list .article__image img {
  display: block;
  width: 100%;
  height: auto;
}

.news.-list .article__teaser {
  line-height: 1.7;
}

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

.news.-list .article.-withimage > * {
  grid-column: auto;
}

/* =============================================================================
   News latest
   ========================================================================== */

.news.-latest {
  position: relative;
  padding: 0 40px;

  --news-latest-title: 4.5em;
  --swiper-navigation-sides-offset: 0;
  --swiper-navigation-color: rgb(var(--c-neutral));

  & .swiper {
    padding: 0 5px 5px 0;
  }

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

  & .article {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    height: 100%;
    padding-bottom: var(--news-latest-title);
    background: rgb(var(--c-neutral-lightest));
    box-shadow: 2px 2px 5px rgba(var(--c-neutral-darkest), 0.1);
  }

  & .article__image {
    overflow: hidden;
  }

  & .article__image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
  }

  & .article__text {
    position: absolute;
    top: calc(100% - var(--news-latest-title));
    left: 0;
    width: 100%;
    min-height: var(--news-latest-title);
    padding: 0 25px 20px;
    border-top: 1px solid rgb(var(--c-neutral-light));
    background: rgb(var(--c-neutral-lightest));
    box-sizing: border-box;
    transition: transform 0.3s ease;
  }

  & .article__text .headline {
    display: flex;
    align-items: center;
    min-height: var(--news-latest-title);
    margin-bottom: 0;
  }

  & .article__teaser {
    line-height: 1.7;
  }

  & .article__teaser,
  & .article__more {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  & .article__teaser p {
    display: inline;
  }

  & .article__more {
    margin-left: 5px;
  }

  & .article__more::before {
    content: '';
    position: absolute;
    inset: 0;
  }
}

@media (hover: hover) {
  .news.-latest .article:hover .article__text,
  .news.-latest .article:focus-within .article__text {
    transform: translateY(calc(-100% + var(--news-latest-title)));
  }

  .news.-latest .article:hover .article__teaser,
  .news.-latest .article:focus-within .article__teaser,
  .news.-latest .article:hover .article__more,
  .news.-latest .article:focus-within .article__more {
    opacity: 1;
  }

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

  .news.-latest .article__more:hover,
  .news.-list .article__more:hover {
    color: rgb(var(--c-primary-dark));
  }
}

/* =============================================================================
   News ticker
   ========================================================================== */

.grid__main > .news.-ticker {
  grid-column: 1 / -1;
}

.news.-ticker {
  display: flex;
  height: 45px;
  overflow: hidden;
  line-height: 45px;
  background: rgb(var(--c-neutral-lightest));

  & .ticker__header {
    flex: 0 0 150px;
    background: rgb(var(--c-primary));
    color: rgb(var(--c-neutral-lightest));
    font-size: var(--f-size-l-1);
    text-align: center;
    text-transform: uppercase;
  }

  & .ticker__wrap {
    flex: 1 1 auto;
    overflow: hidden;
  }

  & .ticker__list {
    display: inline-flex;
    margin: 0;
    padding: 0 0 0 100%;
    list-style: none;
    white-space: nowrap;
    animation: news-ticker calc(var(--ticker-items, 3) * 12s) linear infinite;
  }

  & .ticker__item {
    margin: 0;
    padding: 0 3em 0 0;
    list-style: none;
  }

  & .ticker__item a {
    color: rgb(var(--c-primary));
    text-decoration: none;
  }

  &:hover .ticker__list,
  &:focus-within .ticker__list {
    animation-play-state: paused;
  }
}

@keyframes news-ticker {
  to {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .news.-ticker .ticker__wrap {
    overflow-x: auto;
  }

  .news.-ticker .ticker__list {
    padding-left: 1em;
    animation: none;
  }
}

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

@media (min-width: 400px) {
  [data-ce-columns="6"] .gallery__item {
    grid-column: span 4;
  }

  .news.-single .article__media {
    grid-column: span 4;
  }

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

@media (min-width: 640px) {
  .news.-latest {
    & .swiper-slide {
      margin-right: 20px;
      width: calc(50% - 10px);
    }
  }

}

@media (min-width: 1024px) {
  .news.-latest {
    & .swiper-slide {
      width: calc(33.33% - 13px);
    }
  }
}

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

    --swiper-navigation-sides-offset: -35px;
  }
}

