FR 3194 then FR 1681 at Barcelona
Riga → Barcelona → Hahn
Timetable, Barcelona time
23:45FR 3194 from Riga at the gate
19:35FR 1681 to Hahn leaves the gate
19 h 50 apart on the timetable, overnight
FR 1681 leaves 19 h 50 after FR 3194 arrives on the timetable: more than half a day, so not a connection we count.