Hopefully you'll get some firsthand info about this, but I'd never heard of the German quiet hours law so I did a little search. Looks like they're pretty serious about it! This website had what appears to be fairly complete information about it (https://germanyhandbook.com/quiet-hours-and-sundays-in-germany-ruhezeit/), but the most relevant bit for you is probably:
While high-street retail shuts down completely, the tourism,
entertainment, and hospitality sectors remain lively on Sundays. In
fact, Sunday is one of the busiest days for cultural activities across
Germany.
Museums, art galleries, castles, thermal spas, and theaters open their
doors to visitors every weekend. Restaurants, cafés, traditional beer
gardens, and bakeries also operate, offering ideal spots to relax
after a morning of sightseeing.
I've only been in Germany once, on a river cruise, and our only Sunday was in Nuremberg. I don't recall noticing a lack of open establishments, at least not in the Hauptmarkt. I clearly remember the delicious lebkucken I bought from a bakery there (even though it was 12 years ago!). Given how tourist-driven Rothenburg ob Der Tauber is, I would think you'd find plenty open.