body, html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.desktop-only, .mobile-only {
    display: none;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

header {
    background-image: url('bilder/header-hintergrundbild.webp');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    width: 100%;
}



/* Für Desktop anzeigen (Bildschirmbreite über 768px) */
@media (min-width: 769px) {
    .desktop-only {
        display: block; /* Desktop-Inhalt anzeigen */
        width: 100%;
    }
    .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 40px;
        margin-top: -17%;
        padding-top: 10%;
    }
    
    .logo {
        justify-content: flex-start;
    }

    .logo img {
        height: 416px;
        max-width: 100%;
        margin-left: -30%;
    }
    
    nav {
        justify-content: flex-end;
    }
    
    nav ul {
        list-style: none;
        display: flex;
        gap: 30px;
        padding: 0;
        margin: 0;
    }
    
    nav ul li a {
        text-decoration: none;
        color: rgba(255, 255, 255, 0.966);
        box-shadow: #ffffff;
        font-size: 18px;
        font-weight: bold;
    }
    
    nav ul li a:hover {
        color: gray;
    }
}

/* Für Mobilgeräte anzeigen (Bildschirmbreite bis 768px) */
@media (max-width: 768px) {
    .mobile-only {
        display: block; /* Mobile-Inhalt anzeigen */
        width: 100%; /* Volle Breite nutzen */
    }
    

    .container-mobile {
        display: flex;
        flex-direction: column; /* Alles untereinander anordnen */
        align-items: center; /* Zentriere den Inhalt */
        padding: 5px;
    }

    .logo-mobile img {
        width: 500px; /* Passe die Logo-Größe an */
        margin-top: -20%;
        margin-bottom: -60px; /* Abstand unter dem Logo */
    }

    nav ul {
        list-style: none; /* Entfernt Aufzählungszeichen */
        padding: 0;
        margin: 0;
        text-align: center; /* Text zentrieren */
    }

    nav ul li {
        margin: 15px 0; /* Abstand zwischen den Links */
    }

    nav ul li a {
        text-decoration: none;
        color: rgb(255, 255, 255);
        font-size: 25px; /* Schriftgröße anpassen */
        font-weight: bold;
    }

    nav ul li a:hover {
        color: gray;
    }

}

/* Product Overview */
.product-overview {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.product-overview h1 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.product-item {
    width: calc(25% - 20px); /* Vier Produkte in einer Reihe */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-item h2 {
    font-size: 1.5em;
    margin: 15px 0;
}

.product-item .price {
    font-size: 1.3em;
    color: #007bff;
    margin-bottom: 15px;
}

.btn-buy {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-buy a {
    text-decoration: none;
    color: white;
}

.btn-buy:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-item {
        width: calc(50% - 20px); /* Zwei Produkte pro Reihe auf kleinen Bildschirmen */
    }
}

/* Footer */
footer {
    background-image: url('bilder/header-hintergrundbild.webp');
    background-size: cover;
    background-position: center;
    padding: 30px 15px; /* Weniger Padding für mobile Geräte */
    color: #000000;
    display: flex;
    flex-direction: column; /* Spaltenlayout für mobile Geräte */
    align-items: center;
    gap: 20px;
    width: 100%;
}

.footer-container {
    display: flex;
    flex-direction: column; /* Spaltenlayout für mobile Geräte */
    align-items: center;
    gap: 20px;
    width: 100%;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -6%;
}

.footer-left h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.social-icons a {
    margin-right: 10px;
    color: #000000;
    font-size: 18px;
    text-decoration: none;
}

.footer-right {
    display: flex;
    flex-direction: column; /* Spaltenlayout für mobile Geräte */
    align-items: center;
    width: 100%;
}

.footer-links, .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentrierte Inhalte */
    text-align: center; /* Zentrierte Texte */
}

.footer-links a {
    color: #000000;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 5px;
}

.footer-contact p, .footer-contact a {
    margin: 5px 0;
    text-decoration: none;
    color: #000000;
    font-weight: 400;
    font-size: 1em;
    line-height: 50%;
}

footer a:hover {
    text-decoration: underline;
}

/* Media Queries für Desktop und größere Bildschirme */
@media (min-width: 768px) {

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .newsletter-signup {
        padding: 60px 20px;
    }

    .gallery {
        padding: 40px 20px;
    }

    .contact-form {
        padding: 40px 20px;
        flex-direction: row;
    }

    .contact-info, .contact-form form {
        width: 50%;
    }

    footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-right {
        flex-direction: row;
        justify-content: space-between;
        width: 200px;
    }

    .footer-links, .footer-contact {
        align-items: flex-end;
        text-align: right;
    }
}

.flag-links{
    display: flex;
    justify-content: space-between;
    padding-right: 1%;
}


.product-grid a{
    text-decoration: none;
    color: black
}

.product-grid .btn-buy a{
    text-decoration: none;
    color: rgb(255, 255, 255)
}




/* Dropdown-Menu Style */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu li {
    padding: 10px;
}

.dropdown-menu li a {
    text-decoration: none;
    color: black;
    display: block;
}

.dropdown:hover .dropdown-menu {
    display: block;
}



/* Verstecke das Dropdown-Menü standardmäßig */
#mobile-language-menu {
    display: none;
    list-style: none;
    background-color: white;
    padding: 10px;
    border: 1px solid #ccc;
    position: relative; /* Im mobilen Modus positioniert */
}

/* Zeige das Dropdown-Menü an, wenn es aktiv ist */
#mobile-language-menu.active {
    display: block;
}

.dropdown-menu li {
    padding: 10px 0;
}

.dropdown-menu li a {
    text-decoration: none;
    color: black;
}

/* Desktop Styles (falls du das für den Desktop-Dropdown brauchst) */
.desktop-only .dropdown:hover .dropdown-menu {
    display: block;
}

