FR 8385 then FR 1681 at Barcelona
Budapest → Barcelona → Hahn
Timetable, Barcelona time
22:40FR 8385 from Budapest at the gate
19:35FR 1681 to Hahn leaves the gate
20 h 55 apart on the timetable, overnight
FR 1681 leaves 20 h 55 after FR 8385 arrives on the timetable: more than half a day, so not a connection we count.