This is the main reason why I just use the US ANSI layout in germany, together with KbdKaz on Windows for umlauts and a lot of other extra characters and accennts: https://www.omega-com.pl/kbdkaz.htm
For a while the pile of crap that is Windows 10 got very drunk about keyboard layouts (maybe in combination with connecting to a remote desktop to a computer with a different set of layouts). Being in Switzerland with Swiss German, French and Italian layouts, and having just German and English on the client computer, it would lie to me and claim the layout is English when it's German, etc, etc, and the control panel would even lose layouts...
A cross-platform alternative is to use the EurKey layout (https://eurkey.steffen.bruentjen.eu/layout.html), allowing you to have the US keyboard layout by default, while using modifier keys for various diacritics common in European languages with Latin script.
Fun fact: amayon.de redirects to amazon.de