/*
Theme Name: jbwohnbau
Description: TwentyTwentyFour theme child
Author:Denis Kristman
Template: twentytwentyfour
Version: 1.0.0
Text Domain: twentytwentyfour
*/
body {
    --wp--preset--font-family--heading: "Helvetica Neue", Helvetica, Arial, sans-serif,
}

*, *:before, *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.wp-block-navigation__container a:hover {
    text-decoration: none;
}

.wp-block-navigation__container a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px; /* adjust distance from text */
    width: 100%;
    height: 2px;
    background-color: currentColor;

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.wp-block-navigation__container a:hover::after,
.wp-block-navigation__container a:focus::after {
    transform: scaleX(1);
}

a:focus,
button:focus{
    outline: 0;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="datetime"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="time"],
input[type="url"],
textarea,
select {
    border: none;
    font-size: 16px;
    height: auto;
    outline: 0;
    padding: 15px;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03) inset;
    margin-bottom: 30px;
    color: #403d3d;
}

input[type="text"].decimal-input {
    padding-right: 2px;
}

input[type="radio"],
input[type="checkbox"] {
    margin: 0 4px 8px 0;
}

.input[type="radio"]:checked+label:after {
    border: 3px solid #f3a719 !important;
}

.input[type="radio"]:checked+label:before {
    border-color: #f3a719 !important;
}

#estimation_form button {
    font-size: 18px;
    font-family: 'Helvetica', serif;
    font-weight: 600;
    text-transform: uppercase;
    padding: 15px;
    text-align: center;
    width: 100%;
    border: 0;
    background-color: #f3a719;
    margin-bottom: 10px;
}

#estimation_form button:hover {
    background-color: #e0891f;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

label i {
    color: darkgray;
    cursor: pointer;
}

/*label.required:after {
    content: '*';
    color: red;
}*/

/* Handle form errors */
input.error,
select.error {
    margin-bottom: 5px;
    border: 1px solid red;
}

label.error {
    color: red;
    margin-bottom: 30px;
}

body:not(.popup) .popup-overlay {
    display: none;
}

body.popup .popup-overlay {
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: 100;
    top: 0;
    left: 0;
}

i.detached-house {
    background: url('custom_assets/icons/detached_house.svg');
    background-repeat: no-repeat;
    background-size: cover; /* stretch the background to cover the whole element */

    display: inline-block;
    height: 18px;
    width: 20px
}

@media only screen and (max-width: 1024px) {
    header > div.wp-block-group {
        min-height: 181px;
    }

    header .wp-block-site-logo img {
        width: 120px;
    }

    header h2.wp-block-heading {
        font-size: 19px;
    }
}

@media only screen and (max-width: 768px) {
    .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;
    }
}

@media only screen and (max-width: 780px) {
    .footer-logo {
        width: 100%;
        padding-top: 40px;
    }

    .footer-logo a,
    .footer-logo img {
        width: 100%
    }
}