% Stil mit tcolorbox, inkl. Anzeige von Bonuspunkten

\xsimstyle{schule-tcolorbox}

\DeclareExerciseEnvironmentTemplate{schule-tcolorbox}
{%
\lstset{basicstyle=\ttfamily, numbersep=0.5em,numbers=left,numberstyle=\color{black!55}} % Quellcode passend formatieren
\tcolorbox[
	colback = white,
    halign title=flush left,
	title =
	\sffamily
		\textbf{\ifthenelse{\equal{\ExerciseType}{zusatzaufgabe}}{\llap{\GetExerciseProperty{symbol}$\bigstar$}}{\llap{\GetExerciseProperty{symbol}}}
		\GetExerciseName~\GetExerciseProperty{counter}}\xspace%
		\GetExercisePropertyT{subtitle}{\textit{\PropertyValue}}%
		\IfInsideSolutionF{%
			\GetExercisePropertyT{points}{ % notice the space
				\hfill
				 % ohne (
					\printgoal{\PropertyValue}
	%
	\GetExercisePropertyT{bonus-points}
	{(+\PropertyValue)\xspace}%
						\IfExerciseGoalSingularTF{points}
	{\XSIMtranslate{point}}
	{\XSIMtranslate{points}}%
%	\nobreakspace\XSIMtranslate{point-abbr}
				% ohne )
			}%
		}%
	]%
}
{\endtcolorbox}
