Germany was a republic with a constitution and elected leaders after 1918.
Kaiser Wilhelm II took power after Bismark, and abdicated at the end of the first war. Wilhelm died in 1941.
Bismarck unified Germany in the latter 1800's as a constitutional federation with suffrage and elected legislatures, I don't know the fine details except it was some form of confederation and is considered a constitutional monarchy with elected legislature.