@media only screen and (max-width: 850px) {
  :root {
    --header-height: 60px;
    --tabbar-height: 75px;
  }

  /* Die fixierte Tab-Bar unten */
  .tab-bar {
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    height: 85px; /* Oder deine gewünschte Höhe */
    display: flex;
    justify-content: space-around;
    align-items: flex-start; /* Symbole oben in der Leiste halten */
    padding-top: 25px;
    border-top: 0px solid #ddd;
    z-index: 5000; /* Ganz wichtig! */
    padding-bottom: env(safe-area-inset-bottom); /* Platz für den Home-Balken beim iPhone */
  }


  .tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #8e8e93;
    font-size: 0.7rem;
  }
  .tab-item.active { color: #007AFF; }
  .tab-item i { font-size: 1.4rem; margin-bottom: 3px; }

}

html.pwa-video-open,
html.pwa-video-open body {
    overflow: hidden !important;
    touch-action: none;
}

.pwa-install-video-btn {
    width: 100%;
    min-height: 46px;
    margin: 16px 0 0;
    border: 0;
    border-radius: 16px;
    background: #007AFF;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 122, 255, 0.24);
}

.pwa-install-video-btn i {
    font-size: 1.05rem;
}

.pwa-install-video-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
}

.pwa-install-video-modal[hidden] {
    display: none !important;
}

.pwa-install-video-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.pwa-install-video-dialog {
    position: relative;
    z-index: 1;
    width: min(430px, 100%);
    border-radius: 26px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    animation: pwaVideoPop 0.28s ease-out both;
}

.pwa-install-video-close {
    position: absolute;
    top: -12px;
    right: -8px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #111;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
}

.pwa-install-help-video {
    width: 100%;
    max-height: min(78vh, 760px);
    display: block;
    object-fit: contain;
    border-radius: 20px;
    background: #000;
    cursor: pointer;
}

.pwa-install-video-hint {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 750;
    text-align: center;
}

@keyframes pwaVideoPop {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 420px) {
    .pwa-install-video-dialog {
        width: min(360px, 100%);
        border-radius: 22px;
        padding: 9px;
    }

    .pwa-install-help-video {
        border-radius: 17px;
        max-height: 74vh;
    }
}
