.news.-latest {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5em 4%;

  & .article__image {
    position: relative;
    overflow: hidden;
  }

  & .gallery__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
    object-fit: cover;
  }
}

.news.-list .article {
  margin-bottom: 1.7rem;
}

/* Titel direkt über dem Teaser wie Live */
.news.-list .article .headline.-small {
  margin-bottom: 0;
}

.article__more {
  display: block;
  margin-top: 1rem;
}

.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 .font__button::before {
  content: '\f323';
  font-family: "FaRegular", sans-serif;
  font-size: var(--f-size-s-2);
  margin-right: 0.4rem;
}


/* =============================================================================
   Project: list, latest and more link
   ========================================================================== */

.news .headline h3 {
  text-align: left;
}

.news .article__date {
  font-size: 90%;
  margin-bottom: 0.3em;
}

.news .article__teaser p {
  margin-bottom: 0.8em;
}

.news .article__more {
  position: relative;
  display: inline-block;
  margin-top: 0;
  padding: 0.1em 0.7em;
  font-family: var(--f-family-2);
  color: rgb(var(--c-primary));
  border: 2px solid rgb(var(--c-primary));
  transition: all 0.3s ease;
  z-index: 1;
}

.news .article__more::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgb(var(--c-secondary));
  transform: scaleX(0);
  transition: all 0.3s ease;
  z-index: -1;
}

@media (hover: hover) {
  .news .article__more:hover {
    color: rgb(var(--c-neutral-lightest));
    border-color: rgb(var(--c-secondary));
  }

  .news .article__more:hover::before {
    opacity: 1;
    transform: scaleX(1);
  }
}

.news.-single .article__headline h1 {
  display: inline-block;
  padding-bottom: 0.1em;
  border-bottom: 2px solid rgb(var(--c-primary));
}

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

.news.-latest .headline h3 {
  margin-bottom: 0.7em;
}

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

.news.-latest .article__image .article__date {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  margin: 0;
  font-family: var(--f-family-2);
  font-weight: var(--f-weight-b);
  line-height: 130%;
  color: rgb(var(--c-neutral-lightest));
  text-align: center;
  text-transform: uppercase;
}

.news.-latest .article__date .day {
  display: block;
  height: 50px;
  font-size: 200%;
  line-height: 50px;
  background: rgb(var(--c-primary));
}

.news.-latest .article__date .month {
  display: block;
  padding: 3px 0;
  font-size: 110%;
  background: rgb(var(--c-secondary));
}

/* =============================================================================
   Project: newsticker
   ========================================================================== */

.newsticker {
  overflow: hidden;
  height: var(--newsticker-height);
  line-height: calc(var(--newsticker-height) - 2px);
  background: rgb(var(--c-primary));
  border-top: 2px solid rgb(var(--c-neutral-lightest));
}

.newsticker__list {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0 0 0 100%;
  list-style: none;
  animation: newsticker var(--newsticker-duration, 20s) linear infinite;
}

.newsticker:hover .newsticker__list {
  animation-play-state: paused;
}

.newsticker__item {
  margin: 0;
  list-style: none;
  padding: 0 3em 0 0;
  font-family: var(--f-family-2);
  font-weight: var(--f-weight-n);
  font-size: var(--f-size-l-1);
  white-space: nowrap;
}

.newsticker__link,
.newsticker__link:visited {
  color: rgb(var(--c-neutral-lightest));
  text-decoration: none;
}

@keyframes newsticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

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

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

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

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

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

/* Pagination */
.f3-widget-paginator li:not([class]):not(:has(a)) {
  display: none;
}

@media (min-width: 800px) {
  .news.-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1.7rem var(--g-gap);

    & .f3-widget-paginator {
      grid-column: span 2;
    }
  }

  /* Zeilenabstand kommt im Raster aus dem gap */
  .news.-list .article {
    margin-bottom: 0;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .newsticker__list {
    padding-left: var(--p);
    animation: none;
  }
}
