A compound of the formula I in which X is N or C-R1a; A is CR31R33, NR31, CR31R33-NR31 or CR31=N; R30 is H or (CR11R12) n -R32; R31 is H or (CR11R12) n -R32; R33 is H or (C 1 -C 6)-alkyl; R11, R12 are independently of each other H or (C 1 -C 6)-alkyl; n is 0, 1, 2 or 3; R32 is (C 1 -C 6)-alkyl, COOR13, CONR14R15, S m R16, OH, CN, (C 3 -C 8)-cycloalkyl, (C 5 -C 8)-bicycloalkyl, 4-, 5- or 6-membered heterocycle, phenyl or 5- or 6-membered heteroaryl ring; wherein the groups (C 3 -C 8)-cycloalkyl, (C 5 -C 8)-bicycloalkyl, 4-, 5- or 6-membered heterocycle, phenyl, 5- or 6-membered heteroaryl ring may be optionally substituted with 1 to 3 groups selected from the list (C 1 -C 4)-alkyl, (C 1 -C 4)-alkanoyl, hydroxy, hydroxy-(C 1 -C 4)-alkyl, (C 1 -C 6)-alkyloxy, (C 1 -C 3)-alkyloxy-(C 1 -C 4)-alkyl, oxo, F and Cl; m is 0, 1 or 2; R13 is H or (C 1 -C 6)-alkyl; R14, R15 are independently of each other H, (C 3 -C 6)-cycloalkyl, (C 1 -C 6)-alkyl, (C 1 -C 6)-alkyl substituted with 1 to 3 groups selected from the list OR17, COOR19 and a 4-, 5- or 6-membered heterocycle; or R14 and R15 form together with the N-atom to which they are attached, a 4-, 5- or 6-membered heterocycle, optionally containing an additional heteroatom selected from the list O, S and NR18; wherein the 4-, 5- or 6-membered heterocycle may be optionally substituted with 1 to 3 groups selected from the list (C 1 -C 4)-alkyl and OR17; R16 is (C 1 -C 6)-alkyl; R17 is H or (C 1 -C 6)-alkyl; R18 is H or (C 1 -C 6)-alkyl; R1a, R1b, R1c are independently of each other H, F, Cl, Br, (C 1 -C 6)-alkyl or CN; R2a, R2b, R2c are independently of each other H, F, Cl, Br, (C 1 -C 6)-alkyl, (C 1 -C 3)-alkyl substituted with COOR19 or CN; R19 is H or (C 1 -C 6)-alkyl; Y is N or CH; Z is a bond, O, CR5R5', NR6, C=O, S, SO or SO 2; R5, R5', R6 are independently of each other H or (C 1 -C 4)-alkyl; R3 is a bond or (CR7R7') p; p is 0, 1, 2, 3 or 4; R7, R7' are independently of each other H or (C 1 -C 6)-alkyl; R4 is F, Cl, SF 5, (C 1 -C 6)-alkyl, (C 2 -C 6)-alkenyl, OR8, (C 3 -C 8)-cycloalkyl, (C 5 -C 8)-bicycloalkyl, 4-, 5- or 6-membered heterocycle, phenyl, or 5- or 6-membered heteroaryl ring; wherein the groups (C 3 -C 8)-cycloalkyl, (C 5 -C 8)-bicycloalkyl, 4-, 5- or 6-membered heterocycle, phenyl, 5- or 6-membered heteroaryl ring may be optionally substituted with 1 to 3 groups selected from the list (C 1 -C 4)-alkyl, (C 1 -C 4)-alkanoyl, hydroxy, hydroxy-(C 1 -C 4)-alkyl, (C 1 -C 3)-alkyloxy-(C 1 -C 4)-alkyl, oxo, F and Cl; R8 is H, (C 1 -C 6)-alkyl, hydroxy-(C 1 -C 4)-alkyl or (C 1 -C 3)-alkyloxy-(C 1 -C 4)-alkyl; wherein at each occurrence the hydrogen atoms of alkyl groups may be partially or fully replaced by fluorine atoms; in any of its stereoisomeric forms, or a mixture of stereoisomeric forms in any ratio, or a physiologically acceptable salt thereof. X is N or C-R1a; A is CR31R33, NR31, CR31R33-NR31 or CR31=N; R30 is H or (CR11R12) n -R32; R31 is H or (CR11R12) n -R32; R33 is H or (C 1 -C 6)-alkyl; R11, R12 are independently of each other H or (C 1 -C 6)-alkyl; n is 0, 1, 2 or 3; R32 is (C 1 -C 6)-alkyl, COOR13, CONR14R15, S m R16, OH, CN, (C 3 -C 8)-cycloalkyl, (C 5 -C 8)-bicycloalkyl, 4-, 5- or 6-membered heterocycle, phenyl or 5- or 6-membered heteroaryl ring; wherein the groups (C 3 -C 8)-cycloalkyl, (C 5 -C 8)-bicycloalkyl, 4-, 5- or 6-membered heterocycle, phenyl, 5- or 6-membered heteroaryl ring may be optionally substituted with 1 to 3 groups selected from the list (C 1 -C 4)-alkyl, (C 1 -C 4)-alkanoyl, hydroxy, hydroxy-(C 1 -C 4)-alkyl, (C 1 -C 6)-alkyloxy, (C 1 -C 3)-alkyloxy-(C 1 -C 4)-alkyl, oxo, F and Cl; m is 0, 1 or 2; R13 is H or (C 1 -C 6)-alkyl; R14, R15 are independently of each other H, (C 3 -C 6)-cycloalkyl, (C 1 -C 6)-alkyl, (C 1 -C 6)-alkyl substituted with 1 to 3 groups selected from the list OR17, COOR19 and a 4-, 5- or 6-membered heterocycle; or R14 and R15 form together with the N-atom to which they are attached, a 4-, 5- or 6-membered heterocycle, optionally containing an additional heteroatom selected from the list O, S and NR18; wherein the 4-, 5- or 6-membered heterocycle may be optionally substituted with 1 to 3 groups selected from the list (C 1 -C 4)-alkyl and OR17; R16 is (C 1 -C 6)-alkyl; R17 is H or (C 1 -C 6)-alkyl; R18 is H or (C 1 -C 6)-alkyl; R1a, R1b, R1c are independently of each other H, F, Cl, Br, (C 1 -C 6)-alkyl or CN; R2a, R2b, R2c are independently of each other H, F, Cl, Br, (C 1 -C 6)-alkyl, (C 1 -C 3)-alkyl substituted with COOR19 or CN; R19 is H or (C 1 -C 6)-alkyl; Y is N or CH; Z is a bond, O, CR5R5', NR6, C=O, S, SO or SO 2; R5, R5', R6 are independently of each other H or (C 1 -C 4)-alkyl; R3 is a bond or (CR7R7') p; p is 0, 1, 2, 3 or 4; R7, R7' are independently of each other H or (C 1 -C 6)-alkyl; R4 is F, Cl, SF 5, (C 1 -C 6)-alkyl, (C 2 -C 6)-alkenyl, OR8, (C 3 -C 8)-cycloalkyl, (C 5 -C 8)-bicycloalkyl, 4-, 5- or 6-membered heterocycle, phenyl, or 5- or 6-membered heteroaryl ring; wherein the groups (C 3 -C 8)-cycloalkyl, (C 5 -C 8)-bicycloalkyl, 4-, 5- or 6-membered heterocycle, phenyl, 5- or 6-membered heteroaryl ring may be optionally substituted with 1 to 3 groups selected from the list (C 1 -C 4)-alkyl, (C 1 -C 4)-alkanoyl, hydroxy, hydroxy-(C 1 -C 4)-alkyl, (C 1 -C 3)-alkyloxy-(C 1 -C 4)-alkyl, oxo, F and Cl; R8 is H, (C 1 -C 6)-alkyl, hydroxy-(C 1 -C 4)-alkyl or (C 1 -C 3)-alkyloxy-(C 1 -C 4)-alkyl;