/* =============================================================
   A+ Pilot – Aktuelles / Förder-News
   Banner (Regionalseiten) + News-Seiten (/aktuelles/)
   Nutzt die globalen Design-Tokens aus styles.css (:root).
   ============================================================= */

/* ---------- Trigger-Banner auf den Regionalseiten ---------- */

.page-hero .container { position: relative; }

.region-news-banner {
  position: absolute;
  top: 2.5rem;
  right: 24px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  background: rgba(27, 48, 34, 0.93);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-sans, "Inter", sans-serif);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 26px -10px rgba(27, 48, 34, 0.55);
  backdrop-filter: blur(2px);
  transition: background var(--t, 250ms ease), transform var(--t, 250ms ease);
}

.region-news-banner:hover,
.region-news-banner:focus-visible {
  background: #1B3022;
  color: #fff;
  transform: translateY(-1px);
}

.region-news-banner .rnb-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--color-gold, #B45309);
}

.region-news-banner .rnb-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--color-gold, #B45309);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Mobil: kein Overlay über dem Hero-Bild, sondern schlanke Leiste
   unter der Brotkrumen-Navigation, über dem Titel. */
@media (max-width: 720px) {
  .region-news-banner {
    position: static;
    margin: 0.25rem 0 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .region-news-banner { transition: none; }
  .region-news-banner:hover,
  .region-news-banner:focus-visible { transform: none; }
}

/* ---------- News-Seiten (/aktuelles/) ---------- */

.news-intro {
  max-width: 640px;
  color: var(--color-text-muted, #4F5B53);
}

.news-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted, #4F5B53);
}

.news-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.news-entry {
  padding: 1.5rem 1.6rem;
  background: #fff;
  border: 1px solid #E5E2DD;
  border-radius: var(--r-md, 14px);
  box-shadow: var(--shadow, 0 6px 24px -8px rgba(27, 48, 34, 0.10));
}

.news-entry-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.news-cat {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #EDEAE3;
  color: var(--color-primary, #1B3022);
}

.news-cat[data-cat="NRW"]       { background: #D0E9D4; color: #1B3022; }
.news-cat[data-cat="Bund"]      { background: #DBE6F2; color: #1B3022; }
.news-cat[data-cat="GEG"]       { background: #F3E2C8; color: #7c5730; }
.news-cat[data-cat="Verfahren"] { background: #EDEAE3; color: #4F5B53; }

.news-entry time {
  font-size: 0.85rem;
  color: var(--color-text-muted, #4F5B53);
}

.news-entry h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  margin: 0 0 0.5rem;
}

.news-entry p { margin: 0 0 0.75rem; }

.news-source {
  font-size: 0.85rem;
  color: var(--color-text-muted, #4F5B53);
}

.news-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  font-weight: 600;
  color: var(--color-gold, #B45309);
}

.news-cta .material-symbols-outlined { font-size: 18px; }

.news-cta:hover,
.news-cta:focus-visible { text-decoration: underline; }

.news-empty {
  padding: 1.5rem 1.6rem;
  background: #fff;
  border: 1px dashed #D8D4CC;
  border-radius: var(--r-md, 14px);
  color: var(--color-text-muted, #4F5B53);
}

.news-archive {
  margin-top: 2rem;
  border-top: 1px solid #E5E2DD;
  padding-top: 1.25rem;
}

.news-archive > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary, #1B3022);
}

.news-archive .news-archive-note {
  margin: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--color-text-muted, #4F5B53);
}

.news-archive .news-entry { box-shadow: none; opacity: 0.92; }

.news-disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  background: #F4F2EC;
  border-radius: var(--r, 10px);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--color-text-muted, #4F5B53);
}
