/* Uebersichtsseiten (Ressorts, Hintergrund), Ausbau 15.11.2026. Nur mit Schalter LISTE_V2 geladen. Keine neuen Farben: nur Variablen und currentColor. */

/* Einleitung (Hintergrund): Serifenschrift im Stil von dek-sm, etwas groesser */
.hg-einleitung { max-width: 42rem; margin-top: .6rem; font-size: 1.1rem; line-height: 1.45; }

/* Filterzeile: Kicker-Stil, mobil horizontal scrollbar statt Umbruch */
.hg-filter { display: flex; gap: 0 1.25rem; margin-top: 1rem; border-bottom: 1px solid var(--color-rule); overflow-x: auto; white-space: nowrap; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.hg-filter a { flex: 0 0 auto; padding: .7rem 0 .55rem; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.hg-filter a:hover { color: var(--color-ink); }
.hg-filter a[aria-current] { color: var(--color-ink); border-bottom-color: currentColor; }
.hg-filter a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 2px; }

/* Eintraege ohne Bild: gleiche Textbreite wie mit Bild (Bild 11rem + Abstand 1.5rem) */
@media (min-width: 640px) { .liste2 .liste2-ohnebild { padding-right: 12.5rem; } }

/* Anzeigen in den Listen: ohne gefuellten Platz (unbefuellt oder AdSense laedt nicht) weder Flaeche noch Etikett. Breite bleibt erhalten, damit AdSense den Platz messen kann. */
.liste2 .ad-slot--flat:not(:has(ins[data-ad-status=filled])) { min-height: 0; height: 0; margin: 0; overflow: hidden; opacity: 0; pointer-events: none; }
.liste2 .ad-slot--flat:not(:has(ins[data-ad-status=filled])) .ad-label { display: none; }

/* ---- Hintergrund-Seite, Feinschliff (15.11.2026) ---- */
/* Filterzeile und Liste gleich breit (48rem = max-w-3xl); zwischen Filterzeile und erstem Eintrag nur die Linie der Filterzeile, Abstand 16px */
.hg-filter { max-width: 48rem; }
.liste2-hg { margin-top: 0; }
.liste2-hg > article:first-child { padding-top: 1rem; }

/* Blaetterzeile: Breite der Liste, links / Mitte / rechts, Links mindestens 44px hoch, Schrift wie die Filterzeile (.kicker) */
.hg-seiten { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 48rem; margin-top: 1rem; }
.hg-seiten a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .25rem; text-decoration: none; }
.hg-seiten a:hover { color: var(--color-ink); }
.hg-seiten a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 2px; }
.hg-seiten a[rel=next] { justify-self: end; }
.hg-seiten-mitte { color: var(--color-soft); text-align: center; }

/* Mobil (unter sm): kleines Vorschaubild rechts neben Kicker und Ueberschrift (ca. 96px, 3:2, oben buendig), Vorspann darunter ueber die volle Breite */
@media (max-width: 639.98px) {
  .liste2 .liste2-zeile { display: grid; grid-template-columns: minmax(0, 1fr) 96px; column-gap: .875rem; align-items: start; }
  .liste2-zeile > .flex-1 { display: contents; }
  .liste2-zeile > .flex-1 > div:first-child { grid-column: 1; grid-row: 1; }
  .liste2-zeile > .flex-1 > h3 { grid-column: 1; grid-row: 2; }
  .liste2-zeile > .flex-1 > .dek-sm { grid-column: 1 / -1; grid-row: 3; }
  .liste2-zeile > .flex-1 > p { grid-column: 1 / -1; grid-row: 4; }
  .liste2-zeile > .cartoon-frame { grid-column: 2; grid-row: 1 / 3; order: 0; margin: 0; width: 96px; }
}

/* Mobil: Einleitung und Ueberschriften der kompakten Eintraege etwas kleiner, damit mindestens zwei Ueberschriften ohne Scrollen sichtbar sind (375x812) */
@media (max-width: 639.98px) {
  .liste2 .liste2-zeile { padding-top: .75rem; padding-bottom: .75rem; }
  .liste2-hg > .liste2-zeile:first-child { padding-top: 1rem; }
  .hg-einleitung { font-size: 1rem; line-height: 1.4; margin-top: .4rem; }
  main[data-seite="liste"] .liste2-hg > article h3.hl-md { font-size: 1.5rem; line-height: 1.15; }
}
