/* HEADER */

#header-video {
    min-height: 100svh;
}

/* MAIN */

#title-row {
    color: white;
    padding-top: 22px;
    padding-bottom: calc(100vw * 0.08);
    height: calc(var(--line-height) * 0.42);
}

@media (min-width: 1000px) {
    #title-row {
        height: calc(var(--line-height) * 0.25);
    }
}

.title-row-columns {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 100px;
    flex-direction: column;
    gap: 40px;
    height: calc(var(--line-height) * 0.2);
    font-size: 20px;
}

.title-row-columns a {
    color: inherit;
    text-decoration: underline;
}

.title-row-columns p {
    padding: 0;
}

.title-row-columns span.text-strong {
    font-weight: bold;
}

@media (min-width: 1000px) {
    .title-row-columns {
        flex-direction: row;
        justify-content: end;
        height: unset;
        color: #878686;
    }
}

#main-row-title * {
    color: white;
}

#main-row-title {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
}

#main-row-title>div {
    max-width: 680px;
    padding-top: calc(var(--line-height) * 0.09);
    z-index: 9999;
    position: relative;
}

@media (max-width: 1000px) {
    #main-row-title>div::before {
        content: '';
        position: absolute;
        height: 130%;       
        top: 0;
        left: -50vw;
        width: 150vw;
        background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 20%, rgba(0, 0, 0, 0.5) 80%, rgba(0, 212, 255, 0) 100%);
        z-index: -1;
    }
}

@media (min-width: 1000px) {
    #main-row-title>div {
        padding-top: calc(var(--line-height) * 0.015);
    }
}

@media (min-width: 576px) {
    .text-columns {
        text-align: left !important;
    }

    .text-column img {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (min-width: 1100px) {
    #main-row-title>div {
        max-width: 700px;
        padding-top: calc(var(--line-height) * 0.025);
    }

    .title {
        padding-bottom: 50px;
    }
}

@media (min-width: 1200px) {
    #main-row-title>div {
        max-width: 800px;
        padding-top: calc(var(--line-height) * 0.05);
    }
}

#reviews-row .title-row {
    color: var(--nectar-extra-color-1);
    padding-top: 150px;
    padding-bottom: 150px;
}

#reviews-row .ti-widget {
    padding-bottom: 150px;
}

#reviews-row .ti-widget.ti-goog .ti-review-item>.ti-inner {
    background-color: var(--nectar-extra-color-1) !important;
    border: none !important;
    border-radius: unset !important;
}

#reviews-row .ti-reviews-container * {
    color: white !important;
}

#reviews-row .ti-footer .source-Google * {
    color: var(--nectar-extra-color-1) !important;
}

#reviews-row .ti-widget.ti-goog .ti-footer .ti-profile-img {
    display: none;
}

#reviews-row .ti-footer.source-Google .ti-star {
    filter: brightness(0) saturate(100%) invert(11%) sepia(7%) saturate(290%) hue-rotate(314deg) brightness(90%) contrast(91%);
}

#reviews-row .ti-widget.ti-goog .ti-header-write-btn-container .ti-header-write-btn {
    border-radius: 50vw !important;
    background-color: var(--nectar-extra-color-1) !important;
    border: none;
    color: white;
    padding: 15px;
}

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

@media (min-width: 1000px) {
    .subtitle-wrapper {
        padding-left: 25%;
    }
}

.line {
    width: 40px;
    height: 1px;
    margin: 0 15px;
}

#main-row .line {
    background-color: white;
}

#reviews-row .line {
    background-color: var(--nectar-extra-color-1);
}

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

.title {
    font-size: 36px;
    letter-spacing: 4px;
    font-weight: bold;
    padding-bottom: 25px;
    text-transform: uppercase;
    font-weight: 400;
}

@media (min-width: 1000px) {
    .title {
        padding-left: 20%;
    }
}

.description {
    font-weight: 300;
    font-size: 20px;
}

@media (min-width: 1000px) {
    .description {
        padding-left: 10%;
    }
}

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

#overlay-car-bg {
    background-image: url('https://www.autohaus-yspertal.at/wp-content/uploads/2024/09/renault5_nurbg.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover !important;
    background-size: 100%;
    z-index: 11;
    position: absolute;
    margin-left: calc(-50vw + var(--scroll-bar-w)/ 2);
    left: 50%;
    width: calc(100vw - var(--scroll-bar-w));
    top: calc(100svh + var(--line-height) * 0.42);
    height: calc(var(--line-height) * 0.385);
}

