Cosmetics, particularly styling agents, containing at least one copolymer A composed of at least one monomer A1 chosen from acrylic acid, methacrylic acid, alkyl acrylates, and alkyl methacrylates, and at least one amphoteric monomer A2 chosen from (meth)acryloyl alkyl betaines and (meth)acryloyl alkyl amine oxides, and at least one film-forming and/or stabilizing anionic copolymer B in a cosmetically acceptable carrier. Also disclosed is the use of said cosmetics for temporarily shaping hair.