/**
 * GroundX Kalender Styles
 * Version: 1.1 - MOBILE FIRST 56x56px
 * Datum: 21.11.2025
 */

/* ==============================================
   KALENDER-BUTTON - 56x56px WIE ALLE ANDEREN!
============================================== */
#gki-calendar-btn {
    background: #FF6B35;
    border: none;
    border-radius: 50%;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

#gki-calendar-btn svg {
    width: 28px !important;
    height: 28px !important;
}

#gki-calendar-btn:hover {
    background: #E85A25;
    transform: scale(1.05);
}

#gki-calendar-btn:active {
    transform: scale(0.95);
}

/* ==============================================
   KALENDER-MODAL ANPASSUNGEN
============================================== */
.gki-calendar-content {
    max-width: 900px !important;
    max-height: 90vh;
    overflow-y: auto;
}

.gki-calendar-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
}

/* ==============================================
   KALENDER-MONATE
============================================== */
.gki-calendar-month {
    margin-bottom: 40px;
}

.gki-calendar-month:last-child {
    margin-bottom: 0;
}

.gki-calendar-month-name {
    color: #FF6B35;
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #FF6B35;
}

.gki-calendar-sessions {
    display: grid;
    gap: 15px;
}

/* ==============================================
   KALENDER-SESSION CARDS
============================================== */
.gki-calendar-session {
    background: white;
    border: 2px solid #ddd;
    border-left: 5px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: default;
}

.gki-calendar-session:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.gki-capacity-low {
    border-left-color: #28a745;
}

.gki-capacity-medium {
    border-left-color: #ffc107;
}

.gki-capacity-high {
    border-left-color: #dc3545;
}

.gki-calendar-session .gki-session-date {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.gki-calendar-session .gki-session-time {
    font-size: 16px;
    font-weight: bold;
    color: #FF6B35;
    margin-bottom: 8px;
}

.gki-calendar-session .gki-session-location {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.gki-calendar-session .gki-session-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

.gki-full-badge {
    background: #dc3545;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.gki-attended-badge {
    background: #d4edda;
    color: #155724;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 12px;
    margin-top: 10px;
    font-weight: 500;
}

.gki-pending-badge {
    background: #fff3cd;
    color: #856404;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 12px;
    margin-top: 10px;
    font-weight: 500;
}

/* ==============================================
   MOBILE: KRITISCH! 56x56px ERZWINGEN!
============================================== */
@media (max-width: 768px) {
    .gki-calendar-content {
        max-width: 95% !important;
        margin: 20px;
    }
    
    .gki-calendar-body {
        padding: 15px;
    }
    
    .gki-calendar-month-name {
        font-size: 18px;
    }
    
    .gki-calendar-session {
        padding: 12px;
    }
    
    .gki-calendar-session .gki-session-time {
        font-size: 14px;
    }
    
    /* KRITISCH: Button 56x56px! */
    #gki-calendar-btn {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
    }
    
    #gki-calendar-btn svg {
        width: 28px !important;
        height: 28px !important;
    }
}

@media (max-width: 480px) {
    .gki-calendar-month-name {
        font-size: 16px;
    }
    
    .gki-calendar-session .gki-session-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .gki-calendar-body {
        padding: 10px;
    }
    
    /* KRITISCH: Button 56x56px auch auf kleinen Screens! */
    #gki-calendar-btn {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
    }
    
    #gki-calendar-btn svg {
        width: 28px !important;
        height: 28px !important;
    }
}

/* ==============================================
   KALENDER-MODAL SCROLLBAR
============================================== */
.gki-calendar-body::-webkit-scrollbar {
    width: 8px;
}

.gki-calendar-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.gki-calendar-body::-webkit-scrollbar-thumb {
    background: #FF6B35;
    border-radius: 4px;
}

.gki-calendar-body::-webkit-scrollbar-thumb:hover {
    background: #E85A25;
}

/* ==============================================
   TOUCH-OPTIMIERUNG
============================================== */
@media (hover: none) and (pointer: coarse) {
    #gki-calendar-btn {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
    }
    
    #gki-calendar-btn svg {
        width: 28px !important;
        height: 28px !important;
    }
    
    .gki-calendar-session {
        padding: 16px;
        min-height: 80px;
    }
}

/* ==============================================
   PRINT STYLES
============================================== */
@media print {
    #gki-calendar-btn {
        display: none !important;
    }
    
    .gki-calendar-session {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 10px;
    }
}