/*
Theme Name: Sunjo IT Solution
Author: Christian Funk
Author URI: https://christianfunk-webundapp.de
Description: Individuelles Website-Theme für die Website von Sunjo IT Solutions
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.0
Version: 1.0
Text Domain: sits
*/


img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hidden {
    display: none !important;
}

.single-post .wp-block-post-featured-image {
    height: 60vh;
    max-height: 60vw;
}

.service-group figure {
    aspect-ratio: 677/322;
}

.news-area figure {
    max-width: unset;
}
.news-area img {
    width: 100%;
}

/*---------------Kontakt-Formular---------------*/
.wpcf7-form > p {
    margin: 0 0 20px 0;
}
.wpcf7-form > p:last-of-type {
    margin: 0;
}

.wpcf7-form label, .wpcf7-form label span, .wpcf7-form label span input , .wpcf7-form label span textarea {
    display: block;
    width: 100%;
}

.wpcf7-form label span input, .wpcf7-form label span textarea {
    margin-top: 8px;
    border-radius: 4px;
    border: 2px solid var(--wp--preset--color--accent);
    padding: 8px 16px;
    font-size: 1.25rem;
    font-family: inherit;
}

.wpcf7-form .wpcf7-list-item {
    margin: 0;
}
.wpcf7-form .wpcf7-list-item label, .wpcf7-form .wpcf7-list-item label span {
    display: inline;
}

.wpcf7-form .wpcf7-submit {
    padding: .75rem 1.5rem;
    font-family: inherit;
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 700;
    background-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--base);
    border-radius: 4px;
    border: none;
    margin: 0 auto;
    display: block;
}
.wpcf7-form .wpcf7-submit:hover {
    background-color: #002917;
    cursor: pointer;
}


/*Custom Checkbox*/
.wpcf7-form input[type="checkbox"] { 
    position: absolute; 
    overflow: hidden; 
    clip: rect(0 0 0 0); 
    height: 1px; 
    width: 1px; 
    margin: -1px; 
    padding: 0; 
    border: 0; 
}
.wpcf7-form #inputPreview { 
    display: flex; 
    gap: 20px; 
    justify-content: center;	
}
.wpcf7-form input[type="checkbox"] + span { 
    position: relative; 
    font-size: 20px; 
    cursor: pointer; 
    display: inline-block; 
    align-items: center; 
    height: 24px; 
    color: var(--wp--preset--color--contrast); 
}
.wpcf7-form input[type="checkbox"] + span::before { 
    content: " "; 
    display: inline-block; 
    vertical-align: middle; 
    margin-right: 8px; 
    width: 16px; 
    height: 16px; 
    background-color: unset; 
    border-width: 2px; 
    border-style: solid; 
    border-color: var(--wp--preset--color--accent); 
    border-radius: 2px; 
    box-shadow: rgba(42, 42, 42, 0.75) 0px 0px 0px 0px; 
    transform: translateY(-2px);
}
.wpcf7-form input[type="checkbox"]:checked + span::after { 
    content: " "; 
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBmaWxsPSIjZmZmZmZmIiBkPSJNMTczLjg5OCA0MzkuNDA0bC0xNjYuNC0xNjYuNGMtOS45OTctOS45OTctOS45OTctMjYuMjA2IDAtMzYuMjA0bDM2LjIwMy0zNi4yMDRjOS45OTctOS45OTggMjYuMjA3LTkuOTk4IDM2LjIwNCAwTDE5MiAzMTIuNjkgNDMyLjA5NSA3Mi41OTZjOS45OTctOS45OTcgMjYuMjA3LTkuOTk3IDM2LjIwNCAwbDM2LjIwMyAzNi4yMDRjOS45OTcgOS45OTcgOS45OTcgMjYuMjA2IDAgMzYuMjA0bC0yOTQuNCAyOTQuNDAxYy05Ljk5OCA5Ljk5Ny0yNi4yMDcgOS45OTctMzYuMjA0LS4wMDF6Ii8+PC9zdmc+"); 
    background-repeat: no-repeat; 
    background-size: 12px 12px; 
    background-position: center center; 
    position: absolute; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin-left: 0px; 
    left: 0px; 
    top: 7px; 
    text-align: center; 
    background-color: var(--wp--preset--color--accent);
    font-size: 10px; 
    height: 20px; 
    width: 20px; 
    transform: translateY(-1px);
    border-radius: 2px;
}


/*---------------------SVG Animations----------------------
#service-line {
    display: inline-block;
}
#service-line path {
    stroke-dasharray: 2270;
}

#service-line .hori {
    stroke-dashoffset: 0;
    animation: none;
}*/


