The invention relates to agents for temporarily shaping keratin fibers, said agents containing, incorporated into a cosmetically acceptable carrier,: a) at least one copolymer A formed by at least one monomer A1 selected from acrylic acid, methacrylic acid, acrylic alkyl esters and methacrylic alkyl esters, at least one monomer A2 selected from acrylic hydroxy alkyl esters and methacrylic hydroxy alkyl esters and at least one monomer A3 selected from succinic monoalkylesters and succinic dialkylesters, and b) at least one copolymer B formed by at least one monomer B1 selected from acrylamide, methacrylamide, N-alkylacrylamide and N-alkylmethacrylamide, at least one monomer B2 selected from N-vinyllactams, at least one monomer B3 selected from quaternized N-vinylimidazoles and the monomer N-vinylimidazole. The invention also relates to the use of the agents for temporarily shaping hair and to an aerosol styling mousse that contains a corresponding agent and at least one propellant.