/* SAfD – News / Aktuelles – modulspezifische Styles.
   Nutzt Design-System-Variablen (var(--primary) etc.), keine festen Farben. */

/* ---- Kategorie-Badge ---- */
.news-badge {
  --cat-color: var(--primary, #0b3b5e);
  display: inline-block;
  padding: .18rem .6rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  background: var(--cat-color);
  text-decoration: none;
  white-space: nowrap;
}
a.news-badge:hover { filter: brightness(1.08); }

/* ---- Filter-Chips ---- */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0 1.5rem;
}
.news-filter .chip { text-decoration: none; cursor: pointer; }
.news-filter .chip-active {
  --cat-color: var(--primary, #0b3b5e);
  background: var(--cat-color);
  color: #fff;
  border-color: var(--cat-color);
}

/* ---- Karten-Grid ---- */
.news-grid { margin-top: 1rem; }

.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.news-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface, #eef2f7);
}
.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.news-card:hover .news-card-media img { transform: scale(1.04); }
.news-card-media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: var(--text-muted, #7a8598);
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary, #0b3b5e) 8%, transparent), transparent);
}
.news-card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.news-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .78rem;
}
.news-card-title {
  font-size: 1.08rem;
  line-height: 1.3;
  margin: 0;
  color: var(--text, #17202a);
}
.news-card-excerpt {
  font-size: .9rem;
  color: var(--text-secondary, #4a5568);
  margin: 0;
  line-height: 1.5;
}
.news-card-more {
  margin-top: auto;
  font-weight: 700;
  font-size: .88rem;
  color: var(--primary, #0b3b5e);
}

/* ---- Featured ---- */
.news-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
  margin: 1rem 0 1.75rem;
  text-decoration: none;
  color: inherit;
}
.news-featured-media { min-height: 220px; background: var(--surface, #eef2f7); }
.news-featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-featured-body {
  padding: 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  justify-content: center;
}
.news-featured-title {
  font-size: 1.55rem;
  line-height: 1.25;
  margin: 0;
  color: var(--text, #17202a);
}
@media (max-width: 760px) {
  .news-featured { grid-template-columns: 1fr; }
  .news-featured-media { min-height: 180px; }
  .news-featured-body { padding: 1.2rem 1.2rem 1.4rem; }
  .news-featured-title { font-size: 1.3rem; }
}

/* ---- Pagination ---- */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ---- Einzelansicht ---- */
.news-article { max-width: 820px; margin: 0 auto; }
.news-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  font-size: .85rem;
  margin-bottom: .5rem;
}
.news-lead {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--text-secondary, #4a5568);
  margin: .5rem 0 1.2rem;
}
.news-article-cover {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg, 20px);
  margin: 0 0 1.5rem;
  display: block;
}
.news-body {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text, #17202a);
}
.news-body p { margin: 0 0 1rem; }
.news-body h2, .news-body h3 { margin: 1.6rem 0 .6rem; line-height: 1.3; }
.news-body img { max-width: 100%; height: auto; border-radius: var(--radius-md, 14px); }
.news-body a { color: var(--primary, #0b3b5e); }
.news-body ul, .news-body ol { margin: 0 0 1rem 1.4rem; }
.news-body blockquote {
  margin: 1rem 0;
  padding: .6rem 1rem;
  border-left: 4px solid var(--primary, #0b3b5e);
  background: color-mix(in srgb, var(--primary, #0b3b5e) 6%, transparent);
  border-radius: 0 var(--radius-md, 14px) var(--radius-md, 14px) 0;
}
.news-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border, #e2e8f0);
}
