/*
 Theme Name:     vtechnik
 Theme URI:      https://sunnysundays.de
 Description:    Child
 Author:         Sunny Sundays
 Author URI:     https://sunnysundays.de
 Template:       Divi
 Version:        1.0.0
*/

/*sticky toolbox*/
.mce-top-part {
    position: sticky!important;
    top: -60px;
}

/*Typography*/


@font-face {
    font-family: 'ralewayregular';
    src: url('/wp-content/fonts/raleway-regular.woff2') format('woff2'),
        url('/wp-content/fonts/raleway-regular.woff') format('woff'),
        url('/wp-content/fonts/raleway-regular.ttf') format('truetype'),
        url('/wp-content/fonts/raleway-regular.svg#raleway-regular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'open_sansregular';
    src: url('/wp-content/fonts/opensans-regular.woff2') format('woff2'),
        url('/wp-content/fonts/opensans-regular.woff') format('woff'),
        url('/wp-content/fonts/opensans-regular.ttf') format('truetype'),
        url('/wp-content/fonts/opensans-regular.svg#opensans-regular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'open_sanslight';
    src: url('/wp-content/fonts/opensans-light.woff2') format('woff2'),
        url('/wp-content/fonts/opensans-light.woff') format('woff'),
        url('/wp-content/fonts/opensans-light.ttf') format('truetype'),
        url('/wp-content/fonts/opensans-light.svg#opensans-light') format('svg');
    font-weight: normal;
    font-style: normal;
}

p, body, li {font-family: 'ralewayregular', Helvetica, Arial, sans-serif;}

h1, h2, h3, h4, h5, h6, #et-top-navigation {font-family: 'open_sanslight', Helvetica, Arial, sans-serif;text-transform:uppercase;font-weight: normal;}
#vt-head{font-family:'open_sansregular', Helvetica, Arial, sans-serif;text-transform:uppercase;font-weight: normal;}

/*quotes*/

 blockquote {border:none!important;margin:0;}

 blockquote p {font-family: 'open_sanslight', Helvetica, Arial, sans-serif;font-weight: normal;font-style: italic;}

/*list style*/

.vt-list ul li{list-style: none;}

.vt-list ul li::before {
  content: "\25A0"; 
  color: #00528e; 
  display: inline-block; 
  width: 1em; 
  margin-left: -1em; 
}



/*Main Menu underline*/

#top-menu .current-menu-item a::before,
#top-menu .current_page_item a::before {
 content: "";
 position: absolute;
 z-index: 2;
 left: 0;
 right: 0;
}
#top-menu li a:before {
 content: "";
 position: absolute;
 z-index: -2;
 left: 0;
 right: 100%;
 bottom: 60%;
 background: #6099C6; 
 height: 2px; 
 -webkit-transition-property: right;
 transition-property: right;
 -webkit-transition-duration: 0.3s;
 transition-duration: 0.3s;
 -webkit-transition-timing-function: ease-out;
 transition-timing-function: ease-out;
}
#top-menu li a:hover {
 opacity: 1 !important;
}
#top-menu li a:hover:before {
 right: 0;
}
#top-menu li li a:before {
 bottom: 10%;
}

/*change menu color on scroll*/

.et-fixed-header #top-menu li a,.et-fixed-header #top-menu .current_menu-item a:active  {color:#000!important;}

/* logo fixed header*/

.et-fixed-header #logo {content: url(/wp-content/uploads/2021/06/vtechnik-logo.png);}

/*back to top*/

.et_pb_scroll_top.et-pb-icon {
	background: #00528E;
	}

/*fullwidth header*/
@media only screen and (max-width:1279px) and (min-width:1024px){.vt-fullhead.et_pb_section_0{height:auto!important;}}

/*------------------------------*/
/***********blog style***********/
/*------------------------------*/

/*equalize blog grid height*/

@media only screen and (min-width: 768px) {
	.bloggrid .et_pb_salvattore_content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.bloggrid article {
        margin-bottom: 10px !important;
	-webkit-box-flex: 1;
	    -ms-flex: 1 0 auto;
	        flex: 1 0 auto;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
}

.bloggrid .post-content {
	-webkit-box-flex: 1;
	    -ms-flex: 1 0 auto;
	        flex: 1 0 auto;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
}

.bloggrid .column {
        margin-bottom: 10px !important;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	}

    .et_pb_module.et_pb_blog_grid_wrapper .more-link {
        position: absolute;
        bottom: 31px;
        width: 16vw;
        margin: auto;
    }
    .et_pb_module.et_pb_blog_grid_wrapper .et_pb_post {
        position: relative;
    }
    .et_pb_module.et_pb_blog_grid_wrapper .post-content {
        padding-bottom: 10%;
    }
}

