/* ---------------------------------------------------------------------------------------------

	Theme Name: WorkDigital Foundation
    Text Domain: wd-foundation
	Version: 0.1
	Description: WorkDigital Foundation theme for wordpress
	Author: WorkDigital
	Author URI: https://workdigital.dk
	License: GNU General Public License version 2.0
	License URI: https://gnu.org/licenses/gpl-2.0.html

/* --------------------------------------------------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* ===== ARVET FRA DET GAMLE TEMA (herunder) ===== */

/* 
    ——————————
    Variabler
    ——————————
*/

:root {
    --bold: 700;
    --medium-font-size: calc(var(--body-font-size) * 1.25);
    --large-font-size: calc(var(--body-font-size) * 2);
    --huge-font-size: calc(var(--body-font-size) * 2.75);
    --small-font-size: calc(var(--body-font-size) * 0.8);
    --tiny-font-size: calc(var(--body-font-size) * 0.75);
    --body-line-height: 1.5;
    --text-color: var(--text-color);

    --header-height: 60px;
    
    --standard-transition: 225ms cubic-bezier(0.4, 0.0, 0.2, 1);
    --slow-transition: 375ms cubic-bezier(0.4, 0.0, 0.2, 1);
    
    --theme-off-white: var(--surface-color);

    --btn-color: var(--secondary-color);
    --btn-color-hover: var(--secondary-color-hover);
    --btn-text-color: var(--light);

    --theme-border-radius: 10px;

    --shadowlevel-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadowlevel-2: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --shadowlevel-3: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    --shadowlevel-4: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    --shadowlevel-5: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
    
    --parallax-percent: 0%;
    
    --theme-narrow-width: 700px;
    --theme-standard-width: 1200px;
    --theme-wide-width: 1440px;
}

:root body.dark-mode{
    --shadowlevel-1: 0 0 0 3px rgba(255,255,255,0.04);
    --shadowlevel-2: 0 0 0 3px rgba(255,255,255,0.08);
    --shadowlevel-3: 0 0 0 3px rgba(255,255,255,0.12);
    --shadowlevel-4: 0 0 0 3px rgba(255,255,255,0.16);
    --shadowlevel-5: 0 0 0 3px rgba(255,255,255,0.20);
}







/*
    ——————————
    Generel styling
    ——————————
*/

*[id]{
	scroll-margin-top: 150px;
}







/*
    ——————————
    Styling til body
    ——————————
*/

body {
    color: var(--text-color);
    background-color: var(--background-color);
}

body:has(.header-topper.header-topper--only-desktop) {
	padding-top: var(--header-height);
}
/*
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .headline,
h1 *, h2 *, h3 *, h4 *, h5 *, h6 *, .h1 *, .h2 *, .h3 *, .h4 *, .h5 *, .h6 *, .headline *{
    font-family: var(--primary-font-stack)!important;
}

*{
    font-family: var(--secondary-font-stack)!important;
}*/

html body.custom-background,
.custom-background.page-template {
    background: var(--background-color);
}

.wp-block-heading {
	margin-bottom: 0.4em;
}

.entry-content :is(ul, p, h1, h2, h3, h4, h5, h6, blockquote, figure, .schema-faq, .wp-block-buttons, .wd-contact-form, .wd-cards-wrapper) + :is(ul, p, h1, h2, h3, h4, h5, h6, blockquote, figure, .schema-faq, .wp-block-buttons, .wd-contact-form, .wd-cards-wrapper) {
    margin-top: 15px;
}

.entry-content .wp-block-heading {
    margin-bottom: 10px;
}

.entry-content .wp-block-heading + p {
    margin-top: 0 !important;
}

.wdf-width{
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.entry-content > :is(.wdf-width, .wp-block-cover) > *:not(.wp-block-cover__background, .wp-block-cover__image-background) {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-cover, .wp-block-cover-image {
    padding: var(--small-gap) 0;
}

@media screen and (min-width: 769px) {
	body:has(.header-topper.header-topper--only-desktop) {
		padding-top: calc(var(--header-height) + 28px);
	}

    .entry-content :is(ul, p, h1, h2, h3, h4, h5, h6, blockquote, figure, .schema-faq, .wp-block-buttons, .wd-contact-form, .wd-cards-wrapper) + :is(ul, p, h1, h2, h3, h4, h5, h6, blockquote, figure, .schema-faq, .wp-block-buttons, .wd-contact-form, .wd-cards-wrapper) {
        margin-top: 22px;
    }
}







/* 
    ——————————
    Styling til UI-elementer
    ——————————
*/

.color-accent,
.color-accent-hover:hover,
.color-accent-hover:focus,
:root .has-accent-color,
.has-drop-cap:not(:focus)::first-letter,
.wp-block-button.is-style-outline,
a {
    color: var(--secondary-color);
}

ul,
ol {
    margin: 2.5rem 0 3rem 2ch;
}

li {
    margin: 0.5rem 0 0 1.5ch;
}

li > ol {
    margin-top: 0;
}

.wp-block-list li {
    align-items: center;
}

.wp-block-list li .wd-icon {
    height: calc(var(--standard-text-font-size) + 4px);
    width: calc(var(--standard-text-font-size) + 4px);
}







/*Kompentation for fixed header*/


body:not(:has(.header-topper)) {
    padding-top: var(--header-height);
}

body:has(.header-topper) {
    padding-top: calc(var(--header-height) + 28px);
}

header.wd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--header-bg-color);
    color: var(--header-text-color);
    z-index: 99;
    box-shadow: var(--shadowlevel-1);
}







/*Sticky element - sæt blot klassen på i backend, så er den sticky ift. header*/

.wd-sticky {
    position: sticky;
    top: calc(var(--header-height) + 40px);
}







/*  ——————————
header topper
    ——————————  */

.header-topper{
    background-color: var(--header-topper-bg-color);
    color: var(--header-topper-text-color);
}

.header-topper--only-desktop {
	display: none;
}

.header-topper-item .wd-icon {
	position: relative;
	top: 1px;
}

.header-topper-items{
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-around;
    font-size: var(--small-font-size);
    margin: 0;
    padding: 2px 0;
}

.header-topper-item{
    margin: 0;
    list-style: none;
}

.header-topper-item a{
    display: flex;
    align-items: center;
    gap: 0.5ch;
    color: inherit;
    text-decoration: none;
}

@media screen and (min-width: 600px){
    .header-topper-items{
        justify-content: center;
    }
}

 @media screen and (min-width: 1190px) and (hover: hover){
    .header-topper--only-desktop {
		display: block;
	}

    .header-topper.header-topper--only-mobile{
        display: none;
    }

    .header-topper-items{
        justify-content: flex-end;
        padding-right: 24px;
    }
}







/*  ——————————
main header
    ——————————  */

.main-header-inner {
    display: flex;
    justify-content: space-between;
    padding: 0 24px 0 16px;
    height: var(--header-height);
}

.nav-backdrop {
    position: fixed;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1;
    user-select: none;
    pointer-events: none;
    transition: opacity var(--standard-transition);
    opacity: 0;
}

.main-header--menu-open .nav-backdrop {
    opacity: 1;
    pointer-events: all;
}

.main-header-logo-link,
.main-header-nav-open{
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: var(--header-height);
    margin-right: auto;
}

.main-header-logo-link img {
    max-height: 58px;
    height: 100%;
    box-sizing: border-box;
    padding: 14px 0;
    width: auto;
}

@media screen and (min-width: 600px) {
    .main-header-inner {
        padding: 0 32px 0 24px;
    }
}







/*  ——————————
main nav
    ——————————  */

.main-header-nav{
    color: var(--text-color);
    display: block;
    background: var(--background-color);
    position: fixed;
    width: 90vw;
    max-width: 360px;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    border-radius: 12px 0 0 12px;
    border-top: 2px solid color-mix(in srgb, var(--header-bg-color) 20%, transparent);
    border-left: 2px solid color-mix(in srgb, var(--header-bg-color) 20%, transparent);
    border-bottom: 2px solid color-mix(in srgb, var(--header-bg-color) 20%, transparent);
    z-index: 2;
    pointer-events: none;
    transition: transform var(--standard-transition);
    transform: translateX(100%);
}

.main-header--menu-open .main-header-nav{
    overflow-y: auto;
    pointer-events: all;
    transform: translateX(0);
}

.nav-drawer-header{
    display: flex;
    justify-content: space-between;
    padding: 28px;
}

