{% if mode == "editmode" %}
<div class="my-3 flex flex-wrap overflow-hidden">
<div class="w-full overflow-hidden {{ azz }} list-{{ azzColor }}">
Text:<br />
<small><b>Hinweis:</b> Eingefügte Links können mit der Klasse 'morelink' versehen werden.
Dazu den Link mit rechter Maustaste bearbeiten und bei
'Erweitert / Formatvorlagenklasse' -> <i>morelink</i> eintragen.
<br />
Eingefügte Tabellen werden mit einem Standard-Style versehen. Um eine unformatierte Tabelle
zu erhalten, auf die Tabellen-Eigenschaften klicken und bei 'Erweitert / Stylesheet Klasse'
den Wert <i>nocss</i> eintragen.</small>
{{ pimcore_wysiwyg("text") }}
</div>
<div class="w-full overflow-hidden">
{% include 'bullet-points.html.twig' with { 'name': 'bullets', 'description': 'Aufzählungszeichen' } %}
</div>
<div class="w-full overflow-hidden">
{% include 'color-selector.html.twig' with { 'name': 'bulletColor', 'description': 'Aufzählungszeichen-Farbe', 'default': 'stwh-rot-2024' } %}
</div>
<div class="w-6/12 overflow-hidden">
Hintergrundbild für die Sektion:
</div>
<div class="w-6/12 overflow-hidden">
{{ pimcore_image("secionPicture") }}
</div>
</div>
<hr />
<div class="my-3 flex flex-wrap overflow-hidden">
<div class="w-1/4 overflow-hidden">
Button-Link (optional):
</div>
<div class="w-1/4 overflow-hidden">
{{ pimcore_link("buttonlink") }}
</div>
<div class="w-2/4 overflow-hidden">
{% include 'color-selector.html.twig' with { 'name': 'buttoncolor', 'description': 'Button-Farbe', 'type': 'button' } %}
</div>
</div>
<hr />
{% else %}
<div class="container mx-auto px-5">
<div class="flex flex-wrap">
{% set bordy = '' %}
{% set borderColor = pimcore_select('headline-divider-color').getData() %}
{% if pimcore_checkbox('hasDivider').isChecked() %}
{% set bordy = 'border-b-2 pb-2 border-' ~ borderColor %}
{% endif %}
{% if pimcore_textarea("headline") != '' %}
{% set seo = pimcore_select("seo").getData() %}
<{{ seo }} class="text-{{ pimcore_select("seoHeadlineColor").getData() }} block mb-5 md:mb-10 text-2xl md:text-4xl lg:text-5xl font-bold {{ bordy }}">
{{ pimcore_textarea("headline")|nl2br }}
</{{ seo }}>
{% endif %}
<div class="w-full lg:mx-auto">
<div class="text-lg {{ azz }} list-{{ azzColor }}">
{{ pimcore_wysiwyg("text") }}
</div>
</div>
{% if pimcore_link("buttonlink") != '' %}
{% include 'widgets/button.html.twig' with { name: 'buttonlink', backColor: pimcore_select('buttoncolor').getData() } %}
{% endif %}
</div>
</div>
{% endif %}