Flag of Germany
When Heinrich XI, Prince Reuss of Greiz was appointed by Joseph II, Holy Roman Emperor to rule the then-new Principality of Reuss-Greiz on 12 May 1778, the flag adopted by the "Fürstentum Reuß-Greiz" was the first-ever appearance of the black-red-gold tricolour in its modern arrangement in any sovereign state within what today comprises Germany – the Reuss elder line that ruled the principality used a flag whose proportions were close to a "nearly square"-shape 4:5 hoist/fly ratio, instead of the modern German flag's 3:5 figure.
Flag of Hamburg
The civil flag shows a white castle with three towers on red background, which is used as a civil flag as a state flag for most purposes. (It was historically used as civil ensign as well.) The oldest seal with the castle is thought to date from 1241. The first flag featuring the current form was in the mid-16th century, although this was most probably a red field, a white escutcheon and red castle. After about 1623, the escutcheon began to be omitted, leaving a red castle on white or a white castle on red. It was only in 1751 that the white castle on red was decreed as the flag of Hamburg.