/* =====================================================================
   neuheiten.css  –  DESIGN DER SEITE «AKTUELLE NEUHEITEN»
   ---------------------------------------------------------------------
   Wird zusammen mit inhalt.css und bausteine.css geladen.
   Alle Namen beginnen mit «nh-», damit sie sich nicht mit anderen
   Seiten überschneiden. Farben kommen aus style.css (--red, --ink,
   --muted, --line, --radius, --shadow).
   ===================================================================== */

/* ---------- Bildrahmen: Karten werden nie abgeschnitten ---------- */
.nh .bildrahmen{
  display:block; position:relative; overflow:hidden; background:#fff;
  aspect-ratio:7/5;                                  /* ANPASSEN: Format der Rahmen (7/5 = normale Postkarte) */
  border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow); cursor:zoom-in}
.nh .bildrahmen img{
  position:absolute; inset:6px; width:calc(100% - 12px); height:calc(100% - 12px);
  object-fit:contain; display:block}                 /* contain = ganzes Bild, nie geschnitten */

/* ---------- Die neueste Karte: gross, mit Post-Knopf ---------- */
.nh .nh-haupt{
  display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:36px; align-items:center;
  max-width:1000px; padding:24px; background:#fff;
  border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow)}
.nh .nh-haupt .bildrahmen{box-shadow:none}
.nh .nh-neu{
  display:inline-block; margin:0 0 12px; padding:4px 14px; background:var(--red); color:#fff;
  border-radius:999px; font-weight:800; font-size:.78rem; letter-spacing:.12em; text-transform:uppercase}
.nh .nh-haupt h3{font-size:1.6rem; line-height:1.25; margin:0 0 12px}
.nh .nh-haupt p{margin:0 0 18px; line-height:1.7; color:var(--muted)}

/* ---------- Raster: 3 pro Reihe, unvollständige Reihe steht mittig ---------- */
.nh .nh-raster{
  list-style:none; display:flex; flex-wrap:wrap; justify-content:center; gap:26px 22px;
  padding:0; margin:0; max-width:1000px}                       /* ANPASSEN: Gesamtbreite des Rasters */
.nh .nh-raster li{flex:0 0 calc((100% - 44px) / 3); max-width:calc((100% - 44px) / 3)}
.nh .nh-raster figcaption{margin-top:10px; line-height:1.4; color:var(--ink); text-align:center}
.nh .nh-raster figcaption strong{display:block; font-weight:650}
.nh .nh-raster figcaption span{display:block; margin-top:4px; color:var(--muted); font-size:.92rem}

/* ---------- Tablet und Handy ---------- */
@media(max-width:980px){
  .nh .nh-raster li{flex-basis:calc((100% - 22px) / 2); max-width:calc((100% - 22px) / 2)}   /* 2 pro Reihe */
}
@media(max-width:760px){
  .nh .nh-haupt{grid-template-columns:1fr; gap:20px; padding:16px}                           /* Bild über dem Text */
  .nh .nh-haupt h3{font-size:1.35rem}
}
@media(max-width:560px){
  .nh .nh-raster li{flex-basis:100%; max-width:100%}                                          /* 1 pro Reihe */
}
