<!-- start Simple Custom CSS and JS -->
<style type="text/css">
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f2f2f2;
    text-align: center;
}

.title {
    margin-top: 20px;
    font-size: clamp(3rem, 4vw, 2.5rem);
    color: #081430;
}

/* -----------------------------
   Kalender-Hintergrund + Grid
----------------------------- */
#calendar-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    aspect-ratio: 9/12;
    position: relative;
}

#calendar-container {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 6px;
    padding: 10px;
}

/* -----------------------------
   Türchen
----------------------------- */
.calendar-door {
    background: rgba(139,0,0,0.8);
    color: white;
    font-size: 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s, background 0.3s;
}

.calendar-door.openable:hover {
    background: rgba(170,0,0,0.9);
    transform: scale(1.08);
}

.calendar-door.locked {
    background: rgba(80,80,80,0.6);
    cursor: not-allowed;
}

.calendar-door.pop {
    animation: popAnimation 0.35s ease-out;
}

@keyframes popAnimation {
    0% { transform: scale(1); }
    40% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* -----------------------------
   Modal
----------------------------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    justify-content: center;
    align-items: center;
    opacity: 0;
    z-index: 9999;
    transition: opacity 0.35s ease;
}

.modal.visible {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 90%;
    max-width: 350px;
    background: white;
    padding: 20px;
    border-radius: 14px;
    transform: scale(0.7);
    opacity: 0;
    animation: modalPop 0.35s ease forwards;
}

@keyframes modalPop {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-close {
    float: right;
    cursor: pointer;
    font-size: 1.5rem;
}

.modal-content input {
    width: 100%;
    margin-bottom: 12px;
    padding: 8px;
    box-sizing: border-box;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    background: #b30000;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.submit-btn:hover {
    background: #900000;
}

.modal-status {
    margin-top: 10px;
}
</style>
<!-- end Simple Custom CSS and JS -->
