While the media focuses on China, Germany invests much more in the US. And if you summarize the investment in eastern europe, it is probably larger as well.
The current government has famously green policies: Shutting down nuclear plants and perhaps have a willingness to accept heavy industry leaving Germany. It is however a very unpopular government so I don't know if those policies will hold long term.