<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, 1);
        "
      >
        <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-10">
      <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>({{ $t('footer.districtSta') }} | {{ $t('footer.upperBavaria') }})</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>
          <h3>Social Media</h3>
            <p> 
              <a
                class="socialIcon"
                href="www.linkedin.com/company/digimedialoop"
                target="_blank"
                rel="noopener noreferrer"
                aria-label="LinkedIn"
              >
                <svg viewBox="0 0 448 512">
                    <path d="M100.3 448H7.4V148.9h92.9zM53.8 108.1C24.1 108.1 0 83.5 0 53.8a53.8 53.8 0 0 1 107.6 0c0 29.7-24.1 54.3-53.8 54.3zM447.9 448h-92.7V302.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V448h-92.8V148.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V448z"/>
                </svg>
              </a>
              <a
                class="socialIcon"
                href="https://www.instagram.com/digimedialoop/"
                target="_blank"
                rel="noopener noreferrer"
                aria-label="Insta"
              >
                <svg viewBox="0 0 448 512">
                  <path d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"/>
                </svg>
              </a>
              
              <a
                class="socialIcon"
                href="https://www.facebook.com/profile.php?id=61577959880778"
                target="_blank"
                rel="noopener noreferrer"
                aria-label="Facebook"
              >
                <svg viewBox="0 0 512 512">
                  <path d="M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5V334.2H141.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287V510.1C413.8 494.8 512 386.9 512 256h0z"/>
                </svg>
              </a>
            </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', 'terms']

 </script>
 

 
<style lang="sass">
footer
    background-image: linear-gradient(to top , rgba(15, 15, 15, 1), rgba(38, 38, 38, 1))
    position: relative
    width: 100vw
    color: white
    z-index: 9
    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
        .socialIcon     
            margin: .5rem 1rem .5rem 0    
            display: inline-block 
            svg
              width: 1.25rem
              height: auto
              path
                fill: white

</style>