/* tpl_schopper 0.2.15 */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&display=swap');


/* Global page width: keep the complete site together on very wide screens */
#schopper-page {
    max-width: 2400px;
    margin: 0 auto;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Archivo", sans-serif;
    font-weight: 400;
}

/* Header: explicit 12-column grid
   Logo + CH 3 | Claim 5 | Search 2 | Language 1 | Cart 1 */

.schopper-header-grid {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    width: 100%;
}

.header-logo { grid-column: 1 / span 3; }
.header-ch { display: none !important; }
.header-claim { grid-column: 4 / span 5; padding-left: clamp(20px, 5vw, 80px); }
.header-search { grid-column: 9 / span 2; }
.header-language { grid-column: 11 / span 1; }
.header-cart { grid-column: 12 / span 1; }

.header-logo,
.header-ch,
.header-claim,
.header-search,
.header-language,
.header-cart {
    min-width: 0;
}

/* Combined logo + Swiss cross: moderate reduction below 930px,
   then smooth proportional reduction towards the mobile breakpoint. */
.header-logo img {
    display: block;
    width: min(28vw, 270px);
    max-width: 100%;
    height: auto;
}

/* Main area: menu 25% | content 75% */

#schopper-main {
    display: grid;
    grid-template-columns: 25% 75%;
}

#schopper-menu,
#schopper-content {
    min-width: 0;
}

/* Menu background: same Schopper green as the logo area */
#schopper-menu {
    background-color: #88957b;
}

#schopper-footer {
    clear: both;
}

/* Responsive baseline - keep 25/75 layout down to the mobile breakpoint */


/* Content: keep a generous gap from the menu, shrinking with the viewport.
   Laufband and slider remain flush to the menu. */
#schopper-component {
    box-sizing: border-box;
    padding-left: clamp(20px, 5vw, 80px);
}

/* Blog articles: force Joomla category-blog and featured-blog items to a single column. */
#schopper-component .blog-items {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    width: 100%;
}

#schopper-component .blog-items > .blog-item {
    display: block !important;
    width: 100% !important;
    grid-column: 1 / -1 !important;
    margin-bottom: 30px;
}

/* Header: hide the visible search label; the input remains */
.header-search label {
    display: none !important;
}

/* Header spacing */
.header-logo {
    padding-left: 20px;
    padding-top: 6px;
    background-color: #88957b;
}

.header-search {
    padding-top: 6px;
}

/* Language switcher */
.header-language {
    padding-top: 6px;
}

/* Joomla accessibility label: keep it available to screen readers, but not visible */
.header-language .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.header-language .mod-languages {
    position: relative;
    display: inline-block;
}

.header-language .mod-languages .mod-languages__select {
    display: inline-block !important;
}

.header-language .mod-languages .mod-languages__select .dropdown-toggle {
    display: inline-flex !important;
    align-items: center;
}

/* Explicit dropdown arrow; keeps it visible even if a template reset removes Bootstrap's ::after */
.header-language .mod-languages .dropdown-toggle::after {
    display: inline-block !important;
    width: 0 !important;
    height: 0 !important;
    margin-left: 0.35rem !important;
    vertical-align: 0.15em !important;
    content: "" !important;
    border-top: 0.3em solid currentColor !important;
    border-right: 0.3em solid transparent !important;
    border-bottom: 0 !important;
    border-left: 0.3em solid transparent !important;
}

/* Bootstrap opens the menu by adding .show */
.header-language .mod-languages .lang-block {
    display: none !important;
}

.header-language .mod-languages .lang-block.show {
    display: block !important;
}

/* Dropdown must sit above the Laufband/content and have an opaque background */
.header-language .mod-languages .dropdown-menu {
    background-color: #fff !important;
    opacity: 1 !important;
    z-index: 2000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* Mobile header / offcanvas: switch at Bootstrap md = 768px */
#schopper-mobile-toggle,
#schopper-offcanvas {
    display: none;
}

