\documentclass[10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[textwidth=12cm,centering]{geometry}
\usepackage[x11names]{xcolor}
% \usepackage[a4,center,noinfo,width=18cm,height=23cm]{crop}
\usepackage{background,mathpazo,pdfpages,tikz,datatool,graphicx,fontspec-xetex,ragged2e,setspace, lipsum}
% gute Website mit Bildern: https://illustrationage.com/2019/07/02/turn-back-the-pages-simplicissimus-magazine/

\newfontfamily{\headfont}{Sandwich}
\newfontfamily{\artfont}{Parisish}
\newfontfamily{\linefont}{FoglihtenDeH02} %https://www.1001fonts.com/foglihtendeh0-font.html

\usepackage{blindtext}
\usepackage{geometry} % https://www.overleaf.com/learn/latex/Page_size_and_margins
 \geometry{
 a5paper,
 left=10mm,
 right=10mm,
 top=5mm,
 bottom=5mm
 }

\backgroundsetup{contents={}}

% https://coolors.co/f6ebe0-ba5624-381d2a-9395d3-065143

\definecolor{bg}{HTML}{F6EBE0} % https://color.adobe.com/create/color-wheel
\definecolor{head}{HTML}{45252A}
\definecolor{desc}{HTML}{6C5B61}
%\definecolor{text}{HTML}{381D2A}
%\definecolor{text}{HTML}{363331}
\definecolor{text}{HTML}{413135}
\color{text}

\newcommand{\bg}{bg-border.png} % define used border background

\graphicspath{{img/}}

\DTLsetseparator{;}
\DTLloaddb[keys={name,beschreibung,img,preis1,preis2,size1,size2,cat,note}]{drinks}{drinks.csv}
 
\input{glass.tex}
\input{cmds.tex}

\pagestyle{empty}

\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Erste Seite
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	\pagecolor{bg}
	\PageBackground{covers/32_48_649.jpg}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Soli Seite
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	\newpage
	\PageBackground{\bg}
	\begin{center}
		\includegraphics[width=\textwidth]{illus/kley-upscaled-alpha-sm.png}
		\parbox{10cm}{\subheading{Soli-Wasser}\smallskip
			\centering{Leitungswasser als Spende an die \textbf{Wasserstiftung e.V.}\\} 	
			0,2l \dotfill 0,50 € \\ 0,4l \dotfill 1,00 € 
		}
	\end{center}
	\justifying{\begin{singlespace}
	\scriptsize{Der Zugang zu sauberem Wasser ist ein Menschenrecht. Die 	UN-Generalversammlung hat 2010 eine entsprechende Resolution verabschiedet. Dennoch leiden weiterhin Millionen von Menschen weltweit unter Wassermangel. Hunger, Armut, Krankheiten und erzwungene Migration sind die Folge. Seit dem Jahr 2000 ist die WasserStiftung vor allem in ländlichen Gebieten aktiv, wo der Mangel an sauberem Trinkwasser das Leben gefährdet. Mit der Unterstützung zahlreicher Sponsoren und in Zusammenarbeit mit lokalen Partnern graben wir einfach zu nutzende Brunnen, bauen Nebelnetze, verlegen Wasserleitungen, installieren Pumpen, bauen Zisternen, organisieren den Wassertransport und schulen in nachhaltigem Wassermanagement. Eine funktionierende Wasserversorgung ist unerlässlich, damit die Menschen ihr Leben selbst in die Hand nehmen, etwas anbauen, um ihre Familien zu ernähren, und durch verbesserte Hygiene Krankheiten vorbeugen können.}\end{singlespace}}\centering{Weitere Infos auf \textbf{www.wasserstiftung.de}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% KaffeeSeite
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	\newpage
	\PageBackground{\bg}
%%%%%%%%%%%%%%%%%%%
%% Kaffee
%%%%%%%%%%%%%%%%%%%
	\begin{Group}{Kaffee}{Alle Kaffes werden von .... blablabla\\}
		\DTLforeach[\DTLiseq{\cat}{Kaffee} \AND \NOT \DTLiseq{\note}{zusatz}]{drinks}{%
			\name=name,\desc=beschreibung,\img=img,\preisa=preis1,\preisb=preis2,\sizea=size1,\sizeb=size2,\cat=cat, \note=note}
		{\Entry{\name}{}\Expl{\desc} 
			\DTLifnullorempty{\preisb}{\dotfill\Price{\preisa}\\}
			{\\\PriceMultB{\sizea}{\preisa}{\sizeb}{\preisb}}}
			
%%%%%%%%%%%%%%%%%%%
%% Extras
%%%%%%%%%%%%%%%%%%%
		\begin{center}
			\subsubheading{Extras} 
			\parbox{10cm}{
				\begin{center}
					\DTLforeach[\DTLiseq{\cat}{Kaffee} \AND \DTLiseq{\note}{zusatz}]{drinks}{
						\name=name,\desc=beschreibung,\img=img,\preisa=preis1,\preisb=preis2,\sizea=size1,\sizeb=size2,\cat=cat, \note=note} {\small\sizea\footnotesize\desc\small\dotfill\Price{\preisa}\\}
		\end{center}	
	} \\
	{\linefont\fontsize{20}{60}\selectfont 7}
	\end{center}	
	\end{Group}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Kakao + Tee
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	\newpage
	\PageBackground{\bg}
%%%%%%%%%%%%%%%%%%%
%% Tee
%%%%%%%%%%%%%%%%%%%
	\begin{Group}{Tee}{Bester Biotee und so. Geiler Scheiß whaaaaat}
		\centering\\
		\DTLforeach[\DTLiseq{\cat}{Tee} \AND \NOT \DTLiseq{\note}{zusatz}]{drinks}{
			\name=name,\desc=beschreibung,\img=img,\preis=preis1,\cat=cat}
		{
			\centering{\name}
		}\\ \medskip \\
		\DTLforeach[\DTLiseq{\cat}{Teepreis}]{drinks}{
		\name=name,\desc=beschreibung,\img=img,\preisa=preis1,\preisb=preis2,\sizea=size1,\sizeb=size2,\cat=cat, \note=note}
		{
			\small\sizea\footnotesize\desc\small\dotfill\Price{\preisa}\\
			\small\sizeb\footnotesize\desc\small\dotfill\Price{\preisb}\\		
		}\\
%%%%%%%%%%%%%%%%%%%
%% Frischer Tee
%%%%%%%%%%%%%%%%%%%
		\subheading{Frischer Tee}
		\DTLforeach[\DTLiseq{\cat}{Frischer Tee}]{drinks}{
			\name=name,\desc=beschreibung,\img=img,\preisa=preis1,\sizea=size1,\cat=cat}
		{
			\small\name\footnotesize,  \sizea\desc\small\dotfill\Price{\preisa} \\
		}
%%%%%%%%%%%%%%%%%%%
%% Extras
%%%%%%%%%%%%%%%%%%%
		\subsubheading{Extras} 
		\parbox{10cm}{
			\begin{center}
				\DTLforeach[\DTLiseq{\cat}{Tee} \AND \DTLiseq{\note}{zusatz}]{drinks}{
					\name=name,\desc=beschreibung,\img=img,\preisa=preis1,\cat=cat, \note=note}
				{
					\small\name{\footnotesize\desc}\small\dotfill\Price{\preisa}\\
				}
			\end{center}	
		}
	\end{Group}\\\medskip
%%%%%%%%%%%%%%%%%%%
%% Kakao
%%%%%%%%%%%%%%%%%%%
	\begin{Group}{Kakao}{Bester Biokakao und so. Geiler Scheiß whaaaaat\\}
	\DTLforeach[\DTLiseq{\cat}{Kakao} \AND \NOT \DTLiseq{\note}{zusatz}]{drinks}{
	\name=name,\desc=beschreibung,\img=img,\preisa=preis1,\preisb=preis2,\sizea=size1,\sizeb=size2,\cat=cat, \note=note}
	{
		\Entry{\desc}{} 
		
		\DTLifnullorempty{\preisb}{ %wenn wenn nur ein preis, dann...
			\dotfill\Price{\preisa} \\
		}{	%wenn zwei preise, dann...
			\\
			\PriceMultB{\sizea}{\preisa}{\sizeb}{\preisb}
		}
	}
	\end{Group}	
	{\linefont\fontsize{20}{60}\selectfont 7}\\
	\raggedleft{\footnotesize Anzeige}
	\includegraphics[width=\textwidth]{illus/ads/10_10_114-crop1-alpha2.png}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Erfrischungsgetränke
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\PageBackground{\bg}
\begin{Group}{Erfrischung}{}
	\subheading{Säfte, Nektar}\desctext{Neben verschiedenen Getränken von \textbf{Granini} bieten wir euch regional produzierte Säfte und Nektar von \textbf{Marc Conrad} aus Welschbillig an.}
	%%%%%%%%%%%%%%%%%%%
	%% Granini
	%%%%%%%%%%%%%%%%%%%
	\centering\\
	\subsubsubheading{Granini}
	\DTLforeach[\DTLiseq{\cat}{Granini}\AND\NOT\DTLiseq{\note}{zusatz}]{drinks}{
		\name=name,\desc=beschreibung,\img=img,\preis=preis1,\cat=cat}
	{
		\centering{\name}
	}\\ \medskip 
	\DTLforeach[\DTLiseq{\cat}{Saftpreis}]{drinks}{
		\name=name,\desc=beschreibung,\img=img,\preisa=preis1,\preisb=preis2,\sizea=size1,\sizeb=size2,\cat=cat, \note=note}
	{
		\small\sizea\footnotesize\desc\small\dotfill\Price{\preisa}\\
		\small\sizeb\footnotesize\desc\small\dotfill\Price{\preisb}\\		
	}
	%%%%%%%%%%%%%%%%%%%
	%% Marc Conrad
	%%%%%%%%%%%%%%%%%%%
	\centering
	\subsubsubheading{Kelterei Conrad}
	\DTLforeach[\DTLiseq{\cat}{Saft Conrad}\AND\NOT\DTLiseq{\note}{zusatz}]{drinks}{
		\name=name,\desc=beschreibung,\img=img,\preis=preis1,\cat=cat}
	{
		\centering{\name}
	}\\ \medskip \\
	\DTLforeach[\DTLiseq{\cat}{Saftpreis}]{drinks}{
		\name=name,\desc=beschreibung,\img=img,\preisa=preis1,\preisb=preis2,\sizea=size1,\sizeb=size2,\cat=cat, \note=note}
	{
		\small\sizea\footnotesize\desc\small\dotfill\Price{\preisa}\\
		\small\sizeb\footnotesize\desc\small\dotfill\Price{\preisb}\\		
	}\\
	%%%%%%%%%%%%%%%%%%%
	%% Schorle
	%%%%%%%%%%%%%%%%%%%
	\centering
	\subsubsubheading{Schorle}
	\DTLforeach[\DTLiseq{\cat}{Schorle}]{drinks}{
		\name=name,\desc=beschreibung,\img=img,\preisa=preis1,\preisb=preis2,\sizea=size1,\sizeb=size2,\cat=cat, \note=note}
	{
		\small\sizea\footnotesize\desc\small\dotfill\Price{\preisa}\\
		\small\sizeb\footnotesize\desc\small\dotfill\Price{\preisb}\\		
	}\\
	%%%%%%%%%%%%%%%%%%%
	%% Limonaden
	%%%%%%%%%%%%%%%%%%%
	\subheading{Limonaden}
	\subsubsubheading{Biozisch}
	\DTLforeach[\DTLiseq{\cat}{Biozisch}]{drinks}{
	\name=name,\desc=beschreibung,\img=img,\preisa=preis1,\sizea=size1,\cat=cat}
	{
		\centering{\name}
	}\\ 
	\DTLforeach[\DTLiseq{\cat}{BiozischPreis}]{drinks}{
		\name=name,\desc=beschreibung,\img=img,\preisa=preis1,\sizea=size1,\cat=cat}
	{
		\small\sizea\footnotesize\desc\small\dotfill\Price{\preisa} \\
	}
	%%%%%%%%%%%%%%%%%%%
	%% Afri
	\subsubsubheading{Afri}
	\DTLforeach[\DTLiseq{\cat}{Afri}]{drinks}{
		\name=name,\desc=beschreibung,\img=img,\preisa=preis1,\sizea=size1,\cat=cat}
	{
		\centering{\name}
	}\\
	\DTLforeach[\DTLiseq{\cat}{AfriPreis}]{drinks}{
		\name=name,\desc=beschreibung,\img=img,\preisa=preis1,\sizea=size1,\cat=cat}
	{
		\small\sizea\footnotesize\desc\small\dotfill\Price{\preisa}\\
	}
	%%%%%%%%%%%%%%%%%%%
	%% Bluna
	\subsubsubheading{Bluna}
	\DTLforeach[\DTLiseq{\cat}{Bluna}]{drinks}{
		\name=name,\desc=beschreibung,\img=img,\preisa=preis1,\sizea=size1,\cat=cat}
	{
		\centering{\name}
	}\\ 
	\DTLforeach[\DTLiseq{\cat}{BlunaPreis}]{drinks}{
		\name=name,\desc=beschreibung,\img=img,\preisa=preis1,\sizea=size1,\cat=cat}
	{
		\small\sizea\footnotesize\desc\small\dotfill\Price{\preisa}\\
	}
	%%%%%%%%%%%%%%%%%%%
	%% Sprudel
	\subsubheading{Rhodius Sprudel}
	\DTLforeach[\DTLiseq{\cat}{Sprudel}]{drinks}{
		\name=name,\desc=beschreibung,\img=img,\preisa=preis1,\sizea=size1,\preisb=preis2,\sizeb=size2,\cat=cat}
	{
		\PriceMultB{\sizea}{\preisa}{\sizeb}{\preisb}
	}
	{\linefont\fontsize{20}{60}\selectfont 7}\\
\end{Group}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Bier
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\PageBackground{\bg}
\begin{Group}{Bier}{Neben den hier aufgeführten Bieren bieten wir noch weitere an. Wirf einfach ein Blick auf unsere Tafeln mit den aktuellen Aktionen oder frag bei uns nach.}
	\begin{flushleft}
		\DTLforeach[\DTLiseq{\cat}{Bier}]{drinks}{%
			\name=name,\desc=beschreibung,\img=img,\preisa=preis1,\preisb=preis2,\sizea=size1,\sizeb=size2,\cat=cat, \note=note}{
			\Entry{\name}{} \\
			\Expl{\desc} 
			\DTLifnullorempty{\preisb}{ %wenn wenn nur ein preis, dann...
				\\\sizea\dotfill\Price{\preisa} \\
			}{	%wenn zwei preise, dann...
				\\
				\PriceMultB{\sizea}{\preisa}{\sizeb}{\preisb}
		}}
	\centering{\linefont\fontsize{20}{60}\selectfont 7}\\
	\end{flushleft}
\end{Group}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Wein
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\PageBackground{\bg}
\begin{Group}{Wein und Sekt}{}
	\begin{flushleft}
		\DTLforeach[\DTLiseq{\cat}{Wein}]{drinks}{%
			\name=name,\desc=beschreibung,\img=img,\preisa=preis1,\preisb=preis2,\sizea=size1,\sizeb=size2,\cat=cat, \note=note}{
			\Entry{\name}{} \\
			\Expl{\desc} 
			\DTLifnullorempty{\preisb}{ %wenn wenn nur ein preis, dann...
				\\\sizea\dotfill\Price{\preisa} \\
			}{	%wenn zwei preise, dann...
				\\
				\PriceMultB{\sizea}{\preisa}{\sizeb}{\preisb}
		}}
	\centering{\linefont\fontsize{20}{60}\selectfont 7}\\
	\end{flushleft}
\end{Group}
\raggedright{\footnotesize Anzeige}
\includegraphics[width=\textwidth]{illus/ads/33_36_469-upscaled-crop2-alpha.png}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Zeitungen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	\newpage
	\PageBackground{\bg}
	\begin{Center}
		\heading{Lesestoff}
		kostenlos könnt ihr euch gerne folgende \textbf{Zeitungen und Magazine} ausleihen:\\\smallskip
		Die Zeit - Der Freitag - taz - Stern - Trierischer Volksfreund \\ Graswurzelrevolution - info3 - Buddhismus heute - Bild der Wissenschaft\\\smallskip
		Außerdem bieten wir euch gerne Rätselblöcke zum Kreutzworträtseln oder Sudoku spielen an.\\
		{\linefont\fontsize{20}{60}\selectfont 7}\\
	\end{Center}
	
	\includegraphics[width=\textwidth]{illus/ads/33_36_469-upscaled-crop-alpha-sm.png}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Rückseite
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	\newpage
	\PageBackground{\bg}

	
	\begin{center}
		\titlef{Simplicissimus}
		\includegraphics[width=\textwidth]{covers/10_01_001-upscaled-crop-sm.png}
		\hfill\vfill
		Alle Bilder sind auch auf Simplicissimus.info zu finden. \\
	    Created in \LaTeX and powered by Open Source. \\
	    Simplicissimus Trier - Viehmarktpl. 11 - 54290 Trier
	\end{center}

\end{document}
