Germany secured a 3-1 victory over Serbia in the UEFA Nations League, with F. Wirtz scoring the opening goal.