The high-energy component of the ISM - Cosmic rays and gamma rays