FR 2527 then IB 533 at Madrid
Berlin → Madrid → Lisbon
Timetable, Madrid time
23:10FR 2527 from Berlin at the gate
15:40IB 533 to Lisbon leaves the gate
16 h 30 apart on the timetable, overnight
IB 533 leaves 16 h 30 after FR 2527 arrives on the timetable: more than half a day, so not a connection we count.