@media (min-width: 1000px) {
    #overlay-car-bg {
        top: calc(100svh + var(--line-height) * 0.3);
        height: calc(var(--line-height) * 0.385);
    }
}

#overlay-car-bg::before,
#overlay-car-bg::after {
    content: "";
    position: absolute;
    height: 300px;
    margin-left: calc(-50vw + var(--scroll-bar-w)/ 2);
    left: 50%;
    width: calc(100vw - var(--scroll-bar-w));
    background: linear-gradient(to bottom, #1f1e1e, transparent);
    z-index: 110;
}

#overlay-car-bg::before {
    top: 0;
}

#overlay-car-bg::after {
    bottom: 0;
    background: linear-gradient(to top, #1f1e1e, transparent);
}

#overlay-car {
    z-index: 112;
    position: absolute;
    margin-left: calc(-50vw + var(--scroll-bar-w)/ 2);
    left: 50%;
    width: calc(100vw - var(--scroll-bar-w));
    top: calc(100svh + var(--line-height) * 0.53);
}

@media (min-width: 1000px) {
    #overlay-car {
        top: calc(100svh + var(--line-height) * 0.39);
    }
}

#car {
    height: calc(var(--line-height) * 0.18);
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(15px 15px 20px rgba(0, 0, 0, 0.7));
}

@media (min-width: 1000px) {
    #car {
        height: calc(var(--line-height) * 0.2);
    }
}


#contact-form-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%;
}

div:has(> #car) {
    display: flex;
    align-items: center;
    justify-content: center;
}

#overlay-header {
    z-index: 112;
    position: absolute;
    top: 0;
    margin-left: calc(-50vw + var(--scroll-bar-w)/ 2 + 60px);
    left: 50%;
    width: calc(100vw - var(--scroll-bar-w) - 120px);
    height: 100svh;
}

#overlay-header div:has(>#header-lettering) {
    position: relative;
}

#overlay-header div:has(#header-lettering) {
    height: 100%;
}

#header-lettering {
    width: 100%;
    position: absolute;
    bottom: calc(var(--line-height) * -0.002)
}

@media (min-width: 1000px) {
    #header-lettering {
        bottom: calc(var(--line-height) * -0.002)
    }
}

#text-columns {
    padding-top: 50px !important;
    padding-bottom: 150px !important;
}

.text-columns {
    display: grid;
    gap: 75px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    color: white;
    font-size: 20px;
    text-align: center;
}

.text-column img {
    width: 100px;
    height: 100px !important;
    margin-bottom: 25px !important;
    margin: 0 auto;
}

#overlay-line {
    position: absolute;
    z-index: 111;
    margin-left: calc(-50vw + var(--scroll-bar-w)/ 2);
    left: 50%;
    width: calc(100vw - var(--scroll-bar-w));
    top: calc(100svh - var(--line-height) * 0.069);
}

@media (min-width: 1000px) {
    #overlay-line {
        top: calc(100svh - var(--line-height) * 0.11);
    }
}

#overlay-line col {
    max-height: 100% !important;
}

div:has(> #line) {
    display: flex;
    justify-content: center;
    width: 100%;
}

#line {
    max-height: 3500px;
    min-width: 750px;
}

#main-row .col {
    z-index: 9999;
}

#main-row .col .row-bg-wrap {
    background-color: transparent;
}

#main-row .row-bg-wrap {
    background-color: #1f1e1e;
}

.dealer-link {
    display: block;
    text-align: center;
    padding: 400px 0;
    width: 100%;
    color: white;
    font-size: 60px;
    position: relative;
}

.dealer-link.first {
    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;
}

.dealer-link.last {
    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="%23ffa500" 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;
}

.dealer-link span {
    position: relative;
}

.dealer-link span:after {
    content: '';

    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0px;

    border-width: 0 0 4px;
    border-style: solid;
}

#contact-form-row {
    height: calc(var(--line-height) * 0.36);
    margin-bottom: calc(var(--line-height) * 0.18);
}

@media (min-width: 1000px) {
    #contact-form-row {
        height: calc(var(--line-height) * 0.485);
        margin-bottom: calc(var(--line-height) * 0.18);
    }
}

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

#contact-link {
    border-radius: 50vh !important;
    padding: 10px 20px;
    text-transform: uppercase;
    background-color: white;
    color: var(--nectar-extra-color-1);
    display: block;
    width: fit-content;
    margin: 0 auto;
    font-weight: 600;
    font-family: 'Open Sans';
    padding: 15px 22px !important;
}

#contact-link:hover {
    opacity: 0.85;
}

#reviews-row * {
    color: var(--nectar-extra-color-1);
}