Robert Lewandowski, Leon Goretzka and Franck Ribery were on target as Bayern Munich took another step towards their seventh consecutive Bundesliga title.