FR 5044 then FR 1025 at Dublin
Hamburg → Dublin → Budapest
Timetable, Dublin time
11:30FR 5044 from Hamburg at the gate
06:10FR 1025 to Budapest leaves the gate
18 h 40 apart on the timetable, overnight
FR 1025 leaves 18 h 40 after FR 5044 arrives on the timetable: more than half a day, so not a connection we count.