Germany is walking a tightrope between its security and economic interests as China has become Berlin's most important trading partner.