FR 2527 then FR 2389 at Madrid
Berlin → Madrid → Tetouan
Timetable, Madrid time
23:10FR 2527 from Berlin at the gate
13:15FR 2389 to Tetouan leaves the gate
14 h 05 apart on the timetable, overnight
FR 2389 leaves 14 h 05 after FR 2527 arrives on the timetable: more than half a day, so not a connection we count.