/* ============================================================
   newsletter.css — Hilfeweb.com Newsletter-Widget
   Schwebendes Popup für Newsletter-Anmeldung.
   ============================================================ */

#newsletter-widget {
    position: fixed;
    bottom: 110px;
    left: 24px;
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 99989;
    width: 340px;
    max-width: calc(100vw - 48px);
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    border-top: 5px solid #f5a623;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.4s, transform 0.4s;
}
#newsletter-widget.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: nl-pop-in 0.5s ease-out;
}
@keyframes nl-pop-in {
    0% { transform: translateY(30px) scale(0.9); opacity: 0; }
    60% { transform: translateY(-5px) scale(1.02); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.nl-close {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    line-height: 1;
    transition: all 0.2s;
}
.nl-close:hover {
    background: #f0f0f0;
    color: #d93025;
    transform: rotate(90deg);
}

.nl-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 8px;
    animation: nl-wave 2s ease-in-out infinite;
}
@keyframes nl-wave {
    0%, 100% { transform: rotate(-8deg); }
    50% { transform: rotate(8deg); }
}

#newsletter-widget h3 {
    color: #1a5a38;
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 700;
}

#newsletter-widget p {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 16px;
}
.nl-sub {
    display: block;
    margin-top: 4px;
    color: #888;
    font-size: 0.85rem;
}

#nl-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#nl-email {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    direction: ltr;
    text-align: left;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
#nl-email:focus { border-color: #1a7a4c; }

#nl-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1a7a4c 0%, #2d9560 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
#nl-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 122, 76, 0.4);
}
#nl-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.nl-status {
    font-size: 0.88rem;
    text-align: center;
    margin-top: 8px;
    min-height: 20px;
    line-height: 1.5;
}
.nl-status.ok {
    color: #1a7a4c;
    font-weight: 600;
}
.nl-status.err {
    color: #d93025;
}

.nl-privacy {
    margin-top: 12px;
    font-size: 0.75rem;
    text-align: center;
    color: #999;
}

/* Mobile */
@media (max-width: 480px) {
    #newsletter-widget {
        left: 12px;
        right: 12px;
        width: auto;
        bottom: 100px;
        padding: 20px 16px;
    }
}
