/**
 * CLAUDE: Exposé-Modal Styles
 * CLAUDE: Styling für Lead-Generierungs-Modal mit Teaser-Daten
 * CLAUDE: Responsive: Desktop (2-Spalten) -> Mobile (1-Spalte)
 *
 * @package loewenherzimmobilien
 */

/* CLAUDE: =====================================================
   CLAUDE: MODAL CONTAINER & OVERLAY
   ===================================================== */

/* CLAUDE: Modal-Wrapper - fixiert, volle Seite */
.lhi-expose-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none; /* CLAUDE: Initial versteckt, JS zeigt es */
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

/* CLAUDE: Dunkler Overlay-Hintergrund */
.lhi-expose-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer; /* CLAUDE: Klick schließt Modal */
}

/* CLAUDE: Overlay sichtbar wenn Modal offen */
.lhi-expose-modal--open .lhi-expose-modal__overlay {
    opacity: 1;
}

/* CLAUDE: Body-Klasse um Scroll zu verhindern */
body.lhi-modal-open {
    overflow: hidden;
}

/* CLAUDE: =====================================================
   CLAUDE: MODAL CONTENT BOX
   ===================================================== */

/* CLAUDE: Content-Container - zentriertes weißes Fenster */
.lhi-expose-modal__content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* CLAUDE: Content sichtbar wenn Modal offen */
.lhi-expose-modal--open .lhi-expose-modal__content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* CLAUDE: =====================================================
   CLAUDE: CLOSE BUTTON
   ===================================================== */

/* CLAUDE: Schließen-Button oben rechts */
.lhi-expose-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.lhi-expose-modal__close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.lhi-expose-modal__close svg {
    width: 20px;
    height: 20px;
    color: #333;
}

/* CLAUDE: =====================================================
   CLAUDE: HEADER
   ===================================================== */

/* CLAUDE: Modal-Header mit Titel */
.lhi-expose-modal__header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e5e5;
    padding-right: 4rem; /* CLAUDE: Platz für Close-Button */
}

.lhi-expose-modal__title {
    font-family: var(--lhi-font-serif, Georgia, serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--lhi-color-dark-umber, #2c2416);
    margin: 0 0 0.25rem 0;
    letter-spacing: 0.02em;
}

.lhi-expose-modal__object-title {
    font-size: 0.95rem;
    color: var(--lhi-color-heritage-gold, #8a6b3f);
    margin: 0;
    font-weight: 500;
}

/* CLAUDE: =====================================================
   CLAUDE: BODY - ZWEI-SPALTEN-LAYOUT
   ===================================================== */

/* CLAUDE: Body mit Flexbox für 2 Spalten */
.lhi-expose-modal__body {
    display: flex;
    flex-wrap: wrap;
}

/* CLAUDE: Linke Spalte: Teaser-Daten */
.lhi-expose-modal__teaser {
    flex: 1 1 45%;
    min-width: 280px;
    padding: 1.5rem 2rem;
    background: #f9f9f9;
    border-right: 1px solid #e5e5e5;
}

/* CLAUDE: Rechte Spalte: Formular */
.lhi-expose-modal__form-wrapper {
    flex: 1 1 45%;
    min-width: 280px;
    padding: 1.5rem 2rem;
}

/* CLAUDE: =====================================================
   CLAUDE: TEASER-BEREICH (LINKE SPALTE)
   ===================================================== */

/* CLAUDE: Vorschaubild-Container */
.lhi-expose-modal__image {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

/* CLAUDE: Bild selbst */
.lhi-expose-modal__image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CLAUDE: Placeholder wenn kein Bild */
.lhi-expose-modal__image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
}

/* CLAUDE: Loading-State für Bild */
.lhi-expose-modal__image--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #e5e5e5;
    border-top-color: var(--lhi-color-heritage-gold, #8a6b3f);
    border-radius: 50%;
    animation: lhi-spin 0.8s linear infinite;
}

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

/* CLAUDE: Highlights-Titel */
.lhi-expose-modal__highlights-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

/* CLAUDE: Daten-Liste (3 Teaser-Felder) */
.lhi-expose-modal__data-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
}

.lhi-expose-modal__data-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.lhi-expose-modal__data-item:last-child {
    border-bottom: none;
}

.lhi-expose-modal__data-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--lhi-color-heritage-gold, #8a6b3f);
}

.lhi-expose-modal__data-label {
    font-size: 0.85rem;
    color: #666;
    flex-shrink: 0;
}

.lhi-expose-modal__data-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--lhi-color-dark-umber, #2c2416);
    margin-left: auto;
}

/* CLAUDE: =====================================================
   CLAUDE: GESPERRTE DATEN (BLUR-EFFEKT)
   ===================================================== */

/* CLAUDE: Container für gesperrte Daten */
.lhi-expose-modal__locked {
    position: relative;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

/* CLAUDE: Overlay mit Lock-Icon */
.lhi-expose-modal__locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 8px;
    z-index: 2;
}

