Hoffenheim came from behind to chalk up a fourth straight Bundesliga win and end RB Leipzig's eight-game unbeaten run.