<button x-data="{ open: false }" @click="open = !open" class="bg-gray-600 w-max items-center py-2 px-4 text-white flex gap-6 relative text-sm lg:text-base">
    <div class="flex items-center gap-2">

        <span class="inline-flex items-center w-8 h-8     ">
            <?xml version="1.0" encoding="utf-8"?>
            <!-- Generator: Adobe Illustrator 28.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
            <svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 400 400" style="enable-background:new 0 0 400 400;" xml:space="preserve">
                <style type="text/css">
                    .st0 {
                        fill: none;
                        stroke: #333333;
                        stroke-width: 10;
                        stroke-miterlimit: 10;
                    }

                    .st1 {
                        fill: none;
                        stroke: #333333;
                        stroke-width: 10;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                        stroke-miterlimit: 10;
                    }

                    .st2 {
                        fill: none;
                        stroke: #AF1B43;
                        stroke-width: 10;
                        stroke-miterlimit: 10;
                    }

                    .st3 {
                        fill: none;
                        stroke: #AF1B43;
                        stroke-width: 10;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                        stroke-miterlimit: 10;
                    }

                    .st4 {
                        fill: none;
                        stroke: #FFFFFF;
                        stroke-width: 10;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                        stroke-miterlimit: 10;
                    }

                    .st5 {
                        fill: none;
                        stroke: #1D1E1C;
                        stroke-width: 10;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                        stroke-miterlimit: 10;
                    }

                    .st6 {
                        fill: none;
                        stroke: #FFFFFF;
                        stroke-width: 10;
                        stroke-miterlimit: 10;
                    }

                    .st7 {
                        fill: none;
                        stroke: #333333;
                        stroke-width: 9.96097;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                        stroke-miterlimit: 10;
                    }

                    .st8 {
                        fill: none;
                        stroke: #AF1B43;
                        stroke-width: 9.96097;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                        stroke-miterlimit: 10;
                    }

                    .st9 {
                        fill: none;
                        stroke: #FFFFFF;
                        stroke-width: 9.96097;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                        stroke-miterlimit: 10;
                    }

                    .st10 {
                        fill: none;
                        stroke: #333333;
                        stroke-width: 9.94439;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                        stroke-miterlimit: 10;
                    }

                    .st11 {
                        fill: none;
                        stroke: #AF1B43;
                        stroke-width: 9.94439;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                        stroke-miterlimit: 10;
                    }

                    .st12 {
                        fill: none;
                        stroke: #FFFFFF;
                        stroke-width: 9.94439;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                        stroke-miterlimit: 10;
                    }

                    .st13 {
                        fill: #FFFFFF;
                    }

                    .st14 {
                        fill: none;
                        stroke: #AF1B43;
                        stroke-width: 10.11154;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                        stroke-miterlimit: 10;
                    }

                    .st15 {
                        fill: none;
                        stroke: #AF1B43;
                        stroke-width: 11.01703;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                        stroke-miterlimit: 10;
                    }

                    .st16 {
                        fill: #FFFFFF;
                        stroke: #AF1B43;
                        stroke-width: 10;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                        stroke-miterlimit: 10;
                    }

                    .st17 {
                        fill: none;
                        stroke: #FFFFFF;
                        stroke-width: 10.11154;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                        stroke-miterlimit: 10;
                    }

                    .st18 {
                        fill: none;
                        stroke: #FFFFFF;
                        stroke-width: 11.01703;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                        stroke-miterlimit: 10;
                    }

                    .st19 {
                        fill: #FFFFFF;
                        stroke: #FFFFFF;
                        stroke-width: 10;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                        stroke-miterlimit: 10;
                    }

                    .st20 {
                        fill: none;
                        stroke: #333333;
                        stroke-width: 10.07235;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                        stroke-miterlimit: 10;
                    }

                    .st21 {
                        fill: none;
                        stroke: #333333;
                        stroke-width: 10.0209;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                        stroke-miterlimit: 10;
                    }

                    .st22 {
                        fill: none;
                        stroke: #AF1B43;
                        stroke-width: 10.07235;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                        stroke-miterlimit: 10;
                    }

                    .st23 {
                        fill: none;
                        stroke: #AF1B43;
                        stroke-width: 10.0209;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                        stroke-miterlimit: 10;
                    }

                    .st24 {
                        fill: none;
                        stroke: #FFFFFF;
                        stroke-width: 10.07235;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                        stroke-miterlimit: 10;
                    }

                    .st25 {
                        fill: none;
                        stroke: #FFFFFF;
                        stroke-width: 10.0209;
                        stroke-linecap: round;
                        stroke-linejoin: round;
                        stroke-miterlimit: 10;
                    }

                    .st26 {
                        fill: none;
                        stroke: #333333;
                        stroke-width: 10;
                        stroke-linecap: round;
                        stroke-miterlimit: 10;
                    }

                    .st27 {
                        fill: none;
                        stroke: #AF1B43;
                        stroke-width: 10;
                        stroke-linecap: round;
                        stroke-miterlimit: 10;
                    }

                    .st28 {
                        fill: none;
                        stroke: #FFFFFF;
                        stroke-width: 10;
                        stroke-linecap: round;
                        stroke-miterlimit: 10;
                    }
                </style>
                <g>
                    <circle class="st4" cx="200" cy="200" r="168.90668" />
                    <line class="st4" x1="31.09333" y1="200" x2="348.98587" y2="200" />
                    <line class="st4" x1="200" y1="31.09333" x2="200" y2="368.90668" />
                    <ellipse class="st4" cx="200" cy="200" rx="86.05878" ry="168.90668" />
                    <path class="st4" d="M84.50507,100.5538c86.32178,26.70246,165.8439,24.67728,244.36984-5.50942" />
                    <path class="st4" d="M67.65932,304.95563c91.3526-31.23828,178.50104-31.79688,261.21558,0" />
                </g>
            </svg>

        </span>

        <div class="max-sm:hidden">
            Deutsch
        </div>
    </div>
    <div class="relative w-4 max-sm:hidden">
        <div class="bg-white w-full h-[1.5px] absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"></div>
        <div :class="open ? 'w-0 left-full' : 'w-full left-1/2' " class="bg-white h-[1.5px] transition-all absolute top-1/2 -translate-x-1/2 -translate-y-1/2 rotate-90"></div>
    </div>
    <div :class="open ? 'opacity-100' : 'opacity-0'" class="absolute bottom-[100%] left-0 gap-4 max-sm:w-[164px] max-sm:translate-x-[-100px] transition-opacity pt-2 pb-4 px-4 text-black border border-[#F2F2F2] bg-white flex flex-col justify-start">
        <a class="w-[8.5rem] items-center flex justify-between" href="/de">
            <span>
                Deutsch
            </span>
            <span>

                <span class="inline-flex items-center w-8 h-8  stroke-primary fill-primary  ">
                    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="20px" width="20px" version="1.1" id="Layer_1" viewbox="0 0 50 50" enable-background="new 0 0 50 50" xml:space="preserve">
                        <path d="M40.267,14.628L20.974,33.921l-9.293-9.293c-0.391-0.391-1.023-0.391-1.414,0s-0.391,1.023,0,1.414l10,10  c0.195,0.195,0.451,0.293,0.707,0.293s0.512-0.098,0.707-0.293l20-20c0.391-0.391,0.391-1.023,0-1.414S40.657,14.237,40.267,14.628z  " />
                    </svg>
                </span>

            </span>
        </a>
        <a class="w-[8.5rem] items-center flex justify-between" href="/en">
            <span>
                English
            </span>
        </a>
    </div>
