/*
 Theme Name:   WorkDigital Theme
 Template:     twentytwenty
 Version:      1.0.0
 Text Domain:  workdigital-theme
 Descripton:   This is a child theme of Wordpress' Twenty Twenty theme
*/


/* 
    ——————————
    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.85);
    --tiny-font-size: calc(var(--body-font-size) * 0.75);
    --header-height: 80px;
    --standard-transition: 225ms cubic-bezier(0.4, 0.0, 0.2, 1);
    --slow-transition: 375ms cubic-bezier(0.4, 0.0, 0.2, 1);
    --body-line-height: 1.5;
    --theme-text-color: #363636;
    --theme-off-white: #f7f7f2;
    --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%;
    --hero-section-height: 550px;
}

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

body {
    color: var(--theme-text-color);
    font-family: var(--primary-font-stack);
    font-size: var(--body-font-size);
}


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;
}

.custom-background.page-template {
    background: var(--theme-bg-color);
}

body.custom-background.error404 {
    background: var(--theme-primary-color);
    color: #FFFFFF;
}

.entry-content {
    font-family: var(--primary-font-stack);
    font-size: var(--body-font-size);
}

.entry-content p, .entry-content li {
    line-height: var(--body-line-height);
}


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

.btn {
    background: var(--theme-primary-color);
    text-decoration: none;
    display: inline-block;
    padding: 12px 30px;
    color: var(--theme-bg-color);
    text-align: center;
    font-weight: var(--bold);
}

.btn-secondary {
    background: var(--theme-bg-color);
    color: var(--theme-primary-color);
}

.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(--theme-highlight-color);
}

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

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


/* 
    ——————————
    Styling til plugins
    ——————————
*/

/* GUTENSLIDER */

.entry-content .wp-block-eedee-block-gutenslider .eedee-gutenslider-nav {
    z-index: 1;
}

.entry-content .wp-block-eedee-block-gutenslider .eedee-gutenslider-pagination {
    z-index: 1;
}

/*Kompentation for fixed header*/


body:not(:has(.header-topper)) {
    padding-top: 56px;
}

body:has(.header-topper) {
    padding-top: 84px;
}

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;
}

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

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

    .header-topper-items{
        display: flex;
        gap: 20px;
        align-items: center;
        justify-content: space-around;
        font-size: 0.8em;
        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: 840px) and (hover: hover){
        .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: 4px 24px 4px 16px;
        height: 64px;
    }

    .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;
    }

    .main-header-logo-link img {
        max-height: 42px;
        width: auto;
        filter: invert(1);
    }

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

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

    .main-header-nav{
        color: var(--theme-text-color);
        display: block;
        background: var(--theme-bg-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%, #fff);
        border-left: 2px solid color-mix(in srgb, var(--header-bg-color) 20%, #fff);
        border-bottom: 2px solid color-mix(in srgb, var(--header-bg-color) 20%, #fff);
        z-index: 2;
        pointer-events: none;
        transition: transform var(--standard-transition);
        transform: translateX(100%);
    }

    .main-header--menu-open .main-header-nav{
        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: 52px;
    }

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


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

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

    .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) 10%, var(--theme-bg-color));
    }

    .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(--theme-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;
    }

    .has-2-children .sub-menu{max-height: calc(var(--submenu-element-height) * 2)}
    .has-3-children .sub-menu{max-height: calc(var(--submenu-element-height) * 3)}
    .has-4-children .sub-menu{max-height: calc(var(--submenu-element-height) * 4)}
    .has-5-children .sub-menu{max-height: calc(var(--submenu-element-height) * 5)}
    .has-6-children .sub-menu{max-height: calc(var(--submenu-element-height) * 6)}
    .has-7-children .sub-menu{max-height: calc(var(--submenu-element-height) * 7)}
        
    .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;
    }

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

        .main-header-inner {
            height: auto;
            align-items: center;
            max-height: 64px;
            padding: 0px 24px;
            --dropdown-menu-distance: 5px;
        }

        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;
        }

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

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

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

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

        .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);
        }

        .main-header-menu .menu-item > a{
            display: flex;
            border-radius: 0;
            padding: 0;
        }

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

        .sub-menu{
            max-height: unset;
        }

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

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

        .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);
        }

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

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

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

        .main-header-menu > .menu-item.current_page_item > a:before {
            opacity: 0.7;
        }

        .main-header-menu > .menu-item.current_page_item:hover > a:before,
        .main-header-menu > .menu-item:hover > a:before {
            opacity: 1;
        }
                

        .main-header-menu ul.sub-menu {
            display: none;
            list-style: none;
            margin: 0;
            padding: 0;
            position: absolute;
            background: #fff;
            box-shadow: var(--shadowlevel-1);
            border-radius: 8px;
            transform: translateY(var(--dropdown-menu-distance));
            top: 100%;
            right: 0;
            min-width: 180px;
        }
        
        .main-header-menu ul.sub-menu:after{
            content: "";
            height: calc(var(--dropdown-menu-distance) + 28px);
            width: 180px;
            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%);
        }
        
        .main-header-menu ul.sub-menu li{
            margin: 0;
            padding: 0;
        }
        .main-header-menu ul.sub-menu li:not(:last-child){
            border-bottom: 1px solid #e3e3e3;
        }
        
        .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(--theme-text-color);
            height: auto;
            border-radius: 0;
            white-space: nowrap;
        }

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



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


