/* ---------- FONTS ---------- */

@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 1 999;
    src: url('../../fonts/open-sans/OpenSans-VariableFont_wdth,wght.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 1 999;
    src: url('../../fonts/open-sans/OpenSans-Italic-VariableFont_wdth,wght.ttf') format('truetype');
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

h1 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
}

em, i {
    font-family: 'Open Sans', sans-serif;
    font-style: italic;
}

/* ---------- GENERAL ---------- */

html, body {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
}

main {
    flex-grow: 1;
    margin: 60px 0;
}

.umb-block-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


::-webkit-scrollbar-track {
    background: none;
}

::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
}

/* ---------- BUTTONS ---------- */

.btn-primary {
    background-color: #009fe3;
    border: 1px solid #009fe3;
    border-radius: 0;
}

    .btn-primary:hover, .btn-primary:focus {
        background-color: transparent;
        border: 1px solid #009fe3;
        color: #009fe3;
    }

.btn-secondary {
    background-color: #828282;
    border: 1px solid #828282;
    border-radius: 0;
}

    .btn-secondary:hover, .btn-secondary:focus {
        background-color: transparent;
        border: 1px solid #828282;
        color: #828282;
    }

/* ---------- Structure ---------- */

.section {
    padding: 50px 0;
}

    .section .section {
        padding: 30px 0;
    }

/* ---------- HEADER ---------- */

header {
    background-color: white;
    box-shadow: rgb(173 173 173 / 50%) 0 4px 20px -2px;
    padding: 30px 0;
}

.logo-wrapper {
    gap: 15px;
}

    .logo-wrapper img.logo {
        height: 60px;
        width: auto;
    }

    .logo-wrapper img.swiss-flag {
        height: 30px;
    }

.lang-links {
    display: flex;
    gap: 7.5px;
}

.lang-link {
    border: 2px solid #828282;
    color: #828282;
    font-size: 13px;
    font-weight: bold;
    padding: 5px 6px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

    .lang-link:hover, .lang-link.active {
        border-color: #009fe3;
        color: #009fe3;
    }

.back-btn img {
    height: auto;
    width: 35px;
}

.action-links {
    align-items: flex-end;
    gap: 12.5px;
}

@media screen and (max-width: 575px) {
    header {
        padding: 20px 0;
    }

    .logo-wrapper img.logo {
        height: 40px;
    }

    .logo-wrapper {
        gap: 10px;
    }
}

/* ---------- ACCORDION ---------- */

.cd-cb-accordion .component-title {
    color: #00a0e1;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 2rem;
    margin: 0;
}

.cd-cb-accordion .accordion-favorites svg {
    color: #facc15;
    fill: #facc15;
    height: 1.25rem;
    width: 1.25rem;
}

.cd-cb-accordion .accordion-item {
    background-color: #f3f4f6;
}

    .cd-cb-accordion .accordion-item:first-of-type {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    .cd-cb-accordion .accordion-item:last-of-type {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

.cd-cb-accordion .accordion-header {
    align-items: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    position: relative;
    text-align: left;
    width: 100%;
}

.cd-cb-accordion .accordion-button {
    background-color: #f3f4f6;
    padding: 1rem;
}

    .cd-cb-accordion .accordion-button:focus {
        box-shadow: none;
    }

    .cd-cb-accordion .accordion-button:not(.collapsed) {
        background-color: inherit;
        box-shadow: inherit;
        color: inherit;
    }

.cd-cb-accordion .accordion-header-image {
    border-radius: 6px;
    flex-shrink: 0;
    height: 3rem;
    margin-right: 1rem;
    overflow: hidden;
    position: relative;
    width: 3rem;
}

.cd-cb-accordion .accordion-header-img {
    object-fit: cover;
}

.cd-cb-accordion .accordion-header-title {
    font-size: inherit;
    font-weight: bold;
    margin-bottom: 0;
    transition: margin-top 0.3s ease;
}

.cd-cb-accordion .accordion-header-summary {
    color: #00a0e1;
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin-bottom: 0;
    margin-right: 2rem;
    max-height: 10rem;
    opacity: 1;
    overflow: hidden;
    transition: all 300ms ease;
}

.cd-cb-accordion .accordion-button:not(.collapsed) .accordion-header-summary {
    max-height: 0;
}

.cd-cb-accordion .accordion-body {
    padding: 0.5rem 1rem 1rem 1rem;
}

.cd-cb-accordion .accordion-items-list {
    list-style: none;
    margin: 0;
    padding-left: 4rem;
}

    .cd-cb-accordion .accordion-items-list > :not([hidden]) ~ :not([hidden]) {
        margin-top: 16px;
    }

.cd-cb-accordion .accordion-subcategory {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.cd-cb-accordion .accordion-subcategory-content {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.cd-cb-accordion .accordion-subcategory-image {
    border-radius: 0.25rem;
    flex-shrink: 0;
    height: 2.5rem;
    overflow: hidden;
    position: relative;
    width: 2.5rem;
}

.cd-cb-accordion .accordion-subcategory-img {
    object-fit: cover;
}

.cd-cb-accordion .accordion-subcategory-link-wrapper {
    font-size: inherit;
    font-weight: inherit;
    margin-bottom: 0;
}

.cd-cb-accordion .accordion-subcategory-link {
    color: #00a0e1;
    text-decoration: none;
}

.cd-cb-accordion .accordion-subcategory-fav-btn {
    align-items: center;
    background-color: transparent;
    border: none;
    display: flex;
    justify-content: center;
    outline: none;
    padding: 0;
}

.cd-cb-accordion .accordion-subcategory-fav-icon {
    color: #d1d5db;
    height: 1.25rem;
    width: 1.25rem;
}

    .cd-cb-accordion .accordion-subcategory-fav-icon.filled {
        color: #facc15;
        fill: #facc15;
    }

/* ---------- Favorites Modal ---------- */

#favorites-modal .modal-content {
    border-radius: 0;
}

#favorites-modal .accordion-subcategory {
    min-height: 40px;
}

#favorites-modal .modal-header .btn-close:focus {
    box-shadow: none;
    outline: none;
}
