* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html {
	scroll-behavior: smooth;
}


/* Beautiful scrollbars */
/* Firefox support */
* {
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--custom-grey) transparent;
}

/* WebKit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: transparent;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb {
	background: var(--wp--preset--color--custom-grey);
	border-radius: 4px;
	transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--wp--preset--color--custom-grey);
}

::-webkit-scrollbar-thumb:active {
	background: var(--wp--preset--color--custom-grey);
}

::-webkit-scrollbar-corner {
	background: transparent;
}


/* Smartphone, Tablet */
@media only screen and (max-width: 1319px) {
	
}

/* Desktop */
@media only screen and (min-width: 1320px) {
	body {
		font-size: var(--wp--preset--font-size--medium);
	}
}

/* Show burger menu earlier */
@media (max-width: 1503px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        margin: 1rem;
		display: flex !important;  /* Show burger */
    }
    
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none !important;  /* Hide desktop menu */
    }
	
	.burgercontainer {
		justify-content: center;
	}
}

@media (min-width: 1504px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        margin: 0rem;
		
		display: none !important;  /* Hide burger */
    }
    
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: flex !important;  /* Show desktop menu */
    }
}

/* Staple columns */
@media (max-width: 1650px) {
	.my-three-col-block > .wp-block-column {
		flex-basis: 100% !important;
		max-width: 100% !important;
	}

	.my-three-col-block > .wp-block-column:nth-child(2) {
		width: 100% !important;
	}
}


/* Thiner underline for Edge */
a {
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}


/* Remove list indentation */
ul.wp-block-list {
	padding-left: 1.4rem;
}


/* Change initials to arial */
.has-drop-cap > mark {
	font-family: var(--wp--preset--font-family--arial)
}

/* Align last element in cards to bottom */
.pulldownlast > div > *:last-child {
	margin-top: auto;
	flex-grow: 0;
}


/* Ellipsis for too long texts */
.ellipsis {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}


/* Increase Z-index from header */
header.wp-block-group {
	z-index: 9999;
}


/* Navigation Mouse Hover Animation */
header .wp-block-navigation .wp-block-navigation-item__content {
    transition: color 0.15s ease-in-out;
}

header .wp-block-navigation .wp-block-navigation-item__content:hover {
    color: var(--wp--preset--color--custom-maygreen);
}

/* Button Mouse Hover Animation */
.wp-block-button__link,
input[type="submit"] {
    transition: all 0.15s ease-in-out;
}

.wp-block-button__link:hover,
input[type="submit"]:hover {
    background: var(--wp--preset--color--custom-maygreen-bright);
}


/* Contact Button adatpation to language switcher */
.contact-button > .wp-element-button {
	line-height: 38px;
	min-width: 125px;
	padding-top: 11px;
	padding-bottom: 9px;
}


/* Language switcher button font size to adapt to contact button */
span.trp-language-item-name {
	font-size: 1.25rem;
}


/* Adapt Wordpress zoom image to the popup style */
.scrim {
	background-color: rgba( 2, 2, 2, 0.70 ) !important;
}

/* Fix for big popups. Make them scrollable */
.popmake-content {
	max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}


/* Fix alignment option for collapse/show more/less block */
.collapse-it-toggle {
	display: block !important;
}


/* Hack to enable image in accordion header */
.aagb__accordion_title {
	align-items: center;
	display: flex;
	gap: 1rem;
}


/* Remove underline from hyperlink block */
.wp-block-tiptip-hyperlink-group-block {
	text-decoration: none;
}


/* Fix formular plugin */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
textarea {
    width: 100%;
	font-size: var(--wp--preset--font-size--medium)
}

/* Style formular submit button */
input[type="submit"] {
	margin-top: 1rem;
	padding: 1rem;
	font-size: 1.5rem;
    background-color: var(--wp--preset--color--custom-maygreen);
    color: white;
	border: none;
	border-radius: 0px;
}

input[type="submit"]:disabled {
    background-color: var(--wp--preset--color--custom-anthracite-brighter);
    cursor: not-allowed;
}
