/**
 * Misox Festival Programm - Frontend Styles
 */

/* Filter */
.mfp-filter {
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 8px;
}

.mfp-filter-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #333;
}

.mfp-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.mfp-filter-btn {
    padding: 0 0 0.15rem;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
    text-decoration: none;
    background: transparent;
}

.mfp-filter-btn:hover {
    color: #111 !important;
    border-bottom-color: #3fa8d2;
}

.mfp-filter-btn.active {
    color: #000 !important;
    font-weight: 700;
    border-bottom-color: #3fa8d2;
}

.mfp-filter-btn:focus-visible {
    outline: none;
    border-bottom-color: #3fa8d2;
}

.mfp-filter-btn:focus {
    background-color: transparent;
}

/* Favoriten-Filter-Button */
.mfp-filter-btn--fav {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.mfp-filter-btn--fav svg {
    width: 13px !important;
    height: 13px !important;
    max-width: 13px !important;
    max-height: 13px !important;
    flex-shrink: 0;
    transition: fill 0.2s ease;
    pointer-events: none;
}

.mfp-filter-btn--fav.active svg {
    fill: rgb(255, 244, 138);
}

/* Programm Container */
.mfp-programm {
    max-width: 100%;
}

/* Tag */
.mfp-day {
    margin-bottom: 1rem;
}

.mfp-day + .mfp-day {
    padding-top: 1rem;
}

.mfp-day-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #3fa8d2;
}

.mfp-day {
    position: relative;
}

.mfp-day-name {
    font-weight: 800;
    font-size: 1.2rem;
}

.mfp-day-date {
    font-weight: 500;
    font-size: 1rem;
    color: #444;
}

/* Events Liste */
.mfp-events {
    padding: 1rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
}

.mfp-events-col {
    min-width: 0;
}

.mfp-event {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    align-items: start;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.mfp-event:last-child {
    border-bottom: none;
}

.mfp-event:hover {
}

/* Favoriten-Button */
.mfp-fav-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    color: #bbb;
    opacity: 1;
    transition:
        color 0.2s ease,
        transform 0.15s ease;
    line-height: 1 !important;
    flex-shrink: 0;
    width: 20px !important;
    height: 20px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 20px !important;
    max-height: 20px !important;
}

.mfp-fav-btn svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    display: block;
    transition:
        fill 0.2s ease,
        color 0.2s ease;
    pointer-events: none;
}

.mfp-fav-btn:hover {
    color: #3fa8d2;
    transform: scale(1.15);
}

.mfp-fav-btn.active {
    color: #3fa8d2;
}

.mfp-fav-btn.active svg {
    fill: rgb(255, 244, 138);
}

.mfp-fav-btn:focus-visible {
    outline: none !important;
    color: #3fa8d2;
}

.mfp-event.hidden {
    display: none;
}

/* Event Zeit */
.mfp-event-time {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Event Content */
.mfp-event-content {
    flex: 1;
}

.mfp-event-title {
    font-weight: 600;
    color: #000;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.mfp-event-location {
    font-size: 0.85rem;
    color: #666;
}

/* No Events */
.mfp-no-events {
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .mfp-day {
        padding-left: 0;
    }

    .mfp-day-header {
        writing-mode: horizontal-tb;
        transform: none;
        position: relative;
        padding: 0.75rem 1rem;
        flex-direction: row;
    }

    .mfp-event {
        grid-template-columns: 1fr auto;
        gap: 0.5rem;
    }

    .mfp-event-time {
        grid-column: 1;
    }

    .mfp-event-content {
        grid-column: 1;
    }

    .mfp-fav-btn {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }

    .mfp-event-time {
        font-size: 0.85rem;
        color: #666;
    }

    .mfp-filter-buttons {
        gap: 0.4rem;
    }

    .mfp-filter-btn {
        padding: 0 0 0.1rem;
        font-size: 0.8rem;
    }
}

/* Events ohne Datum */
.mfp-day-nodates .mfp-day-header {
    color: white;
}

.mfp-day-nodates .mfp-event {
    border-left-color: #ff9800;
}

@media (max-width: 900px) {
    .mfp-events {
        grid-template-columns: 1fr;
    }
}

/* Animation für Filter */
.mfp-event {
    animation: fadeIn 0.3s ease;
}

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

/* Consent-Hinweis */
.mfp-consent-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    margin-bottom: 1.5rem;
    background-color: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #6d5a00;
    opacity: 0;
    transform: translateY(-8px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.mfp-consent-notice.visible {
    opacity: 1;
    transform: translateY(0);
}

.mfp-consent-notice.hiding {
    opacity: 0;
    transform: translateY(-8px);
}

.mfp-consent-notice-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.4;
}

.mfp-consent-notice-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #f9a825;
}

.mfp-consent-notice-close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    color: #6d5a00;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.6;
    transition:
        opacity 0.2s ease,
        background-color 0.2s ease;
}

.mfp-consent-notice-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.06);
}
