body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    text-align: center;
    margin: 0;
    padding: 0;
    overflow: auto;
    position: relative;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/background.jpg') center center / cover no-repeat;
    z-index: -1;
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
}

h1 {
    color: #b22222;
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
    animation-delay: 2s;
}

.calendar {
    height: auto;
    display: grid;
    gap: 10px;
    max-width: 90%;
    margin: 20px auto;
    padding: 0;
    position: relative;
    z-index: 2;
}

/* Standardlayout für größere Bildschirme */
.calendar {
    grid-template-columns: repeat(6, 1fr);
}

/* Anpassung für Tablets im Querformat */
@media (max-width: 1024px) {
    .calendar {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Anpassung für Tablets im Hochformat und kleine Bildschirme */
@media (max-width: 768px) {
    .calendar {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Anpassung für Smartphones */
@media (max-width: 480px) {
    .calendar {
        grid-template-columns: repeat(2, 1fr);
    }
}

.door {
    background-color: #fff;
    border: 2px solid #b22222;
    border-radius: 10px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #b22222;
    cursor: pointer;
    position: relative;
    overflow: auto;
    transition: transform 0.3s, opacity 1s;
    opacity: 0;
}

.door:hover {
    transform: scale(1.05);
}

.door.opened {
    background-color: #b22222;
    color: #fff;
}

.modal {
    display: none;
    position: fixed;
    z-index: 3;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    text-align: center;
    border-radius: 10px;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.door.disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

.hearts-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: url('images/bg.jpg') center center / cover no-repeat;
    animation: fadeIn 2s ease-in-out;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 1s;
    z-index: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
