/**
 * Add-to-Homescreen-Banner — Sticky-Bottom-Bar mit Safe-Area.
 *
 * Spec: Docs/superpowers/specs/2026-04-26-pwa-mobile-design.md (S4)
 * Plan: Docs/superpowers/plans/2026-04-26-pwa-mobile-plan.md (Task 7)
 */

.a2hs-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    background: #1e293b;
    color: #f8fafc;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    font-family: inherit;
    border-top: 3px solid #fb7185;
}

.a2hs-banner[hidden] {
    display: none;
}

.a2hs-banner__content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 60rem;
    margin: 0 auto;
}

.a2hs-banner__icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
}

.a2hs-banner__text {
    flex: 1 1 auto;
    min-width: 0;
}

.a2hs-banner__text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.15rem;
}

.a2hs-banner__text p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #cbd5e1;
}

.a2hs-banner__install {
    flex: 0 0 auto;
    background: #fb7185;
    color: #1e293b;
    border: 0;
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    white-space: nowrap;
}

.a2hs-banner__install:hover,
.a2hs-banner__install:focus {
    background: #f43f5e;
    outline: 2px solid #fda4af;
    outline-offset: 2px;
}

.a2hs-banner__dismiss {
    flex: 0 0 auto;
    background: transparent;
    color: #cbd5e1;
    border: 0;
    width: 2rem;
    height: 2rem;
    line-height: 1;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
}

.a2hs-banner__dismiss:hover,
.a2hs-banner__dismiss:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

@media (max-width: 30rem) {
    .a2hs-banner__content {
        flex-wrap: wrap;
    }
    .a2hs-banner__text {
        flex-basis: calc(100% - 60px);
    }
    .a2hs-banner__install {
        order: 4;
        flex-basis: 100%;
    }
    .a2hs-banner__dismiss {
        order: 3;
    }
}

/* iOS-Modal-Variante (kein beforeinstallprompt) */
.a2hs-ios-modal {
    position: fixed;
    inset: 0;
    z-index: 9100;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.a2hs-ios-modal[hidden] {
    display: none;
}

.a2hs-ios-modal__dialog {
    background: #1e293b;
    color: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 22rem;
    width: 100%;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.a2hs-ios-modal__dialog h2 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.a2hs-ios-modal__dialog p {
    margin: 0 0 1rem;
    color: #cbd5e1;
    line-height: 1.4;
    font-size: 0.9rem;
}

.a2hs-ios-modal__close {
    background: #fb7185;
    color: #1e293b;
    border: 0;
    padding: 0.55rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}
