/* =========================================================
   PFLEGEKOLLEKTIV LIQUID GLASS LOADER
========================================================= */

.pk-site-loader {
    position: fixed;
    inset: 0;

    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .72),
            rgba(255, 255, 255, .48)
        );

    backdrop-filter:
        blur(24px)
        saturate(135%);

    -webkit-backdrop-filter:
        blur(24px)
        saturate(135%);

    opacity: 1;
    visibility: visible;

    transition:
        opacity .7s cubic-bezier(.22, 1, .36, 1),
        visibility .7s;
}


/* =========================================================
   LIQUID BACKGROUND LIGHT
========================================================= */

.pk-site-loader::before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    left: 50%;
    top: 50%;

    transform:
        translate(-65%, -55%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(105, 188, 215, .20) 0%,
            rgba(105, 188, 215, .08) 45%,
            transparent 72%
        );

    filter: blur(15px);

    animation:
        pkLoaderGlowOne
        7s
        ease-in-out
        infinite;
}


.pk-site-loader::after {
    content: "";

    position: absolute;

    width: 480px;
    height: 480px;

    left: 50%;
    top: 50%;

    transform:
        translate(-30%, -35%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(244, 153, 91, .16) 0%,
            rgba(244, 153, 91, .05) 45%,
            transparent 72%
        );

    filter: blur(18px);

    animation:
        pkLoaderGlowTwo
        8s
        ease-in-out
        infinite;
}


/* =========================================================
   FLOATING LIQUID BLOBS
========================================================= */

.pk-site-loader__liquid {
    position: absolute;

    border-radius:
        42% 58% 65% 35% /
        45% 38% 62% 55%;

    opacity: .45;

    filter: blur(2px);

    pointer-events: none;
}


.pk-site-loader__liquid--1 {
    width: 260px;
    height: 260px;

    left: 15%;
    top: 18%;

    background:
        rgba(105, 188, 215, .08);

    animation:
        pkLiquidMoveOne
        10s
        ease-in-out
        infinite;
}


.pk-site-loader__liquid--2 {
    width: 220px;
    height: 220px;

    right: 13%;
    bottom: 14%;

    background:
        rgba(244, 153, 91, .07);

    animation:
        pkLiquidMoveTwo
        11s
        ease-in-out
        infinite;
}


/* =========================================================
   CENTER
========================================================= */

.pk-site-loader__center {
    position: relative;

    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   GLASS CAPSULE
========================================================= */

.pk-site-loader__glass {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 190px;
    height: 190px;

    border:
        1px solid
        rgba(255, 255, 255, .68);

    border-radius:
        42% 58% 52% 48% /
        48% 42% 58% 52%;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .58),
            rgba(255, 255, 255, .22)
        );

    backdrop-filter:
        blur(22px)
        saturate(140%);

    -webkit-backdrop-filter:
        blur(22px)
        saturate(140%);

    box-shadow:
        0 30px 80px
        rgba(30, 42, 56, .10),

        inset 0 1px 0
        rgba(255, 255, 255, .95),

        inset 0 -1px 0
        rgba(255, 255, 255, .35);

    animation:
        pkGlassMorph
        7s
        ease-in-out
        infinite;
}


.pk-site-loader__glass::before {
    content: "";

    position: absolute;

    inset: 10px;

    border-radius: inherit;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .28),
            transparent 45%
        );

    pointer-events: none;
}


/* Make logo stay above glass effects */

.pk-site-loader__glass
.pk-logo-animation {
    position: relative;

    z-index: 2;
}


/* =========================================================
   HIDE
========================================================= */

.pk-site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;

    pointer-events: none;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes pkGlassMorph {

    0%,
    100% {
        border-radius:
            42% 58% 52% 48% /
            48% 42% 58% 52%;

        transform:
            translateY(0)
            scale(1);
    }

    33% {
        border-radius:
            56% 44% 38% 62% /
            44% 58% 42% 56%;

        transform:
            translateY(-5px)
            scale(1.015);
    }

    66% {
        border-radius:
            47% 53% 61% 39% /
            58% 44% 56% 42%;

        transform:
            translateY(3px)
            scale(.99);
    }

}


@keyframes pkLoaderGlowOne {

    0%,
    100% {
        transform:
            translate(-65%, -55%)
            scale(1);
    }

    50% {
        transform:
            translate(-58%, -62%)
            scale(1.15);
    }

}


@keyframes pkLoaderGlowTwo {

    0%,
    100% {
        transform:
            translate(-30%, -35%)
            scale(1);
    }

    50% {
        transform:
            translate(-37%, -28%)
            scale(1.12);
    }

}


@keyframes pkLiquidMoveOne {

    0%,
    100% {
        transform:
            translate3d(0, 0, 0)
            rotate(0deg);
    }

    50% {
        transform:
            translate3d(35px, 20px, 0)
            rotate(12deg);
    }

}


@keyframes pkLiquidMoveTwo {

    0%,
    100% {
        transform:
            translate3d(0, 0, 0)
            rotate(0deg);
    }

    50% {
        transform:
            translate3d(-30px, -25px, 0)
            rotate(-10deg);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .pk-site-loader__glass {
        width: 155px;
        height: 155px;
    }

    .pk-site-loader__glass
    .pk-logo-animation {
        --pk-logo-size: 95px !important;
    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .pk-site-loader::before,
    .pk-site-loader::after,
    .pk-site-loader__liquid,
    .pk-site-loader__glass {
        animation: none;
    }

}

/* =========================================================
   LOADER LOGO SPEED
========================================================= */

.pk-site-loader .pk-logo-part {
    animation-duration: 5s;
}

.pk-site-loader .pk-logo-head {
    animation-duration: 5s;
}
