/* Termin Card List - Modernes Card-Design */

.tmt-termin-card-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 100%;
}

.tmt-termin-card {
    padding: 35px;
    display: flex;
    gap: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.tmt-termin-card:hover {
    background-color: #F5EEDC;
}

.tmt-termin-card:focus {
    outline: 2px solid #6b8e6f;
    outline-offset: 2px;
}

/* Datum-Box (links) */
.tmt-termin-card__date {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #556B4D;
    color: #ffffff;
    min-width: 150px;
    padding: 2.5rem 2rem;
    text-align: center;
    flex-shrink: 0;
    border-radius: 12px;
}

.tmt-termin-card__date-text {
    color: var(--e-global-color-secondary);
    font-family: "Outfit", Sans-serif;
    font-size: 2rem;
    font-weight: 500;
    line-height: 84px;
    text-align: center;
}

/* Content-Bereich (rechts) */
.tmt-termin-card__content {
    flex: 1;
    padding: 10px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tmt-termin-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.tmt-termin-card__title {
    margin: 0;
    font-size: 1.5rem!important;
    font-weight: 600;
    line-height: 1;
    flex: 1;
    color: #2c3e50;
}

/* Wanderthemen-Badges */
.tmt-termin-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}

.tmt-termin-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    
    color: #333333;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.tmt-badge-icon {
    width: 0.875rem;
    height: 0.875rem;
    fill: currentColor;
    opacity: 0.8;
}

/* Beschreibung */
.tmt-termin-card__description {
    color: #333333;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.tmt-termin-card__description p {
    margin: 0 0 0.75rem 0;
}

.tmt-termin-card__description p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tmt-termin-card {
        flex-direction: column;
        gap: 0;
    }

    .tmt-termin-card__date {
        min-width: 100%;
        padding: 1.5rem;
        border-radius: 12px 12px 0 0;
    }

    .tmt-termin-card__date-text {
        font-size: 2.5rem;
    }

    .tmt-termin-card__content {
        padding: 1.5rem;
    }

    .tmt-termin-card__header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .tmt-termin-card__badges {
        align-self: flex-start;
    }

    .tmt-termin-card__title {
        font-size: 1.25rem;
    }
}

/* Filter-Integration */
.tmt-termin-card.tmt-filtered-hidden {
    display: none;
}

.tmt-termin-card.tmt-filtered-visible {
    display: flex;
}

/* Keine Termine Meldung */
.tmt-no-termine {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-size: 1.125rem;
}

/* Loading State */
.tmt-termin-card-list__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    gap: 1rem;
}

.tmt-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6b8e6f;
    border-radius: 50%;
    animation: tmt-spin 1s linear infinite;
}

@keyframes tmt-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tmt-termin-card-list__loading p {
    margin: 0;
    color: #6c757d;
    font-size: 1rem;
}

/* Empty State nach Filterung */
.tmt-filter-empty-message {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-size: 1.125rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Fade-Animationen */
.tmt-termin-card-list__items {
    transition: opacity 0.2s ease-in-out;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

/* Mehr laden Button */
.tmt-termin-card-list__load-more {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.tmt-load-more-button {
    background: #6b8e6f;
    color: #ffffff;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tmt-load-more-button:hover {
    background: #5a7a5e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tmt-load-more-button:active {
    transform: translateY(0);
}

.tmt-load-more-button:disabled,
.tmt-load-more-button.loading {
    background: #95a99d;
    cursor: not-allowed;
    opacity: 0.7;
}

.tmt-load-more-button.loading::after {
    content: '...';
    animation: tmt-dots 1.5s infinite;
}

@keyframes tmt-dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

