{% extends 'layouts/layout.html.twig' %}
{% block content %}
<section class="content-header projects-header news-detail beige">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script type="text/javascript">
window.shareHeadline = '{{ newsDetail.headline }}';
</script>
{% if newsDetail.getShadowImage() %}
<div class="shadow-image-container project-detail" id="shadow-image-container">
{{ newsDetail.shadowImage.thumbnail('ProjectDetailShadow').html({
'imgAttributes': {
'class':'detail-shadow'
}
}) | raw }}
</div>
{% endif %}
<div class="container">
<div class="content-container">
<div class="date flex gap-10">
<svg width="13" height="14.333" viewBox="0 0 13 14.333">
<g id="Icon_feather-calendar" data-name="Icon feather-calendar"
transform="translate(0.5 0.5)">
<path id="Pfad_4321" data-name="Pfad 4321"
d="M5.833,6h9.333A1.33,1.33,0,0,1,16.5,7.328V16.62a1.33,1.33,0,0,1-1.333,1.328H5.833A1.33,1.33,0,0,1,4.5,16.62V7.328A1.33,1.33,0,0,1,5.833,6Z"
transform="translate(-4.5 -4.615)" fill="none"
stroke="#6b675d"
stroke-linecap="round" stroke-linejoin="round"
stroke-width="1"/>
<path id="Pfad_4322" data-name="Pfad 4322" d="M24,3V5.771"
transform="translate(-15.333 -3)" fill="none" stroke="#6b675d"
stroke-linecap="round" stroke-linejoin="round"
stroke-width="1"/>
<path id="Pfad_4323" data-name="Pfad 4323" d="M12,3V5.771"
transform="translate(-8.667 -3)" fill="none" stroke="#6b675d"
stroke-linecap="round" stroke-linejoin="round"
stroke-width="1"/>
<path id="Pfad_4324" data-name="Pfad 4324" d="M4.5,15h12"
transform="translate(-4.5 -9.667)" fill="none"
stroke="#6b675d"
stroke-linecap="round" stroke-linejoin="round"
stroke-width="1"/>
</g>
</svg>
<p>{{ newsDetail.date | date('d.m.Y') }}</p>
</div>
{% if newsDetail.headline %}
<h1 class="light dark">{{ newsDetail.headline | nl2br }}</h1>
{% endif %}
{% if newsDetail.intro %}
<div class="colored lead">
<p>{{ newsDetail.intro | nl2br }}</p>
</div>
{% endif %}
</div>
</div>
</section>
{% for contentItem in newsDetail.content.items %}
{% if contentItem.type == "Text" %}
<section class="content-type-text beige news-detail">
<div class="container">
<div class="content-container">
<div class="item-lead {{ contentItem.TextType | lower }} {{ contentItem.TextWidth }} {{ contentItem.marginTop }}">
{{ contentItem.Text | raw }}
</div>
</div>
</div>
</section>
{% endif %}
{% if contentItem.type == "Gallery" %}
{% if contentItem.GalleryImg | length > 1 %}
<section class="teaser-swiper news-teaser projekt-teaser detail-page beige news-detail-gallery">
<div class="container teaser-container">
<div class="news-swiper-container projekt-swiper-container detail-page">
<div class="swiper newsTeaserSwiper projektTeaserSwiper">
<div class="swiper-wrapper">
{% for image in contentItem.GalleryImg %}
<div class="swiper-slide">
<div class="teaser">
{{ image.thumbnail('ProjektTeaser').html | raw }}
</div>
</div>
{% endfor %}
</div>
<div class="swipe-controls">
<div class="newsTeaserSwiperNext"></div>
<div class="newsTeaserSwiperPrev"></div>
</div>
</div>
</div>
</div>
</section>
{% else %}
<section class="content-type-text beige news-detail-single-image">
<div class="container">
<div class="content-container">
{{ newsDetail.teaserImage.thumbnail('FullHD').html | raw }}
</div>
</div>
</section>
{% endif %}
{% endif %}
{% endfor %}
<section class="content-type-text beige buttons-section news-detail-page">
<div class="container">
<div class="buttons-row flex project-detail-site">
<div class="buttons-back flex">
<button class="primary">
<a href="/service/kontakt" target="_self" title="{{ 'Kontakt' | trans }}">
{{ 'Kontakt' | trans }}
<svg width="15.708" height="10.709" viewBox="0 0 15.708 10.709">
<g transform="translate(0 0.354)">
<g transform="translate(0)">
<path class="line" d="M7.5,18h15" transform="translate(-7.5 -13)" fill="none" stroke="#b76e2b" stroke-linejoin="round" stroke-width="1"/>
<path class="arrow" d="M18,7.5l5.026,5L18,17.5" transform="translate(-8.027 -7.5)" fill="none" stroke="#b76e2b" stroke-width="1"/>
</g>
</g>
</svg>
</a>
</button>
<button class="primary">
<a onclick="window.history.back()" target="_self" title="{{ 'Zurück' | trans }}">
{{ 'Zurück' | trans }}
<svg width="15.708" height="10.709" viewBox="0 0 15.708 10.709">
<g transform="translate(0 0.354)">
<g transform="translate(0)">
<path class="line" d="M7.5,18h15" transform="translate(-7.5 -13)" fill="none" stroke="#b76e2b" stroke-linejoin="round" stroke-width="1"/>
<path class="arrow" d="M18,7.5l5.026,5L18,17.5" transform="translate(-8.027 -7.5)" fill="none" stroke="#b76e2b" stroke-width="1"/>
</g>
</g>
</svg>
</a>
</button>
</div>
<div class="flex gap-20">
<p class="share-label flex align-center">SHARE</p>
<div class="share-buttons">
<a class="resp-sharing-button__link" href="https://facebook.com/sharer/sharer.php?u={{ app.request.uri }}" target="_blank" rel="noopener" aria-label="">
<div class="resp-sharing-button resp-sharing-button--facebook resp-sharing-button--small"><div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.77 7.46H14.5v-1.9c0-.9.6-1.1 1-1.1h3V.5h-4.33C10.24.5 9.5 3.44 9.5 5.32v2.15h-3v4h3v12h5v-12h3.85l.42-4z"/></svg>
</div>
</div>
</a>
<a class="resp-sharing-button__link" href="mailto:?subject={{ newsDetail.headline | nl2br }}&body={{ app.request.uri }}" target="_self" rel="noopener" aria-label="">
<div class="resp-sharing-button resp-sharing-button--email resp-sharing-button--small"><div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M22 4H2C.9 4 0 4.9 0 6v12c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7.25 14.43l-3.5 2c-.08.05-.17.07-.25.07-.17 0-.34-.1-.43-.25-.14-.24-.06-.55.18-.68l3.5-2c.24-.14.55-.06.68.18.14.24.06.55-.18.68zm4.75.07c-.1 0-.2-.03-.27-.08l-8.5-5.5c-.23-.15-.3-.46-.15-.7.15-.22.46-.3.7-.14L12 13.4l8.23-5.32c.23-.15.54-.08.7.15.14.23.07.54-.16.7l-8.5 5.5c-.08.04-.17.07-.27.07zm8.93 1.75c-.1.16-.26.25-.43.25-.08 0-.17-.02-.25-.07l-3.5-2c-.24-.13-.32-.44-.18-.68s.44-.32.68-.18l3.5 2c.24.13.32.44.18.68z"/></svg>
</div>
</div>
</a>
<a class="resp-sharing-button__link" href="https://www.linkedin.com/shareArticle?mini=true&url={{ app.request.uri }}&title={{ newsDetail.headline | nl2br }}&summary={{ newsDetail.headline | nl2br }}&source={{ app.request.uri }}" target="_blank" rel="noopener" aria-label="">
<div class="resp-sharing-button resp-sharing-button--linkedin resp-sharing-button--small"><div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 21.5h-5v-13h5v13zM4 6.5C2.5 6.5 1.5 5.3 1.5 4s1-2.4 2.5-2.4c1.6 0 2.5 1 2.6 2.5 0 1.4-1 2.5-2.6 2.5zm11.5 6c-1 0-2 1-2 2v7h-5v-13h5V10s1.6-1.5 4-1.5c3 0 5 2.2 5 6.3v6.7h-5v-7c0-1-1-2-2-2z"/></svg>
</div>
</div>
</a>
{#<a class="resp-sharing-button__link" href="https://www.xing.com/app/user?op=share;url={{ app.request.uri }};title={{ newsDetail.headline | nl2br }}" target="_blank" rel="noopener" aria-label="">
<div class="resp-sharing-button resp-sharing-button--xing resp-sharing-button--small"><div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10.2 9.7l-3-5.4C7.2 4 7 4 6.8 4h-5c-.3 0-.4 0-.5.2v.5L4 10 .4 16v.5c0 .2.2.3.4.3h5c.3 0 .4 0 .5-.2l4-6.6v-.5zM24 .2l-.5-.2H18s-.2 0-.3.3l-8 14v.4l5.2 9c0 .2 0 .3.3.3h5.4s.3 0 .4-.2c.2-.2.2-.4 0-.5l-5-8.8L24 .7V.2z"/></svg>
</div>
</div>
</a>#}
</div>
</div>
</div>
</div>
</section>
{% endblock %}