/* RETRO BOXING e. V. - v1714: reine Team-Seiten-Korrektur.
   Der Hintergrund wird unmittelbar auf dem bestehenden HTML-Element gesetzt.
   Keine Abhaengigkeit von Textsuchen, JS oder dem extra Fotoblock. */
html body main.site-main.page-slug-team .rb-team-v1634 .rb-team-values.section-card {
  background-color: #161d23 !important;
  background-image:
    linear-gradient(100deg, rgba(10, 15, 20, .54) 0%, rgba(10, 15, 20, .46) 52%, rgba(10, 15, 20, .56) 100%),
    url('/assets/branding/team-boxring-hero-v1710.webp') !important;
  background-position: center, center 42% !important;
  background-size: cover, cover !important;
  background-repeat: no-repeat, no-repeat !important;
  position: relative !important;
  overflow: hidden !important;
}
/* Heller Modus: heller transparenter Verlauf fuer dunkle Textfarbe */
html[data-rb-theme="light"] body main.site-main.page-slug-team .rb-team-v1634 .rb-team-values.section-card {
  background-color: #18212a !important;
  background-image:
    linear-gradient(100deg, rgba(10, 15, 20, .46) 0%, rgba(10, 15, 20, .40) 52%, rgba(10, 15, 20, .49) 100%),
    url('/assets/branding/team-boxring-hero-v1710.webp') !important;
}
/* Das urspruengliche obere Gruender-Bild bleibt unveraendert.
   Exakt diese Selektoren sind staerker als die alten !important-Regeln
   aus page.php und v1711, die vorher 58%/60% vorgegeben haben. */
html body main.site-main.page-slug-team .hero-card.rb-service-page-hero.rb-team-page-hero .rb-service-page-hero__media > img,
html body main.site-main.page-slug-team .hero-card.rb-service-page-hero.rb-team-page-hero.rb-service-page-hero--visible .rb-service-page-hero__media:not(.is-placeholder) > img {
  object-fit: cover !important;
  object-position: 50% center !important;
}
@media (max-width: 820px) {
  html body main.site-main.page-slug-team .hero-card.rb-service-page-hero.rb-team-page-hero .rb-service-page-hero__media > img,
  html body main.site-main.page-slug-team .hero-card.rb-service-page-hero.rb-team-page-hero.rb-service-page-hero--visible .rb-service-page-hero__media:not(.is-placeholder) > img {
    object-position: 50% center !important;
  }
  html body main.site-main.page-slug-team .rb-team-v1634 .rb-team-values.section-card {
    background-position: center, 58% center !important;
    background-image:
      linear-gradient(105deg, rgba(11, 16, 21, .54), rgba(11, 16, 21, .49)),
      url('/assets/branding/team-boxring-hero-v1710.webp') !important;
  }
  html[data-rb-theme="light"] body main.site-main.page-slug-team .rb-team-v1634 .rb-team-values.section-card {
    background-image:
      linear-gradient(105deg, rgba(10, 15, 20, .51), rgba(10, 15, 20, .44)),
      url('/assets/branding/team-boxring-hero-v1710.webp') !important;
  }
}

/* v1715: Hellmodus – Foto kräftiger, dunkler und Text bewusst hell.
   Nur der Werte-Kasten /team; die zwei vorhandenen Buttons bleiben unverändert. */
html[data-rb-theme="light"] body main.site-main.page-slug-team .rb-team-v1634 .rb-team-values.section-card {
  color:#f9fafb !important;
}
html[data-rb-theme="light"] body main.site-main.page-slug-team .rb-team-v1634 .rb-team-values.section-card h2,
html[data-rb-theme="light"] body main.site-main.page-slug-team .rb-team-v1634 .rb-team-values.section-card p {
  color:#f9fafb !important;
  text-shadow:0 1px 3px rgba(0,0,0,.68);
}

/* v1716: Verbindliche Lesbarkeit beim Boxring-Hintergrund, in allen Themes.
   Grund: Die alte v1715-Textfarbe war an data-rb-theme="light" gebunden und
   konnte auf der Live-Seite durch staerkere bestehende Farbregeln ausfallen.
   Nur Ueberschrift und Text im vorhandenen Team-Werte-Kasten, nie die Buttons. */
html body main#main-content.site-main.page-slug-team .rb-managed-content .rb-team-v1634 > section.rb-team-values.section-card > h2,
html body main#main-content.site-main.page-slug-team .rb-managed-content .rb-team-v1634 > section.rb-team-values.section-card > p,
html body main#main-content.site-main.page-slug-team .rb-managed-content .rb-team-v1634 > section.rb-team-values.section-card > p strong,
html body main#main-content.site-main.page-slug-team .rb-managed-content .rb-team-v1634 > section.rb-team-values.section-card > p em,
html body main#main-content.site-main.page-slug-team .rb-managed-content .rb-team-v1634 > section.rb-team-values.section-card > p a:not(.btn) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 0 9px rgba(0,0,0,.62) !important;
}
