Thank you very much @SupportiveEntity for you fast and extensiv reply. Unfortunatly with the way I setup my character I ran into a problem with your solution. The Pitch Movement with the mouse translates than directly to the capsule witch makes looking up or down unconfinient.
Fortunatly I found another way. With the “Set Control Rotation” you can implement the leaning feature and keep “Use Pawn Control Rotation” activated.