/* ========== APP STORE BANNER (Gäste, Mobile-Browser) ========== */

.app-store-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--cookie-banner-offset, 0px);
    z-index: var(--z-fixed, 300);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    background: var(--card-bg, #1a1a2e);
    color: var(--text-primary, #f5f5f7);
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(100%);
    transition: transform 0.28s ease, bottom 0.28s ease;
    font-family: inherit;
}

.app-store-banner.show {
    transform: translateY(0);
}

.app-store-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: cover;
    background: var(--bg-secondary, #12121f);
}

.app-store-banner-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.app-store-banner-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.25;
    color: var(--text-primary, #f5f5f7);
}

.app-store-banner-subtitle {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.3;
    color: var(--text-secondary, #a0a0b8);
}

.app-store-banner-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--primary-color, #7c5cff);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.app-store-banner-cta:hover,
.app-store-banner-cta:focus-visible {
    filter: brightness(1.08);
    outline: 2px solid var(--primary-color, #7c5cff);
    outline-offset: 2px;
}

.app-store-banner-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary, #a0a0b8);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.app-store-banner-close:hover,
.app-store-banner-close:focus-visible {
    color: var(--text-primary, #f5f5f7);
    background: var(--bg-secondary, rgba(255, 255, 255, 0.08));
    outline: 2px solid var(--border-color, rgba(255, 255, 255, 0.2));
    outline-offset: 1px;
}

body.high-contrast .app-store-banner {
    border-top-width: 2px;
    border-top-color: var(--text-primary, #fff);
}

body.large-font .app-store-banner-title {
    font-size: 1.1rem;
}

body.large-font .app-store-banner-subtitle,
body.large-font .app-store-banner-cta {
    font-size: 0.95rem;
}

@media (min-width: 769px) {
    .app-store-banner {
        display: none !important;
    }
}
