/**
 * News: Startseite (.news-item) + Block News-Liste (.ezh-news-list / .ezh-news-card).
 */

.ezh-news-list__empty {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--blau-baer, #00008b);
}

/* —— Block: Karten-Grid —— */
.ezh-news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 1.5rem;
  margin: 1.5rem 0;
  padding: 0;
}

@media (min-width: 560px) {
  .ezh-news-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .ezh-news-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ezh-news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ezh-news-card__badge {
  align-self: flex-start;
  margin: 0;
  padding: 0.45rem 1rem;
  border-radius: 12px 12px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  color: var(--text-black);
}

.ezh-news-card__badge.news-badge--baer {
  background: var(--tuerkis-baer);
}

.ezh-news-card__badge.news-badge--hand {
  background: var(--hand-lavendel);
}

.ezh-news-card__badge.news-badge--wwb {
  background: var(--bescheid-gelb);
}

.ezh-news-card__thumb {
  display: block;
  aspect-ratio: 284 / 199;
  border: 1px solid #000;
  border-radius: 0 12px 12px 12px;
  overflow: hidden;
  background: repeating-linear-gradient(
    -45deg,
    #e8e8e8,
    #e8e8e8 8px,
    #f4f4f4 8px,
    #f4f4f4 16px
  );
}

.ezh-news-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ezh-news-card__body {
  padding-top: 0.85rem;
}

.ezh-news-card__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.25;
}

.ezh-news-card__title a {
  color: var(--text-black);
  text-decoration: none;
}

.ezh-news-card__title a:hover,
.ezh-news-card__title a:focus-visible {
  text-decoration: underline;
}

.ezh-news-card__excerpt {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-black);
}

/* —— Startseite: horizontale Einträge —— */
.news-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .news-item {
    grid-template-columns: minmax(180px, 284px) 1fr;
    gap: 1.25rem;
    align-items: start;
  }
}

.news-item__visual {
  display: flex;
  flex-direction: column;
}

.news-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.5rem 1.25rem;
  border-radius: 14px 14px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--text-black);
}

.news-badge--baer {
  background: var(--tuerkis-baer);
}

.news-badge--hand {
  background: var(--hand-lavendel);
}

.news-badge--wwb {
  background: var(--bescheid-gelb);
}

.news-thumb {
  aspect-ratio: 284 / 199;
  border: 1px solid #000;
  border-radius: 0 14px 14px 14px;
  overflow: hidden;
  background: repeating-linear-gradient(
    -45deg,
    #e8e8e8,
    #e8e8e8 8px,
    #f4f4f4 8px,
    #f4f4f4 16px
  );
}

.news-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .news-thumb {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 340 / 238;
  }
}

.news-item__text h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3125rem;
  line-height: 1.2;
  color: var(--text-black);
}

.news-item__text p {
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.47;
  color: var(--text-black);
}

.news-item__text a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-black);
  text-decoration: underline;
  font-weight: 400;
  transition: font-weight 0.12s ease;
}

@media (hover: hover) {
  .news-item__text a:hover {
    font-weight: 700;
  }
}
