Borussia Dortmund have reignited a late charge for the European places with a 3-1 home win which damaged Mainz's hopes of Champions League qualification.