/* KOMPLETTES styleCalender34.css – DEIN CODE (bereinigt) + NEUE FEATURES */

.kalender-container{
    width: 100%;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#events-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}


h2{
    margin-bottom: 0px;
    width: 100%;
    align-items: start;
}

.event-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 15px;
    background: #f9f9f9;
    transition: box-shadow 0.3s;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    height: fit-content;
    gap: 15px;
    padding: 15px;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
}

@media (min-width: 1450px) {
    .event-item {
        max-width: 20vw;
    }
}

@media (max-width: 600px) {
    .event-item {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
}

.event-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.date-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(30,64,175,0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.date-day {
    font-size: 45px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.date-month {
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-content {
    flex: 1;
    min-width: 0;
}

.event-content h3 {
    margin: 0 0 8px 0;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 700;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.event-content p {
    margin: 4px 0 0 0;
    color: #64748b;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.toggle-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(59,130,246,0.4);
    transition: all 0.3s ease;
    width: fit-content;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.5);
}

/* === NEUE DOWNLOAD BLOCK + MODAL (KOMPLETT) === */
.kalender-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Mehr anzeigen Button mit Hover-Effekt nach rechts */
.more-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.more-container {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 30px;
    padding: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 160px;
    height: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(59,130,246,0.4);
    z-index: 10;
}

.more-container:hover {
    width: 290px;
    background: #fff ;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) ;
}

.more-icon {
    min-width: 160px;
    height: 54px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: transform 0.4s;
    z-index: 2;
    border-radius: 30px;
    font-weight: 700;
}

.more-icon span {
    transition: transform 0.4s;
}

.more-text {
    white-space: nowrap;
    padding: 0 15px 0 10px;
    font-weight: 600;
    color: #1d4ed8;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s 0.1s;
}

.more-container:hover .more-text {
    opacity: 1 ;
    transform: translateX(0) ;
}

.all-events-link {
    position: absolute;
    left: 80px;
    background: #f1f5f9;
    color: #1d4ed8;
    padding: 10px 20px 10px 40px;
    border-radius: 0 25px 25px 0;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    white-space: nowrap;
    border: 1px solid #cbd5e1;
    border-left: none;
}

.more-wrapper:hover .all-events-link {
    opacity: 1;
    transform: translateX(110px);
}

.all-events-link:hover {
    background: #e2e8f0;
    color: #1e40af;
}

.download-block {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 56px;
}

.download-block.expanded {
    max-height: 220px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.btn-main {
    gap: 12px;
    width: 100%;
    padding: 0 24px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    align-items: center;
    justify-content: center;
    height: 56px;
}


.menu-container {
    background: white;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s 0.1s;
}

.download-block.expanded .menu-container {
    opacity: 1;
    transform: translateY(0);
}

.menu-btn, .select-trigger {
    display: block;
    width: 100%;
    padding: 14px 28px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    color: #374151;
}

.menu-btn:hover, .select-trigger:hover {
    background: #f0f9ff;
    color: #1d4ed8;
    padding-left: 32px;
}

/* MODAL CHECKBOX */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-box {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,0.3);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 24px 28px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 20px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 32px;
    height: 32px;
}

.close-modal:hover {
    color: #ef4444;
}

.modal-body {
    padding: 20px 28px;
    max-height: 400px;
    overflow-y: auto;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.checkbox-item:hover {
    background: #e0f2fe;
    transform: translateX(4px);
}

.checkbox-item input {
    margin-top: 2px;
    transform: scale(1.2);
    accent-color: #3b82f6;
}

.checkbox-item input:checked + .checkbox-label {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.checkbox-label {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
}

.modal-footer {
    padding: 20px 28px 28px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-download-modal {
    padding: 14px 32px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-download-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.btn-cancel {
    padding: 14px 28px;
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
}

.btn-cancel:hover {
    background: #e5e7eb;
}

@media (max-width: 768px) {
    .container { padding: 20px; }
    .event-item { padding: 15px; }
    .download-block.expanded { max-height: 250px; }
    .modal-box { width: 95%; margin: 20px; }
    .modal-body { padding: 16px; }
}

.calenderSite.kalender-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.calenderSite#events-section #events-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    align-items: stretch;
    justify-content: center;
}

.calenderSite .event-item {
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    max-width: none;
}

@media (max-width: 1000px) {
    .calenderSite#events-section #events-list {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

.calenderSite {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 15px 0 40px 0;
}

.pagination button {
    padding: 6px 10px;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.pagination button:hover:not(.active) {
    background: #f0f0f0;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.pagination button.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
}

.today-dot {
    color: #ff0000;
    font-size: 0.9em;
    font-weight: bold;
    margin-right: 0.3em;
    height: 0.9em;
    width: 0.9em;
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.1; }
    100% { transform: scale(1); opacity: 1; }
}