Naturalization is often the best, most logical path forward for those without the necessary family ties or funds. It involves living legally in the country for a set number of years, demonstrating familiarity with the language, and sometimes passing a test on history, culture, and the political system.
Germany has no equivalent of the US' specialized Immigration and Customs Enforcement (ICE) agency, though that would change if the Bavarian branch of the far-right Alternative for Germany (AfD) had its way. Apparently directly inspired by the actions of ICE under President Donald Trump's administration, an internal paper from the far-right party seen by the German newspaper taz this week proposed that a new authority be created within the Bavarian state police named the Asyl-, Fahndungs- und Abschiebegruppe (AFA), or the "Asylum, Tracing and Deportation group."
The memo was filed as a part of documents submitted in a federal court case tied to refugees who were arrested in Minnesota. In it, USCIS Director Joseph Edlow and ICE acting Director Todd Lyons direct their agencies to "detain and inspect" refugees who do not "voluntarily return to DHS custody for inspection and examination" to be a legal permanent resident at the one-year mark of being in the country.