@media (max-width: 767.98px) {
    #schopper-header {
        position: relative;
    }

    .schopper-header-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .header-logo,
    .header-claim,
    .header-language {
        grid-column: 1;
    }

    .header-ch {
        display: none !important;
    }

    .header-logo {
        order: 1;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-left: 0;
        padding-top: 4px;
        text-align: center;
        background-color: #88957b;
    }

    .header-logo img {
        display: block;
        width: min(88vw, 230px);
        max-width: 100%;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }

    #schopper-mobile-toggle {
        display: block;
        order: 2;
        justify-self: center;
        border: 0;
        background: transparent;
        font-size: 2rem;
        line-height: 1;
        padding: 6px 12px;
        cursor: pointer;
    }

    .header-claim {
        order: 3;
        padding: 6px 6px 0;
        text-align: center;
    }

    .header-language {
        order: 4;
        justify-self: center;
        padding-top: 6px;
    }

    .header-search,
    .header-cart {
        display: none !important;
    }


    #schopper-main {
        display: block;
    }

    #schopper-menu {
        display: none;
    }

    /* Simple, template-owned offcanvas */
    #schopper-offcanvas {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: min(88vw, 380px);
        height: 100vh;
        background: #fff;
        z-index: 3000;
        overflow-y: auto;
        box-shadow: 4px 0 18px rgba(0,0,0,.2);
        transform: translateX(-105%);
        transition: transform .2s ease;
        padding: 12px 16px 24px;
    }

    #schopper-offcanvas.is-open {
        transform: translateX(0);
    }

    .schopper-offcanvas-header {
        display: flex;
        justify-content: flex-end;
    }

    #schopper-mobile-close {
        border: 0;
        background: transparent;
        font-size: 2rem;
        line-height: 1;
        cursor: pointer;
    }

    #schopper-mobile-search .header-search {
        display: block !important;
        padding: 0 0 16px;
    }

    #schopper-mobile-search .header-search input {
        width: 100%;
    }

    #schopper-mobile-menu #schopper-menu {
        display: block;
    }

    body.schopper-offcanvas-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.25);
        z-index: 2999;
    }
}


/* Menu styling: normal white, hover red, active underlined */
#schopper-menu a,
#schopper-mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.125rem;
    line-height: 2;
}

#schopper-menu a:hover,
#schopper-mobile-menu a:hover {
    color: #d71920;
}

#schopper-menu .current > a,
#schopper-mobile-menu .current > a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Menu styling */
#schopper-menu {
    padding-left: 20px;
}

#schopper-menu ul,
#schopper-mobile-menu ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

#schopper-menu li,
#schopper-mobile-menu li {
    list-style: none;
}

/* Hide Joomla's generated descriptive text */
#schopper-menu .mod-menu__subheading,
#schopper-mobile-menu .mod-menu__subheading {
    display: none !important;
}

/* Submenu entries are visibly indented */
#schopper-menu .mod-menu__sub > li > a,
#schopper-menu ul ul > li > a,
#schopper-mobile-menu .mod-menu__sub > li > a,
#schopper-mobile-menu ul ul > li > a {
    padding-left: 20px;
}

/* Parent entries: use Joomla's real toggle button as the visible » */
#schopper-menu li.deeper > a::after,
#schopper-menu li.parent > a::after,
#schopper-mobile-menu li.deeper > a::after,
#schopper-mobile-menu li.parent > a::after {
    content: none;
}

#schopper-menu .mod-menu__toggle-sub,
#schopper-mobile-menu .mod-menu__toggle-sub {
    border: 0;
    background: transparent;
    color: #fff;
    padding: 0;
    margin-left: 1rem;
    font-size: 1.125rem;
    line-height: 2;
    cursor: pointer;
}

#schopper-menu .mod-menu__toggle-sub:hover,
#schopper-mobile-menu .mod-menu__toggle-sub:hover {
    color: #d71920;
}

#schopper-menu .mod-menu__toggle-sub .icon-chevron-down,
#schopper-mobile-menu .mod-menu__toggle-sub .icon-chevron-down,
#schopper-menu .mod-menu__toggle-sub .visually-hidden,
#schopper-mobile-menu .mod-menu__toggle-sub .visually-hidden {
    display: none !important;
}

#schopper-menu .mod-menu__toggle-sub::before,
#schopper-mobile-menu .mod-menu__toggle-sub::before {
    content: "»";
}

