There currently is one option to travel by night train from Celje (Slovenia) to Stuttgart (Germany), taking approximately 13 hours: Namely the EN 414 operated by HŽPP.
HŽPP (Hrvatske željeznice putnički prijevoz) is Croatia's national passenger railway operator, running domestic and international train services.