The AfD party is the projected winner of a German state election, the first time a right-wing party may take power since World War II.