The German newspaper "Westdeutsche Allgemeine Zeitung" made a map of all railway lines in Germany with a time slider. You can view the map at any year between 1835 and 2022. Among other sources, OpenRailwayMap was used.
https://interaktiv.waz.de/bahn-schienennetz-deutschland-1835-bis-heute/ (German)