This site is absolutely the best for planning trains in Europe. While it doesn’t always allow you to book every route, it’s great for planning and determining the cheapest routes/paths to take.