LibreOffice prints in wrong orientation (Epson SC P600 on Fedora Linux 42)

I have an Epson SC P600 printer using the Gutenprint driver in CUPS. The printer works fine, for example when printing a pdf from Firefox. However, it behaves weird when printing from a LibreOffice document. I tried the flatpak and the version from the Fedora Linux repos and whatever i configure, the printer spits out the page in the wrong orientation (just like it would assume that you turn the paper by 90 degrees when inserting it in the printer). I’ve checked all the relevant settings (page layout, set correct orientation in the printing dialogue and so on, they match the printing settings) and the print preview looks alright, just the printed out page doesn’t match it