/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: #ffffff; /*fff8dc*/
    color: #333;
}

.wrapper {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

.side {
    width: 20%;
    background-color: #fff8dc;
}

.graphic {
    overflow: hidden;
    height: 100vh;
}

.side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

main {
    flex: 1;
    margin-top: -5vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 2.9rem;
    color: #e8a600; /* Gelb-orange */
    margin-bottom: 20px;
    text-align: center;
}

section {
    max-width: 700px;
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.2rem;
}

.link {
    display: block;
    margin-bottom: 30px;
    font-size: 1.4rem;
    line-height: 1.6rem;
    color: #d97b00;
}

footer {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    bottom: 20px;
    position: absolute;
}

.butterflies {
    width: 220px;
    position: absolute;
    top: 70px; /* or another value */
    left: -100px; /* center horizontally */
    z-index: 3; /* place behind text if needed */
    pointer-events: none;
}


@media (max-width: 1300px) {
    .butterflies {
        width: 160px;
        top: 90px;
        left: -60px;
    }
}

@media (max-width: 1200px) {
    .butterflies {
        width: 100px;
        top: 90px;
        left: -50px;
    }
}

@media (min-width: 900px) and (max-width: 1000px) {
    .butterflies {
        display: none;
    }
}


/* Responsive */
@media (max-width: 900px) {
    .butterflies {
        position: unset;
        padding-bottom: 10px;
    }

    .wrapper {
        flex-direction: column;
    }

    .side {
        display: none;
    }

    main {
        margin-top: 10px;
        padding: 20px 100px;
    }

    header h1 {
        font-size: 2.4rem;
        line-height: 2.6rem;
    }

    section {
        font-size: 1.1rem;
    }

    .cta {
        margin-bottom: 60px;
    }

    .cta p strong {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    main {
        padding: 20px 50px;
    }
}

@media (max-width: 450px) {
    main {
        padding: 20px 25px;
    }
}

/* ipad support: */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .wrapper {
        flex-direction: row;
    }

    .side {
        display: block;
        width: 15%;

        /* gradient fade */
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }

    .right {
        /*-webkit-mask-image: linear-gradient(to left, black 70%, transparent 100%);*/
        mask-image: linear-gradient(to left, black 70%, transparent 100%);
    }

    .left {
        /*-webkit-mask-image: linear-gradient(to right, black 70%, transparent 100%);*/
        mask-image: linear-gradient(to right, black 70%, transparent 100%);
    }

    main {
        padding: 40px 40px;
        margin-top: 0;
        align-items: center;
    }

    header h1 {
        font-size: 2.6rem;
    }

    section {
        font-size: 1.2rem;
        max-width: 600px;
    }

    .butterflies {
        width: 220px;
        position: unset;
        padding-bottom: 20px;
    }
}
