Interplay of electronic and structural degrees of freedom in YbRu2Ge2