</button>
{% set languages = languages %}
{% set Activelanguage = Activelanguage %}
{% set style = style|default('default') %}
{% set classes = classes %}

{% if languages %}
	<button x-data="{ open: false }" @click="open = !open" class="bg-gray-600 w-max items-center py-2 px-4 text-white flex gap-6 relative text-sm lg:text-base">
		<div class="flex items-center gap-2">
			{% render "@icon" with {
                    name: 'language-globe',
                    size: 'lg'
                } %}
			<div class="max-sm:hidden">
				{{ Activelanguage }}
			</div>
		</div>
		<div class="relative w-4 max-sm:hidden">
			<div class="bg-white w-full h-[1.5px] absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"></div>
			<div :class="open ? 'w-0 left-full' : 'w-full left-1/2' " class="bg-white h-[1.5px] transition-all absolute top-1/2 -translate-x-1/2 -translate-y-1/2 rotate-90"></div>
		</div>
		<div :class="open ? 'opacity-100' : 'opacity-0'" class="absolute bottom-[100%] left-0 gap-4 max-sm:w-[164px] max-sm:translate-x-[-100px] transition-opacity pt-2 pb-4 px-4 text-black border border-[#F2F2F2] bg-white flex flex-col justify-start">
			{% for item in languages %}
				<a class="w-[8.5rem] items-center flex justify-between" href="{{ item.link }}">
					<span>
						{{ item.label }}
					</span>
					{% if item.active %}
						<span>
							{% render "@icon" with {
                                name: 'checkmark',
                                strokeColor: "stroke-primary",
                                fillColor: "fill-primary",
                                size: 'lg'
                            } %}
						</span>
					{% endif %}
				</a>
			{% endfor %}
		</div>
	</button>
{% endif %}
{
  "Activelanguage": "Deutsch",
  "languages": [
    {
      "label": "Deutsch",
      "link": "/de",
      "active": true
    },
    {
      "active": false,
      "label": "English",
      "link": "/en"
    }
  ]
}

No notes defined.