@ml in many eu countries a post phd level job is among the "qualified" jobs and if you can hold it for a number of years (5-10) and pass a bunch of tests you can qualify for citizenship. But both finding a job after the phd (before your visa runs out), and actually staying in one county/job for long enough, are highly uncertain things esp with families. Some counties also have very very long timelines after qualifying.