/**
 * CLAUDE: Lead-Magnet PDF Formular Styles
 * CLAUDE: Styling für das PDF-Bundle Download-Formular
 *
 * @package Loewenherzimmobilien
 */

/* CLAUDE: Container */
.lhi-pdf-lead-magnet {
    max-width: 600px;
    margin: 0 auto;
    padding: 2.5rem;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(59, 42, 26, 0.08);
    border: 1px solid #DCD7CE;
}

/* CLAUDE: Header */
.lhi-pdf-lead-magnet__header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.lhi-pdf-lead-magnet__title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #3B2A1A;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.lhi-pdf-lead-magnet__subtitle {
    font-size: 1rem;
    color: #594834;
    margin: 0;
}

/* ============================================
   CLAUDE: Interest-Auswahl Section
   CLAUDE: NEU: Selektierbare Cards mit Radio-Buttons
   ============================================ */

/* CLAUDE: Interest-Section Container */
.lhi-pdf-lead-magnet__interest-section {
    margin-bottom: 1.5rem;
}

/* CLAUDE: Label für Interest-Auswahl */
.lhi-pdf-lead-magnet__interest-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3B2A1A;
    margin: 0 0 0.75rem 0;
    text-align: center;
}

/* CLAUDE: Fehler-Zustand für Interest-Section */
.lhi-pdf-lead-magnet__interest-section.has-error .lhi-pdf-lead-magnet__interest-label {
    color: #B00020;
}

.lhi-pdf-lead-magnet__interest-section.has-error .lhi-pdf-lead-magnet__card {
    border-color: #B00020;
}

/* CLAUDE: Interest-Cards Grid */
.lhi-pdf-lead-magnet__interest-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

/* CLAUDE: Selektierbare Card (Label mit verstecktem Radio) */
.lhi-pdf-lead-magnet__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    background: #F6F4EF;
    border-radius: 8px;
    border: 2px solid #DCD7CE;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* CLAUDE: Versteckter Radio-Button */
.lhi-pdf-lead-magnet__card-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* CLAUDE: Card Content Wrapper */
.lhi-pdf-lead-magnet__card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* CLAUDE: Hover-Zustand */
.lhi-pdf-lead-magnet__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 42, 26, 0.1);
    border-color: #8a6b3f;
}

/* CLAUDE: SELECTED-Zustand (wenn Radio gecheckt) */
.lhi-pdf-lead-magnet__card-radio:checked + .lhi-pdf-lead-magnet__card-content {
    /* Content bleibt gleich */
}

.lhi-pdf-lead-magnet__card:has(.lhi-pdf-lead-magnet__card-radio:checked) {
    border-color: #8a6b3f;
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(138, 107, 63, 0.2);
}

/* CLAUDE: Checkmark (nur sichtbar wenn selected) */
.lhi-pdf-lead-magnet__card-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    background: #8a6b3f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.lhi-pdf-lead-magnet__card-check svg {
    width: 12px;
    height: 12px;
    color: #FFFFFF;
}

.lhi-pdf-lead-magnet__card:has(.lhi-pdf-lead-magnet__card-radio:checked) .lhi-pdf-lead-magnet__card-check {
    opacity: 1;
    transform: scale(1);
}

/* CLAUDE: Card Icon */
.lhi-pdf-lead-magnet__card-icon {
    width: 32px;
    height: 32px;
    color: #8a6b3f;
    margin-bottom: 0.5rem;
}

.lhi-pdf-lead-magnet__card-icon svg {
    width: 100%;
    height: 100%;
}

/* CLAUDE: Card Label (Rolle) */
.lhi-pdf-lead-magnet__card-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #3B2A1A;
    text-align: center;
    margin-bottom: 0.25rem;
}

/* CLAUDE: Card Description (Zusatzinfo) */
.lhi-pdf-lead-magnet__card-desc {
    font-size: 0.625rem;
    color: #8B7355;
    text-align: center;
}

/* CLAUDE: Formular */
.lhi-pdf-lead-magnet__form {
    margin-bottom: 1rem;
}

/* CLAUDE: Honeypot verstecken */
.lhi-pdf-lead-magnet__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* CLAUDE: Formular-Felder */
.lhi-pdf-lead-magnet__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* CLAUDE: E-Mail-Feld volle Breite */
.lhi-pdf-lead-magnet__fields--email {
    grid-template-columns: 1fr;
}

.lhi-pdf-lead-magnet__field--full {
    grid-column: 1 / -1;
}

.lhi-pdf-lead-magnet__field input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #DCD7CE;
    border-radius: 8px;
    background: #FFFFFF;
    color: #3B2A1A;
    transition: all 0.2s ease;
}

.lhi-pdf-lead-magnet__field input:focus {
    outline: none;
    border-color: #8a6b3f;
    box-shadow: 0 0 0 3px rgba(138, 107, 63, 0.15);
}

.lhi-pdf-lead-magnet__field input::placeholder {
    color: #8B7355;
}

.lhi-pdf-lead-magnet__field input.has-error {
    border-color: #B00020;
    background: #FDEBEC;
}

/* CLAUDE: Datenschutz-Checkbox */
.lhi-pdf-lead-magnet__privacy {
    margin-bottom: 1rem;
}

.lhi-pdf-lead-magnet__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #594834;
    line-height: 1.5;
}

.lhi-pdf-lead-magnet__checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #8a6b3f;
    cursor: pointer;
}

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

.lhi-pdf-lead-magnet__checkbox-text a:hover {
    color: #7C4A21;
}

