
.filter-button {
    padding: 5px 10px;
    font-size: 14px;
    color: #fff;
    background-color: #0073aa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.filter-button:hover {
    background-color: #005f8d;
}

form select {
    padding: 8px;
    font-size: 14px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.flohmarkt-product-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.flohmarkt-product-form-container h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.form-group img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 4px;
}

.form-actions {
    text-align: center;
    margin-top: 20px;
}

.flohmarkt-button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #0073aa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.flohmarkt-button:hover {
    background-color: #005f8d;
}


/* Produktliste */
.product-list {
    margin-top: 20px;
}

.product-item .lightbox {
    display: flex;
    justify-content: center; /* Zentriert das Bild horizontal */
    align-items: center; /* Zentriert das Bild vertikal */
}

.product-item {
    display: grid;
    grid-template-columns: 100px 1fr 150px;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Linke Spalte: Bild */
.product-item img {
    display: block; /* Verhindert Inline-Darstellung */
    margin: 0 auto; /* Zentriert das Bild horizontal */
    max-width: 100px; /* Optionale Begrenzung der Bildbreite */
    height: auto; /* Automatische Höhe */
    border-radius: 8px; /* Optional: Abgerundete Ecken */
}

/* Mittlere Spalte: Titel und Beschreibung */
.product-item h4 {
    grid-column: 2;
    font-size: 18px;
    margin: 0 0 5px;
    color: #0073aa;
}

.product-item p.description {
    grid-column: 2;
    font-size: 16px;
    color: #555;
    margin: 0 0 10px;
}

/* Untere mittlere Spalte: Preis und Verkäufer */
.product-item .details {
    grid-column: 2;
    font-size: 16px;
    margin: 0;
    color: #333;
    display: flex;
    justify-content: space-between;
}

.product-item .details span {
    display: inline-block;
}

/* Rechte Spalte: Buttons und Status */
.product-item .actions {
    grid-column: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.product-item .actions button {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
}


.product-item .actions .reserve-button:hover {
    background-color: #005f8d;
}


/* Button: Reservieren */
.product-item .actions .reserve-button {
    background-color: #28a745;
    color: white;
    text-align: center;
    font-size: 14px;
    padding: 5px 0px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 10px;
    width: 150px;
}

.product-item .actions .reserve-button:hover {
    background-color: #005f8d;
}

/* Button: Reservierung löschen */
.product-item .actions .cancel-button {
    background-color: #880;
    color: white;
}

.product-item .actions .cancel-button:hover {
    background-color: #a62828;
}

/* Status unterhalb der Buttons */
.product-item .actions .status {
    background-color: #Ff0000; /* Standard: Grün für reserviert */
    color: white;
    text-align: center;
    font-size: 14px;
    padding: 5px 0px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 10px;
    width: 100%; /* Gleiche Breite wie die Buttons */
}

/* Status: Nicht reserviert */
.product-item .actions .status[style*="background-color: #f1c40f;"] {
    background-color: #f1c40f; /* Gelb für nicht reserviert */
    color: #333; /* Dunkle Schrift für Kontrast */
}
.product-limit-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 5px solid #0073aa;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.product-limit-info p {
    margin: 0;
}


/* Bearbeiten-Button */
.edit-button {
    background-color: #0073aa;
}

.edit-button:hover {
    background-color: #000;
}
/* Allgemeine Button-Klasse */
.action-button {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Löschen-Button */
.delete-button {
    background-color: #d63638;
}

.delete-button:hover {
    background-color: #a62828;
}
#lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lightbox-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}
