Interplay of superconductivity and structural phase transition in the clathrate Ba6Ge25