%
\usemodule[visual]
\setuplayout[
    location=doublesided,
    width=12cm,
    rightmargindistance=0.5cm,
    rightmargin=5cm]

\setuppagenumbering[alternative=doublesided]
\setupmargindata[inmargin][location=outer,stack=continue]
\setupmargindata[inouter][location=outer,stack=continue]

\define\PlaceFootnote
  {\inmargin{\vtop{\placelocalnotes[footnote][before=,after=]}}}
\def\FNo#1{{\ss\tfx #1\crlf}} % Abstand geht nicht weg!?

\setupnote[footnote]
  [location=text,
   bodyfont=,
   indenting=no,
   before={\noindent},
   next=\PlaceFootnote]
\setupnotation[footnote][
	way=bychapter,
	align=flushleft,
    style={\ss\tfx},
    indenting=no,
    location=serried,
    alternative=serried,
    width=broad,
    numbercommand=\FNo,
] % Fußnotentext
\setuptexttexts[margin][]
    [{\framed[
      align={right,bottom},
      frame=off,
      height=\textheight,
      width=\rightmarginwidth]{%
      \strut\vfill\placenotes[footnote]}}]

\starttext

\dorecurse{2}{
  \startchapter[title={C \fakewords{2}{10}}]

    \dorecurse{10}{
    \startsection[title={S \fakewords{1}{10} \recurselevel}]
      \fakewords{10}{100})\footnote{F \fakewords{3}{50}}
      \fakewords{10}{100}\footnote{F \fakewords{3}{50}}
      \fakewords{10}{100}

    \stopsection}

  \stopchapter}

\stoptext
