/* Öffnungszeiten / Erreichbarkeits-Popup – sitewide */

/* =====================================================
   Öffnungszeiten Overlay
   ===================================================== */

.opening-hours-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    box-sizing: border-box;
}

.opening-hours-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(10, 10, 10, 0.68);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.opening-hours-card {
    position: relative;
    z-index: 1;

    width: min(100%, 620px);

    box-sizing: border-box;

    padding: 36px;

    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 24px;

    background: rgb(24, 24, 24);
    color: whitesmoke;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35),
        0 4px 18px rgba(0, 0, 0, 0.18);

    animation: openingHoursIn 0.25s ease-out;
}

.opening-hours-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;

    font-size: 24px;
}

.opening-hours-content {
    min-width: 0;
}

.opening-hours-eyebrow {
    margin: 1px 0 8px;

    color: rgba(255, 255, 255, 0.62);

    font-size: 12px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.opening-hours-card h2 {
    margin: 0 36px 14px 0;

    color: white;

    font-size: clamp(24px, 3vw, 31px);
    font-weight: 500;
    line-height: 1.15;
}

.opening-hours-text {
    margin: 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 16px;
    line-height: 1.55;
}

.opening-hours-info {
    margin-top: 22px;
    padding: 14px 16px;

    display: flex;
    align-items: flex-start;
    gap: 10px;

    background: rgba(255, 255, 255, 0.06);

    border-radius: 10px;

    color: rgba(255, 255, 255, 0.9);

    font-size: 14px;
    line-height: 1.45;
}

.opening-hours-info i {
    margin-top: 3px;

    color: rgba(255, 255, 255, 0.68);
}

.opening-hours-confirm {
    margin-top: 24px;

    padding: 12px 18px;

    border: 0;
    border-radius: 9px;

    background: whitesmoke;
    color: rgb(15, 15, 15);

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        transform 0.18s ease;
}

.opening-hours-confirm:hover {
    background: white;
    transform: translateY(-1px);
}

.opening-hours-confirm:active {
    transform: translateY(0);
}

.opening-hours-close {
    position: absolute;

    top: 16px;
    right: 16px;

    width: 38px;
    height: 38px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.07);
    color: white;

    font-size: 17px;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        transform 0.18s ease;
}

.opening-hours-close:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: rotate(5deg);
}

.opening-hours-confirm:focus-visible,
.opening-hours-close:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}


/* Solange Overlay geöffnet ist */
body.opening-hours-overlay-open {
    overflow: hidden;
}


/* Ausblendanimation */
.opening-hours-overlay.is-closing {
    animation: openingHoursOverlayOut 0.18s ease forwards;
}


/* Animation */
@keyframes openingHoursIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes openingHoursOverlayOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}


/* =====================================================
   Mobile
   ===================================================== */

@media (max-width: 600px) {

    .opening-hours-overlay {
        padding: 16px;

        align-items: flex-end;
    }

    .opening-hours-card {
        width: 100%;

        grid-template-columns: 1fr;
        gap: 16px;

        padding: 25px 22px 22px;

        border-radius: 17px;
    }

    .opening-hours-icon {
        width: 48px;
        height: 48px;

        font-size: 20px;
    }

    .opening-hours-card h2 {
        margin-right: 24px;

        font-size: 24px;
    }

    .opening-hours-text {
        font-size: 15px;
    }

    .opening-hours-confirm {
        width: 100%;

        padding: 14px 18px;
    }

}