.hero-section {
    min-height: var(--hero-section-height);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-section h1.wp-block-heading {
    margin: 0;
    font-size: var(--huge-font-size);
    max-width: 768px;
    margin-bottom: 2rem;
}

.hero-section h1.wp-block-heading.has-text-align-center {
    margin: 0 auto 2rem;
}

.hero-section p{
    max-width: 60rem;
}

.hero-section p.has-text-align-center {
    margin-left: auto;
    margin-right: auto;
}

.hero-section.hero-section-type-video {
    min-height: unset;
    height: 56.25vw;
    max-height: 880px;
}

.hero-section-video-wrapper {
    height: 100%;
}

.hero-section-video-wrapper video {
    position: absolute;
    width: auto!important;
    height: auto!important;
    aspect-ratio: var(--video-width) / var(--video-height);
    min-height: 100%;
    min-width: 100%;
    top: 0;
    left: 50%;
    right: 0;
    bottom: 0;
    transform: translateX(-50%);
}

iframe.hero-video-iframe{
    width: 100vw!important;
    height: 56.25vw!important;
    display: block;
    max-width: unset;
    aspect-ratio: 64 / 36;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(-50%);
}

.hero-section-image-wrapper,
.hero-section-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    scroll-behavior: smooth;
}

.hero-section-image-wrapper .hero-image{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
    object-position: center center;
    height: 100%;
    width: 100%;
}

.hero-section--parallax .hero-section-image-wrapper .hero-image{
    object-position: center calc((var(--parallax-percent) * -1) + 50%);
    scroll-behavior: smooth;
    transition: object-position 1ms linear;
    perspective: 1px;
    transform: translateZ(1px);
    height: var(--hero-section-height);
    min-width: var(--img-width);
}

.hero-section-content.hero-color-theme-light{
    background: linear-gradient(0deg, black, transparent 50%);
    color: #fff;
    display: flex;
    align-items: flex-end;
}

