@font-face {
    font-family: 'Montserrat'; /* Name your font family */
    src: url('Montserrat/Montserrat-VariableFont_wght.ttf'); /* Locate the .ttf file within your directory*/
  }
  

body {
    margin: 0;
    font-family: Montserrat, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    min-height: 100vh;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 100%;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
    background-color: #fff;
    color: #333;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
}

.side-menu {
    position: fixed;
    top: 0;
    right: 0; /* Positioniert das Menü rechts */
    width: 250px;
    height: 100%;
    background-color: #333;
    padding: 2rem 1rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transform: translateX(100%); /* Menü startet außerhalb des Bildschirms */
    transition: transform 0.3s ease-in-out; /* Smooth Animation */
}

.side-menu.active {
    transform: translateX(0); /* Menü wird in den sichtbaren Bereich geschoben */
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}
.side-menu a {
    display: block;
    margin-bottom: 1rem;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.project-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: auto;
}

.project-card h3 {
    margin: 1rem;
}

.project-card p {
    margin: 0 1rem 1rem;
    color: #666;
}

main {
    flex-grow: 1; /* Das Hauptinhaltselement wächst, um den verbleibenden Platz zu füllen */
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
    width: auto;
    margin-top: auto; /* Stellt sicher, dass der Footer am Ende des Containers bleibt */
}

@media (max-width: 768px) {
    nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}
a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
    color: gray; 
}
