/* General */
:root {
    --yellow: rgb(232, 214, 89);
    --darker-grey: #222;
    --dark-grey: rgb(140, 140, 140);
    --grey: rgb(217, 216, 214);
    --light-grey: #dee2e6;
    --turquoise: rgb(163, 211, 213);
    --turquoise-dark: rgb(122, 158, 160);
    --turquoise-dark2: rgb(92, 118, 120);
}

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

html,
body {
    font-size: 1rem;
    font-family: "BasisGrotesque", sans-serif;
}

a {
    color: var(--turquoise-dark);
    text-decoration: none;
    transition: color 0.2s ease;

    &:hover,
    &:visited {
        color: var(--turquoise-dark2);
    }
}

img {
    max-width: 100%;
}

altcha-widget {
    margin: 1rem;
}

.img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;

    img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        max-height: 70dvh;
        min-height: 100%;
    }
}

ul {
    list-style-type: none;
}

.content {
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
}

/* Helpers */
.font-yellow {
    color: var(--yellow);
}
.font-turquoise {
    color: var(--turquoise);
}
.font-turquoise-dark {
    color: var(--turquoise-dark);
}

.btn {
    background-color: unset;
    padding: .5em .7em;
    color: black;
    border: 1px solid black;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 300ms;

    &:hover {
        background-color: var(--turquoise-dark);
        color: white !important;
    }

    &.btn-white {
        color: white;
        border-color: white;
    }

    &.btn-large {
        font-size: 1.25rem;
    }
}

.nope {
    display: none !important;
}

/* Sections */
nav {
    padding: 1rem;

    .content {
        max-width: 1800px;
        width: 95%;
        height: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        align-items: center;
        justify-items: center;
        gap: 1rem;
        padding: 1rem 0;

        a {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;

            img {
                max-height: 3rem;
            }
        }
    }
}

#hero {
    background-color: black;
    color: white;
    max-height: 70dvh;
    overflow: hidden;

    .content {
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    #hero-text {
        padding: 2rem 0;
        width: 90%;
        margin: 0 auto;
        font-size: clamp(1rem, 1.1vw, 1.5rem);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 3rem;

        @media (min-width: 50rem) {
            width: 100%;
            padding: 3rem;
        }

        @media (min-width: 90rem) {
            width: 100%;
            padding: 7rem;
        }
    }

    @media screen and (min-width: 50rem) {
        .content {
            max-width: 160rem;
            display: grid;
            grid-template-columns: 40% 60%;
            grid-template-rows: auto;
            grid-template-areas:
                "text img";

            #hero-text {
                grid-area: text;
            }

            .img-wrapper {
                grid-area: img;
            }
        }
    }
}

#countdown {
    .content {
        width: 95%;

        @media screen and (min-width: 35rem) {
            width: 80%;
        }
    }

    #countdown-timer {
        font-size: clamp(1rem, 5vw, 2rem);
        text-align: center;
        padding: 3rem 0;
        font-family: monospace;
        display: grid;
        grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
        grid-template-rows: auto auto;
        row-gap: .5rem;
        grid-template-areas:
            "days cl-days hours cl-hours minutes cl-minutes seconds"
            "label-days . label-hours . label-minutes . label-seconds";

        #cd-days {
            grid-area: days;
        }
        #colon-days {
            grid-area: cl-days;
        }
        #cd-hours {
            grid-area: hours;
        }
        #colon-hours {
            grid-area: cl-hours;
        }
        #cd-minutes {
            grid-area: minutes;
        }
        #colon-minutes {
            grid-area: cl-minutes;
        }
        #cd-seconds {
            grid-area: seconds;
        }
        #cd-label-days {
            grid-area: label-days;
        }
        #cd-label-hours {
            grid-area: label-hours;
        }
        #cd-label-minutes {
            grid-area: label-minutes;
        }
        #cd-label-seconds {
            grid-area: label-seconds;
        }

        .digit {
            background-color: var(--darker-grey);
            color: white;
            padding: 0 .2em;
        }

        .cd-label {
            font-size: clamp(0.5rem, 2vw, 1rem);
        }
    }
}

#g6-highlights {
    background-color: var(--grey);

    .content {
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    #g6-highlights-text {
        padding: 2rem 0;
        width: 90%;
        margin: 0 auto;
        font-size: clamp(1rem, 1.1vw, 1.5rem);

        h2 {
            padding-bottom: 1rem;
        }

        ul {
            padding: 0 2rem 2rem 2rem;
            list-style-type: disc;
            line-height: 1.6;
        }

        .btn-container {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: stretch;
            gap: 1rem;
        }

        @media (min-width: 50rem) {
            width: 100%;
            padding: 3rem;
        }

        @media (min-width: 90rem) {
            width: 100%;
            padding: 5rem;
            .btn-container {
                flex-direction: row;
            }

        }
    }

    @media screen and (min-width: 50rem) {
        .content {
            max-width: 160rem;
            display: grid;
            grid-template-columns: 60% 40%;
            grid-template-rows: auto;
            grid-template-areas:
                "img text";

            #g6-highlights-text {
                grid-area: text;

                .btn-container {
                    align-items: flex-start;
                }
            }

            .img-wrapper {
                grid-area: img;

                img {
                    object-position: 20% 70%;
                }
            }
        }
    }
}

