\documentclass[11pt,english,a4paper,chapterprefix]{scrartcl}
\usepackage[small,bf,hang]{caption}
\usepackage[english]{babel}
\usepackage{wrapfig}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{setspace}
\usepackage{tocloft}
\usepackage{listing}
\usepackage{multirow}
\usepackage{fancyhdr}
\usepackage{subfig}
\usepackage{url}
\usepackage[hidelinks]{hyperref}
\usepackage[nameinlink,capitalize,noabbrev]{cleveref}
\usepackage{acro}
\usepackage{lipsum}
\usepackage{siunitx}
\usepackage{url}
\usepackage[urldate=long,sorting=none,maxbibnames=5]{biblatex}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\usepackage{bytefield}
\usepackage{mathdots}
\usepackage{tabularray}
\usepackage{makecell}
\usepackage{minted}
\usepackage{lscape}
\usepackage{float}
\usepackage[l3]{csvsimple}

% Configurations
\usetikzlibrary{matrix}
\usetikzlibrary{automata}
\usetikzlibrary{fit}
\usetikzlibrary{positioning}
\usepgfplotslibrary[groupplots]

\addbibresource{doc.bib}

\setlength\textheight{24cm}
\setkomafont{paragraph}{\footnotesize}
\numberwithin{table}{section}
\numberwithin{listing}{section}
\numberwithin{equation}{section}
\numberwithin{figure}{section}
\sisetup{group-separator = {,}, group-minimum-digits = 4}

% Custom colors
\definecolor{verylightgray}{gray}{0.85}
\definecolor{_darkblue}{RGB}{68, 114, 196}
\definecolor{_blue}{RGB}{91, 155, 213}
\definecolor{_green}{RGB}{112, 173, 71}
\definecolor{_orange}{RGB}{237, 125, 49}
\definecolor{_yellow}{RGB}{255, 192, 0}

% Penalties
\clubpenalty = 10000
\widowpenalty = 10000
\displaywidowpenalty = 10000
\emergencystretch = 1em
\parindent 0pt

\acsetup{make-links=true}
\input{acronyms}

% --- Preamble End ---
\begin{document}

\pagenumbering{Roman}

% Title page
\include{titlepage}
\include{statement}
\include{abstract}

% Table of contents
\tableofcontents
\newpage

\pagestyle{fancy}
\pagenumbering{arabic}
\setcounter{page}{1}

% Chapters
\include{chapters/introduction}
\include{chapters/dram}
\include{chapters/pim}
\include{chapters/vp}
\include{chapters/implementation}
\include{chapters/results}
\include{chapters/conclusion}

% Appendix
\appendix
\include{appendix}

% Listings and References
\pagestyle{plain}

% List of Figures
\vspace{-20pt}
\begingroup
    \phantomsection
    \addcontentsline{toc}{section}{List of Figures}
    \setlength{\cftparskip}{10pt}
    \listoffigures 
\endgroup
\newpage
\clearpage

% List of Tables
\begingroup
    \phantomsection
    \addcontentsline{toc}{section}{List of Tables}
    \setlength{\cftparskip}{10pt}
    \listoftables
\endgroup
\newpage
\clearpage

% %List of Listings
% %\renewcommand{\lstlistlistingname}{Verzeichnis der Quellcodes}
\begingroup
    \phantomsection
    \addcontentsline{toc}{section}{List of Listings}
      \setlength{\itemsep}{20pt}
  \setlength{\parskip}{10pt}
    \renewcommand{\listlistingname}{List of Listings}
    \listoflistings 
\endgroup
\newpage
\clearpage

% List of Abbreviations
% TODO näher beieinander und serifen für abkürzungen
\begingroup
    \phantomsection
    \addcontentsline{toc}{section}{List of Abbreviations}
    \printacronyms[name=List of Abbreviations,pages={display=all}]
    % \setlength{\nomitemsep}{8pt}
\endgroup
\newpage
\clearpage

% References
\phantomsection
\addcontentsline{toc}{section}{References}
\printbibliography

\end{document}
