The invention relates to novel N-heterocyclyl phthalic acid diamides of formula (I), in which n, A, Q1, Q2, R1 and X have the meanings given in the description, several methods for production thereof and use thereof for the prevention of pests and novel intermediates and methods for production thereof.