What lepton pairs reveal about pions in the nuclear medium