Have you read the Nazi law? It didn't just outlaw homosexuality like the United States did before Lawrence v. Texas, 539 U.S. 558 (2003). Some of the subsections are very similar to current laws.

https://www.ushmm.org/learn/students/learning-materials-and-resources/homosexuals-victims-of-the-nazi-era/paragraph-175