/* Allgemeine Styles */
.sum-calendar-widget {
    font-family: 'Roboto', Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.sum-calendar-widget h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.calendar-container {
    background-color: #AE7938;
    padding: 20px;
    padding-bottom: 30px; /* ✅ VERLÄNGERTE TRÄGERFLÄCHE für Event-Kacheln */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Kalender Navigation */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #AE7938;
    color: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.calendar-nav a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
    border-radius: 5px;
}

.prev-month,
.next-month {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    padding: 0 10px;
    cursor: pointer;
}

.current-month {
    text-align: center;
    flex-grow: 1;
    font-size: 30px; /* 25% größer als vorherige Größe (24px) */
}

/* ✅ UNTERE NAVIGATION: Kopie der oberen (die funktioniert perfekt!) */
.bottom-calendar-nav {
    display: flex;
    justify-content: space-between; /* ✅ GENAUSO wie oben */
    align-items: center;
    background-color: #AE7938;
    color: white;
    padding: 15px;
    border-radius: 0 0 8px 8px;
    margin-top: 15px;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.bottom-calendar-nav a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
    border-radius: 5px;
}

.bottom-calendar-nav .current-month {
    text-align: center;
    flex-grow: 1;
    font-size: 30px; /* 25% größer als vorherige Größe (24px) */
}

/* ✅ HELLE TRENNLINIE zwischen Navigation und Button */
.bottom-nav-separator {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 15px;
}

/* ✅ BUTTON-CONTAINER unter der Trennlinie */
.bottom-nav-button-container {
    background-color: #AE7938;
    padding: 15px 15px 10px 15px;
    border-radius: 0 0 8px 8px;
    text-align: center;
}

/* Stadt-Filter */
.city-filter {
    margin-bottom: 20px;
    padding: 10px 0;
}

.city-filter select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Kalender-Filter */
.calendar-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 0;
}

.calendar-filter {
    flex: 1;
    min-width: 0;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    -webkit-appearance: none; /* Verbesserte Darstellung auf iOS */
    appearance: none;
}

/* Hover-Effekt für Filter */
.calendar-filter:hover {
    border-color: #AE7938;
}

/* Aktiver Filter-Zustand */
.calendar-filter:focus {
    outline: none;
    border-color: #672A2B;
    box-shadow: 0 0 0 3px rgba(103, 42, 43, 0.25);
}

/* Kalender Listenansicht */
.calendar-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-events {
    text-align: center;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 5px;
    color: #666;
}

/* Event-Karten */
.event-card {
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    position: relative;
    overflow: hidden;
    display: flex;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
}

.event-card:last-child {
    margin-bottom: 0;
}

/* Vergangene Events */
.event-card.past-event {
    box-shadow: none !important;
    outline: 1px solid rgba(255, 255, 255, 0.3);
}

.event-card.past-event .event-location {
    text-shadow: none;
}

/* Schriftfarbe für ALLE Textelemente in abgelaufenen Events anpassen */
.event-card.past-event,
.event-card.past-event .event-weekday,
.event-card.past-event .event-day-number,
.event-card.past-event .event-time,
.event-card.past-event .event-location,
.event-card.past-event .event-district,
.event-card.past-event .event-venue,
.event-card.past-event .event-title,
.event-card.past-event .event-participants {
    color: #DBC8A4; /* Helles Beige/Gold statt weiß */
}

/* Aktiver Zustand für Event-Karte beim Klicken */
.event-card.clicked {
    transform: scale(0.98) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

/* Kalender-Import-Icon statt weißer Punkt - positioniert um Stadtteil-Überlappung zu vermeiden */
.event-card:not(.past-event)::after {
    content: '📅';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    z-index: 10;
}

.event-card:not(.past-event):hover::after {
    transform: scale(1.2);
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.9);
}

/* Event-Karte Hover-Effekt für nicht-vergangene Events */
.event-card:not(.past-event):hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35) !important;
    z-index: 2;
}

/* NICOLE'S STYLING: Checkbox schwarz statt blau + Mobile Fix */
#filter-hide-past-frontend {
    accent-color: #000000 !important; /* Moderne Browser */
    color: #000000 !important; /* Fallback */
    min-width: 18px !important; /* Mobile Mindestgröße */
    min-height: 18px !important; /* Mobile Mindestgröße */
    cursor: pointer !important; /* Touch-freundlich */
}

/* Zusätzliche Checkbox-Styles für bessere Cross-Browser-Kompatibilität */
#filter-hide-past-frontend:checked {
    accent-color: #000000 !important;
    background-color: #000000 !important;
    border-color: #000000 !important;
}

/* KEIN Focus-Ring - Nicole's Wunsch */
#filter-hide-past-frontend:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Label auch touch-freundlich machen */
label[for="filter-hide-past-frontend"] {
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    padding: 8px !important; /* Größerer Touch-Bereich */
    margin: -8px !important; /* Negative Margin um Optik zu erhalten */
}

