In EASA land all of your records - for your licence and for your medical certificate - have to be held by the same country.
Where the medical examinations and skill tests take place is up to the authorised examiners (medical and flying respectively).
I believe there can be difficulties with transferring away from Germany (and maybe Austria) to another State because their national law puts restrictions on transferring medical information out of the country.