Hoffenheim scored three second-half goals to inflict more misery on relegation-threatened Werder Bremen.