/**
 * CLAUDE: CSS für Lead-Gate und Lead-Formular
 * CLAUDE: Styles für geschützte Inhalte und Registrierung
 */

/* CLAUDE: =====================================================
 * CLAUDE: PROTECTED TEASER
 * CLAUDE: ===================================================== */

.lhi-protected-teaser {
    position: relative;
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
}

.lhi-protected-teaser__blur {
    padding: 30px;
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}

.lhi-protected-teaser__placeholder {
    color: #999;
    line-height: 2;
}

.lhi-protected-teaser__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255,255,255,0.95);
    padding: 40px;
}

.lhi-protected-teaser__icon {
    color: #8F2330;
    margin-bottom: 16px;
}

.lhi-protected-teaser__icon svg {
    width: 48px;
    height: 48px;
}

.lhi-protected-teaser__title {
    font-size: 20px;
    font-weight: 600;
    color: #23282d;
    margin: 0 0 8px;
}

.lhi-protected-teaser__text {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
    max-width: 400px;
}

.lhi-protected-teaser__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #8F2330;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.lhi-protected-teaser__button:hover {
    background: #6d1a24;
    color: #fff;
}

/* CLAUDE: =====================================================
 * CLAUDE: LEAD GATE
 * CLAUDE: ===================================================== */

.lhi-lead-gate {
    position: relative;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
}

.lhi-lead-gate__header {
    text-align: center;
    margin-bottom: 32px;
}

.lhi-lead-gate__title {
    font-size: 24px;
    font-weight: 700;
    color: #23282d;
    margin: 0 0 8px;
}

.lhi-lead-gate__subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.lhi-lead-gate__footer {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin: 20px 0 0;
}

/* CLAUDE: =====================================================
 * CLAUDE: LEAD FORM
 * CLAUDE: ===================================================== */

.lhi-lead-form {
    max-width: 500px;
    margin: 0 auto;
}

.lhi-lead-form__row {
    margin-bottom: 20px;
}

.lhi-lead-form__row:last-child {
    margin-bottom: 0;
}

.lhi-lead-form__field {
    position: relative;
}

.lhi-lead-form__field--error .lhi-lead-form__input,
.lhi-lead-form__field--error .lhi-lead-form__textarea {
    border-color: #dc3232;
}

.lhi-lead-form__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #23282d;
    margin-bottom: 6px;
}

.lhi-lead-form__label .required {
    color: #dc3232;
}

.lhi-lead-form__input,
.lhi-lead-form__textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.lhi-lead-form__input:focus,
.lhi-lead-form__textarea:focus {
    outline: none;
    border-color: #8F2330;
    box-shadow: 0 0 0 3px rgba(143, 35, 48, 0.1);
}

.lhi-lead-form__textarea {
    resize: vertical;
    min-height: 100px;
}

.lhi-lead-form__row--checkbox {
    margin-top: 24px;
}

.lhi-lead-form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
}

.lhi-lead-form__checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #8F2330;
}

.lhi-lead-form__checkbox-label a {
    color: #8F2330;
    text-decoration: underline;
}

.lhi-lead-form__checkbox-label a:hover {
    text-decoration: none;
}

.lhi-lead-form__row--submit {
    margin-top: 24px;
}

.lhi-lead-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #8F2330;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lhi-lead-form__submit:hover:not(:disabled) {
    background: #6d1a24;
}

.lhi-lead-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.lhi-lead-form__submit-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lhi-lead-form__submit-loading .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* CLAUDE: =====================================================
 * CLAUDE: FORM MESSAGE
 * CLAUDE: ===================================================== */

.lhi-lead-form__message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.lhi-lead-form__message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lhi-lead-form__message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* CLAUDE: =====================================================
 * CLAUDE: RESPONSIVE
 * CLAUDE: ===================================================== */

@media (max-width: 600px) {
    .lhi-lead-gate {
        padding: 24px 16px;
        margin: 24px 0;
    }

    .lhi-lead-gate__title {
        font-size: 20px;
    }

    .lhi-lead-gate__subtitle {
        font-size: 14px;
    }

    .lhi-protected-teaser__overlay {
        padding: 24px 16px;
    }
}
