/* =============================================================================
   lmb-paywall.css – Paywall-Modal & Navbar-Badge Styles
   ============================================================================= */

/* --- Paywall Overlay -------------------------------------------------------- */

#lmb-paywall {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lmb-paywall-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lmb-paywall-modal {
    position: relative;
    background: #141B2D;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: lmb-paywall-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lmb-paywall-in {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* --- Header ----------------------------------------------------------------- */

.lmb-paywall-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.lmb-paywall-ben {
    width: 80px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
}

.lmb-paywall-header h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #F8FAFC;
    margin: 0 0 0.5rem;
}

.lmb-paywall-header p {
    font-family: 'Outfit', sans-serif;
    color: #94A3B8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* --- Kauf-Optionen ---------------------------------------------------------- */

.lmb-paywall-options {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.lmb-paywall-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    gap: 0.15rem;
    width: 100%;
}

.lmb-paywall-btn--primary {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.lmb-paywall-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.lmb-paywall-btn--secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #F8FAFC;
}

.lmb-paywall-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.lmb-paywall-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.lmb-paywall-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
}

.lmb-paywall-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    opacity: 0.7;
}

/* --- Promo-Code ------------------------------------------------------------- */

.lmb-paywall-promo {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    align-items: center;
}

.lmb-paywall-promo input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #F8FAFC;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.lmb-paywall-promo input:focus {
    outline: none;
    border-color: #6366F1;
}

.lmb-paywall-promo input::placeholder {
    color: #475569;
}

.lmb-paywall-promo button {
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    border: 2px solid #6366F1;
    background: transparent;
    color: #F8FAFC;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lmb-paywall-promo button:hover:not(:disabled) {
    background: #6366F1;
}

.lmb-paywall-promo button:disabled {
    opacity: 0.5;
    cursor: default;
}

.lmb-promo-msg {
    width: 100%;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

/* --- Footer ----------------------------------------------------------------- */

.lmb-paywall-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 1rem;
    text-align: center;
}

.lmb-paywall-footer p {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: #94A3B8;
    margin: 0 0 0.4rem;
}

.lmb-paywall-footer a {
    color: #6366F1;
    text-decoration: none;
}

.lmb-paywall-footer a:hover {
    text-decoration: underline;
}

.lmb-paywall-footer small {
    font-size: 0.75rem;
    color: #64748B;
    line-height: 1.5;
    display: block;
}

/* --- Navbar Lizenz-Badge ---------------------------------------------------- */

#lmb-license-badge {
    list-style: none;
    display: flex;
    align-items: center;
}

.lmb-nav-badge {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    white-space: nowrap;
}

/* --- Responsiveness --------------------------------------------------------- */

@media (max-width: 480px) {
    .lmb-paywall-modal {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .lmb-paywall-header h2 {
        font-size: 1.3rem;
    }

    .lmb-paywall-price {
        font-size: 1.2rem;
    }
}

/* --- Footer-Timer-Badge ---------------------------------------------------- */

.lmb-footer-badge {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    background: rgba(20, 27, 45, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    color: #F8FAFC;
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.2s ease;
}

.lmb-footer-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.lmb-footer-icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.lmb-footer-tip {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: max-width 0.25s ease, opacity 0.25s ease;
}

.lmb-footer-badge:hover .lmb-footer-tip,
.lmb-footer-badge:focus-within .lmb-footer-tip {
    max-width: 280px;
    opacity: 1;
    padding-right: 0.25rem;
}

/* Farbakzent je Lizenzstatus */
.lmb-footer-badge[data-free="1"] {
    border-color: rgba(16, 185, 129, 0.4);
}

.lmb-footer-badge[data-licensed="1"] {
    border-color: rgba(99, 102, 241, 0.5);
}

.lmb-footer-badge[data-licensed="0"][data-free="0"] {
    border-color: rgba(251, 146, 60, 0.5);
    background: rgba(251, 146, 60, 0.08);
}

/* Touch-Geraete: Tooltip immer sichtbar (kein Hover moeglich) */
@media (hover: none) {
    .lmb-footer-tip {
        max-width: 160px;
        opacity: 0.85;
        white-space: normal;
        font-size: 0.72rem;
        line-height: 1.3;
        padding-right: 0.25rem;
    }
}

/* Etwas kompakter auf sehr kleinen Screens */
@media (max-width: 480px) {
    .lmb-footer-badge {
        bottom: 0.5rem;
        right: 0.5rem;
    }

    .lmb-footer-badge:hover .lmb-footer-tip {
        max-width: 200px;
    }
}
