IB 52 then LH 2603 at Madrid
Málaga → Madrid → Munich
Timetable, Madrid time
15:10IB 52 from Málaga at the gate
14:45LH 2603 to Munich leaves the gate
23 h 35 apart on the timetable, overnight
LH 2603 leaves 23 h 35 after IB 52 arrives on the timetable: more than half a day, so not a connection we count.