My 2010 A6 Avant Le Mans had a really handy feature: the boot 12v cigar socket remained powered even with ignition off and doors locked (I believe the ECU would monitor battery drain in this instance).
Pretty sure it was standard. Interestingly, my C7 A6 doesn't have this feature. Check your boot socket if the A4 Avant is fitted with one.