Andrej Kramaric scored a superb free-kick to earn Hoffenheim a 1-1 draw at Bayern Munich, damaging the Bundesliga leaders' title charge while giving their own relegation hopes a much-needed shot in the arm.