/*-----------------Flip-Cards-------------------*/
/* The flip card container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-card {
    background-color: transparent;
    width: min(calc((100vw - 10vw - 3*40px) / 4), calc((1680px - 3*40px) / 4));
    height: 260px;
    -webkit-perspective: 1000px;
    -moz-perspective: 1000px;
    perspective: 1000px; /* Remove this if you don't want the 3D effect */
  }
  
  /* This container is needed to position the front and back side */
  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.2s;
    transform-style: preserve-3d;
  }
  
  /* Do an horizontal flip when you move the mouse over the flip box container */
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
  
  /* Position the front and back side */
  .flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
	box-shadow: 0 2px 16px #00000010;
  }
  
  /* Style the front side (fallback if image is missing) */
  .flip-card-front {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Style the back side */
  .flip-card-back {
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--wp--preset--spacing--20);
  }

@media only screen and (max-width: 560px) {
    :root {
        --wp--preset--spacing--30: 20px;
    }
}


/*------------Animation classes-----------*/
.svg-fade-in {
    opacity: 0;
    transition: all .2s ease;
}
.svg-fade-in.show {
    opacity: 1;
}

/*.fade-in {
    opacity: 0;
    scale: .9;
    transition: all .25s ease-in-out;
}
.fade-in.show {
    opacity: 1;
    scale: 1;
}*/




/*-------------------------Mobile Screens--------------------------*/
@media only screen and (max-width: 1200px) {
    .flip-card-columns {
        flex-wrap: wrap !important;
    }
    .flip-card-columns > .wp-block-column {
        flex-basis: 400px !important;
        /*flex-basis: min(calc((100vw - 10vw - 3*40px) / 2), calc((1680px - 3*40px) / 2));*/
    }
    .flip-card {
        width: min(calc((100vw - 10vw - 40px) / 2), calc((1680px - 40px) / 2));
    }
}

@media only screen and (max-width: 1024px) {
    .columns-for-service-animation {
        gap: var(--wp--preset--spacing--30);
    }
    .columns-for-service-animation .service-line-column {
        display: none;
    }
}

@media only screen and (max-width: 992px) {
    header .wp-block-navigation__container {
        gap: 20px;
    }
    
    .flip-card-columns > .wp-block-column {
        flex-basis: 300px !important;
        /*flex-basis: min(calc((100vw - 10vw - 3*40px) / 2), calc((1680px - 3*40px) / 2));*/
    }

    .why-it .wp-block-columns {
        flex-wrap: wrap !important;
    }
    .why-it .wp-block-columns .wp-block-column {
        flex-basis: 100% !important;
    }
	.why-it-bg {
		display: none;
	}
}

@media only screen and (max-width: 782px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex;
    }
    
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none ;
        bottom: 0;
        top: 0;
        left: 0;
        right: 0;
        position: fixed;
    }

    footer .wp-block-columns .has-text-align-center {
        text-align: left;
    }
    footer .items-justified-right {
        align-items: flex-start;
    }

    .single-post {
        --wp--preset--spacing--50: 5rem;
    }

    .columns-for-service-animation {
        flex-direction: column;
        margin-bottom: var(--wp--preset--spacing--30);
        gap: 0;
    }
    .columns-for-service-animation .service-group {
        margin-top: var(--wp--preset--spacing--30);
    }
    .columns-for-service-animation .wp-block-column {
        padding: 0 !important;
    }

    .wp-block-media-text.is-stacked-on-mobile {
        grid-template-columns: 100% !important;
    }
    .wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media {
        grid-column: 1;
        grid-row: 1;
    }
    .wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content {
        grid-column: 1;
        grid-row: 2;
        padding: 0;
    }


    .flip-card {
        background-color: transparent;
        width: 100%;
        height: fit-content;
        -moz-perspective: 0;
        -webkit-perspective: 0;
        perspective: 0;
    }
    .flip-card-back {
        transform: rotateY(0deg);
        display: flex;
        justify-content: center;
        align-items: center;
        padding: var(--wp--preset--spacing--20);
        backface-visibility: visible;
        -webkit-backface-visibility: visible;
        width: 100%;
        height: fit-content;
        position: relative;
    }
    .flip-card-front, .flip-card-back {
        position: relative;
        width: 100%;
        height: fit-content;
        -webkit-backface-visibility: visible; /* Safari */
        backface-visibility: visible;
		box-shadow: none;
    }
    .flip-card:hover .flip-card-inner {
        transform: rotateY(0deg);
    }
}