TP 563 then EC 3876 at Lisbon
Hamburg → Lisbon → Milan
Timetable, Lisbon time
19:45TP 563 from Hamburg at the gate
19:15EC 3876 to Milan leaves the gate
23 h 30 apart on the timetable, overnight
EC 3876 leaves 23 h 30 after TP 563 arrives on the timetable: more than half a day, so not a connection we count.