Use alpha of one texture node to mask another texture node
I think I got it:

I used a mix RGB node and put my texture1 into the upper slot and a transparent color into the lower slot. Then I put the alpha of texture2 into the "fac" of the mix node.