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

	Theme Name: WorkDigital Foundation Child
	Version: 0.1
	Description: Child theme for WorkDigital Foundation theme
	Author: WorkDigital
	Author URI: https://workdigital.dk
    Template: wd-foundation

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



/* 
    ——————————
    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;
    --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);
    --theme-text-color: #363636;
    --theme-off-white: #f7f7f2;
    --theme-border-color: #ccc;
	--theme-dark-button: #2f3552;
	--theme-dark-button-hover: #262b42;
}

/*
    ——————————
    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);
}*/
/* Prøver at finde en løsning til afskæring af sider på smallere viewports
@media screen and (min-width: 300px) and (max-width: 999px){
	.entry-content{
		margin-top: 130px !important;
	}
} */

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

.wp-block-button .wp-block-button__link, .btn, .wd-contact-form .wd-form-actions .wd-submit-btn, .button, button {
	text-transform: uppercase;
	padding: 14px 24px;
}

.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(--secondary-color);
	text-decoration: none;
}

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


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

.main-header-logo-link img {
    padding: 0;
    max-height: 52px;
}

.header-topper-item a {
    --header-topper-font-size: 14px;
    font-size: var(--header-topper-font-size);
}

.header-topper-item .wd-icon {
    width: calc(var(--header-topper-font-size) + 4px);
}

.header-topper-item a:hover {
    color: var(--secondary-color);
}

.header-topper-color {
    position: absolute;
    height: 100%;
    width: 100%;
    background: var(--theme-primary-color-hover);
    opacity: 1;
    pointer-events: none;
    transition: opacity var(--standard-transition);
}

.header-topper-inner {
    position: relative;
    width: calc(100% - 8rem);
    max-width: 168rem;
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-auto-flow: column;
    justify-items: end;
    align-items: center;
    justify-content: end;
    grid-gap: 20px;
    box-sizing: border-box;
}

.header-topper-element {
    height: 100%;
}

.header-topper-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5ch;
    font-size: var(--tiny-font-size);
    height: 100%;
    transition: color var(--standard-transition);
    color: var(--theme-text-color);
}

.header-topper-link:hover {
    color: var(--secondary-color);
}

.header-topper-icon {
    fill: currentColor;
    margin-right: 6px;
    height: 22px;
}

.site-header {
    position: fixed;
    top: 32px;
    left: 0;
    height: var(--header-height);
    width: 100%;
    z-index: 2;
}

.footer-nav-widgets-wrapper,
#site-footer,
.menu-modal,
.menu-modal-inner,
.search-modal-inner,
.archive-header,
.singular
.entry-header,
.singular
.featured-media::before,
.wp-block-pullquote::before {
    background: var(--theme-primary-color);
}

.site-header-color {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--theme-primary-color);
    opacity: 1;
    transition: opacity var(--standard-transition);
    box-shadow: var(--shadowlevel-1);
}

