Unfortunately, German lenders often do not offer mortgage loans to buy properties based in foreign countries. This is because the mortgage is secured by the Grundschuld or security, which is a national system for the land registration. Legally there would be a way to do it but most banks hesitate.
Use Hypofriend's affordability calculator to see what you can afford based on your personal situation.
Speak to an expert