/* 
Theme Name: Valpix Child Theme
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child Theme.
Author: Valpix GmbH
Author URI: https://www.valpix.ch/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Custom Styles Valpix */

html, body {
  	text-rendering: optimizeLegibility;
  	-webkit-font-smoothing: antialiased;
  	-moz-osx-font-smoothing: grayscale;
}
.lead p, .section-testimonial .lead p {
    font-size: clamp(1.118rem, 0.12vw + 1.084rem, 1.176rem);
}
p:only-child, p:last-child {
  	margin-bottom: 0;
}
.hero-slider {
	padding:  0 !important;
}
#content section, .page-child section, footer, .page section, .single-post section, .search section {
  	margin-top: clamp(4.706rem, 3.606vw + 3.688rem, 6.471rem);
}
#content section.inner-space {
  	padding-top: clamp(4.706rem, 3.606vw + 3.688rem, 6.471rem);
  	padding-bottom: clamp(4.706rem, 3.606vw + 3.688rem, 6.471rem);
}
#content section.small-s {
  	margin-top: clamp(4.706rem, 3.606vw + 3.688rem, 6.471rem);
}
h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
	margin-top: 0;
}
h1 {
	font-size: clamp(1.647rem, 1.442vw + 1.24rem, 2.353rem) !important;
}
h2 {
	font-size: clamp(1.412rem, 0.962vw + 1.14rem, 1.882rem) !important;
}
h3 {
	font-size: clamp(1.294rem, 0.721vw + 1.09rem, 1.647rem) !important;
}
h4 {
	font-size: clamp(1.176rem, 0.601vw + 1.007rem, 1.471rem) !important;
}
h5 {
	font-size: clamp(1.176rem, 0.361vw + 1.075rem, 1.353rem) !important;
}
h6 {
	font-size: clamp(1.059rem, 0vw + 1.059rem, 1.059rem) !important;
}
.page-child h1 {
  	max-width: 85%;
}
.center-title h1 {
    margin-left: auto;
    margin-right: auto;
}
.subpage-container .elementor-widget-image, .hero-image, .post-teaser .elementor-widget-image {
  	padding-top: 66.66%;
  	overflow: hidden;
}
.subpage-container img, .hero-image img, .post-teaser img {
	height: 100% !important;
	width: 100% !important;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	object-fit: cover;
	transform: scale(1.02);
	transition: all .3s ease-in-out !important;
}
.page-listing-single h5 {
  	color: #fff;
  	margin-bottom: 0;
}
.elementor-widget-text-editor ul {
  	padding-left: 20px;
}
ul + p{
  	margin-top: 20px;
}
ul + h2, ul + h3 {
  	margin-top: 40px;
}
h1:only-child, h2:only-child, h3:only-child, h4:only-child, h5:only-child, h6:only-child {
	margin-bottom: 0;
}


/* Header */
header nav .sub-menu, .elementor-nav-menu--layout-horizontal .elementor-nav-menu > li:not(:first-child) > ul {
    padding: 20px !important;
	min-width: 250px !important;
	margin-top: 32px !important;
	left: 50% !important;
    right: auto;
    text-align: center;
    transform: translate(-50%, 0);
}
header nav .sub-menu:before {
	position: absolute;
	content: '';
	top: -8px;
	width: 0px;
   	height: 0px;
   	border-style: solid;
   	border-width: 0 15px 12px 15px;
   	border-color: transparent transparent #1D1D1C transparent;
   	transform: rotate(0deg);
	left: 0;
	right: 0;
	margin: 0 auto;
}
header nav .sub-arrow {
    display: none !important;
}
header nav ul li:last-child a {
    padding-right: 0 !important;
}
header nav .sub-menu a {
    padding: 0 !important;
	font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
}
header ul.elementor-nav-menu--dropdown a, header ul.elementor-nav-menu--dropdown a:focus, header ul.elementor-nav-menu--dropdown a:hover,
.overlay-menu ul.elementor-nav-menu--dropdown a, .overlay-menu ul.elementor-nav-menu--dropdown a:focus, .overlay-menu ul.elementor-nav-menu--dropdown a:hover {
    border-inline-start: 0 solid transparent !important;
}
header nav .sub-menu li{
    padding: 10px 0;
}
header nav .sub-menu li:first-child{
    padding-top: 0;
}
header nav .sub-menu li:last-child{
    padding-bottom: 0;
}
header nav .sub-menu li:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}
.overlay-menu .elementor-sub-item {
	font-size: 17px !important;
	font-weight: 400 !important;
}


