According to the legal situation before June 27, 2024, you generally lost your German citizenship if you naturalized in another country. This could only be prevented by obtaining a retention permit. Since the new Citizenship Act came into force on June 27, 2024, this is no longer the case. Germany now generally allows multiple nationalities. You can find more information on this on the website of the Federal Office of Administration.