Freiburg came from behind in the second half and scored a late winner to consolidate third place in the standings.