There currently is one option to travel by night train from Stuttgart (Germany) to Spittal an der Drau (Austria), taking between approximately 9 and 10 hours: Namely the EN 40237 operated by HŽPP.
HŽPP (Hrvatske željeznice putnički prijevoz) is Croatia's national passenger railway operator, running domestic and international train services.