Germany is working on maintaining a legal channel for trade with Iran, a government spokesman said on Monday, after Iran last week eased curbs on its nuclear program and threatened moves that might breach a 2015 international nuclear pact.