Bayern Munich were held to a 1-1 draw by Hoffenheim thanks to a brilliant free kick from Andrej Kramarić.