it was a german state during the weimar republic headed by a minister president