.nav-drawer-title {
    line-height: 24px;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: inherit;
    text-decoration: none;
}

.main-header-menu{
    list-style: none;
    margin: 0 12px;
}

.main-header-menu .menu-item{
    position: relative;
    list-style: none;
    margin: 0px;
}

.main-header-menu .menu-item > a {
    display: grid;
    grid-template-columns: 24px 1fr;
    color: inherit;
    gap: 12px;
    text-decoration: none;
    align-items: center;
    height: 56px;
    padding: 0 0 0 16px;
    border-radius: 28px;
    white-space: nowrap;
}

.main-header:not(.main-header--hide-icons) .menu-item > a:not(:has(.wd-icon)) {
    padding-left: 32px;
}

.main-header.main-header--hide-icons .menu-item > a {
    padding-left: 16px;
}


.main-header.main-header--hide-icons .menu-item .wd-icon.menu-icon{
    display: none;
}

.main-header-menu .menu-item > a.expand-sub-menu {
    padding: 0;
    place-items: center;
    position: absolute;
    top: 0;
    right: 0;
    grid-template-columns: initial;
    aspect-ratio: 1 / 1;
}

.main-header-menu .menu-item.is-expanded > a.expand-sub-menu .wd-icon.dropdown-icon {
    transform: rotate(180deg) translateY(2px);
}

.main-header-menu .menu-item > a:focus,
.main-header-menu .menu-item > a:active {
    background-color: color-mix(in srgb, var(--header-bg-color), var(--dark) 10%);
}

.main-header-menu:not(:has(a:focus, a:active)) .menu-item.current_page_item > a {
    background-color: color-mix(in srgb, var(--header-bg-color), var(--dark) 10%);
}

.main-header-menu .menu-item.menu-item-has-children > span.icon {
    position: absolute;
    width: 0px;
    height: 0px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid var(--text-color);
    top: 26px;
    right: 24px;
    pointer-events: none;
}

.sub-menu{
    margin: 0;
    padding-left: 36px;
    transition: max-height var(--standard-transition);
    max-height: 100vh;
    overflow: hidden;
    --submenu-element-height: 56px;
}

.menu-item-has-children .sub-menu{
    max-height: calc(var(--submenu-element-height) * var(--num-children));
}

.main-header-menu .menu-item:has(> a[href="#"]):not(.is-expanded) .sub-menu {
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    will-change: max-height;
}


.main-header-nav-open,
.main-header-nav-close{
    cursor: pointer;
    margin-right: 0;
}

@media screen and (min-width: 1190px) and (hover: hover){
    body.sometimes-burger .sub-menu,
    body.sometimes-burger .main-header-nav-open,
    body.sometimes-burger .nav-backdrop,
    body.sometimes-burger .nav-drawer-header,
    body.sometimes-burger .main-header-menu .menu-item.menu-item-has-children > span.icon {
        display: none;
    }

    body.sometimes-burger .main-header-inner {
        height: auto;
        align-items: center;
        max-height: var(--header-height);
        padding: 0px 24px;
        --dropdown-menu-distance: 5px;
    }

    body.sometimes-burger nav.main-header-nav {
        position: relative;
        height: auto;
        background: none;
        border: none;
        width: auto;
        max-width: unset;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        border-radius: 0;
        transform: none;
        transition: none;
        color: inherit;
        pointer-events: all;
    }

    body.sometimes-burger .main-header-menu .menu-item.menu-item-has-children:hover > a{
        position: relative;
        z-index: 1;
    }

    body.sometimes-burger .main-header.main-header--hide-icons-on-desktop .menu-item .wd-icon{
        display: none;
    }

    body.sometimes-burger .main-header.main-header--hide-icons .menu-item > a,
    body.sometimes-burger .main-header:not(.main-header--hide-icons) .menu-item > a:not(:has(.wd-icon)),
    body.sometimes-burger .main-header:not(.main-header--hide-icons-on-desktop) .menu-item > a:not(:has(.wd-icon)) {
        padding-left: 0;
    }

    body.sometimes-burger .main-header-menu {
        display: flex;
        gap: 24px;
        margin: 0;
    }

    body.sometimes-burger .main-header-menu .menu-item.menu-item-object-custom.menu-item-has-children > a {
        pointer-events: none;
    }

    body.sometimes-burger .main-header-menu .menu-item.menu-item-has-children > a:after {
        content: "";
        display: block;
        width: 0px;
        height: 0px;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 6px solid var(--header-text-color);
    }

    body.sometimes-burger .main-header-menu .menu-item > a{
        display: flex;
        border-radius: 0;
        padding: 0;
        height: var(--header-height);
    }

    body.sometimes-burger .main-header-menu .menu-item > a.expand-sub-menu{
        display: none;
    }

    body.sometimes-burger .main-header-menu > .menu-item > a:active,
    body.sometimes-burger .main-header-menu > .menu-item > a:focus,
    body.sometimes-burger .main-header-menu > .menu-item.current_page_item > a{
        background: none!important;
    }

    body.sometimes-burger .sub-menu{
        max-height: unset;
    }

    body.sometimes-burger .main-header:not(.main-header--hide-icons-on-desktop) .sub-menu .menu-item > a {
        padding-left: 16px;
    }
        
    body.sometimes-burger .main-header-menu .menu-item:has(> a[href="#"]):not(.is-expanded) .sub-menu {
        max-height: unset;
        pointer-events: all;
    }

    body.sometimes-burger .main-header-menu .menu-item.menu-item-has-children:hover > ul.sub-menu{
        overflow: visible;
        display: block;
    }

    body.sometimes-burger .main-header-menu > .menu-item > a:before {
        content: "";
        bottom: 0;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 42px;
        height: 3px;
        background-color: var(--header-active-color);
        border-radius: 3px 3px 0 0;
        opacity: 0;
        transition: opacity var(--standard-transition);
    }

    body.sometimes-burger .main-header--hide-icons .main-header-menu > .menu-item.menu-item-has-children > a:before,
    body.sometimes-burger .main-header--hide-icons-on-desktop .main-header-menu > .menu-item.menu-item-has-children > a:before {
        left: calc(-10px + 50%);
    }

    body.sometimes-burger .main-header--show-icons .main-header-menu > .menu-item > a:before {
        left: calc(18px + 50%);
    }

    body.sometimes-burger .main-header--show-icons .main-header-menu > .menu-item.menu-item-has-children > a:before {
        left: calc(8px + 50%);
    }

    body.sometimes-burger .main-header-menu > .menu-item.current_page_item > a:before,
    body.sometimes-burger .main-header-menu > .menu-item.current-menu-parent > a:before {
        opacity: 0.7;
    }

    body.sometimes-burger .main-header-menu > .menu-item.current_page_item:hover > a:before,
    body.sometimes-burger .main-header-menu > .menu-item:hover > a:before,
    body.sometimes-burger .main-header-menu > .menu-item.current-menu-parent:hover > a:before {
        opacity: 1;
    }
            

    body.sometimes-burger .main-header-menu ul.sub-menu {
        display: none;
        list-style: none;
        margin: 0;
        padding: 0;
        position: absolute;
        background: var(--background-color);
        box-shadow: var(--shadowlevel-1);
        border-radius: var(--theme-border-radius);
        transform: translateY(var(--dropdown-menu-distance));
        top: 100%;
        right: 0;
        min-width: 180px;
    }
    
    body.sometimes-burger .main-header-menu ul.sub-menu:after{
        content: "";
        height: calc(var(--dropdown-menu-distance) + 28px);
        width: 100%;
        background: transparent;
        position: absolute;
        display: block;
        top: calc((var(--dropdown-menu-distance) * -1) - 28px);
        left: auto;
        right: 0;
        bottom: -7px;
        clip-path: polygon(60% 0, 100% 0, 100% 100%, 0% 100%);
    }
    
    body.sometimes-burger .main-header-menu ul.sub-menu li{
        margin: 0;
        padding: 0;
    }
    body.sometimes-burger .main-header-menu ul.sub-menu li:not(:last-child){
        border-bottom: 1px solid var(--surface-color);
    }
    
    body.sometimes-burger .main-header-menu ul.sub-menu li a{
        display: flex;
        margin: 0;
        padding: 8px 16px;
        color: inherit;
        text-decoration: none;
        transition: background-color var(--slow-transition);
        color: var(--text-color);
        height: auto;
        border-radius: 0;
        white-space: nowrap;
    }

    body.sometimes-burger .main-header-menu ul.sub-menu li a .wd-icon{
        width: 24px;
    }
    
    body.sometimes-burger .main-header-menu ul.sub-menu li:first-child a{
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }
    
    body.sometimes-burger .main-header-menu ul.sub-menu li:last-child a{
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }
    
    body.sometimes-burger .main-header-menu ul.sub-menu li a:hover{
        background-color: var(--surface-color);
    }
    
    body.sometimes-burger .main-header-menu > ul > li.menu-item-has-children:hover ul.sub-menu{
        display: flex;
        flex-direction: column;
    }

    body.sometimes-burger .main-header-menu ul.sub-menu .menu-item.menu-item-has-children ul.sub-menu {
        display: none;
        right: calc(100% - 10px);
        top: 0;
        z-index: 1;
    }

    body.sometimes-burger .main-header-menu ul.sub-menu .menu-item.menu-item-has-children:hover > ul.sub-menu {
        display: block;
    }

}







