@font-face {
    font-family: "Trueno";
    src: url("assets/fonts/Trueno/TruenoRg.otf") format("opentype");
}

@font-face {
    font-family: "Trueno";
    font-weight: bold;
    src: url("assets/fonts/Trueno/TruenoBd.otf") format("opentype");
}

:root {
    --clr-dark-green: #459896;
    --clr-neon-green: #88F298;
    --clr-neon-green-hover: #befac7;
    --clr-dark-blue: #013440; 
    --clr-light: #ffffff;  
    --clr-light-gray: #E7E5E5;
    --clr-gray: #CBCBCB;
    --ff-title: "Trueno", "Arial", sans-serif;
    --ff-body: "neue-haas-grotesk-text", "Arial", sans-serif;
}

*,
*::after,
*::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    max-width: 100%;
    position: relative;
    font-family: var(--ff-body);
    color: var(--clr-dark-blue);
    line-height: 1.3;
}

img {
    width: 100%;
    border-radius: 1rem;
}

a {
    text-decoration: none;
}

.logo {
    display: none;
}

.container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.container--grid {
    display: grid;
    gap: 1rem;
}

.section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--clr-light-gray);
}

.section-title {
    font-family: var(--ff-title);
    line-height: 1.2;
}

.cta-button {
    width: 100%;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    padding: .75rem 1rem;
    font-weight: bold;
    text-align: center;
    color: var(--clr-dark-blue);
    background-color: var(--clr-neon-green);
    border-radius: 100vw;
    white-space: nowrap;
    transition: ease-in-out;
}

.cta-button:hover {
    background-color: var(--clr-neon-green-hover);
    transition: ease-in-out;
}

.cta-button--products {
    width: auto;
    font-size: 0.9rem;
    padding: .5rem .75rem;
}

/* === HERO SECTION === */

.section--hero {
    padding: 0 0 4rem 0;
    color: var(--clr-light);
    background-color: var(--clr-dark-blue);
    position: relative;
    z-index: 20; /* Zum Überdecken des Sticky CTA Banners */
}

.hero-image {
    border-radius: 0;
}

.hero-image--desktop {
    display: none;
}

.hero-title {
    margin-top: 1rem;
    font-family: var(--ff-title);
    line-height: 1.4;
}

.hero-cta {
    margin-top: 2rem;
    margin-left: 0;
    margin-right: 0;
}

.hero-cta-description {
    margin-top: -.5rem;
    font-size: .8rem;
    text-align: center;
}

