html {
    --zlb-green: #2C8230;
}

body, h1, h2, h3, p, hr {
    margin: 0;
    margin-block: 0;
}

h2 {
    font-size: 40px;
    font-weight: 500;
}

h3 {
    color: var(--zlb-green);
    font-size: 30px;
    font-style: italic;
    font-weight: 500;
}

p {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.8;
}

a {
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    color: inherit;
}

.center {
    text-align: center;
}

.bold {
    font-weight: 500;
    opacity: 1;
}

.show-md {
    display: none;
    @media (min-width: 768px) {
        display: unset;
    }
}

.flexo {
    display: flex;
    align-items: flex-start;
    line-height: 1;
    font-size: 18px;
    gap: 5px;
    margin-bottom: 15px;

    span {
        opacity: 0.8;
    }

    svg {
        flex-shrink: 0;
        height: 18px;
        width: 25px;
    }
}

header {
    position: relative;
    height: 175vh;
    width: 100%;
    background-color: #91C072;
    background-image: url('./assets/gradient_mobile.png');
    background-size: cover;
    background-repeat: no-repeat;

    .header {
        position: absolute;
        top: 60px;
        left: 10px;
        right: 10px;
        display: flex;
        align-items: center;
    }

    .buttons {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .button {
        border: none;
        outline: none;
        font-size: 26px;
        background-color: rgba(44, 130, 48, 1);
        color: #fff;
        border-radius: 100px;
        display: inline-flex;
        padding: 10px 22px;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-decoration: none;
        line-height: 1;

        svg {
            height: 19px;
        }
    }

    .logo {
        position: fixed;
        max-width: 75vw;
        z-index: 1;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .balloons {
        position: absolute;
        top: 15vh;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url("./assets/balloons_mobile.png");
        background-size: 100%;
        background-repeat: no-repeat;
        z-index: 2;
    }

    .date {
        position: fixed;
        width: 75vw;
        z-index: 1;
        top: 70%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;

        hr.welle {
            border: none;
            background-image: url("./assets/trenner_mobile.png");
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            height: 9px;
        }

        h3 {
            z-index: 1;
            line-height: normal;
            margin: 18px 0;
        }
    }
}

main {
    background-color: white;
    position: relative;
    z-index: 2;
}

.container {
    padding: 45px 25px 70px;
    border-bottom: 1px solid rgba(30, 26, 27, 0.35);
    position: relative;

    h2 {
        text-align: center;
        padding: 0 0 30px;
    }

    h3 {
        padding: 30px 0;
    }

    .programm {
        .tag {
            padding: 50px 0 0;

            .programmpunkt {
                margin: 10px -10px;
                background-color: rgba(220, 225, 159, 0.4);
                box-shadow: 1px 3px 3px 0 rgba(30, 26, 27, 0.35);
                padding: 15px;

                h3 {
                    color: #69AF47;
                    font-size: 30px;
                    font-style: italic;
                    font-weight: 500;
                    line-height: normal;
                    opacity: 0.9;
                    padding: 0;
                }
            }
        }
    }

    form {
        margin: 0 -10px 0;
        padding: 20px;
        background-color: rgba(220, 225, 159, 0.4);
        box-shadow: 1px 3px 3px 0 rgba(30, 26, 27, 0.35);

        li {
            font-size: 18px;
            opacity: 0.8;
        }

        input {
            &[type=text], &[type=email] {
                border: none;
                outline: none;
                padding: 12px 20px;
                margin: 0 -10px 10px;
                width: calc(100% - 20px);
                font-size: 26px;

                &::placeholder {
                    color: rgba(30, 26, 27, 1);
                }
            }
        }

        .checkbox {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            cursor: pointer;
            margin: 0 0 10px;
        }

        .checkbox span {
            display: block;
            font-size: 18px;
            opacity: 0.8;
        }

        .checkbox input[type="checkbox"] {
            appearance: none;
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 1px solid rgba(30, 26, 27, 1);
            display: inline-grid;
            place-content: center;
            flex-shrink: 0;
            cursor: pointer;
            margin: 5px 0 0;
        }

        .checkbox input[type="checkbox"]::before {
            content: "";
            width: 10px;
            height: 10px;
            border-radius: 50%;
            transform: scale(0);
            transition: transform 0.15s ease-in-out;
        }

        /* Checked State */

        .checkbox input[type="checkbox"]:checked {
            background: rgba(145, 192, 114, 1);
        }

        .checkbox input[type="checkbox"]:checked::before {
            transform: scale(1);
        }

        button {
            border: none;
            outline: none;
            padding: 10px 0;
            font-size: 26px;
            background-color: rgba(44, 130, 48, 1);
            color: #fff;
            width: 100%;
            border-radius: 100px;
            margin: 25px 0 15px;
        }
    }

    .form-success, .form-error {
        text-align: center;
    }
}

footer {
    position: relative;
    padding: 30px 0 50px;
    text-align: center;
    background-color: white;
    z-index: 2;

    a {
        text-decoration: none;
    }

    img {
        padding: 0 0 50px;
    }
}

@media (min-width: 768px) {
    h2 {
        font-size: 70px;
    }

    h3 {
        font-size: 40px;
    }

    p {
        font-size: 30px;
    }

    header {
        height: 175vh;
        background-image: url('./assets/gradient_desktop.png');
        background-size: cover;

        .header {
            position: fixed;
            top: 40px;
            left: 40px;
            right: 40px;
            z-index: 3;
            justify-content: space-between;
        }

        .backlink {
            display: flex;
            align-items: center;
            gap: 10px;
            line-height: 1;
            font-size: 20px;
            text-decoration: none;
            color: rgba(30, 26, 27, 1);

            svg {
                height: 17px;
                width: 25px;
            }
        }

        .buttons {
            justify-content: flex-end;
            gap: 25px;
            width: auto;
        }

        .button {
            font-size: 28px;
            padding: 8px 22px 11px;

            &:hover {
                cursor: pointer;
                background-color: rgba(145, 192, 114, 1);
                color: rgba(30, 26, 27, 1);
            }
        }

        .logo {
            max-width: 33%;
        }

        .balloons {
            background-image: url("./assets/balloons_desktop.png");
            top: 0;
        }

        .date {
            width: 30vw;
            top: 75%;

            hr.welle {
                background-image: url("./assets/trenner_desktop.png");
                height: 7px;
            }
        }
    }

    .flexo {
        font-size: 30px;
        justify-content: center;

        svg {
            height: 25px;
            width: 35px;
        }
    }

    .container {
        padding: 100px 15% 125px;
        @media (min-width: 1367px) {
            padding: 100px 20% 125px;
        }

        h2 {
            padding: 0 0 40px;
        }

        h3 {
            padding: 30px 0 40px;
        }

        .programm {
            .tag {
                .programmpunkt {
                    margin: 15px 0;

                    h3 {
                        font-size: 42px;
                    }
                }

                p {
                    font-size: 22px;
                }
            }
        }

        form {
            margin: 0;
            padding: 36px;
            position: relative;
            z-index: 3;

            li, p, .checkbox span {
                font-size: 22px;
            }

            input {
                &[type=text], &[type=email] {
                    margin: 0 0 10px;
                    width: calc(100% - 36px);
                }
            }

            button {
                width: 50%;
                font-size: 32px;
                margin: 50px 0 30px;

                &:hover {
                    cursor: pointer;
                    background-color: rgba(145, 192, 114, 1);
                    color: rgba(30, 26, 27, 1);
                }
            }

            .button {
                text-align: center;
            }
        }

        &.last {
            background-image: url("./assets/gradient_bottom.webp");
            background-repeat: no-repeat;
            background-position: bottom center;
            background-size: cover;        }
    }

    .letter {
        position: absolute;
        max-width: 15%;
    }

    .top_left {
        left: 0;
        top: 25%;
    }

    .top_right {
        right: 0;
        top: 50%;
    }

    .top_top_right {
        right: 0;
        top: 0;
    }

    .cut {
        right: 0;
        bottom: 25%;
        z-index: 1;
        max-width: 25%;
    }

    footer {
        padding: 25px 40px 35px;
        display: flex;
        align-items: center;

        img {
            padding: 0;
            order: 1;
            text-align: center;
        }

        .copyright {
            order: 0;
            flex: 1;
            text-align: left;
        }

        .link {
            order: 2;
            flex: 1;
            text-align: right;
        }
    }
}

body.gewerbe {
    header {
        height: 30vh;
        @media (min-width: 768px) {
            height: 50vh;

            .backlink {
                position: fixed;
                top: 30px;
                left: 30px;
                z-index: 3;
            }
        }

        .logo {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            max-width: 75vw;
        }
    }

    main {
        .container {
            max-width: 100%;

            .logos {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 20px;
                align-items: center;
                @media (min-width: 768px) {
                    grid-template-columns: 1fr 1fr 1fr;
                    gap: 40px;
                }
            }

            .logos a {
                display: block;
            }

            .logos img {
                width: 100%;
                height: auto;
                display: block;
            }
        }
    }
}