\documentclass[a4paper, fontsize=11pt]{scrartcl} 
    \KOMAoptions{listof=totoc, toc=sectionentrywithdots}

\usepackage[includeheadfoot]{geometry}
    \geometry{top = 3cm, hmargin = 2.5cm, bottom = 3.5cm}

\usepackage{polyglossia}
    \setdefaultlanguage{german}
\usepackage[onehalfspacing]{setspace}

%
% fonts 
%

\usepackage{emoji}
\usepackage{lmodern}

%
% header and footer
%

\usepackage{lastpage}
\usepackage{scrlayer-scrpage}
% style
    \setkomafont{pagehead}{\normalfont\sffamily\onehalfspacing}
    \setkomafont{pagefoot}{\normalfont\sffamily\onehalfspacing}
% rules
    \newcommand{\hfrulewidth}{0.5pt}
    \KOMAoptions{headsepline=\hfrulewidth, footsepline=\hfrulewidth}
% content
    \clearpairofpagestyles % removes pre-set page numbers
    \automark{subsection}
    %\ohead{\headmark}
    \ihead{\Autor}
    \cfoot{\pagemark \ von \pageref*{LastPage}}

%
% element styling
%

\addtokomafont{subsection}{\normalfont\scshape}
\addtokomafont{subsubsection}{\normalfont\underline}
    
%
% math packages
%

\usepackage{mathtools}
\usepackage{amsxtra,amssymb,amsthm,amstext,amsfonts}
\usepackage{thmtools}
\usepackage{calrsfs} % for changing \mathcal to beauty
\usepackage{physics}
\usepackage{xpatch} % for fixing thmtools

%
% microtype setting
%

\usepackage{float} % better control of placements
\usepackage{microtype} % package for optimising typographic details

%
% tables
%

\usepackage{tabularray}
    \UseTblrLibrary{booktabs}

%
% misc packages
%

\usepackage[atend]{bookmark}
\bookmarksetup{numbered}
\usepackage{enumitem} % to change enumerate symbols
    \setlist[enumerate,1]{label=\alph*)}
\usepackage{xcolor} % adds colours
\usepackage{pdfpages}
\usepackage{multicol} % allows dividing (parts of) the page into multiple columns
\usepackage{url} % adds hyperlinks
\usepackage[]{hyperref} % adds clickable links

%
% define custom colors
%

\include{custom_colors.tex}

%
% custom commands
%

\newcommand{\Autor}{Isabell Pflug} % your name here

%
% math related custom commands
%

\renewcommand{\epsilon}{\varepsilon}
\renewcommand{\phi}{\varphi}

%
% theorems 
%

\newtheorem{definition}{Definition}[section]
\newtheorem{lemma}[definition]{Lemma}

% \renewcommand{\qed}{%
%     \ifmmode
%         \intertext{\hfill \emoji{feet} \nonumber}
%     \else
%         \hfill \emoji{feet}
%     \fi
% }

\newcommand{\correct}{
    \ifmmode
        \intertext{\hfill \emoji{check-mark-button}}
    \else
        \hfill \emoji{check-mark-button}
    \fi}
\newcommand{\contradiction}{
    \ifmmode
        \intertext{\hfill \emoji{high-voltage}}
    \else
        \hfill \emoji{high-voltage}
    \fi}
\newcommand{\Aufgabe}{\subsection{Aufgabe}}

\newcommand{\anm}{\: \vert \:}

\newcommand{\dx}{\: \mathrm{d}x}
\newcommand{\abl}[1]{\frac{\mathrm{d} #1}{\mathrm{d}x}}

\newcounter{uebung}
% \setcounter{uebung}{10} % HERE

\renewcommand{\thefootnote}{$\star$} 

%
% make title
%

\title{ Algorithm Engineering - Exam Assignments \\
{\Large Wintersemester 2024/2025}}
\author{\Autor}
\date{\today}

\begin{document}

\maketitle
\tableofcontents

\include{01.tex}

% \setcounter{section}{\value{uebung}}
% \addcontentsline{toc}{section}{Report}

\end{document}

