Goals from Julian Brandt and Nico Schlotterbeck helped the hosts overcome Hoffenheim to consolidate third spot in the standings.