A cosmetic agent for temporarily deforming keratinic fibers is provided. In an exemplary embodiment, a cosmetic agent, contains in a cosmetically acceptable carrier a) at least one polystyrenesulfonate A), b) at least one copolymer B formed from at least one monomer (B1) selected from N-vinyllactams, at least one monomer (B2) selected from quaternized N-vinylimidazoles.