#raffle {
    background-color: var(--turquoise);
    padding: 4rem 0;

    .content {
        width: 100%;
    }

    h2 {
        padding-bottom: 4rem;
        text-align: center;
        font-size: 2rem;
        font-weight: 400;
    }

    #raffle-submitted,
    #raffle-over {
        text-align: center;
        font-weight: bold;
        font-size: 1.5rem;
    }

    form,
    #raffle-submitted,
    #raffle-over {
        background-color: white;
        padding: 2rem .8rem;
        box-shadow: 4px 5px 7px 2px #696969;

        fieldset label {
            cursor: pointer;
        }

        .error {
            input[type="text"],
            fieldset label {
                border-color: red;
            }

            .input-error {
                color: red;
                padding-top: .5rem;
            }
        }

        .form-group {
            padding-bottom: 1rem;
            width: 100%;

            label input,
            .input-group input {
                margin-top: .5rem;
            }

            fieldset {
                label input,
                .input-group input {
                    margin-top: 0;
                }
            }
        }

        #terms-accepted-group {
            margin-top: 3rem;
        }

        .input-group.optional {
            display: grid;
            grid-template-columns: 1fr auto;
            grid-template-rows: auto auto;
            grid-template-areas:
                "label info"
                "input input";

            label {
                grid-area: label;
            }

            .form-optional {
                grid-area: info;
            }

            input {
                grid-area: input;
            }
        }

        fieldset {
            border: none;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: stretch;
            gap: .5rem;

            &.optional {
                legend {
                    width: 100%;
                    display: flex;
                    flex-direction: row;
                    justify-content: space-between;
                    align-items: center;
                    gap: 1rem;
                }
            }

            .options {
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                align-items: stretch;
                gap: .5rem;
                margin-top: .5rem;

                .input-group {
                    width: 100%;
                }
            }

            .input-group {
                border: 1px solid var(--light-grey);
                border-radius: .5em;
                padding: 1rem;
                display: flex;
                flex-direction: row;
                justify-content: flex-start;
                align-items: center;
                gap: .5rem;

                &.newsletter {
                    flex-direction: column;
                    align-items: start;
                }
            }

            &.fieldset-cols {
                .options {
                    @media screen and (min-width: 50rem) {
                        display: grid;
                        grid-template-columns: 1fr 1fr;
                        grid-template-rows: auto auto;
                        gap: .5rem;
                        grid-template-areas:
                        "legend legend"
                        "option1 option2";

                        legend {
                            grid-area: legend;
                        }

                        .option-1 {
                            grid-area: option1;
                        }

                        .option-2 {
                            grid-area: option2;
                        }
                    }
                }
            }
        }

        input[type="text"] {
            padding: .5em;
            width: 100%;
            border-radius: .5em;
            border: 1px solid var(--light-grey);
        }

        .legal-notice {
            padding: 1rem 0;
        }

        button[type="submit"] {
            width: 100%;
        }
    }

    #raffle-headline {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .invisble-mobile {
        display: none;
    }

    @media screen and (min-width: 50rem) {
        .invisble-mobile {
            display: block;
        }

        #raffle-headline {
            padding-left: 0;
            padding-right: 0;
        }

        .content {
            width: 80%;
        }

        form {
            padding: 2rem;

            .form-compound {
                display: flex;
                align-items: flex-start;
                justify-content: space-between;
                gap: .5rem;
            }
        }
    }
}

#energy-info {
    font-size: .6rem;
    padding: 2rem 0;
    line-height: 1.5;

    .efficiency-class-green {
        display: inline-flex;
        align-items: center;
        background-color: #00a650;
        padding: 2px 4px;
        position: relative;
        width: fit-content;
        color: white;
    }

    .efficiency-class-green::after {
        content: "";
        position: absolute;
        top: 0;
        left: 100%;
        width: 0;
        height: 0;
        border-top: 9px solid transparent;
        border-bottom: 0.6rem solid transparent;
        border-left: 10px solid #00a650;
    }
}

footer {
    font-size: 0.75rem;
    #footer-main {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 1rem;

        .content {
            max-width: 1200px;
            width: 95%;
        }

        .footer-list-wrapper {
            width: fit-content;
        }

        h3 {
            padding-bottom: .5rem;
            color: var(--dark-grey);
        }

        a {
            color: black;
            text-decoration: none;

            &:hover {
                text-decoration: underline;
            }
        }

        ul {
            li {
                padding-bottom: .5rem;
            }
        }

        #footer-address {
            color: white;

            h3 {
                color: white;
            }
        }

        #footer-socials {
            ul {
                display: flex;
                flex-direction: row;
                justify-content: flex-start;
                align-items: flex-start;
                gap: 1rem;

                li {
                    padding-bottom: 0;
                }
            }

            a {
                i {
                    font-size: 2rem;
                }
            }
        }

        @media screen and (min-width: 50rem) {
            .content {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                grid-template-rows: auto auto;
                gap: .5rem;
                grid-template-areas:
                    "models discover services"
                    ". . socials";

                #footer-models {
                    grid-area: models;
                }

                #footer-discover {
                    grid-area: discover;
                    justify-self: center;
                }

                #footer-services {
                    grid-area: services;
                    justify-self: end;
                }

                #footer-socials {
                    grid-area: socials;
                    align-self: end;
                    justify-self: end;
                }
            }
        }
    }

    #footer-legal {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        border-top: 1px solid var(--grey);
        color: var(--turquoise-dark);

        .content {
            max-width: 1200px;
            width: 95%;
        }

        ul {
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
            align-items: center;
            gap: 1rem;
        }

        a {
            text-decoration: none;
        }

        #rights-reserved {
            color: rgba(0,0,0,.3);
            text-transform: uppercase;
        }

        @media screen and (min-width: 40rem) {
            flex-direction: row;
        }
    }
}

#imprint {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;

    main {
        flex-grow: 1;
    }
}