.expert-matcher-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.expert-matcher-form {
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.expert-matcher-form .input-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.expert-matcher-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    min-width: 0;
    height: 50px;
    transition: border-color 0.3s ease;
}

.expert-matcher-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.expert-matcher-button {
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    height: 50px;
    white-space: nowrap;
    font-weight: 500;
}

.expert-matcher-button:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .expert-matcher-form .input-group {
        flex-direction: column;
    }
    
    .expert-matcher-button {
        width: 100%;
    }
}

.expert-results-section {
    display: block;
    margin-top: 30px;
}

.expert-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    max-height: 600px;
    overflow-y: auto;
    min-height: 200px;
}

@media (max-width: 1200px) {
    .expert-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .expert-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .expert-cards-grid {
        grid-template-columns: 1fr;
    }
}

.experten-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e9ecef;
    box-sizing: border-box;
    width: 100%;
}

.experten-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.experten-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

.experten-box h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.experten-box .experten-button {
    display: inline-block;
    padding: 12px 25px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    margin-top: auto;
    transition: all 0.3s ease;
    font-size: 15px;
    min-width: 150px;
    text-align: center;
}

.experten-box .experten-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.expert-matcher-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9em;
}

.expert-matcher-loading {
    text-align: center;
    padding: 30px;
}

.elementor-loading-title {
    font-size: 18px;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-size: 1.1em;
}

.debug-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9em;
    color: #6c757d;
    white-space: pre-wrap;
}
