/*  Starke Typo von www.peterscheerer.com  */

/* ========== Volle Breite für spezielle Fullwidth-Container ========== */
#cc-matrix .j-module .cc-m-has-user-css div[style*="100vw"] {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* ========= Erzwinge Fullwidth für benutzerdefinierte Bereiche ========= */
.j-hgrid .cc-m-has-user-css div[style*="100vw"],
.j-hgrid .cc-m-has-user-css div[style*="margin-left:-50vw"],
.j-hgrid .cc-m-has-user-css div[style*="margin-right:-50vw"] {
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  width: 100vw !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

/* ========= Eigene Farbe für .bg-grey ========= */
.bg-grey {
  background: linear-gradient(180deg, #f3f3f1 0%, #e7e5e1 100%) !important;
}

/* === Hellgrauer Hintergrund NUR auf Seite "Keynote Speaker Führung" === */
/* Seite sicher scope'n: body id = page-2657268933 */

body#page-2657268933 .j-hgrid {
  /* Standard: nichts erzwingen – lässt Grün & andere Farben unangetastet */
  background: transparent !important;
}

/* Nur echte GRAU-Abschnitte einfärben (haben die Klasse .bg-grey) */
body#page-2657268933 .bg-grey,
body#page-2657268933 .bg-grey .j-hgrid {
  background: linear-gradient(180deg, #f3f3f1 0%, #e7e5e1 100%) !important;
}

/* Inhalte in grauen Bereichen transparent lassen (nur der Abschnitt trägt die Farbe) */
body#page-2657268933 .bg-grey .j-hgrid > div {
  background: transparent !important;
}

/* Bilder bleiben sichtbar */
body#page-2657268933 .bg-grey img {
  position: relative;
  z-index: 1;
}


/* Fullwidth-Bilder korrekt zentrieren */
#image-fullwidth {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}

/* Sicherstellen, dass Bilder nicht über den Rand hinausragen */
#image-fullwidth img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
  margin: 0;
}