> The optimal solution is just to leave Germany

Just go to one of them Baltic states. They actually have a functioning electronic ids and other necessary infrastructure.

There’s no reason to live in Germany if you’re working with international clients.

Malta and Cyprus offer much better quality of life and also significantly less taxes .

Also Polands IP Box(5% tax rate) regime can be very interesting to software engineers right across the border.