Werder boosted their survival hopes with victory in their relegation six-pointer at home to northern rivals HSV, who ended the game with nine men.