.hero-section-content.hero-color-theme-dark{
    background: linear-gradient(0deg, #fff, transparent 50%);
    color: var(--theme-text-color);
}

.hero-section-inner{
    width: 120rem;
    margin: 0 auto;
    z-index: 2;
}

.hero-section .wp-block-buttons {
    margin: 0 0 30px;
    display: flex;
    gap: 10px;
}

.wp-block-buttons:has(.has-text-align-center),
*.has-text-align-center + .wp-block-buttons {
    justify-content: center;
}

@media screen and (max-width: 767px){
    .hero-section-inner {
        padding: 60px 0 0px;
        width: calc(100% - 40px);
    }
}

@media screen and (max-width: 420px){
    .hero-section .wp-block-buttons {
        flex-direction: column;
    }
}


/* 
    ——————————
    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;
}

.wpcf7 {
    width: 100%;
    max-width: 600px;
}

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

.content-wrapper--has-right-side {
    grid-template-columns: 1fr 360px;
}


/* 
    ——————————
    Styling til footer og tilhørende elementer
    ——————————
*/

.footer {
    background: var(--theme-primary-color);
    color: var(--theme-bg-color);
    text-decoration: none;
    padding: 60px 0;
}

.footer-inner {
    width: calc(100% - 8rem);
    max-width: 120rem;
    margin: 0 auto;
    overflow: hidden;
}

.footer-logo {
    margin-bottom: 50px;
    display: inline-block;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
}

.footer-column {
    width: 100%;
    margin: 0 40px 0 0;
}

.footer-column:last-child {
    margin: 0;
}

.footer-column-heading {
    font-size: var(--medium-font-size);
    font-weight: var(--bold);
    margin: 0 0 30px;
}

.footer-list {
    margin: 0;
}

.footer-list-item {
    margin: 0;
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 0.5ch;
    margin-bottom: 20px;
    font-size: var(--body-font-size);
}

.footer-list-item:last-child {
    margin-bottom: 0;
}

a.footer-logo img {
    filter: invert(1);
}

.company-city {
    white-space: nowrap;
}

.opening-hours-table {
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0 0 10px 0;
    border: none;
}

.opening-hours-table:last-child {
    margin: 0;
}

.opening-hours-table * {
    border: none;
}

.opening-hours,
.opening-day {
    font-size: var(--body-font-size);
    padding: 0;
    margin: 0;
}

.opening-day {
    box-sizing: border-box;
    width: 160px;
    padding-right: 10px;
}

.footer-list-item-link {
    display: flex;
    align-items: center;
    gap: 0.5ch;
    color: var(--theme-bg-color);
    text-decoration: none;
}

.footer-list-item-link:hover {
    text-decoration: underline;
}

.footer-icon {
    margin-right: 14px;
    fill: var(--theme-bg-color);
}


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

.to-top {
    position: fixed;
    right: 40px;
    bottom: 20px;
    height: 50px;
    width: 50px;
    background: #FFFFFF;
    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(--theme-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: #FFFFFF;
    padding: 12px 20px;
    border: 3px solid #FFFFFF;
    line-height: 1em;
    transition: all var(--standard-transition);
    transition-property: background-color, color;
    text-decoration: none;
}

.to-front-page-btn:hover {
    background: #FFFFFF;
    color: var(--theme-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: 999px) {

    .hero-section-inner {
        padding: 60px 0 120px;
    }
}

@media screen and (max-width: 899px) {

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 60px;
    }
}

@media screen and (max-width: 767px) {

    .hero-section-inner {
        padding: 60px 0 50px;
        width: calc(100% - 40px);
    }

    .hero-title {
        font-size: var(--large-font-size);
    }

    .usps {
        display: none;
    }

    .footer-inner {
        width: calc(100% - 40px);
    }

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

@media screen and (max-width: 619px) {

    .hero-title {
        font-size: var(--medium-font-size);
    }

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

html .privacy-policy{
    margin: 0;
}

body *:not(.post-inner) > .entry-content > *:first-child{
    margin-top: 0;
}

body .entry-content > *:first-child{
    margin-top: 3.5rem;
}
body .entry-content > *:last-child{
    margin-bottom: 3.5rem;
}

@media screen and (min-width: 700px) {
    body .entry-content > *:first-child{
        margin-top: 6rem;
    }
    body .entry-content > *:last-child{
        margin-bottom: 6rem;
    }
}

/* buttons */

.wp-block-button .wp-block-button__link {
    background-color: var(--theme-highlight-color);
    display: flex;
    gap: 6px;
    align-items: center;
    border-radius: 30px;
    padding: 14px 24px;
    text-align: center;
    justify-content: center;
    transition: background-color var(--standard-transition);
}

.wp-block-button .wp-block-button__link:hover {
    background-color: var(--theme-highlight-color-hover);
    text-decoration: none;
}

.wp-block-button .wp-block-button__link svg{
    fill: currentColor;
}


.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 * {
    fill: currentColor;
}

.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(--theme-primary-color) 10%, #fff);
        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: 12px;
        text-decoration: none;
        color: var(--theme-text-color);
        letter-spacing: normal;
    }
}

/* 
    ——————————
    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(24px + 0.5ch);
}


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

:root{
    --kontaktformular-bg: var(--theme-off-white);
    --kontaktformular-inner-bg: #fff;
}

.wpcf7{
    max-width: 100%;
    margin-top: 60px;
}

.wp-block-contact-form-7-contact-form-selector {
    border-radius: 10px;
    background-color: var(--kontaktformular-bg);
}

.entry-content .wp-block-contact-form-7-contact-form-selector h3{
    padding: 20px;
    margin: 0;
    display: block;
    text-align: center;
    background: var(--theme-highlight-color);
    font-weight: bold;
    color: #fff;
    border-radius: 10px 10px 0 0;
}

.kontaktform-rows{
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.kontatkform-form-row{
    position: relative;
    background-color: var(--kontaktformular-bg);
    padding: 20px;
    border-radius: 0 0 10px 0;
    color: var(--theme-text-color);
}

.wpcf7 .kontaktform-rows .kontatkform-form-row *{
    color: var(--theme-text-color);
}

.kontatkform-form-row p:last-child{
    margin-bottom: 0;
}

.kontaktform-image-row{
    position: relative;
}

.kontaktform-image-row img{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 0 0 0 10px;
}

.kontatkform-form-row .wpcf7-spinner {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="date"], input[type="month"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="week"], input[type="number"], input[type="search"], input[type="tel"], input[type="color"], textarea {
    padding: 1rem 1.8rem;
}

.kontatkform-form-row textarea {
    height: 9rem;
}

.maps-container iframe{
    border-radius: 0 0 10px 10px;
}

.content-right-side:nth-child(even) {
    background: color-mix(in srgb, var(--theme-highlight-color), transparent 80%)!important;
}

.wpcf7-form{
    position: relative;
}

.wpcf7 form:not(.invalid) .wpcf7-response-output:not(:empty) {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0 94 40 / 90%);
    border-radius: 10px;
    border-width: 3px;
    display: grid;
    color: #fff;
    place-items: center;
    font-weight: bold;
    font-size: 33px;
    text-align: center;
}

.wpcf7,
.wpcf7 label{
    position: relative;
}

.wpcf7 *::placeholder{
    color: transparent;
    user-select: none;
    pointer-events: none;
}

.wpcf7 .label-text{
    position: absolute;
    top: 9px;
    z-index: 1;
    left: calc(19px - 0.5ch);
    font-size: 17px;
    transition: transform var(--standard-transition);
    padding: 0 0.5ch;
    pointer-events: none;
}

.wpcf7 label:has(input:not(:placeholder-shown)) .label-text,
.wpcf7 label:has(textarea:not(:placeholder-shown)) .label-text,
.wpcf7 label:focus-within .label-text{
    transform: translateY(-22px);
    background: linear-gradient(0deg, var(--kontaktformular-inner-bg) 13px, transparent);
    /* background: linear-gradient(0deg, var(--kontaktformular-inner-bg) 13px, transparent 13px); hvis der er stor farveforskel*/
}

.wpcf7 label input,
.wpcf7 label textarea {
    letter-spacing: normal;
    background: var(--kontaktformular-inner-bg);
    border-radius: 8px;
    border: 1px solid #79747E;
    outline: none;
}

.wpcf7 label input:focus,
.wpcf7 label textarea:focus {
    outline: 2px solid #333;
    outline-offset: -2px;
}

.wpcf7-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px var(--kontaktformular-inner-bg) inset !important;
}

