I'd like to extrude a profile along the edge of an area. Furthermore, this profile should always stay in contact with the edges adjacent area.
Imagine a ribbon that twists while hanging. The resulting area(s) are where my profile should extrude along with.

Simplified example:

Start of profile (marked in yellow)
[![][1]][1]


Path to extrude along (marked in orange)
[![][2]][2]


Edge of profile (marked in white) which is in constant contact with the paths adjacent areas
[![enter image description here][3]][3]


End of profile (marked in yellow)
[![enter image description here][4]][4]


  [1]: https://i.sstatic.net/ixIF8.png
  [2]: https://i.sstatic.net/F0jC7.png
  [3]: https://i.sstatic.net/ZsE4S.png
  [4]: https://i.sstatic.net/DHwoI.png

Thx in advance for every info on how to solve this problem.