both germany 's main political parties could end up the losers from an extraordinary legal decision to order a new state election in the city of hamburg , the second smallest of the country 's 16 lander .