IB 2241 then IB 787 at Madrid
Strasbourg → Madrid → Berlin
Timetable, Madrid time
20:25IB 2241 from Strasbourg at the gatealso VY 5641, QR 6525
20:05IB 787 to Berlin leaves the gatealso LA 1540, VY 5167
23 h 40 apart on the timetable, overnight
IB 787 leaves 23 h 40 after IB 2241 arrives on the timetable: more than half a day, so not a connection we count.