FR 12 then FR 182 at Vienna
Barcelona → Vienna → Sofia
Timetable, Vienna time
22:40FR 12 from Barcelona at the gate
18:55FR 182 to Sofia leaves the gate
20 h 15 apart on the timetable, overnight
FR 182 leaves 20 h 15 after FR 12 arrives on the timetable: more than half a day, so not a connection we count.