/* Slider */
.swiper-slide-contents {
  	background: var(--e-global-color-secondary);
  	padding: 40px;
  	text-align: left;
	max-width: 450px !important;
	z-index: 100;
}
.elementor-slides .swiper-slide-inner {
  	padding: 0;
  	padding-right: calc((100vw - 1312px) / 2);
}
.hero-slider .swiper-slide {
  	height: 65vh !important;
  	min-height: 720px;
}
.hero-slider .swiper-pagination {
  	margin-bottom: 25px;
  	position: absolute;
  	text-align: left;
  	padding-left: 50px;
  	padding-right: 50px;
	max-width: 400px;
}
.hero-slider .elementor-swiper-button i {
	display: none;
}
.hero-slider .elementor-swiper-button.elementor-swiper-button-prev {
	background-image: url(assets/img/arrow-prev.svg);
	left: 50px !important;
}
.hero-slider .elementor-swiper-button.elementor-swiper-button-next {
	background-image: url(assets/img/arrow-next.svg);
	right: 50px !important;
}
.swiper-pagination-bullet.swiper-pagination-bullet-active {
	background-color: var( --e-global-color-secondary ) !important;
}
.swiper-pagination-bullet {
	opacity: 1 !important;
}
.hero-slider .elementor-swiper-button.elementor-swiper-button-next, .hero-slider .elementor-swiper-button.elementor-swiper-button-prev {
	background-size: cover;
	background-position: center;
	width: 45px;
 	height: 45px;
}


/* Sections */
.section-breadcrumb span span:first-child {
	margin-left: 0;
}
.section-breadcrumb span span:first-child a {
  	padding-left: 23px;
}
.section-breadcrumb span span:first-child a:before {
  	content: '';
	position: absolute;
	background-image: url('assets/img/breadcrumb-home.svg');
	background-size: cover;
	background-position: center;
	width: 16px;
	height: 16px;
	top: 4px;
	left: 0;
}
.section-breadcrumb span span {
  	margin: 0 6px;
	font-size: 17px;
}
.section-breadcrumb .breadcrumb_last {
  	color: var( --e-global-color-secondary );
}
.team-loop-item h4 {
	margin-bottom: 0;
}
.section-content .elementor-widget-leadtext {
  	margin-bottom: 40px !important;
}
.section-topics .e-loop-item section {
    margin: 0 !important;
    overflow: hidden;
    border-radius: 0;
}
.section-topics .e-loop-item,.section-topics .grid-sizer {
    width: calc(33.33% - 30px);
    margin-right: 30px!important;
    margin-bottom: 30px!important;
    display: block!important;
    height: auto;
}
.section-topics .e-loop-item.big-width {
    width: calc(66.66% - 30px)
}
.section-topics .e-loop-item.big-width .elementor-container:before {
    padding-top: calc(50% - 15px)
}
.section-topics .e-loop-item.big-height .elementor-container:before {
    padding-top: calc(200% + 30px)
}
.section-topics .e-loop-item .elementor-container:before {
    content: "";
    display: block;
    padding-top: 100%;
}
.section-projects .elementor-grid,.section-topics .elementor-grid,.swiper-pagination {
    display: block!important
}
.topics-container .elementor-loop-container {
    right: -15px !important;
    position: relative;
}
.section-topics .page-listing-image {
    height: 100% !important;
    width: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
}
.section-topics .page-listing-image img{
    height: 100% !important;
    width: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
    transform: scale(1.03);
}
.section-supplier img {
  	max-height: 80px;
  	width: auto;
  	height: auto;
  	max-width: 140px;
}
.cta-sidebar a:not(.elementor-button) {
  	color: var( --e-global-color-text ) !important;
}
.e-loop-item img, .subpage-container img {
  	transform: scale(1);
	transition: all .3s ease;
}
.e-loop-item:not(.mitarbeiterstatement, .ansprechpartner):hover img, .subpage-container:hover img {
	transform: scale(1.05);
}
.fadeInUp {
  	animation-name:fadeInUpCustom!important
}
.animated {
  	animation-duration:1.5s!important
}
@keyframes fadeInUpCustom {
  from {
    opacity:0;
    transform:translate3d(0,40px,0)
  }
  to {
    opacity:1;
    transform:none
  }
}
.file-listing a:before {
    content: '';
    background-image: url(assets/img/icon-file.svg);
    position: absolute;
    left: -30px;
    top: 0;
    width: 20px;
    height: 20px
}

