There currently is one option to travel by night train from Stuttgart (Germany) to Tatabánya (Hungary), taking between approximately 12 and 13 hours: Namely the EN 50237 operated by MÁV-Start.
MÁV-Start, Hungary's national passenger railway, operates domestic and cross-border trains throughout the region.