
/* Oplevio – udviklingsheader med eksisterende menupunkter */

/*.site-header.site-header-oplevio {
    height: var(--header-height, 80px);
    background: #fff;
    border-bottom: 1px solid #eeeef2;
    box-shadow: 0 2px 14px rgba(24,32,58,.045);
    z-index: 1050;
}*/
.site-header.site-header-oplevio {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--header-height, 80px);
    background: #fff;
    border-bottom: 1px solid #eeeef2;
    box-shadow: 0 2px 14px rgba(24,32,58,.045);
    z-index: 1050;
}
.oplevio-header {
    width: 100%;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    color: #18203a;
}

.oplevio-header *,
.oplevio-header *::before,
.oplevio-header *::after {
    box-sizing: border-box;
}

.oplevio-header-inner {
    width: 100%;
    max-width: 1320px;
    height: 100%;
    padding: 0 12px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

@media (max-width: 1399.98px) {
    .oplevio-header-inner {
        max-width: 1140px;
    }
}

@media (max-width: 1199.98px) {
    .oplevio-header-inner {
        max-width: 960px;
    }
}

@media (max-width: 991.98px) {
    .oplevio-header-inner {
        max-width: 720px;
    }
}

@media (max-width: 767.98px) {
    .oplevio-header-inner {
        max-width: 540px;
    }
}

@media (max-width: 575.98px) {
    .oplevio-header-inner {
        max-width: 100%;
    }
}

.oplevio-header-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.oplevio-header-brand img {
    display: block;
    width: auto;
    max-width: 180px;
    height: auto;
    max-height: 52px;
}

.oplevio-header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-left: auto;
    white-space: nowrap;
}

.oplevio-header-nav-link {
    color: #18203a;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.oplevio-header-nav-link:hover {
    color: #8d198d;
}

.oplevio-header-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 3px;
}

.oplevio-header-chevron {
    border: 0;
    background: transparent;
    padding: 4px;
    cursor: pointer;
    color: #18203a;
}

.oplevio-header-chevron svg {
    width: 13px;
    height: 13px;
}

.oplevio-header svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.oplevio-header-dropdown-panel {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    min-width: 205px;
    padding: 9px;
    display: none;
    flex-direction: column;
    gap: 2px;
    border: 1px solid #eeeef2;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(24,32,58,.13);
    z-index: 20;
}

.oplevio-header-dropdown-panel::before {
    content: '';
    position: absolute;
    height: 20px;
    bottom: 100%;
    left: 0;
    right: 0;
}

/* Åbn dropdown ved hover, tastaturfokus eller klik */
.oplevio-header-dropdown:hover > .oplevio-header-dropdown-panel,
.oplevio-header-dropdown:focus-within > .oplevio-header-dropdown-panel,
.oplevio-header-dropdown.is-open > .oplevio-header-dropdown-panel {
    display: flex;
}

.oplevio-header-dropdown-panel a {
    padding: 9px 11px;
    color: #18203a;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
}

.oplevio-header-dropdown-panel a:hover {
    background: #f8f2f8;
    color: #8d198d;
}

.oplevio-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.oplevio-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 34px;
    padding: 3px;
    color: #18203a;
    background: transparent;
    border: 0;
    text-decoration: none;
    cursor: pointer;
}

.oplevio-header-icon svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: #18203a;
    stroke-width: 1.8;
}

.oplevio-header-icon:hover {
    color: #8d198d;
}

.oplevio-header-provider {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    padding: 0 20px;
    border-radius: 6px;
    background: #8d198d;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.oplevio-header-provider:hover {
    background: #701370;
    color: #fff;
}

.oplevio-header-account-panel {
    left: auto;
    right: 0;
}

.oplevio-header-mobile-toggle,
.oplevio-header-mobile-panel {
    display: none;
}

/* Tablet / mindre desktop */

@media (max-width: 1199px) and (min-width: 992px) {
    .oplevio-header-inner {
        padding: 0 18px;
        gap: 18px;
    }

    .oplevio-header-brand img {
        max-width: 145px;
    }

    .oplevio-header-nav {
        gap: 12px;
    }

    .oplevio-header-actions {
        gap: 8px;
    }

    .oplevio-header-provider {
        padding: 0 12px;
    }
}

/* Mobilnavigation */

@media (max-width: 991.98px) {
    .site-header.site-header-oplevio {
        height: var(--header-height, 80px);
    }

    .oplevio-header-inner {
        padding: 0 20px;
        gap: 16px;
    }

    .oplevio-header-nav,
    .oplevio-header-account {
        display: none;
    }

    .oplevio-header-actions {
        margin-left: auto;
    }

    .oplevio-header-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 6px;
        background: transparent;
        border: 1px solid #eeeef2;
        border-radius: 8px;
        color: #18203a;
        cursor: pointer;
    }

    .oplevio-header-mobile-toggle svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #18203a;
    stroke-width: 1.8;
}

    .oplevio-header-mobile-panel:not([hidden]) {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
        background: #fff;
        border-top: 1px solid #eeeef2;
        box-shadow: 0 14px 25px rgba(24,32,58,.13);
    }

    .oplevio-header-mobile-panel nav {
        max-width: 1280px;
        margin: 0 auto;
        padding: 14px 20px 24px;
        display: flex;
        flex-direction: column;
    }

    .oplevio-header-mobile-group {
        border-bottom: 1px solid #f0edf2;
    }

    .oplevio-header-mobile-group summary,
    .oplevio-header-mobile-link {
        display: block;
        padding: 13px 0;
        color: #18203a;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
    }

    .oplevio-header-mobile-group summary {
        display: list-item;
        list-style-position: inside;
    }

    .oplevio-header-mobile-submenu {
        display: flex;
        flex-direction: column;
        padding: 0 0 10px 20px;
    }

    .oplevio-header-mobile-submenu a {
        padding: 9px 0;
        font-size: 13px;
        color: #50566a;
        text-decoration: none;
    }

    .oplevio-header-mobile-link {
        border-bottom: 1px solid #f0edf2;
    }

    .oplevio-header-mobile-provider {
        margin-top: 15px;
        align-self: flex-start;
        padding: 0 22px;
    }
}