.site-header-inner {
    padding: 0;
    width: calc(100% - 8rem);
    max-width: 168rem;
    margin: 0 auto;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.site-header-logo {
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-header-logo-img {
    max-height: calc(var(--header-height) - 40px);
}

span.text-logo {
    font-size: 33px;
    font-weight: bold;
    text-decoration: none;
    color: var(--theme-text-color);;
}

.site-primary-menu li.current-menu-item > a,
.site-primary-menu li.current-menu-item > .link-icon-wrapper > a {
    text-decoration: none;
    color: var(--secondary-color);
}

body:not(.overlay-header) .site-primary-menu > li > a,
body:not(.overlay-header) .-siteprimary-menu > li > .icon {
    color: var(--theme-text-color);
    transition: color var(--standard-transition);
}

body:not(.overlay-header) .site-primary-menu > li > a:hover {
    color: var(--secondary-color);
}

body:not(.overlay-header) .site-primary-menu > li.current-menu-item > a {
    color: var(--secondary-color);
}

.site-header-inner .menu-item {
    margin: 0 35px 0 0;
}

.site-header-inner .menu-item:last-child {
    margin: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    font-weight: 400;
    height: 100%;
    margin: 0;
    position: relative;
}

.menu-item > a {
    height: 100%;
    padding: auto 0;
    line-height: var(--header-height);
}
/*
.current-menu-item::after,
.current_page_parent::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 6px;
    width: 100%;
    background: var(--secondary-color);
    border-radius: 6px 6px 0 0;
}*/

.header-navigation-wrapper {
    height: 100%;
}

.primary-menu-wrapper {
    height: 100%;
}

.site-primary-menu {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.site-primary-menu .menu-item {
    font-size: var(--body-font-size);
}

.site-primary-menu .menu-item a {
    text-decoration: none;
}

.sub-menu {
    position: absolute;
    opacity: 0;
    transition: opacity var(--standard-transition);
    top: 100%;
    left: -20px;
    background: var(--theme-primary-color);
    margin: 0;
    padding: 0;
    min-width: 220px;
    pointer-events: none;
    box-shadow: var(--shadowlevel-1);
}

.sub-menu .menu-item {
    margin: 0;
    height: auto;
    padding: 0;
}

.site-header .sub-menu .menu-item a {
    padding: 10px 10px;
    display: block;
    line-height: 2em;
    color: var(--theme-text-color);;
    width: 100%;
    transition: color var(--standard-transition);
}

.site-header .sub-menu .menu-item a:hover {
    color: var(--secondary-color);
}

.site-header .sub-menu .current_page_item a {
    color: var(--secondary-color);
}

.sub-menu a{
	font-size: 15px !important;
}

.sub-menu .menu-item:first-child a {
    padding-top: 25px;
}

.sub-menu .menu-item:last-child a {
    padding-bottom: 25px;
}

.menu-item:hover .sub-menu {
    opacity: 1;
    pointer-events: initial;
}

.menu-item a:hover {
    color: var(--secondary-color);
}

.menu-item .menu-booking-link {
    padding: 12px 20px;
    border: 3px solid #FFFFFF;
    line-height: 1em;
}

body:not(.overlay-header) .site-primary-menu > li > .menu-booking-link {
    transition: all var(--standard-transition);
    transition-property: background-color, color;
}

body:not(.overlay-header) .site-primary-menu > li > .menu-booking-link:hover {
    background: #FFFFFF;
    color: var(--theme-primary-color);
}

.site-header-mobile {
    height: 70px;
    width: 100%;
    position: fixed;
    top: 40px;
    left: 0;
    display: none;
    background: #fff;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
    transition: all var(--standard-transition);
    transition-property: background-color, transform;
    box-shadow: var(--shadowlevel-1);
}

.mobile-header-logo {
    padding-left: 20px;
    box-sizing: content-box;
}

.mobile-header-logo img{
    max-height: 60px;
}

.menu-open {
    height: 100%;
    width: 32px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: content-box;
    transition: opacity var(--standard-transition);
}

.menu-open.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.hamburger {
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-direction: column;
    overflow: hidden;
}

.hamburger-line {
    background: var(--theme-text-color);
    height: 3px;
    width: 32px;
    position: relative;
}

.hamburger-line:first-child {
    top: -6px;
}

.hamburger-line:last-child {
    top: 6px;
}

.hamburger-text {
    white-space: nowrap;
    font-size: var(--small-font-size);
    font-weight: var(--bold);
    color: var(--theme-text-color);
    margin: 0;
    line-height: 1em;
}

.main-nav-mobile {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    bottom: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    z-index: 2;
    transition: all var(--standard-transition);
    transition-property: opacity;
    min-height: 100vh;
    width: 100vw;
    background: rgba(0, 0, 0, 0.9);
    padding-bottom: 60px;
}

.main-nav-mobile.is-toggled {
    opacity: 1;
    pointer-events: initial;
}

.menu-close {
    cursor: pointer;
    position: fixed;
    top: 20px;
    left: calc(100% - 20px);
    transform: translateX(-100%);
    height: 60px;
    width: 60px;
	z-index: 3;
}

.menu-close__line {
    height: 3px;
    width: 35px;
    position: absolute;
    top: calc(50% - 3px);
    left: 50%;
    background: #FFFFFF;
}

.menu-close__line:first-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-close__line:nth-child(2) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu-close__text {
    white-space: nowrap;
    font-size: var(--small-font-size);
    font-weight: var(--bold);
    color: #FFFFFF;
    margin: 0;
    line-height: 1em;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.main-header-menu .menu-item > a.expand-sub-menu {
    width: auto;
}

.main-nav-mobile .menu-item {
    height: auto;
    flex-direction: column;
}
/*
.main-nav-mobile .current-menu-item::after,
.main-nav-mobile .current_page_parent::after {
    background: transparent;
}*/

.main-nav-mobile .menu-item a {
    line-height: 2em;
    color: #FFFFFF;
}

.main-nav-mobile .menu-item a:hover {
    color: var(--secondary-color);
}

.main-nav-mobile .sub-menu .menu-item:first-child a {
    padding-top: 0;
}

.main-nav-mobile .sub-menu .menu-item:last-child a {
    padding-bottom: 0;
}

.main-nav-mobile .sub-menu {
    opacity: 1;
    top: 0;
    left: 0;
    background: transparent;
    position: relative;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    grid-gap: 0;
}

body:not(.overlay-header) .site-primary-menu.site-primary-menu-mobile > li > .menu-booking-link {
    padding: 15px 25px;
    font-size: var(--body-font-size);
    line-height: var(--body-font-size);
    font-weight: normal;
    margin-top: 10px;
}

/* Prøvede at style knappen til kontakt i menuen, men det virkede ikke helt som jeg ville
.menu-kontakt a{
	background-color: #7c2239;
	border-radius: 25px;
	line-height: 1.5;
	padding: 20px;
	color: #fff !important;
	font-weight: 600;
	text-transform: uppercase;
	margin: 10px 0;
}

.menu-kontakt a:hover{
	background-color: #902843;
} 
*/

body.sometimes-burger .main-header-menu ul.sub-menu li {
    width: 100%;
}

body.sometimes-burger .main-header-menu ul.sub-menu li a {
    width: 100%;
    padding: 0px 10px !important;
}

.main-header-menu .menu-item > a {
    width: 100%;
}

.main-header-menu .menu-item {
	align-items: flex-start;
}

.menu-item-has-children.is-expanded {
	flex-direction: column;
}

.menu-item-has-children.is-expanded .sub-menu {
	position: relative;
	width: 100%;
	box-shadow: none;
	left: 0;
	right: 0;
	padding: 0 0 0 40px;
	opacity: 1;
}

.main-header-menu:not(:has(a:focus, a:active)) .menu-item.current_page_item > a,
body.sometimes-burger .main-header-menu ul.sub-menu li.current-menu-item a,
.main-header-menu:not(:has(a:focus, a:active)) .menu-item-has-children:has(ul.sub-menu li.current-menu-item) > a {
    color: var(--secondary-color);
    background-color: var(--background-color-hover);
}


@media screen and (min-width: 1000px) and (max-width: 1350px){
    .site-primary-menu .menu-item a{
        font-size: 14px;
    }
	
	.sub-menu a {
		font-size: 13px !important;
	}

    .site-header-inner .menu-item {
        margin: 0 15px 0 0;
    }

    .site-header-logo {
        max-width: 200px;
    }
}

@media screen and (min-width: 1190px) and (hover: hover) {
	body.sometimes-burger .main-header-menu ul.sub-menu {
		width: fit-content;
	}

	body.sometimes-burger .main-header-menu > .menu-item > a:before {
		--header-active-color: var(--secondary-color);
		height: 4px;
        width: 100%;
	}

	.main-header-menu:not(:has(a:focus, a:active)) .menu-item-has-children:has(ul.sub-menu li.current-menu-item) > a {
        background-color: transparent;
	}
}


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


.hero-section {
    height: 550px;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 112px;
}

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

.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-content.hero-color-theme-light{
    background: rgba(0, 0, 0, 0.54);
    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;
}

.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 (min-width: 400px) and (max-width:474px){
	.hero-headline-text{
		font-size: 52px !important;
	}
}

@media screen and (min-width: 475px) and (max-width:539px){
	.hero-headline-text{
		font-size: 60px !important;
	}
}

@media screen and (min-width: 540px){
	.hero-headline-text{
		font-size: 68px !important;
	}
}

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

@media screen and (max-width: 1000px){
    .hero-section {
        margin-top: 110px;
    }
}

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

@media screen and (max-width: 415px){
    .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;
}

.wpcf7-form-control-wrap{
	display: block;
}

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

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

.forside-123-billeder{
	max-width: 750px !important;
}

.forside-banner{
	margin-bottom: 0 !important;
}

.wp-container-core-columns-is-layout-5{
	margin-top: 0 !important;
}

.forside-cards-columns{
	display: grid !important;
}

.forside-cards-group{
	margin-top: 0 !important;
}

.forside-card {
	display: flex;
	background: #fff;
	border-radius: 25px;
}

.forside-card h2{
	color: #000;
	margin-top: 0 !important;
	font-size: 30px;
	text-transform: uppercase;
}

.forside-card p{
	color: var(--theme-text-color);
}

/*.forside-card a{
	text-decoration: none !important;
}
*/

.card-container{
	border-radius: 25px;
	padding: 30px 30px;
	box-shadow: 0 5px 15px 0 rgba(0, 0, 0, .15);
}

.card-container:hover,
.card-container:active,
.card-container:focus{
	box-shadow: 0 14px 25px 0 rgba(0, 0, 0, .16);
}

.galleri-fjernvarme{
	width: auto !important;
	flex-grow: 0 !important;
	margin: 0 60px 0 0 !important;
}
.size-thumbnail{
	max-width: 240px !important;
}

.kontakt-side-bg{
	background-image: url('/wp-content/uploads/2025/01/contact-background-img.webp');
	background-size: cover;
	background-position: 50% 50%;
	background-repeat: no-repeat;
}

.kontakt-bg-cover{
	background-color: rgba(0, 0, 0, 0.54);
}

.kontakt-col1{
	margin-top: 15rem !important;
}

.kontakt-col1 h1,
.kontakt-col1 h2,
.kontakt-col1 p,
.kontakt-col1 a{
	color: #fff;
	text-decoration: none;
}

.kontakt-col1 a:hover,
.kontakt-col1 a:focus,
.kontakt-col1 a:active{
	color: var(--secondary-color);
}


/*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: bold;
    color: var(--background-color);
    user-select: none;
    pointer-events: none;
    max-width: calc(100% - 60px);
}

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


@media screen and (min-width: 960px) {
	.forside-banner{
		padding-top: 140px;
		padding-bottom: 140px;
	}
	.forside-banner-text{
		font-size: 30px !important;
	}
	.forside-cards-columns{
		display: flex !important;
	}
}

@media screen and (min-width: 993px) {
	.forside-banner-text{
		font-size: 50px !important;
	}
	 .forside-card h2{
		font-size: 32px;
	}
	 .forside-cards-group{
		margin-top: -120px !important;
		padding-top: 10px;
		position: relative;
		z-index: 1;
	}
}

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

.footer-leadin.footer-leadin-border {
    margin-top: 100px;
	border-top-width: 1px;
}

.footer {
    color: var(--theme-bg-color);
    text-decoration: none;
    padding: 60px 0;
    margin-top: 60px;
    border-top: 1px solid var(--theme-border-color);
    color: var(--theme-text-color);
    background-color: var(--theme-primary-color);
    /* background-image: url(https://jp-rammer.213-108-108-97.plesk.page/wp-content/uploads/2023/08/footer-bg.png); */
    background-repeat: no-repeat;
    background-position: center right 60px;
}

.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(3, 1fr);
    grid-gap: 40px;
}

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

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

@media screen and (min-width: 600px) {
    .footer-column {
        max-width: 400px;
    }
}

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

.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: currentColor;
    text-decoration: none;
}

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

.footer-icon {
    margin-right: 14px;
    fill: currentColor;
}


/* 
    ——————————
    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(--secondary-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: 12rem; /* 3.5rem original */
}

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

