/* Styles für den Load More Button und AJAX-Funktionalität */

.ecm-course-list-load-more {
    margin-top: 2rem;
    text-align: center;
    padding: 1rem 0;
}

.ecm-load-more-button {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
	background-color: #ffffff !important;  /* Weißer Hintergrund */
    border: 2px solid #000000 !important;  /* Schwarzer Rahmen */
    color: #000000 !important;             /* Schwarze Schrift */
}

.ecm-load-more-button.ecm-loading {
    padding-left: 2.5rem;
    opacity: 0.7;
    cursor: wait;
	background-color: #ffffff !important;  /* Weißer Hintergrund bleibt beim Laden */
}

.ecm-load-more-button.ecm-loading:before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1) !important;  /* Ladeanzeige dunkler */
    border-top-color: #000000 !important;            /* Schwarze Ladeanzeige */
    border-radius: 50%;
    animation: ecm-spin 1s linear infinite;
}

.ecm-course-list-items.ecm-loading {
    position: relative;
    min-height: 100px;
}

.ecm-course-list-items.ecm-loading:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 10;
}

.ecm-course-list-items.ecm-loading:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 3rem;
    height: 3rem;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #007cba;
    border-radius: 50%;
    animation: ecm-spin 1s linear infinite;
    z-index: 11;
}

@keyframes ecm-spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Anpassungen für mobile Geräte */
@media (max-width: 768px) {
    .ecm-course-list-load-more {
        margin-top: 1.5rem;
    }
    
    .ecm-load-more-button {
        width: 100%;
        max-width: 250px;
    }
}