TP 561 then FR 9441 at Lisbon
Hamburg → Lisbon → Madrid
Timetable, Lisbon time
15:40TP 561 from Hamburg at the gate
13:15FR 9441 to Madrid leaves the gate
21 h 35 apart on the timetable, overnight
FR 9441 leaves 21 h 35 after TP 561 arrives on the timetable: more than half a day, so not a connection we count.