I highly doubt that there's exit taxation, but in case there is one, you should contact a tax consultant in Germany which also checks the taxation rules in your home country. It can be very complicated sometimes. But Germany won't care in what country you were when buying BTC. Your home country could︀ care, but they can't know you made your money with selling your crypto.