/* =====================================================
   PWA Installationshinweis
   ===================================================== */

.pwa-install-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;
    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.pwa-install-overlay.visible {
    display: flex;
}

.pwa-install-box {
    position: relative;

    width: 100%;
    max-width: 480px;
    max-height: 90vh;

    overflow-y: auto;

    box-sizing: border-box;

    padding: 28px 24px 24px;

    background: var(--surface);
    color: var(--text);

    border-radius: 18px;

    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);

    text-align: center;
}

.pwa-install-close {
    position: absolute;

    top: 10px;
    right: 10px;

    width: 34px;
    height: 34px;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.12);
    color: inherit;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-install-icon {
    font-size: 52px;
    line-height: 1;

    margin: 5px 0 16px;
}

.pwa-install-title {
    margin: 0 0 10px;

    color: var(--royal-blue-mid);

    font-size: 1.45rem;
}

.pwa-install-text {
    margin: 0 0 20px;

    line-height: 1.55;
    font-size: 0.95rem;
}

.pwa-install-steps {
    margin: 20px 0;

    padding: 0;

    list-style: none;

    text-align: left;
}

.pwa-install-step {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-bottom: 14px;
}

.pwa-install-step-number {
    flex-shrink: 0;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: var(--royal-blue);

    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
}

.pwa-install-step-text {
    padding-top: 3px;

    line-height: 1.45;
}

.pwa-install-button {
    width: 100%;

    margin-top: 8px;
    padding: 12px 18px;

    border: none;
    border-radius: 9px;

    background: var(--royal-blue);
    color: #fff;

    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;
}

.pwa-install-button:hover {
    opacity: 0.92;
}

.pwa-install-later {
    margin-top: 12px;

    padding: 8px;

    border: none;
    background: transparent;

    color: inherit;

    opacity: 0.7;

    cursor: pointer;
}

.pwa-install-ios-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 3px 7px;

    margin: 0 3px;

    border-radius: 6px;

    background: var(--surface-2);

    font-weight: 600;
}

@media (min-width: 700px) {
    .pwa-install-overlay {
        display: none !important;
    }
}