@import "resultList__icons.css";

.resultList {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.result {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 100%;
    margin-top: 5em;
    color: #3c3c3b;
    box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.16);
    border-top: #072e65 6px solid;
    background-color: #fff;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.result:hover {
    color: #3c3c3b;
    text-decoration: none;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.16);
    transform: translateY(-4px);
}

.result__top {
    position: relative;
}

.result__imageWrapper {
    position: relative;
    display: block;
    max-height: 140px;
    overflow: hidden;
}

.result__imageWrapper:after {
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    padding-top: 8.41%;
    width: 100%;
    background-image: url("../img/card.svg");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 103% auto;
}

.result__image {
    width: 100%;
}

.result__icon {
    position: absolute;
    bottom: -4px;
    left: 40px;
    z-index: 10;
}

.result__icon:after {
    display: block;
    width: 42px;
    height: 42px;
    content: '';
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.result__textWrapper {
    padding: 1.9em 2.5em;
}

.result__title {
    color: #1f2e61;
    font-weight: 600;
}

.result:hover .result__title {
    text-decoration: underline;
}

.result__description,
.result__footer {
    font-family: "AlwynNewRounded-Regular", Tahoma, Geneva, sans-serif;
}

.result__footer {
    position: relative;
    margin-top: auto;
    padding: 1em 2.5em 1.9em 2.5em;
    font-size: 0.875em;
    line-height: 1.7;
    color: #15af97;
    overflow: hidden;
}

.result__metaWrapper {
    position: relative;
}

.result__meta {
    position: relative;
    margin-right: 1em;
}

.result__meta:not(.result__meta:last-child):after {
    display: inline-block;
    width: 1px;
    height: 0.8em;
    margin-left: 1em;
    content: "";
    background-color: rgba(21, 175, 151, 0.2);
}

.result__metaWrapper:before {
    position: absolute;
    top: -1em;
    left: 0;
    height: 1px;
    width: 28%;
    content: "";
    background-color: #15af97;
}

.result__readMore {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 4.5em 2.5em 2em 2.5em;
    color: #072e65;
    font-weight: 400;
    background-color: #fff;
    overflow: hidden;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.result:hover .result__readMore {
    opacity: 1;
    transform: translateY(0);
}

.result__readMoreText:after {
    position: absolute;
    height: 20px;
    width: 20px;
    display: inline-block;
    margin-left: 0.6em;
    content: "";
    border-radius: 50%;
    background: #1f2e61 url("../img/plus-icon.svg") no-repeat center;
    background-size: 50%;
}

.result__readMoreLink {
    color: #1f2e61;
}

.result__numberWrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    height: 80px;
    width: 80px;
    top: -40px;
    right: 40px;
    color: #fff;
    text-align: center;
    background-color: #15af97;
    background-image: radial-gradient(ellipse at top left, #8fba1c 0%, #00a7eb 110px);
    border-radius: 50%;
    z-index: 1;
}

.result__number {
    font-family: 'Proxima Nova', Tahoma, Geneva, sans-serif;
    font-size: 3rem;
    line-height: 5.375rem;
}

.result__number:before {
    position: absolute;
    left: 0;
    width: 25px;
    height: 25px;
    font-family: "AlwynNewRounded-Regular", Tahoma, Geneva, sans-serif;
    font-weight: 700;
    font-size: 0.6875rem;
    line-height: 1.5625rem;
    content:'Nr.';
    border-radius: 50%;
    background-color: #072e65;
}

.result__coverLink {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    text-indent: -999em;
    z-index: 10;
}

.pbuic-pager-container {
    margin-top: 2em;
}

@media (min-width: 600px) {
    .resultList {
        margin: 0 0 0 -2em;
    }

    .result {
        flex: 0 0 calc(50% - 2em);
        margin-left: 2em;
    }
}

@media (min-width: 1024px) {
    .result {
        flex: 0 0 calc(33.33% - 2em);
    }
}