/* CLAUDE: Submit-Button */
.lhi-pdf-lead-magnet__submit {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #FFFFFF;
    background: #8a6b3f;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.lhi-pdf-lead-magnet__submit:hover {
    background: #7C4A21;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(138, 107, 63, 0.3);
}

.lhi-pdf-lead-magnet__submit:active {
    transform: translateY(0);
}

.lhi-pdf-lead-magnet__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* CLAUDE: Loading Spinner */
.lhi-pdf-lead-magnet__spinner {
    width: 20px;
    height: 20px;
    animation: lhi-spin 1s linear infinite;
}

@keyframes lhi-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* CLAUDE: Erfolgs-Message */
.lhi-pdf-lead-magnet__success {
    text-align: center;
    padding: 2rem 1rem;
}

.lhi-pdf-lead-magnet__success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: #2E7D32;
}

.lhi-pdf-lead-magnet__success-icon svg {
    width: 100%;
    height: 100%;
}

.lhi-pdf-lead-magnet__success-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3B2A1A;
    margin: 0 0 0.75rem 0;
}

.lhi-pdf-lead-magnet__success-text {
    font-size: 1rem;
    color: #594834;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.lhi-pdf-lead-magnet__success-hint {
    margin: 0;
}

.lhi-pdf-lead-magnet__success-hint small {
    color: #8B7355;
    font-size: 0.875rem;
}

/* CLAUDE: Fehler-Message */
.lhi-pdf-lead-magnet__error {
    padding: 1rem;
    background: #FDEBEC;
    border: 1px solid #B00020;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.lhi-pdf-lead-magnet__error-text {
    color: #B00020;
    font-size: 0.875rem;
    margin: 0;
}

/* CLAUDE: Benefits */
.lhi-pdf-lead-magnet__benefits {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #F6F4EF;
}

.lhi-pdf-lead-magnet__benefit {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #594834;
}

.lhi-pdf-lead-magnet__benefit svg {
    color: #2E7D32;
    flex-shrink: 0;
}

/* ============================================
   CLAUDE: Style-Varianten
   ============================================ */

/* CLAUDE: Compact Style */
.lhi-pdf-lead-magnet--compact {
    padding: 1.5rem;
    max-width: 480px;
}

.lhi-pdf-lead-magnet--compact .lhi-pdf-lead-magnet__title {
    font-size: 1.375rem;
}

.lhi-pdf-lead-magnet--compact .lhi-pdf-lead-magnet__interest-cards {
    gap: 0.5rem;
}

.lhi-pdf-lead-magnet--compact .lhi-pdf-lead-magnet__card {
    padding: 0.75rem 0.25rem;
}

.lhi-pdf-lead-magnet--compact .lhi-pdf-lead-magnet__card-icon {
    width: 24px;
    height: 24px;
}

.lhi-pdf-lead-magnet--compact .lhi-pdf-lead-magnet__card-label {
    font-size: 0.6875rem;
}

.lhi-pdf-lead-magnet--compact .lhi-pdf-lead-magnet__fields {
    grid-template-columns: 1fr;
}

/* CLAUDE: Hero Style */
.lhi-pdf-lead-magnet--hero {
    max-width: 700px;
    padding: 3rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #F6F4EF 100%);
    box-shadow: 0 8px 40px rgba(59, 42, 26, 0.12);
}

.lhi-pdf-lead-magnet--hero .lhi-pdf-lead-magnet__title {
    font-size: 2rem;
}

.lhi-pdf-lead-magnet--hero .lhi-pdf-lead-magnet__subtitle {
    font-size: 1.125rem;
}

.lhi-pdf-lead-magnet--hero .lhi-pdf-lead-magnet__card {
    padding: 1.25rem 0.75rem;
}

.lhi-pdf-lead-magnet--hero .lhi-pdf-lead-magnet__card-icon {
    width: 40px;
    height: 40px;
}

.lhi-pdf-lead-magnet--hero .lhi-pdf-lead-magnet__card-label {
    font-size: 0.875rem;
}

/* ============================================
   CLAUDE: Responsive Design
   ============================================ */

@media (max-width: 640px) {
    .lhi-pdf-lead-magnet {
        padding: 1.5rem;
        margin: 0 1rem;
        border-radius: 10px;
    }

    .lhi-pdf-lead-magnet__title {
        font-size: 1.375rem;
    }

    .lhi-pdf-lead-magnet__subtitle {
        font-size: 0.9375rem;
    }

    .lhi-pdf-lead-magnet__interest-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }

    /* CLAUDE: Card-Beschreibung auf Mobile verstecken */
    .lhi-pdf-lead-magnet__card-desc {
        display: none;
    }

    .lhi-pdf-lead-magnet__fields {
        grid-template-columns: 1fr;
    }

    .lhi-pdf-lead-magnet__submit {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }

    .lhi-pdf-lead-magnet__benefits {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    /* CLAUDE: Hero auf Mobile */
    .lhi-pdf-lead-magnet--hero {
        padding: 1.5rem;
    }

    .lhi-pdf-lead-magnet--hero .lhi-pdf-lead-magnet__title {
        font-size: 1.5rem;
    }
}

@media (max-width: 400px) {
    .lhi-pdf-lead-magnet {
        padding: 1.25rem;
    }

    .lhi-pdf-lead-magnet__card {
        padding: 0.75rem 0.25rem;
    }

    .lhi-pdf-lead-magnet__card-icon {
        width: 28px;
        height: 28px;
    }

    .lhi-pdf-lead-magnet__card-label {
        font-size: 0.6875rem;
    }
}
