As the official documentation does not give any hints on this:
I am wondering how to serve the correct localization of my website according to the user’s language preference and/or browser/OS language with Craft.
From other platforms/plugins I know that this is done through user agent detection, e.g. if the browser/OS is English you’ll get the EN, if it’s Spanish you’ll get the ES version of the content, etc.
The project I am working on has DE as the primary locale and the language switcher shall only appear subtly within the footer. Non-German visitors should automatically get the EN version without having to interact with any interface element.
How can I implement this?