/* Allgemeine Layout-Stile */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: black;
}

/* Header und Navigation */
header {
    background-color: #333;
    color: white;
    padding: 10px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar .logo a {
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.navbar .menu {
    display: flex;
    align-items: center;
}

.navbar .menu a {
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
}

.navbar .menu a:hover {
    color: #007bff;
}

/* Profilbild und Dropdown */
.profile-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Rundes Profilbild */
    border: 2px solid #fff;
    object-fit: cover;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    background-color: white;
    min-width: 160px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1;
    color: black;
}

.dropdown-menu a {
    padding: 10px;
    display: block;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu a:hover {
    background-color: #f1f1f1;
    color: #007bff;
}

.profile-dropdown:hover .dropdown-menu {
    display: block;
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .profile-pic {
        width: 35px;
        height: 35px;
    }

    .dropdown-menu {
        width: 100%;
        left: 0;
        right: 0;
    }
}
/* Modal */
#login-modal {
    display: none; /* Modal ist standardmäßig unsichtbar */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Transparenter Hintergrund */
}

#login-modal .modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    text-align: center;
}

.close-btn {
    float: right;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
}




@keyframes modalAppear {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #f44336;
}

/* Login Formular */
h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

label {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

input[type="text"], input[type="password"] {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #007BFF;
}

button[type="submit"] {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

#login-btn {
    font-size: 16px;
    color: #007BFF;
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
}

#login-btn:hover {
    color: #0056b3;
}

/* Responsive Anpassung für Produkte */
@media (max-width: 1200px) {
    .product {
        flex: 0 1 calc(20% - 20px); /* 5 Produkte pro Reihe */
    }
}

@media (max-width: 900px) {
    .product {
        flex: 0 1 calc(25% - 20px); /* 4 Produkte pro Reihe */
    }
}

@media (max-width: 600px) {
    .product {
        flex: 0 1 calc(50% - 20px); /* 2 Produkte pro Reihe */
    }
}

/* Produktübersicht */
.product-overview {
    width: 70%;
    height: 75vh;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.product {
    flex: 0 1 calc(12.5% - 20px);
    max-width: calc(12.5% - 20px);
    height: 35vh;
    background: white;
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.product:hover {
    transform: translateY(-5px);
}

.product img {
    max-width: 85%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.product h2 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #333;
}

.product p {
    font-size: 1rem;
    color: #666;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination a {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination a:hover {
    background-color: #0056b3;
    color: white;
}

/* Preis Styling */
.product .price {
    font-size: 1.6em;
    font-weight: bold;
    color: #007bff;
    margin-top: auto;
    text-align: center;
    padding-top: 10px;
}
