The Blue Card allows you got get permanent residency in 21 months if you speak basic German (B1) regardless of where you studied. And in any case you'll still get permanent residency after 33 months with A1 German
Berlin doesn't give permanent residency per se but Germany does. You can apply for permanent residency with Berlin as your home but it'd be valid around all of Germany.