FR 3040 then LH 1815 at Barcelona
Prague → Barcelona → Munich
Timetable, Barcelona time
22:40FR 3040 from Prague at the gate
18:20LH 1815 to Munich leaves the gate
19 h 40 apart on the timetable, overnight
LH 1815 leaves 19 h 40 after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.