FR 12 then FR 180 at Vienna
Barcelona → Vienna → Thessaloniki
Timetable, Vienna time
22:40FR 12 from Barcelona at the gate
17:50FR 180 to Thessaloniki leaves the gate
19 h 10 apart on the timetable, overnight
FR 180 leaves 19 h 10 after FR 12 arrives on the timetable: more than half a day, so not a connection we count.