/* Mobile Optimierungen */
@media (max-width: 768px) {
    #filter-hide-past-frontend {
        min-width: 20px !important;
        min-height: 20px !important;
        transform: scale(1.2) !important; /* Größer auf Mobile */
    }
    
    /* ✅ REPARIERT: Event-Submit Button Mobile - VIEL KLEINER und dezenter */
    .sum-calendar-event-submit-btn {
        padding: 8px 16px !important; /* ✅ VIEL KLEINER für Mobile */
        font-size: 14px !important; /* ✅ KLEINERE Schrift */
        min-height: 40px !important; /* ✅ KOMPAKTER */
        width: auto !important;
        display: inline-block !important;
        position: relative !important;
        
        /* ✅ LANGSAMERE Animation für Mobile */
        animation: colorRhythm 12s infinite ease-in-out !important;
        
        /* ✅ DEZENTERER Schatten für Mobile */
        box-shadow: 0 3px 10px rgba(103, 42, 43, 0.3), 
                    0 2px 5px rgba(0, 0, 0, 0.1) !important;
        
        z-index: 999 !important;
        -webkit-tap-highlight-color: rgba(103, 42, 43, 0.3) !important;
        border: none !important;
        margin: 0 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }
    
    /* ✅ Mobile Touch-Feedback wie Desktop Hover */
    .sum-calendar-event-submit-btn:active,
    .sum-calendar-event-submit-btn.touched {
        background-color: #8B3636 !important;
        transform: translateY(-1px) scale(0.98) !important; /* Touch + Lift */
        animation-play-state: paused !important; /* Animation pausieren */
        
        /* ✅ DRAMATISCHER TOUCH-SCHATTEN wie Desktop */
        box-shadow: 0 8px 25px rgba(103, 43, 43, 0.6), 
                    0 4px 12px rgba(0, 0, 0, 0.25) !important;
    }
    
    label[for="filter-hide-past-frontend"] {
        padding: 12px !important; /* Noch größerer Touch-Bereich */
        margin: -12px !important;
    }
}

.event-day {
    width: 120px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    background-color: inherit;
}

.event-weekday {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.event-day-number {
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}

.event-time {
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.event-card .event-details {
    flex-grow: 1;
    padding: 15px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-card .event-location {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: normal;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.event-card .event-district {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: normal;
    display: block;
    width: 100%;
}

.event-card .event-venue {
    font-size: 18px;
    margin-bottom: 5px;
    line-height: normal;
}

.event-card .event-title {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: normal;
    color: white; /* Standard: weiß für normale Events */
}

.event-card .event-participants {
    font-size: 16px;
    font-weight: bold;
    margin-top: 5px;
}

/* Modal - Vereinfacht ohne Widget-Dopplung */
.sum-calendar-widget .modal,
#event-modal.modal,
#submit-event-modal.modal {
    display: none;
    position: fixed !important;
    z-index: 99999999 !important; /* Extrem hoher z-index */
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow-y: auto !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    padding: 20px 0 !important;
    box-sizing: border-box !important;
}

.sum-calendar-widget .modal-content,
#submit-event-modal .modal-content {
    background-color: #D7B285 !important; /* ✅ BEIGE statt Grau */
    margin: 0 auto !important;
    padding: 0 !important;
    width: 80% !important;
    max-width: 800px !important;
    position: relative !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
    border-radius: 8px !important;
    min-height: auto !important;
}

#event-modal .modal-content {
    background-color: #000000 !important; /* ✅ SCHWARZ für Event-Modal */
    margin: 0 auto !important;
    padding: 0 !important;
    width: 80% !important;
    max-width: 800px !important;
    position: relative !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
    border-radius: 8px !important;
    min-height: auto !important;
}

/* Container für scrollbaren Inhalt - ✅ Nicole's Fix: Identische Rundung wie Modal */
.sum-calendar-widget .modal-scrollable-content,
#submit-event-modal .modal-scrollable-content {
    overflow: visible !important;
    background-color: #D7B285 !important; /* ✅ BEIGE statt Grau */
    border-radius: 8px 8px 0 0 !important; /* ✅ Angepasst an Modal-Rundung (2px → 8px) */
    overflow: hidden !important;
}

#event-modal .modal-scrollable-content {
    overflow: visible !important;
    background-color: #000000 !important; /* ✅ SCHWARZ für Event-Modal */
    border-radius: 8px 8px 0 0 !important; /* ✅ Angepasst an Modal-Rundung (2px → 8px) */
    overflow: hidden !important;
}

/* Wir ändern die Position des Schließ-Buttons für bessere Sichtbarkeit */
.sum-calendar-widget .close,
#event-modal .close,
#submit-event-modal .close {
    color: white !important;
    font-size: 36px !important;
    font-weight: bold !important;
    position: absolute !important;
    top: 5px !important;
    right: 10px !important;
    z-index: 99999999 !important;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.7) !important;
    cursor: pointer !important;
    /* ✅ KREIS ENTFERNT */
    background-color: transparent !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important; /* ✅ KEIN KREIS */
    line-height: 1 !important;
    opacity: 1 !important;
    text-decoration: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sum-calendar-widget .close:hover,
.sum-calendar-widget .close:focus,
#event-modal .close:hover,
#event-modal .close:focus,
#submit-event-modal .close:hover,
#submit-event-modal .close:focus {
    color: #ddd !important;
    text-decoration: none !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* Styles für offenes Modal und Körper */
body.modal-open {
    overflow: hidden !important;
    height: 100% !important;
}