/* 
    ——————————
    Styling til hero-sektion / topsektion 
    ——————————
*/

.wp-block-columns.topsektion.wd-full-split {
    max-height: 550px;
}







/* 
    ——————————
    Styling til splitsektioner 
    ——————————
*/


.wp-block-columns.wd-full-split {
    gap: 0;
}

.wp-block-columns.wd-full-split > * {
    max-width: 100%;
}

.wp-block-columns.wd-full-split .wp-block-column.wd-full-split-text-column {
    align-self: stretch;
    align-content: center;
}

.wp-block-columns.wd-full-split .wp-block-column.wd-full-split-text-column > .wp-block-group {
    max-width: 100%;
    padding: var(--gap);
    margin-left: auto;
    margin-right: auto;
}

.wp-block-columns.wd-full-split .wp-block-column.wd-full-split-image-column {
    align-self: stretch;
    align-content: center;
    /* display: flex; */
    overflow: hidden;
    width: 100%;
}

.wp-block-columns.wd-full-split .wp-block-column.wd-full-split-image-column figure.wp-block-image {
    height: 100%;
    width: 100%;
    display: flex;
    object-position: center center;
    object-fit: fill;
}

.wp-block-columns.wd-full-split .wp-block-column.wd-full-split-image-column figure.wp-block-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}




@media screen and (max-width: 781px) {
    .wp-block-columns.wd-full-split {
        gap: 0;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 275px 1fr;
    }

    .entry-content .wp-block-columns.wd-full-split > * {
            max-width: 100%;
    }

    .wp-block-columns.wd-full-split .wp-block-column.wd-full-split-text-column > .wp-block-group {
        max-width: 90%;
        padding: var(--gap) 0;
    }

    .wp-block-columns.wd-full-split .wp-block-column.wd-full-split-image-column {
            order: 1;
    }

    .wp-block-columns.wd-full-split .wp-block-column.wd-full-split-text-column {
            order: 2;
    }
}


/* FULDBREDDE SPLITSEKTION WARPED */

.wd-full-split.wd-full-split-warped-section-wrapper .wd-full-split-image-column, .wd-full-split.wd-full-split-warped-section-wrapper .wd-full-split-text-column {
    position: relative;
}

@media screen and (min-width: 782px) {
    .wd-full-split.wd-full-split-warped-section-wrapper .wd-full-split-text-column:first-child:before {
        content: '';
        display: block;
        position: absolute;
        height: 100%;
        width: 50px;
        right: -49px;
        top: 0;
        background: inherit;
        z-index: 1;
        animation: warped 20s linear infinite;
    }

    .wd-full-split.wd-full-split-warped-section-wrapper .wd-full-split-text-column:last-child:before {
        content: '';
        display: block;
        position: absolute;
        height: 100%;
        width: 50px;
        left: -49px;
        right: auto;
        top: 0;
        background: inherit;
        z-index: 1;
        animation: warped 20s linear infinite;
        rotate: 180deg;
    }

    .wd-full-split.wd-full-split-warped-section-wrapper .wd-full-split-text-column:not(.has-background):before {
        background: var(--background-color);
    }

    @keyframes warped {
        0%, 100% {
            clip-path: polygon( 0% 0%,0% 0%,17.479% 2.509%,31.886% 4.908%,43.471% 7.196%,52.485% 9.372%,59.175% 11.434%,63.791% 13.381%,66.583% 15.213%,67.8% 16.927%,67.692% 18.523%,66.508% 20%,66.508% 20%,63.057% 22.07%,58.108% 23.95%,52.182% 25.691%,45.798% 27.345%,39.474% 28.966%,33.732% 30.606%,29.09% 32.317%,26.067% 34.151%,25.184% 36.16%,26.96% 38.398%,26.96% 38.398%,29.92% 40.004%,33.768% 41.316%,38.33% 42.411%,43.433% 43.371%,48.901% 44.274%,54.562% 45.201%,60.242% 46.232%,65.766% 47.446%,70.961% 48.922%,75.653% 50.741%,75.653% 50.741%,79.654% 53.152%,80.71% 55.22%,79.502% 57.038%,76.714% 58.699%,73.026% 60.295%,69.12% 61.92%,65.679% 63.667%,63.385% 65.628%,62.92% 67.896%,64.964% 70.565%,64.964% 70.565%,68.424% 72.756%,72.804% 74.608%,77.762% 76.191%,82.958% 77.573%,88.049% 78.823%,92.695% 80.011%,96.555% 81.205%,99.286% 82.475%,100.549% 83.89%,100% 85.519%,100% 85.519%,95.844% 87.472%,87.457% 89.471%,75.938% 91.456%,62.389% 93.368%,47.907% 95.148%,33.592% 96.737%,20.545% 98.076%,9.864% 99.105%,2.649% 99.767%,0% 100%,0% 0% );
        } 

        33.33% {
            clip-path: polygon( 0% 0%,0% 0%,21.605% 2.459%,37.323% 4.724%,47.953% 6.812%,54.291% 8.746%,57.137% 10.545%,57.289% 12.229%,55.544% 13.819%,52.701% 15.334%,49.558% 16.795%,46.914% 18.222%,46.914% 18.222%,44.386% 20.346%,43.269% 22.369%,43.398% 24.323%,44.61% 26.236%,46.74% 28.138%,49.625% 30.058%,53.1% 32.027%,57.002% 34.073%,61.168% 36.227%,65.432% 38.519%,65.432% 38.519%,66.82% 40.141%,65.148% 41.498%,61.245% 42.659%,55.938% 43.7%,50.058% 44.691%,44.432% 45.706%,39.89% 46.817%,37.259% 48.097%,37.37% 49.618%,41.049% 51.454%,41.049% 51.454%,48.288% 53.845%,55.195% 55.859%,61.784% 57.597%,68.067% 59.161%,74.055% 60.652%,79.76% 62.171%,85.196% 63.821%,90.373% 65.702%,95.304% 67.916%,100% 70.565%,100% 70.565%,102.586% 72.802%,103.093% 74.781%,101.896% 76.551%,99.37% 78.159%,95.891% 79.656%,91.833% 81.091%,87.572% 82.512%,83.481% 83.969%,79.938% 85.51%,77.315% 87.185%,77.315% 87.185%,73.354% 89.09%,66.446% 90.961%,57.381% 92.758%,46.954% 94.444%,35.957% 95.978%,25.181% 97.321%,15.421% 98.434%,7.468% 99.278%,2.115% 99.813%,0.154% 100%,0.154% 0% );
        }

        66.66% {
            clip-path: polygon( 0% 0%,0% 0%,19.873% 2.151%,37.67% 4.223%,53.345% 6.215%,66.856% 8.128%,78.158% 9.963%,87.208% 11.721%,93.96% 13.402%,98.373% 15.006%,100.4% 16.535%,100% 17.989%,100% 17.989%,96.278% 20.119%,90.569% 22.16%,83.514% 24.14%,75.754% 26.084%,67.931% 28.021%,60.685% 29.976%,54.657% 31.977%,50.489% 34.051%,48.821% 36.224%,50.295% 38.524%,50.295% 38.524%,53.137% 40.231%,56.621% 41.815%,60.518% 43.313%,64.601% 44.764%,68.639% 46.204%,72.405% 47.671%,75.67% 49.201%,78.204% 50.833%,79.778% 52.604%,80.165% 54.551%,80.165% 54.551%,78.136% 56.962%,73.351% 58.881%,66.596% 60.436%,58.659% 61.755%,50.325% 62.966%,42.38% 64.198%,35.612% 65.577%,30.805% 67.232%,28.747% 69.291%,30.224% 71.882%,30.224% 71.882%,33.535% 74.12%,37.539% 76.098%,41.952% 77.867%,46.491% 79.476%,50.871% 80.973%,54.808% 82.407%,58.019% 83.828%,60.218% 85.285%,61.123% 86.826%,60.449% 88.501%,60.449% 88.501%,57.376% 90.369%,51.974% 92.139%,44.867% 93.79%,36.681% 95.296%,28.04% 96.636%,19.569% 97.784%,11.893% 98.718%,5.637% 99.415%,1.425% 99.85%,-0.118% 100%,-0.118% 0% );
        }
    }
}

