body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

body > header {
    text-align: center;
    padding: 2rem 0;
}

.content-wrap {
    max-width: 100rem;
    margin-inline: auto;
}

h1, .h1 {
    font-size: 8rem;
    color: #464545;
    margin: 0;
    text-transform: uppercase;
    font-weight: 900;
}
a,
a:hover,
a:active,
a:focus {
   text-decoration: none;
}
h1 a:hover,
h1 a:active,
h1 a:focus,
h1 a:visited {
   color: #464545;
}

h2, .h2 {
    color: #63A51E;
    font-size: 2.8rem;
    text-transform: uppercase;
    margin: 0;
    font-weight: 500;
}

h1, h2 {
    line-height: 1;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    margin-top: 0;
    position: relative;
    margin-bottom: 25%;
}

.grid-item {
    position: relative;
    background-color: #e0e0e0;
}

.grid-item img {
    width: 100%;
    height: 100%;
}

.overlay {
    position: absolute;
    bottom: -55%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background-color: rgba(255, 255, 255, 1);
    padding: 2rem;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-radius: 15px;
    
}

.overlay header {
    height: 5rem;
    margin-bottom: 2rem;
}

.overlay h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #464545;
}

.overlay p {
    text-align: left;
    font-size: 1.2rem;
    color: #777;
    margin-bottom: 1rem;
    height: 13rem;
}

.overlay img {
    display: inline;
    width: auto;
    max-width: 100%;
    height: 100%;
}




.btn {
    display: block;
    margin-top: 1rem;
    padding: 20px 1.5rem;
    background-color: #64A51C;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.188rem;
    text-transform: uppercase;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: all 300ms ease-in-out;
}
.btn:hover {
    background-color: #519817;
}

.subpages {
    margin-top: 4rem;
    min-height: 100%;
}
.subpages .imprint,
.subpages .legal {
    margin-top: 6rem;
    margin-bottom: 6rem;
}
.subpages .imprint > div {
    margin-bottom: 2rem;
}
.subpages .imprint > div:last-of-type {
    margin-bottom: 0;
}
.subpages .legal > article {
    margin-bottom: 2rem;
}
.subpages .legal > article:last-of-type {
    margin-bottom: 0;
}


footer {
    text-align: center;
    padding: 2rem 0;
    background-color: #464545;
    color: #fff;
    margin-top: 4rem;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 1rem;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile Responsive Styling */
@media (max-width: 1700px) {
    .imprint, .legal {
        padding-inline: 2rem;
    }
}
@media (max-width: 1500px) {
    h1, .h1 {
        font-size: 6.5rem;
        color: #464545;
        margin: 0;
        text-transform: uppercase;
        font-weight: 700;
    }
    h2, .h2 {
        color: #63A51E;
        font-size: 2.4rem;
        text-transform: uppercase;
        margin: 0;
        font-weight: 500;
    }
    .overlay p {
        text-align: left;
        font-size: 1.1rem;
        color: #777;
        margin-bottom: 1rem;
        height: 13rem;
    }
}
@media (max-width: 1300px) {
    h1, .h1 {
        font-size: 4rem;
        color: #464545;
        margin: 0;
        text-transform: uppercase;
        font-weight: 700;
    }
    
    h2, .h2 {
        color: #63A51E;
        font-size: 1.5rem;
        text-transform: uppercase;
        margin: 0;
        font-weight: 500;
    }
    
    .grid-container {
        margin-top: 2rem;
        margin-bottom: 20rem;
    }
    .overlay {
        position: absolute;
        bottom: -40%;
        left: 50%;
        transform: translateX(-50%);
        width: 70%;
        background-color: rgba(255, 255, 255, 1);
        padding: 2rem;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        border-radius: 15px;
    }
    .overlay p {
        text-align: left;
        font-size: 1rem;
        color: #777;
        margin-bottom: 1rem;
        height: 13rem;
    }
}
@media (max-width: 1100px) {
    .grid-container {
        padding-top: 0;
        margin-top: 0;
        margin-bottom: 20rem;
    }
    .overlay {
        position: absolute;
        bottom: -80%;
        left: 50%;
        transform: translateX(-50%);
        width: 70%;
        background-color: rgba(255, 255, 255, 1);
        padding: 2rem;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        border-radius: 15px;
    }
    .overlay header {
        height: 3rem;
        margin-bottom: 2rem;
    }
    .overlay p {
        text-align: left;
        font-size: 0.875rem;
        color: #777;
        margin-bottom: 1rem;
    }

    .btn {
        display: block;
        margin-top: 1rem;
        padding: 20px 1.5rem;
        background-color: #64A51C;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 0.8rem;
        text-transform: uppercase;
        text-decoration: none;
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        transition: all 300ms ease-in-out;
    }
}
@media (max-width: 768px) {
    
    body > header {
        text-align: center;
        padding: 2rem;
    }
    .grid-container {
        grid-template-columns: 1fr;
        gap: 18rem;
        margin: 0 0 18rem;
    }

    .grid-item {
        padding: 0;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.2rem;
        line-height: 1.1;
        margin-bottom: 0.3rem;
    }

    .overlay {
        position: absolute;
        bottom: -60%;
        left: 50%;
        transform: translateX(-50%);
        width: 70%;
        background-color: rgba(255, 255, 255, 1);
        padding: 2rem;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        border-radius: 15px;
    }

    .overlay header {
        height: 3rem;
        margin-bottom: 1rem;
    }

    .overlay1 p {
        text-align: left;
        font-size: 0.875rem;
        color: #777;
        margin-bottom: 1rem;
        height: 10rem;
    }
    .overlay2 p {
        text-align: left;
        font-size: 0.875rem;
        color: #777;
        margin-bottom: 1rem;
        height: 10rem;
    }
    .overlay3 p {
        text-align: left;
        font-size: 0.875rem;
        color: #777;
        margin-bottom: 1rem;
        height: 10rem;
    }

    /* .overlay {
        bottom: -10%;
    } */

    .btn {
        margin-top: 1rem;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .subpages .imprint, .subpages .legal {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}