.space {
    height: 80px;
}
.space2 {
    height: 40px;
}
.space3 {
    height: 30px;
}

body {
    font-family: "Albert Sans", sans-serif;
    color: #3F0D12;
    background: linear-gradient(to bottom, #f0f5ef, #D6E4D3);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

a {
    width: 60%;
    max-width: 1200px;
    text-align: center;
    text-decoration: none;
}

h2 {
    font-family: "Albert Sans", sans-serif;
    color: #3F0D12;
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 40px 0;
}

button {
    font-family: "Albert Sans";
    font-weight: 700;
    font-size: 12px;
    padding: 10px 14px;
    background-color: #AC98FF;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
    margin: 0 0 30px 0;
}

.container h1 {
    font-family: "Albert Sans", sans-serif;
    color: #3F0D12;
    font-size: 72px;
    font-weight: 800;
    margin: 0 0 40px 0;
}

.container {
    width: 80%;
    max-width: 1000px;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.container p {
    font-size: 18px;
    text-align: left;
    line-height: 1.5;
    margin: 0 0 40px 0;
}

main .navigate p {
    font-family: "Albert Sans", sans-serif;
    font-weight: 500;
    font-size: 16px !important;
    color: black !important;
    text-decoration: none !important;
    padding: 20px 20px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.image-grid4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.image-grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.image-item {
    display: block;
    width: 100%;
    height: 100%; /* Stellt sicher, dass das Bild die Höhe des Containers ausfüllt */
    object-fit: cover; /* Bild bleibt rechteckig und wird zugeschnitten, um den Container auszufüllen */
    overflow: hidden;
    transition: transform 0.3s ease;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.image-item:hover {
    transform: scale(1.1);
}

footer {
    width: 60%;
    max-width: 1200px;
    text-align: center;
    margin: 40px auto 0 auto;
    margin-top: 40px;
    padding: 20px;
    font-size: 14px;
    background-color: transparent;
}

/* Responsive Styles */
@media only screen and (max-width: 768px) {
    .container {
        width: 85%;
        padding: 20px;
    }

    .container h1 {
        font-size: 48px;
        margin: 0 0 30px 0;
    }

    h2 {
        font-size: 24px;
    }

    .CTA {
        padding: 15px 50px;
        font-size: 18px;
    }

    button {
        padding: 10px 14px;
        font-size: 12px;
    }

    .image-grid,
    .image-grid3,
    .image-grid4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .image-item {
        width: 100%;
        height: auto;
    }

    footer {
        width: 100%;
    }
}

/* Mobile Styles (Smartphones) */
@media only screen and (max-width: 480px) {
    .container {
        width: 90%;
        padding: 20px;
    }

    .container h1 {
        font-size: 32px;
        margin: 0 0 30px 0;
    }

    h2 {
        font-size: 20px;
    }

    .CTA {
        padding: 10px 30px;
        font-size: 16px;
    }

    button {
        padding: 8px 12px;
        font-size: 10px;
    }

    .image-grid,
    .image-grid3,
    .image-grid4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .image-item {
        width: 100%;
        height: auto;
    }

    footer {
        width: 100%;
    }
}
