{% block element_accordion %}
{% set config = element.config.config.value %}
{% set iconClose = config.icon.icoClose %}
{% set iconOpen = config.icon.icoOpen %}
<div class="sz-accordion--container">
<div class="sz-accordion--accordion">
{% for item in element.config.items.value %}
<div class="accordion-item">
<button id="accordion-button-{{ loop.index }}" aria-expanded="false"
class="accordion-element-radius-{{ config.borderRadius }} d-flex justify-content-between"
style="background-color: {% if item.colors.titleClose %}{{ item.colors.titleClose }}{% else %}{{ config.colors.titleClose }}{% endif%}" >
{% if element.config.config.value.icon.side == "left" %}
<span class="icon-f icon-close">
{% sw_icon 'arrow_down' style {
'namespace': 'Tuerschild_2',
} %} </span>
<span class="icon-f icon-open">
{% sw_icon 'arrow_down' style {
'namespace': 'Tuerschild_2',
} %} </span>
{% endif %}
<span class="accordion-title">{{ item.title }}</span>
{% if element.config.config.value.icon.side == "right"%}
<span class="icon-f icon-close">
{% sw_icon 'arrow_down' style {
'namespace': 'Tuerschild_2',
} %} </span>
<span class="icon-f icon-open">
{% sw_icon 'arrow_down' style {
'namespace': 'Tuerschild_2',
} %} </span>
{% endif %}
</button>
<div class="accordion-content"
style="background-color: {% if item.colors.body %}{{ item.colors.body }}{% else %}{{ config.colors.body }}{% endif%}" >
{{ item.content }}
</div>
</div>
{% endfor %}
</div>
</div>
{% endblock %}