/* E-Mail und Telefonnummer Modal Styles */

/* Modal Overlay */
.email-phone-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.email-phone-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.email-phone-modal {
    width: 690px;
    height: 517px;
    background: var(--modal-background);
    border-radius: 20px;
    box-shadow: 0 8px 40px var(--modal-shadow);
    position: relative;
    font-family: var(--font-family);
    transform: scale(0.8) translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.email-phone-modal-overlay.show .email-phone-modal {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.email-phone-modal-header {
    padding: 24px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    flex-shrink: 0;
}

.email-phone-modal-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--primary-text);
    margin: 0;
    font-family: var(--font-family);
}

.email-phone-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    padding: 0;
}

.email-phone-modal-close:hover {
    background-color: #f5f5f7;
}

.email-phone-modal-close img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Modal Content */
.email-phone-modal-content {
    padding: 32px 24px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

/* Modal Icon */
.email-phone-modal-icon {
    width: 80px;
    height: 80px;
    background: #0071e3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.email-phone-modal-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

/* Modal Info */
.email-phone-modal-info {
    text-align: center;
    margin-bottom: 32px;
    max-width: 400px;
}

.email-phone-modal-info h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-text);
    margin: 0 0 8px 0;
    font-family: var(--font-family);
}

.email-phone-modal-info p {
    font-size: 14px;
    font-weight: 400;
    color: var(--secondary-text);
    line-height: 1.4;
    margin: 0;
}

/* Contact Lists */
.contact-section {
    width: 100%;
    max-width: 400px;
    margin-bottom: 24px;
}

.contact-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-text);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.add-contact-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    padding: 0;
    color: var(--button-primary);
}

.add-contact-btn:hover {
    background-color: #f5f5f7;
}

.add-contact-btn svg {
    width: 20px;
    height: 20px;
}

/* Contact Items */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.contact-item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--button-primary);
}

.contact-item-icon svg {
    width: 18px;
    height: 18px;
}

.contact-item-content {
    flex: 1;
    min-width: 0;
}

.contact-item-email {
    font-size: 15px;
    font-weight: 400;
    color: var(--primary-text);
    margin: 0;
    line-height: 1.3;
}

.contact-item-label {
    font-size: 13px;
    font-weight: 400;
    color: var(--secondary-text);
    margin: 0;
}

.contact-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.contact-action-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    color: var(--secondary-text);
}

.contact-action-btn:hover {
    background-color: #e9ecef;
}

.contact-action-btn svg {
    width: 16px;
    height: 16px;
}

/* Primary Email Indicator */
.contact-item.primary {
    background: #e8f4ff;
    border-color: #bee3f8;
}

.contact-item.primary .contact-item-label {
    color: var(--button-primary);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .email-phone-modal {
        width: 90vw;
        height: 80vh;
        max-width: 500px;
        margin: 20px;
    }
    
    .email-phone-modal-content {
        padding: 24px 20px 20px 20px;
    }
    
    .email-phone-modal-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .email-phone-modal-icon img {
        width: 35px;
        height: 35px;
    }
    
    .contact-section {
        max-width: 100%;
    }
    
    .contact-item {
        padding: 10px;
    }
    
    .contact-item-email {
        font-size: 14px;
    }
    
    .contact-item-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .email-phone-modal {
        width: 95vw;
        height: 85vh;
        border-radius: 16px;
    }
    
    .email-phone-modal-header {
        padding: 20px 20px 0 20px;
    }
    
    .email-phone-modal-title {
        font-size: 18px;
    }
    
    .email-phone-modal-content {
        padding: 20px 16px 16px 16px;
    }
    
    .email-phone-modal-info h3 {
        font-size: 16px;
    }
    
    .email-phone-modal-info p {
        font-size: 13px;
    }
} 