I only compare gross income because I work remotely. My healthcare costs are the same if I work for German client or US client. And German pay sucks.
I completely agree that overall salaries are lower in Germany even adjusted for cost of living but the insane price levels in SV compared to most parts of Germany skew that even more.
The situation is more severe in the UK where central London has similar cost of living as NYC or SV but salaries at a quarter of SV levels outside of finance.
German salaries are really attractive for Europe.
UK is also much better and the timezone is ~same. I've mostly worked with US, UK, CA, IR (subsidiary of US).
An easier way is to focus your skills and specialize in, say, scalability/search-engine/low-level/ml. There will be less jobs, (compared to js), but you will have more leverage.