%\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{times}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{titling}
\usepackage{hyperref}
\usepackage[singlespacing]{setspace}
\usepackage{lastpage}

\hypersetup{
    colorlinks=true,
    linkcolor=black,
    filecolor=magenta,      
    urlcolor=cyan,
    pdftitle={Overleaf Example},
    pdfpagemode=FullScreen,
}
\urlstyle{same}

\setcounter{secnumdepth}{3}

\setlength{\headheight}{2.5cm}
\setlength{\footheight}{1cm}

\usepackage[
	%showframe,% Seitenlayout anzeigen
	left=2.5cm,
	right=1.5cm,
	top=1.2cm,
	bottom=2cm,
	includefoot,
	includehead,
	headsep=0.5cm
]{geometry}

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
%\fancyhead[L]{}
%\fancyhead[C]{}
\fancyhead[R]{\includegraphics[width=5.5cm]{images/logo.png}\vspace{1cm}}
%\fancyfoot[L]{\theauthor}
%\fancyfoot[C]{\thedate}
\fancyfoot[R]{\vspace{0.2cm} \small Seite {\pagemark} von {\pageref{LastPage}}}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}