Out of the blue, gas pedal to the floor, car loses speed,emission light on, why? on 2008 Audi A3

Car loses power even down gas pedal is at very bottom, turned off car then back on and the emission light comes on. Any suggestions on what might be and cost to repair?

1 answer
SCAN CODES AND POST SO WE CAN ADV