.mdctxsearch {
width: 100%;
position: relative;
}
.mdctxsearch .search-form {
width: 100%;
position: relative;
}
.mdctxsearch .search-form .autosuggest-list {
position: absolute;
z-index: 9999;
background: white;
border: 1px solid #ccc;
width: 100%;
margin: 0;
padding: 0;
list-style: none;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
top: 46px;
}
.mdctxsearch .search-form .autosuggest-item {
padding: 8px 12px;
cursor: pointer;
}
.mdctxsearch .search-form .autosuggest-item:hover,
.mdctxsearch .search-form .autosuggest-item.highlighted {
background: var(--pageAccentColor);
color: black;
}
.mdctxsearch .search-form__row {
width: 100%;
display: flex;
}
.mdctxsearch .search-form__row__input {
width: calc(100% - 45px);
border: 1px solid #000000;
border-right: none;
padding: 12px 8px;
background-color: #ffffff;
}
.mdctxsearch .search-form__row__input:focus {
outline: none;
background-color: #f5f5f5;
border-width: 1px;
}
.mdctxsearch .search-form__row__input:focus~.search-form__row__button {
background-color: #f5f5f5;
}
.mdctxsearch .search-form__row__input::-webkit-search-cancel-button {
-webkit-appearance: none;
height: 10px;
width: 10px;
background: url('data:image/svg+xml;utf8,<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 128 128" style="enable-background:new 0 0 128 128;" xml:space="preserve" > <polygon points="72.5,63.8 124.6,11.6 126,10.3 124.6,8.9 118.7,2.9 117.3,1.6 115.9,2.9 63.8,55.1 11.6,2.9 10.3,1.6 8.9,2.9 2.9, 8.9 1.6, 10.3 2.9, 11.6 55.1, 63.8 2.9, 115.9 1.6, 117.3 2.9, 118.7 8.9, 124.6 10.3, 126 11.6, 124.6 63.8, 72.5 115.9, 124.6 117.3, 126 118.7, 124.6 124.6, 118.7 126, 117.3 124.6, 115.9"/> </svg>') no-repeat center center;
background-size: contain;
}
.mdctxsearch .search-form__row__input:focus {
background-color: #fff;
}
.mdctxsearch .search-form__row button {
width: 45px;
border: 1px solid #000000;
border-left: none;
background-color: #ffffff;
}
.mdctxsearch .search-form__row button svg {
width: 30px;
}
.mdctxsearch .search-results .results-headline {
padding: 32px 0 45px;
}
.mdctxsearch .search-results__recipe-wrapper {
display: flex;
flex-wrap: wrap;
gap: 20px;
padding-bottom: 30px;
} .mdctxsearch .search-results__recipe-item {
box-sizing: border-box;
flex: 0 0 100%;
max-width: 100%;
}
.search-results mark {
position: relative;
background-color: var(--pageAccentColor);
} @media (min-width: 641px) {
.mdctxsearch .search-results__recipe-item {
flex: 0 0 calc(50% - 10px);
max-width: calc(50% - 10px);
}
} @media (min-width: 769px) {
.mdctxsearch .search-results__recipe-item {
flex: 0 0 calc(33.3333% - 13.3333px);
max-width: calc(33.3333% - 13.3333px);
}
} @media (min-width: 993px) {
.mdctxsearch .search-results__recipe-item {
flex: 0 0 calc(25% - 15px);
max-width: calc(25% - 15px);
}
}
.mdctxsearch .search-results__recipe-wrapper .search-results__recipe-item {
width: calc((100% / var(--columns)) - var(--gap) + (var(--gap) / var(--columns)));
}
.mdctxsearch .search-results__recipe-wrapper .search-results__recipe-item a {
display: block;
}
.mdctxsearch .search-results__recipe-wrapper .search-results__recipe-item a img {
margin-bottom: 10px;
opacity: 0;
filter: blur(0);
transition: all 0.6s ease-in-out 0.1s;
}
.mdctxsearch .search-results__recipe-wrapper .search-results__recipe-item a img.loaded {
opacity: 1;
filter: blur(1);
}
.mdctxsearch ul {
padding: 20px 0 30px;
margin: 0;
}
.mdctxsearch ul li {
list-style-type: none;
padding: 5px 0;
}
.mdctxsearch ul li a {
text-decoration: none;
}
.mdctxsearch ul li a img {
max-width: 100%;
}
@media (max-width: 640px) {
.mdctxsearch ul li a img {
max-width: 33%;
}
}
.mdctxsearch ul li a h4 {
padding: 12px 20px;
}
.mdctxsearch .search-loader {
display: none;
justify-content: center;
align-items: center;
padding: 20px;
}
.mdctxsearch .search-loader .spinner {
border: 4px solid #eee;
border-top: 4px solid var(--pageAccentColor, green);
border-radius: 50%;
width: 28px;
height: 28px;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}