/*
Theme Name: FunkyBase für Braun GmbH
Theme URI: ToDo
Author: Christian Funk
Author URI: https://webdesign-funk.de
Description: Theme für die Braun GmbH
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 8.2
Version: 1.0
Text Domain: funkybase
*/

::root {
    --scrollbar-width: 0px;
    box-sizing: border-box;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    transition: all .3s ease;   
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
}
.admin-bar header {
    top: 32px;
}
header .site-header {
    background-color: var(--wp--preset--color--base);
    transition: all .3s ease;   
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
}
header .wp-block-site-logo img {
    transition: all .3s ease;   
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
}
header .wp-block-site-logo img {
    width: 298px;
}
header.scrolled .wp-block-site-logo img {
    width: 192px;
}
header .site-header {
    transition: all .3s ease;   
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
}
header.scrolled .site-header {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}
/*
.wp-block-navigation-item__content:hover {
    border-bottom: 16px inset var(--wp--preset--color--accent-1);
}*/
.wp-block-navigation-item__content, .footer-link-group p a {
    position: relative;
}

.wp-block-navigation-item__content span {
    position: relative;
    z-index: 2;
}

.wp-block-navigation-item__content::before , .footer-link-group p a::before{
    display: none;
    width: calc(100% + 16px);
    height: 12px;
    position: absolute;
    bottom: 0;
    left: -8px;
    content: "";
    background-color: var(--wp--preset--color--accent-1);
    opacity: 0.5;
    z-index: 1;
}

.wp-block-navigation-item__content:hover::before, .footer-link-group p a:hover::before {
    display: block;
}
.footer-link-group p a {
    text-decoration: none;
}
.footer-link-group p a:visited {
    color: currentColor;
}


.custom-image-arrangement {
    overflow: visible;
}
.custom-image-arrangement.image-right .wp-block-cover__inner-container {
    transform: translateX(calc(-2 * var(--wp--preset--spacing--30)));
}
.custom-image-arrangement.image-left .wp-block-cover__inner-container {
    transform: translateX(calc(2 * var(--wp--preset--spacing--30)));
}
.custom-image-arrangement .wp-block-cover__image-background {
    filter: blur(2px);
}
.custom-image-arrangement .wp-block-cover__background {
    opacity: 0.5 !important;
}


.wp-block-polylang-navigation-language-switcher ul {
    background-color: var(--wp--preset--color--base) !important;
    width: fit-content !important;
    min-width: unset !important;
}
.wp-block-polylang-navigation-language-switcher ul .lang-item a {
    width: fit-content;
}
.wp-block-polylang-navigation-language-switcher .wp-block-navigation-item__content:hover::before {
    display: none;
}


.wide-aware-left-alignment {
    margin-left: max(5vw, calc((100vw - var(--wp--style--global--wide-size)) / 2));
    margin-left: max(5vw, calc((100vw - var(--scrollbar-width) - var(--wp--style--global--wide-size)) / 2));
}
.wide-aware-right-alignment {
    margin-right: max(5vw, calc((100vw - var(--wp--style--global--wide-size)) / 2));
    margin-right: max(5vw, calc((100vw - var(--scrollbar-width) - var(--wp--style--global--wide-size)) / 2));
}




/*---------------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: 1px solid var(--wp--preset--color--contrast);
    padding: 8px 16px;
    font-size: 1.25rem;
    font-family: inherit;
    box-sizing: border-box;
}

.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-1-dark);
    color: var(--wp--preset--color--base);
    border-radius: 0px;
    border: none;
    margin: 0 auto;
    display: block;
}
.wpcf7-form .wpcf7-submit:hover {
    background-color: var(--wp--preset--color--accent-1);
    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: 1px; 
    border-style: solid; 
    border-color: var(--wp--preset--color--contrast); 
    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-1);
    font-size: 10px; 
    height: 20px; 
    width: 20px; 
    transform: translateY(-1px);
    border-radius: 1px;
}




@media only screen and (max-width: 1200px) {
    .wide-aware-left-alignment > .wp-block-group {
        padding-right: 0 !important;
        margin-right: var(--wp--preset--spacing--40) !important;
    }
    .wide-aware-right-alignment > .wp-block-group {
        padding-left: 0 !important;
        margin-left: var(--wp--preset--spacing--40) !important;
    }
}

@media only screen and (max-width: 782px) {
    .custom-image-arrangement {
        padding-top: var(--wp--preset--spacing--20) !important;
        padding-bottom: var(--wp--preset--spacing--20) !important;
        justify-content: center !important;
    }
    .wp-block-columns {
        flex-wrap: wrap !important;
    }
    .wp-block-column:has(.custom-image-arrangement) {
        padding-left: 0 !important;
        padding-right: 0 !important;
        flex-basis: 100% !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
    }
    .custom-image-arrangement .wp-block-cover__inner-container {
        transform: translateX(0) translateY(60px) !important;
    }
    .wp-block-column:has(.wide-aware-right-alignment) {
        padding-left: 0 !important;
        flex-basis: 100% !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
    }
    .wp-block-column:has(.wide-aware-left-alignment) {
        padding-right: 0 !important;
        flex-basis: 100% !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
    }
    .wide-aware-right-alignment {
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 90vw !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .wide-aware-right-alignment > * {
        padding-left: 0 !important;
    }
    .wide-aware-left-alignment {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 90vw !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .wide-aware-left-alignment > * {
        padding-right: 0 !important;
    }
    .wide-aware-left-alignment *, .wide-aware-right-alignment * {
        text-align: left !important;
    }
    .wide-aware-left-alignment .is-content-justification-right {
        margin-left: 0 !important;
    }

    .wp-block-columns:has(.wide-aware-left-alignment) {
        flex-direction: column-reverse !important;
    }

    .contact-cta-columns .wp-block-buttons {
        justify-content: center !important;
    }
    .contact-cta-columns .wp-block-paragraph {
        text-align: center !important;
    }
}