/* (Schule) Adventskalender: Deckblatt mit anklickbaren Türchen, Liste der geöffneten Türchen */

.schule-advent__cover {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.schule-advent__cover-image {
    display: block;
    width: 100%;
    height: auto;
}

/* Klickfläche über der Zahl: Kreis mit 10 % der Bildbreite, Mittelpunkt = Position der Zahl */
.schule-advent__door {
    position: absolute;
    width: 10%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

/* Geöffnete Türchen: weißer Ring mit dunklem Rand (sichtbar auf hellem und dunklem Grund) */
.schule-advent__door.is-open {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0, 0, 0, 0.6);
}

.schule-advent__door.is-open:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(0, 0, 0, 0.7);
}

.schule-advent__door.is-closed {
    cursor: default;
}

.schule-advent__door:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 7px #000;
}

/* Hinweis bei geschlossenen Türchen: unten am Bildschirmrand, unsichtbar solange leer */
.schule-advent__hint {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    z-index: 1050;
    transform: translateX(-50%);
    max-width: calc(100% - 2rem);
    margin: 0;
    text-align: center;
    font-weight: bold;
}

.schule-advent__hint:not(:empty) {
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    background: #212529;
    color: #fff;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.4);
}

.schule-advent__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 2rem 1.5rem;
    list-style: none;
    padding: 0;
}

.schule-advent__thumb img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #767676;
}

.schule-advent__thumb:focus-visible {
    outline: 3px solid #0069a0;
    outline-offset: 2px;
}
