Germany logged a record trade surplus with the United States last year, data showed Friday, news that could stoke tensions with US President Donald Trump as he threatens the EU with tariffs.