Bayer Leverkusen were eliminated from the DFB Pokal, losing 2-1 on the road at Bundesliga 2 side Heidenheim.