Texture shows in viewport but NOT in render

Hi everyone,
I’m trying to make texture layers, similar to this tutorial https://www.youtube.com/watch?v=nSByASy15-4. The render shows only the first “layer” (on the screenshots i used just a color node, but i also get the same result with image texture, same in evee and cycles).
I’ve looked everywhere, but nobody seems to have this problem. What am I doing wrong?