Mainz came from a goal down stun Bayern Munich 3-1, giving Borussia Dortmund the chance to go top of the Bundesliga.