Germany court rules wife of mother not automatically child’s legal parent