So I firstly worked with the case where $n$ and $m$ are corpime and I found out that there is a nice solution using the Chinese remainder theorem.
Now I want to proof the following relation, this time for arbitrary numbers $$\phi(m \cdot n) = \frac{\gcd(m,n)\cdot\phi(m)\cdot\phi(n)}{\phi(\gcd(m,n))}.$$
However, the structure of the right-hand side is completely unclear to me so far and any hint would be highly appreciated.