Germany – German equivalent of the French Loire Valley?

I am planning a trip to the Loire Valley, but I was wondering if there was a similar place in Germany.

Great concentration of castles and views in a relatively small area.

Another question: if I end up going to France, what is the good central city in the Loire Valley? can you stay in castles too?

Thank you.