ÖBB (Austrian Federal Railways), who are slowly taking over night train service all over Europe, have single or double Deluxe cabins [1]. You can have your privacy and your own bathroom with shower. It can be pretty private and comfortable.
[1]: https://www.nightjet.com/en/komfortkategorien/schlafwagen