Yes, its not legal because you are tax resident in Germany. But they will never know so it doesnt matter, you will not be able to move money to Germany tho.
You can save money i Dubai for years then move there for real when you want to legitimise the money.
That would work, and germany would 99% never find out about it. As long as you are a UAE resident, no crs applies.
To be 100% legit, you need to move for sure though.
Dont mix your German company and Dubai company. If you want it to be secret.
Question is if this is ever controlled at all.
You can just claim that your customers are from non-EU countries.
I think its rare that a country asks a foreign company for VAT.
So probably many people doesnt pay any VAT at all.