/* ==========================================================================
   Mesh APP Neues — Ergänzungen zu guides.css für archive-neues.php und
   single-neues.php (09.11.2026). Farben und Abstände kommen aus den
   --g-*-Variablen von .mesh-guide.
   ========================================================================== */

/* ---------- Übersicht: Kopf ---------- */
.news-head { padding: 40px 0 24px; max-width: 760px; }
.news-head h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 8px 0 14px;
}
.news-lead { color: var(--g-ink-2); font-size: 18px; margin: 0; max-width: var(--g-measure); }

/* ---------- Übersicht: Filter ---------- */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 28px;
}
.news-chip {
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--g-rule);
  background: var(--g-surface);
  color: var(--g-ink-2);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  line-height: 1.2;
}
.news-chip span { color: var(--g-ink-3); margin-left: 4px; font-variant-numeric: tabular-nums; }
.news-chip:hover { border-color: var(--g-accent); color: var(--g-accent-ink); }
.news-chip.is-on { background: var(--g-accent); border-color: var(--g-accent); color: #fff; }
.news-chip.is-on span { color: rgba(255, 255, 255, .8); }
.news-chip:focus-visible { outline: 2px solid var(--g-accent); outline-offset: 2px; }

/* ---------- Übersicht: Karten ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 56px;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--g-surface);
  border: 1px solid var(--g-rule-soft);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--g-shadow);
  transition: border-color .15s ease, transform .15s ease;
}
.news-card:hover { border-color: var(--g-accent); transform: translateY(-2px); }
.news-card[hidden] { display: none; }
.news-card-img {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--g-surface-2);
  border-bottom: 1px solid var(--g-rule-soft);
  overflow: hidden;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }

/* Karte ohne Bild: ruhige Fläche mit Bereich statt leerem Grau */
.news-card-img.is-empty {
  background:
    radial-gradient(circle at 85% 20%, rgba(24, 102, 221, .18), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(24, 102, 221, .10), transparent 50%),
    var(--g-accent-soft);
}
.news-card-ph {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 22px 24px;
}
.news-card-ph .ph-kicker {
  font-family: var(--g-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--g-accent-ink);
}
.news-card-ph .ph-area { font-size: 22px; font-weight: 700; color: var(--g-ink); letter-spacing: -.01em; }
.news-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.news-card-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--g-ink-3); }
.news-area { color: var(--g-accent-ink); font-weight: 600; }
.news-badge {
  background: var(--g-ok-soft);
  color: var(--g-ok);
  border-radius: 999px;
  padding: 0 8px;
  font-weight: 600;
}
.news-card-title { font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.news-card-teaser {
  color: var(--g-ink-2);
  font-size: 15px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-more { margin-top: auto; padding-top: 6px; color: var(--g-accent-ink); font-weight: 600; font-size: 15px; }

/* Neueste Meldung breit */
.news-card.is-lead { grid-column: 1 / -1; flex-direction: row; }
.news-card.is-lead .news-card-img { flex: 0 0 58%; aspect-ratio: auto; min-height: 320px; border-bottom: 0; border-right: 1px solid var(--g-rule-soft); }
.news-card.is-lead .news-card-body { padding: 32px; justify-content: center; }
.news-card.is-lead .news-card-title { font-size: 28px; }
.news-card.is-lead .news-card-teaser { font-size: 17px; -webkit-line-clamp: 5; }

@media (max-width: 960px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card.is-lead { flex-direction: column; }
  .news-card.is-lead .news-card-img { flex: none; min-height: 0; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--g-rule-soft); }
  .news-card.is-lead .news-card-body { padding: 22px; }
  .news-card.is-lead .news-card-title { font-size: 22px; }
}
@media (max-width: 620px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-head { padding-top: 24px; }
}

/* ---------- Einzelseite ---------- */
.mesh-news .news-hero { margin-top: 0; }
.mesh-news .news-no-toc .guide-toc .toc-cta { margin-top: 0; }
.news-steps { counter-reset: news-step; list-style: none; padding: 0; margin: 0; }
.news-steps li {
  counter-increment: news-step;
  position: relative;
  padding: 12px 0 12px 46px;
  border-bottom: 1px solid var(--g-rule-soft);
}
.news-steps li:last-child { border-bottom: 0; }
.news-steps li::before {
  content: counter(news-step);
  position: absolute;
  left: 0;
  top: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--g-accent-soft);
  color: var(--g-accent-ink);
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
}
.news-hint { margin: 28px 0; }
.news-hint .guide-prose p { margin: 0 0 8px; }
.news-hint .guide-prose p:last-child { margin-bottom: 0; }