/* meta tag order*/


.et_pb_post {display: flex;flex-direction: column;}

.et_pb_post .et_pb_image_container, .et_pb_post .entry-featured-image-url {order: 1;}

.et_pb_post .post-meta {order: 2;}

.et_pb_post .entry-title {order: 3;margin: 10px 0;}

.et_pb_post .post-content {order: 4;}

.et_pb_post .entry-featured-image-url {margin-bottom: 10px;}

.et_pb_blog_0 .et_pb_post, .et_pb_blog_0 .et_pb_post .post-content * {margin-bottom:20px!important;}


/* pagination*/

.wp-pagenavi {text-align: center;border-top: 1px solid #eeeeec;padding-top: 13px;clear: both;margin-bottom: 30px;color:#000;}

.wp-pagenavi span.current {color: #00528e!important;}

.wp-pagenavi a, .wp-pagenavi span{margin:0 2px;}
.wp-pagenavi a, .wp-pagenavi span{border:none!important;}

/*--------floating sharebar----*/

.wpsr-sb-vl:before {content:'TEILEN'!important;font-size:14px;font-family: 'open_sansregular', Helvetica, Arial, sans-serif;text-transform:uppercase;font-weight: normal;}
.socializer {padding-top:10px;}



/*------------------------------*/
/*****portfolio*****/
/*------------------------------*/

/*project gallery*/
/*.et_pb_gallery_grid .et_pb_gallery_item {
    padding: 5px;
    width: 50%!important;
    clear: right!important;
}
 
@media only screen and (max-width: 479px) {
     
.et_pb_column .et_pb_grid_item:nth-child(n) {
    width: 50%!important;
}
}*/

/*portfolio settings*/
.vp-filter__style-minimal{ --vp-filter-minimal--items__color:#000;--vp-filter-minimal--items-hover__color:#6099c6!important;}
.vp-filter__style-minimal .vp-filter__item.vp-filter__item-active { --vp-filter-minimal--items__color:#6099c6!important;--vp-filter-minimal--items-hover__color:#6099c6!important;}

.vp-portfolio__layout-elements-align-center .vp-filter__style-minimal{font-family:'open_sanslight', Helvetica, Arial, sans-serif!important;font-weight:normal;}

.vp-portfolio__items-style-fade .vp-portfolio__item-align-bottom-left .vp-portfolio__item-meta{font-family: 'open_sansregular', Helvetica, Arial, sans-serif!important;}

.vp-portfolio__items-style-fade .vp-portfolio__item-meta-categories{text-transform:none;margin-bottom:10px;}



/*-----------------------------------------------*/
/****************client carousel*******************/
/*-----------------------------------------------*/

/*Carousel settings, adjust these values only*/

:root {
    --ds-module-number: 52!important; /*Your TOTAL number of modules, so if you have 8 modules duplicated, this number should be 16*/
    --ds-columns-desktop: 6!important; /*The number of modules you want displayed at any one time on desktop*/
    --ds-columns-tablet: 4!important; /*The number of modules you want displayed at any one time on tablet*/
    --ds-columns-mobile: 2!important; /*The number of modules you want displayed at any one time on mobile*/
    --ds-speed-desktop: 120s!important; /*The speed you want your carousel to move on desktop (increase value for slower, decrease for faster)*/
    --ds-speed-tablet: 120s!important; /*The speed you want your carousel to move on tablet (increase value for slower, decrease for faster)*/
    --ds-speed-mobile: 120s!important; /*The speed you want your carousel to move on mobile (increase value for slower, decrease for faster)*/
}

/**************************************************/
/*You do not need to edit anything below this line*/
/**************************************************/

/*Variables for desktop*/

@media all and (min-width: 981px) {
    :root {
        --ds-column-width: auto;
        --ds-module-width: calc(100vw / var(--ds-columns-desktop));
        --ds-column-animation: calc(var(--ds-module-width) - (var(--ds-module-width) * 2));
        --ds-scroll-speed: var(--ds-speed-desktop);
    }
}


/*Variables for tablets*/

@media all and (max-width: 980px) {
    :root {
        --ds-column-width: auto;
        --ds-module-width: calc(100vw / var(--ds-columns-tablet));
        --ds-column-animation: calc(var(--ds-module-width) - (var(--ds-module-width) * 2));
        --ds-scroll-speed: var(--ds-speed-tablet);
    }
}


/*Variables for mobile*/

@media all and (max-width: 479px) {
    :root {
        --ds-module-width: calc(100vw / var(--ds-columns-mobile));
        --ds-scroll-speed: var(--ds-speed-mobile);
    }
}


/*Hide the row overflow*/

.vt-carousel {
    overflow: hidden!important;
}


/*Define the grid and apply animation*/

.vt-carousel .et_pb_column {
    display: grid!important;
    grid-template-columns: repeat(var(--ds-module-number), var(--ds-module-width));
    width: var(--ds-column-width);
    -webkit-animation: scroll var(--ds-scroll-speed) linear infinite;
    animation: scroll var(--ds-scroll-speed) linear infinite;
}


/*Apply the module width*/

.vt-carousel .et_pb_module {
    width: var(--ds-module-width)!important;
		grid-row: 1!important;

}


/*Define the animation*/

@-webkit-keyframes scroll {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(calc(var(--ds-column-animation) * (var(--ds-module-number) / 2)));
        transform: translateX(calc(var(--ds-column-animation) * (var(--ds-module-number) / 2)));
    }
}

@keyframes scroll {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(calc(var(--ds-column-animation) * (var(--ds-module-number) / 2)));
        transform: translateX(calc(var(--ds-column-animation) * (var(--ds-module-number) / 2)));
    }
}


/*Pause animation on hover*/

.vt-carousel .et_pb_column:hover {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}

/*------------------*/
/*testimonial slide*/
/*----------------*/

/* show slider arrows always */
.et-pb-arrow-next {
     opacity: 1;
     right: 22px;
}
.et-pb-arrow-prev{
     opacity: 1;
     left: 22px;
}


/*-----------------------------------------------*/
/*******************MOBILE ONLY******************/
/*-----------------------------------------------*/

/*keep columns on mobile*/
@media only screen and (min-width: 541px) and (max-width: 980px) {
    .four-columns .et_pb_column {width: 25%!important;}
	.three-columns .et_pb_column {width: 33%!important;}
	.two-columns .et_pb_column {width: 50%!important;}
}

/*custom stacking order*/

@media all and (max-width: 980px) {
/*** wrap row in a flex box ***/
.custom_row {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
-webkit-flex-wrap: wrap; /* Safari 6.1+ */
flex-wrap: wrap;
	}
 
/*** custom classes that will designate the order of columns in the flex box row ***/
.first-on-mobile {
-webkit-order: 1;
order: 1;
	}
 
.second-on-mobile {
-webkit-order: 2;
order: 2;
	}
	
.third-on-mobile {
-webkit-order: 3;
order: 3;
	}


	
/*** add margin to last column ***/
.custom_row:last-child .et_pb_column:last-child {
margin-bottom: 30px;
	}
}

/* mobile menu*/

    /* when mobile menu is open, change hamburger icon to x icon */

    #et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before {
        content: '\4d';
    }
    /* makes sub sub menu icon be right arrow instead of down arrow */

    #top-menu .menu-item-has-children .menu-item-has-children > a:first-child::after,
    #et-secondary-nav .menu-item-has-children .menu-item-has-children > a:first-child::after {
        content: '5';
    }
    /* - mobile menu toggling elements, injected via jQuery - */
    /* make menu list item be relative, to be able to position toggle within this item */

    #main-header #mobile_menu.et_mobile_menu .menu-item-has-children {
        position: relative;
    }
    /* the new toggle element, which is added via jQuery */

    #main-header #mobile_menu.et_mobile_menu .sub-menu-toggle {
        position: absolute;
        z-index: 1;
        width: 36px;
        height: 36px;
        line-height: 36px;
        border-radius: 50%;
        top: 5px;
        right: 30px;
        cursor: pointer;
        text-align: center;
    }
    /* the new toggle element when popped */

    #main-header #mobile_menu.et_mobile_menu .sub-menu-toggle.popped {
        background-color: rgba(255,255,255, 0.9)!important;
    }
    /* toggle icon */

    #main-header #mobile_menu.et_mobile_menu .sub-menu-toggle::before {
        font-family: "ETmodules" !important;
        font-weight: normal;
        font-style: normal;
        font-variant: normal;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        line-height: 36px;
        font-size: 24px;
        text-transform: none;
        speak: none;
        content: '\33';
        color: #000;
    }
    /* toggle icon when triggered */

    #main-header #mobile_menu.et_mobile_menu .sub-menu-toggle.popped::before {
        content: '\32';
    }
    /* hide sub menus by default */

    #main-header #mobile_menu.et_mobile_menu .sub-menu-toggle ~ ul.sub-menu {
        display: none !important;
        padding-left: 0;
    }
    /* show sub menu when triggered via jQuery toggle, and add slight bg color */

    #main-header #mobile_menu.et_mobile_menu .sub-menu-toggle.popped ~ ul.sub-menu {
        display: block !important;
    }
    /* remove sub menu list item left padding, since padding will be on anchors */

    #main-header #mobile_menu.et_mobile_menu li li {
        padding-left: 0;
    }
    /* adjust mobile menu anchors side paddings */

    #main-header #mobile_menu.et_mobile_menu li a {
        padding-left: 20px;
        padding-right: 20px;
    }
    /* indent sub sub menus further */

    #main-header #mobile_menu.et_mobile_menu li li li a {
        padding-left: 60px;
        padding-right: 20px;
    }

    #main-header #mobile_menu.et_mobile_menu .menu-item-has-children > a {
        background-color: transparent;
        font-weight: inherit;
    }
    /* make the current page's mobile menu link be different */

    #main-header #mobile_menu.et_mobile_menu li.current-menu-item > a {
        font-weight: bolder;
    }

    /****** Code Style: Menu Slide-In ******/

    @media only screen and (max-width: 980px){
    #mobile_menu {
        display: block !important;
        min-height: 100vh;
        height: 100%;
        top: 0;
        right: 0;
        position: fixed;
        z-index: 9998;
        overflow: scroll;
        border-top: none;
        padding-top: 80px !important;
    }

    .et_mobile_menu li a {
        width: 100%;
        float: left;
        text-align: left;
        margin: 5px;
        transition: .2s;
        text-transform: uppercase;
		border-bottom:none;
    }
    .mobile_nav ul#mobile_menu .current_page_item > a {
        color: #6099c6 !important;
    }

    .mobile_nav.closed #mobile_menu {
        background: rgba(255,255,255,0.9) !important;
        -webkit-transform: translateX(100%);
        -moz-transform: translateX(100%);
        -ms-transform: translateX(100%);
        -o-transform: translateX(100%);
        transform: translateX(100%);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transition: -webkit-transform 0.4s 0s;
        -moz-transition: -moz-transform 0.4s 0s;
        transition: transform 0.4s 0s;
    }

    .mobile_nav.opened #mobile_menu {
        background: rgba(255,255,255,0.9) !important;
        -webkit-transform: translateX(0);
        -moz-transform: translateX(0);
        -ms-transform: translateX(0);
        -o-transform: translateX(0);
        transform: translateX(0);
        -webkit-overflow-scrolling: touch;
        -webkit-transition: -webkit-transform 0.4s 0s;
        -moz-transition: -moz-transform 0.4s 0s;
        transition: transform 0.4s 0s;
    }

    #main-header .container.clearfix.et_menu_container {
        width: 95%;
    }

    .mobile_menu_bar:before {
        color: #000 !important;
    }
    .mobile_nav.opened .mobile_menu_bar:before {
        content: '\4d';
        color: #6099c6 !important;
        z-index: 9999;
    }
    }

    @media only screen and  (max-width: 980px) {
      .et_header_style_split .mobile_menu_bar, .et_header_style_left .mobile_menu_bar {z-index: 9999;}
      #et-top-navigation {padding-right: 5px;}
		.et_header_style_left .logo_container {height: 80%!important;}
		#mobile_menu {    
        width: 400px;    
        margin-left: calc(100% - 400px);
      }
    }
	
	@media only screen and  (max-width: 767px) {
		.et_header_style_left #logo, .et_header_style_split #logo {max-width: 40%!important;}

    @media only screen and (min-width: 481px)  {
      #mobile_menu {    
        width: 340px;    
        margin-left: calc(100% - 340px);
      }
    }
    @media only screen and (max-width: 480px)  {
      #mobile_menu {    
        width: 290px;    
        margin-left: calc(100% - 290px);
      }	
    }
}