/* RedGlobe – zentrale CSS-Anpassungen
   Alle Anpassungen hier gebündelt. Letzte Änderung: 2026-11-25
   Geladen über mu-plugins/redglobe-css.php */

/* Kategorie- und Archivseiten: Thumbnails auf dem Smartphone halb so groß */
@media (max-width: 768px) {
  body.category .wp-post-image,
  body.archive .wp-post-image,
  body.category .newsx-grid-item img,
  body.archive .newsx-grid-item img {
    width: 50% !important;
    height: auto !important;
    max-height: none !important;
    float: none !important;
    display: block;
  }
}

/* Startseite mobil: dunkler Verlauf über den ersten Kacheln (Magazin-Layout),
   damit die Titel auf dem Bild lesbar bleiben. */
@media (max-width: 768px) {
  body.home .newsx-magazine-widget .newsx-grid-over-media {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.55) 35%,
      rgba(0, 0, 0, 0.10) 70%,
      rgba(0, 0, 0, 0) 100%
    );
  }
  body.home .newsx-magazine-widget .newsx-grid-over-media .newsx-grid-title,
  body.home .newsx-magazine-widget .newsx-grid-over-media .newsx-grid-title a,
  body.home .newsx-magazine-widget .newsx-grid-over-media .newsx-grid-excerpt,
  body.home .newsx-magazine-widget .newsx-grid-over-media .newsx-grid-excerpt p,
  body.home .newsx-magazine-widget .newsx-grid-over-media .newsx-grid-post-meta,
  body.home .newsx-magazine-widget .newsx-grid-over-media .newsx-grid-post-meta a,
  body.home .newsx-magazine-widget .newsx-grid-over-media .newsx-post-categories a {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  }
}

/* Startseite mobil: Video-Meta (Kategorie + Datum) in einer Zeile halten */
@media (max-width: 768px) {
  body.home .aiovg-widget-videos .aiovg-meta {
    flex-wrap: nowrap !important;
    gap: 6px !important;
    min-width: 0;
    overflow: hidden;
  }
  body.home .aiovg-widget-videos .aiovg-meta .aiovg-date,
  body.home .aiovg-widget-videos .aiovg-meta .aiovg-category {
    flex: 0 0 auto;
    margin: 0 !important;
    white-space: nowrap;
  }
  body.home .aiovg-widget-videos .aiovg-meta .aiovg-category a {
    display: inline-block;
    max-width: 34vw;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
  }
  body.home .aiovg-widget-videos .aiovg-meta .aiovg-separator {
    display: none;
  }
}
