{% if page.boxImageUrl is not empty %}
    {% set image_url = page.boxImageUrl %}
    {% set image_alt = page.travelProgram.title|default(page.title) %}
{% elseif page.travelProgram is not empty and page.travelProgram.previewImage is not empty %}
    {% set image_url = '/uploads/travel_program/' ~ page.travelProgram.previewImage.fileNameWithExtension %}
    {% set image_alt = page.title %}
{% elseif page.fewoLodging is not empty and page.fewoLodging.images is not empty and page.fewoLodging.images[0] is not empty %}
    {% set image_url = asset('uploads/images/' ~ page.fewoLodging.images[0].file) %}
    {% set image_alt = page.title %}
{% else %}
    {% set image_url = '/bundles/app/images/no-picture.png' %}
    {% set image_alt = 'Kein Vorschaubild vorhanden' %}
{% endif %}
<div class="img-background" style="background-image: url({{ image_url }})"></div>