Cosmetic agents, containing in a cosmetically acceptable carrier a) at least one copolymer A of 2-acrylamido-2-methylpropanesulfonic acid with one or more monomers selected from acrylic acid and methacrylic acid, b) at least one polymeric quaternary ammonium compound from the group of vinylpyrrolidone copolymers B, are particularly suitable for temporarily deforming keratinic fibers.