FR 5044 then FR 814 at Dublin
Hamburg → Dublin → Edinburgh
Timetable, Dublin time
17:45FR 5044 from Hamburg at the gate
16:05FR 814 to Edinburgh leaves the gate
22 h 20 apart on the timetable, overnight
FR 814 leaves 22 h 20 after FR 5044 arrives on the timetable: more than half a day, so not a connection we count.