.lhi-expose-modal__locked-overlay svg {
    width: 28px;
    height: 28px;
    color: var(--lhi-color-heritage-gold, #8a6b3f);
}

.lhi-expose-modal__locked-overlay span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

/* CLAUDE: Liste der gesperrten Features (verschwommen) */
.lhi-expose-modal__locked-list {
    list-style: none;
    padding: 0;
    margin: 0;
    filter: blur(3px);
    user-select: none;
}

.lhi-expose-modal__locked-list li {
    font-size: 0.85rem;
    color: #999;
    padding: 0.35rem 0;
}

/* CLAUDE: =====================================================
   CLAUDE: FORMULAR-BEREICH (RECHTE SPALTE)
   ===================================================== */

/* CLAUDE: Formular-Header */
.lhi-expose-modal__form-header {
    margin-bottom: 1.25rem;
}

.lhi-expose-modal__form-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--lhi-color-dark-umber, #2c2416);
    margin: 0 0 0.35rem 0;
}

.lhi-expose-modal__form-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* CLAUDE: Formular-Feld */
.lhi-expose-modal__field {
    margin-bottom: 1rem;
}

.lhi-expose-modal__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.35rem;
}

.lhi-expose-modal__label .required {
    color: #c62828;
}

/* CLAUDE: Input & Textarea */
.lhi-expose-modal__input,
.lhi-expose-modal__textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.lhi-expose-modal__input:focus,
.lhi-expose-modal__textarea:focus {
    outline: none;
    border-color: var(--lhi-color-heritage-gold, #8a6b3f);
    box-shadow: 0 0 0 3px rgba(138, 107, 63, 0.1);
}

.lhi-expose-modal__input::placeholder,
.lhi-expose-modal__textarea::placeholder {
    color: #aaa;
}

/* CLAUDE: Checkbox-Feld */
.lhi-expose-modal__field--checkbox {
    margin-top: 1.25rem;
}

.lhi-expose-modal__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
    line-height: 1.4;
}

.lhi-expose-modal__checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.lhi-expose-modal__checkbox-label a {
    color: var(--lhi-color-heritage-gold, #8a6b3f);
    text-decoration: underline;
}

/* CLAUDE: =====================================================
   CLAUDE: SUBMIT BUTTON
   ===================================================== */

.lhi-expose-modal__field--submit {
    margin-top: 1.5rem;
}

.lhi-expose-modal__submit {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--lhi-color-heritage-gold, #8a6b3f);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.lhi-expose-modal__submit:hover:not(:disabled) {
    background: #6d5532;
    transform: translateY(-1px);
}

.lhi-expose-modal__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* CLAUDE: Loading-State im Button */
.lhi-expose-modal__submit-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* CLAUDE: =====================================================
   CLAUDE: MELDUNGEN (ERFOLG/FEHLER)
   ===================================================== */

.lhi-expose-modal__message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.lhi-expose-modal__message--error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.lhi-expose-modal__message--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* CLAUDE: Footer-Hinweis */
.lhi-expose-modal__footer-note {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: 1rem;
}

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

/* CLAUDE: Tablet und kleiner */
@media (max-width: 768px) {
    .lhi-expose-modal {
        padding: 0.5rem;
    }

    .lhi-expose-modal__content {
        max-height: 95vh;
        border-radius: 8px;
    }

    .lhi-expose-modal__header {
        padding: 1rem 1.25rem;
        padding-right: 3rem;
    }

    .lhi-expose-modal__title {
        font-size: 1.25rem;
    }

    /* CLAUDE: Eine Spalte auf Mobile */
    .lhi-expose-modal__body {
        flex-direction: column;
    }

    .lhi-expose-modal__teaser {
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        padding: 1.25rem;
    }

    .lhi-expose-modal__form-wrapper {
        padding: 1.25rem;
    }

    /* CLAUDE: Kleineres Bild auf Mobile */
    .lhi-expose-modal__image {
        aspect-ratio: 16 / 9;
    }
}

/* CLAUDE: Sehr kleine Screens */
@media (max-width: 480px) {
    .lhi-expose-modal__close {
        width: 36px;
        height: 36px;
        top: 0.75rem;
        right: 0.75rem;
    }

    .lhi-expose-modal__header {
        padding: 0.9rem 1rem;
        padding-right: 2.5rem;
    }

    .lhi-expose-modal__title {
        font-size: 1.1rem;
    }

    .lhi-expose-modal__teaser,
    .lhi-expose-modal__form-wrapper {
        padding: 1rem;
    }

    .lhi-expose-modal__submit {
        padding: 0.8rem 1.25rem;
    }
}

/* CLAUDE: =====================================================
   CLAUDE: PREMIUM-CARD BUTTON FÜR EXPOSE
   ===================================================== */

/* CLAUDE: Expose-Button auf Premium-Karten */
.lhi-premium-card__cta--expose {
    /* CLAUDE: Gleiche Styles wie normale CTA, aber als Button */
    font-family: inherit;
    text-align: center;
}
