BERLIN—Germany’s Green Party wants to overhaul the economic, foreign and climate policies of the continent’s largest economy in a political realignment that could have a profound impact on the European Union and potentially harden Germany’s stance toward China and Russia.