/* news-block.css — serverseitiger News-Block der Sammelwelten (server/lib/sammelwelt-news.mjs, News Stufe 1, 07.11.2026).
   Nutzt nur die Variablen, die LEGO-Seite (inline) und shop.css gleich definieren. Präfix ns- (kollidiert nicht mit
   dem alten news-card-Block aus sammelwelt.css). */

.ns-grid {
  display: grid;
  /* 08.11.2026: feste Spalten (3 / 2 / 1) + Abschluss-Kachel statt auto-fill — keine Lücken in der letzten Reihe,
     wie die Startseite seit 05.11. (vorher 3 + 1 oder 2 + 1 je nach Kartenzahl und Breite) */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px; margin-top: 28px;
}
.ns-karte {
  background: #fff; border: 1px solid var(--color-border, #e3e7ec);
  border-left: 3px solid var(--color-primary, #43a047);
  border-radius: var(--radius, 6px); padding: 20px 22px;
  display: flex; flex-direction: column; min-width: 0;
}
.ns-karte--auslauf { border-left-color: var(--color-accent, #d97706); }
.ns-kopf {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--color-muted, #5a6470); margin-bottom: 10px;
}
.ns-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  background: var(--color-primary-soft, #e8f5e9); color: var(--color-primary-dark, #2e7d32); border: 1px solid #cfe3cf;
}
.ns-badge--auslauf { background: #fff4e0; color: #8a5a12; border-color: #f0d9b0; }
.ns-karte h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; color: var(--color-text, #1a1a1a); }
.ns-fakten { font-size: 13px; color: var(--color-muted, #5a6470); margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.ns-karte p { font-size: 15px; margin: 0 0 12px; }

.ns-mass-zeile {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px;
  background: var(--color-bg-soft, #f6f8fb); border-radius: 4px; padding: 10px 12px; margin: 0 0 12px;
}
.ns-skizze { width: 100%; height: auto; max-height: 170px; display: block; }
.ns-skizze text { font: 600 12px var(--font-sans, sans-serif); fill: #3d4651; }
.ns-haube { stroke: #5b8fb9; stroke-width: 1.4; stroke-linejoin: round; }
.ns-haube--vorn { fill: rgba(140, 190, 230, .16); }
.ns-haube--seite { fill: rgba(140, 190, 230, .26); }
.ns-haube--oben { fill: rgba(140, 190, 230, .10); }
.ns-modell { stroke: #6b7280; stroke-width: 1; stroke-linejoin: round; }
.ns-modell--vorn { fill: #c9ced6; }
.ns-modell--seite { fill: #aeb5bf; }
.ns-modell--oben { fill: #dde1e6; }
/* Themen-Piktogramm (08.11.2026): eigener Umriss je Thema auf der Mittelebene des Modells */
.ns-boden { fill: rgba(107, 114, 128, .14); stroke: rgba(107, 114, 128, .35); stroke-width: .8; }
.ns-pikto__koerper { fill: #8d97a5; }
.ns-pikto__fenster { fill: #eef2f6; }

/* Kundenfoto statt Skizze (bild.art = kundenfoto) */
.ns-foto { margin: 0; }
.ns-foto a { display: block; border-radius: 4px; overflow: hidden; background: #e9edf2; }
.ns-foto img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.ns-foto figcaption { font-size: 12px; color: var(--color-muted, #5a6470); margin-top: 4px; }

/* Abschluss-Kachel: füllt die freien Spalten der letzten Reihe (--ns-r3 / --ns-r2 setzt der Server) */
.ns-kachel {
  grid-column: span var(--ns-r3, 1);
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  padding: 24px;
  background: linear-gradient(135deg, var(--color-primary-soft, #e8f5e9) 0%, #d6ead8 100%);
  border: 1px solid #cfe3d1; border-radius: var(--radius, 6px);
}
.ns-kachel__marke { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--color-primary-dark, #2e7d32); }
.ns-kachel h3 { margin: 6px 0 6px; font-size: 19px; line-height: 1.3; color: var(--color-text, #1a1a1a); }
.ns-kachel p { margin: 0; font-size: 15px; line-height: 1.55; color: #2c3640; }
.ns-kachel__links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ns-kachel__links .btn { font-size: 15px; padding: 11px 18px; }
.ns-kachel__links a:not(.btn) { font-size: 14px; font-weight: 600; color: var(--color-primary-dark, #2e7d32); }
/* Querleiste über die ganze Breite (Kartenzahl geht auf): Text links, Knöpfe rechts */
@media (min-width: 1024px) {
  .ns-kachel--q3 { flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; }
  .ns-kachel--q3 .ns-kachel__text { flex: 1 1 auto; }
  .ns-kachel--q3 .ns-kachel__links { flex: 0 1 420px; }
}
@media (max-width: 1023px) {
  .ns-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ns-kachel { grid-column: span var(--ns-r2, 1); }
}
@media (min-width: 701px) and (max-width: 1023px) {
  .ns-kachel--q2 { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .ns-kachel--q2 .ns-kachel__text { flex: 1 1 auto; }
  .ns-kachel--q2 .ns-kachel__links { flex: 0 1 360px; }
}
@media (max-width: 700px) {
  .ns-grid { grid-template-columns: minmax(0, 1fr); }
  .ns-kachel { grid-column: auto; }
}

.ns-masse {
  margin: 0; font-size: 14px; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px;
}
.ns-masse dt { color: var(--color-muted, #5a6470); }
.ns-masse dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ns-hinweis { font-size: 13px; color: #8a5a12; font-weight: 400 !important; }
.ns-preis { font-size: 15px; margin: 0 0 12px; }
.ns-preis span { font-size: 12px; color: var(--color-muted, #5a6470); }
.ns-cta { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.ns-cta .btn { font-size: 15px; padding: 11px 16px; }
.ns-quelle { font-size: 12px !important; color: var(--color-muted, #5a6470); margin: 12px 0 0 !important; }
.ns-quelle a { color: inherit; }
.ns-meta { font-size: 13px; color: var(--color-muted, #5a6470); margin-top: 20px; }

@media (max-width: 520px) {
  .ns-karte, .ns-kachel { padding: 16px; }
}

/* 09.11.2026 Maßvorschlag: Luft-Empfehlung unter den Maßen (server/lib/sammelwelt-news.mjs → LUFT_KURZ) */
.ns-karte .ns-luft { font-size: 13px; color: var(--color-muted, #5a6470); margin: 0; line-height: 1.45; }
/* 09.11.2026 News-Archiv: Link je Karte auf die Dauerseite + Link unter dem Raster */
.ns-karte .ns-details { font-size: 14px; margin: 10px 0 0; }
.ns-details a, .ns-archiv-link a { font-weight: 600; color: var(--color-primary-dark, #2e7d32); }
.ns-archiv-link { margin: 20px 0 0; font-size: 15px; text-align: center; }
