Trains in Germany are perfectly safe, both in terms of engineering and crime rate. As with anywhere in Europe, there could be the odd pickpocket in the busier stations, so just be sure to keep your valuable belongings safely tucked away as usual.