"Legal", "right/wrong", and "moral" are three different things. Sometimes they are all mutually exclusive.
And "ethical" is am indpendent fourth, depending upon whom wrote the code of ethics involved.
“”Legal”, “right/wrong”, and “moral” are three different things.”
If she was acting of her own free will, then we have to respect her desires, unless we are willing to say that a seventeen year old cannot make up her own mind about who to have sex with. The German government has decided that she can made that decision herself. Sure, ideally she would choose a handsome young man who was number one in his class and headed for medical school, but fathers apparently don’t get to choose in Germany. What if she was having sex with an eighteen year old heroin dealer? Is that better?