/* Standard (Desktop) */
.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);
    font-size: 30px;
    text-align: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}
p {
    margin: 0 0 20px 0;
}
a {
    text-decoration: none;
}
.intro h1 {
    font-family: "Ibarra Real Nova", serif;
    color: #3F0D12;
    font-size: 120px;
    font-weight: 600;
    margin: 0 0 34px 0;
}
.heading h1 {
    font-family: "Ibarra Real Nova", serif;
    color: #3F0D12;
    font-size: 100px;
    font-weight: 600;
    margin: 0 0 34px 0;
}
.container h1 {
    font-family: "Albert Sans", sans-serif;
    text-align: left;
    color: #3F0D12;
    font-size: 48px;
    font-weight: 600;
    margin: 0 0 34px 0;
}
.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 40px;
    grid-row-gap: 40px;
    padding: 40px;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}
.project {
    transition: transform 0.2s ease-in-out 0.06s;
}
.project img {
    width: 100%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: block;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.button {
    font-family: "Albert Sans";
    font-weight: 500;
    font-size: 16px;
    display: block;
    width: 100%;
    padding: 14px 20px;
    background-color: #ffffff;
    color: black;
    text-decoration: none;
    font-size: 16px;
    border: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}
.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.project:hover {
    transform: scale(1.05);
}
.container {
    width: 60%;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.container p {
    font-size: 16px;
    max-width: 1000px;
    line-height: 1.5;
    margin: 0 auto;
    padding: 20px;
    text-align: left;
}
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;
}
footer {
    margin-top: 40px;
    padding: 20px;
    font-size: 14px;
    background-color: transparent;
}

/* --- Media Queries für Tablets und Mobilgeräte --- */

/* Für Tablets (max. 768px) */
@media (max-width: 768px) {
    .projects {
        grid-template-columns: repeat(1, 1fr); /* Eine Spalte */
        padding: 20px;
    }

    .intro h1 {
        font-size: 80px; /* Kleinere Schrift für Tablets */
    }

    .heading h1 {
        font-size: 70px; /* Kleinere Schrift für Tablets */
    }

    .container h1 {
        font-size: 36px; /* Kleinere Überschrift */
    }

    body {
        font-size: 24px; /* Schriftgröße für Tablets */
    }

    .button {
        font-size: 14px; /* Kleinere Buttons */
    }
}

/* Für Smartphones (max. 480px) */
@media (max-width: 480px) {
    .projects {
        grid-template-columns: repeat(1, 1fr); /* Eine Spalte */
        padding: 10px;
    }

    .intro h1 {
        font-size: 56px; /* Noch kleinere Schrift für Smartphones */
        margin: 0 0 26px 0;
    }

    .heading h1 {
        font-size: 50px; /* Noch kleinere Schrift für Smartphones */
    }

    .container h1 {
        font-size: 28px; /* Noch kleinere Überschrift */
        padding-left: 20px;  /* Abstand links */
        padding-right: 20px; /* Abstand rechts */
    }

    body {
        font-size: 14px; /* Kleinere Schrift für Smartphones */
        padding-left: 20px;  /* Abstand links */
        padding-right: 20px; /* Abstand rechts */
        line-height: 1.5;
    }

    .button {
        font-size: 12px; /* Noch kleinere Buttons */
    }

    .container {
        width: 80%; /* Container breiter auf Smartphones */
        padding-left: 20px;  /* Abstand links */
        padding-right: 20px; /* Abstand rechts */
    }
}