/* Lille mobil */

@media (max-width: 576px) {
    .site-header.site-header-oplevio {
        height: var(--header-height-mobile, 68px);
    }

    .oplevio-header-inner {
        padding: 0 16px;
    }

    .oplevio-header-brand img {
        max-width: 140px;
        max-height: 42px;
    }

    .oplevio-header-actions {
        gap: 8px;
    }

    .oplevio-header-actions > .oplevio-header-provider {
        display: none;
    }

    .oplevio-header-mobile-panel:not([hidden]) {
        max-height: calc(100dvh - 68px);
    }
}

@media (max-width: 991.98px) {

    .oplevio-header-mobile-link {
        padding: 16px 0;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.4;
    }

    .oplevio-header-mobile-provider {
        width: 100%;
        min-height: 44px;
        margin-top: 18px;
        text-align: center;
        justify-content: center;
    }

    .oplevio-header-mobile-panel nav {
        padding-bottom: 24px;
    }

    /* Hamburger bliver til kryds ved åben menu */
    .oplevio-header-mobile-toggle[aria-expanded="true"] svg {
        display: none;
    }

    .oplevio-header-mobile-toggle[aria-expanded="true"]::after {
        content: "×";
        font-family: Arial, sans-serif;
        font-size: 28px;
        font-weight: 300;
        line-height: 1;
    }
}


/* ==========================================
   OPLEVIO – INSPIRATION DROPDOWN
========================================== */

.oplevio-header-inspiration-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
}

.oplevio-header-inspiration-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform .2s ease;
}

.oplevio-header-inspiration:hover
.oplevio-header-inspiration-toggle svg,
.oplevio-header-inspiration:focus-within
.oplevio-header-inspiration-toggle svg,
.oplevio-header-inspiration.is-open
.oplevio-header-inspiration-toggle svg {
    transform: rotate(180deg);
}

.oplevio-header-inspiration-panel {
    width: 385px;
    min-width: 385px;
    padding: 9px;
    gap: 3px;
    border: 1px solid #eee7f0;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(24, 32, 58, .14);
}

.oplevio-header-inspiration-panel
.oplevio-header-inspiration-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 10px;
    color: #18203a;
    text-decoration: none;
    transition: background .18s ease;
}

.oplevio-header-inspiration-panel
.oplevio-header-inspiration-item:hover,
.oplevio-header-inspiration-panel
.oplevio-header-inspiration-item:focus-visible {
    background: #faf6fb;
    color: #18203a;
}

.oplevio-header-inspiration-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 11px;
}

.oplevio-header-inspiration-icon-pink {
    background: #fceaf3;
    color: #e50064;
}

.oplevio-header-inspiration-icon-purple {
    background: #f3eaf8;
    color: #8d198d;
}

.oplevio-header-inspiration-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

.oplevio-header-inspiration-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.oplevio-header-inspiration-copy strong {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: #18203a;
}

.oplevio-header-inspiration-copy > span {
    font-size: 11px;
    font-weight: 400;
    line-height: 1.55;
    color: #50566a;
    white-space: normal;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .oplevio-header-inspiration-panel {
        left: 50%;
        transform: translateX(-50%);
    }
}


/* ==========================================
   OPLEVIO – MOBILE INSPIRATION
========================================== */

@media (max-width: 991.98px) {
    .oplevio-header-mobile-inspiration {
        padding: 14px 0;
        border-bottom: 1px solid #f0edf2;
    }

    .oplevio-header-mobile-section-title {
        display: block;
        margin-bottom: 7px;
        color: #8d198d;
        font-size: 12px;
        font-weight: 700;
    }

    .oplevio-header-mobile-inspiration-link {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 11px 12px;
        border-radius: 9px;
        text-decoration: none;
    }

    .oplevio-header-mobile-inspiration-link:hover {
        background: #faf6fb;
    }

    .oplevio-header-mobile-inspiration-link strong {
        color: #18203a;
        font-size: 13px;
        font-weight: 700;
    }

    .oplevio-header-mobile-inspiration-link span {
        color: #50566a;
        font-size: 11px;
        line-height: 1.5;
    }
}


/* Mobil – sammenklappelig inspiration */

@media (max-width: 991.98px) {

    .oplevio-header-mobile-inspiration {
        padding: 0;
    }

    .oplevio-header-mobile-inspiration summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 0;
        margin: 0;
        list-style: none;
        color: #18203a;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

    .oplevio-header-mobile-inspiration summary::-webkit-details-marker {
        display: none;
    }

    .oplevio-header-mobile-inspiration summary svg {
        flex-shrink: 0;
        transition: transform .2s ease;
    }

    .oplevio-header-mobile-inspiration[open] summary svg {
        transform: rotate(180deg);
    }

    .oplevio-header-mobile-inspiration
    .oplevio-header-mobile-submenu {
        display: flex;
        flex-direction: column;
        padding: 0 0 12px 12px;
    }

    .oplevio-header-mobile-inspiration
    .oplevio-header-mobile-inspiration-link {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 12px;
        border-radius: 9px;
    }
}
