Heteroaryldihydropyridine derivatives of the formula (I)in which the symbols A, L1, L2, G, p, Q, R1, R2, T and Y 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).