You can extend your residence permit for the purpose of working as a freelancer if you want to continue your freelance work in Germany and meet certain requirements for this.

Unfortunately this specification of service has not yet been completely translated.