.wpcf7 .simple-form input.wpcf7-submit,
.wpcf7 .kontaktform-rows .kontatkform-form-row input.wpcf7-submit{
    height: 40px;
    line-height: 40px;
    padding: 0 24px 0 48px;
    border-radius: 20px;
    text-transform: none;
    font-weight: 500;
    letter-spacing: normal;
    background: url(icons/send-white.svg);
    background-repeat: no-repeat;
    background-position: 16px 8px;
    background-size: 24px;
    background-color: var(--theme-highlight-color);
    margin: 0 0 0 auto;
    display: block;
    color: #fff;
    transition: background-color var(--standard-transition);
    text-decoration: none!important;
}

.wpcf7 input.wpcf7-submit:hover{
    background-color: var(--theme-highlight-color-hover);
    text-decoration: none;
}

.wpcf7-not-valid-tip {
    position: absolute;
    bottom: 1px;
    right: 3px;
    font-size: 0.7em;
}

.wpcf7 form.invalid .wpcf7-response-output {
    border-color: red;
    border-radius: 10px;
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background: #ffefef;
    text-align: center;
    margin: 0;
    font-size: 0.8em;
}




/* 
    ——————————
    Gutenberg Farvevælger
    ——————————
*/

.has-white-background-color{
    background-color: #fff;
}
.has-black-background-color{
    background-color: #000;
}
.has-primary-color-background-color{
    background-color: var(--theme-primary-color);
}
.has-primary-color-faded-background-color{
    background-color: var(--theme-primary-color-faded);
}
.has-highlight-color-background-color{
    background-color: var(--theme-highlight-color);
}
.has-highlight-color-faded-background-color{
    background-color: var(--theme-highlight-color-faded);
}
.has-bg-color-background-color{
    background-color: var(--theme-bg-color);
}
.has-text-color-background-color{
    background-color: var(--theme-text-color);
}

