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