/* Keep the active Joomla menu branch open */
#schopper-menu li.parent.active > .mod-menu__sub,
#schopper-mobile-menu li.parent.active > .mod-menu__sub {
    display: block !important;
}

/* Hierarchical submenu indentation: each deeper level gets another 20px. */
#schopper-menu ul.mod-menu__sub ul.mod-menu__sub,
#schopper-mobile-menu ul.mod-menu__sub ul.mod-menu__sub {
    padding-left: 20px;
}

/* Lauftext: red background, white text, same size as the main menu */
#schopper-content-top {
    background-color: #d71920;
    color: #fff;
    font-size: 1.125rem;
    line-height: 2;
}

#schopper-content-top * {
    color: #fff !important;
    font-size: 1.125rem !important;
}

/* Slider area: black-to-red background, with breathing room on all sides */
#schopper-slider {
    box-sizing: border-box;
    margin: 0;
    padding: 16px;
    background: linear-gradient(to bottom, #000 0%, #000 42%, #d71920 100%);
    overflow: hidden;
}

#schopper-slider > * {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Keep slider media responsive when the available space gets tight */
#schopper-slider img,
#schopper-slider video {
    max-width: 100%;
    height: auto;
}

@media (max-width: 767.98px) {
    #schopper-slider {
        padding: 10px;
    }
}

/* Slider refinement: keep the complete image visible and center it.
   The image is limited by height first; when width becomes tight,
   both dimensions scale down proportionally. */
#schopper-slider {
    padding: 48px;
}

#schopper-slider > .devart-slider {
    width: min(800px, 100%);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#schopper-slider .devart-slider-viewport,
#schopper-slider .devart-slider-track,
#schopper-slider .devart-slider-slide,
#schopper-slider .devart-slider-media {
    max-width: 100%;
}

#schopper-slider .devart-slider-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

#schopper-slider .devart-slider-image {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 420px !important;
    object-fit: contain !important;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767.98px) {
    #schopper-slider {
        padding: 30px;
    }
}

/* Article images: keep images inside the available content width.
   This is especially important on mobile devices. */
#schopper-component img {
    max-width: 100% !important;
    height: auto !important;
}

/* Article typography */
#schopper-component .blog-item {
    line-height: 1.4;
}

#schopper-component .page-header h2,
#schopper-component .page-header h2 a,
#schopper-component .page-header h2 a:visited,
#schopper-component .blog-featured .item-title,
#schopper-component .blog-featured .item-title a,
#schopper-component .blog-featured .item-title a:visited {
    color: #000000 !important;
    font-size: 1.8rem !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
}

#schopper-component .page-header h2 a:hover,
#schopper-component .page-header h2 a:focus,
#schopper-component .blog-featured .item-title a:hover,
#schopper-component .blog-featured .item-title a:focus {
    color: #d71920 !important;
    text-decoration: none !important;
}

/* Read-more button: match the original SCHOPPER styling */
#schopper-component .readmore a {
    display: inline-block;
    font-size: 0.9rem !important;
    line-height: 1.5;
    padding: 6.4px 24px 7.2px !important;
    color: #fff !important;
    background-color: #6c757d;
    border: 1px solid #6c757d;
    border-radius: 0.25rem;
    text-decoration: none !important;
}

#schopper-component .readmore a:hover,
#schopper-component .readmore a:focus {
    color: #fff !important;
    background-color: #5a6268;
    border-color: #545b62;
    text-decoration: none !important;
}

/* Joomla/Bootstrap accessibility helpers.
   Joomla uses these classes when an option is set to "Verbergen".
   They remain available to screen readers while being visually hidden. */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Article previous/next navigation:
   hide the article title but keep it available to screen readers,
   and use the same button style as "Weiterlesen". */

#schopper-component .pagenavigation .previous,
#schopper-component .pagenavigation .next {
    display: inline-block;
}

#schopper-component .pagenavigation a.previous,
#schopper-component .pagenavigation a.next {
    display: inline-block;
    font-size: 0.9rem !important;
    line-height: 1.5;
    padding: 6.4px 24px 7.2px !important;
    color: #fff !important;
    background-color: #6c757d !important;
    border: 1px solid #6c757d !important;
    border-radius: 0.25rem;
    text-decoration: none !important;
}

