The present application relates to the use of heterocyclic compounds of formula (A-1)-(Q-1)-D-(B-1) in which R1, R3 to R6 and Z have the meanings provided in the specification, for controlling animal pests which are encountered in agriculture, in horticulture, in forests, in gardens and leisure facilities and in the protection of stored products and of materials, to novel heterocyclic compounds, to processes for their preparation and to intermediates for preparing the heterocyclic compounds.