Felix Klaus scored at the death to earn Freiburg all three points at the MAGE Solar Stadium against Leverkusen.