/* Event Details im Modal - reduzierte Zeilenhöhen */
.sum-calendar-widget .modal-content .event-header,
#event-modal .modal-content .event-header {
    background-color: #000000 !important;
    color: white !important;
    padding: 10px 15px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-align: left !important;
    border: none !important; /* ✅ ALLE Borders entfernen (nicht nur bottom) */
    box-shadow: none !important; /* ✅ Auch Box-Shadow entfernen */
    position: sticky !important;
    top: 0 !important;
    z-index: 1 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    border-radius: 8px 8px 0 0 !important; /* ✅ Nicole's Fix: Angepasst an Modal-Rundung (2px → 8px) */
}

.sum-calendar-widget .modal-content .event-location,
#event-modal .modal-content .event-location,
.sum-calendar-widget .modal-content .event-district,
#event-modal .modal-content .event-district,
.sum-calendar-widget .modal-content .event-venue,
#event-modal .modal-content .event-venue,
.sum-calendar-widget .modal-content .event-participants-info,
#event-modal .modal-content .event-participants-info,
.sum-calendar-widget .unregistered-header,
#event-modal .unregistered-header {
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif !important;
}

.sum-calendar-widget .modal-content,
#event-modal .modal-content {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif !important;
}

.sum-calendar-widget .modal-content .event-location,
#event-modal .modal-content .event-location {
    background-color: #672A2B !important;
    color: white !important;
    padding: 6px 15px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    line-height: 1.0 !important;
    margin: 0 !important;
}

.sum-calendar-widget .modal-content .event-district,
#event-modal .modal-content .event-district {
    background-color: #672A2B !important;
    color: white !important;
    padding: 6px 15px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    line-height: 1.0 !important;
    margin: 0 !important;
}

.sum-calendar-widget .modal-content .event-venue,
#event-modal .modal-content .event-venue {
    background-color: #411B1B !important;
    color: white !important;
    padding: 6px 15px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    line-height: 1.0 !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
}

.sum-calendar-widget .modal-content .event-title,
#event-modal .modal-content .event-title {
    background-color: #000000 !important;
    color: white !important;
    padding: 6px 15px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    line-height: 1.0 !important;
    margin: 0 !important;
}

.sum-calendar-widget .modal-content .event-address,
#event-modal .modal-content .event-address {
    background-color: #411B1B !important;
    color: white !important;
    padding: 3px 15px 6px 15px !important;
    font-size: 14px !important;
    line-height: 1.0 !important;
    margin: 0 !important;
}

.sum-calendar-widget .modal-content .event-additional-info,
#event-modal .modal-content .event-additional-info {
    padding: 6px 15px !important;
    background-color: #000000 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    border-top: 1px solid #000000 !important;
    border-bottom: 1px solid #000000 !important;
    color: #ffffff !important;
    margin: 0 !important;
}

.sum-calendar-widget .modal-content .event-additional-info h4,
#event-modal .modal-content .event-additional-info h4 {
    display: none !important;
}

.sum-calendar-widget .modal-content .event-participants-info,
#event-modal .modal-content .event-participants-info {
    padding: 6px 15px !important;
    background-color: #CDD8DD !important;
    font-size: 14px !important;
    line-height: 1.0 !important;
    font-weight: bold !important;
    text-align: left !important;
    border-bottom: 1px solid #B0C4D0 !important;
    color: #000000 !important;
    margin: 0 !important;
}

/* Teilnehmerlisten */
.sum-calendar-widget .registered-participants,
#event-modal .registered-participants {
    list-style: none !important;
    counter-reset: participant-counter !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: transparent !important;
}

.sum-calendar-widget .registered-participants ul,
#event-modal .registered-participants ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style-type: none !important;
}

.sum-calendar-widget .registered-participants li,
#event-modal .registered-participants li {
    counter-increment: participant-counter !important;
    padding: 4px 15px !important; 
    font-family: 'Roboto', Arial, sans-serif !important;
    color: #000000 !important;
    line-height: 1.0 !important; 
    background: #CDD8DD !important;
    border-bottom: 1px solid #B0C4D0 !important;
    display: block !important;
    margin: 0 !important;
    text-align: left !important;
    font-size: 14px !important;
    font-weight: normal !important;
    text-decoration: none !important;
}

.sum-calendar-widget .registered-participants li:last-child,
#event-modal .registered-participants li:last-child {
    border-bottom: none !important;
}

.sum-calendar-widget .registered-participants li::before,
#event-modal .registered-participants li::before {
    content: counter(participant-counter) "." !important;
    margin-right: 10px !important;
    font-weight: normal !important;
    color: inherit !important;
    display: inline-block !important;
}

.sum-calendar-widget .registered-participants li.empty-slot,
#event-modal .registered-participants li.empty-slot {
    color: #999 !important;
    font-style: italic !important;
}

/* Abgemeldete Teilnehmer - reduzierte Zeilenhöhen */
.sum-calendar-widget .unregistered-header,
#event-modal .unregistered-header {
    background: #C0CED6 !important;
    color: #000000 !important;
    padding: 6px 15px !important;
    font-weight: bold !important;
    font-size: 14px !important;
    line-height: 1.0 !important;
    text-align: left !important;
    margin: 0 !important;
}

.sum-calendar-widget .unregistered-list,
#event-modal .unregistered-list {
    margin: 0 !important;
    padding: 0 !important;
}

.sum-calendar-widget .unregistered-list ul,
#event-modal .unregistered-list ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 10px !important;
}

