Three years of temporary residence
Three years of continuous residence on an approved temporary permit. The ground does not matter and you may change it along the way: employment, your own company, property, and family all count toward the same total.