/* Allgemeine Einstellungen */
* {
    max-width: 1200px;
    align-items: center;    /* Zentrieren der Elemente */
    justify-content: center; /* Vertikal in der Mitte */
    margin: auto;
    padding: auto;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column; /* Elemente untereinander anordnen */
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    display: flex;
    flex-direction: column; /* Elemente untereinander anordnen */
    align-items: center;    /* Zentrieren der Elemente */
    justify-content: center; /* Vertikal in der Mitte */
    background-color: transparent; /* Hintergrundfarbe entfernen */
    padding: 20px;
    border-top: 1px solid #000; /* Dünner horizontaler Strich oben */
    border-bottom: 1px solid #000; /* Dünner horizontaler Strich unten */
}

/* Logo/Titel */
.site-title {
    position: relative;
}

.logo {
    max-width: 500px;
}

.logo-small {
    display: none;
}

@media (max-width: 600px) {
    .logo {
        display: none;
    }
    .logo-small {
        display: block;
        max-width: 80px;
    }
}

.site-title h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px; /* Abstand zwischen Titel und Navigation */
}

/* Navigation */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar ul li a {
    text-decoration: none;
    color: #000; /* Schwarze Farbe für Menü-Items */
}

/* Menüsymbol */
.menu-toggle {
    display: none; /* Standardmäßig ausgeblendet */
    cursor: pointer;
    font-size: 1.8em;
    color: #333;
}

/* Mobile Ansicht */
@media (max-width: 600px) {
    /* Header mit flexbox */
    header {
        display: flex;
        flex-direction: row; /* Header-Elemente horizontal anordnen */
        justify-content: space-between; /* Titel und Menü auf den gegenüberliegenden Seiten */
        align-items: center;
        padding: 10px 20px;
    }

    .site-title h1 {
        font-size: 2.2em;
        text-align: left; /* Titel nach links ausrichten */
        margin-bottom: 0; /* Kein Abstand nach unten */
        width: auto;
    }

    /* Menü ausblenden */
    .navbar ul {
        display: none; /* Menü ausblenden */
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #f8f8f8;
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    }

    .navbar ul.show {
        display: flex; /* Menü anzeigen */
    }

    /* Hamburger Menü */
    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 2em;
        color: #333;
    }
}

/* Hauptbereich für Rezepte */
main {
    display: flex;
    flex-direction: column; /* Elemente untereinander anordnen */
    align-items: center;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

/* Filter Section */
.filter-section {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    margin: 0 10px;
}

.filter-item label {
    margin-bottom: 5px;
}

.filter-item select,
.filter-item input {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

#recipes-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}
