/* Search Results */
.forceSearchSearchResultsGridHeader .search-results-grid-header__sort>.slds-button {
    color: black;
    font-weight: bold;
}

.forceCommunitySearch .gridTitle,
.forceCommunitySearch .slds-border_right.slds-medium-size_1-of-6 {
    display: none;
}

mark {
    color: #222222 !important;
}

div.slds-text-heading--large.noResultsTitle {
    visibility: hidden;
    position: relative;
}

div.slds-text-heading--large.noResultsTitle::after {
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
    content: "Leider konnten wir keinen Treffer finden.";
    padding-left: 6%;
}

.slds-rich-text-editor__textarea,
.slds-rich-text-editor__output > mark {
    font-weight: bold;
}

.slds-rich-text-editor__textarea,
.slds-rich-text-editor__output {
    font-size: 14px;
}

lightning-formatted-rich-text.formattedTextLookupTitle.slds-rich-text-editor__output,
records-hoverable-link[force-lookup_lookup] span[force-lookup_lookup],
knowledge_lightning-result-stencil records-hoverable-link a span {
    color: #222222 !important;
    font-size: 18px;
    border-bottom: var(--lwc-borderWidthThin, 1px) solid;
}

lightning-formatted-rich-text[knowledgeui-resultstencil_resultstencil]>span>a,
lightning-formatted-rich-text[knowledgeui-resultstencil_resultstencil]>span>mark>a {
    color: #222222 !important;
}

lightning-formatted-rich-text[knowledgeui-resultstencil_resultstencil]>span>a:hover,
lightning-formatted-rich-text[knowledgeui-resultstencil_resultstencil]>span>mark>a:hover {
    text-decoration: none;
}

.forceSearchResultsList .forceOutputLookupWithPreview a {
    border-bottom: 0 !important;
    font-family: "OTTOsansboldwoff" !important;
    color: #d4021d;
    font-size: 18px;
}

.forceSearchResultsList mark {
    background-color: transparent;
    color: #d4021d;
}

.forceCommunityRecordListDesktop .slds-page-header {
    display: flex;
    justify-content: space-between;
}

.comm-page-global-search .siteforcePanelsContainer .forcePreviewPanel .forceRecordLayout h1.primaryFieldWrapper.slds-var-p-bottom_large,
.comm-page-global-search .forcePreviewPanel .forceHighlightsPanel .forceKnowledgeKnowledgeArticleVersionHighlightsPreviewStencil .primaryFieldWrapper {
    padding-bottom: 0;
}

.comm-page-global-search .siteforcePanelsContainer .container .flexipageComponent 
    .forceKnowledgeArticleThumbVote > div > div:first-of-type > div {
    display: block !important;
}


/* Search Knowledge Preview */

.forceKnowledgeKnowledgeArticleVersionHighlightsPreviewStencil.header .forceEntityIcon,
.forceEntityIcon img,
div.test-id__section-content.slds-section__content.slds-p-top--none 
    > div.slds-form.slds-form_stacked > div:nth-child(n+2),
div.test-id__field-label-container {
    display: none !important;
}

/* Media Queries */

@media only screen and (min-width: 48em) and (min-aspect-ratio: 4 / 3),
       only screen and (min-width: 64.0625em) {
    .selfServiceArticleLayout .article-column {
        padding: 0 !important;
    }
}

@media only screen and (max-width: 350px) {
    .forceCommunityThemeHeaderCompact .themeLogo {
        left: inherit;
    }
}

@media only screen and (max-width: 47.9375em) {
    .forceCommunityThemeHeaderCompact .themeLogo {
        position: inherit !important;
        display: block !important;
        left: inherit !important;
        transform: inherit !important;
        padding-top: 1px;
    }

    .forceCommunityThemeLogo_custom {
        width: 200px !important;
        height: 42px !important;
    }

    /* Topic Image */
    .forceTopicFeaturedTopicItem .topicLink .topicImage {
        background-size: 13vw;
        background-position: center 15px;
    }

    /* Topic Label */
    .forceTopicFeaturedTopicItem .topicLabel {
        margin-top: 13vw;
        word-break: break-word;
        hyphens: auto !important;
        font-size: 16px !important;
    }

    .forceTopicFeaturedTopicItem .topicLabel:after {
        font-size: 14px !important;
        width: 100% !important;
    }

    /* Topic Item */
    .forceTopicFeaturedTopicItem.topicItem {
        height: 240px !important;
    }
}

@media only screen and (min-width: 48em) and (max-width: 64em) {
    .themeNavTriggerContainer {
        display: none !important;
    }

    /* Topic Image */
    .forceTopicFeaturedTopicItem .topicLink .topicImage {
        background-size: 13vw;
        background-position: center 15px;
    }

    /* Topic Item */
    .forceTopicFeaturedTopicItem.topicItem {
        height: 250px !important;
    }

    /* Topic Label */
    .forceTopicFeaturedTopicItem .topicLabel {
        margin-top: 10vw;
        hyphens: auto !important;
    }

    .forceTopicFeaturedTopicItem .topicLabel:after {
        font-size: 14px !important;
        width: 100% !important;
    }
}

@media only screen and (min-width: 48em) {
    .forceCommunityThemeHeaderCompact 
    .themeHeaderInner.centerAlignLogo-true .themeLogo {
        margin: 0 !important;
    }
}

@media only screen and (min-width: 64em) {
    .forceTopicFeaturedTopicItem .topicLabel {
        padding: 0;
        margin-left: 4.5vw;
        font-size: 18px !important;
        min-width: fit-content !important;
        hyphens: auto !important;
    }

    .forceTopicFeaturedTopicItem .topicLabel:after {
        font-size: 14px !important;
        width: 100% !important;
    }

    /* Activate for Helpdesk Desktop 2 Column Layout */
    .forceTopicFeaturedTopicItem.topicItem {
        height: 200px !important;
        width: 50% !important;
    }

    .forceTopicFeaturedTopics .topicLink .topicContent {
        padding: 15px 20px;
    }

    .forceTopicFeaturedTopicItem .topicLink .topicImage {
        background-position: 2em center !important;
    }
}