.sum-calendar-widget .unregistered-list li,
#event-modal .unregistered-list li {
    padding: 4px 15px !important;
    background: #CDD8DD !important;
    font-family: 'Roboto', Arial, sans-serif !important;
    color: #000000 !important;
    line-height: 1.0 !important;
    border-bottom: 1px solid #B0C4D0 !important;
    font-style: italic !important;
    display: block !important;
    margin: 0 !important;
    text-align: left !important;
    font-size: 14px !important;
    font-weight: normal !important;
    text-decoration: none !important;
}

.sum-calendar-widget .unregistered-list li:last-child,
#event-modal .unregistered-list li:last-child {
    border-bottom: none !important;
}

/* Anmeldeformular */
.event-signup-form {
    padding: 11px !important;
    background: #A6B9C2 !important;
    border-top: 1px solid #8FA7B2 !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 1 !important;
    width: auto !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
}

.event-signup-form input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px; /* Verhindert Zoom auf iOS */
    -webkit-appearance: none; /* Verbesserte Darstellung auf iOS */
    appearance: none;
}

.participant-name {
    flex: 1 !important;
    min-width: 150px !important;
}

.participant-note {
    flex: 2 !important;
    min-width: 200px !important;
}

.event-signup-btn,
.event-unregister-btn {
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif !important;
}

.event-signup-btn {
    background: #672A2B !important;
    color: white !important;
    border: none !important;
    padding: 10px 15px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    margin-right: 10px !important;
    transition: all 0.3s !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: normal !important;
}

.event-unregister-btn {
    background: #365867 !important;
    color: white !important;
    border: none !important;
    padding: 10px 15px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    transition: all 0.3s !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: normal !important;
}

.event-signup-btn:hover {
    background: #8B4513 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

.event-unregister-btn:hover {
    background: #4A7A8C !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

/* Meldung bei vollem Event */
.event-full-message {
    background: #f8d7da !important;
    color: #721c24 !important;
    padding: 10px !important;
    margin-bottom: 10px !important;
    border-radius: 4px !important;
    text-align: center !important;
    font-weight: bold !important;
    font-size: 14px !important;
    line-height: normal !important;
}

/* Meldung bei vergangenem Event */
.event-past-message {
    background: #e2e3e5 !important;
    color: #383d41 !important;
    padding: 10px !important;
    margin: 15px 0 !important;
    border-radius: 4px !important;
    text-align: center !important;
    font-weight: bold !important;
    font-size: 14px !important;
    line-height: normal !important;
}

/* Benachrichtigungen */
.calendar-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
    max-width: 300px;
}

.calendar-notification.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.calendar-notification.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.calendar-notification.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Lade-Animation */
.loading-spinner {
    text-align: center;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner {
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top: 5px solid #672A2B;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.loading-spinner p {
    margin-top: 10px;
    color: #666;
}

/* Event-Einreichungs-Button */
.sum-calendar-event-submit-container,
.sum-calendar-event-submit-outside-container {
    text-align: center !important; /* ✅ Nicole: Zentriert für Desktop UND Mobile */
    margin: 20px 0 !important; /* ✅ Normaler Abstand für Button-Container */
}

/* ✅ FIREFOX-FIX: Event-Submit-Container Sichtbarkeits-Verstärkung */
#event-submit-container {
    display: none; /* Standard versteckt */
}

#event-submit-container.show,
#event-submit-container[style*="block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.sum-calendar-event-submit-inline {
    /* Firefox-spezifische Inline-Container-Regeln */
    display: block;
    text-align: center;
}

/* ✅ FESTER ABSTAND: Immer da, auch wenn Button versteckt ist */
.sum-calendar-bottom-spacer {
    height: 50px; /* ✅ GRÖSSERER Abstand nach unten */
    margin: 0;
    padding: 0;
}

.sum-calendar-event-submit-btn {
    color: white;
    border: none;
    padding: 13px 25px; /* Standard-Größe */
    font-size: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(103, 42, 43, 0.4), 
                0 3px 8px rgba(0, 0, 0, 0.15);
    animation: colorRhythm 12s infinite ease-in-out; /* ✅ HALB SO SCHNELL: 6s → 12s */
}