@media screen and (max-width: 781px) {
    .wd-full-split.wd-full-split-warped-section-wrapper .wd-full-split-text-column:before {
        content: '';
        display: block;
        position: absolute;
        height: 30px;
        width: 100%;
        right: 0;
        left: 0;
        top: -29px;
        background: inherit;
        z-index: 1;
        animation: warped 20s linear infinite;
    }

    .wd-full-split.wd-full-split-warped-section-wrapper .wd-full-split-text-column:not(.has-background):before {
        background: var(--background-color);
    }

    @keyframes warped {
        0%, 100% {
            clip-path: polygon( 100% 100%,100% 100%,99.194% 97.057%,98.145% 94.003%,96.899% 90.858%,95.507% 87.642%,94.016% 84.375%,92.474% 81.078%,90.931% 77.772%,89.434% 74.477%,88.033% 71.213%,86.775% 68%,86.775% 68%,85.141% 63.863%,83.036% 59.122%,80.529% 54.118%,77.69% 49.197%,74.588% 44.7%,71.29% 40.971%,67.866% 38.354%,64.384% 37.19%,60.914% 37.825%,57.525% 40.6%,57.525% 40.6%,55.29% 43.751%,53.344% 47.355%,51.627% 51.276%,50.078% 55.378%,48.636% 59.525%,47.24% 63.582%,45.829% 67.414%,44.343% 70.885%,42.72% 73.859%,40.9% 76.2%,40.9% 76.2%,37.756% 78.388%,35.239% 78.053%,33.209% 75.649%,31.531% 71.63%,30.066% 66.45%,28.676% 60.562%,27.225% 54.419%,25.574% 48.475%,23.587% 43.184%,21.125% 39%,21.125% 39%,19.307% 37.004%,17.598% 36.013%,15.933% 36.325%,14.245% 38.238%,12.47% 42.05%,10.543% 48.058%,8.397% 56.559%,5.969% 67.851%,3.191% 82.232%,0% 100%,100% 100% );
        } 

        33.33% {
            clip-path: polygon( 100% 100%,100% 100%,99.548% 92.982%,99.025% 86.021%,98.43% 79.199%,97.761% 72.598%,97.017% 66.3%,96.198% 60.386%,95.303% 54.937%,94.331% 50.035%,93.28% 45.762%,92.15% 42.2%,92.15% 42.2%,90.795% 39.085%,89.448% 37.174%,88.059% 36.462%,86.579% 36.939%,84.958% 38.6%,83.145% 41.437%,81.09% 45.442%,78.743% 50.61%,76.055% 56.931%,72.975% 64.4%,72.975% 64.4%,70.039% 70.509%,67.708% 73.194%,65.823% 73.108%,64.223% 70.909%,62.748% 67.25%,61.239% 62.787%,59.535% 58.176%,57.475% 54.07%,54.9% 51.127%,51.65% 50%,51.65% 50%,46.795% 50.823%,42.606% 53.005%,38.98% 56.118%,35.811% 59.734%,32.995% 63.425%,30.427% 66.762%,28.002% 69.316%,25.615% 70.659%,23.162% 70.363%,20.538% 68%,20.538% 68%,18.725% 66.045%,17.03% 65.126%,15.39% 65.286%,13.739% 66.563%,12.013% 69%,10.147% 72.637%,8.078% 77.514%,5.74% 83.674%,3.069% 91.155%,0% 100%,100% 100% );
        }

        66.66% {
            clip-path: polygon( 100% 100%,100% 100%,99.508% 92.634%,98.857% 85.517%,98.033% 78.623%,97.022% 71.926%,95.811% 65.4%,94.387% 59.018%,92.736% 52.753%,90.844% 46.579%,88.699% 40.47%,86.288% 34.4%,86.288% 34.4%,84.677% 32.3%,82.645% 32.362%,80.247% 34.225%,77.541% 37.533%,74.583% 41.925%,71.43% 47.043%,68.14% 52.529%,64.769% 58.022%,61.374% 63.166%,58.013% 67.6%,58.013% 67.6%,55.761% 68.981%,53.773% 67.824%,51.993% 64.819%,50.368% 60.656%,48.845% 56.025%,47.371% 51.616%,45.891% 48.119%,44.353% 46.224%,42.703% 46.621%,40.888% 50%,40.888% 50%,38.731% 54.724%,36.464% 57.842%,34.132% 59.509%,31.782% 59.885%,29.463% 59.125%,27.219% 57.387%,25.099% 54.829%,23.15% 51.606%,21.418% 47.878%,19.95% 43.8%,19.95% 43.8%,17.966% 39.164%,15.79% 37.165%,13.492% 37.669%,11.144% 40.542%,8.817% 45.65%,6.583% 52.858%,4.513% 62.031%,2.678% 73.035%,1.15% 85.736%,0% 100%,100% 100% );
        }
    }
}



/* BILLEDE ANIMATION */

figure.wd-warped-image {
    animation: warped-img 20s linear infinite;
}

:is(.wp-block-column, .wp-block-group):nth-child(odd) figure.wd-warped-image {
    animation: warped-img 16s linear infinite;
}

