/* ===== GLOBAL ===== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2% 5%;
    font-size: x-large;
}

.titel {
    font-size: 20px;
    text-decoration: none;
    color: black;
    font-size: x-large;
}

.titel:hover {
    text-decoration: underline;
}

.main-nav-links {
    display: flex;
    gap: 25px;
}
/* Dropdown Menü */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Hover Effekt */
.dropdown:hover .dropdown-content {
    display: block;
    cursor: pointer;
}

.nav-links {
    text-decoration: none;
    color: black;
}

.nav-links:hover {
    text-decoration: underline;
    cursor: pointer;
}

.arrow-toggle {
    display: none;
}

.test {
    background-image: url("hintergrund-bild-neu.jpg");
    background-repeat: no-repeat;
    min-height: 905px;
    /* 🔥 Schräge unten rechts, steil nach oben */
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
}

/* ===== MAIN ===== */
.main {
    padding: 40px 5%;
    /*   background-image: url(../bilder/Allu/hintergrund-bild.jpeg);
    min-height: 1536px; */
}

.titel-produkte {
    text-align: center;
    margin-bottom: 40px;
}

/* ===== PRODUKTE ===== */
.alle-abteilungen {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(2, 50%);
    /* 2 nebeneinander */
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
/*  wenn alle 4 Produkte sind
.alle-abteilungen {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(4, 23.5%); 
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}
*/

/* Produktkarten */
.produkt {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* 🔥 gleiche Höhe */

    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 12px;

    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: white;

    height: 100%;
}

/* Bilder */
.produkt img {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    border-radius: 10px;

}

/* Überschrift */
.produkt h3 {
    text-align: center;
    font-size: x-large;
}

.produkt p {
    flex-grow: 1;
    /* 🔥 gleiche Höhe */
    font-size: x-large;
}

.modelle-container {
    display: flex;
    justify-content: space-between; /* links + rechts verteilt */
    margin-top: 20px;
}

/* Link */
.Modelle {
    color: black;
    text-decoration: none;
    font-size: x-large;
}

.Modelle:hover {
    text-decoration: underline;
}

/* ===== VORTEILE ===== */
.vorteile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 5%;
}

.vorteile-überschrift {
    text-align: center;
    font-size: xx-large;
}

.vorteile-inhalt {
    text-align: center;
    margin-top: 20px;
}

.vorteile-inhalt-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: x-large;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #333;
    color: white;
    padding: 30px 5%;
}

.inhalt-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-adresse p {
    margin: 0;
}

.infos-link a {
    display: block;
    text-decoration: none;
    color: white;
    margin-bottom: 5px;
}













/* 📱 TABLET */
@media (max-width: 1024px) {

    .alle-abteilungen {
        grid-template-columns: repeat(2, 48.5%);
        /* 👉 2 nebeneinander */
        gap: 7%;
    }

    .header {
        padding: 15px 5%;
    }

    .dropdown {
        display: none;
    }

    .produkt {
        margin-top: 20px;

    }

}













/* 📱 HANDY */

@media (max-width: 768px) {

    /* NAV */
    .arrow-toggle {
        display: block;
        font-size: 28px;
        cursor: pointer;
    }

    .main-nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #333;

        flex-direction: column;
        display: none;
    }

    .main-nav-links.active {
        display: flex;
    }

    .dropdown {
        display: none;
    }
    .nav-links {
        color: white;
        padding: 15px;
        text-align: center;
        border-top: 1px solid #444;
    }

    /* Produkte */
    .alle-abteilungen {
        grid-template-columns: 1fr;
        /* 👉 untereinander */
        gap: 10%;
        margin-top: 50px;
    }
    .vorteile {
        margin-top: 100px;
    }
    /* Footer */
    .inhalt-footer {
        flex-direction: column;
        text-align: center;
    }

    .test {
        display: none;
    }
}















/* Modelle */
.card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.card {
    background: white;
    border-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.preis {
    display: flex;
    margin-left: 70%;
}

/* 📱 Tablet */
@media (max-width: 900px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Spalten */
        gap: 15px;
    }
}

/* 📱 Responsive (Handy) */
@media (max-width: 768px) {
    .card-container {
        grid-template-columns: repeat(1, 1fr);
    }
}










/* Bilder */
.bilder-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Desktop: 4 Spalten */
    gap: 20px;
    padding: 20px;
    
}


.bilder {
    width: 100%;
    height: 200px;
    background-color: #f5f5f5;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 15px;
    overflow: hidden;
}

.bilder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 📱 Tablet */
@media (max-width: 900px) {
    .bilder-container {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Spalten */
        gap: 15px;
    }
}

/* 📱 Handy */
@media (max-width: 500px) {
    .bilder-container {
        grid-template-columns: 1fr;
        /* 1 Spalte */
        gap: 10px;
    }

    .bilder {
        height: 180px;
    }
}
