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