I previously provided some specific feedback on this itinerary - see my comments on your other thread.
4 days is not too much for the Rhine/Mosel region. As Pat has suggested, Bacharach is not the best base for a 4-night stay. I entirely agree with Pat's suggestion that you stay in Boppard instead where you will have a much wider choice of hotels (including some with river views) and restaurants as well as the Rhines's coolest chairlift ride. Boppard's innkeepers will provide you a Guest Ticket for free train travel in this area: https://www.boppard-tourismus.de/en/accommodation/
Munich > Rothenburg > Munich on Day 20 is not a doable day trip. You should instead move to Nürnberg on Day 20. Then do your day trip to Rothenburg from Nürnberg on Day 21 or 22. You can use the cheap Tagesticket Plus to get there and back from N'berg.
https://www.vgn.de/en/tickets/all-day-ticket-plus/
Baden-Baden is about casinos and spa treatments. It is too far north to use as a base for touring the Black Forest. I suggest you book Nights 5-6 in GENGENBACH instead, an old walled town like Rothenburg. (Or stay in Baden Baden if you prefer the gambling and the spa stuff.) Yes, make a stop in Heidelberg for a few hours on your way to Gengenbach. I'd actually add one night to Gengenbach if possible. Gengenbach is one of the Black Forest Towns which issues a free Guest Ticket for free train travel all around the Black Forest.
https://www.youtube.com/watch?v=KkgzMXQ7blQ
https://bw.tourismusnetzwerk.info/wp-content/uploads/2019/05/KONUS-Flyer-PDF-Download_GB.pdf
8 Alps - Lake Constance
9 Alps - Lake Constance
10 Alps - Lake Constance
I have no idea what this part is about. or what you plan to do there. There are things you can do there, but what do you have in mind? Bicycling? It's nice and flat there for scenic biking around the lake. Lake Constance is not in the Alps. If you want to visit the Swiss Alps, it's best to continue from Freiburg south into Switzerland through Basel and on to the Bernese Oberland (Bern/Interlaken/Lauterbrunnen etc.) where the Alps are truly spectacular.