It's completely legal and the law you mentioned about IP routing and address ownership does not exist.
Imagine if any time someone was caught driving drunk, the registered owner of the car went to jail.
This was fixed in 2018 by adding a special exception to the law. Other countries had public wifi a decade earlier. Germany still doesn't have much.