.hero-social-proof {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.hero-social-proof__item {
    display: flex;
    gap: 1rem;
}

/* === BENEFITS === */

.section--benefits .container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.benefit-item__copy {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.benefit-item__image {
    border-radius: 1rem;
}

.benefit-item__title-container {
    margin-bottom: .75rem;
}

.benefit-item__title {
    margin: .25rem 0;
    font-size: 1.2rem;
    line-height: 1.1;
}

.benefit-item__description {
    display: flex;
    gap: 1rem;
}

/* === SOCIAL PROOF === */

.section--social-proof {
    overflow-x: hidden;
}

/* === ROADMAP === */

.section--roadmap .section-title {
    margin-bottom: 1rem;
}

.roadmap-item__label {
    font-size: 1.2rem;
}

.section--roadmap a {
    text-decoration: underline;
    color: var(--clr-dark-green);
}

.roadmap-item__copy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* === FAQ === */

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
}

.faq-question {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.faq-arrow {
    min-width: 18px;
    transition: transform 0.3s ease;
    margin-right: 1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Max height anpassen je nach Antwortlänge */
    opacity: 1;
    margin-top: 1rem;
}

.faq-item.active .faq-question {
    font-weight: bold;
}

/* === PRODUCT SELECTION === */

.section--products .section-title,
.section--social-proof .section-title {
    margin-bottom: 2rem;
}

.card {
    background-color: transparent;
    border-radius: 1rem;
}

.card--garage {
    height: 100%;
    padding: 1.5rem 2rem 2rem 2rem;
    text-align: center;
    background-size: cover;
    background-position: center center;
}

.card__title {
    font-size: 1.2rem;
}

.card__cost {
    font-weight: bold;
}

.card__image-container {
    position: absolute;
    top: -50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    margin: 0 auto;
    z-index: 1;
}

.card__image {
    overflow: hidden;
}

.card--garage__top,
.card--garage__bottom {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.card--garage__top {
    margin-bottom: 40vw;
}

.card--einzelgarage {
    background-image: url(./assets/images/start--einzelgarage.webp);
}

.card--doppelgarage {
    background-image: url(./assets/images/start--doppelgarage.webp);
}

.card--grossraumgarage {
    background-image: url(./assets/images/start--grossraumgarage.webp);
}

.card--hochraumgarage {
    background-image: url(./assets/images/start--hochraumgarage.webp);
}

/* === FINAL CTA === */

.section--final-cta {
    color: var(--clr-light);
    background-color: var(--clr-dark-blue);
    position: relative;
    z-index: 20;
}

.section--final-cta .cta-button {
    margin-top: 1rem;
    margin-left: 0;
}

.final-cta__copy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* === STICKY NAV === */

.sticky-cta {
    width: 100%;
    padding: .75rem 0;
    position: fixed;
    bottom: 0;
    background-color: var(--clr-dark-blue);
    z-index: 10;
}

.sticky-cta .container,
.sticky-cta--top .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.sticky-cta--top .container {
    justify-content: center;
    text-align: center;
}

.sticky-cta .sticky-cta-description {
    color: var(--clr-light);
    display: none;
}

.sticky-cta--top {
    display: none;
    width: 100%;
    padding: .6rem 0;
    position: fixed;
    top: 0;
    background-color: var(--clr-dark-green);
    z-index: 100;
    color: var(--clr-light);
    font-weight: bold;
}

/* === FOOTER === */

.footer {
    padding: 1rem 0;
    background-color: var(--clr-light);
    position: relative;
    z-index: 20;
}

.footer-link {
    text-align: right;
    color: var(--clr-dark-blue);
    font-size: .75em;
}

.footer .container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 1rem;
}

/* === MEDIA QUERIES === */

@media (min-width: 600px) {
    body {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    .hero-cta-description {
        font-size: .9rem;
    }

    .benefit-item__title,
    .card__title {
        font-size: 1.4rem;
    }

    .benefit-item__description__icon-container {
        margin-top: -.4rem;
    }

    .benefit-item__description__icon {
        border: 1px solid var(--clr-dark-green);
    }

    .sticky-cta {
        padding: 1rem 0;
    }
}

@media (min-width: 800px) {
    .hero-cta {
        margin-left: 0;
        margin-right: auto;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.25;
    }

    .hero-cta-description {
        margin-left: 2rem;
        font-size: .9rem;
        text-align: left;
    }

    .benefit-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }

    .benefit-item--reverse {
        flex-direction: row-reverse;
    }

    .benefit-item__image-container {
        width: 50%;
    }

    .benefit-item__copy {
        width: 50%;
    }

    .section--roadmap .container,
    .section--final-cta .container {
        flex-direction: row-reverse;
    }

    .roadmap-item__copy,
    .final-cta__copy {
        width: 50%;
    }

    .roadmap-item__image-container,
    .final-cta__image-container {
        width: 50%;
    }

    .section--final-cta .cta-button {
        font-size: 1rem;
    }
    
    .container--grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card--garage__top {
        margin-bottom: 20vw;
    }

    .card {
        font-size: 1.1rem;
    }

}

@media (min-width: 1000px) {
    .logo {
        width: 5rem;
        margin-bottom: 1rem;
        display: block;
    }

    .cta-button {
        width: auto;
    }

    .hero-description,
    .hero-social-proof__label,
    .hero-cta {
        font-size: 1rem;
    }

    .hero-cta-description {
        margin-left: 1.3rem;
        font-size: .8rem;
    }

    .hero-image--mobile {
        display: none;
    }

    .hero-image--desktop {
        display: block;
        object-fit: cover;
    }

    .section--hero {
        display: flex;
        padding: 0;
        flex-direction: row-reverse;
        justify-content: space-between;
        /* align-items: stretch; */
    }

    .hero-image-container {
        width: 50%;
        position: relative;
        flex: 1;
        overflow: hidden;
        max-height: 650px;
    }
    
    .hero-image--desktop {
        display: block;
        height: 100%;
        width: 100%; /* Verhindert horizontale Verzerrung */
        object-fit: cover; /* Zuschneiden für die beste Anpassung */
    }

    .section--pain-point .container {
        max-width: 800px;
        text-align: center;
        gap: 2rem;
    }

    .section--hero .container {
        margin-top: auto;
        margin-bottom: auto;
        width: 50%;
        padding: 2rem 0 4rem 5%;
    }

    .sticky-cta .sticky-cta-description {
        display: block;
    }

    .sticky-cta,
    .sticky-cta--top {
        font-size: 1rem;
    }
}

@media (min-width: 1300px) {
    .container {
        width: 70%;
    }

    .section--hero {
        height: 100vh;
        border-bottom: none;
    }

    .section--hero .container {
        padding: 1rem 0 4rem 15%;
    }

    .hero-image-container {
        width: 40%;
        position: relative;
        flex: 1;
        overflow: hidden;
        max-height: 100%;
    }

    .logo {
        width: 6rem;
        position: absolute;
        top: 2vh;
        left: 15%;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-description,
    .hero-social-proof__label {
        font-size: 1.2rem;
    }

    .section--roadmap .container,
    .section--final-cta .container {
        align-items: center;
        gap: 4rem;
    }
}

@media (min-width: 1920px) {
    .section--hero .container {
        padding: 0 0 0 15%;
    }

    .logo {
        width: 8rem;
    }

    .hero-title {
        font-size: 3.25rem;
        line-height: 1.15;
        text-transform: none;
    }

    .hero-description {
        margin-bottom: 4rem;
    }

    .section--hero .cta-button {
        font-size: 1.15rem;
    }

    .hero-cta-description {
        margin-left: 1.75rem;
        font-size: .9rem;
    }

    .benefit-item__title {
        font-size: 1.8rem;
    }

    .faq-answer {
        max-width: 60%;
    }
} 

