An implantable medical device including at least one elongate electrical line with a first electrical component as a functional conductor, and at least one second electrical component with an electrical length. The first electrical component includes a proximal end and a distal end, wherein the distal side is in electrical contact with tissue or blood. The first electrical component is in electrical contact with the at least one second electrical component, and wherein the electrical length of the at least one second component corresponds to at least a tenth of a wavelength (&lambda/10) of electromagnetic waves in a radiofrequency range.