.has-white-color{
    color: #fff;
}
.has-black-color{
    color: #000;
}
.has-primary-color-color {
    color: var(--theme-primary-color);
}
.has-primary-color-faded-color{
    color: var(--theme-primary-color-faded);
}
.has-highlight-color-color {
    color: var(--theme-highlight-color);
}
.has-highlight-color-faded-color{
    color: var(--theme-highlight-color-faded);
}
.has-bg-color-color {
    color: var(--theme-bg-color);
}
.has-text-color-color {
    color: var(--theme-text-color);
}

.hero-overlay-image {
    z-index: 1;
    position: absolute;
    bottom: -2px;
    right: 10vw;
}

@media screen and (max-width: 840px) {
    .hero-section-overlay-image-wrapper{
        display: none;
    }
}

@media screen and (max-width: 485px) {
    .kontaktform-image-row img {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        height: auto;
        width: auto;
        object-fit: cover;
        border-radius: 0;
        margin: 0 auto;
    }

    .kontaktform-rows {
        display: flex;
        flex-direction: column-reverse;
    }

    .kontaktform-image-row p{
        margin-bottom: 0;
    }
}

article .pagination-single,
article .comments-wrapper,
article figure.featured-media{
    display: none;
}

body.post-template-default main#site-content{
    background-image: url(https://fugemestrene.dk/wp-content/uploads/2023/09/backdrop.png);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: bottom -2px right 10vw;
}

.wp-block-image.float-top {
    margin-top: -120px!important;
    margin-bottom: 0!important;
}

.right-side-elements__element:has(.float-top){
    margin-top: 120px;
}

.simple-form h2{
    text-align: center;
    margin: 1rem auto 2rem;
}

.simple-form p:last-child{
    margin-bottom: 0;
}

.right-side-elements__element .wpcf7{
    margin-top: 0;
}

.wd-card-image{
    width: 100%;
}

body.page-id-33 .skjul-paa-kontakt{
    display: none!important;
}