@keyframes warped-img {
    0%, 100% {
        clip-path: polygon( 100% 50.341%,100% 50.341%,99.711% 54.667%,98.88% 58.638%,97.563% 62.299%,95.817% 65.694%,93.698% 68.865%,91.26% 71.859%,88.561% 74.717%,85.657% 77.485%,82.603% 80.207%,79.455% 82.926%,79.455% 82.926%,76.862% 85.22%,74.277% 87.571%,71.671% 89.909%,69.014% 92.164%,66.277% 94.265%,63.429% 96.142%,60.442% 97.724%,57.285% 98.942%,53.93% 99.724%,50.346% 100%,50.346% 100%,45.017% 99.697%,40.043% 98.811%,35.407% 97.377%,31.094% 95.429%,27.09% 93.002%,23.38% 90.13%,19.948% 86.847%,16.779% 83.189%,13.858% 79.189%,11.169% 74.882%,11.169% 74.882%,9.888% 72.67%,8.605% 70.418%,7.353% 68.122%,6.163% 65.781%,5.068% 63.389%,4.099% 60.946%,3.29% 58.447%,2.672% 55.89%,2.278% 53.271%,2.139% 50.587%,2.139% 50.587%,2.155% 47.614%,2.229% 44.204%,2.402% 40.468%,2.716% 36.519%,3.212% 32.47%,3.93% 28.432%,4.912% 24.517%,6.2% 20.838%,7.833% 17.507%,9.853% 14.636%,9.853% 14.636%,12.791% 11.659%,16.109% 9.099%,19.758% 6.929%,23.687% 5.127%,27.845% 3.669%,32.184% 2.529%,36.654% 1.685%,41.203% 1.111%,45.782% 0.785%,50.341% 0.682%,50.341% 0.682%,54.499% 0.809%,57.985% 1.173%,60.908% 1.751%,63.382% 2.516%,65.517% 3.445%,67.425% 4.512%,69.218% 5.693%,71.007% 6.963%,72.903% 8.297%,75.018% 9.67%,75.018% 9.67%,79.181% 12.444%,83.089% 15.528%,86.699% 18.912%,89.967% 22.589%,92.851% 26.55%,95.308% 30.788%,97.294% 35.294%,98.765% 40.06%,99.68% 45.078%,99.995% 50.341% );
    } 

    33.33% {
        clip-path: polygon( 100% 53.38%,100% 53.38%,99.916% 57.814%,99.651% 62.072%,99.187% 66.144%,98.506% 70.018%,97.59% 73.684%,96.421% 77.131%,94.981% 80.348%,93.252% 83.324%,91.216% 86.048%,88.854% 88.51%,88.854% 88.51%,86.734% 90.467%,84.72% 92.289%,82.747% 93.959%,80.75% 95.461%,78.662% 96.778%,76.418% 97.893%,73.952% 98.79%,71.198% 99.451%,68.09% 99.86%,64.564% 100%,64.564% 100%,58.845% 99.788%,52.952% 99.181%,47.025% 98.225%,41.204% 96.965%,35.628% 95.447%,30.437% 93.714%,25.771% 91.814%,21.768% 89.79%,18.568% 87.688%,16.312% 85.552%,16.312% 85.552%,14.613% 83.217%,12.782% 80.256%,10.892% 76.806%,9.017% 73.007%,7.229% 68.995%,5.603% 64.909%,4.21% 60.887%,3.125% 57.067%,2.42% 53.587%,2.169% 50.585%,2.169% 50.585%,2.604% 47.458%,3.822% 43.632%,5.688% 39.29%,8.068% 34.612%,10.827% 29.783%,13.832% 24.982%,16.948% 20.393%,20.042% 16.197%,22.979% 12.576%,25.625% 9.712%,25.625% 9.712%,28.438% 7.249%,31.374% 5.257%,34.419% 3.708%,37.555% 2.573%,40.767% 1.822%,44.039% 1.426%,47.354% 1.357%,50.698% 1.585%,54.053% 2.081%,57.404% 2.816%,57.404% 2.816%,60.258% 3.591%,63.204% 4.494%,66.208% 5.509%,69.234% 6.621%,72.246% 7.815%,75.209% 9.075%,78.087% 10.386%,80.844% 11.733%,83.446% 13.101%,85.856% 14.474%,85.856% 14.474%,89.002% 16.901%,91.673% 20.048%,93.902% 23.766%,95.723% 27.908%,97.172% 32.326%,98.28% 36.872%,99.084% 41.398%,99.615% 45.757%,99.91% 49.8%,100% 53.38% );
    }

    66.66% {
        clip-path: polygon( 100% 46.321%,100% 46.321%,99.899% 50.76%,99.589% 55.031%,99.059% 59.121%,98.298% 63.017%,97.295% 66.707%,96.039% 70.178%,94.519% 73.417%,92.724% 76.411%,90.642% 79.148%,88.264% 81.614%,88.264% 81.614%,86.16% 83.764%,84.191% 86.11%,82.285% 88.553%,80.367% 90.993%,78.367% 93.33%,76.209% 95.466%,73.823% 97.3%,71.134% 98.734%,68.07% 99.667%,64.558% 100%,64.558% 100%,58.86% 99.985%,53.024% 99.915%,47.181% 99.75%,41.461% 99.45%,35.994% 98.976%,30.913% 98.288%,26.347% 97.348%,22.426% 96.114%,19.283% 94.548%,17.046% 92.611%,17.046% 92.611%,15.347% 90.446%,13.515% 87.946%,11.626% 85.177%,9.75% 82.203%,7.963% 79.09%,6.336% 75.903%,4.944% 72.706%,3.858% 69.566%,3.153% 66.548%,2.902% 63.716%,2.902% 63.716%,2.907% 60.42%,2.942% 56.143%,3.037% 51.154%,3.222% 45.72%,3.526% 40.108%,3.98% 34.585%,4.614% 29.419%,5.457% 24.877%,6.541% 21.228%,7.893% 18.737%,7.893% 18.737%,10.772% 15.832%,14.406% 13.088%,18.632% 10.541%,23.286% 8.229%,28.204% 6.188%,33.222% 4.456%,38.178% 3.069%,42.906% 2.064%,47.243% 1.478%,51.026% 1.348%,51.026% 1.348%,54.294% 1.548%,57.846% 1.941%,61.593% 2.509%,65.443% 3.237%,69.304% 4.108%,73.086% 5.106%,76.698% 6.215%,80.048% 7.418%,83.047% 8.699%,85.601% 10.042%,85.601% 10.042%,88.754% 12.396%,91.444% 15.343%,93.702% 18.767%,95.558% 22.552%,97.044% 26.581%,98.191% 30.738%,99.029% 34.907%,99.589% 38.971%,99.902% 42.815%,100% 46.321% );
    }
}
    







/* 
    ——————————
    Styling til site content og tilhørende elementer
    ——————————
*/

#site-content .post-inner {
    padding-top: 0;
}

body .entry-content > :not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide).wp-block-contact-form-7-contact-form-selector {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.content-wrapper {
    display: grid;
    width: 100%;
}







/* 
    ——————————
    Styling af footer
    ——————————
*/

.footer-leadin.footer-leadin-border {
    border-top-style: solid;
    border-top-width: 2px;
}

.footer-leadin.footer-leadin--triangle {
    height: 100px;
    background: var(--footer-leadin-color);
    clip-path: polygon(70% calc(100% - 1px), 100% 0, 100% 100%, 0 100%, 0 0);
    transform: translateY(1px);
    -webkit-backface-visibility: hidden;
}

body:has(.footer-leadin.footer-leadin--triangle) .entry-content > *:last-child:is(.wp-block-cover, .wp-block-group.has-background.wdf-width.wdf-width--full) {
    /*padding-bottom: calc(var(--custom-padding-top) + 100px) !important;*/
    padding-bottom: 100px !important;
    margin-bottom: -100px;
}

footer.site-footer{
    background-color: var(--footer-background-color);
    color: var(--footer-text-color);
}

footer.site-footer .footer-inner{
    width: var(--theme-standard-width);
    max-width: 90%;
    margin: 0 auto;
    padding: 60px 0 100px;
}

.footer-columns {
    display: flex;
    flex-direction: column;
    gap: var(--footer-gap);
    align-items: center;
}

.footer-columns.footer-columns--horizontal {
    display: grid;
    grid-template-columns: 1fr;
}

.footer-columns.footer-columns--horizontal ul.footer-column-list {
    flex-direction: row;
    justify-content: space-between;
}

.footer-headline-wrapper {
    height: var(--footer-logo-height);
    display: flex;
    align-items: flex-end;
    margin-bottom: 1em;
}

ul.footer-column-list,
li.footer-item {
    margin: 0;
    list-style: none;
}

ul.footer-column-list {
    display: flex;
    flex-direction: column;
    gap: var(--footer-item-gap);
}

img.footer-logo {
    display: block;
    margin-bottom: 0;
    max-width: 100%;
    height: auto;
}

li.footer-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

li.footer-item.footer-item--type-opening-hours {
    justify-content: space-between;
    max-width: 100%;
}
li.footer-item.footer-item--type-textarea .icon-space {
    display: none;
}

li.footer-item .wd-icon {
    height: calc(var(--standard-text-font-size) + 4px);
    width: calc(var(--standard-text-font-size) + 4px);
}

li.footer-item a {
    color: inherit;
    text-decoration: none;
}

li.footer-item span.icon-space {
    display: block;
    width: calc(var(--standard-text-font-size) + 4px);
}

li.footer-item a:hover {
    text-decoration: underline;
}

.footer-item-space {
    height: var(--footer-item-space);
}

li.footer-item .wd-contact-form {
    width: 100%;
}

li.footer-item .wd-contact-form .wd-contact-form-inner {
    background: var(--footer-background-color);
    box-shadow: none;
    padding: 0;
    overflow: unset;
}

li.footer-item .wd-contact-form :is(.kontaktform-form-row, .kontaktform-rows) {
    gap: 15px;
}

li.footer-item:not(.footer-item--type-space) + li.footer-item--type-form {
    margin-top: 20px;
}

li.footer-item .wd-contact-form :is( .wd-field-input, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="url"], textarea, select):not(.wd-submit-btn) {
    background: var(--footer-background-color);
    color: var(--text-color);
}

li.footer-item .wd-contact-form label:has(:is(.wd-field-input, input, textarea, select):focus) span.label-text, li.footer-item .wd-contact-form label:has(:is(.wd-field-input, input, textarea, select):not(:placeholder-shown)) span.label-text {
    background: var(--footer-background-color);
}

