/**
 * Lead Magnet - Optimized Layout & Typography
 * Datum: 2025-11-13
 * Problem: Professionelle Formatierung mit optimalen Abständen und Schriftgrößen
 * Layout: Desktop nebeneinander, Mobile übereinander
 */

/* ==========================================================================
   LEAD MAGNET SECTION - CONTAINER
   ========================================================================== */

.lead-magnet {
    padding: 5rem 2rem !important;
    background: linear-gradient(135deg,
        rgba(128, 0, 255, 0.03) 0%,
        rgba(99, 102, 241, 0.03) 100%) !important;
    position: relative !important;
}

/* Subtle background pattern */
.lead-magnet::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background:
        radial-gradient(circle at 20% 50%, rgba(128, 0, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.lead-magnet > .container {
    position: relative !important;
    z-index: 1 !important;
}

/* ==========================================================================
   LEAD MAGNET BOX - GLASSMORPHISM CARD
   ========================================================================== */

.lead-magnet-box {
    /* Layout: Grid mit 2 Spalten auf Desktop */
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 3rem !important;
    align-items: center !important;
    justify-items: stretch !important;

    /* Container */
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 2.5rem 3rem !important;

    /* Glassmorphism Design */
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;

    /* Border & Shadows */
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 28px !important;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;

    /* Animation */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.lead-magnet-box:hover {
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.12),
        0 5px 15px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
    transform: translateY(-3px) !important;
}

/* ==========================================================================
   LEAD MAGNET CONTENT (LINKE SEITE)
   ========================================================================== */

.lead-magnet-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    justify-content: center !important;
    align-items: flex-start !important;
}

/* Headline - Groß und auffällig */
.lead-magnet-content h3 {
    font-size: 2rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin: 0 0 0.5rem 0 !important;

    /* Gradient Text */
    background: linear-gradient(135deg, #8000ff 0%, #6366f1 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;

    /* Subtle text shadow for depth */
    filter: drop-shadow(0 2px 4px rgba(128, 0, 255, 0.1)) !important;
}

/* Beschreibungstext */
.lead-magnet-content p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #4b5563 !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

/* Benefits Liste */
.lead-magnet-benefits {
    list-style: none !important;
    padding: 0 !important;
    margin: 0.25rem 0 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.6rem !important;
}

.lead-magnet-benefits li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    color: #374151 !important;
    font-weight: 500 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Checkmark Styling */
.lead-magnet-benefits li::before {
    content: '✓' !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
    margin-top: 0.05rem !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25) !important;
}

/* ==========================================================================
   LEAD MAGNET FORM (RECHTE SEITE)
   ========================================================================== */

.lead-magnet-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
    justify-content: center !important;
}

/* Email Input Field */
.lead-magnet-form input[type="email"] {
    width: 100% !important;
    padding: 1rem 1.25rem !important;
    font-size: 1rem !important;
    font-weight: 400 !important;

    /* Border & Background */
    border: 2px solid rgba(128, 0, 255, 0.15) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;

    /* Text */
    color: #1f2937 !important;

    /* Animation */
    transition: all 0.3s ease !important;

    /* Display */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
}

.lead-magnet-form input[type="email"]::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

.lead-magnet-form input[type="email"]:hover {
    border-color: rgba(128, 0, 255, 0.25) !important;
}

.lead-magnet-form input[type="email"]:focus {
    outline: none !important;
    border-color: #8000ff !important;
    background: white !important;
    box-shadow:
        0 0 0 4px rgba(128, 0, 255, 0.08),
        0 4px 12px rgba(128, 0, 255, 0.12) !important;
}

/* Checkbox Label */
.lead-magnet-form .checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    margin: 0.25rem 0 !important;

    /* Display */
    visibility: visible !important;
    opacity: 1 !important;
}

.lead-magnet-form .checkbox-label input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    margin-top: 0.15rem !important;
    cursor: pointer !important;
    accent-color: #8000ff !important;
    flex-shrink: 0 !important;

    /* Display */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.lead-magnet-form .checkbox-label span {
    flex: 1 !important;
}

