The first mention of the castle following the hilltop plateau with its irregular floor plan comes from a certificate of Stephen V dated in 1268.