% !TeX root = main.tex
% !TeX program = LuaLaTeX
% !TeX encoding = UTF-8

\section{Teilnehmerliste}
\newlength{\RWtemp}
\setlength{\RWtemp}{\fboxsep}
\setlength{\fboxsep}{8pt}
\csvreader[respect sharp, head to column names]{Daten/teilnehmer.csv}{}{%
\fbox{%
\begin{minipage}[t][5cm][t]{0.45\textwidth}%
\begin{wrapfigure}[5]{l}{0.33\textwidth}
   \begin{center}
     \vspace{-14pt}
     \includegraphics[width=0.33\textwidth]{Bilder/A318.pdf}
   \end{center}
\end{wrapfigure}
{\large \Vorname~\Nachname \par}
\ifcsvstrcmp{\Nick}{}{\mbox{ }}{\Nick}\\[6pt]
\Straße\\\PLZ~\Stadt\\
\ifcsvstrcmp{\Land}{Deutschland}{\mbox{ }\\[6pt]}{\Land\\[6pt]}
\ifcsvstrcmp{\Telefon}{}{}{\Telefon\\}\ifcsvstrcmp{\Mail}{}{}{\href{mailto:\Mail}{\Mail}\\}\ifcsvstrcmp{\Website}{}{}{\url{\Website}\\}
\end{minipage}
}%
\csvifoddrow{\hfill}{\\[8pt]}
}%
\setlength{\fboxsep}{\RWtemp}
