Dortmund survived the collapse of its coal and steel industries, which helped the city avoid the working-class alienation that has fed right-wing parties elsewhere.