Shaffhausen, along the German border has a beautifully preserved medieval center.