The hometown of Mercedes-Benz and Porsche is bracing for a ban on diesel cars starting as soon as January 1.