FR 2761 then IB 785 at Madrid
Bari → Madrid → Berlin
Timetable, Madrid time
18:45FR 2761 from Bari at the gate
15:55IB 785 to Berlin leaves the gatealso VY 5166, AA 8738
21 h 10 apart on the timetable, overnight
IB 785 leaves 21 h 10 after FR 2761 arrives on the timetable: more than half a day, so not a connection we count.