/* ============================================================
   REITER MOBIL STABIL (26.11.2026)
   Nutzer: Reiterleisten liessen sich auf dem Handy seitlich wegschieben ("instabil").
   Loesung systemweit: bis 768px scrollt keine Reiter-/Filterleiste mehr waagerecht,
   die Reiter brechen in Zeilen um (jeder Reiter mit eigener feiner Grundlinie,
   aktiv = rote Unterstreichung). Nichts ist mehr abgeschnitten, nichts verschiebbar.
   Neue Leiste? -> Container in RM_C und Eintraege in RM_I ergaenzen.
   Bewusst NICHT hier: Inhalts-Karussells (Live-Tage-Slider, Artikel-Slider, Shorts),
   breite Tabellen.
   3x :not(#..) schlaegt kicker_reiter.css (2x) und die Inline-Styles der Seiten.
   ============================================================ */
@media (max-width: 768px) {

  /* ---- RM_C: Leisten ---- */
  html body:not(#rm-a):not(#rm-b):not(#rm-c) :is(
      .subtab-nav, .kk-subnav, .sp-tabs, .vs-menue, .tp-nav, .sx2-ansicht,
      .faq-nav, #pdTabs, #pdThemen, #rpTabs, #rpGenres, .gal-reihe, .su-tabs, .tr-pills,
      .sp-schnell, .ss-schnell, .ss-jahre, .lgx-chips, .sk-filter, .tsp-umschalter, .tsa-pills) {
    flex-wrap: wrap !important;
    overflow: visible !important;
    overflow-x: visible !important;
    position: static !important;
    touch-action: auto;
    border-bottom: 0 !important;
    gap: 0 !important;
    row-gap: 0 !important;
    column-gap: 0 !important;
    max-width: 100% !important;
    scroll-snap-type: none !important;
  }

  /* ---- RM_I: Eintraege fuellen die Zeile, eigene Grundlinie ---- */
  html body:not(#rm-a):not(#rm-b):not(#rm-c) :is(
      .subtab-nav > a, .kk-subnav > a, .sp-tabs > *, .vs-menue > button, .tp-nav > a, .sx2-ansicht > button,
      .faq-nav > a, #pdTabs > .rp-chip, #pdThemen > .rp-chip, #rpTabs > .rp-chip, #rpGenres > .rp-chip,
      .gal-reihe > .gal-chip, .su-tabs > .su-tab, .tr-pills > .tr-pill, .sp-schnell > a, .ss-schnell > a,
      .ss-jahre > a, .lgx-chips > button, .sk-filter > .sk-fchip, .tsp-umschalter > .tsp-tab, .tsa-pills > .tsa-pill) {
    flex: 1 1 auto !important;
    justify-content: center !important;
    text-align: center;
    margin: 0 !important;
    box-shadow: inset 0 -1px 0 #e3e3e3 !important;
    scroll-snap-align: none !important;
  }

  /* Spiel-Vorschau-Menue hatte 22px Luecke und keine Innenabstaende */
  html body:not(#rm-a):not(#rm-b):not(#rm-c) .vs-menue > button { padding: 10px 10px 9px !important; }

  /* Podcast: Land-Auswahl in eigener Zeile rechts */
  html body:not(#rm-a):not(#rm-b):not(#rm-c) #pdTabs > .rp-sel { flex: 0 0 auto !important; box-shadow: none !important; margin: 6px 0 6px auto !important; }

  /* Pfeile der kicker_reiter.js werden ueberfluessig */
  .kr-rahmen > .kr-pfeil { display: none !important; }

  /* ---- Brotkrumen: umbrechen statt seitlich schieben ---- */
  html body:not(#rm-a):not(#rm-b):not(#rm-c) .sp-breadcrumb {
    flex-wrap: wrap !important;
    overflow: visible !important;
    white-space: normal !important;
    row-gap: 2px;
  }
  html body:not(#rm-a):not(#rm-b):not(#rm-c) .sp-breadcrumb > * { white-space: nowrap; }
}
