body {
    background-image: url("img/Webseite_Hintergrund_10.jpg");
    background-size: cover;
    display: flex;              /* Wichtig für den Footer */
    flex-direction: column;
    min-height: 100vh;
    margin: 0;

    font-family: Arial, sans-serif;
}

#PHP { color: red;

}
 
main {
    flex: 1; /* Füllt den gesamten restlichen Bildschrim wichitg für den footer */
}   

header {
    width: 100%; /* Setzt den Header über die kommplete Breite*/
    max-width: 1920px; /* Setzt die maximale Breite 1920px */
    margin: 0 auto; /*Setzt sie Margin für oben und unten auf 0 und für die Seiten automatisch*/;
    padding: 0;
}

header a img {
    display: block;
    width: 100%;
    max-width: 1920px; /* Stellt sicher das das Bild nicht größer wird als sich selber*/
    height: auto;

}

nav {
    width: 100% ;
    text-align: center;
    background-color: grey;
    justify-content: center;
}

.nav-item {
    font-size: 25px;
    padding: 10px;
    text-align: center;
    overflow: visible;
}

.nav-item a {
    color: white;
    text-align: center;
    padding: 10px;
    text-decoration: none;
}

.nav-item a:hover,
.nav-item a:focus { /* :hover ist für die Maus :focous ist für z.B die Tab-Taste */
    background-color: darkgray;
}


section {

    margin: 8px;
}

h1#products{
    font-size: 35px;
    text-align: center;
}

.product_catergorie {
    background-color: rgba(236, 232, 232, 0.5);
    border: 2px solid rgb(49, 42, 42);

    border-radius: 10px;
    margin: 10px auto;
    padding: 10px;

}

.product_catergorie h1{
    color: #06660b;
    text-align: center;
    font-size: 40px;
}


.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Erstellt in der möglichen Breite soviele Splaten wie möglich mit einer minmalen größe von 150px bis 1fr(Gesamt breite des berechneten Container) */
    gap: 20px;
    margin: 20px 0;
}

.product-card {
    border: 1px solid #ccc;
    border-radius: 8px; /* Gerundete Ecken */
    padding: 10px;
    text-align: center;
    background-color: #fff;
    overflow: auto;
}

.product-card a {
    text-decoration: none;
}

.product-card a img {
    width: 100px;
    height: 150px;
    object-fit: cover;
    
}


.product-card a h2 {
    margin: 10px 0;
    color: #000000;
}

.product-card a p {
    color: #666;
    font-weight: bold;
    
}

.product-card h1 {
    color: #4CAF50;
}

.background {
    background-color: rgba(120, 120, 120, 0.5);
    border: 2px solid rgb(50, 50, 50);
    border-radius: 10px;
}
.section-container {
    max-width: 1920px;
    margin-left: 20px;
    padding: 5px;
    width: 70%;
}


footer {
    background-color: #333;
    color: white;
    text-align: center;
    width: 100%;
    margin-top: auto;
    padding: 10px 0 ;
}



/* Media Quere für Screens über 600px */

/* Wenn der Bildschrim gößer ist als 601px wird das Nav-Menu neben anstattat untereinander angezeigt */
@media only screen and (min-width:601px) {
    nav { 
        display: flex;
    }


    footer {
        position: relative;
    }
}

/* Media Quere für Screens bis 600px */ 
@media only screen and (max-width:600px) {
    .nav-item {
        text-align: center;
    }


    footer {
        position: relative;
    }

    .section-container {
        text-align: center;
        margin: 10px auto; /* Zentirert Text auf kleinen Geräten */
        width: 90%;
    }
}

/* Dunkle Navigationsleiste auf Android */
@media screen and (max-width: 768px) {
    body {
        background-color: black; /* Hintergrundfarbe des Body */
    }
    
    /* Nutze die env()-Funktion, um den sicheren Bereich zu handhaben */
    body::after {
        content: "";
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: env(safe-area-inset-bottom);
        background-color: black; /* Farbe der Navigationsleiste */
    }
}