/* TYPO3 integration only. The visual rules are generated from OXID app.source.css. */
:where([data-oxid-chrome]) {
    box-sizing: border-box;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: rgb(58, 60, 61);
    -webkit-font-smoothing: antialiased;
}
[data-oxid-chrome] [hidden] { display: none !important; }
/* TYPO3 content dropdowns/contact controls use z-index 1000. Keep the OXID
 * sidetab above them, below the OXID header (1005) and native modals (1040+).
 */
[data-oxid-chrome].on-page-contact { z-index: 1001; }
[data-oxid-chrome].on-page-contact ~ .to-top-container { z-index: 1000; }
/* Preserve the native CookieScript badge clearance on OXID's footer markup. */
@media (min-width: 992px) {
    body:has(#cookiescript_badge) .footer[data-oxid-chrome] .legals-nav {
        padding-left: 50px;
    }
}
@media (min-width: 1400px) {
    body:has(#cookiescript_badge) .footer[data-oxid-chrome] .legals-nav {
        padding-left: calc(20px - clamp(0rem, -43.75rem + 50vw, 1.25rem));
    }
}
/* TYPO3's Bootstrap positions every .container and makes .nav a flex box.
 * OXID relies on their default block/static layout here: desktop mega menus
 * span the intended ancestor, and mobile panels slide within the menu bounds.
 * Both header containers must be static; a positioned header row otherwise
 * paints over the static desktop navigation and can intercept its clicks.
 */
#page-header[data-oxid-chrome] > #page-menu { display: block; }
#page-header[data-oxid-chrome] > .header__container,
#page-header[data-oxid-chrome] > #page-menu > .container { position: static; }
/* Source rules reset these properties globally; TYPO3's Bootstrap supplies extras. */
[data-oxid-chrome] .breadcrumb-list,
[data-oxid-chrome] .navigation-layer-list,
[data-oxid-chrome] .legals-items,
[data-oxid-chrome] .dropdown-menu { list-style: none; padding-left: 0; }
[data-oxid-chrome].breadcrumb { display: block; border-radius: 0; padding-left: 0; padding-right: 0; }
[data-oxid-chrome] .footer__tab input:focus-visible + .title { outline: 2px solid currentColor; outline-offset: -3px; }
[data-oxid-chrome] .navigation-layer-link > .item-image { max-width: 100%; height: auto; }
/* Keep the existing editor's optional four-column setting. */
@media (min-width: 1200px) {
    [data-oxid-chrome] [data-cols="4"].is-column-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1199.98px) {
    html.oxid-menu-open { overflow: hidden; }
}
@media (min-width: 1200px) {
    [data-oxid-chrome] .is-column-menu > [data-grid-position="top-left"] { grid-area: 1 / 1; }
    [data-oxid-chrome] .is-column-menu > [data-grid-position="top-middle"] { grid-area: 1 / 2; }
    [data-oxid-chrome] .is-column-menu > [data-grid-position="top-right"] { grid-area: 1 / 3; }
    [data-oxid-chrome] .is-column-menu > [data-grid-position="bottom-left"] { grid-area: 2 / 1; }
    [data-oxid-chrome] .is-column-menu > [data-grid-position="bottom-middle"] { grid-area: 2 / 2; }
    [data-oxid-chrome] .is-column-menu > [data-grid-position="bottom-right"] { grid-area: 2 / 3; }
}

/* Allow the separate phone search row to fit narrow screens. At tablet widths,
 * keep OXID's intrinsic input minimum and its original non-shrinking column.
 */
@media (max-width: 575.98px) {
    #page-header[data-oxid-chrome] .header__search,
    #page-header[data-oxid-chrome] .header__search .search-btn {
        min-width: 0;
    }
    #page-header[data-oxid-chrome] .header__search .search-btn > input[type="text"] {
        min-width: 0;
        flex: 1 1 0;
    }
    #page-header[data-oxid-chrome] .header__search .search-btn > button[type="submit"] {
        flex: 0 0 auto;
    }
}

/* OXID sets this input to 16px but keeps the browser's native input family.
 * Undo Bootstrap's global font:inherit for this property only. The rest of the
 * site continues to use the supplied Roboto files. Neutralize the legacy .54
 * WebKit placeholder opacity as OXID's placeholder is fully opaque.
 */
#page-header[data-oxid-chrome] .header__search input[type="text"] {
    font-family: revert;
    font-weight: 400;
    font-style: normal;
}
#page-header[data-oxid-chrome] .header__search input[type="text"]::placeholder {
    font: inherit;
    opacity: 1;
}
