FR 2508 then FR 3080 at Barcelona
Cologne → Barcelona → Málaga
Timetable, Barcelona time
21:45FR 2508 from Cologne at the gate
20:55FR 3080 to Málaga leaves the gate
23 h 10 apart on the timetable, overnight
FR 3080 leaves 23 h 10 after FR 2508 arrives on the timetable: more than half a day, so not a connection we count.