Marvin Pieringer's first-half penalty gave Heidenheim a boost in their battle to beat the drop by moving them up to 16th.