body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #91dbfd, #0069d9);
    color: #fff;
    min-height: 100vh;
    text-align: center;
    padding-bottom: 60px;
}

header {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #fff;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

nav ul li a {
    text-decoration: none;
    color: #91dbfd;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

nav ul li a:hover {
    background: #91dbfd;
    color: #0069d9;
}

#produkte h2 {
    font-size: 2rem;
    color: #0069d9;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.produkte-description {
    font-size: 1.2rem;
    text-align: center;
    color: #fff;
    font-weight: bold;
}


#categories {
    text-align: center;
    padding: 20px;
}

#category-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.category-button {
    padding: 10px 20px;
    margin: 5px;
    background-color: #0069d9;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.category-button:hover {
    background-color: #004a9e;
}

.category-button.active {
    background-color: #ff9800; 
    color: #ffffff; 
    font-weight: bold;
    transform: scale(1.1);
    border: 2px solid #ffffff; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.button-container .btn {
    flex: 1;
    max-width: 200px;
    padding: 10px;
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); 
}

.modal-content {
    background-color: #91dbfd;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 300px;
    border-radius: 10px;
    text-align: center;
    color: #000; 
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
}

#rabatt-list div {
    width: 250px; 
    display: flex;
    align-items: center; 
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#rabatt-list div img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
}

#rabatt-list div a {
    text-decoration: none;
    color: #0069d9;
    font-weight: bold;
    flex-grow: 1;
}

#product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-content: center;
} 

#product-detail {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.product-details {
    flex: 1 1 100%;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    color: #000;
}

.product-details p,
.product-details h2 {
    margin: 10px 0;
}

.product-card {
    max-width: 250px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #000;
    text-align: left;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.product-image {
    flex: 1;
    display: block;
    margin: 0 auto;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 2px solid #004a9e;
    border-radius: 8px;
    margin-bottom: 10px;
    text-align: center;
}

#product-detail .product-details img {
    max-width: 400px;
    max-height: 400px;
    width: auto;
    height: auto;
    border: 2px solid #004a9e;
    border-radius: 8px;
    margin: 20px;
    object-fit: cover; 
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.2);
}

.product-card h4 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    color: #0069d9;
    text-align: center;
}

.product-card p {
    margin: 5px 0;
    line-height: 1.4;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.additional-info {
    margin-top: 40px;
    padding: 20px;
    background: #fff; 
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    color: #000;
}

.btn-back,
.btn {
    padding: 10px 20px;
    font-size: 1rem;
    color: #ffffff;
    background-color: #004a9e;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 10px;
}

.btn-back:hover,
.btn:hover {
    background-color: #003570;
    transform: scale(1.05);
}

.btn-back:active,
.btn:active {
    background-color: #002244;
    transform: scale(0.95);
}

footer {
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #91dbfd;
    font-size: 0.9rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 50px;
}

@media (max-width: 767px) {

    nav ul {
        flex-direction: column; 
        align-items: center;
        gap: 10px; 
        margin: 10px 0;
    }

    nav ul li a {
        padding: 10px 12px; 
        font-size: 0.9rem; 
    }

    #product-detail .product-details img {
        width: 75%;
    }

    #product-list {
        grid-template-columns: 1fr; 
        gap: 10px;
        padding: 10px;
    }

    .product-card {
        max-width: 100%; 
        padding: 15px;
        margin: 5px;
        text-align: center;
    }

    .product-container {
        gap: 15px;
    }
}

@media (max-width: 480px) {

    nav ul {
        flex-direction: column;
        gap: 5px;
        margin: 5px 0;
    }

    nav ul li a {
        padding: 8px 10px;
        font-size: 0.8rem; 
    }

    #product-detail .product-details img {
        width: 75%;
    }

    #product-list {
        grid-template-columns: 1fr;
        padding: 5px;
    }

    .product-card {
        padding: 10px;
        text-align: center;
    }

    .product-container {
        gap: 5px;
    }
}