/* Neue Volltextsuche 19.09.26, tj */

/*.search-live-wrapper {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}*/

.search-live-wrapper {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    align-items: stretch;
}

.search-live-wrapper .search-form-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

/*#searchLiveResult {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
}*/

.search-live-result-small {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 1px);
    z-index: 9999;
    background: #fff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .12);
    border: 1px solid #eee;
    box-sizing: border-box;
}

.search-live-result-small {
    width: 800px;
    max-width: 89vw;
    right: 0;
    left: auto;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

/*.live-search-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.live-search-item:hover {
    background: #f5f5f5;
}*/

.live-search-item {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 70px;
    padding: 12px;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
}

.live-search-item:first-of-type {
    border-top: 1px solid #eee;
}

.live-search-item:hover {
    background: #f8f8f8;
}

.live-search-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.live-search-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.live-search-content {
    display: block;
    min-width: 0;
}

.live-search-title {
    display: block;
    font-size: .9rem;
    line-height: 1.25;
    font-weight: 600;
}

.live-search-number {
    display: block;
    margin-top: 4px;
    font-size: .8rem;
    line-height: 1.25;
    color: #999;
}

.live-search-price {
    display: block;
    padding-left: 12px;
    white-space: nowrap;
    font-size: .85rem;
    font-weight: 500;
}

/*.live-search-title {
    font-weight: 600;
}

.live-search-number {
    opacity: .6;
}*/

.live-search-all {
    display: block;
    padding: 12px;
    text-align: center;
    font-weight: 600;
}

.live-search-empty {
    padding: 15px;
}

/*#searchLiveResult {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .12);
    border: 1px solid #eee;
}

.live-search-results {
    display: grid;
    grid-template-columns: 280px 1fr;
}

.live-search-left {
    padding: 25px 30px;
    background: #fafafa;
    border-right: 1px solid #eee;
}

.live-search-right {
    padding: 25px 30px;
}*/

.live-search-results {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    width: 100%;
}

.live-search-left {
    padding: 16px;
    background: #fafafa;
    border-right: 1px solid #eee;
    min-width: 0;
}

.live-search-right {
    padding: 16px;
    min-width: 0;
    overflow: hidden;
}

.live-search-section-title {
    margin-bottom: 12px;
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--main-black-color);
}

.live-search-filter-group {
    margin-bottom: 16px;
}

.live-search-filter-group:last-child {
    margin-bottom: 0;
}

.live-search-filter-title {
    margin-bottom: 6px;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
}

.live-search-filter-item {
    display: block;
    padding: 4px 0;
    color: #222;
    text-decoration: none;
    font-size: .95rem;
}

.live-search-filter-item:hover {
    color: #000;
    text-decoration: underline;
}

.live-search-product {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    align-items: center;
    gap: 16px;
    min-height: 85px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #222;
    text-decoration: none;
}

.live-search-product:first-of-type {
    border-top: 1px solid #eee;
}

.live-search-product-image {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-search-product-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.live-search-product-title {
    font-weight: 600;
}

.live-search-product-meta {
    margin-top: 3px;
    font-size: .85rem;
    color: #999;
}

.live-search-product-price {
    padding-left: 16px;
    white-space: nowrap;
    font-weight: 500;
}

.live-search-all {
    display: block;
    padding: 16px 0 0;
    text-align: center;
    font-weight: 600;
    color: #222;
    text-decoration: none;
}

.live-search-all:hover {
    text-decoration: underline;
}

/* Live Search - Suchseite */

.templateSearch .search-live-wrapper {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}

.templateSearch .search-form-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 42px;
    box-sizing: border-box;
    padding: 8px 12px;
    background: #fff;
    color: #999;
    border: none;
    border-radius: 0;
    font-family: inherit;
    font-size: 1rem;
}

.templateSearch .search-form-button {
    flex: 0 0 50px;
    width: 50px;
    min-width: 50px;
    height: 42px;
    box-sizing: border-box;
    padding: 0;
    border: none;
    background: none;
    color: var(--main-black-color);
    border-radius: 0;
    font: var(--fa-font-light);
    font-size: 1.25rem;
    cursor: url(/img/cursorActiv.svg), pointer;
}

.templateSearch .search-form-button:hover {
    color: var(--main-hover-color);
    transition: color .3s ease-out;
}


/* Suche Top-Navigation */

#layerSearch,
#layerSearchMobile {
    width: 100%;
    max-width: 50%;
    height: fit-content;
}

#layerSearch .search-form form,
#layerSearchMobile .search-form form {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    border: 1px solid #ccc;
    margin-bottom: 0;
    /*search bar tryout*/
    border-radius: 0;
}

#layerSearch .search-form-input,
#layerSearchMobile .search-form-input {
    /*width: 100%;*/
    background: none;
    color: #999;
    border: none;
    padding: 8px 12px;
    border-radius: 0;
    border: none;
}

#layerSearch .search-category,
#layerSearchMobile .search-category {
    display: flex;
    align-items: center;
    border: none;
}

#layerSearch .search-category select,
#layerSearchMobile .search-category select {
    width: 350px;
    font-weight: var(--font-weight-bold);
    border-left: 1px solid #ccc;
    padding: 4px 12px;
}

#layerSearch .search-live-wrapper .search-form-button,
#layerSearchMobile .search-live-wrapper .search-form-button {
    border: none;
    background: none;
    background-color: unset;
    color: black;
    font: var(--fa-font-light);
    cursor: url(/img/cursorActiv.svg), pointer;
    font-size: 1.25rem;
    padding: 4px 12px;
    border-radius: 0;
    height: 38px;
    width: auto;
}

#layerSearch .search-live-wrapper .search-form-button:hover,
#layerSearchMobile .search-live-wrapper .search-form-button:hover {
    transition: all 0.3s ease-out;
    color: var(--main-hover-color);
}