#schopper-component .pagenavigation a.previous:hover,
#schopper-component .pagenavigation a.previous:focus,
#schopper-component .pagenavigation a.next:hover,
#schopper-component .pagenavigation a.next:focus {
    color: #fff !important;
    background-color: #5a6268 !important;
    border-color: #545b62 !important;
    text-decoration: none !important;
}

#schopper-component .pagenavigation .pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* Sticky desktop menu */
@media (min-width: 768px) {
    #schopper-menu {
        position: sticky;
        top: 0;
        align-self: start;
        min-height: 100vh;
    }
}

/* Footer: 3:9 layout */
#schopper-footer {
    display: grid;
    grid-template-columns: minmax(0, 25%) minmax(0, 75%);
    width: 100%;
    background-color: #eeeeee;
}

#schopper-footer .footer-left {
    grid-column: 1;
    box-sizing: border-box;
    min-width: 0;
    background-color: #eeeeee;
    padding: 20px;
}

#schopper-footer .footer-right {
    grid-column: 2;
    box-sizing: border-box;
    min-width: 0;
    background-color: #eeeeee;
    padding: 20px;
}

@media (max-width: 767.98px) {
    #schopper-footer {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   tpl_schopper 0.2.61
   Joomla category children
   Normalize the subcategory output of a category view.
   The native categories-list view remains untouched.
   ========================================================= */

#schopper-component .com-content-category .cat-children {
    margin-top: 1.5rem;
}

#schopper-component .com-content-category
.com-content-category__children {
    margin: 0;
    padding: 0;
}

#schopper-component .com-content-category
.com-content-category__children .page-header {
    margin: 0;
    padding: 0.35rem 0;
    font-size: inherit;
    line-height: 1.4;
    font-weight: normal;
    border: 0;
}

#schopper-component .com-content-category
.com-content-category__children .page-header a {
    text-decoration: none;
}

#schopper-component .com-content-category
.com-content-category__children .page-header a:hover {
    text-decoration: underline;
}


/* =========================================================
   tpl_schopper 0.2.62
   Joomla category articles
   Present category articles as a clean list.
   ========================================================= */

#schopper-component .com-content-category__articles {
    margin: 1.5rem 0 0;
}

#schopper-component .com-content-category__table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
}

#schopper-component .com-content-category__table thead {
    display: none;
}

#schopper-component .com-content-category__table tbody tr {
    display: block;
    border: 0;
}

#schopper-component .com-content-category__table tbody th.list-title {
    display: block;
    width: 100%;
    padding: 0.35rem 0;
    border: 0;
    background: transparent;
    text-align: left !important;
    font-weight: normal;
}

#schopper-component .com-content-category__table tbody th.list-title a {
    text-decoration: none;
}

#schopper-component .com-content-category__table tbody th.list-title a:hover {
    text-decoration: underline;
}

/* =========================================================
   tpl_schopper 0.2.64
   Mobile footer-left
   Facebook logo left aligned and reduced in size.
   ========================================================= */

@media (max-width: 767.98px) {
    #schopper-footer .footer-left {
        padding-left: 0;
    }

    #schopper-footer .footer-left img {
        width: 45px;
        height: auto;
    }
}


/* =========================================================
   tpl_schopper 0.2.66
   Mobile footer layout
   Keep a dedicated left column for the Facebook logo.
   ========================================================= */

@media (max-width: 767.98px) {
    #schopper-footer {
        grid-template-columns: 60px minmax(0, 1fr);
        align-items: start;
    }

    #schopper-footer .footer-left {
        grid-column: 1;
        width: 60px;
        min-width: 60px;
        padding: 0;
        margin: 0;
        overflow: visible;
        box-sizing: border-box;
    }

    #schopper-footer .footer-left img {
        display: block;
        width: 45px !important;
        max-width: 45px !important;
        min-width: 45px !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    #schopper-footer .footer-right {
        grid-column: 2;
        min-width: 0;
        padding: 20px 10px 20px 0;
        box-sizing: border-box;
    }
}
