Composition for the production of a coating, comprising (a)a silane derivative of the formula in which R 1, R 2, R 3 and R 4, which may be the same or different, are selected from alkyl, acyl, alkyleneacyl, cycloalkyl, aryl and alkylenearyl, which may optionally be substituted, (b) a silane derivative of the formula R 6 R 7 3-n Si(OR 5) n in which R 5 is an unsubstituted or substituted alkyl, acyl, alkyleneacyl, cycloalkyl, aryl or alkylenearyl group, R 6 is an organic radical containing an epoxide group, R 7 is an unsubstituted or substituted alkyl, cycloalkyl, aryl or alkylenearyl group, n is 2 or 3, and/or a hydrolysis and/or condensation product of the silane derivative of the formula, (c) a colloidal inorganic oxide, fluoride or oxyfluoride, (d) an epoxide compound having at least two epoxide groups, (e) a catalyst system comprising - a Lewis acid and - a thermolatent Lewis acid-base adduct, wherein the epoxide compound is a diglycidyl ether or triglycidyl ether compound, wherein the diglycidyl compound has the following formula: in which p is 0 or 1, x = 1-10, R 10 and R 11, which may be the same or different, are hydrogen or methyl, and the triglycidyl ether compound has the following formula: in which R 19, R 15 and R 16, which may be the same or different, are hydrogen or methyl, R 17 is hydrogen or C 1-4 -alkyl, x = 0-3, y = 0-3, z = 0-3, and wherein the following composition is excluded: 36 parts trimethylolpropane triglycidyl ether, 162 parts 2-propanol, 264 parts 1-methoxy-2-propanol, 186 parts 3-glycidoxypropyltrimethoxysilane, 150 parts tetraethoxysilane, 240 parts of an SiO 2 nanosol, 126 parts water, 7.2 parts aluminium acetylacetonate, 25.2 parts 1M ammonium perchlorate solution and 3.6 parts of a flow agent, where the proportions of the respective components are parts by weight. and/or a hydrolysis and/or condensation product of the silane derivative of the formula, (a)a silane derivative of the formula in which R 1, R 2, R 3 and R 4, which may be the same or different, are selected from alkyl, acyl, alkyleneacyl, cycloalkyl, aryl and alkylenearyl, which may optionally be substituted, R 1, R 2, R 3 and R 4, which may be the same or different, are selected from alkyl, acyl, alkyleneacyl, cycloalkyl, aryl and alkylenearyl, which may optionally be substituted, (b) a silane derivative of the formula R 6 R 7 3-n Si(OR 5) n in which R 5 is an unsubstituted or substituted alkyl, acyl, alkyleneacyl, cycloalkyl, aryl or alkylenearyl group, R 6 is an organic radical containing an epoxide group, R 7 is an unsubstituted or substituted alkyl, cycloalkyl, aryl or alkylenearyl group, n is 2 or 3, and/or a hydrolysis and/or condensation product of the silane derivative of the formula, R 5 is an unsubstituted or substituted alkyl, acyl, alkyleneacyl, cycloalkyl, aryl or alkylenearyl group, R 6 is an organic radical containing an epoxide group, R 7 is an unsubstituted or substituted alkyl, cycloalkyl, aryl or alkylenearyl group, n is 2 or 3, (c) a colloidal inorganic oxide, fluoride or oxyfluoride, (d) an epoxide compound having at least two epoxide groups, (e) a catalyst system comprising - a Lewis acid and - a thermolatent Lewis acid-base adduct, wherein the epoxide compound is a diglycidyl ether or triglycidyl ether compound, wherein the diglycidyl compound has the following formula: in which p is 0 or 1, x = 1-10, R 10 and R 11, which may be the same or different, are hydrogen or methyl, and the triglycidyl ether compound has the following formula: in which R 19, R 15 and R 16, which may be the same or different, are hydrogen or methyl, R 17 is hydrogen or C 1-4 -alkyl, x = 0-3, y = 0-3, z = 0-3, and wherein the following composition is excluded: 36 parts trimethylolpropane triglycidyl ether, 162 parts 2-propanol, 264 parts 1-methoxy-2-propanol, 186 parts 3-glycidoxypropyltrimethoxysilane, 150 parts tetraethoxysilane, 240 parts of an SiO 2 nanosol, 126 parts water, 7.2 parts aluminium acetylacetonate, 25.2 parts 1M ammonium perchlorate solution and 3.6 parts of a flow agent, where the proportions of the respective components are parts by weight. - a Lewis acid and - a thermolatent Lewis acid-base adduct, p is 0 or 1, x = 1-10, R 10 and R 11, which may be the same or different, are hydrogen or methyl, R 19, R 15 and R 16, which may be the same or different, are hydrogen or methyl, R 17 is hydrogen or C 1-4 -alkyl, x = 0-3, y = 0-3, z = 0-3, 36 parts trimethylolpropane triglycidyl ether, 162 parts 2-propanol, 264 parts 1-methoxy-2-propanol, 186 parts 3-glycidoxypropyltrimethoxysilane, 150 parts tetraethoxysilane, 240 parts of an SiO 2 nanosol, 126 parts water, 7.2 parts aluminium acetylacetonate, 25.2 parts 1M ammonium perchlorate solution and 3.6 parts of a flow agent, where the proportions of the respective components are parts by weight.