/* ✅ REPARIERT: Event-Submit Button in Navigation mit ursprünglicher Farbanimation */
.sum-calendar-event-submit-inline .sum-calendar-event-submit-btn {
    color: white;
    border: none;
    padding: 14px 29px; /* ✅ 10% KLEINER: 16px→14px, 32px→29px */
    font-size: 23px; /* ✅ 10% KLEINER: 26px→23px */
    border-radius: 9px; /* ✅ Proportional kleiner: 10px→9px */
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    
    /* ✅ LANGSAMERE FARBANIMATION */
    animation: colorRhythm 12s infinite ease-in-out;
    
    /* ✅ ANGEPASSTER SCHATTEN für kleineren Button */
    box-shadow: 0 7px 22px rgba(103, 42, 43, 0.5), 
                0 3px 10px rgba(0, 0, 0, 0.2);
    min-height: auto;
    
    /* ✅ FIREFOX-KOMPATIBILITÄT: Explizite Browser-Unterstützung */
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.sum-calendar-event-submit-inline .sum-calendar-event-submit-btn:hover {
    transform: translateY(-2px);
    /* ✅ DRAMATISCHER HOVER-SCHATTEN wie ursprünglich */
    box-shadow: 0 10px 30px rgba(103, 43, 43, 0.6), 
                0 5px 15px rgba(0, 0, 0, 0.25);
    /* ✅ Bei Hover: Animation pausieren und hellere Farbe */
    animation-play-state: paused;
    background-color: #8B3636 !important;
}

/* ✅ MOBILE: Untere Navigation genauso wie obere (funktioniert perfekt) */
@media (max-width: 768px) {
    .bottom-calendar-nav {
        display: flex;
        justify-content: space-between; /* ✅ GENAUSO wie obere Navigation */
        align-items: center;
        background-color: #AE7938;
        color: white;
        padding: 15px;
        border-radius: 0;
        margin-top: 15px;
        font-size: 24px;
        font-weight: bold;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }
    
    .bottom-calendar-nav a {
        color: white;
        text-decoration: none;
        font-size: 24px;
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 2px solid white;
        border-radius: 5px;
    }
    
    .bottom-calendar-nav .current-month {
        text-align: center;
        flex-grow: 1;
        font-size: 20px; /* ✅ Mobile-angepasst */
    }
    
    .bottom-nav-button-container {
        border-radius: 0 0 8px 8px; /* ✅ Rundung nur am Button-Container */
    }
    
    .sum-calendar-event-submit-inline .sum-calendar-event-submit-btn {
        font-size: 18px !important; /* ✅ 10% KLEINER für Mobile: 20px→18px */
        padding: 11px 18px !important; /* ✅ 10% KLEINER für Mobile: 12px→11px, 20px→18px */
        min-height: 45px !important; /* ✅ 10% KLEINER Touch-Target: 50px→45px */
    }
    
    .bottom-nav-button-container {
        padding: 12px 15px 9px 15px; /* ✅ Mobile: Unten halbiert 18px→9px */
    }
}

/* ✅ NEUE FARBANIMATION: Langsame Pulsation mit Nicole's Farben */
@keyframes colorRhythm {
    0% {
        background-color: #411B1B; /* Dunkelbraun/Rot */
    }
    33% {
        background-color: #11204F; /* Dunkelblau */
    }
    66% {
        background-color: #144424; /* ✅ DUNKLERES GRÜN: #27850D → #144424 */
    }
    100% {
        background-color: #411B1B; /* Zurück zu Dunkelbraun/Rot */
    }
}

.sum-calendar-event-submit-btn:hover {
    transform: translateY(-2px); /* ✅ Mehr Bewegung */
    /* ✅ DRAMATISCHER HOVER-SCHATTEN */
    box-shadow: 0 10px 30px rgba(103, 43, 43, 0.6), 
                0 5px 15px rgba(0, 0, 0, 0.25);
    /* ✅ Bei Hover: Animation pausieren und hellere Farbe */
    animation-play-state: paused;
    background-color: #8B3636 !important;
}

/* Modal-Titel */
#submit-event-modal h3 {
    margin-top: 0;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.calendar-widget {
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.calendar-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}

.calendar-list {
    margin-top: 20px;
}

/* Verbesserte Fehlermeldung */
.error-message {
    background-color: #ffeeee;
    color: #cc0000;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #ffcccc;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

/* Event-Vorschlagen-Modal - Spezifische Regeln */
#submit-event-modal {
    z-index: 99999999 !important;
}

#submit-event-modal .modal-content {
    background-color: #D7B285 !important; /* ✅ BEIGE statt Grau */
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 600px;
}

#submit-event-modal .submit-event-form {
    max-height: 70vh; /* ✅ NOCHMALS REDUZIERT: 75vh → 70vh */
    overflow-y: auto;
    padding: 0 10px;
}

/* Eingabefeld-Höhen reduzieren */
#submit-event-modal input,
#submit-event-modal textarea,
#submit-event-modal select {
    padding: 4px 6px !important; /* ✅ KOMPAKTER: 5px→4px, 8px→6px */
    height: 28px !important; /* ✅ NIEDRIGER: 30px → 28px */
    background-color: #F5E6D3 !important; /* Heller Beige-Ton */
    border: none !important;
    outline: none !important;
}

#submit-event-modal textarea {
    height: auto !important;
    min-height: 80px;
}

/* Abstand zwischen Feldern reduzieren */
#submit-event-modal .form-row,
#submit-event-modal .form-row-half {
    margin-bottom: 8px !important; /* ✅ KOMPAKTER: 10px → 8px */
}

/* Header-Stil anpassen */
#submit-event-modal .submit-event-form-container h3 {
    margin-top: 0;
    margin-bottom: 15px; /* ✅ KOMPAKTER: 20px → 15px */
    font-size: 22px; /* ✅ KLEINER: 24px → 22px */
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Feldbeschriftungen schwarz machen */
#submit-event-modal label {
    display: block;
    margin-bottom: 3px; /* ✅ KOMPAKTER: 5px → 3px */
    font-weight: 600;
    color: #333;
}

/* Hilfetext-Stil für Zusatzinformationen */
#submit-event-modal textarea#modal_event_additional_info {
    color: #7F7F7F !important;
    font-style: italic !important;
}

/* ✅ SCHWARZER SUBMIT-BUTTON rechtsbündig */
#submit-event-modal .submit-button {
    background-color: #000000 !important; /* ✅ SCHWARZ */
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    font-size: 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

