/*!
Theme Name: Ergoneon
Theme URI: https://www.optiweb.de
Template: kadence
Author: OptiWeb
Author URI: https://www.optiweb.de
Description: A child theme for Ergoneon and the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: ergoneon-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

/* Header
-------------------------------------------------------------- */
.header-bg {
	left: calc((100vw - var(--scrollbar-offset) - var(--global-calc-content-width)) /2);
}
.header-bg > .kt-row-column-wrap {
	left: calc(((100vw - var(--scrollbar-offset) - var(--global-calc-content-width)) / 2) * -1);
}
@media screen and (max-width: 1024px) {
	.header-bg {
		left: 0;
	}
	.header-bg > .kt-row-column-wrap {
		left: 0;
	}
}
/* Kontakt-Button im Menü */
.main-navigation .primary-menu-container > ul > li.menu-item:last-child {
	background: var(--global-palette1);
	border-radius: 6px;
	margin-left: 1em;
}
.main-navigation .primary-menu-container > ul > li.menu-item:last-child a,
.main-navigation .primary-menu-container > ul > li.menu-item:last-child a:hover,
.main-navigation .primary-menu-container > ul > li.menu-item.menu-item.current-menu-item:last-child a {
	color: var(--global-palette9);
	font-weight: 600;
	padding: 0.4em 1.3em;
}

/* Footer
-------------------------------------------------------------- */
.site-bottom-footer-inner-wrap {
	border-top: 1px solid var(--global-palette6);
}
.site-middle-footer-wrap p {
	margin-top: 0px;
	line-height: 1.7rem;
}
.footer-logo {
	max-width: 300px;
}
.hl-footer {
	font-weight: 600;
	font-size: 20px;
	margin-top: 3px !important;
	margin-bottom: 6px;
}

@media screen and (max-width: 767px) {
	.footer-html {
		text-align: left !important;
	}
}

/* Schriftformatierungen
-------------------------------------------------------------- */
.rot {
	color: var(--global-palette1);
}
.subhead {
	font-size: 18px;
	font-weight: 400;
	color: var(--global-palette4);
}
.reg18 {
	font-size: 18px;
	font-weight: 400;
}
.med18 {
	font-size: 18px;
	font-weight: 500;
}

/* Anything else
-------------------------------------------------------------- */
/* Logo als Wasserzeichen zentriert */
.logo-wz:after {
	position: absolute;
	content: " ";
	background-image: url('/wp-content/uploads/ergoneon-logo-wz.png');
	background-size: contain;
	width: 300px;
	height: 300px;
	z-index: 999;
	left: 43%;
    bottom: 8%;
}

/* Breadcrumb */
.rank-math-breadcrumb, .rank-math-breadcrumb a {
	font-weight: 400;
}
.rank-math-breadcrumb {
	color: var(--global-palette5);
}

/* Formular 
-------------------------------------------------------------- */
.fluentform .ff-el-form-control,
.fluentform .ff-el-form-control::placeholder {
	font-family: inherit !important;
	font-weight: 400 !important;
	/*color: var(--global-palette3) !important;*/
}
.ff-default .ff_btn_style {
	border: 2px solid var(--global-palette9);
	padding: 8px 30px !important;
}

/* Transparenter Button */
.b-transparent .wp-block-button__link {
	border: 1px solid var(--global-palette9);
	padding: 8px 30px !important;
	background: none;
}
.b-transparent .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.05);
}

/* FAQ formatieren
-------------------------------------------------------------- */
/* Logo in FAQ-Footer */
.faq-outer:before {
	position: absolute;
	content: " ";
	background-image: url('/wp-content/uploads/ergoneon-logo-wz.png');
	background-size: contain;
	width: 480px;
	height: 480px;
	left: -200px;
    top: 50px;
}
.faq-outer:after {
	position: absolute;
	content: " ";
	background-image: url('/wp-content/uploads/ergoneon-logo-wz.png');
	background-size: contain;
	width: 480px;
	height: 480px;
	right: -200px;
    bottom: -100px;
}

/* Zweispaltigkeit */
.faq-2sp .rank-math-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: 60px;
	row-gap: 96px;
}
/* Icon vor FAQ-Frage */
.faq-2sp .rank-math-list-item {
	display: grid;
	grid-template-columns: 70px auto;
	grid-template-rows: max-content;
	column-gap: 32px;
}
.faq-2sp .rank-math-list-item::before {
	content: url(/wp-content/uploads/fragezeichen.svg);
	width: 70px;
}
.faq-2sp h3.rank-math-question {
	margin-top: -6px !important;
}
.faq-2sp .rank-math-answer {
	grid-column: 2 / 2;
}
@media screen and (max-width: 1024px) {
	.faq-2sp .rank-math-list-item {
		column-gap: 24px;
	}
}
@media screen and (max-width: 767px) {
	.faq-2sp .rank-math-list {
		display: grid;
		grid-template-columns: unset;
		column-gap: 0;
		row-gap: 40px;
	}
	.faq-2sp .rank-math-list-item {
		grid-template-columns: 54px auto;
		column-gap: 24px;
	}
	.faq-2sp .rank-math-list-item::before {
		width: 54px;
	}
}

/* Bild als Wasserzeichen */
.wz-img {
	position: absolute;
	bottom: -254px;
}
.wz-img-rechts {
	position: absolute;
	bottom: -239px;
	right: 0;
}
@media screen and (max-width: 1024px) {
	.wz-img {
		bottom: -234px;
	}
	.wz-img-rechts {
		bottom: -219px;
	}
}

/* Referenzen */
.referenzen .kb-slide-item .kb-portfolio-grid-item-inner {
	display: none;
}
.referenzen .kb-slide-item.is-active .kb-portfolio-grid-item-inner {
	display: flex;
}

.referenzen .kb-blocks-portfolio-grid-item {
	background: none;
}
.referenzen .kb-blocks-portfolio-grid-item .kb-portfolio-loop-excerpt { 
	max-width: 610px;
}
.referenzen .kb-portfolio-grid-item-inner {
	position: relative;
	background: var(--global-palette9);
}

.referenzen .portfolio-hover-item-link {
	display: none;
}
.referenzen .kb-portfolio-overlay-color {
	display: none;
}
.referenzen .kb-portfolio-overlay-border {
	display: none;
}
.referenzen .kb-portfolio-content-item-inner {
	opacity: 1;
	transform: none !important;
	margin-top: 38px;
}
.referenzen .kb-portfolio-content-item-inner .kb-portfolio-loop-title {
	font-size: 20px !important;
	line-height: 1.4 !important;
}
@media screen and (max-width: 1024px) {
	.referenzen .kb-portfolio-content-item-inner .kb-portfolio-loop-title {
		font-size: 19px !important;
	}
}
@media screen and (max-width: 767px) {
	.referenzen .kb-portfolio-content-item-inner .kb-portfolio-loop-title {
		font-size: 18px !important;
	}
}

@media screen and (min-width: 1025px) and (max-width: 1140px) {

}

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

}

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

}


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

}
