/* TJV News: Startseite Teaser-Karten, Liste untereinander wie News 2026 */

.news {
  --news-accent: var(--ibl-color-brand, #ff0000);
  --news-ink: var(--ibl-color-ink, #1a1a1a);
  --news-muted: var(--ibl-color-muted, #6b6b6b);
  --news-border: var(--ibl-color-border, #d1d1d1);
  --news-surface: var(--ibl-color-surface, #fff);
}

/* --- Startseite: 6 Teaser, 2 Reihen --- */
.news-teaser-grid--home {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.news-teaser-grid--home .news-teaser {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: var(--news-surface);
  border: 1px solid var(--news-border);
  border-radius: 12px;
  padding: 1rem 1.1rem 1.15rem;
  box-shadow:
    0 1px 2px rgba(26, 26, 26, 0.04),
    0 8px 24px rgba(26, 26, 26, 0.06);
}

.news-teaser-grid--home .news-teaser.aos-animate:nth-child(1) { transition-delay: 0s !important; }
.news-teaser-grid--home .news-teaser.aos-animate:nth-child(2) { transition-delay: 0.12s !important; }
.news-teaser-grid--home .news-teaser.aos-animate:nth-child(3) { transition-delay: 0.24s !important; }
.news-teaser-grid--home .news-teaser.aos-animate:nth-child(4) { transition-delay: 0.36s !important; }
.news-teaser-grid--home .news-teaser.aos-animate:nth-child(5) { transition-delay: 0.48s !important; }
.news-teaser-grid--home .news-teaser.aos-animate:nth-child(6) { transition-delay: 0.6s !important; }

@media (prefers-reduced-motion: reduce) {
  .news-teaser-grid--home .news-teaser[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.news-teaser-grid--home .news-teaser__media {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ibl-gray-100, #f2f2f2);
}

.news-teaser-grid--home .news-teaser__media a {
  display: block;
  width: 100%;
  height: 100%;
}

.news-teaser-grid--home .news-teaser__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-teaser-grid--home .news-teaser__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.news-teaser__meta {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--news-accent);
}

.news-teaser__title {
  margin: 0 0 0.45rem;
  font-size: var(--ibl-h4-size, 1.15rem);
  line-height: 1.3;
}

.news-teaser__title a:hover {
  color: var(--news-accent);
}

.news-teaser__text {
  flex: 1 1 auto;
  margin: 0 0 0.7rem;
  color: var(--news-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.news-teaser__text p {
  margin: 0;
}

.news-teaser__cta {
  margin: 0;
}

.news-teaser__more {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--news-accent);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  transition: color 0.2s ease, background-size 0.35s var(--ibl-ease, ease);
}

.news-teaser__more:hover,
.news-teaser__more:focus-visible {
  color: var(--ibl-color-brand-dark, #005f8f);
  background-size: 0 1px;
}

.news-teaser-more {
  margin: 1.75rem 0 0;
  text-align: center;
}

.news-teaser-more__link {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--news-accent);
  border-radius: 999px;
  font-weight: 600;
  color: var(--news-accent);
}

.news-teaser-more__link:hover {
  background: var(--news-accent);
  color: #fff;
}

.no-news-found {
  margin: 0;
  color: var(--news-muted);
}

/* --- News-Seite: Liste untereinander --- */
.news-stack {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.news-stack-item {
  padding: 0 0 2.5rem;
  border-bottom: 1px solid var(--news-border);
}

.news-stack-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.news-stack-item__title {
  margin: 0 0 0.35em;
}

.news-stack-item__title a:hover {
  color: var(--news-accent);
}

.news-stack-item__meta {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--news-muted);
}

.news-stack-item__media {
  float: left;
  max-width: 220px;
  margin: 0.15rem 1.25rem 0.75rem 0;
}

.news-stack-item__media a.jnlightbox {
  display: block;
  cursor: zoom-in;
}

.news-stack-item__media a.jnlightbox + a.jnlightbox {
  margin-top: 0.5rem;
}

.news-stack-item__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.news-single a.jnlightbox {
  cursor: zoom-in;
}

.news-stack-item__text {
  overflow: auto;
}

.news-stack-item__text > *:first-child {
  margin-top: 0;
}

.news-stack-item__text > *:last-child {
  margin-bottom: 0;
}

/* Detail */
.ibl-main .news-single h1 {
  margin: 0 0 0.35em;
  color: var(--news-ink, #1a1a1a);
  font-size: var(--ibl-h1-size, clamp(2.15rem, 1.05rem + 3.8vw, 3.4rem));
  font-weight: 700;
  line-height: 1.15;
}

.news-single .footer {
  margin: 0 0 1.25rem;
  color: var(--news-muted);
  font-size: 0.9rem;
}

.news-single .teaser-text {
  max-width: 46rem;
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

.news .news-text-wrap {
  max-width: 46rem;
}

.news .f3-widget-paginator {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.news .f3-widget-paginator li a,
.news .f3-widget-paginator li.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--news-border);
  border-radius: 6px;
}

.news .f3-widget-paginator li.current {
  border-color: var(--news-accent);
  color: var(--news-accent);
  font-weight: 700;
}

.news .f3-widget-paginator li a:hover {
  border-color: var(--news-accent);
  color: var(--news-accent);
}

@media (max-width: 999px) {
  .news-teaser-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .news-teaser-grid--home {
    grid-template-columns: 1fr;
  }

  .news-stack-item__media {
    float: none;
    max-width: 100%;
    margin: 0 0 1rem;
  }
}