.lead-magnet-form .checkbox-label a {
    color: #8000ff !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

.lead-magnet-form .checkbox-label a:hover {
    color: #6000cc !important;
}

/* Submit Button */
.lead-magnet-form button[type="submit"],
.lead-magnet-form .btn-gradient {
    width: 100% !important;
    padding: 1.1rem 1.75rem !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;

    /* Background */
    background: linear-gradient(135deg, #8000ff 0%, #6366f1 100%) !important;
    color: white !important;

    /* Border & Radius */
    border: none !important;
    border-radius: 14px !important;

    /* Shadow */
    box-shadow:
        0 4px 16px rgba(128, 0, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;

    /* Interaction */
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;

    /* Display */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    /* Text */
    text-align: center !important;
    letter-spacing: 0.02em !important;
}

.lead-magnet-form button[type="submit"]:hover,
.lead-magnet-form .btn-gradient:hover {
    transform: translateY(-2px) !important;
    box-shadow:
        0 6px 24px rgba(128, 0, 255, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.lead-magnet-form button[type="submit"]:active,
.lead-magnet-form .btn-gradient:active {
    transform: translateY(0) !important;
    box-shadow:
        0 2px 8px rgba(128, 0, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Form Note */
.lead-magnet-form .form-note {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    color: #9ca3af !important;
    text-align: center !important;
    margin: 0.25rem 0 0 0 !important;
    font-weight: 400 !important;
}

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */

@media (max-width: 968px) {
    .lead-magnet-box {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        padding: 3rem !important;
    }

    .lead-magnet-content h3 {
        font-size: 2rem !important;
    }

    .lead-magnet-content p {
        font-size: 1.05rem !important;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    .lead-magnet {
        padding: 3rem 1.5rem !important;
    }

    .lead-magnet-box {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        padding: 2rem 1.5rem !important;
        border-radius: 20px !important;
    }

    .lead-magnet-content {
        text-align: left !important;
        gap: 1.25rem !important;
    }

    .lead-magnet-content h3 {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
    }

    .lead-magnet-content p {
        font-size: 1rem !important;
    }

    .lead-magnet-benefits li {
        font-size: 1rem !important;
    }

    .lead-magnet-form {
        gap: 1rem !important;
    }

    .lead-magnet-form input[type="email"] {
        padding: 1rem 1.25rem !important;
        font-size: 1rem !important;
    }

    .lead-magnet-form button[type="submit"] {
        padding: 1.1rem 1.75rem !important;
        font-size: 1.05rem !important;
    }
}

@media (max-width: 480px) {
    .lead-magnet {
        padding: 2.5rem 1rem !important;
    }

    .lead-magnet-box {
        padding: 1.75rem 1.25rem !important;
        gap: 2rem !important;
    }

    .lead-magnet-content h3 {
        font-size: 1.5rem !important;
    }

    .lead-magnet-content p {
        font-size: 0.95rem !important;
    }

    .lead-magnet-benefits li {
        font-size: 0.95rem !important;
        gap: 0.5rem !important;
    }

    .lead-magnet-benefits li::before {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        font-size: 0.75rem !important;
    }
}

/* ==========================================================================
   LOADING SPINNER (für Button Submit State)
   ========================================================================== */

.lead-magnet-form button[type="submit"][data-loading]::after {
    content: '' !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    margin-left: 8px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-top-color: white !important;
    border-radius: 50% !important;
    animation: spin 0.6s linear infinite !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   ACCESSIBILITY - HIGH CONTRAST MODE
   ========================================================================== */

@media (prefers-contrast: high) {
    .lead-magnet-box {
        border: 2px solid #8000ff !important;
    }

    .lead-magnet-form input[type="email"] {
        border-width: 2px !important;
    }

    .lead-magnet-form input[type="email"]:focus {
        border-width: 3px !important;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .lead-magnet {
        padding: 2rem 0 !important;
        background: none !important;
    }

    .lead-magnet-box {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid !important;
    }

    .lead-magnet-form button[type="submit"] {
        display: none !important;
    }
}
