Monitoring elementary molecular events with X-ray and quantum light