<template>
    <footer>
    <div>
      <svg
        xmlns="http://www.w3.org/2000/svg"
        xmlns:xlink="http://www.w3.org/1999/xlink"
        viewBox="0 0 500 20"
        class="svgwavetop"
        aria-hidden="true"
        style="
          transform: scaleY(-1) scaleX(-1) translateY(99%);
          fill: rgba(38, 38, 38, 0.95);
        "
      >
        <g clip-path="url(#_clipPath_5kVoellZ93LI5Lc2i2b27JZsraaBm0XM)">
          <path
            id="wave"
            d=" M 0 0 L 500 0 L 500 14 Q 354.4 -2.8 250 11 Q 145.6 24.8 0 14 L 0 0 Z "
          />
        </g>
      </svg>
    </div>
    <div class="container-5">
      <div class="row align-items-end">
        <div class="col-lg-4 mb-4">
          <p>
            <NuxtImg
              provider="strapi"
              :src="invertLogoUrl"
              :alt="companyinfo?.company"
              class="logo mb-1"
              loading="lazy"
            />
          </p>
          <p v-if="false">{{ companyinfo?.contact }}</p>
          <p>{{ companyinfo?.street }}</p>
          <p>
            {{ companyinfo?.postalcode }}
            {{ companyinfo?.city }}
          </p>
          <p><i>{{ companyinfo?.district }}</i></p>
          <br >
          <p v-if="false" class="mb-4">
              <span class="icon">
                <svg>
                  <use xlink:href="/assets/icons/collection.svg#location"/>
                </svg>
              </span>{{ companyinfo?.latitude }} | {{ companyinfo?.longitude }}
            </p>
            <p>
              <span class="icon">
                <svg>
                  <use xlink:href="/assets/icons/collection.svg#phone"/>
                </svg>
              </span>{{ companyinfo?.phone }}
            </p>
            <p>
              <span class="icon">
                <svg>
                  <use xlink:href="/assets/icons/collection.svg#envelope"/>
                </svg>
              </span>{{ companyinfo?.email }}
            </p>
            <p>
              <span class="icon">
                <svg>
                  <use xlink:href="/assets/icons/collection.svg#desktop"/>
                </svg>
              </span>www.{{ companyinfo?.web }}
            </p>

          
        </div>
        <div class="col-lg-3 pt-4 mb-4">
          <div class="text-left footerNav">
            <h3>{{ $t('importantLinks') }}</h3>
            <p>
              <NuxtLinkLocale
                v-for="(key, index) in footerRouteNames"
                :key="index"
                :to="{ name: key }"
              >
                {{ $t(key) }}
              </NuxtLinkLocale>
          </p>
            
          </div>
        </div>
        <div class="col-lg-5 mb-4">
          <div class="certificates">
            <NuxtImg
              provider="strapi"
              src="/uploads/exali_Siegel_5adfae16cb.jpg"
              alt="exali-Versicherungssiegel"
              format="webp"
              loading="lazy"
            />
            <NuxtImg
              provider="strapi"
              src="/uploads/XDI_zertifikat_162b61f4ad.png"
              alt="XDI-Zertifizierung"
              format="webp"
              loading="lazy"
            />
          </div>
          <p class="mb-3">
            Handcrafted webdesign with passion and
            <span class="bigIcon heart">
              <svg>
                <use xlink:href="/assets/icons/collection.svg#heart"/>
              </svg>
            </span>
          </p>
          <p class="powered">
            Powered by
            <NuxtImg
              provider="strapi"
              src="/uploads/nuxt_Logo_white_1ad151de78.svg"
              alt="Nuxt Logo"
              loading="eager"
              height="26"
            />
            <span class="bigIcon">
              <svg><use xlink:href="/assets/icons/collection.svg#plus"/></svg>
            </span>
            <NuxtImg
              provider="strapi"
              src="/uploads/strapi_logo_071ec5df4d.png"
              alt="Strapi Logo"
              loading="eager"
              height="26"
            />
          </p>
          <ClientOnly>
            <p class="mt-4">
              &copy; 2018-{{ new Date().getFullYear() }} by {{ companyinfo?.web }}
            </p>
          </ClientOnly>
        </div>
      </div>
    </div>
  </footer>
  </template>
 <script setup>
 
 const mainStore = useMainStore()
 const { companyinfo, invertLogoUrl } = storeToRefs(mainStore)

 const footerRouteNames = ['imprint', 'privacy', 'magazin', 'terms']

 </script>
 

 
<style lang="sass">
footer
    background: rgba(38,38,38,.95)
    position: relative
    width: 100vw
    color: white
    z-index: 10
    height: auto
    min-height: 120px
    margin-top: 100px
    padding-bottom: 2rem

    .topshape
        fill: white
        transform: translateY(-1px)

    p
        font-size: calc($fontSizeNormal - 20%)
        line-height: 1.3rem
        margin-bottom: 0.2rem
        margin-top: .2rem

        i
          font-size: .8rem
        a
          cursor: pointer
          color: white
          font-weight: bold
          border-bottom: 0

          &:hover
            box-shadow: 0 0 20px 0 rgba($primaryColor, .3)
            background-color: rgba($primaryColor, .2)
            border-radius: 4px

          &.router-link-active
            color: lighten($pink, 15%) !important

    .logo
        width: 10rem !important

    .icon
        margin-right: 1rem
        width: 1.2rem
        display: inline-block
        text-align: center

        svg
            width: 100%
            fill: white
            max-height: 1.5rem

    .bigIcon
        margin-right: .2rem
        margin-left: .2rem
        width: 1.2rem
        display: inline-block
        text-align: center

        svg
            width: 100%
            fill: white
            max-height: 1.5rem

        &.heart
          svg
            fill: $pink

    .certificates
        img
            height: 10vw
            max-height: 80px
            filter: grayscale(100%)
            margin: 1rem

            @media(max-width: $breakPointMD)
                height: 18vw
                margin-bottom: 2.5rem

    .powered
        img
            height: 20px
            margin: auto 15px

    .footerNav
        h3
            color: #b2b2b2
            font-size: .8rem
            text-transform: uppercase
            font-weight: 800
            margin-bottom: 0rem

        p
            margin-top: .5rem
            display: inline-block

            a
                display: block
                margin: .25rem 0
                text-decoration: none

                &.router-link-active
                    color: $pink

</style>