Thanks Thorsten and Jeremias for your comments.
But now I'm really lost.

Can anybody who understands this perhaps suggest a solution to this problem that is reasonable easy to implement and not a hack?

Best regards,
Ferdinand Soethe