\documentclass[a4paper,12pt,oneside]{scrreport}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[scaled]{helvet}
\usepackage{times}
\usepackage{subfiles}
\usepackage[english]{babel}
\usepackage[includeheadfoot,left=3.4cm,right=2.4cm,bottom=1.5cm,top=1.7cm]{geometry}
\usepackage{graphicx}
\usepackage{microtype}
\usepackage{setspace}
\usepackage{fancyhdr}
\usepackage[hidelinks]{hyperref}
\usepackage{xcolor}
\usepackage{minted}
\usepackage{listings}
\usepackage{csquotes}
\usepackage{xr}
\usepackage[acronym]{glossaries}
\usepackage{lastpage}

\glsenablehyper

\setlength{\marginparwidth}{2cm}
\setlength{\parindent}{0pt}
\setlength{\parskip}{0.5em}

\usepackage{todonotes}

\fancypagestyle{frontmatter}{%
    \fancyhead{}
    \fancyfoot{}
    \fancyfoot[C]{\thepage}
    \renewcommand{\headrulewidth}{0pt}
    \renewcommand{\footrulewidth}{0pt}
}

\definecolor{light-gray}{gray}{0.95}

\RedeclareSectionCommand[beforeskip=0.5cm,afterskip=1.5cm]{chapter}
\addtokomafont{chapter}{\normalfont\sffamily\huge}
\addtokomafont{section}{\normalfont\sffamily\Large}
\addtokomafont{subsection}{\normalfont\sffamily\large}

\usepackage[backend=biber,style=ieee,urldate=iso,date=iso,seconds=true]{biblatex}

\addbibresource{bibliography/references.bib}

\hypersetup{
    linkcolor=black,
    urlcolor=black,
    citecolor=black,
    breaklinks=true,
    colorlinks=true,
    frenchlinks=true,
    linktoc = all,
    pdftitle = {Stateful Web Tracking: Techniques and Countermeasures},
    pdfauthor = {Tobias Eidelpes}
}

\pagestyle{fancy}

\renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\arabic{chapter}.\arabic{section}.\ #1}}
\renewcommand	{\headrulewidth}{0.4pt} % unterdruecken der Linie
\renewcommand	{\footrulewidth}{0.4pt} % unterdruecken der Linie

\fancyhead{}

\fancyhead[L]{\leftmark}
\fancyhead[R]{\rightmark}

\fancyfoot{}
\fancyfoot[L]{Stateful Web Tracking: Techniques and Countermeasures}
\fancyfoot[R]{\thepage \ / \pageref{LastPage}}

\fancypagestyle{plain}{}

\graphicspath{{figures/}{../figures/}}

\setstretch{1.1}

\makeglossaries

\begin{document}

    \input{abbrev/acronym.tex}

    \pagenumbering{roman}

    \subfile{chapters/abstract-de}
    \thispagestyle{frontmatter}

    \subfile{chapters/abstract-en}
    \thispagestyle{frontmatter}

    \tableofcontents
    \thispagestyle{frontmatter}

    \listoffigures
    \thispagestyle{frontmatter}

    \listoflistings
    \thispagestyle{frontmatter}

    \printglossaries
    \thispagestyle{frontmatter}

    \subfile{chapters/introduction}

    \pagenumbering{arabic}

    \subfile{chapters/methods}

    \subfile{chapters/defences}

    \subfile{chapters/implications}

    \subfile{chapters/developments}

    \subfile{chapters/conclusion}

    \printbibliography

\end{document}
