

IANAL, but I’m pretty sure it’s only vandalism if you actually break stuff. So as long as you’re not breaking their merchandise trying to balance Californian wine bottles upside down, it should be fine.
You can, of course, be asked to stop and get thrown out if you don‘t comply. It’s their store, their rules, after all. But I don‘t think most of the staff would care enough to even talk to you. I’d recommend just being subtle and not spending hours going from shelf to shelf, flipping stuff over.
Graffiti is only legally vandalism in Germany if it’s not temporary, though. The relevant German law should be Sachbeschädigung (§303 StGB). In this case, specifically section 2:
which translates to
If there aren’t any other special laws or something (again, IANAL), this should also make flipping merchandise over legal as well, as long as you’re not breaking anything.