No, this is completely in line with everything that the EU is all about. I'm not sure where you got the belief that Euro countries are not allowed to have internal trade deficits, it's inevitable in fact.
China is #1, the USA (all of it) is #2 and Germany (just Germany, not the EU) is #3. Have a look at their relative populations and appreciate that fully.