@keyframes labelchecker_gradient {
    0% {
        background-position: 50% 0%;
    }
    50% {
        background-position: 50% 100%;
    }
    100% {
        background-position: 50% 0%;
    }
}
#content {
    background: linear-gradient(-20deg, rgba(215, 215, 215, 1), rgba(105, 23, 79, 1), #d73746);
    background-size: 100% 400%;
    animation: labelchecker_gradient 10s linear infinite;
}
.labelchecker-header {
    padding: 5em 0;
    color: white;
    font-family: "lazer84 Regular";
}
.labelchecker-header img {
    mix-blend-mode: color-burn;
    padding: 0 7vw;
}

#label_field {
    color: black;
    margin-bottom: 5em;
}

.the_label {
    position: relative;
    float: left;
    width: 100%;
    height: 230px;
    margin: 5px;
    padding: 10px;

    color: #262524;
    margin: 0;
    padding: 0;
}
@media only screen and (min-width: 360px) {
    .the_label {
        width: 50%;
    }
}
@media only screen and (min-width: 540px) {
    .the_label {
        width: 33.333%;
    }
}
@media only screen and (min-width: 720px) {
    .the_label {
        width: 25%;
    }
}
@media only screen and (min-width: 920px) {
    .the_label {
        width: 20%;
    }
}
.the_label:focus {
    text-decoration: none;
}
.the_label .inner {
    margin: 10px 5px;

    background: white;
    /* background: #888; */
    padding: 10px;
    height: calc(100% - 10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 5px;
    cursor: pointer;
    opacity: 1;
}

.the_label .inner:hover {
    opacity: 0.7;
}
.the_label:hover {
    text-decoration: none;
    color: black;
}

.the_label .inner .logo {
    text-align: center;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.the_label .inner .logo img {
    max-width: 100%;
    max-height: 90px;
    height: auto;
    width: auto;
    margin: auto;
    /* iphone SE 2022 fix */
    min-width: 1%;
    min-height: 1%;
}

.the_label .inner .name {
    text-align: center;
    padding: 10px 0;
}
.the_label .inner .ratings {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ratings .rating {
    width: 30px;
    height: 30px;
    border-radius: 15px;
    /* background-color: black; */
    text-align: center;
    /* line-height: 30px; */
    color: white;
    font-weight: bold;
}
.legend-inner .ratings .rating,
.the_label .inner .ratings .rating {
    font-size: 0;
    position: relative;
}
.legend-inner .ratings .rating:after,
.the_label .inner .ratings .rating:after {
    font-size: 16px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    position: absolute;
    top: 0;
    left: 0;
}
.legend-inner .ratings .rating.rating_social:after,
.the_label .inner .ratings .rating.rating_social:after {
    content: "S";
}
.legend-inner .ratings .rating.rating_ecology:after,
.the_label .inner .ratings .rating.rating_ecology:after {
    content: "Ö";
}
.legend-inner .ratings .rating.rating_credibility:after,
.the_label .inner .ratings .rating.rating_credibility:after {
    content: "T";
}
.legend-inner .ratings .rating.rating_overall,
.the_label .inner .ratings .rating.rating_overall {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    /* line-height: 40px; */
    /* font-size: 20px; */
}
.legend-inner .ratings .rating.rating_overall:after,
.the_label .inner .ratings .rating.rating_overall:after {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 20px;
    content: "\2211";
}

.ratings .rating[rating="0"] {
    background-color: lightgray;
}
.ratings .rating[rating="1"] {
    background-color: #e93f67;
}
.ratings .rating[rating="2"] {
    /* background-image: linear-gradient(90deg, #fdc600, #fdc600 50%, #e93f67 51%); */
    background: linear-gradient(to right, #fdc600 0%, #fdc600 35%, #e93f67 65%, #e93f67 100%);
}
.ratings .rating[rating="3"] {
    background-color: #fdc600;
}
.ratings .rating[rating="4"] {
    /* background-image: linear-gradient(90deg, #52ae32, rgb(82, 174, 50) 50%, #fdc600 51%); */
    background: linear-gradient(to right, #52ae32 0%, #52ae32 35%, #fdc600 65%, #fdc600 100%);
}
.ratings .rating[rating="5"] {
    background-color: #52ae32;
}
/* only for legend */
.ratings .rating[rating="10"] {
    background-color: gray;
}

/* ---- Filter & Sorting Bar ---- */
.filter-sort {
    display: flex;
    justify-content: space-evenly;

    flex-wrap: wrap;
    /* margin-top: 3em; */
    margin: 3em 10px 0 10px;
}
.filter-sort .input-field,
.filter-sort .switch-field {
    margin-left: 2em;
    margin-right: 2em;
}
.filter-sort .input-field input[type="search"] {
    /*materialize fix*/
    width: auto;
}
.filter-sort .button-group {
    margin-left: 1em;
}
.filter-sort .button-group .button {
    font-size: 14px;
}
.filter-sort .filter {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.filter-sort .sort {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

@media only screen and (max-width: 950px) {
}

/* ---- Legend ---- */
.legend {
    margin: 1em 10px;
    /* opacity: 0; */
    /* height: 0; */
    transform: rotateX(90deg);
    transition: all 0.3s linear;
}
.legend.show {
    /* opacity: 1; */
    /* height: auto; */
    transform: rotateX(0deg);
    transition: all 0.3s linear;
}
/* .legend:hover {
    opacity: 1;
} */
.legend-inner {
    background-color: white;
    border-radius: 5px;
    position: relative;
}

.legend-inner > span {
    position: absolute;
    top: -16px;
    right: 5px;
    font-size: 16px;
    font-weight: bold;
    color: white;
}
.legend-inner .ratings {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.legend-inner .ratings .rating-item {
    display: flex;
    align-items: center;
    padding: 0.5em;
}
.legend-inner .ratings span {
    margin: 0 2em 0 0.5em;
    /* color: white; */
}
@media only screen and (max-width: 950px) {
    .legend-inner .ratings .rating,
    .legend-inner .ratings .rating:after,
    .legend-inner .ratings .rating.rating_overall,
    .legend-inner .ratings .rating.rating_overall:after {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 13px;
    }
    .legend-inner .ratings span {
        font-size: 10px;
    }
}
@media only screen and (max-width: 500px) {
    .legend-inner .ratings .rating-item {
        flex-basis: 50%;
    }
}
@media only screen and (max-width: 366px) {
    .legend-inner .ratings {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ---- button ---- */

.wp-block-button__link,
.button {
    display: inline-block;
    padding: 0.5em 1em;
    background: none;
    border: 1px solid white;
    border-radius: 7px;
    /* background-image: linear-gradient(to bottom, hsla(0, 0%, 0%, 0), hsla(0, 0%, 0%, 0.2)); */
    /* color: #222; */
    font-family: sans-serif;
    /* font-size: 16px; */
    /* text-shadow: 0 1px white; */
    cursor: pointer;
    color: white;
}
.wp-block-button__link:hover,
.button:hover {
    background-color: rgba(255, 255, 255, 0.5);
    /* text-shadow: 0 1px hsla(0, 0%, 100%, 0.5); */
    /* color: #222; */
    text-decoration: none;
}

.wp-block-button__link:active,
.button:active,
.button.is-checked {
    background-color: #d73746;
}

.button.is-checked {
    color: white;
    text-shadow: 0 -1px hsla(0, 0%, 0%, 0.8);
}

.wp-block-button__link:active,
.button:active {
    box-shadow: inset 0 1px 10px hsla(0, 0%, 0%, 0.8);
}

/* ---- button-group ---- */

.wp-block-buttons,
.button-group {
    mix-blend-mode: luminosity;
}

.button-group:after {
    content: "";
    display: block;
    clear: both;
}

.button-group .button {
    float: left;
    border-radius: 0;
    margin-left: 0;
    margin-right: 1px;
}

.button-group .button:first-child {
    border-radius: 0.5em 0 0 0.5em;
}
.button-group .button:last-child {
    border-radius: 0 0.5em 0.5em 0;
}

/* ---- Modal ---- */
.modal-content {
    width: 80vw;
    max-width: 1170px;
    margin: 5em 0;
    background: white;
}
@media only screen and (max-width: 900px) {
    .modal-content {
        width: 90vw;
    }
}
@media only screen and (max-width: 600px) {
    .modal-content {
        width: 93vw;
    }
}
.modal-content button.close {
    position: absolute;
    top: -15px;
    right: -15px;
    /* border: 4px solid white; */
    width: 30px;
    height: 30px;
    border-radius: 15px;
    opacity: 1;
    background: white;
}
body .custombox-content > * {
    max-height: none;
}
.modal-header {
    display: flex;
    justify-content: space-between;
}

.modal-header h2 {
    margin-top: 10px;
}

.modal-header .title_ratings .has_info {
    cursor: pointer;
}

.modal-header .title_ratings h4 {
    /* longname */
    margin-top: 10px;
    padding-right: 1em;
}
.modal-header .logo img {
    max-width: 200px;
    max-height: 160px;
    height: auto;
    width: auto;
}
@media only screen and (max-width: 600px) {
    .modal-header .logo img {
        max-width: 100%;
        max-height: 120px;
    }
}
.modal-content img {
    max-width: 100%;
}
.modal-content .modal-body .about-rating {
    display: flex;
    margin-bottom: 2em;
}

.modal-content .modal-body .about-rating h3 {
    font-weight: 600;
}
.modal-content .modal-body .about-rating .about {
    flex-basis: 50%;
    padding-right: 2em;
}
.modal-content .modal-body .about-rating .rating-info {
    flex-basis: 50%;
    /* padding-left: 1em; */
}
.modal-content .modal-body .inner h3 {
    display: flex;
    align-items: center;
}
.modal-content .modal-body .inner h3 img {
    margin-right: 10px;
}
.modal-content .ratings {
    display: flex;
    flex-wrap: wrap;
}
@media only screen and (max-width: 600px) {
    .modal-content .modal-body .about-rating {
        flex-direction: column;
    }
    .modal-content .modal-body .about-rating .about {
        padding-right: 0;
    }
}
.modal-content .rating {
    width: auto;
    line-height: 30px;
    padding: 0 1em;
    margin: 5px 20px 5px 0;
    position: relative;
}
@media only screen and (max-width: 400px) {
    .modal-content .rating.rating_credibility {
        font-size: 10px;
    }
}
.modal-content .has_info {
    cursor: pointer;
    padding-right: 3em;
    position: relative;
}
.modal-content .has_info img {
    max-width: inherit;
}
.modal-content .has_info:hover {
    opacity: 0.6;
}
.modal-content .has_info:after {
    position: absolute;
    top: 0;
    right: 0;
    content: "";
    width: 30px;
    height: 30px;
    background-image: url("images/info_materialize.svg");
    background-size: 24px 24px;
    background-position: center center;
    background-repeat: no-repeat;
}
.modal-content .adding_value .headline {
    padding-right: 1em;
}
.modal-content .adding_value .items {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.modal-content .adding_value .items div,
.modal-content .labeltype .has_info {
    margin-top: 5px;
}
.modal-content .labeltype .has_info,
.modal-content .adding_value .has_info {
    padding: 3px 2em 3px 3px;
    border: 1px solid #808080;
    border-radius: 20px;
    height: 36px;
}
.modal-content .labeltype .has_info:after,
.modal-content .adding_value .has_info:after {
    height: 36px;
    background-image: url("images/info_materialize_gray.svg");
    background-size: 24px 24px;
    background-position: center center;
    background-repeat: no-repeat;
}
.modal-content .label-details {
    display: flex;
    flex-wrap: wrap;
}
.modal-content .label-details .labeltype {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 10px;
    margin-right: 20px;
}
.modal-content .label-details .labeltype img {
    height: 28px;
}
.modal-content .label-details .adding_value {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}
.modal-content .label-details .adding_value .has_info {
    margin-right: 10px;
}

/* ---- Accordions ----*/

.modal-accordion .accordion-item {
    overflow: hidden;
    height: 0;
}
.modal-accordion .accordion-item .inner {
    padding: 15px;
}
.modal-accordion .accordion-item .inner img {
    margin-right: 1em;
    max-height: 70px;
}
.modal-accordion .accordion-item .inner h3 {
    display: flex;
    align-items: center;
}
.modal-accordion .accordion-item .inner .half-half,
.half-half {
    display: flex;
    flex-direction: row;
}
@media only screen and (max-width: 600px) {
    .modal-accordion .accordion-item .inner .half-half,
    .half-half {
        flex-direction: column;
    }
}
.modal-accordion .accordion-item .inner .half,
.half-half .half {
    flex-basis: 50%;
}
.half-half .half:first-child {
    padding-right: 1em;
}

.modal-accordion .accordion-item.open {
    border-bottom: 1px solid #e5e5e5;
}
.modal-accordion .accordion-item ul {
    padding-left: 2em;
}
.modal-accordion .accordion-item ul li {
    list-style-type: disc;
}

/* Modal Wertschöpfung */

#wertschoepfung_method img.wertschopfung_bild_mobile {
    display: none;
}
@media only screen and (max-width: 600px) {
    #wertschoepfung_method img.wertschopfung_bild_desktop {
        display: none;
    }
    #wertschoepfung_method img.wertschopfung_bild_mobile {
        display: block;
    }
}

/* ---- Förderlogos ---- */
.logos-footer {
    background: white;
    border-left: 1px solid lightgray;
    border-right: 1px solid lightgray;
}
.headline-logos {
    text-align: center;
    padding: 1em;
    font-weight: bold;
}

.logos-footer .logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 2em;
}
.logos-footer .logos a {
    padding: 1em;
}
.logos-footer .logos a:hover {
    opacity: 0.5;
}
.logos-footer .logos a img {
    /* max-width: 200px;
    height: auto; */
    max-height: 120px;
    width: auto;
}

@media only screen and (max-width: 600px) {
    /*small down*/
}
@media only screen and (min-width: 601px) {
    /*small up */
}
@media only screen and (min-width: 601px) and (max-width: 992px) {
    /*medium only*/
}
@media only screen and (max-width: 992px) {
    /*medium down*/
}
@media only screen and (min-width: 993px) {
    /*medium up */
}
@media only screen and (max-width: 959px) {
    /*large down*/
}
@media only screen and (min-width: 960px) {
    /*large up*/
}

/* Iframe iframe-sofair */
#content.iframe-sofair {
    background: white;
    background-size: 100% 400%;
    animation: none;
}
#content.iframe-sofair .legend-inner,
#content.iframe-sofair .the_label .inner {
    border: 1px solid gray;
}

#content.iframe-sofair .legend-inner > span {
    color: gray;
}
#content.iframe-sofair .input-field > label,
#content.iframe-sofair .select-wrapper,
#content.iframe-sofair .switch label,
#content.iframe-sofair .switch-field > label {
    color: black;
}
#content.iframe-sofair .select-wrapper input.select-dropdown,
#content.iframe-sofair input[type="search"]:not(.browser-default) {
    border-bottom: 1px solid black;
}
#content.iframe-sofair .the_label .inner:hover {
    border: 2px solid gray;
}
