Joshua Kimmich's wondergoal gave Bayern Munich the points in a keenly contested Klassiker tie away to Borussia Dortmund.