/* Produktkacheln */

.goods {
    margin: 100px 0;
}

.goods__tile {
    width: 100%;
    height: 350px;
    position: relative;
}

.goods__tile__inner {
    transition: transform 0.65s cubic-bezier(0.05, 0.2, 0.1, 1), box-shadow 0.65s cubic-bezier(0.05, 0.2, 0.1, 1);
    position: relative;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.goods__tile__inner::before,
.goods__tile__inner::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    height: 50%;
    z-index: 5;
    transition: opacity 0.65s cubic-bezier(0.05, 0.2, 0.1, 1);
    opacity: 1;
}

.goods__tile__inner::after {
    background-color: transparent !important;
    background: linear-gradient(to bottom, var(--bg-color-0) 0%, var(--bg-color-30) 40%);
    opacity: 0;
}

.goods__tile img {
    transition: transform 1s ease, opacity 0.5s ease 0.25s;
    transform: scale(1);
    -webkit-transform: scale(1);
    max-width: none;
}

.goods__tile img:hover {
    transition: transform 9s cubic-bezier(0.1, 0.2, 0.7, 1);
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
}

.goods__tile:hover .goods__tile__arrow__one,
.goods__tile:hover .goods__tile__arrow__two {
    animation-name: bounceAlpha;
    animation-duration: 1.4s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.goods__tile:hover .goods__tile__arrow__one {
    animation-delay: 0.2s;
}

.goods__tile:hover .goods__tile__inner {
    transform: translate(0, -15.99px);
}

.goods__tile:hover h3,
.goods__tile:hover .goods__tile__arrow {
    transform: translate(0, -14.99px);
}

.goods__tile:hover .goods__tile__inner::before {
    opacity: 0;
}

.goods__tile:hover .goods__tile__inner::after {
    opacity: 1;
}

.goods__tile__arrow,
.goods__tile h3 {
    position: absolute;
    bottom: 0;
    margin: 0;
    background-color: #fff;
    padding: 20px;
    z-index: 10;
    transition: transform 0.65s cubic-bezier(0.05, 0.2, 0.1, 1), box-shadow 0.65s cubic-bezier(0.05, 0.2, 0.1, 1);
    transform: translate(0, 0.99px);
}

.goods__tile__arrow {
    right: 0;
    height: 60px;
    width: 100px;
    border-top-left-radius: 10px;
    padding: 20px 32px;
}

.goods__tile__arrow svg {
    fill: var(--bg-color);
    height: 20px;
    width: 20px;
}

.goods__tile__arrow__one,
.goods__tile__arrow__two {
    display: inline-block;
}

.goods__tile__arrow__two {
    margin-left: -10px;
}

.goods__tile h3 {
    left: 0;
    border-top-right-radius: 10px;
    color: #005E52;
}

.goods div a {
    margin: 40px 0 0;
    display: block;
}


@media (min-width: 768px) {
    .goods div:nth-child(2n) a {
        margin: -40px 0 0;
    }
}

@media (min-width: 992px) {
    .goods div:nth-child(2n) a {
        margin: 40px 0 0;
    }
}

@media (min-width: 992px) {
    .goods div:nth-child(3n) a {
        margin: -40px 0 0;
    }
}

@keyframes bounceAlpha {
    0% {
        opacity: 1;
        transform: translateX(0px) scale(1);
    }

    25% {
        opacity: 0;
        transform: translateX(10px) scale(0.9);
    }

    26% {
        opacity: 0;
        transform: translateX(-10px) scale(0.9);
    }

    55% {
        opacity: 1;
        transform: translateX(0px) scale(1);
    }
}

/* Produktskacheln */

.color--1 {
    --bg-color: #194383;
    --bg-color-0: #19438300;
    --bg-color-30: #1943834D;
    --box-shadow-color: rgba(25, 67, 131, 0.2);
    color: #194383;
}

.color--2 {
    --bg-color: #EB5B25;
    --bg-color-0: #EB5B2500;
    --bg-color-30: #EB5B254D;
    --box-shadow-color: rgba(235, 91, 37, 0.2);
    color: #EB5B25;
}

.color--3 {
    --bg-color: #FDC300;
    --bg-color-0: #FDC30000;
    --bg-color-30: #FDC3004D;
    --box-shadow-color: rgba(253, 195, 0, 0.2);
    color: #FDC300;
}

.color--4 {
    --bg-color: #87CEDC;
    --bg-color-0: #87CEDC00;
    --bg-color-30: #87CEDC4D;
    --box-shadow-color: rgba(135, 206, 220, 0.2);
    color: #87CEDC;
}

.color--5 {
    --bg-color: #7F5CA3;
    --bg-color-0: #7F5CA300;
    --bg-color-30: #7F5CA34D;
    --box-shadow-color: rgba(127, 92, 163, 0.2);
    color: #7F5CA3;
}

.color--6 {
    --bg-color: #D88210;
    --bg-color-0: #D8821000;
    --bg-color-30: #D882104D;
    --box-shadow-color: rgba(216, 130, 16, 0.2); 
    color: #D88210;
}

.color--7 {
    --bg-color: #00A075;
    --bg-color-0: #00A07500;
    --bg-color-30: #00A0754D;
    --box-shadow-color: rgba(0, 160, 117, 0.2);
    color: #00A075;
}

.color--8 {
    --bg-color: #6D1B34;
    --bg-color-0: #6D1B3400;
    --bg-color-30: #6D1B344D;
    --box-shadow-color: rgba(109, 27, 52, 0.2);
    color: #6D1B34;
}

.color--9 {
    --bg-color: #7DBF68;
    --bg-color-0: #7DBF6800;
    --bg-color-30: #7DBF684D;
    --box-shadow-color: rgba(125, 191, 104, 0.2);
    color: #7DBF68;
}