@charset "UTF-8";

/*
Theme Name: ercas. group
Theme URI: https://paetzke.io/
Author: Pätzke Software
Author URI: https://paetzke.io/
Description: Landingpage für ercas. group
Requires at least: 6.0
Tested up to: 6.0
Requires PHP: 7.0
Version: 1.0.0
Text Domain: ercasgroup
*/

/**
* Root
*/

:root {
	--font-color: #000;
	--font-size-s: 0.875rem;
	--font-size-m: 1rem;
	--font-size-l: 1rem;
	--font-size-xl: 1.4rem;
	--font-size-xxl: 1.6rem;
	--primary-color: #8A8A8F;
	--ercas-med-primary: #65B4E5;
	--ercas-solutions-primary: #F08A00;
	--ercas-agentur-primary: #afc410;
	--light-grey: #f6f6f6;
}
:root body.solutions {
	--primary-color: var(--ercas-solutions-primary);
}
:root body.med {
	--primary-color: var(--ercas-med-primary);
}
:root body.agentur {
	--primary-color: var(--ercas-agentur-primary);
}

@media (min-width: 1200px) {
	:root {
		--font-size-s: 1rem;
		--font-size-m: 1.05rem;
		--font-size-l: 1.1rem;
		--font-size-xl: 1.6rem;
		--font-size-xxl: 2rem;
	}
}


/**
* Fonts
*/


/* lato-regular - latin */
@font-face {
	font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: 'Lato';
	font-style: normal;
	font-weight: 400;
	src: url('assets/fonts/lato-v23-latin/lato-v23-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */
		 url('assets/fonts/lato-v23-latin/lato-v23-latin-regular.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  }
  
  /* lato-700 - latin */
  @font-face {
	font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: 'Lato';
	font-style: normal;
	font-weight: 700;
	src: url('assets/fonts/lato-v23-latin/lato-v23-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */
		 url('assets/fonts/lato-v23-latin/lato-v23-latin-700.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  }

  
/**
* Document + Page
*/
html {
	font-size: 16px;
}
body {
	font-family: 'Lato', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: var(--font-size-m);
	min-width: 340px;
	background: #fdfdfd;
}

#page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	justify-content: space-between;
	position: relative;
}

h1 {
	font-weight: 700;
}
h2 {
	font-weight: 700;
	margin-bottom: 2rem;
}
h3 {
	font-weight: 700;
	margin-bottom: 2rem;
}
h4 {
	font-weight: 700;
	margin-bottom: 2rem;
}
h5 {
	font-weight: 700;
	margin-bottom: 2rem;
}

p {
	font-size: var(--font-size-l);
	margin-bottom: 2rem;
}
/**
* Header
*/

#site-branding {
	position: absolute;
	top: 0;
	right: 0;
}

#primary-menu-list,
#primary-menu-list li {
	list-style: none;
	margin: 0;
	padding: 0;
}
#primary-menu-list a {
	text-decoration: none;
	color: var(--font-color);
}

.custom-logo {
	max-height: 68px;
	height: auto;
	width: auto;
}


#site-header {
	position: relative;
	z-index: 2;
	padding: 26px 0;
	min-height: 68px;
	margin-bottom: 0;
}

@media (min-width: 768px) {
	.custom-logo {
		max-height: 78px;
	}
	#site-header {
		min-height: 78px;
		padding: 34px 0;
	}
}
/**
* Content
*/
#site-main {
	position: relative;
	z-index: 1;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}



/**
* Standard Template Page (not front-page)
*/

body.error404 header.page-header,
body.page header.page-header {
	min-height: 260px;
	height: 25vh;
	display: flex;
}

body.error404 header.page-header h1,
body.page header.page-header h1 {
	margin-bottom: 46px;
	color: #fff;
}

/**
* Footer
*/

#site-footer {
	background-color: var(--light-grey);
	padding: 18px 0 18px 0;
	text-align: center;
}
#site-footer p {
	margin: 20px;
	font-size: var(--font-size-s);
	opacity: 0.6;
}

