You can use https://karabiner-elements.pqrs.org/ to change that. It would either require writing your own complex modification, or maybe it's already somewhere in their public repo https://ke-complex-modifications.pqrs.org/?q=german
Other solution would be to use something like Keyboard Maestro.