Andrej Kramarić scored two penalties, including one deep into stoppage time, to reignite Hoffenheim's hopes of a top-four finish.