
/*
 * AF Kameramann Redaktionsstudio
 * Letzte Layoutschicht 2.9.6
 * Diese Datei wird nach allen bisherigen Pluginregeln geladen.
 */

html,
body {
  max-width: 100%;
}

body.afkrs-home-polish {
  overflow-x: clip;
}

/* Startseiten Hero, am Handy mit Abstand zum oberen Rand */
@media (max-width: 782px) {
  body.afkrs-home-polish .afkrs-home-hero {
    box-sizing: border-box !important;
    min-height: 100svh !important;
    padding-top: 34px !important;
  }

  body.afkrs-home-polish .afkrs-home-hero > .et_pb_row:first-child,
  body.afkrs-home-polish .afkrs-home-hero .et_pb_row:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.afkrs-home-polish .afkrs-home-hero-copy {
    top: 0 !important;
    padding-top: 0 !important;
  }

  body.afkrs-home-polish .afkrs-home-hero-copy h1,
  body.afkrs-home-polish .afkrs-home-hero-copy h2 {
    margin-top: 0 !important;
  }
}

/* Profilfoto als echte, gefüllte Bildfläche */
body.afkrs-home-polish .afkrs-home-profile-stage {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
}

body.afkrs-home-polish .afkrs-home-profile-media {
  position: absolute !important;
  z-index: 1 !important;
  top: 8.5% !important;
  right: 4.5% !important;
  bottom: 0 !important;
  left: 4.5% !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  transform: none !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

body.afkrs-home-polish .afkrs-home-profile-media-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: 50% 15% !important;
  transform: none !important;
  filter: none !important;
}

body.afkrs-home-polish .afkrs-home-profile-source,
body.afkrs-home-polish .afkrs-home-profile-source-image {
  display: none !important;
}

@media (max-width: 782px) {
  body.afkrs-home-polish .afkrs-home-profile-section {
    padding-top: 14px !important;
    padding-bottom: 30px !important;
  }

  body.afkrs-home-polish .afkrs-home-profile-stage {
    width: calc(100% - 24px) !important;
    max-width: 680px !important;
    min-height: 0 !important;
    aspect-ratio: 0.69 !important;
    margin: 0 auto 18px !important;
  }

  body.afkrs-home-polish .afkrs-home-profile-media {
    top: 8% !important;
    right: 4% !important;
    bottom: 0 !important;
    left: 4% !important;
  }

  body.afkrs-home-polish .afkrs-home-profile-media-image {
    object-position: 50% 14% !important;
  }
}

/* Sendungen, Sender und Produktionen, mobile Breitenkorrektur */
@media (max-width: 782px) {
  #referenzen.afref6 {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  #referenzen.afref6 *,
  #referenzen.afref6 *::before,
  #referenzen.afref6 *::after {
    box-sizing: border-box !important;
  }

  #referenzen.afref6 .et_pb_row,
  #referenzen.afref6 .et_pb_column,
  #referenzen.afref6 form,
  #referenzen.afref6 label,
  #referenzen.afref6 [class*="afref6-"] {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #referenzen.afref6 .et_pb_row {
    width: calc(100% - 32px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  #referenzen.afref6 form,
  #referenzen.afref6 .afref6-tools,
  #referenzen.afref6 .afref6-controls,
  #referenzen.afref6 .afref6-search {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  #referenzen.afref6 #afref6-search-input,
  #referenzen.afref6 input[type="search"],
  #referenzen.afref6 input[type="text"] {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  #referenzen.afref6 .afref6-filters {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  #referenzen.afref6 .afref6-filters button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 10px 8px !important;
    white-space: normal !important;
    text-align: center !important;
  }

  #referenzen.afref6 .afref6-group,
  #referenzen.afref6 .afref6-content,
  #referenzen.afref6 .afref6-specials,
  #referenzen.afref6 .afref6-item {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Sehr schmale Geräte */
@media (max-width: 390px) {
  #referenzen.afref6 .afref6-filters {
    grid-template-columns: 1fr !important;
  }

  body.afkrs-home-polish .afkrs-home-profile-stage {
    width: calc(100% - 18px) !important;
  }
}
