/**
 * Newsletter, Cookie Banner & Social Sharing Styles
 */

/* ==================== NEWSLETTER ==================== */
.newsletter-box {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    margin: 2rem 0;
}

.newsletter-box h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.newsletter-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: white;
    background: rgba(255,255,255,0.2);
}

.newsletter-form button {
    padding: 0.875rem 1.5rem;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.newsletter-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.newsletter-message {
    display: none;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.newsletter-message.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

.newsletter-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* Newsletter Compact (für Sidebar/Footer) */
.newsletter-compact {
    background: var(--gray-100);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
}

.newsletter-compact h4 {
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.newsletter-compact p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.newsletter-compact .newsletter-form {
    flex-direction: column;
}

.newsletter-compact .newsletter-form input {
    background: white;
    border-color: var(--gray-300);
    color: var(--gray-900);
}

.newsletter-compact .newsletter-form input::placeholder {
    color: var(--gray-500);
}

.newsletter-compact .newsletter-form button {
    background: var(--primary);
    color: white;
}

/* ==================== COOKIE BANNER ==================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    padding: 1.5rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h4 {
    margin-bottom: 0.5rem;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-banner-text h4 i {
    color: var(--primary);
}

.cookie-banner-text p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

.cookie-banner-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.875rem;
}

.cookie-btn-accept {
    background: var(--primary);
    color: white;
}

.cookie-btn-accept:hover {
    background: #1e40af;
}

.cookie-btn-settings {
    background: var(--gray-200);
    color: var(--gray-700);
}

.cookie-btn-settings:hover {
    background: var(--gray-300);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
}

.cookie-btn-reject:hover {
    background: var(--gray-100);
}

/* ==================== SOCIAL SHARING ==================== */
.social-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    border-top: 1px solid var(--gray-200);
    margin-top: 2rem;
}

.social-share-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.social-share-buttons {
    display: flex;
    gap: 0.5rem;
}

.social-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.social-share-btn.facebook { background: #1877f2; }
.social-share-btn.twitter { background: #1da1f2; }
.social-share-btn.linkedin { background: #0a66c2; }
.social-share-btn.whatsapp { background: #25d366; }
.social-share-btn.telegram { background: #0088cc; }
.social-share-btn.email { background: var(--gray-600); }
.social-share-btn.copy { background: var(--gray-500); }

.social-share-btn.copy.copied {
    background: #10b981;
}

/* Floating Social Share (für Artikel) */
.social-share-floating {
    position: fixed;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
}

@media (max-width: 1200px) {
    .social-share-floating {
        display: none;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input[type="email"] {
        min-width: 100%;
    }
}
