As autos and heavy manufacturing falter, Berlin is steering factories, workers and capital toward rearming Europe.