IB 788 then FR 394 at Madrid
Berlin → Madrid → Ibiza
Timetable, Madrid time
10:15IB 788 from Berlin at the gatealso VY 5112, AA 8825
06:40FR 394 to Ibiza leaves the gate
20 h 25 apart on the timetable, overnight
FR 394 leaves 20 h 25 after IB 788 arrives on the timetable: more than half a day, so not a connection we count.