/*
 Theme Name: LCDCP Theme
 Description: The custom child-theme for the luxus-cardetailing.de filter plugin
 Author: Yannic Niessen
 Author URI:
 Template: twentyseventeen
 Version: 1
 */

.lcdcp_post_tag_filter, .lcdcp_car_brand_filter{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content: center;
    flex-wrap: wrap;
}
.lcdcp_car_brand_filter {
    justify-content: space-between;
    margin: 0 5%;
}


/* Hiding in accessibility friendly way */
.lcdcp_post_tag_radio_option, .lcdcp_car_brand_radio_option {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.lcdcp_post_tag_radio_label{
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--e-global-color-primary); !important;
    font-size: 16px;
    cursor: pointer;
    color: var(--e-global-color-text);
    margin: 0 15px 10px 15px;
    line-height: 16px;
}

.lcdcp_post_tag_radio_option:checked + label, .lcdcp_post_tag_radio_label:hover{
    background-color: var(--e-global-color-primary);
}



.lcdcp_car_brand_radio_label{
    flex-grow: 1;
    cursor: pointer;
    padding: 1.5vw;
    text-align:center;

}

.lcdcp_car_brand_radio_all_h2{
    color: var(--e-global-color-primary);
    font-size: 49px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    padding: 0;
    display:flex;
}

#lcdcp_car_brand_radio_model_select_all{
    display: none;
}

.lcdcp_car_brand_radio_option ~ select {
    opacity: 0;
    transform: translateY(-30px);
    transition: .7s;
    width: 100%;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    color: var(--e-global-color-text);
    background: transparent;
    visibility: hidden;
    font-size: 16px;
    line-height: 16px;
    height: auto;
}

.lcdcp_car_brand_radio_option ~ select option {
    color: var(--e-global-color-text);
    background: var(--e-global-color-primary);
}

.lcdcp_car_brand_radio_option:checked ~ select {
    opacity: 1;
    transform: translateY(0px);
    visibility: visible;
}

.lcdcp_car_brand_radio_option:checked ~ .lcdcp_car_brand_radio_modelle_h2 {
    opacity: 1;
    transform: translateY(0px);
    visibility: visible;
}

#lcdcp_car_brand_radio_modelle_all{
    visibility: hidden;
}


.lcdcp_car_brand_radio_modelle_h2{
    width: 100%;
    text-align: center;
    color: var(--e-global-color-primary);
    font-size: 18px !important;
    font-weight: 400;
    text-transform: uppercase;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-30px);
    transition: .7s;

}

#lcdcp_car_model_select, #lcdcp_car_brand_select{
    width: 100%;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    color: var(--e-global-color-text);
    background: transparent;
    font-size: 16px;
    margin: 5px 0;
    line-height: 16px;
    height: auto;

}

#lcdcp_car_model_select option, #lcdcp_car_brand_select option{
    color: var(--e-global-color-text);
    background: var(--e-global-color-primary);
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.elementor .lcdcp-listing-item-thumbnail-img{
    aspect-ratio: auto 800 / 533;
    box-sizing: border-box;
    height: auto;
    max-width: 100%;
    border: none;
    box-shadow: none;
    vertical-align: middle;
    display: inline-block;
    border-radius: 10px 10px 10px 10px;
    opacity: 0;
    animation: fadeIn 3s forwards !important;
    transition: .5s;
}

.lcdcp_posts_container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.lcdcp-listing-item{
    width: 33%;
    padding: 10px;
}

.elementor-kit-7 .lcdcp-listing-item-header{
    font-family: "Prosto", Sans-serif;
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 0px;
    margin-top: 20px;
    word-break: break-word;
    hyphens: auto;
    
}

.lcdcp-listing-item-date-meta{
    list-style-type: none;
    margin: 0;
    padding: 0;
    color: var(--e-global-color-text);
    margin-bottom: 20px;
}

.lcdcp-listing-item-date-meta a{
    color: var(--e-global-color-text) !important;
    font-size: 14px;
}


.lcdcp-listing-item-excerpt .rt-reading-time{
    margin-bottom: 10px;
    font-size: 16px;

}
.lcdcp-listing-item-excerpt{
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    color: #777;
    transition-duration: 0.5s;
    transition-property: all;
    margin-bottom: 20px;
    hyphens: auto;
}

.lcdcp-listing-item:hover .lcdcp-listing-item-excerpt{
    color: var(--e-global-color-text);
}

.lcdcp-listing-item:hover .lcdcp-listing-item-thumbnail-img{
    filter: brightness(50%);
    transition: .5s;
}

.lcdcp-listing-item-read-more a{
    padding: 12px 24px;
}


@media only screen and (max-width: 480px) {
    /* Styles for mobile phones */
    .lcdcp-listing-item{
        width: 100%;
        flex-grow: 1;
        padding: 10px;
    }

    .lcdcp_car_brand_radio_label{
        flex-grow: 0;
        flex-basis: 20%;

        width: 22%;
        cursor: pointer;
        padding: 1.5vw;
    }

    .lcdcp_car_brand_radio_label:nth-child(1){
        width:100%;
        flex-basis: 100%;
        justify-self: center;
    }

    .lcdcp_car_brand_radio_label:nth-child(1) h2, .lcdcp_car_brand_radio_label:nth-child(1) select{
        display: none;
    }

    .lcdcp_car_brand_radio_label:nth-child(1) h2:nth-child(2){
        display: block;
    }

    .lcdcp_car_brand_radio_option ~ select {
        font-size: 12px;
        padding: 4px 8px;
    }

    .lcdcp_car_brand_radio_modelle_h2{
        font-size: 13px !important;
    }

    .lcdcp_car_brand_radio_option:checked ~ .lcdcp_car_brand_radio_modelle_h2 {
        white-space: nowrap;
        font-size: 10px !important;
    }

    }
