/* HEADER */

#header-row .header-video-mask::after {
    background-image: linear-gradient(to top, var(--nectar-accent-color) 30%, transparent);
}

#header-row .header-video-mask .title {
    color: var(--nectar-extra-color-1);
}

#header-row {
    background-color: var(--nectar-accent-color);
    padding-top: 50px !important;
    padding-bottom: 150px !important;
}


@media (min-width: 1000px) {
    #header-row {
        height: 100svh;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

#header-row .header-video-mask::after {
    background-image: linear-gradient(to top, var(--nectar-accent-color) 30%, transparent);
}

#header-row .header-video-mask .title {
    color: var(--nectar-extra-color-1);
}

/* MAIN ROW */

#main-row .row-bg-wrap {
    background-color: var(--nectar-extra-color-1);
}

#main-row .column_container {
    padding: 0 !important;
}

#main-row {
    padding-top: 150px !important;
    padding-bottom: 150px !important;
}

.row:has(#main-row) {
    padding-bottom: 0;
}

#main-row .content {
    display: flex;
    align-items: flex-end;
    justify-content: end;
    color: white;
    flex-wrap: wrap;
    gap: 150px;
    flex-direction: column;
}

#main-row .image {
    position: relative;
    flex: 1;
    width: 100%;
}

#main-row .image::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 257.34 141.16"><path fill="%231d1e1b" d="M257.34,141.16V0H0c29.7,0,58.68,8.7,83.21,25.09l174.13,116.07Z"/></svg>');
    background-position: right top;
    background-repeat: no-repeat;
    background-size: auto 50px;
    position: absolute;
    inset: 0;
    content: "";
    z-index: 1;
}

#main-row .image::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 257.34 141.16"><path fill="%231d1e1b" d="M0,0v141.16h257.34c-29.7,0-58.68-8.7-83.21-25.09L0,0Z"/></svg>');
    background-position: left bottom;
    background-repeat: no-repeat;
    background-size: auto 50px;
    position: absolute;
    inset: 0;
    content: "";
    z-index: 1;
}

#main-row .image img {
    aspect-ratio: 1/1 !important;
    object-fit: cover;
    margin: 0 !important;
    width: 100%;
}

#main-row .title-wrapper {
    flex: 1;
    width: 100%;
}

#main-row .subtitle-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 15px;
}

#main-row .line {
    width: 40px;
    height: 1px;
    margin: 0 15px;
    background-color: white;
}

#main-row .subtitle {
    font-size: 20px;
    font-style: italic;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#main-row .title-wrapper .title {
    font-size: 36px;
    letter-spacing: 4px;
    font-weight: bold;
    padding-bottom: 25px;
    text-transform: uppercase;
    font-weight: 400;
    color: white;
}

#main-row .description {
    font-weight: 300;
    font-size: 20px;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


@media (min-width: 1000px) {

    #main-row {
        padding-bottom: 300px !important;
    }

    #main-row .content {
        gap: 100px;
        flex-direction: row;
    }

    #main-row .subtitle-wrapper {
        justify-content: center;
    }

    #main-row .title-wrapper .title {
        text-align: center;
    }

    #main-row .title-wrapper {
        flex: 2;
    }

    #main-row .image {
        flex: 1;
    }

}

/* HOVER SECTION */

#hover-row .row-bg-wrap {
    background-color: var(--nectar-extra-color-1);
}

#hover-row .column_container {
    padding: 0 !important;
}

#hover-row {
    margin-bottom: -160px !important;
}

.row:has(#hover-row) {
    padding-bottom: 0;
}


#hover-row .section {
    display: flex;
    height: 1000px;
    width: 100%;
    position: relative;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#hover-row .section::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 257.34 141.16"><path fill="%231d1e1b" d="M257.34,141.16V0H0c29.7,0,58.68,8.7,83.21,25.09l174.13,116.07Z"/></svg>');
    background-position: right top;
    background-repeat: no-repeat;
    background-size: auto 80px;
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 80px;
    content: "";
    z-index: 1;
}

#hover-row .section::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 257.34 141.16"><path fill="%231d1e1b" d="M0,0v141.16h257.34c-29.7,0-58.68-8.7-83.21-25.09L0,0Z"/></svg>');
    background-position: left bottom;
    background-repeat: no-repeat;
    background-size: auto 80px;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 140px;
    height: 80px;
    content: "";
}

