{% set asseturl = craft.app.sites.primarySite.baseUrl %}
{% set baseurl = currentSite.baseUrl %}
{% set element = (category ?? entry ?? null) %}
<header class="wm-site-header js-wm-site-header wm-site-header--no-margin">
    <div class="wm-skip-links js-wm-skip-links wm-h-vh"><a href="#content" class="wm-btn wm-btn--small js-wm-skip-link">Zum Inhalt springen
        </a><a href="https://www.wien.gv.at/info/barrierefreiheit.html"
            class="wm-btn wm-btn--small wm-btn--i js-wm-skip-link">Barrierefreiheit auf wien.gv.at</a></div>
    <div class="wm-site-header__inner">
        <div class="wm-site-header__title"><a href="{{baseurl}}" class="wm-link--unstyled">{{ "Daseinsvorsorge in Wien" |t }}</a></div><span
            class="wm-site-header__logo"><a class="wm-site-header__logo-link" href="/"><span class="wm-h-vh">Startseite
                    wien.gv.at</span>
                {% if currentSite.language=="en" %} <img src="{{companyInfo.logoen.one().url}}">
                {% else %} <img src="{{companyInfo.logo.one().url}}">
                {% endif %}
            </a></span>
    </div>
    <div data-wm-nav-main-wrapper="" class="wm-nav-wrapper wm-nav-wrapper--h wm-nav-wrapper--nebelgrau">
        <div class="wm-nav-wrapper__inner wm-nav-wrapper__inner--h">
            <button type="button" id="hamburgermenu" class="wm-nav-main__toggle wm-nav-main-btn wm-btn--clean" data-wm-nav-main-toggle=""
                role="button" aria-expanded="false" aria-controls="nav_content"><span
                    class="wm-nav-main-btn__text wm-nav-main-btn__text--burger wm-h-vh wm-nav-main-btn__text--hidden">Menü
                </span><span><svg class="wm-icon wm-nav-main-btn__icon wm-nav-main-btn__icon--open" width="28" height="28"
                        aria-hidden="true" focusable="false">
                        <use xlink:href="/assets/icons/sprite.symbol.svg#burger"></use>
                    </svg> <svg class="wm-icon wm-nav-main-btn__icon wm-nav-main-btn__icon--close" width="28" height="28" aria-hidden="true"
                        focusable="false">
                        <use xlink:href="/assets/icons/sprite.symbol.svg#close"></use>
                    </svg></span></button>
            <nav class="wm-nav-main wm-nav-main--h" data-wm-nav-main="true" aria-labelledby="mainnav_title" id="menu"><img id="close"
                    src="{{ craft.app.sites.primarySite.baseUrl }}/assets/x-lg.svg" alt="close"><span hidden=""
                    id="mainnav_title">Hauptmenü</span>
                <div class="wm-nav-main__header" data-wm-nav-main-header=""></div>
                <div class="wm-nav-main__inner" data-wm-nav-main-inner="" tabindex="-1">
                    <div class="wm-nav-main__content" id="nav_content">
                        <div class="wm-nav-main__lists">
                            <ol class="wm-nav-main__list wm-nav-main__list--is-visible">
                                {% for page in nav %}
                                <li>
                                    <a href="{{baseurl}}{{page.href}}" title="{{page.title}}" class="menu-item wm-nav-main__link">
                                        <span>{{page.title}}</span>
                                    </a>
                                </li>
                                {% endfor %}
                            </ol>
                        </div>
                    </div>
                </div>
            </nav>
            <div class="wm-nav-main__actions js-wm-nav-main-actions js-wm-search-container">
                <ul class="wm-u-mb0 wm-u-ttu wm-h-links--noline wm-list--reset wm-list--pipe">
                    <li><a href="{{ siteSwitcher('default', element) }}">de</a></li>
                    <li><a href="{{ siteSwitcher('enBdk', element) }}">en</a></li>
                </ul>
            </div>
        </div>
    </div>
</header>