/**
 * Update-safe custom styles for the Reit- und Fahrverein Rheurdt template.
 * Add future site-specific CSS rules to this file.
 */

.visually-hidden {
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    overflow: hidden !important;
    position: absolute !important;
    white-space: nowrap !important;
    width: 1px !important;
}

/* Keep the configured header colour, but remove the legacy black raster. */
#container_header,
.slicknav_btn {
    background-image: none;
}

/*
 * Joomla 5 pagination fallback.
 * These characters do not depend on an icon font and therefore remain visible
 * even if an extension renders the core pagination layout on its own.
 */
.pagination .icon-angle-double-left::before {
    content: "«";
}

.pagination .icon-angle-left::before {
    content: "‹";
}

.pagination .icon-angle-right::before {
    content: "›";
}

.pagination .icon-angle-double-right::before {
    content: "»";
}

.pagination .icon-angle-double-left::before,
.pagination .icon-angle-left::before,
.pagination .icon-angle-right::before,
.pagination .icon-angle-double-right::before {
    font-family: inherit;
    font-style: normal;
    font-weight: inherit;
}

/*
 * Joomla 5 renders the pagination as ul.pagination and nests icon/text spans
 * inside .page-link. The legacy Bootstrap 2 rules styled every nested span as
 * a separate page button. Reset those floats and render one compact flex row.
 */
.pagination__wrapper {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
}

.pagination ul,
ul.pagination,
nav .pagination {
    align-items: center;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 3px;
    height: auto !important;
    list-style: none;
    margin: 12px 0 !important;
    padding: 0 !important;
}

.pagination li,
.pagination .page-item {
    display: block !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pagination li > a,
.pagination li > span,
.pagination .page-link {
    align-items: center;
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(90, 90, 90, 0.18) !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    box-sizing: border-box;
    color: #777777 !important;
    display: inline-flex !important;
    float: none !important;
    height: 34px !important;
    justify-content: center;
    line-height: 1 !important;
    margin: 0 !important;
    min-width: 34px;
    padding: 0 9px !important;
    text-decoration: none !important;
}

.pagination li > a > span:not(.visually-hidden),
.pagination li > span > span:not(.visually-hidden),
.pagination .page-link > span:not(.visually-hidden) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
    display: inline !important;
    float: none !important;
    height: auto !important;
    line-height: inherit !important;
    margin: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
}

.pagination .visually-hidden {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    display: block !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    white-space: nowrap !important;
    width: 1px !important;
}

.pagination li > a:hover,
.pagination li > a:focus,
.pagination .page-link:hover,
.pagination .page-link:focus,
.pagination .active > a,
.pagination .active > span,
.pagination .page-item.active .page-link {
    background: rgba(65, 55, 52, 0.14) !important;
    color: #4a403d !important;
}

.pagination .disabled > a,
.pagination .disabled > span,
.pagination .page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.35) !important;
    color: #aaaaaa !important;
    cursor: default;
}

/* All desktop main-menu entries, including Joomla headings/separators. */
#hornav > ul > li > a,
#hornav > ul > li > a:link,
#hornav > ul > li > a:visited,
#hornav > ul > li.current > a,
#hornav > ul > li.active > a,
#hornav > ul > li > span,
#hornav > ul > li.current > span,
#hornav > ul > li.active > span {
    color: #ffffff !important;
}

#hornav > ul > li > a:hover,
#hornav > ul > li > a:focus,
#hornav > ul > li > a:active,
#hornav > ul > li > span:hover,
#hornav > ul > li > span:focus {
    color: #ffffff !important;
}

/* Use the complete transparent logo without clipping or repetition. */
#logo {
    top: -112px !important;
}

.logoimage a {
    background-image: url(../images/logo.png) !important;
    background-position: left center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}

#logo_mobile img {
    height: auto;
    max-height: 105px;
    object-fit: contain;
    width: 220px;
}
