Nazi Germanys highest-ranking official after Adolf Hitler
Original #2 Rudolph Hess (had to be thrown under the bus when his attempts to save British and German lives failed at the hands of Churchill.
Second #2 - Hermann Goering, until late April, 1945.
Final #2 - Karl Dönitz, who finally succeeded Hitler.
Yeah that was my understanding too. In the last days in the bunker both Goering and Himmler were seen as betraying Hitler and he ordered them executed but the Nazi state was crumbling by that time. That opened it up for Karl Donitz to wrap things up and sign the surrender documents.