%% Uni Bremen Beamer Theme 2.0.0 (2021-07)
%% LaTeX-version by Erik Michelson (michelson@uni-bremen.de)

\mode<presentation>

% Set background
\setbeamertemplate{background}{
	\begin{tikzpicture}
		\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
		\fill[color=white] (0,0) rectangle (\the\paperwidth,\the\paperheight);
		\ifnum\thepage>1\relax
			\fill[white,opacity=1] (0,0) rectangle(\the\paperwidth,\the\paperheight);
		\fi
  \end{tikzpicture}
}

% Set positions of elements
\defbeamertemplate*{title page}{uhb}[1][]{ 
	
	\begin{tikzpicture}[remember picture,overlay]
    	\node[xshift=2cm,yshift=-1cm] at (current page.north west){%
	    \includegraphics[width=3cm]{assets/logo}};
	\end{tikzpicture}		
	
	\begin{tikzpicture}[remember picture,overlay]
    	\node[xshift=1cm,yshift=2.9cm] at (current page.south west){%
	    \includegraphics[width=2cm]{assets/box-left-first}};
	\end{tikzpicture}
	
	\begin{textblock}{0.75}(0.18,0.47)
		{\fontsize{21}{34}
		\selectfont
		\inserttitle}
		\\
		\vspace*{12pt}
		{\fontsize{11.5}{18}
		\selectfont
		\insertsubtitle}
	\end{textblock}
	
	\begin{textblock}{0.5}(0.18,0.82)
		\insertauthor
		\\
		\insertdate
	\end{textblock}
	
	\begin{textblock}{0.25}(0.85,0.075)
		{\fontsize{8.5}{14}
		\selectfont
		\@workgroup}
		\\
		{\begin{singlespace}\fontsize{6}{12}
		\selectfont
		\textbf{\@facultynum}
		\linebreak
		\@faculty\end{singlespace}}
	\end{textblock}
	
	\IfFileExists{assets/workgroup.pdf}{%
	\begin{tikzpicture}[remember picture,overlay]
    	\node[xshift=-2.5cm,yshift=0.75cm] at (current page.south east){%
	    \includegraphics[width=3.5cm]{assets/workgroup}};
	\end{tikzpicture}
	}{}
}

\mode<all>
