/* Tenowo Suche – Formular, Vorschläge, Ergebnisseite */

.tenowo-searchform {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

.tenowo-searchform .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.tenowo-searchform-input,
.tenowo-searchform input[type="search"].tenowo-searchform-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 6px 0 0 6px;
    background: transparent;
    background-image: none;
    box-shadow: none;
    color: #333333;
    font-size: 15px;
    line-height: 42px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.tenowo-searchform-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.tenowo-searchform:focus-within {
    border-color: #9cbf2a;
    box-shadow: 0 0 0 3px rgba(156, 191, 42, .25);
}

.tenowo-searchform-submit {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 6px 6px 0;
    background: transparent;
    color: #333333;
    cursor: pointer;
}

.tenowo-searchform-submit:hover,
.tenowo-searchform-submit:focus-visible {
    color: #6f8a1a;
}

/* --- Vorschläge ------------------------------------------------------------ */

.tenowo-searchform-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    /* Unter dem Flyout der Hauptnavigation (Bootstrap .dropdown-menu = 1000) bleiben */
    z-index: 990;
    overflow: hidden;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
    text-align: left;
}

.tenowo-searchform-suggestions[hidden] {
    display: none;
}

.tenowo-searchform-suggestions a,
.tenowo-searchform-suggestions a:link,
.tenowo-searchform-suggestions a:visited {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-bottom: 1px solid #efefef;
    color: #333333;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
    text-transform: none;
}

.tenowo-searchform-suggestions a:hover,
.tenowo-searchform-suggestions a.is-active {
    background: #f3f7e6;
    color: #222222;
}

.tenowo-searchform-suggestion-type {
    flex: 0 0 auto;
    color: #8a8a8a;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.tenowo-searchform-suggestions a.tenowo-searchform-suggestion-all {
    border-bottom: 0;
    color: #4f6a00;
    font-weight: 700;
}

/* --- Ergebnisseite --------------------------------------------------------- */

.tenowo-search-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 10px 0 50px 0;
    text-align: left;
}

.tenowo-search-page-form {
    margin: 10px 0 34px 0;
}

.tenowo-search-title {
    margin: 0 0 6px 0;
    font-size: 26px;
    line-height: 1.25;
    text-align: left;
}

.tenowo-search-status {
    margin: 0 0 26px 0;
    color: #6b6b6b;
    font-size: 14px;
}

.tenowo-search-suggestion {
    margin: 0 0 26px 0;
    font-size: 16px;
}

.tenowo-search-suggestion a {
    color: #4f6a00;
    font-weight: 700;
    text-decoration: underline;
}

.tenowo-search-results {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tenowo-search-result {
    margin: 0;
    padding: 0;
    border-top: 1px solid #e6e6e6;
}

.tenowo-search-result:last-child {
    border-bottom: 1px solid #e6e6e6;
}

.tenowo-search-result-link,
.tenowo-search-result-link:link,
.tenowo-search-result-link:visited {
    display: block;
    padding: 18px 12px;
    color: #333333;
    text-decoration: none;
    transition: background-color .15s ease;
}

.tenowo-search-result-link:hover,
.tenowo-search-result-link:focus-visible {
    background: #f6f8ee;
    color: #333333;
}

.tenowo-search-result-link > span {
    display: block;
}

.tenowo-search-result-type {
    margin-bottom: 4px;
    color: #8a8a8a;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tenowo-search-result-title {
    color: #222222;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.tenowo-search-result-link:hover .tenowo-search-result-title {
    color: #4f6a00;
}

.tenowo-search-result-url {
    margin-top: 2px;
    color: #6f8a1a;
    font-size: 13px;
    word-break: break-all;
}

.tenowo-search-result-snippet {
    margin-top: 8px;
    color: #555555;
    font-size: 15px;
    line-height: 1.55;
}

.tenowo-search-page mark {
    padding: 0 1px;
    background: #e6f0c2;
    color: inherit;
    font-weight: 700;
}

.tenowo-search-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 30px;
}

.tenowo-search-pagination a,
.tenowo-search-pagination span {
    min-width: 38px;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    color: #333333;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
}

.tenowo-search-pagination a:hover {
    border-color: #9cbf2a;
    background: #f6f8ee;
}

.tenowo-search-pagination .is-current {
    border-color: #9cbf2a;
    background: #9cbf2a;
    color: #ffffff;
    font-weight: 700;
}

/* --- Keine Treffer --------------------------------------------------------- */

.tenowo-search-empty {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tenowo-search-empty-box {
    padding: 22px 24px;
    border-radius: 10px;
    background: #f4f4f4;
}

.tenowo-search-empty-box h3 {
    margin: 0 0 12px 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}

.tenowo-search-empty-box ul {
    margin: 0;
    padding-left: 18px;
}

.tenowo-search-empty-box li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.5;
}

.tenowo-search-empty-box .tenowo-search-markets {
    padding-left: 0;
    list-style: none;
}

.tenowo-search-markets a {
    color: #4f6a00;
    font-weight: 700;
    text-decoration: none;
}

.tenowo-search-markets a:hover {
    text-decoration: underline;
}

.tenowo-search-empty-contact p {
    margin: 0 0 16px 0;
    font-size: 15px;
    line-height: 1.5;
}

.tenowo-search-button,
.tenowo-search-button:link,
.tenowo-search-button:visited {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    background: #137a31;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.tenowo-search-button:hover {
    background: #0f6327;
    color: #ffffff;
}

/* --- Vorschaubilder -------------------------------------------------------- */

.tenowo-searchform-suggestion-image {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background: #eef1e4;
    color: #8a8a8a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
}

.tenowo-searchform-suggestion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tenowo-searchform-suggestion-title {
    flex: 1 1 auto;
    min-width: 0;
}

.tenowo-searchform-suggestions a.tenowo-searchform-suggestion-all {
    padding: 12px 14px;
}

.tenowo-search-result-link,
.tenowo-search-result-link:link,
.tenowo-search-result-link:visited {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.tenowo-search-result-link > span.tenowo-search-result-text {
    flex: 1 1 auto;
    min-width: 0;
}

.tenowo-search-result-text > span {
    display: block;
}

.tenowo-search-result-image {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    background: #eef1e4;
}

.tenowo-search-result-link > span.tenowo-search-result-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8a8a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
}

@media (max-width: 575px) {
    .tenowo-search-result-image {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }
}

/* Kein Vorschaubild vorhanden: Seitensymbol statt leerem Kästchen */
.tenowo-searchform-suggestion-image:empty,
.tenowo-search-result-link > span.tenowo-search-result-image-empty:empty {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa582' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 46%;
}
