Germany released a roadmap to end coal, oil and natural gas use by 2045 at the latest, linking its climate strategy to reducing dependence on imported energy.