@media screen and (min-width: 600px) {
    /*.footer-columns {
        display: grid;
        grid-template-columns: repeat(var(--num-footer-columns), 1fr);
        gap: var(--footer-gap);
        align-items: start;
    }*/



    .footer-columns {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: var(--footer-gap);
        align-items: start;
    }

    .footer-column {
        min-width: 220px;
        width: calc(100% / var(--num-footer-columns) - var(--footer-gap));
    }
}

@media screen and (max-width: 599px) {
    .footer-column {
        max-width: 90vw;
        width: 300px;
    }
}









/* 
    ——————————
    Styling til to-top-btn
    ——————————
*/

.to-top {
    position: fixed;
    right: 40px;
    bottom: 20px;
    height: 50px;
    width: 50px;
    background: var(--background-color);
    opacity: 0;
    transform: translateX(calc(100% + 100px));
    transition: transform var(--standard-transition);
    transition-property: transform, opacity;
    z-index: 2;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}

.to-top.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.to-top__icon {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid var(--primary-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}







/* 
    ——————————
    Styling til 404-side
    ——————————
*/

.error404-content {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.to-front-page-btn {
    color: var(--background-color);
    padding: 12px 20px;
    border: 3px solid var(--background-color);
    line-height: 1em;
    transition: all var(--standard-transition);
    transition-property: background-color, color;
    text-decoration: none;
}

.to-front-page-btn:hover {
    background: var(--background-color);
    color: var(--primary-color);
}


@media screen and (max-width: 999px) {
    .header-topper {
        height: 40px;
    }

    .header-topper-inner {
        width: 100%;
        padding: 0 20px;
    }
    
    .site-header {
        display: none;
    }
    
    .site-header-mobile {
        display: flex;
    }

    .mute-btn {
        bottom: 20px;
        right: 20px;
    }
}

@media screen and (max-width: 899px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 60px;
    }
}

@media screen and (max-width: 767px) {
    .usps {
        display: none;
    }

    .to-top {
        right: 20px;
    }
}

@media screen and (max-width: 619px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

html .privacy-policy {
    margin: 0;
}

/*body *:not(.post-inner) > .entry-content > *:first-child:not(.wp-block-cover) {
    margin-top: 3.5rem;
}*/

/*body .entry-content > *:first-child:not(.wp-block-cover) {
    margin-top: 3.5rem;
}*/

/*body .entry-content > *:last-child:not(.wp-block-cover) {
    margin-bottom: 3.5rem;
}*/

@media screen and (min-width: 700px) {
    /*body .entry-content > *:first-child:not(.wp-block-cover) {
        margin-top: 6rem;
    }*/

    /*body .entry-content > *:last-child:not(.wp-block-cover) {
        margin-bottom: 6rem;
    }*/
}

.wp-block-image .is-style-rounded img,
.wp-block-image.is-style-circle-mask img,
.wp-block-image.is-style-rounded img {
    border-radius: 16px;
}

.wd-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wd-icon *:not(rect) {
    fill: currentColor;
    width: inherit;
    height: inherit;
}

.wd-icon path {
    transition: fill var(--standard-transition);
}







/*Bottom nav*/

.bottom-nav{
    display: none;
}

@media screen and (max-width: 768px){
    .bottom-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: color-mix(in srgb, var(--background-color) 90%, transparent);
        z-index: 9;
        transition: transform var(--slow-transition);
    }

    .bottom-nav.bottom-nav--hidden{
        transform: translateY(100%);
    }

    .bottom-nav-list {
        margin: 12px 0 16px;
        list-style: none;
        display: flex;
        justify-content: space-around;
    }

    .bottom-nav-item {
        margin: 0;
    }

    .bottom-nav-item .wd-icon {
        width: 64px;
        height: 32px;
        border-radius: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    li.bottom-nav-item.bottom-nav-item--current .wd-icon {
        background: rgba(0,0,0,0.1);
    }

    .bottom-nav-item a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-decoration: none;
    }

    span.bottom-nav-label {
        line-height: 16px;
        font-size: var(--small-font-size);
        text-decoration: none;
        color: var(--text-color);
        letter-spacing: normal;
    }
}







/*
    ——————————
	Styling til Gutenberg
    ——————————
*/

*[style*="--custom-margin-top"] { margin-top: var(--custom-margin-top)!important;}
*[style*="--custom-margin-right"] { margin-right: var(--custom-margin-right)!important;}
*[style*="--custom-margin-bottom"] { margin-bottom: var(--custom-margin-bottom)!important;}
*[style*="--custom-margin-left"] { margin-left: var(--custom-margin-left)!important;}

*[style*="--custom-padding-top"] { padding-top: var(--custom-padding-top)!important;}
*[style*="--custom-padding-right"] { padding-right: var(--custom-padding-right)!important;}
*[style*="--custom-padding-bottom"] { padding-bottom: var(--custom-padding-bottom)!important;}
*[style*="--custom-padding-left"] { padding-left: var(--custom-padding-left)!important;}

*[style*="--custom-max-width"]{ max-width: var(--custom-max-width)!important; }







/* forbedret custom styling på knapper*/

.wp-block-button[style*=font-weight] .wp-block-button__link{
    font-weight: inherit;
}
 
.wp-block-button[style*=font-size] .wp-block-button__link{
    font-size: inherit;
}
 
.wp-block-button[style*=text-transform] .wp-block-button__link{
    text-transform: inherit;
}
 
.wp-block-button[style*=font-style] .wp-block-button__link{
    font-style: inherit;
}
 

body .entry-content *[style*="--custom-max-width"] {
    max-width: var(--custom-max-width) !important;
}


.align-full:not([class*="wdf-"]),
.alignfull:not([class*="wdf-"]) {
    width: 100%!important;
    max-width: 100%!important;
}

.wp-block-group > :first-child,
.wp-block-column > :first-child,
.wp-block-group__inner-container > :first-child {
    margin-top: 0!important;
}

.wp-block-group > :last-child:not(.wp-block-heading),
.wp-block-column > :last-child:not(.wp-block-heading),
.wp-block-group__inner-container > :last-child:not(.wp-block-heading) {
    margin-bottom: 0!important;
}

p:empty{
    display: none;
}







/* Knapper */

.wp-block-button .wp-block-button__link,
.btn,
.wd-contact-form .wd-form-actions .wd-submit-btn,
.button,
button {
    text-transform: initial;
    letter-spacing: 0;
    background-color: var(--btn-color);
    color: var(--btn-text-color);
    border-radius: 26px;
    display: flex;
    gap: 6px;
    align-items: center;
    text-align: center;
    justify-content: center;
    transition: all var(--standard-transition);
    text-decoration: none;
    font-weight: var(--bold);
    border: none;
	padding: 11px 20px;
	cursor: pointer;
    font-size: var(--body-font-size);
    line-height: normal;
}

.btn--from-shortcode {
    display: inline-flex;
}

.btn:has(a) {
    padding: 0;
}

.btn a {
    display: flex;
    gap: inherit;
    color: inherit;
    text-decoration: inherit;
    font-weight: inherit;
    font-size: inherit;
    text-transform: inherit;
    padding: 11px 20px;
}

:is(.wp-block-button .wp-block-button__link,
.btn,
.wd-contact-form .wd-form-actions .wd-submit-btn,
.button,
button):hover {
    background-color: var(--btn-color-hover);
}

:is(.wp-block-button .wp-block-button__link, .btn, .wd-contact-form .wd-form-actions .wd-submit-btn, .button, button) .wd-icon svg {
    height: 22px;
    width: 22px;
    fill: currentColor;
}







/* 
    ——————————
    Styling til custom classes inde i Gutenberg
    ——————————
*/

ul.firmainfo {
    margin: 0 0 20px;
    list-style: none;
    padding: 0;
}

ul.firmainfo li{
    margin: 0 0 4px;
    list-style: none;
    padding: 0;
    display: flex;
    gap: 0.5ch;
}

ul.firmainfo li.icon-space {
    padding-left: calc(var(--standard-text-font-size) + 4px + 0.5ch);
}







/* 
    ——————————
    Styling til standard kontaktformular
    ——————————
*/

:root body {
    --kontaktformular-bg: var(--background-color);
    --kontaktformular-inner-bg: var(--background-color);
}







/* Styling til login modul*/

.wp-block-loginout form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form#loginform input.input {
    padding: 5px 20px;
    min-height: 44px;
    width: 100%;
    letter-spacing: normal;
    background: var(--kontaktformular-inner-bg);
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--text-color) 10%, transparent);
    outline: none;
    color: var(--text-color);
}