#submit-event-modal .submit-button:hover {
    background-color: #333333 !important; /* ✅ Helleres Schwarz bei Hover */
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

/* ✅ ZENTRIERTER SUBMIT-BUTTON */
#submit-event-modal .form-row:nth-last-child(2) {
    text-align: center !important; /* ✅ Hinweistext zentriert */
    margin-bottom: 15px !important;
}

#submit-event-modal .form-row:nth-last-child(1) {
    text-align: center !important; /* ✅ BUTTON ZENTRIERT */
    margin-bottom: 0 !important;
}

#submit-event-modal .form-hint {
    margin: 0 !important;
    line-height: 1.4 !important;
}

#submit-event-modal .submit-button {
    margin: 0 auto !important; /* ✅ Button horizontal zentriert */
    width: auto !important;
    display: inline-block !important;
}

/* Anpassungen für Elementor/Theme-Kompatibilität */
.modal {
    visibility: visible !important;
}

/* Stellt sicher, dass Elementor-Footer unter dem Modal bleibt */
.elementor-location-footer,
.site-footer,
footer {
    z-index: 10 !important; /* Niedriger z-index als Modal */
    position: relative !important;
}

/* Footer ausblenden wenn Modal offen ist */
body.modal-open .elementor-location-footer,
body.modal-open .site-footer,
body.modal-open footer {
    z-index: -1 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* ✅ Nicole's Mobile-Fix: Events nutzen volle Breite auf Mobile */
    .sum-calendar-widget {
        max-width: none !important;
        margin: 0 !important;
        width: 100% !important;
        padding: 0 !important;    /* ✅ Nicole's Fix: Äußeres Widget-Padding weg */
    }
    
    /* ✅ Kalender-Container BEHÄLT sein Padding für Event-Kacheln */
    .calendar-container {
        padding: 20px !important;  /* ✅ ZURÜCK: Inneres Padding für Kacheln behalten */
    }
    
    .sum-calendar-widget .modal,
    #event-modal.modal,
    #submit-event-modal.modal {
        padding: 10px 0 !important;
    }
    
    .modal-content {
        width: 95% !important;
        margin: 0 auto !important;
        max-width: none !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        background-color: transparent !important;
    }
    
    .sum-calendar-widget .modal-scrollable-content,
    #event-modal .modal-scrollable-content,
    #submit-event-modal .modal-scrollable-content {
        border-radius: 12px 12px 0 0 !important; /* Identisch mit schwarzem Header-Bereich (Mobile) */
        overflow: hidden !important;
        background-color: #D7B285 !important; /* ✅ BEIGE auch für Mobile */
    }
    
    /* Event Header - normal positioning */
    .sum-calendar-widget .modal-content .event-header,
    #event-modal .modal-content .event-header {
        position: relative !important;
        top: auto !important;
        border-radius: 12px 12px 0 0 !important;
        padding: 12px 15px !important;
        line-height: 1.4 !important;
        border: none !important; /* ✅ Mobile: ALLE Borders entfernen */
        box-shadow: none !important; /* ✅ Mobile: Box-Shadow entfernen */
    }
    
    /* Zusätzliche Info - keine runden Ecken unten für nahtlosen Übergang */
    .sum-calendar-widget .modal-content .event-additional-info,
    #event-modal .modal-content .event-additional-info {
        border-top: 1px solid #000000 !important;
        border-bottom: 1px solid #000000 !important;
    }
    
    /* Mobile Event-Kacheln: Tag, Datum und Uhrzeit zentriert */
    .event-day {
        width: 100px !important;
        padding: 10px !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .event-weekday {
        font-size: 14px !important;
        margin-bottom: 3px !important;
        text-align: center !important;
    }
    
    .event-day-number {
        font-size: 28px !important;
        margin-bottom: 3px !important;
        text-align: center !important;
        line-height: 1 !important;
    }
    
    .event-time {
        font-size: 14px !important;
        text-align: center !important;
        margin-top: 0 !important;
    }
    
    /* Mobile Event-Details: Stadtteil klar getrennt */
    .event-card .event-details {
        padding-right: 50px !important; /* Platz für Kalender-Icon */
    }
    
    .event-card .event-location {
        font-size: 20px !important;
        font-weight: bold !important;
        margin-bottom: 3px !important;
        line-height: 1.1 !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
    }
    
    .event-card .event-district {
        font-size: 16px !important;
        margin-bottom: 8px !important;
        line-height: 1.1 !important;
        display: block !important;
        width: 100% !important;
        clear: both !important;
    }
    
    .event-card .event-venue {
        font-size: 16px !important;
        margin-bottom: 4px !important;
    }
    
    .event-card .event-title {
        font-size: 15px !important;
        margin-bottom: 8px !important;
    }
    
    /* Kalender-Icon auf Mobile: Größer und besser positioniert */
    .event-card:not(.past-event)::after {
        top: 8px !important;
        right: 8px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
        background-color: rgba(0, 0, 0, 0.8) !important;
    }
    
    /* Anmeldeformular - normal positioning */
    .event-signup-form {
        position: relative !important;
        bottom: auto !important;
        margin-top: 0 !important;
        border-radius: 0 0 12px 12px !important;
    }
    
    .event-signup-btn,
    .event-unregister-btn {
        width: 100%;
        margin-bottom: 10px !important;
        margin-right: 0 !important;
        padding: 15px !important;
        font-size: 18px !important;
        border-radius: 8px !important;
    }
    
    .day {
        min-height: 80px;
        font-size: 0.9em;
    }
    
    .event-marker {
        padding: 5px;
        margin-top: 15px;
    }
    
    /* Stellt sicher, dass Footer unter dem Modal bleibt */
    body.modal-open .elementor-location-footer,
    body.modal-open footer,
    body.modal-open .site-footer {
        visibility: hidden !important;
    }
    
    /* Nur Hintergrund-Scrolling verhindern */
    body.modal-open {
        overflow: hidden !important;
    }

    /* Schließen-Button für Mobile optimiert */
    .sum-calendar-widget .close,
    #event-modal .close,
    #submit-event-modal .close {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        background-color: rgba(0, 0, 0, 0.8) !important;
        color: white !important;
        font-size: 28px !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 20px !important;
        z-index: 1000 !important;
    }
    
    /* Explizite Überschreibung für Anmerkungen in mobiler Ansicht */
    .participant-note-display {
        background-color: transparent !important;
        font-size: 0.75em !important;
        font-weight: normal !important;
        display: inline-block;
    }
    
    /* Größere Touch-Ziele für Eingabefelder auf Mobilgeräten */
    .event-signup-form input[type="text"] {
        height: 48px !important;
        font-size: 16px !important;
        padding: 12px !important;
        margin-bottom: 15px !important;
        border-radius: 8px !important;
    }

    .calendar-filters {
        flex-direction: column;
    }
    
    .calendar-filter {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .weekday {
        font-size: 0.8em;
        padding: 5px;
    }
    
    .day {
        min-height: 60px;
        padding: 5px;
    }
    
    .event-title {
        font-size: 0.8em;
    }
}

