You can apply online for a settlement permit (permanent residence permit) that is unlimited in terms of time and territory, for example after holding a temporary residence permit for several years (Section 9 of the Residence Act and other special regulations).
Editorially responsible for prodecure description: Landratsamt Pfaffenhofen a.d.Ilm