p.login-remember label {
    display: flex;
    gap: 10px;
    flex-direction: row;
}







/* Ny alignment til core/group (gruppe)*/

body .entry-content > .align-narrow.wp-block-group:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide),
body .entry-content > .align-standard.wp-block-group:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide),
body .entry-content > .align-wide.wp-block-group:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    margin-left: auto;
    margin-right: auto;
}

body .entry-content > .align-narrow.wp-block-group:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    max-width: var(--theme-narrow-width);
}
body .entry-content > .align-standard.wp-block-group:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    max-width: var(--theme-standard-width);
}
body .entry-content > .align-wide.wp-block-group:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    max-width: var(--theme-wide-width);
}

html body.template-full-width [class*="__inner-container"]:not(.align-narrow.wp-block-group):not(.align-standard.wp-block-group):not(.align-wide.wp-block-group) > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide){
    max-width: unset;
}

html body.template-full-width *:not(.align-narrow.wp-block-group):not(.align-standard.wp-block-group):not(.align-wide.wp-block-group) > [class*="__inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    max-width: 120rem;
}







/*Lightbox dialog*/


dialog:not([open]) {
    pointer-events: none;
    opacity: 0;
}

html:has(dialog[open]){
    overflow: hidden;
}

dialog::backdrop {
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
}

.lightbox-dialog,
.lightbox-dialog *{
    user-select: none;
}

.lightbox-dialog{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 999;
    padding: 0;
    border: none;
    border-radius: 16px;
    background: transparent;
}

.lightbox-dialog img {
    border-radius: 16px;
    max-height: 80vh;
    max-width: calc(100vw - 50px);
}

.lightbox-dialog .arrow {
    display: none;
    position: absolute;
    bottom: 10px;
    background: none;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 50%;
    border: 4px solid var(--secondary-color);
    transition: opacity var(--standard-transition);
    cursor: pointer;
    opacity: 0.7;
    outline: none;
}

dialog:has(*:hover) .arrow{
    display: grid;
}

.lightbox-dialog .arrow:hover{
    opacity: 1;
}

.lightbox-dialog .arrow svg{
    transform: scale(1.6);
    fill: var(--secondary-color);
}

.lightbox-dialog .arrow.arrow-prev{
    left: 10px;
}
.lightbox-dialog .arrow.arrow-next{
    right: 10px;
}

button.dialog-close {
    position: absolute;
    top: 3px;
    right: 3px;
    padding: 0px;
    background: transparent;
    border-radius: 50%;
    border: 5px solid transparent;
    transition: all var(--standard-transition);
    outline: none;
}

.lightbox-dialog button.dialog-close:hover{
    border-color:var(--secondary-color);
}

.lightbox-dialog button.dialog-close svg{
    display: block;
    width: 42px;
    height: 42px;
    fill: var(--secondary-color);
}

.dialog-alt {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 0px;
    z-index: 1;
    user-select: none;
    pointer-events: none;
}

.dialog-alt-p {
    display: inline-block;
    margin: 0;
    padding: 5px 10px;
    background: var(--text-color);
    border-radius: 8px;
    font-weight: var(--bold);
    color: var(--background-color);
    user-select: none;
    pointer-events: none;
    max-width: calc(100% - 60px);
}

.dialog-alt-p:empty {
    display: none!important;
}







/* FAQ Block*/

.wp-block-yoast-faq-block,
.schema-faq {
    width: 100%;
    max-width: 850px!important;
    margin-left: auto;
    margin-right: auto;
    margin-top: 70px;
}

.wp-block-yoast-faq-block .schema-faq-answer,
.schema-faq .schema-faq-answer {
    display: none;
    padding-left: 38px;
    padding-top: 10px;
}

.wp-block-yoast-faq-block .schema-faq-section.active .schema-faq-answer,
.schema-faq .schema-faq-section.active .schema-faq-answer {
    display: block;
}

.schema-faq-question{
    user-select: none;
    cursor: pointer;
}

.schema-faq-section {
    margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid color-mix(in srgb, var(--text-color), transparent 70%);
}

strong.schema-faq-question {
    display: flex;
    font-weight: 600;
    align-items: center;
}

strong.schema-faq-question::before {
    display: inline-block;
    content: url(icons/plus.svg);
    width: 24px;
    height: 24px;
    margin-right: 14px;
    opacity: 0.3;
}

.wp-block-yoast-faq-block .schema-faq-section.active strong.schema-faq-question::before,
.schema-faq .schema-faq-section.active strong.schema-faq-question::before {
    content: url(icons/minus.svg);
}

body.dark-mode strong.schema-faq-question::before {
	content: url(icons/plus-white.svg);
}

body.dark-mode .wp-block-yoast-faq-block .schema-faq-section.active strong.schema-faq-question::before,
body.dark-mode .schema-faq .schema-faq-section.active strong.schema-faq-question::before {
	content: url(icons/minus-white.svg);
}







/*Breadcrumb kategorier til shortcode*/

.breadcrumbs-kategorier{
    display: inline-flex;
    gap: 4px;
}

.breadcrumbs-kategori {
    font-size: var(--small-font-size);
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    padding: 1px 4px;
    background: color-mix(in srgb, var(--primary-color), transparent 80%);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background-color var(--standard-transition);
    user-select: none;
}

a.breadcrumbs-kategori:hover {
    background: color-mix(in srgb, var(--primary-color), transparent 60%);
}

.theme-toggle-button {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 999;
    background-color: var(--background-color);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    box-shadow: var(--shadowlevel-2);
    cursor: pointer;
    transition: background-color var(--standard-transition), box-shadow var(--standard-transition);
}

.theme-toggle-button svg{
    fill: var(--text-color);
}

.theme-toggle-button:hover {
    background-color: var(--background-color-hover);
    box-shadow: var(--shadowlevel-3);
}

body.dark-mode img{
    filter: brightness(0.8) contrast(1.2);
}







/*
    Cookies
*/

.cky-btn-revisit-wrapper {
    display: none!important;
}







/* SEARCH START */

.main-header-inner-search{
    list-style: none;
}

.main-header-inner-search * {
    color: var(--header-text-color);
}

.search-bar-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
}

.search-bar-wrapper.search-bar-wrapper--active{
    display: block;
}

.search-bar-wrapper:has(:focus) {
    box-shadow: 0 0 100vh 100vh rgba(0, 0, 0, 0.4);
}

body.dark-mode .search-bar-wrapper:has(:focus) {
    box-shadow: 0 0 100vh 100vh rgba(0, 0, 0, 0.9);
}

.search-bar-inner {
    display: block;
    position: fixed;
    top: 10%;
    width: 100%;
    background: var(--background-color);
    z-index: 99;
    border-top: 1px solid var(--separator);
    box-shadow: var(--shadowlevel-2);
    transition: box-shadow var(--standard-transition);
    padding: 20px 0;
}

form.search-bar-form {
    display: grid;
    grid-template-columns: 1fr auto;
    width: var(--theme-standard-width);
    margin: 0 auto;
}

button.search-bar-submit-btn {
    background: none;
    display: block;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

button.search-bar-submit-btn svg {
    width: 40px;
    height: 40px;
}

form.search-bar-form {
    display: grid;
    grid-template-columns: 1fr auto;
}

.search-bar-form input.search-bar {
    padding: 0 0 0 18px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--separator);
    font-size: 20px;
    color: var(--text-color);
}

.search-bar-form input.search-bar:focus {
    outline: none;
    border-bottom-color: var(--text-color);
}

@keyframes spin {
    100% {
        transform:rotate(360deg);
    }
}

.as--hidden{
    display: none!important;
}

.as-wrapper {
    position: absolute;
    top: 100%;
    background: var(--background-color);
    z-index: 9;
    width: 100%;
    left: 0;
    right: 0;
    box-shadow: var(--shadowlevel-2);
    padding: 10px 0;
}

.as-loading {
    display: flex;
    justify-content: center;
    padding-bottom: 10px;
}

.as-loading .wd-icon{
    animation: spin 600ms linear infinite;
}

.as-loading svg{
    display: block;
}

.as {
    width: 100%;
    max-width: calc(var(--theme-standard-width) + 40px);
    margin: 0 auto;
}

.as-categories{
    padding: 0 20px;
    margin-bottom: 16px;
}

.as-cateogies-inner {
    display: flex;
    flex-direction: column;
    padding: 7px 0;
}

