I want to know the answer to the following question:
What happened to the kingdom of Hanover in 1866?
All the background I'm provided with is that "In 1837, the personal union of the United Kingdom and Hanover ended because William IV's heir in the United Kingdom was female (Queen Victoria).". Is that enough to answer the question?
Answer: no