/* Grundstil für Tabellen */
table.pp-slot-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
        background-color: #000;
}

table.pp-slot-table th,
table.pp-slot-table td {
    border: 1px solid #ccc;
    padding: 8px;
    font-size: 1.5rem;
    word-wrap: break-word;
    text-align: center;
    background-color: #000;
    color: #fff;
}

/* Responsive Anpassungen für Mobilgeräte */
@media (max-width: 768px) {
    table.pp-slot-table th,
    table.pp-slot-table td {
        font-size: 12px;
        padding: 4px;
    }
}

/* Monatskalender-Zelle */
.pp-slot-day-cell {
    cursor: pointer;
    transition: background 0.2s ease;
}
.pp-slot-day-cell.disabled {
    color: #999 !important;
    background: #f0f0f0 !important;
    pointer-events: none;
    cursor: not-allowed;
}
.pp-slot-day-cell:hover {
    background-color: #00b893;
}

/* Modal Fenster */
#pp-slot-modal {
    display: none;
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 600px;
    background: #fff;
    padding: 20px;
    z-index: 9999;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    max-height: 80vh;
}

/* Modal-Overlay */
#pp-slot-modal-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* Modal-Schließen */
#pp-slot-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    float: right;
    cursor: pointer;
}

/* Tabelle im Modal */
#pp-slot-modal-content table {
    width: 100%;
    border-collapse: collapse;
}

#pp-slot-modal-content th,
#pp-slot-modal-content td {
    border: 1px solid #ccc;
    padding: 6px;
    font-size: 14px;
}

@media (max-width: 600px) {
    #pp-slot-modal-content th,
    #pp-slot-modal-content td {
        font-size: 12px;
        padding: 4px;
    }
}


.mobile-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 1rem;
}

.mobile-slot-card {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    background: #f9f9f9;
    transition: background 0.3s ease;
    cursor: pointer;
}

.mobile-slot-card.available {
    background: #d4edda;
}

.mobile-slot-card.full {
    background: #f8d7da;
}

.mobile-slot-card:hover {
    box-shadow: 0 0 5px rgba(0,0,0,0.15);
}

.slot-date {
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 4px;
}

.slot-stats {
    font-size: 0.9em;
    margin-bottom: 2px;
}

.slot-status {
    font-size: 0.85em;
    font-weight: 600;
}
/*Mobile Slots */
.mobile-slots {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-slot-card {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.95em;
    background: #f4f4f4;
    color:#1f1f1f !important;
}

.slot-header {
    font-size: 1,8em;
    margin-bottom: 6px;
    color: #000 !important;
}
.slot-dropdown-wrapper {
    display: flex;
    justify-content: center;  /* Horizontal zentrieren */
    margin-top: 6px;
}

.slot-dropdown-wrapper select {
    width: 200px;
    max-width: 100%;
    padding: 4px;
    font-size: 1em;
}
/* Farben nach Auslastung */
.slot-ok {
    background-color: #d4edda; /* hellgrün */
    border-color: #c3e6cb;
}

.slot-warning {
    background-color: #fff3cd; /* hellorange */
    border-color: #ffeeba;
}

.slot-full {
    background-color: #f8d7da; /* hellrot */
    border-color: #f5c6cb;
}

.pp-fixed-bottom-cart-button {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    text-align: center;
}

.pp-fixed-bottom-cart-button button {
    max-width: 400px;
    margin: 0 auto;
}
.pp-cart-badge {
    font-size: 1rem;
    padding: 6px 10px;
    position: absolute;
    top: 0;
    right: 0;
    transform: translateY(-50%);
    background-color: #f8f9fa;
    color: #212529;
    border-radius: 999px;
    margin-right: 0.5rem;
}
/* Grüne Überschrift-Zeile für das Datum */
.slot-date-heading {
    background-color: #00b893 !important;
    color: white !important;
    font-weight: bold;
    border: none !important;
    padding-left: 10px !important;
    font-size: 1.8rem;
}

/* Schwarze Slot-Zeilen */
.pp-list .list-group-item.d-flex {
    background-color: #000 !important;
    color: white !important;
    border: none !important;
        padding-left: 10px !important;
            font-size: 1.5rem;

}

/* Optional: Hover-Effekt (z. B. bei Mobile) */
.pp-list .list-group-item.d-flex:hover {
    background-color: #111 !important;
}



/* Entfernen-Button */
.pp-remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 2.5rem;
    line-height: 1;
    padding: 0;
    margin-left: 1rem;
    cursor: pointer;
    text-decoration: none;
}

.pp-remove-btn:hover {
    color: #a71d2a;
    text-decoration: none;
}

table.pp-slot-table {
    background-color: #000;
    color: #fff;
}

table.pp-slot-table th {
    background-color: #222;
    color: #fff;
}

table.pp-slot-table td {
    background-color: #000;
    color: #fff;
    border-color: #444;
}
