.wk-calendar-wrapper {
    max-width: 800px;
    margin: 30px auto;
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    position: relative;
}

.wk-calendar-bg {
    position: relative;
    width: 100%;
    padding-top: 70%; /* etwas breiter als hoch, wirkt moderner */
    background-color: #122032; /* Fallback-Farbe, falls kein Bild gesetzt */
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* größere Türchen: 4 Spalten, 6 Reihen */
    grid-template-rows: repeat(6, 1fr);
    gap: 10px;
    padding: 20px;
    box-sizing: border-box;
}

.wk-door {
    position: relative;
    cursor: default;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 8px rgba(0,0,0,0.45);
    transition:
        transform 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease,
        opacity 0.35s ease;
    backdrop-filter: blur(2px);
}

.wk-door.can-open {
    cursor: pointer;
    background: rgba(220, 20, 60, 0.8); /* weihnachtliches Rot */
}

.wk-door.can-open:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 18px rgba(0,0,0,0.55);
}

/* Während AJAX-Verarbeitung: Klick sperren */
.wk-door.wk-processing {
    pointer-events: none;
    opacity: 0.8;
}

/* Öffnungs-Animation (leichtes Aufklappen) */
.wk-door.opened-anim {
    animation: wk-door-open 0.6s ease forwards;
}

@keyframes wk-door-open {
    0% {
        transform: perspective(600px) rotateY(0deg);
    }
    40% {
        transform: perspective(600px) rotateY(-25deg);
    }
    70% {
        transform: perspective(600px) rotateY(10deg);
    }
    100% {
        transform: perspective(600px) rotateY(0deg);
    }
}

/* bereits geöffnet – farblich unterscheiden */
.wk-door.status-opened {
    background: rgba(0, 140, 60, 0.9);
    box-shadow: 0 6px 14px rgba(0,0,0,0.6);
}

.wk-door-number {
    z-index: 2;
    padding: 0 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

/* Heutiges Türchen hervorheben */
.wk-door.today {
    box-shadow: 0 0 0 3px gold, 0 10px 20px rgba(0,0,0,0.7);
}

/* Info-Meldung unter dem Kalender */
#wk-message {
    margin-top: 18px;
    padding: 12px 16px;
    min-height: 40px;
    border-radius: 8px;
    font-size: 15px;
    display: inline-block;
}

#wk-message.wk-success {
    background: #c7f5cb;
    color: #205b20;
}

#wk-message.wk-error {
    background: #ffd2d2;
    color: #7f0000;
}

@media (max-width: 600px) {
    .wk-calendar-wrapper {
        max-width: 100%;
        padding: 0 10px;
    }

    .wk-calendar-bg {
        padding: 15px;
        gap: 8px;
    }

    .wk-door {
        font-size: 18px;
    }
}
