/**
 * Öffentliche Styles für das MMC Events Plugin
 * Modernes Design mit Dribbble-inspiriertem UI & UX
 */

/* Event-Karten */
.mmc-events-container {
    margin: 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.mmc-events-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.mmc-event-card {
    width: calc(25% - 30px);
    min-width: 280px;
    max-width: 320px;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, .05);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    isolation: isolate;
    cursor: pointer;
}

.mmc-event-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-decoration: none;
    border-radius: 16px;
}

/* Stellen sicher, dass der Button über dem Link-Overlay liegt */
.mmc-event-button,
.mmc-event-extras-tooltip {
    position: relative;
    z-index: 2;
}

@media (max-width: 1200px) {
    .mmc-event-card {
        width: calc(33.333% - 30px);
    }
}

@media (max-width: 992px) {
    .mmc-event-card {
        width: calc(50% - 30px);
    }
}

@media (max-width: 480px) {
    .mmc-event-card {
        width: 100%;
        max-width: 100%;
    }
}

/* Verstecke Extras, Datum und Preis in den Event-Karten */
.mmc-event-card .mmc-event-date,
.mmc-event-card .mmc-event-price,
.mmc-event-card .mmc-event-extras-indicator {
    display: none;
}

/* Redesigned Event Card - Minimalistic Dribbble-Award Style */
.mmc-event-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.mmc-event-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mmc-event-image-container {
    position: relative;
    overflow: hidden;
    padding-top: 50%;
    background-color: #f5f5f7;
    background-size: cover;
    background-position: center center;
    transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
    border-radius: 15px 15px 0 0;
}

.mmc-event-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 2px;
}

.mmc-event-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.mmc-event-meta {
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    color: #666;
    gap: 16px;
    align-items: center;
}

.mmc-event-date, .mmc-event-price, .mmc-event-extras-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.mmc-event-date i, .mmc-event-price i {
    color: var(--e-global-color-secondary);
    margin-top: 0;
    font-size: 16px;
    opacity: 0.85;
}

.mmc-event-description {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mmc-event-actions {
    margin-top: auto;
    padding-top: 20px;
    text-align: center;
}

.mmc-event-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--e-global-color-secondary);
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.mmc-event-button:hover {
    background-color: var(--e-global-color-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(var(--e-global-color-secondary-rgb, 108, 92, 231), 0.3);
    text-decoration: none;
}

/* Custom Extras Badge */
.mmc-event-extras-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #F8F8FA;
    color: var(--e-global-color-secondary);
    border: 1px solid rgba(var(--e-global-color-secondary-rgb), 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mmc-event-extras-badge:hover {
    background-color: #F0F0F5;
    transform: translateY(-1px);
}

.mmc-event-extras-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-top: 0;
}

/* Card Responsive Styles */
@media (max-width: 768px) {
    .mmc-events-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .mmc-event-content {
        padding: 20px;
    }
    
    .mmc-event-title {
        font-size: 18px;
    }
    
    .mmc-event-actions {
        padding-top: 16px;
    }

    .mmc-event-image-container {
        padding-top: 60%;
    }

}

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

.mmc-events-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

/* Einzelansicht */
.mmc-event-single {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 200px 20px;
}

.mmc-event-single-header {
    margin-bottom: 40px;
}

.mmc-event-single-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--e-global-color-secondary);
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: var(--e-global-typography-primary-font-size);
    font-weight: var(--e-global-typography-primary-font-weight);
    text-transform: var(--e-global-typography-primary-text-transform);
    font-style: var(--e-global-typography-primary-font-style);
    text-decoration: var(--e-global-typography-primary-text-decoration);
    line-height: var(--e-global-typography-primary-line-height);
    letter-spacing: var(--e-global-typography-primary-letter-spacing);
    word-spacing: var(--e-global-typography-primary-word-spacing);
}

.mmc-event-single-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    font-size: 16px;
    color: #666;
}

