Malonic ester derivatives of the formula (I) in which the symbols A1, A2, Y, R10, p, X, R2, G, Q, L2 and R1 are each as defined in the description, and salts, metal complexes and N-oxides of the compounds of the formula (I), and the use thereof for controlling phytopathogenic harmful fungi and processes for preparing compounds of the formula (I).