Leicester City striker Andrej Kramaric has left Leicester City to join 1899 Hoffenheim on loan until the end of the season.