* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: #114f19;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.calendar-container {
    text-align: center;
    width: 100%;
    max-width: 900px;
}

h1 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.calendar-bg {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* Seitenverhältnis 4:3 – anpassen je nach Bild */
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.door {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #c0392b, #8e1a1a);
    border: 3px solid #ffd700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffd700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
    transform: translate(-50%, -50%);
}

.door:hover:not(.locked):not(.opened) {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.door.locked {
    background: #2c2c2c;
    border-color: #a8a8a8;
    color: #a8a8a8;
    cursor: not-allowed;
    opacity: 0.6;
}

.door.opened {
    background: linear-gradient(135deg, #27ae60, #1a6b3c);
    border-color: #ffd700;
    color: #fff;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fffef5;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
}

.modal-content h2 {
    color: #114f19;
    margin-bottom: 15px;
}

.modal-content img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.modal-content p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-content a {
    display: inline-block;
    background: #c0392b;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.modal-content a:hover {
    background: #8e1a1a;
}

/* ─── Mobile Hochformat ─── */
@media (max-width: 600px) and (orientation: portrait) {
    body {
        padding: 10px;
        align-items: flex-start;
    }

    h1 {
        font-size: 1.4rem;
        margin-bottom: 2rem;
        margin-top: 4rem;
    }

    .calendar-bg {
        padding-bottom: 133%; /* Seitenverhältnis 3:4 – Hochformat */
    }

    .door {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
        border-width: 2px;
        border-radius: 8px;
    }

    .modal-content {
        padding: 20px;
        margin: 10px;
    }

    .modal-content img {
        max-height: 200px;
    }

    .modal-content h2 {
        font-size: 1.2rem;
    }

    .modal-content p {
        font-size: 0.9rem;
    }
}

/* ─── Mobile Querformat ─── */
@media (max-width: 900px) and (orientation: landscape) {
    .calendar-bg {
        padding-bottom: 60%;
    }

    .door {
        width: 44px;
        height: 44px;
        font-size: 0.95rem;
    }
}