Second division Hoffenheim claimed the scalp of Bundesliga strugglers Hansa Rostock with a comfortable 2-1 win.