Trifels Castle in Rhineland-Palatinate by EuroTourData
Trifels Castle is the restored ruins of the rock castle, built around 1073 for nobles of the House of Reginbodonen and in 1113 became the imperial castle.

Image copyright info
© Creative Commons: Trifels - aus der Hubschrauberperspektive, author R.Wallenstein. License: CC BY-SA 2.0 DE. Cropped from original.
Trifels Castle history
The most famous prisoner at Triefels Castle was the King Richard I of England, known as Richard the Lionheart, who was captured in 1192 on his way home from the Third Crusade at Erdberg near Vienna and handed over to Henry VI, Holy Roman Emperor. Also in the castle was imprisoned between 1206 and 1207 Archbishop of Cologne Bruno IV von Sayn. In 1602, the castle was largely destroyed by fire after being struck by lightning. In the first half of the Thirty Years' War, the ruins of the castle served as a refuge until they were finally abandoned in 1635 after an outbreak of the plague.
Trifels castle is owned by the Rhineland-Palatinate General Directorate for Cultural Heritage (in German Generaldirektion Kulturelles Erbe Rheinland-Pfalz).
Source
The article Reichsburg Trifels of German Wikipedia.