Learn the lesson from the UK, who did privatisation first* and have witnessed things much worse than the current state of German trains (which are still *excellent* in comparison, and I say that as one who moved from the UK to Germany in 2018).
* or "harder", to the extent that German rail privatisation never went as far as in the UK. I understand there's a constitutional requirement here in Germany for government majority ownership of the rail system — I wish it were so in the UK