Germany’s renewable energy push has forced $30 billion in losses on its biggest utilities