\newpage

\pagenumbering{Roman}

\setcounter{page}{1}

\chapter*{Anhang Inhaltsverzeichnis}
\addcontentsline{toc}{chapter}{Anhang Inhaltsverzeichnis}

\stopcontents[main]

\startcontents[appendix]

\printcontents[appendix]{}{-1}{}

\clearpage

\stopcontents[appendix]

\resumecontents[main]

\addcontentsline{toc}{chapter}{Anhang}

\stopcontents[main]

\resumecontents[appendix]

\part*{Anhang}

\setcounter{chapter}{0}
\renewcommand*{\theHsection}{chX.\the\value{chapter}} %so the chaptercounter works and hyperref is happy

\normalsize

\raggedright