it is illegal if you have the trademark you can use the Uniform Domain-Name Dispute-Resolution Policy to get it back
Their FAQ lists why you usually don't want to go for UDNDR when you can help it, though: https://www.denic.de/en/faqs/all-faq#code-106
ICANN's procedures are all nice and dandy if all three parties involved are in the USA, but when it comes to international disputes (in this case the Dutch company registering the domains and the German business being impersonated), things can get pretty complex and expensive real fast.