\mode<presentation>

\defbeamertemplate*{frametitle}{maxiv}[1][]
{
  \begin{beamercolorbox}[wd=\paperwidth, ht=1.2cm]{frametitle}
    \begin{tikzpicture}
      \useasboundingbox[fill=white] (0,0) rectangle(\the\paperwidth, 1.2);
      \fill[maxivgreen] (0,0) rectangle(\the\paperwidth, 1.2);
      \ifx\insertframesubtitle\@empty%
      {\node[anchor=west, white, font=\Large] at (0,0.6){\insertframetitle};}
      \else
      {\node[anchor=west, white, font=\Large] at (0.0, 0.81){\insertframetitle};
        \node[anchor=west, white, font=\small] at (0.0, 0.35){\insertframesubtitle};}
      \fi
    \end{tikzpicture}
    
  \end{beamercolorbox}
}

\defbeamertemplate*{navigation symbols}{maxiv}
{ % navigation symbols are defined in the footline
%    \hbox{\insertslidenavigationsymbol}
%    \hbox{\insertframenavigationsymbol}
%    \hbox{\insertsectionnavigationsymbol}
%    \hbox{\insertsubsectionnavigationsymbol}
%    \hbox{\insertbackfindforwardnavigationsymbol}
}

% no navigation symbols in handout and trans mode:
\only<handout | trans>{\setbeamertemplate{navigation symbols}{}}


\defbeamertemplate*{footline}{maxiv}
{
  \leavevmode%
  \hbox{%
    \begin{beamercolorbox}[wd=.2\paperwidth,ht=0.03\paperheight,dp=0ex,left]{author in head/foot}%
      \begin{tikzpicture}
        \useasboundingbox[fill=maxivgreen] (0,0) rectangle(0.2\paperwidth, 0.03\paperheight);
        \node[anchor=west, white] at (0,0.13){\usebeamerfont{author in head/foot}\insertshortauthor};
      \end{tikzpicture}
    \end{beamercolorbox}%

    \begin{beamercolorbox}[wd=.7\paperwidth,ht=0.03\paperheight,left]{title in head/foot}%
      \begin{tikzpicture}
        \useasboundingbox[fill=maxivgreen] (0,0) rectangle(0.7\paperwidth, 0.03\paperheight);
        \node[anchor=west, white] at (0,0.13){\usebeamerfont{title in head/foot}\insertshorttitle};
      \end{tikzpicture}
    \end{beamercolorbox}

    \begin{beamercolorbox}[wd=.1\paperwidth,ht=0.03\paperheight,right]{date in head/foot}%
      \begin{tikzpicture}
        \useasboundingbox[fill=maxivgreen] (0,0) rectangle(0.1\paperwidth, 0.03\paperheight);
      \node[anchor=east, white] at (1,0.13){\usebeamerfont{author in head/foot}\insertframenumber{} / \inserttotalframenumber};
      \end{tikzpicture}
    \end{beamercolorbox}}%
  \vskip1pt%
}

\mode<all>