Thank you for your response.
But there is no meaning in displaying the same product with different sizes on the shop page or the catalogue. Is it possible to have an option at the product variations (backend) to hide certain variations so that I will be able to hide the variations regarding the size and can display the ones based on color?