FR 5316 then IB 777 at Madrid
Rome → Madrid → Hamburg
Timetable, Madrid time
23:40FR 5316 from Rome at the gate
19:45IB 777 to Hamburg leaves the gatealso LA 1697, VY 5126, AT 5906
20 h 05 apart on the timetable, overnight
IB 777 leaves 20 h 05 after FR 5316 arrives on the timetable: more than half a day, so not a connection we count.