/* buttons */

.wp-block-button .wp-block-button__link {
    /*background-color: var(--secondary-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);
}

.read-more-forside a{
	background-color: var(--theme-dark-button)  !important;
}

.read-more-forside a:hover{
	background-color: var(--theme-dark-button-hover) !important;
}

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


.wd-contact-form .wd-contact-form-inner:has(.kontaktform-img-wrapper), 
.wd-contact-form .wd-contact-form-inner:has(.dark-form) {
    padding: 0;
	border-radius: 25px;
	text-align: center;
}

.wd-contact-form .wd-contact-form-inner:has(.dark-form) {
	background-color: var(--dark-faded);
	color: var(--light);
}

.dark-form .wd-error-message {
    background-color: var(--light);
    width: max-content;
    padding: 2px 5px;
    border-radius: 0 0 5px 5px;
    margin-top: 0;
    margin-left: 10;
}

.kontaktform-img-wrapper img {
    max-width: 100%;
    height: auto;
}

.kontaktform-size p {
    margin-bottom: 30px;
	text-align: center;
}

.entry-content hr, hr.styled-separator {
    background: linear-gradient(to left, currentColor calc(50% - 16px), transparent calc(50% - 16px), transparent calc(50% + 16px), currentColor calc(50% + 16px));
    background-color: transparent !important;
    border: none;
    height: 1px;
    overflow: visible;
    position: relative;
	margin: 40px auto;
}

.entry-content hr::before, .entry-content hr::after, hr.styled-separator::before, hr.styled-separator::after {
    background: currentColor;
    content: "";
    display: block;
    height: 16px;
    position: absolute;
    top: calc(50% - 8px);
    transform: rotate(22.5deg);
    width: 1px;
}

.entry-content hr::before, hr.styled-separator::before {
    left: calc(50% - 0.5rem);
}

.entry-content hr::after, hr.styled-separator::after {
    right: calc(50% - 0.5rem);
}

.kontakt-form-primary{
	background-color: transparent;
    box-shadow: 10px 10px 40px 0px rgba(209,209,209,1);
	border-radius: 25px;
	text-align: center;
}

.kontaktform-size {
	padding: 20px;
}

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

.kontatkform-form-row{
    position: relative;
    background-color: transparent;
    padding: 20px;
    border-radius: 0 0 10px 0;
    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;
}

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: var(--theme-off-white);
}

.content-right-side:nth-child(even) .right-side-elements__element {
    background: #fff;
}

@media screen and (min-width: 782px){
	 .kontaktform-size {
		padding: 20px 30px 30px;
	}

	.kontaktform-size.dark-form {
    	padding: 30px;
	}		
}

@media screen and (min-width: 1220px){
	 .kontaktform-size {
		padding: 20px 40px 40px;
	}

	.kontaktform-size.dark-form {
    	padding: 40px;
	}	
}



/* 
    ——————————
    Gutenberg baggrundsfarver
    ——————————
*/

.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-highlight-color-background-color{
    background-color: var(--secondary-color);
}
.has-bg-color-background-color{
    background-color: var(--theme-bg-color);
}
.has-text-color-background-color{
    background-color: var(--theme-text-color);
}

.right-side-elements__element:has(> .wp-block-image:only-child){
    padding: 0;
    background: none;
}

.right-side-elements__element > .wp-block-image:only-child{
    margin-bottom: 0!important;
}

.right-side-elements__element > .wp-block-image:only-child img{
    border-radius: 10px;
}