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