
	\documentclass{beamer}
	\usetheme{default}
	\usepackage[utf8]{inputenc}
	\usepackage[T1]{fontenc}
	\usepackage{lmodern}
		\ifeng
	\usepackage[ngerman,english]{babel}
		\else
	\usepackage[english,ngerman]{babel}	
		\fi
		
	\usepackage{DejaVuSans}
	\usepackage{DejaVuSansMono}
	
	\usepackage{lastpage}
	
	\usepackage{pdfpages}

	\usepackage{hyperref}

	\usepackage{tabularx}
	\usepackage{ltxtable}
	\usepackage{rotating} 

	\usepackage{amsmath}
	\usepackage{amssymb}

	\usepackage{graphicx}

	\usepackage{xcolor}
	
	\usepackage{colortbl}
		
	\usepackage{listings}
%	\usepackage{listings-rust}
	
	
	%\setcounter{tocdepth}{3} %subsubsection
	%\setcounter{secnumdepth}{3}
			
	\newcommand{\zB}{z.\,B.}
	\newcommand{\unit}[1]{\,\mathrm{#1}}
	
	\definecolor{sigflagbg}{HTML}{263239}
	\definecolor{sigflagwhite}{HTML}{ffffff}
	\definecolor{sigflagblue}{HTML}{26c6da}
	\definecolor{sigflaggreen}{HTML}{00bfa4}
	\definecolor{sigflaggray}{HTML}{90a4ae}
	
	\setbeamerfont{frametitle}{series=\bfseries}
	\setbeamerfont{title}{series=\bfseries}
	\setbeamercolor{title}{fg=sigflagwhite}
	\setbeamercolor{titlelike}{fg=sigflagwhite}
	\setbeamercolor{normal text}{fg=sigflagwhite,bg=sigflagbg}
	\setbeamercolor{structure}{fg=sigflagwhite}
	
	
	\setbeamertemplate{itemize item}{$\blacksquare$}
	\setbeamercolor{itemize item}{fg=sigflagwhite}
	\setbeamertemplate{itemize subitem}{$\square$}
	\setbeamercolor{itemize subitem}{fg=sigflagwhite}
	\setbeamertemplate{itemize subsubitem}{\LARGE\textbullet}
	\setbeamercolor{itemize subsubitem}{fg=sigflagwhite}
	\setbeamercolor{enumerate item}{fg=sigflagwhite}
	\setbeamercolor{enumerate subitem}{fg=sigflagwhite}
	\setbeamercolor{enumerate subsubitem}{fg=sigflagwhite}

	\setbeamersize{text margin left=10mm,text margin right=5mm}

	\defbeamertemplate*{title page}{customized}[1][]
	{
		\begin{center}
		\includegraphics[width=2cm]{logos/logo_sigflag}
		\vfill
		\usebeamerfont{title}\huge{\texttt{\inserttitle}}\\[1mm]
		\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\texttt{\insertsubtitle}\\
		\vspace{1em}
		\usebeamerfont{author}\texttt{\insertauthor}\\
		\usebeamerfont{institute}\texttt{\insertinstitute}\\
		\usebeamerfont{date}\texttt{\insertdate}\\
		\vfill
		\end{center}
	}
	
	\setbeamertemplate{navigation symbols}{}
	
	\defbeamertemplate*{footline}{my footline}{%
		\ifnum \insertpagenumber=1
		
		\leavevmode%
		\hbox{%
			\begin{beamercolorbox}[wd=\paperwidth,ht=.80ex,dp=1ex,center]{}%
				% empty environment to raise height
		\end{beamercolorbox}}%
		\vskip0pt%
		\else
		\hspace*{.5cm}\parbox{\linewidth}{\vspace*{-8mm}
			\hfill
			\tiny{\texttt{\insertframenumber/\inserttotalframenumber}}
		}
		
		\fi
	}

	\setbeamertemplate{frametitle}
	{
		\nointerlineskip
		\begin{beamercolorbox}[sep=0.5cm,ht=3.5em,wd=\paperwidth]{frametitle}
			\vbox{}\vskip-2ex%
			\strut\texttt{\textbf{\insertframetitle}}\strut
			\hfill
			\raisebox{-7mm}{\includegraphics[width=15mm]{logos/logo_sigflag}}
			\vskip-1.8ex%
		\end{beamercolorbox}
	}

\setbeamercolor{block title}{use=structure,fg=sigflaggray,bg=sigflagbg}
\setbeamercolor{block title example}{use=structure,fg=sigflaggreen,bg=sigflagbg}
\setbeamercolor{block title alerted}{use=structure,fg=sigflagblue,bg=sigflagbg}


\lstset{
	language=python,				%language, can be changed dynamically
	basicstyle=\footnotesize\ttfamily\color{sigflagwhite},	%common font style
	keywordstyle=\color{sigflagblue},
	commentstyle=\color{sigflaggray},
	stringstyle=\color{sigflaggreen},
	xleftmargin=8pt,
	numbers=left,						%line numbers
	numberstyle=\tiny,
	numberfirstline=true,
	stepnumber=1,
	numbersep=5pt,
	breaklines=true,
	tabsize=2,							%size of tabulator	
	columns=flexible,
	upquote=true,
	literate=							%Umlauts in source files
	{Ö}{{\"O}}1
	{Ä}{{\"A}}1
	{Ü}{{\"U}}1
	{ß}{{\ss}}2
	{ü}{{\"u}}1
	{ä}{{\"a}}1
	{ö}{{\"o}}1
}


\AtBeginSection[]
{
	{
	\usebackgroundtemplate{\includegraphics[width=\paperwidth]{logos/hacker_flyer_bg_cmyk_slide.jpg}}
	\begin{frame}
		\begin{center}
			\Large{\textbf{\texttt{
		\tableofcontents[
		currentsection,
		sectionstyle=show/hide,
		hidesubsections,
		]}}}
		\end{center}
	\end{frame}
	}
}