.mmc-event-single-meta-item {
    display: flex;
    align-items: center;
    margin-right: 30px;
    margin-bottom: 10px;
}

.mmc-event-single-meta-item i {
    margin-right: 8px;
    color: var(--e-global-color-secondary);
}

.mmc-event-single-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mmc-event-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

.mmc-event-single-content {
    margin-bottom: 40px;
    line-height: 1.8;
    color: #444;
}

.mmc-event-single-details {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.mmc-event-single-details h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    color: #333;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.mmc-event-single-details h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--e-global-color-secondary);
    border-radius: 3px;
}

.mmc-event-single-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.mmc-event-single-details-item {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border-left: 3px solid var(--e-global-color-secondary);
}

.mmc-event-single-details-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.mmc-event-single-details-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.mmc-event-single-details-label .dashicons {
    color: var(--e-global-color-secondary);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.mmc-event-single-details-value {
    flex: 1;
    color: #666;
    font-size: 13px;
}

.mmc-event-single-extras {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.mmc-event-single-extras h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    color: #333;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.mmc-event-single-extras h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--e-global-color-secondary);
    border-radius: 3px;
}

.mmc-event-extras-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Custom Checkbox für Zusätzliche Optionen */
.mmc-event-single-extra {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid transparent;
    will-change: transform, box-shadow, border-color;
}

.mmc-event-single-extra:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.mmc-event-single-extra.selected {
    box-shadow: 0 5px 15px rgba(var(--e-global-color-secondary-rgb, 108, 92, 231), 0.15);
    border: 1px solid var(--e-global-color-secondary);
    transform: translateY(-2px);
}

/* Versteckt die Standard-Checkbox */
.mmc-event-single-extra input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

/* Checkbox-Label-Styling */
.mmc-event-extra-header {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
    padding-left: 38px; /* Platz für die Custom-Checkbox */
}

/* Custom Checkbox */
.mmc-event-extra-header:before {
    content: '';
    position: absolute;
    left: 0;
    top: -3px;
    width: 24px;
    height: 24px;
    border: 2px solid var(--e-global-color-secondary, #6c5ce7);
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.2s ease;
    will-change: background-color, background-image;
    z-index: 1;
}

/* Checkbox Checked-Status */
.mmc-event-single-extra.selected .mmc-event-extra-header:before {
    background-color: var(--e-global-color-secondary, #6c5ce7);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
}

/* Überschreiben der vorherigen Checkbox-Header-Stile */
.mmc-event-extra-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: all 0.2s ease;
}

.mmc-event-single-extra.selected .mmc-event-extra-header h4 {
    font-weight: 700;
    color: var(--e-global-color-secondary, #6c5ce7);
}

.mmc-event-extra-description {
    margin: 10px 0;
    padding-left: 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.mmc-event-extra-details {
    padding-left: 38px; /* Gleicher Abstand wie bei der Checkbox */
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
}

.mmc-event-extra-price {
    color: var(--e-global-color-secondary);
    font-weight: 600;
}

.mmc-event-extra-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.mmc-event-extra-time .dashicons {
    color: var(--e-global-color-secondary);
    font-size: 16px;
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .mmc-event-extras-list {
        grid-template-columns: 1fr;
    }
}

/* Anmeldeformular */
.mmc-event-registration-form-container {
    margin-top: 40px;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mmc-event-registration-form-container h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    color: #333;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.mmc-event-registration-form-container h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--e-global-color-secondary);
    border-radius: 3px;
}

.mmc-event-form-messages {
    margin-bottom: 20px;
}

.mmc-event-form-success {
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 8px;
    margin-bottom: 20px;
}

.mmc-event-form-error {
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    margin-bottom: 20px;
}

.mmc-event-form-row {
    margin-bottom: 20px;
}

.mmc-event-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.mmc-event-form-group label .required {
    color: #e74c3c;
}

.mmc-event-form-group input[type="text"],
.mmc-event-form-group input[type="email"],
.mmc-event-form-group input[type="tel"],
.mmc-event-form-group input[type="number"],
.mmc-event-form-group input[type="date"],
.mmc-event-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mmc-event-form-group input:focus,
.mmc-event-form-group textarea:focus {
    outline: none;
    border-color: var(--e-global-color-secondary);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

.mmc-event-form-group .description {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.mmc-event-extras-list {
    margin-top: 10px;
}

.mmc-event-extra-item {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
}

.mmc-event-extra-item label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
    font-weight: normal;
}

.mmc-event-extra-item input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 10px;
}

.mmc-event-extra-name {
    font-weight: 600;
    color: #333;
}

.mmc-event-extra-price {
    margin-left: 5px;
    color: var(--e-global-color-secondary);
}

.mmc-event-extra-description {
    margin-left: 25px;
    font-size: 14px;
    color: #666;
}

.mmc-event-form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mmc-event-submit-button {
    background-color: var(--e-global-color-secondary);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mmc-event-submit-button:hover {
    background-color: var(--e-global-color-secondary);
}

/* Spinner */
.mmc-event-form-spinner,
.mmc-event-form-spinner-mini {
    margin-left: 15px;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(108, 92, 231, 0.3);
    border-radius: 50%;
    border-top-color: var(--e-global-color-secondary);
    animation: spin 1s linear infinite;
}

.mmc-event-form-spinner-mini {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border-width: 2px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Submit-Button im festen Footer */
.mmc-event-price-fixed .mmc-event-submit-button {
    background-color: var(--e-global-color-secondary);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mmc-event-price-fixed .mmc-event-submit-button:hover {
    background-color: var(--e-global-color-secondary);
}

.mmc-event-price-fixed-expanded .mmc-event-submit-button {
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    margin: 15px auto 0;
    display: block;
    width: fit-content;
    min-width: 200px;
    text-align: center;
}

.mobile-cta-btn.mmc-event-submit-button {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
}

/* Fixed Position Fix */
.mmc-event-single {
    padding-bottom: 200px;
}

/* Fixierter Preisbereich */
.mmc-event-price-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mmc-event-price-fixed-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px 20px;
}

/* Expandierte Version (Desktop und aufgeklappte mobile Ansicht) */
.mmc-event-price-details {
    display: grid;
    grid-template-columns: auto auto;
    gap: 20px;
}

.mmc-event-price-column,
.mmc-event-time-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mmc-event-base-price,
.mmc-event-base-time {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mmc-event-total-price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.mmc-event-total-time {
    font-size: 18px;
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mmc-event-time-icon {
    color: var(--e-global-color-secondary);
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Minimierte Version (mobile) */
.mmc-event-price-fixed-minimized {
    display: none; /* Standardmäßig ausgeblendet, auf mobil angezeigt */
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mmc-event-price-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 18px;
}

.mmc-event-price-mini .dashicons {
    color: var(--e-global-color-secondary);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.mmc-event-toggle-details {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    padding: 0;
    transition: all 0.2s ease;
}

.mmc-event-toggle-details:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mmc-event-toggle-details .dashicons {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.mmc-event-toggle-details.active .dashicons {
    transform: rotate(180deg);
}

.mmc-event-scroll-to-form {
    background-color: var(--e-global-color-secondary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-cta-btn {
    padding: 8px 16px;
    font-size: 14px;
}

.mmc-event-scroll-to-form:hover {
    background-color: var(--e-global-color-secondary);
}

.mmc-event-price-fixed-expanded .mmc-event-scroll-to-form {
    margin: 15px auto 0;
    display: block;
    width: fit-content;
    min-width: 200px;
    text-align: center;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .mmc-event-price-fixed-inner {
        padding: 10px 15px;
    }
    
    .mmc-event-single-extra {
        padding: 10px !important;
    }
    
    .mmc-event-dates,
    .mmc-event-single-details,
    .mmc-event-single-extras,
    .mmc-event-registration-form-container  {
        padding: 0 !important;
        background-color: transparent !important;
        box-shadow: none !important;
    }
    
    .mmc-event-slider {
        height: 250px !important;
        max-height: 250px !important;
    }
    
    .mmc-event-slide {
        height: 250px !important;
        max-height: 250px !important;
    }

    /* Zeige minimierte Version auf mobil */
    .mmc-event-price-fixed-minimized {
        display: flex;
    }
    
    /* Verstecke expandierte Version standardmäßig */
    .mmc-event-price-fixed-expanded {
        display: none;
        padding-top: 15px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        margin-top: 10px;
    }
    
    .mmc-event-price-fixed-expanded.active {
        display: block;
    }
    
    .mmc-event-price-details {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .mmc-event-price-column,
    .mmc-event-time-column {
        align-items: center;
    }
    
    .mmc-event-base-price,
    .mmc-event-base-time {
        justify-content: center;
    }
}



.mmc-event-end-time,
.mmc-event-time-extras {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.mmc-event-time-extras {
    font-style: italic;
    color: var(--e-global-color-secondary);
    font-size: 13px;
    line-height: 1.4;
    margin-top: 8px;
    flex-wrap: wrap;
}

.mmc-event-time-extras .dashicons {
    color: var(--e-global-color-secondary);
}

@media (max-width: 768px) {
    .mmc-event-end-time,
    .mmc-event-time-extras {
        justify-content: center;
    }
    
    .mmc-event-time-extras {
        text-align: center;
    }
}

.mmc-event-time-range {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mmc-event-time-range .dashicons {
    color: var(--e-global-color-secondary);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.mmc-event-time-extras {
    font-style: italic;
    color: var(--e-global-color-secondary);
    font-size: 13px;
    line-height: 1.4;
    margin-top: 8px;
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mmc-event-time-extras .dashicons {
    color: var(--e-global-color-secondary);
    font-size: 14px;
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .mmc-event-time-range,
    .mmc-event-time-extras {
        justify-content: center;
        text-align: center;
    }
}

/* Terminauswahl */
.mmc-event-dates {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.mmc-event-dates h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    color: #333;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.mmc-event-dates h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--e-global-color-secondary);
    border-radius: 3px;
}

.mmc-event-dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}

.mmc-event-date-item {
    position: relative;
}

.mmc-event-date-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.mmc-event-date-item label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mmc-event-date-item input[type="radio"]:checked + label {
    border-color: var(--e-global-color-secondary);
}

.mmc-event-date-item input[type="radio"]:checked + label {
    box-shadow: 0 3px 8px rgba(108, 92, 231, 0.2);
    border-width: 2px;
    transform: translateY(-1px);
}

.mmc-event-date-item:hover label {
    border-color: var(--e-global-color-secondary);
    box-shadow: 0 3px 8px rgba(108, 92, 231, 0.1);
}

.mmc-event-date-weekday {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.mmc-event-date-day {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 3px;
}

.mmc-event-date-month {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.mmc-event-date-time {
    font-size: 11px;
    color: var(--e-global-color-secondary);
    font-weight: 600;
}

/* Titel-Badge für einzelne Termine */
.mmc-event-date-title {
    display: block;
    margin-top: 3px;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 500;
    color: #444;
    border-top: 1px solid #eee;
    padding: 4px 0 0 0;
    line-height: 1.2;
    width: 100%;
    text-align: center; 
}

/* Hervorhebung bei Auswahl */
.mmc-event-date-item input[type="radio"]:checked + label .mmc-event-date-title {
    color: var(--e-global-color-secondary);
    border-top-color: var(--e-global-color-secondary);
}

@media (max-width: 768px) {
    .mmc-event-date-title {
        font-size: 12px; 
    }
}

.mmc-event-date .additional-dates {
    display: block;
    font-size: 14px;
    color: var(--e-global-color-secondary);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .mmc-event-dates-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .mmc-event-date-day {
        font-size: 20px;
    }
    
    .mmc-event-date-month {
        font-size: 14px;
    }
}

/* Event-Slider mit Slick */
.mmc-event-slider-container {
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.slick-dotted.slick-slider {
    margin-bottom: 0 !important;
}

/* Hauptslider */
.mmc-event-slider {
    height: 40vh;
    max-height: 600px;
}

.mmc-event-slide {
    position: relative;
    height: 40vh;
    max-height: 600px;
    overflow: hidden;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover !important;
    transition: opacity 0.3s ease;
}

.mmc-event-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Pfeile für den Hauptslider */
.mmc-event-slider .slick-prev,
.mmc-event-slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: all 0.3s ease;
    border: none;
    background-color: transparent !important;
    height: 10px;
    border-radius: 100%;
    text-align: center;
}

.mmc-event-slider .slick-prev {
    left: 10px;
}

.mmc-event-slider .slick-next {
    right: 10px;
}

.mmc-event-slider .slick-prev:hover,
.mmc-event-slider .slick-next:hover {
    background-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.mmc-event-slider .slick-prev:before,
.mmc-event-slider .slick-next:before {
    font-size: 32px;
    opacity: .5;
    color: #333;
    background-color: transparent !important;
    border-radius: 100%;
    padding: 2px;
    color: #fff;
    line-height: 0;
}

/* Punkte für den Hauptslider */
.mmc-event-slider .slick-dots {
    bottom: 10px;
}

.mmc-event-slider .slick-dots li button:before {
    font-size: 10px;
    color: #fff;
    opacity: 0.7;
}

.mmc-event-slider .slick-dots li.slick-active button:before {
    color: #fff;
    opacity: 1;
}

/* Thumbnail-Slider */
.mmc-event-slider-nav {
    margin: 10px auto;
    max-width: 100%;
    padding: 0 10px;
}

.mmc-event-slide-nav {
    position: relative;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.7;
    transition: all 0.3s ease;
    height: 0;
    padding-bottom: 12%; /* Niedrigere Höhe für Thumbnails */
    border: 1px solid #e0e0e0;
}

.mmc-event-slide-nav.slick-current {
    opacity: 1;
    border: 2px solid var(--e-global-color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(108, 92, 231, 0.2);
}

.mmc-event-slide-nav img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Einzelbild, wenn kein Slider vorhanden */
.mmc-event-single-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.mmc-event-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Anpassungen */
@media (max-width: 992px) {
    .mmc-event-slider {
        height: 250px;
        max-height: 250px;
    }
    
    .mmc-event-slide {
        height: 250px;
        max-height: 250px;
    }
    
    .mmc-event-slider .slick-prev,
    .mmc-event-slider .slick-next {
        width: 36px;
        height: 36px;
    }
    
    .mmc-event-slider .slick-prev:before,
    .mmc-event-slider .slick-next:before {
        font-size: 18px;
    }
    
    .mmc-event-slide-nav {
        padding-bottom: 16%;
    }
}

@media (max-width: 768px) {
    .mmc-event-slider {
        height: 250px;
        max-height: 250px;
    }
    
    .mmc-event-slide {
        height: 250px;
        max-height: 250px;
    }
    
    .mmc-event-slider .slick-prev,
    .mmc-event-slider .slick-next {
        width: 32px;
        height: 32px;
    }
    
    .mmc-event-slider .slick-prev:before,
    .mmc-event-slider .slick-next:before {
        font-size: 16px;
    }
    
    .mmc-event-slide-nav {
        padding-bottom: 18%;
    }
}

@media (max-width: 576px) {
    .mmc-event-slider {
        height: 250px;
        max-height: 250px;
    }
    
    .mmc-event-slide {
        height: 250px;
        max-height: 250px;
    }
    
    .mmc-event-slider .slick-prev,
    .mmc-event-slider .slick-next {
        width: 28px;
        height: 28px;
    }
    
    .mmc-event-slider .slick-prev:before,
    .mmc-event-slider .slick-next:before {
        font-size: 14px;
    }
    
    .mmc-event-slide-nav {
        padding-bottom: 20%;
    }
    
    .mmc-event-slider-nav .slick-track {
        margin-left: 0;
    }
}

/* Formular-Layout für Kontaktfelder */
.mmc-event-registration-form .mmc-event-form-row.contact-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Nur Nachrichtenfeld soll die volle Breite nutzen */
.mmc-event-registration-form .mmc-event-form-row.contact-fields .mmc-event-form-group:last-child {
    grid-column: 1 / -1;
}

.mmc-event-registration-form .mmc-event-form-row.contact-fields .mmc-event-form-group {
    margin-bottom: 0;
}

.mmc-event-registration-form textarea {
    height: 120px;
    resize: vertical;
}

/* Wunschtermin-Feld Styling */
.mmc-event-registration-form input[type="date"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
        font-size: 16px;
    transition: all 0.3s ease;
}

.mmc-event-registration-form input[type="date"]:focus {
    outline: none;
    border-color: var(--e-global-color-secondary);
    box-shadow: 0 0 0 2px rgba(var(--e-global-color-secondary-rgb, 108, 92, 231), 0.2);
}

/* Responsive Anpassungen für Formular */
@media (max-width: 768px) {
    .mmc-event-registration-form .mmc-event-form-row.contact-fields {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}



/* Formular-Overlay für blockierte UI während der Anfrage */
.mmc-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.mmc-form-loader {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(var(--e-global-color-secondary-rgb, 108, 92, 231), 0.2);
    border-radius: 50%;
    border-top-color: var(--e-global-color-secondary, #6c5ce7);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Individueller Terminwunsch */
.mmc-event-custom-date {
    margin: 20px 0;
    text-align: center;
}
.mmc-event-custom-date #mmc_event_custom_date {
    display: inline-block;
}

.mmc-event-custom-date-info {
    margin-bottom: 15px;
    font-style: italic;
}

.mmc-custom-date-picker {
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.mmc-custom-date-picker:focus {
    outline: none;
    border-color: var(--e-global-color-secondary);
    box-shadow: 0 0 0 2px rgba(var(--e-global-color-secondary-rgb, 108, 92, 231), 0.2);
}

/* Radio-Buttons für Terminselektion ohne Standard-Auswahl */
.mmc-event-dates-grid input[type="radio"] {
    margin-right: 10px;
}

/* Extras Tooltip Styling */
.mmc-event-extras-tooltip {
    position: relative;
    display: inline-block;
}

.mmc-event-extras-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: var(--e-global-color-secondary, #6c5ce7);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mmc-event-extras-badge:hover {
    background-color: var(--e-global-color-primary, #4834d4);
    transform: translateY(-1px);
}

.mmc-event-extras-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-top: 0;
}

.mmc-event-extras-tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 250px;
    background-color: white;
    color: #333;
    text-align: left;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.mmc-event-extras-tooltip-content:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.mmc-event-extras-tooltip:hover .mmc-event-extras-tooltip-content {
    visibility: visible;
    opacity: 1;
    bottom: 135%;
}

.mmc-event-extras-tooltip-content h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--e-global-color-secondary, #6c5ce7);
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.mmc-event-extras-tooltip-list {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #666;
}

.mmc-event-extras-tooltip-list li {
    margin-bottom: 5px;
}

/* Mobile-Anpassungen für den Tooltip */
@media (max-width: 768px) {
    .mmc-event-extras-tooltip-content {
        position: fixed;
        top: 50%;
        left: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        max-width: 85vw;
        width: 300px;
        max-height: 70vh;
        overflow-y: auto;
        box-shadow: 0 5px 30px rgba(0, 0, 0, 0.25);
        z-index: 9999;
    }
    
    .mmc-event-extras-tooltip-content:after {
        display: none;
    }
    
    .mmc-event-extras-tooltip:hover .mmc-event-extras-tooltip-content {
        bottom: auto;
    }
    
    .mmc-event-extras-badge {
        padding: 3px 8px;
    }
}

/* Overlay für Mobile Tooltips */
.mmc-event-extras-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
} 