Rafael Lubach’s strike on the stroke of half-time earned Nuremberg a crucial win over Magdeburg, who slipped into the play-off place as a result.