Originally a settlement beneath a castle, documented in writing in 1249, influenced by German immigrants. Coat of arms from the 15th century, with a motif connected with the name of the town.