Germany aims to abandon fossil fuels by 2050 and generate 100% of its electricity from renewable energy sources.