.as-cateogies-inner a{
    text-decoration: none;
    font-size: 15px;
    padding: 7px 0;
}

.as-wrapper .embolden{
    font-weight: var(--bold);
}

.as-posts {
    max-height: 50vh;
    overflow: auto;
}

.as-posts-inner a {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 20px;
    color: var(--text-color);
    transition: background-color var(--standard-transition);
    text-decoration: none;
    font-size: 15px;
}
.as-posts-inner a:hover {
    background-color: var(--surface-color);
}

.as-post-image {
    width: 45px;
    height: 45px;
    border: 1px solid var(--separator);
    border-radius: 3px;
    overflow: hidden;
}

.as-post-image:empty {
    display: none;
}

.as-post-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.as-posts-more a {
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    justify-content: center;
    padding: 7px 10px;
    transition: background-color var(--standard-transition);
}

.as-posts-more a:hover {
    background-color: var(--surface-color);
}

.as-failed {
    padding: 0px 10px 10px;
    text-align: center;
    font-size: 15px;
}







/* Nav Rail Menu */

.hero-section,
.wrapper,
.site-footer {
    margin-left: var(--nav-rail-width);
    transition: var(--standard-transition);
}

.wd-nav-rail {
    position: fixed;
    /* height: calc(100% - var(--header-height)); */
    height: calc(100% - var(--wp-admin--admin-bar--height));
    padding-bottom: 50px;
    width: var(--nav-rail-width);
    background: var(--header-bg-color);
    color: var(--header-text-color);
    overflow-x: hidden;
    white-space: nowrap;
    transition: var(--standard-transition);
    border-right: 1px solid var(--separator);
}

.wd-nav-rail.expanded {
    width: 250px;
    box-shadow: var(--shadowlevel-3);
    display: inline;
    transition: var(--standard-transition);
}

.wd-nav-rail-menu {
    margin: 0;
    list-style-type: none;
}

.wd-nav-rail-menu li {
    margin: 0;
    padding: 6px 12px 6px 12px;
    max-height: fit-content;
}

.wd-nav-rail-menu li a {
    color: var(--header-text-color);
    text-decoration: none;
}

.wd-nav-rail-menu li a:hover {
    color: var(--accent-color);
    transition: var(--standard-transition);
}

.wd-icon.dropdown-icon,
.wd-nav-rail-toggle-btn .wd-icon {
    flex-direction: column;
}

.wd-nav-rail-menu-item .menu-icon {
    width: 56px;
    height: 32px;
    border-radius: 20px;
    justify-content: center;
    transition: var(--standard-transition);
}

.wd-nav-rail-menu-item .menu-icon:hover {
    background-color: color-mix(in srgb, var(--header-active-color) 10%, transparent);
}

.wd-nav-rail-menu-item .menu-icon:active,
.wd-nav-rail-menu-item .menu-icon:focus,
.wd-nav-rail-menu li.current-menu-item .menu-icon,
.wd-nav-rail-menu li.current_page_item .menu-icon {
    background-color: color-mix(in srgb, var(--header-active-color) 25%, transparent);
}

.wd-nav-rail.expanded .wd-nav-rail-menu .menu-item a .wd-nav-rail-menu-item {
    flex-direction: row !important;
    align-items: center;
    height: 44px;
    padding: 2px 16px;
    border-radius: 26px;
    transition: var(--standard-transition);
}

.wd-nav-rail.expanded .wd-nav-rail-menu .menu-item  a .wd-nav-rail-menu-item:hover {
    background-color: color-mix(in srgb, var(--header-active-color) 10%, transparent);
}

.wd-nav-rail.expanded .wd-nav-rail-menu .menu-item a .wd-nav-rail-menu-item:active,
.wd-nav-rail.expanded .wd-nav-rail-menu .menu-item a .wd-nav-rail-menu-item:focus,
.wd-nav-rail.expanded .wd-nav-rail-menu li.current-menu-item a .wd-nav-rail-menu-item,
.wd-nav-rail.expanded .wd-nav-rail-menu li.current_page_item a .wd-nav-rail-menu-item{
    background-color: color-mix(in srgb, var(--header-active-color) 25%, transparent);
}

.wd-nav-rail.expanded .wd-nav-rail-menu .menu-item a .wd-nav-rail-menu-item .menu-icon {
    background-color: unset;
}

.wd-nav-rail.expanded .wd-nav-rail-menu .menu-item a .wd-nav-rail-menu-item .menu-label {
    font-size: 18px;
}

.wd-nav-rail-menu-item {
    display: flex;
    flex-direction: column;
}

.menu-label {
    display: inline-block;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wd-nav-rail-menu .menu-item .sub-menu {
    display: none;
    list-style-type: none;
    background-color: color-mix(in srgb, var(--primary-color) 5%, transparent);
    padding: 0;
    margin-left: -0.6rem;
    margin-right: -0.6rem;
    margin-top: 6px;
    transition: var(--standard-transition);
}

.menu-item-has-children:not(.is-expanded) .sub-menu {
	display: none;
}

.menu-item-has-children.open > .sub-menu {
	display: block;
}

.wd-nav-rail-menu .menu-item .sub-menu .menu-item {
    margin-left: -1px;
}

.expand-sub-menu .wd-icon {
    transition: transform var(--standard-transition);
}

.menu-item-has-children.open > .expand-sub-menu .wd-icon {
    transform: rotate(180deg);
}

.wd-nav-rail-toggle-btn {
    background-color: var(--surface-color);
    color: var(--text-color);
    padding: 8px 8px;
    cursor: pointer;
    width: 100%;
    transition: var(--standard-transition);
    border: none;
    border-bottom: 1px solid var(--separator);
}

@media (max-width: 768px) {
    :root {
        --nav-rail-width: 0px;
        --header-height: 60px;
    }

    .hero-section,
    .wrapper,
    .site-footer,
    .bottom-nav-list {
        margin-left: 0 !important;
        /* margin-top: var(--header-height); */
    }

    .wd-nav-rail {
        left: -100%;
        position: fixed;
        transition: var(--standard-transition);
        z-index: 1000;
    }

    .wd-nav-rail.expanded {
        left: 0;
        box-shadow: none;
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: var(--header-bg-color);
        color: var(--header-text-color);
        position: fixed;
        width: 100vw;
        z-index: 1001;
    }

    .mobile-header .wd-nav-rail-toggle-btn {
        width: max-content;
        cursor: pointer;
        margin-left: 0px;
        border-right: 1px solid var(--separator);
    }

    .mobile-header .main-header-logo-link {
        justify-self: right !important;
        flex-direction: row;
        height: auto;
        margin-right: 0px;
    }

    .mobile-header .main-header-logo-link img {
        height: 40px !important;
        padding: 0px;
        padding: 5px 5px 5px;
    }
}

@media (min-width: 769px) {
    .mobile-header {
        display: none;
    }
}

.nav-rail-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: var(--standard-transition);
}

.nav-rail-overlay.active {
    display: block;
}

@media (min-width: 769px) {
    .nav-rail-overlay {
        display: none !important;
    }
}

/* Schema FAQ blok */

.faq-question-content{
    font-size: var(--small-headline-font-size);
    line-height: var(--small-headline-line-height);
    font-family: var(--small-headline-font-family);
    font-weight: var(--small-headline-font-weight);
}

.faq-item {
    padding: 30px;
    border-top: 1px solid var(--separator);
    transition: background-color var(--standard-transition);
}

.faq-item:hover {
    background-color: var(--surface-color)
}

.faq-item:last-child{
    border-bottom: 1px solid var(--separator);
}

.faq-layout-standard .faq-question.open + .faq-answer {
    grid-template-rows: 1fr;
    padding-top: 10px;
}

.faq-layout-standard .faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: padding var(--standard-transition, '225ms ease-in-out'),
                grid-template-rows var(--standard-transition, '225ms ease-in-out');
}

.faq-layout-standard .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-switch-icon {
    width: 16px;
    height: 16px;
    border-right: 3px solid var(--text-color);
    border-bottom: 3px solid var(--text-color);
    transform-origin: center;
    transform: rotate(45deg);
    margin-bottom: 10px;
    transition: margin-bottom var(--standard-transition),
                transform var(--standard-transition);
    border-radius: 0 0 4px 0;
}

.faq-layout-standard .faq-question.open .faq-switch-icon {
    margin-bottom: 0px;
    transform: rotate(45deg) scale(-1);
}