/* Kontaktkarte */

.contactcard {
    width: 220px;
    margin-bottom: 20px;
    cursor: pointer;
    display: none;
}

@media (min-width: 768px) {
    .contactcard {
        display: block;
    }
}

.contactcard__inner {
    background-size: cover;
    background-position: center -15px;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    position: relative;
    height: 300px;
}

.contactcard__background {
    position: absolute;
    bottom: -1px;
    right: -1px;
}

.contactcard__overlay {
    position: relative;
    height: 250px;
}

.contactcard__overlay::before {
    position: absolute;
    z-index: 20;
    top: 0;
    left: -75%;
    display: block;
    content: "";
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
    transform: skewX(-25deg);
}

.contactcard__phone {
    position: absolute;
    right: 20px;
    top: 60%;
    width: 50px;
    height: 50px;
    background: radial-gradient(50% 50% at 50% 50%, #1DBC91 24%, #00A075 100%);
    box-shadow: 0px 1px 4px rgba(0, 160, 117, 0.5);
    border-radius: 50%;
    z-index: 15;
}

.contactcard__phone svg {
    fill: #fff;
    width: 25px;
    height: 25px;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    position: absolute;
}

.contactcard__text {
    position: absolute;
    bottom: 10px;
    left: 50%;
    z-index: 10;
    transform: translate(-50%, 0);
    width: 100%;
}

.contactcard__text__headline,
.contactcard__text__subline {
    margin: 0;
    text-align: center;
    color: #005E52;
}

.contactcard__text__subline {
    font-size: 15px;
}

.contactcard.sticky-button.-minimized {
    width: 100px;
}

.contactcard.sticky-button.-minimized .contactcard__inner {
    height: 150px;
    background-position: center;
}

.contactcard.sticky-button.-minimized .contactcard__overlay {
    display: none;
}

.contactcard.sticky-button.-minimized .contactcard__text {
    display: none;
}

.contactcard.sticky-button.-minimized .contactcard__phone {
    right: 5px;
    bottom: 5px;
    top: auto;
}

.contactcard.sticky-button.-minimized .contactcard__background {
    display: none;
}

.contactcard.sticky-button.-minimized:hover {
    width: 220px;
    padding: 0;
}

.contactcard.sticky-button.-minimized:hover .contactcard__inner {
    height: 250px;
    background-position: center -10px;
}

.contactcard.sticky-button.-minimized:hover .contactcard__overlay {
    display: block;
}

.contactcard.sticky-button.-minimized:hover .contactcard__text {
    display: block;
}

.contactcard.sticky-button.-minimized:hover .contactcard__phone {
    right: 20px;
    top: 50%;
    bottom: auto;
}

.contactcard.sticky-button.-minimized:hover .contactcard__background {
    display: block;
}

.contactcard:hover {
    box-shadow: -2px 0px 14px 0px rgba(0, 0, 0, 0.4);
}

.contactcard:hover .contactcard__phone {
    animation: pulse 2s infinite;
}

.contactcard:hover .contactcard__phone svg {
    top: 49%;
}

.contactcard:hover .contactcard__overlay::before {
    animation: shine 0.75s;
}

.contactcard.sticky-button {
    padding: 0;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0px 1px 4px rgba(0, 160, 117, 0.5);
    }

    70% {
        transform: scale(1);
        box-shadow: 0px 1px 6px rgba(0, 160, 117, 0.8);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0px 1px 4px rgba(0, 160, 117, 0.5);
    }
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

.sticky-side {
    z-index: 10;
}

@media (max-width: 767.98px) {
    .sticky-side > .contactcard {
        display: none;
    }
    .sticky-side > .contactcard,
    .sticky-side.-is-fixed {
        z-index: 20
    }
    .sticky-button {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
}

/* Kontaktkarte */