Germany fails to gain seat on UN Security Council