/* 
-----------------------------------------
HEADER
-----------------------------------------
*/

/* ------- Breadcrumb ------- */

.breadcrumb {
    background-color: var(--neutral-color-100);
    border-bottom: 1px solid #EEEEEE;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0;
}

.breadcrumb ul {
    margin: 0;
    max-width: 100%;
}

.breadcrumb li {
    font-size: clamp(0.875rem, 0.84rem + 0.15vw, 1rem);
    font-weight: 300;
    text-wrap: nowrap;
    color: var(--text-dark)
}

.breadcrumb li:nth-child(2):has(+ li + li) {
    display: none;
}

@media screen and (min-width: 768px) {

    .breadcrumb li:first-child {
        display: block;
    }

    .breadcrumb li:nth-child(2):has(+ li + li) {
        display: block;
    }
}

.breadcrumb a {
    font-weight: 400;
    color: var( --accent-color);
    font-weight: 300;
}

.breadcrumb span.divider {
    font-weight: 300;
    color: var( --accent-color);
    margin: 0 0.375em;
}

.breadcrumb li:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ------- Subpage header ------- */

.subpage-header {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
    overflow: hidden;
    padding-top: clamp(2rem, 1.722rem + 1.203vw, 3rem);
    padding-bottom: clamp(2rem, 1.722rem + 1.203vw, 3rem);
    row-gap: 1rem;
}

.subpage-header > div {
    flex: 0 0 100%;
}

@media screen and (min-width: 992px) {

    .subpage-header > div {
        flex-basis: 50%;
    }

    .subpage-header > div:first-child {
        padding-right: 2rem;
    }
}

.subpage-headline-wrap > div {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

@media screen and (min-width: 992px) {

    .subpage-headline-wrap > div {
        border-left: 6px solid var(--primary-color);
    }
}

.subpage-header h1 {
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 0;
}

.subpage-header h1:has(+ p) {
    margin-bottom: 0.25rem;
}

p.subpage-sub-headline {
    margin: 0;
}