/* Verbesserte Schriftdarstellung für Teilnehmerlisten */
.sum-calendar-widget .registered-participants li,
#event-modal .registered-participants li,
.sum-calendar-widget .unregistered-list li,
#event-modal .unregistered-list li {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

#submit-event-modal .form-hint {
    font-style: italic;
    color: #666;
    margin-top: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Teilnehmer-Notiz Styles - nur für Anzeige, Eingabefeld wurde entfernt */
.participant-note-display {
    font-style: italic;
    background-color: transparent !important;
    color: #000000 !important; /* Schwarz mit !important */
    padding: 0 2px;
    font-weight: normal;
    font-size: 0.9em;
    display: inline-block;
}

/* Nachricht für keine Filter-Ergebnisse */
.no-filter-results {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    color: #666;
    margin: 15px 0;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ✅ TEST-REGISTRIERUNGS-CONTAINER mit Text und Button */
.sum-calendar-test-registration-container {
    background-color: #FFFFFF !important; /* ✅ WEISS */
    border-radius: 10px !important; /* ✅ Rundecken */
    padding: 20px !important;
    margin: 25px auto !important; /* ✅ Zentriert mit Abstand */
    max-width: 800px !important; /* ✅ Gleiche Breite wie Kalender-Container */
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 100 !important;
    /* ✅ Dezenter Schatten für Tiefe */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* ✅ TEXT im Test-Container */
.sum-calendar-test-registration-text {
    color: #333333 !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
    text-align: left !important; /* ✅ Linkssbündig für bessere Lesbarkeit */
    font-family: inherit !important;
}

/* ✅ Button-Container im Test-Bereich */
.sum-calendar-test-registration-button-container {
    text-align: center !important;
}

.sum-calendar-test-registration-btn {
    background-color: #672b2b; /* ✅ Dunkles Rotbraun */
    color: white;
    border: none;
    padding: 12px 24px; /* Etwas kleiner als Event-Submit-Button */
    font-size: 18px; /* Etwas kleiner als Event-Submit-Button */
    border-radius: 8px;
    cursor: pointer !important;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: none;
    min-height: 50px; /* Etwas kleiner für Touch-Targets */
    position: relative !important;
    z-index: 200 !important; /* Sehr hoher z-index für sichere Klickbarkeit */
    pointer-events: auto !important; /* Explizit erlauben */
    
    /* ✅ Rotbrauner Schatten */
    box-shadow: 0 4px 15px rgba(103, 43, 43, 0.3), 
                0 2px 6px rgba(0, 0, 0, 0.15);
    
    /* ✅ Keine Animation - einheitlicher Look */
    animation: none;
}

.sum-calendar-test-registration-btn:hover {
    transform: translateY(-1px) scale(1.02);
    background-color: #8B3636 !important; /* ✅ Helleres Rotbraun bei Hover */
    
    /* ✅ Dramatischer rotbrauner Hover-Schatten */
    box-shadow: 0 8px 25px rgba(103, 43, 43, 0.5), 
                0 4px 12px rgba(0, 0, 0, 0.2);
}

.sum-calendar-test-registration-btn:active,
.sum-calendar-test-registration-btn.touched {
    background-color: #511f20 !important; /* ✅ Dunkleres Rotbraun bei Active */
    transform: scale(0.98) !important;
    
    /* ✅ Touch-Feedback Schatten */
    box-shadow: 0 3px 12px rgba(103, 43, 43, 0.4), 
                0 1px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Mobile Anpassungen für Test-Registration */
@media (max-width: 768px) {
    .sum-calendar-test-registration-container {
        margin: 20px 0 !important; /* ✅ KEIN Seitenabstand - zentriert wie Kalender */
        padding: 18px !important;
        max-width: 800px !important; /* ✅ GLEICHE Breite wie Kalender */
        width: 100% !important;
    }
    
    .sum-calendar-test-registration-text {
        font-size: 15px !important; /* ✅ Etwas kleinere Schrift auf Mobile */
        line-height: 1.4 !important;
        margin-bottom: 18px !important;
    }
    
    .sum-calendar-test-registration-btn {
        padding: 16px 28px !important; /* Mobile: Größer für Touch */
        font-size: 20px !important;
        min-height: 52px !important;
        width: auto !important;
        
        /* ✅ Keine Animation - konsistentes Design */
        animation: none !important;
    }
    
    .sum-calendar-test-registration-btn:active,
    .sum-calendar-test-registration-btn.touched {
        transform: scale(0.97) !important;
    }
}

/* ✅ Test-Registration-Modal Styles */
#test-registration-modal {
    display: none;
    position: fixed;
    z-index: 10001 !important; /* Höher als andere Modals */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

#test-registration-modal .modal-content {
    background-color: #E0C3A0; /* ✅ NEUE BEIGE FARBE */
    margin: 5% auto;
    padding: 20px;
    border: none;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10002 !important;
}

#test-registration-modal .close {
    color: #000 !important; /* ✅ SCHWARZ statt grau */
    float: right;
    font-size: 47px !important; /* ✅ 15% KLEINER (war 56px) */
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: -5px; /* ✅ ÜBER DEN TITEL POSITIONIERT */
    z-index: 10003 !important;
    line-height: 1 !important;
}

#test-registration-modal .close:hover,
#test-registration-modal .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Test-Registration Form Styles */
.sum-calendar-test-registration-form .form-row {
    margin-bottom: 15px;
}

.sum-calendar-test-registration-form .form-row-half {
    display: inline-block;
    width: 48%;
    margin-right: 2%;
    margin-bottom: 15px;
    vertical-align: top;
}

.sum-calendar-test-registration-form .form-row-half:nth-child(even) {
    margin-right: 0;
    margin-left: 2%;
}

.sum-calendar-test-registration-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.sum-calendar-test-registration-form input {
    width: 100% !important;
    padding: 6px !important; /* ✅ DEUTLICH REDUZIERTE HÖHE */
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    text-align: left !important; /* ✅ LINKS-BÜNDIG ERZWUNGEN */
    height: auto !important;
    min-height: 32px !important; /* ✅ FESTE MINDESTHÖHE */
    background-color: #FFFFFF !important; /* ✅ WEISSE EINGABEFELDER */
}

.sum-calendar-test-registration-form textarea {
    width: 100%;
    padding: 8.5px; /* ✅ TEXTAREA BLEIBT BEI 8.5px */
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    text-align: left; /* ✅ LINKS-BÜNDIG */
    background-color: #FFFFFF !important; /* ✅ WEISSE TEXTAREA */
}

.sum-calendar-test-registration-form input:focus,
.sum-calendar-test-registration-form textarea:focus {
    border-color: #ddd !important; /* ✅ KEINE FARBÄNDERUNG - GRAUE LINIE WEG */
    outline: none !important; /* ✅ KEIN OUTLINE */
    box-shadow: none !important; /* ✅ KEIN OUTLINE/SHADOW */
    border: 1px solid #ccc !important; /* ✅ NOCH HELLER */
}

.sum-calendar-test-registration-form button {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
}

.sum-calendar-test-registration-form button:hover {
    background: linear-gradient(135deg, #5CBF60 0%, #4CAF50 100%);
    transform: translateY(-1px);
}

.sum-calendar-test-registration-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .sum-calendar-test-registration-form .form-row-half {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }
    
    #test-registration-modal .modal-content {
        margin: 2% auto;
        width: 95%;
        padding: 15px;
        background-color: #E0C3A0 !important; /* ✅ MOBILE HINTERGRUND ERZWUNGEN */
        opacity: 1 !important; /* ✅ KEINE TRANSPARENZ */
    }
    
    #test-registration-modal {
        background-color: rgba(0, 0, 0, 0.7) !important; /* ✅ MOBILE OVERLAY ERZWUNGEN */
    }
}

/* ✅ ZUSÄTZLICHE SPEZIFISCHE REGELN FÜR ALLE EINGABEFELDER */
#test-registration-modal .sum-calendar-test-registration-form input[type="email"],
#test-registration-modal .sum-calendar-test-registration-form input[type="text"],
#test-registration-modal .sum-calendar-test-registration-form input[type="tel"] {
    padding: 6px !important;
    height: 32px !important;
    text-align: left !important;
    border: 1px solid #ccc !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: #FFFFFF !important; /* ✅ WEISSE EINGABEFELDER */
}

#test-registration-modal .sum-calendar-test-registration-form input[type="email"]:focus,
#test-registration-modal .sum-calendar-test-registration-form input[type="text"]:focus,
#test-registration-modal .sum-calendar-test-registration-form input[type="tel"]:focus {
    border: 1px solid #ccc !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ✅ SPEZIFISCH FÜR VORNAME UND NACHNAME */
#test-registration-modal input#test_reg_first_name,
#test-registration-modal input#test_reg_last_name {
    text-align: left !important;
    padding: 6px !important;
    height: 32px !important;
}