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