#layerSearchMobile {
    display: none;
    padding: 0 16px 16px;
    max-width: 100%;
    border-bottom: 1px solid var(--main-lightgrey-color);
}


/* Suche */

.search .input {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding-right: 35px;
    border: none;
    background: none;
    height: 25px;
    width: 100%;
    color: #FFF;
    font-size: 95%;
    border-bottom: 1px solid #FFF;
}

.search .button {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border: none;
    background: none;
    height: 25px;
    width: 35px;
    color: #FFF;
    font: var(--fa-font-light);
    position: absolute;
    right: 0;
    top: 12px;
    cursor: url(/img/cursorActiv.svg), pointer;
    padding: 0;
}


/* Suchresultate */

.search .content-head {
    padding: 25px 0;
}

.search .content-head .content-title {
    font-weight: 300;
    font-size: 1.2rem;
}

.search-form {
    position: relative;
    /*margin-bottom: 15px;*/
    /*search bar tryout*/
}

.search-form form {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    border: 1px solid #ccc;
    border-radius: 0;
}

.search-form .search-category {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
}

.search-form .search-category .select.title {
    font-weight: var(--font-weight-bold);
    padding: 0 20px;
}

.search-form .search-category select {
    min-width: 200px;
}

.search-action {
    overflow: hidden;
    margin: 20px 0;
    border-bottom: 1px solid var(--main-color);
    display: table-row;
    width: 100%;
}

.search-action-item {
    width: 25%;
    display: table-cell;
    vertical-align: bottom;
}

.search-action-link {
    display: block;
    padding: 5px 10px;
    line-height: 30px;
    color: #FFF;
    text-decoration: none;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0;
}

.search-action-link:hover,
.search-action-link:focus,
.search-action-link:active,
.search-action-link.active {
    color: #FFFFFF;
    background: rgba(0, 0, 0, 1);
    padding-bottom: 25px;
    transition: all 0.3s ease-out;
}

.search-action-link:hover::after,
.search-action-link:focus::after,
.search-action-link.active::after {
    content: '\f0d7';
    float: right;
    font: var(--fa-font-light);
}

.search-content {
    margin-top: 2rem;
}

.search-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -2.5%;
}

.search-list-item {
    width: 29.333%;
    display: block;
    background-color: var(--main-lightgrey-color);
    margin: 0 2.5% 1rem 2.5%;
    padding: 1rem;
    text-decoration: none;
}

.search-list-item:hover,
.search-list-item:focus,
.search-list-item:active {
    background-color: #333333;
    color: #FFFFFF;
    transition: all 0.3s ease-out;
}

.search-list-item .title {
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.1rem;
}

.search-list-item .link {
    margin-top: 0.2rem;
}

.search-list-item .link:before {
    content: '\f178';
    font-family: var(--main-font-fa);
    font-weight: 300;
    padding-right: 10px;
}

.list.article-group .item {
    width: 33.33%;
    float: left;
    position: relative;
}

.list.article-group .item .image a img {
    width: 100%;
}

.list.article-group .item .title {
    height: 30px;
    line-height: 30px;
    position: absolute;
    bottom: 0;
    display: block;
    background: rgba(47, 47, 47, 0.9);
}

@media only screen and (max-width: 1250px) {
    #layerSearch {
        max-width: 100%;
    }
}

@media only screen and (max-width: 1050px) {
    #layerSearch .search-category select {
        width: 170px;
    }
}

@media only screen and (max-width: 750px) {
    .templateSearch.search-form .search-category select {
        min-width: 150px;
    }
    #layerSearch {
        display: block;
        max-width: 80%;
        margin: 0;
    }
    .live-search-results {
        grid-template-columns: 220px minmax(0, 1fr);
    }
    .live-search-left,
    .live-search-right {
        padding: 16px;
    }
    .live-search-left {
        border-right: 0;
        border-bottom: 1px solid #eee;
    }
    .live-search-product {
        grid-template-columns: 55px 1fr auto;
        gap: 12px;
    }
    .live-search-product-image {
        width: 55px;
        height: 55px;
    }
}

@media only screen and (max-width: 600px) {
    .live-search-results {
        display: flex;
        flex-direction: column;
    }
    .live-search-right {
        order: 1;
    }
    .live-search-left {
        order: 2;
    }
    
    /*.live-search-results {
        display: block;
    }
    .live-search-left {
        padding: 12px 16px;
        border-right: 0;
        border-bottom: 1px solid #eee;
        max-height: 250px;
        overflow-y: auto;
    }
    .live-search-right {
        padding: 12px 16px;
    }*/
    .live-search-section-title {
        margin-bottom: 10px;
    }
    .live-search-filter-group {
        margin-bottom: 10px;
    }
    .live-search-filter-title {
        margin-bottom: 4px;
    }
    .live-search-item {
        grid-template-columns: 50px minmax(0, 1fr) auto;
        gap: 10px;
        min-height: 65px;
        padding: 8px;
    }
    .live-search-image {
        width: 50px;
        height: 50px;
    }
    .live-search-title {
        font-size: .85rem;
    }
    .live-search-number {
        font-size: .75rem;
    }
    .live-search-price {
        padding-left: 5px;
        font-size: .8rem;
    }
}

@media only screen and (max-width: 520px) {
    .templateSearch.search-form .search-category {
        width: 85%;
        padding: 10px;
        margin-top: 5px;
    }
    .templateSearch.search-form .search-form-button {
        /*margin-top: 5px;*/
        min-width: unset;
    }
    .search-form .search-category .select.title {
        padding: 0 10px;
    }
    #layerSearch {
        display: none;
    }
    #layerSearchMobile {
        display: block;
    }
}