Jürgen Locadia's injury-time penalty gave Hoffenheim their fifth consecutive win with a 2-1 victory at Cologne.