<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
      xmlns:sms="http://typo3.org/ns/SMS/SmsResponsiveImages/ViewHelpers"
      xmlns:bear="http://typo3.org/ns/AmadeusAgentur/Stwm_Sitepackage/ViewHelpers"
      data-namespace-typo3-fluid="true">
<f:layout name="Default"></f:layout>


<f:section name="Header">
    <div class="teaser-header">
        <f:if condition="{teaserimg}">
            <div class="teaser-image">
                <sms:image image="{teaserimg.0}" srcset="370, 740"/>
            </div>
        </f:if>

        <f:if condition="{data.header}">
            <div class="teaser-title">
                <f:if condition="{data.header_link}">
                    <f:then>
                        <f:link.typolink parameter="{data.header_link}">{data.header}</f:link.typolink>
                    </f:then>
                    <f:else>{data.header}</f:else>
                </f:if>
            </div>
        </f:if>
        <f:if condition="{data.subheader}">
            <div class="teaser-subtitle">{data.subheader}</div>
        </f:if>
    </div>
</f:section>


<f:section name="Main">
    <f:if condition="{data.bodytext}">
        <div class="teaser-body">
            <f:format.html>{data.bodytext}</f:format.html>
        </div>
    </f:if>
</f:section>

<f:section name="Footer">
    <div class="teaser-footer">
        <f:link.typolink parameter="{data.header_link}" class="teaser-link" parts-as="typoLinkParts">{f:if(condition: typoLinkParts.title, then: typoLinkParts.title, else: 'weitere Informationen')}</f:link.typolink>
    </div>
</f:section>

