Mainz claimed their first home win of the season, aided by Emre Can's early red card for Borussia Dortmund, whose poor away form continues.