Bayern Munich extended their lead at the top of the German Bundesliga with a 3-0 win at Hamburg as Schalke lost to Hoffenheim.