Combining density functional theory with macroscopic QED for quantum light-matter interactions in 2D materials