If you really want to move to Switzerland, be a taxpayer for 7 years in Germany, learn German, stay out of trouble and unemployment, and you can apply to be a German citizen. After that, moving to Switzerland is easy: show the authorities your job contract with a Swiss company, they're obliged to give you a residency permit (at least that's the arrangement they have with the EU at the moment)
If you don't have a familial connection, you need to find a job, and the company will need to prove they couldn't find a local Swiss resident/citizen that could have done the same job, so it's a bit harder to get in than Germany or other areas of the EU.
Edit: I'm on a multi-year residency visa. I'll need to renew once more before I'm eligible for citizenship (after ~5 years).
https://www.thelocal.ch/20180604/brit-denied-swiss-citizensh...
So some cantons might only require a basic understanding while others grill you like this. It'll be a few years before I discover how it is in St. Gallen. :)