#footer-navigation #secondary-menu-list {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	margin: 0 0 0 0;
	padding: 0;
	list-style: none;
	color: #000;
}
#footer-navigation #secondary-menu-list a {
	color: #000;
	text-decoration: none;
	margin: 0 0 5px 0;
	font-size: var(--font-size-s);
	opacity: 0.6;
}
#footer-navigation #secondary-menu-list li:last-child a {
	margin: 0;
}
#footer-navigation #secondary-menu-list a:hover {
	text-decoration: underline;
}
@media (min-width: 768px) {
	#site-footer {
		text-align: left;
	}
	#site-footer p {
		margin: 0;
	}
	#footer-navigation #secondary-menu-list {
		flex-direction: row;
	}
	#footer-navigation #secondary-menu-list a {
		margin: 0 10px 0 0;
	}
}


/**
 * Block Editor Front End
 */

/* layout columns block */

.wp-block-columns {
	--bs-gutter-x: 1.5rem;
	--bs-gutter-y: 0;
	width: 100%;
	padding-right: calc(var(--bs-gutter-x) * .5);
	padding-left: calc(var(--bs-gutter-x) * .5);
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 0;
}

.wp-block-latest-posts.is-grid li {
	margin: 0 0 1.25em 0;
	width: 100%;
}

@media (min-width: 576px) {
	.wp-block-columns {
		max-width: 540px;
	}
	.wp-block-latest-posts.columns-4 li {
		margin: 0 1.25em 1.25em 0;
		width: calc(50% - .625em);
	}
}
@media (min-width: 576px) and (max-width:991px) {
	.wp-block-latest-posts.columns-4 li:nth-child(2n) {
		margin-right: 0;
  	}
}

@media (min-width: 768px) {
	.wp-block-columns {
		max-width: 720px;
	}
}

@media (min-width: 992px) {
	.wp-block-columns {
		max-width: 960px;
	}
	.wp-block-latest-posts.columns-4 li {
		width: calc(25% - .9375em);
	}
}

@media (min-width: 1200px) {
	.wp-block-columns {
		max-width: 1140px;
	}
}

@media (min-width: 1400px) {
	.wp-block-columns {
		max-width: 1320px;
	}
}

/* cover */

.wp-block-cover, .wp-block-cover-image {
	padding: 3vh 0;
	min-height: 0;
}
.wp-block-columns .wp-block-cover, .wp-block-cover-image {
	padding: 2.5rem;
}

/* buttons */
.wp-block-button__link {
	padding: calc(.4em + 2px) calc(1.333em + 2px);
	transition-duration: 0.2s;
}
.wp-block-button__link:hover {
	filter: invert(0.1);
}

/* font sizes */
.has-small-font-size {
	font-size: var(--font-size-s)!important;
}
.has-medium-font-size {
	font-size: var(--font-size-l)!important;
}
.has-large-font-size {
	font-size: var(--font-size-xl)!important;
}
.has-x-large-font-size {
	font-size: var(--font-size-xxl)!important;
}



/* front page specific */
.topRightLogo {
	position: absolute;
	top: 0;
	right: 0;
	margin-bottom: 50px;
	max-width: 90%;
	max-height: 97px;
}
.topRightLogo > img {
	width: auto;
	max-height: 97px;
}
body.home .wp-block-column {
	background: #fff;
	padding: 30px;
	border-radius: 20px;
	box-shadow: 10px 10px 120px 0 rgba(0,0,0,0.03);
	position: relative;
	overflow: hidden;
	padding-top: 120px;
	transition-duration: 0.2s;
}
.colLink,
.colLink:hover,
.colLink:visited,
.colLink:focus {
	display: block;
	padding: 120px 30px 30px 30px;
	color: var(--font-color);
	text-decoration: none;
	height: 100%;
}
body.home .wp-block-column:hover {
	transform: scale(1.03);
}
/*
body.home .wp-block-column.grayscale img {
	filter: grayscale(0);
	transition-duration: 0.4s;
}
body.home .wp-block-column.grayscale img {
	filter: grayscale(1);
}
*/
@media (max-width:991px) {
	body.home .wp-block-columns {
		flex-wrap: wrap!important;
	}
	body.home .wp-block-columns > .wp-block-column {
	  flex-basis: inherit;
	}
}

.page-template-page-sticky-header #site-main {
	padding-top: 120px;
}
.page-template-page-sticky-header #site-header {
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	background: #fff;
	box-shadow: 0 0 10px 1px #f9f9f9;
	display: flex;
	justify-content: center;
	align-content: center;
	flex-direction: column;
}