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