.file-listing ul li {
    list-style-type: none;
    position: relative
}

.file-listing ul {
    padding-left: 30px
}


.subpage-container h3 {
    color: #fff;
    margin: 0;
    font-size: 22px;
}

footer a {
  color: #fff !important;
}
footer h5 a, .search-container {
    color: var( --e-global-color-text ) !important;
}
.error404 footer {
	margin-top: 0 !important;
}

@media screen and (max-width: 1600px) {
	.e-con-full.e-parent, .e-con-boxed.e-parent .e-con-inner {
  		padding-left: 48px;
  		padding-right: 48px;
	}
	.e-con-full.section-fullwidth, .dialog-widget .e-con-boxed.e-parent .e-con-inner, .e-loop-item .e-con-boxed.e-parent .e-con-inner, .section-content .e-con-inner .e-con-inner, .team-loop-item .e-con-boxed .e-con-inner  {
		padding-left: 0;
		padding-right: 0;
	}
	.footer-brand img {
		width: 220px !important;
	}
}
@media screen and (max-width: 1200px) {
	.e-con-full.e-parent, .e-con-boxed.e-parent .e-con-inner {
		padding-left: 40px;
		padding-right: 40px;
	}
	.e-con-full.section-fullwidth, .dialog-widget .e-con-boxed.e-parent .e-con-inner, .section-content .e-con-inner .e-con-inner, .team-loop-item .e-con-boxed .e-con-inner  {
		padding-left: 0;
		padding-right: 0;
	}
}
@media screen and (max-width: 992px) {
	.section-projects .e-loop-item, .section-projects .e-loop-item.big-width, .section-topics .e-loop-item, .section-topics .e-loop-item.big-width, .section-topics .grid-sizer {
		width:calc(50% - 30px);
	}
	.section-projects .e-loop-item.big-height .elementor-container::before, .section-projects .e-loop-item.big-width .elementor-container::before, .section-topics .e-loop-item.big-height .elementor-container::before, .section-topics .e-loop-item.big-width .elementor-container::before {
		padding-top: 100%;
	}
	.hero-slider .swiper-slide {
		height: 70vh !important;
		min-height: 400px;
	}
}
@media screen and (max-width: 768px) {
	.e-con-full.e-parent, .e-con-boxed.e-parent .e-con-inner {
  		padding-left: 20px;
  		padding-right: 20px;
	}
	.e-con-full.section-fullwidth, .dialog-widget .e-con-boxed.e-parent .e-con-inner, .section-content .e-con-inner .e-con-inner, .team-loop-item .e-con-boxed .e-con-inner  {
		padding-left: 0;
		padding-right: 0;
	}
	.section-projects .e-loop-item, .section-projects .e-loop-item.big-width, .section-topics .e-loop-item, .section-topics .e-loop-item.big-width, .section-topics .grid-sizer {
		width:calc(100% - 30px);
	}
	.swiper-slide-contents {
		padding: 20px;
		max-width: 90vw !important;
		width: 90vw;
		margin-bottom: 55px;
	}
	.swiper-slide-inner {
		justify-content: center !important;
	}
	.elementor-swiper-button {
		display: none !important;
	}
	.hero-slider .swiper-pagination {
		margin-bottom: 10px;
		padding-left: 20px;
	}
	.elementor-slides .swiper-slide-inner .elementor-slide-description {
		font-size: 16px;
	}
	.elementor-slide-heading {
		font-size: 20px;
	}
}