Andrej Kramaric and Ihlas Bebou were on target as Hoffenheim beat Schalke 2-0, preventing the Royal Blues from going top of the table.