{% extends get_base_template() %}

{% block body %}
    <section class="clearfix">
        <h1>{{ page.pagetitle|default(page.title) }}</h1>

        {#{% for i in 0..page.children|length//3 %}#}
        <div class="row">
            {% for tp in sunstar_travel_programs %}

                <div class="col-md-4 col-sm-4">
                    <div class="travel-wrapper get-box-link">
                        <div class="item text-left">
                            <div class="item-img">
                                <div class="lb">
                                    {% if tp.minimumPrice is not empty %}
                                        <div class="cprice">ab {{ tp.minimumPrice }} € p.P.</div>
                                    {% endif %}
                                    {% if tp.minimumAge is not empty and tp.maximumAge is not empty %}
                                        <div class="cdiscount">
                                            {{ tp.minimumAge }} - {{ tp.maximumAge }} Jahre
                                        </div>
                                    {% endif %}
                                </div>

                                <div class="img-background" style="background-image: url('{{ tp.imageUrl }}');"></div>

                            </div>
                            <div class="box_mid">
                                <div class="hl5">{{ tp.title }}</div>
                                <p>{{ tp.description }}</p>
                            </div>
                            <a class="item-button is-box-link dobble_line" href="{{ tp.url }}" title="{{ tp.title }}"
                               rel="nofollow" target="_blank"
                            >
                                <span>{{ tp.title }}</span>
                            </a>
                        </div>
                    </div>
                </div>

            {% endfor %}
        </div>
    </section>

    <section class="clearfix">
        {{ page.content|raw|keywords }}
    </section>
{% endblock %}