#hover-row .section .hover-child {
    flex-basis: calc(100%/3);
    height: calc(100%/3);
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hover-row .section .hover-child .content {
    display: flex;
    width: 0%;
    height: 100%;
    justify-content: center;
    align-items: center;
    color: var(--nectar-extra-color-1);
    background-color: rgba(244, 149, 12, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease, width 0.3s ease;
}

#hover-row .section .hover-child {
    width: 100%;
}

#hover-row .section .hover-child:nth-child(1) {
    background-image: url('https://www.autohaus-yspertal.at/wp-content/uploads/2025/02/PHOTO-2025-01-23-10-20-18.jpg');
	background-position: center;
}

#hover-row .section .hover-child:nth-child(2) {
    background-image: url('https://www.autohaus-yspertal.at/wp-content/uploads/2025/02/image7-min-scaled.jpeg');
	background-position: center;
}

#hover-row .section .hover-child:nth-child(3) {
    background-image: url('https://www.autohaus-yspertal.at/wp-content/uploads/2025/02/image5-min-scaled.jpeg');
	background-position: center;
}

@media (min-width: 768px) {

    #hover-row .section {
        height: 1400px;
    }

}

@media (min-width: 1000px) {

    #hover-row .section {
        flex-direction: row;
        height: 600px;
    }

    #hover-row .section .hover-child {
        width: auto;
        height: 100%;
    }

}

/* #hover-row .section .hover-child:hover .content {
    opacity: 1;
    width: 100%;
} */

/* CONTACT */

#contact-row .row-bg-wrap {
    background-color: var(--nectar-extra-color-1);
}

#contact-row {
    padding-bottom: 300px !important;
}

#contact-row div:has(#contact-form-wrapper) {
    height: 100%;
}

#contact-form-wrapper {
    height: 100%;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

#contact-form-wrapper div {
    width: 100%;
}

.wpcf7-form .nectar-wpcf7-inline-form .nectar-wpcf7-inline-field {
    padding-right: 0 !important;
}

#contact-row h3 {
    text-align: center;
    color: white;
    text-transform: uppercase;
    font-size: 36px;
    letter-spacing: 4px;
    font-weight: bold;
    font-weight: 400;
    padding-bottom: 50px;
}

#contact-form * {
    font-size: 20px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#contact-form .wpcf7-submit.has-spinner {
    margin-top: 10px;
    transform: translateX(36px);
}

#contact-form .grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

#contact-form input:not([type="file"]),
#contact-form select,
#contact-form textarea {
    padding: 10px 20px;
    height: 50px;
    color: white;
    border: none;
    border-bottom: 1px solid white;
    border-radius: 0;
}

#contact-form input,
#contact-form select {
    height: 50px;
}

#contact-form textarea {
    height: 200px;
    min-height: 200px;
    resize: vertical;
    padding: 15px 20px;
}

#contact-form input::placeholder,
#contact-form select::placeholder,
#contact-form textarea::placeholder {
    color: white;
}

#contact-form p:has(input[type="submit"]) {
    text-align: right;
    transform: translateX(35px);
}

#contact-form .wpcf7-spinner {
    transform: translate(-125px, 7px);
    background-color: white;
}

#contact-form .wpcf7-not-valid-tip {
    background: none;
}

.wpcf7-response-output {
    background: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--nectar-accent-color);

}

#contact-form .wpcf7-spinner::before {
    background-color: var(--nectar-extra-color-1);
}

#contact-form input[type="submit"] {
    border-radius: 30px !important;
    padding: 0 30px;
    height: 60px;
    text-transform: uppercase;
    background-color: white;
    color: var(--nectar-extra-color-1);
    border: 2px solid transparent;
}

#contact-form input[type="submit"]:hover {
    border-color: var(--nectar-extra-color-1) !important;
    box-shadow: none !important;
    background-color: white !important;
    opacity: 1 !important;
}

#contact-form input[type="file"]::file-selector-button {
    border-radius: 20px !important;
    padding: 0 15px;
    height: 40px;
    background-color: white;
    color: var(--nectar-extra-color-1);
    border: 2px solid transparent;
    transform: translateX(-20px);
    cursor: pointer;
}

#contact-form input[type="file"] {
    color: white;
    padding-left: 20px;
}

#contact-form label {
    color: white;
    font-size: 20px;
    line-height: 2;
}

#contact-form-row .row-bg-wrap {
    background-color: var(--nectar-extra-color-1);
}

/* FOOTER */

#footer-mask .row-bg-wrap {
    visibility: hidden;
}

#footer-mask {
    z-index: 11;
}