Yes, in Germany this question is legally permissible — unlike in some US states. However, you are not obligated to answer truthfully. Strategically smarter: respond with your salary expectations instead of your current salary. Wording: 'I would prefer to discuss my expectations for this position — I am targeting X euros.'
Sources & Data
Want to know how well your CV matches your target role?
Can the employer ask about my current salary?
Can I still negotiate the salary after a job offer?
When am I entitled to a salary increase?
When should I bring up salary in the interview?
When and how do I bring up salary in the application process?