There are many countries that are mostly democratic today, and which once were ruled by monarchs with strong powers, even though there has never been a monarch who was really "absolute" and all powerful.
Some of of those mostly democratic countries still have monarchs today who have little or no political power. Study the history of those countries to find the changes between largely nondemocratic rule by the monarch and largely democratic rule by representatives elected by (most or all) of the people. In some of those countries the process may have been gradual.
In countries where the process was gradual, you might find periods where the monarchs had enough power to satisfy your "real power" requirement and the government iswas democratic enough to satisfy ouryour "democracy" requirement.
https://en.wikipedia.org/wiki/List_of_current_monarchies[1]
https://en.wikipedia.org/wiki/List_of_current_constituent_monarchs[2]