% Preamble
% !IMPORTANT! Do not change the font size here, but after the \begin{document} markup
\documentclass[12pt,a4paper,oneside,listof=totoc,abstract=on,parskip=half]{scrreprt}

\include{customization/text-variables}

% Packages
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage[autostyle=true,german=quotes]{csquotes}
\usepackage{refcheck}
\usepackage{float}
\usepackage{fontspec} % for using own font
\usepackage{multicol}
\usepackage[includeheadfoot,left=40mm,right=25mm,top=25mm,bottom=25mm,footskip=10mm]{geometry}
\usepackage[singlespacing=true]{scrlayer-scrpage} % for header / footer
\usepackage{graphicx}
\usepackage[hidelinks,pdftitle={\paperName},pdfauthor={\author},pdfsubject={\title},pdfpagemode=UseOutlines,pdfdisplaydoctitle=true,pdflang=german]{hyperref}
\usepackage{setspace}
\usepackage{xcolor}
\usepackage[acronym,toc]{glossaries}
\usepackage{listings}
\usepackage{anyfontsize}

\usepackage[backend=biber,bibwarn=true,bibencoding=utf8,style=numeric-comp,sorting=none]{biblatex}
\addbibresource{main.bib}

\include{customization/variables}
\include{customization/style}
\include{includes/acronyms}

% Document
\begin{document}
    \setcounter{secnumdepth}{3}
    \setcounter{tocdepth}{3}

    \fontsize{13pt}{13pt}\selectfont
    \pagenumbering{arabic}

    \include{includes/cover}

    \cleardoublepage
    \include{includes/statementofauthorship}

    \cleardoublepage
    \include{includes/abstract}


    % Inhaltsverzeichnis
    \cleardoublepage
    \KOMAoptions{toc=chapterentrydotfill}
    \tableofcontents


    % Abkürzungsverzeichnis
    \cleardoublepage
    \printnoidxglossary[type=acronym,title=Abkürzungsverzeichnis,nonumberlist]


    % Abbildungsverzeichnis
    \cleardoublepage
    \listoffigures


    % Quellcodeverzeichnis
    \cleardoublepage
    \renewcommand\lstlistlistingname{Quellcodeverzeichnis}
    \lstlistoflistings


    % Kapitel
    \cleardoublepage
    \input{content/01-00-chapter}
    \include{content/02-00-chapter}
    \include{content/03-00-chapter}

    % Literatur
    \cleardoublepage
    \printbibliography[heading=bibintoc,title=Literaturverzeichnis]
\end{document}
