
%%%%%%%%%%%%%%%%%%%% HEADER FOOTER FIRST PAGE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Top right header Arbeitsblatt
\newcommand{\topRightHeaderFP}{\begin{tabular}{cl}\makebox{\raisebox{-1.1mm}{\includegraphics[width=8mm]{logos/2024/logo.pdf}}\hspace{-2mm}}&\makecell[l]{\vspace{-2.5mm}{\scriptsize{\cdciFont{{\color{bbwFarbe}Mathematik}}}}\\{\vspace{-3mm}\scriptsize{\cdciFont{{\color{bbwFarbe}Arbeitsblatt }}}}\\{}}\end{tabular}}

\newcommand{\topLeftHeaderFP}{%
\begin{tabular}{c}%
  \makebox{\raisebox{-1.1mm}{\includegraphics[width=77mm]{logos/2024/loewe_text_schwarz.pdf}}}
\end{tabular}%
}% end command topLeftHeaderAB

\fancypagestyle{firststyleAB}
{
  \fancyhf[HR]{\topRightHeaderFP}
  \fancyhf[HL]{\topLeftHeaderFP}
  \fancyhf[HC]{}
  \fancyfoot[C]{}
  \renewcommand{\headrulewidth}{1pt} % removes horizontal header line
}

%%%%%%%%%%%%%%%  H E A D E R   &   F O O T E R  FOLLOWING PAGES  %%%%%%%%%%%%%%%%%%%%


%% vorbereitet, falls nur LOGO ohne "Mathematik | Arbeitsblatt"
\newcommand{\topRightHeader}{%
\begin{tabular}{r}%
\makebox{%
\raisebox{-1.1mm}{\includegraphics[width=8mm]{logos/2024/logo.pdf}}
}% end makebox
\end{tabular}%
}%% end newcommand

%% verwende auch hier den selben Header wie auf der FirstPage (FP)
\fancyhf[HR]{\topRightHeaderFP}

\fancyhf[HC]{\metaHeaderLine{}}%%
\fancyhf[FR]{\tiny{\shortAuthor{} (\today{})}}%%
\fancyfoot[C]{\footnotesize Page \thepage\ of \pageref{LastPage}}
\renewcommand{\headrulewidth}{0pt}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\arbeitsblattHeader}{%%
  \thispagestyle{firststyleAB}
  \begin{center}%%
    {\Large \fontfamily{qhv}\selectfont \arbeitsblattTitel{}}%%
\end{center}}%%
