/*

 * FSS Progressive Web App - Installationsbanner und Anleitung.

 * Eigenes Praefix fss-pwa-, damit weder die Perfex-Oberflaeche noch das

 * Kundenportal beeinflusst werden.

 */



.fss-pwa-banner {

    position: fixed;

    left: 16px;

    right: 16px;

    bottom: 16px;

    z-index: 10500;

    display: flex;

    align-items: center;

    gap: 14px 12px;

    /* Umbrechen erlauben: sobald der Browser den Installationsknopf anbietet,

       stehen vier Schaltflaechen nebeneinander. Ohne Umbruch wuerde der Text

       dazwischen auf wenige Zeichen Breite zusammengedrueckt. */

    flex-wrap: wrap;

    max-width: 640px;

    margin: 0 auto;

    padding: 14px 16px;

    background: #fff;

    border: 1px solid #e2e2e2;

    border-radius: 14px;

    box-shadow: 0 8px 28px rgba(0, 0, 0, .18);

    font-family: inherit;

    opacity: 0;

    transform: translateY(14px);

    transition: opacity .25s ease, transform .25s ease;

}



.fss-pwa-banner-visible {

    opacity: 1;

    transform: translateY(0);

}



.fss-pwa-banner-icon {

    width: 46px;

    height: 46px;

    /* Feste Masse gegen Themeregeln wie "img { max-width: 100% }" absichern */

    min-width: 46px;

    max-width: 46px;

    min-height: 46px;

    max-height: 46px;

    border-radius: 10px;

    flex: 0 0 auto;

    object-fit: contain;

    background: #f6f6f6;

    display: block;

}



.fss-pwa-banner-icon-empty {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 26px;

    line-height: 1;

}



.fss-pwa-banner-text {

    flex: 1 1 240px;

    min-width: 200px;

    display: flex;

    flex-direction: column;

    gap: 2px;

}



.fss-pwa-banner-title {

    font-size: 14px;

    color: #1a1a1a;

    line-height: 1.35;

    overflow-wrap: break-word;

}



.fss-pwa-banner-body {

    font-size: 12.5px;

    color: #666;

    line-height: 1.4;

}



.fss-pwa-banner-actions {

    display: flex;

    align-items: center;

    gap: 8px;

    /* Darf umbrechen und auf eine eigene Zeile rutschen, statt den Text zu

       verdraengen. */

    flex: 1 1 auto;

    flex-wrap: wrap;

    justify-content: flex-end;

}



.fss-pwa-btn {

    font: inherit;

    font-size: 13px;

    line-height: 1.3;

    border-radius: 8px;

    padding: 8px 14px;

    cursor: pointer;

    border: 1px solid transparent;

    text-decoration: none;

    display: inline-block;

    white-space: nowrap;

    max-width: 100%;

}



.fss-pwa-btn-primary {

    background: var(--fss-pwa-color, #ee0000);

    color: #fff;

}



.fss-pwa-btn-primary:hover,

.fss-pwa-btn-primary:focus {

    filter: brightness(.92);

    color: #fff;

    text-decoration: none;

}



.fss-pwa-btn-ghost {

    background: #fff;

    border-color: #ddd;

    color: #444;

}



.fss-pwa-btn-link {

    background: none;

    border: none;

    color: #888;

    padding: 8px 4px;

    text-decoration: underline;

}



@media (max-width: 640px) {

    .fss-pwa-banner {

        flex-wrap: wrap;

        gap: 10px;

    }



    .fss-pwa-banner-actions {

        width: 100%;

        justify-content: space-between;

    }

}



/* ---- Anleitungsseite ---- */



.fss-pwa-guide {

    max-width: 780px;

}



.fss-pwa-guide-head {

    display: flex;

    align-items: center;

    gap: 16px;

    margin-bottom: 18px;

}



.fss-pwa-guide-head img {

    width: 64px;

    height: 64px;

    border-radius: 14px;

    object-fit: contain;

    background: #f6f6f6;

}



.fss-pwa-step {

    border: 1px solid #e6e6e6;

    border-radius: 12px;

    padding: 16px 18px;

    margin-bottom: 14px;

    background: #fff;

}



.fss-pwa-step h4 {

    margin: 0 0 8px;

    font-size: 15px;

    display: flex;

    align-items: center;

    gap: 8px;

}



.fss-pwa-step p {

    margin: 0;

    white-space: pre-line;

    line-height: 1.55;

    color: #444;

    font-size: 13.5px;

}



.fss-pwa-badge {

    display: inline-block;

    font-size: 11px;

    padding: 2px 8px;

    border-radius: 20px;

    background: #f2f2f2;

    color: #555;

}



.fss-pwa-note {

    font-size: 12.5px;

    color: #666;

    line-height: 1.55;

}



.fss-pwa-status {

    margin-left: 10px;

    font-size: 13px;

}

