/* Zahnarzt Suche Plugin Styles */

/* Suchformular Container */
.zahnarzt-suche-container {
    max-width: 800px;
    margin: 20px 0;
}

/* Suchformular */
.zahnarzt-suche-form {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.zahnarzt-suche-form .form-row {
    margin-bottom: 15px;
}

.zahnarzt-suche-form label {
    display: inline-block;
    width: 100px;
    font-weight: bold;
    margin-right: 10px;
}

.zahnarzt-suche-form input[type="text"],
.zahnarzt-suche-form input[type="email"],
.zahnarzt-suche-form select {
    width: calc(100% - 120px);
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.zahnarzt-suche-form input[type="text"]:focus,
.zahnarzt-suche-form input[type="email"]:focus,
.zahnarzt-suche-form select:focus {
    outline: none;
    border-color: #0073aa;
}

/* Submit Button */
.zahnarzt-suche-submit {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.zahnarzt-suche-submit:hover {
    background-color: #005a87;
}

.zahnarzt-suche-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Ladeanimation */
.zahnarzt-suche-loading {
    text-align: center;
    padding: 20px;
}

.zahnarzt-suche-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ergebnisse Container */
.zahnarzt-suche-results {
    margin-top: 30px;
}

.zahnarzt-results-list h3 {
    color: #23282d;
    /* border-bottom: 2px solid #0073aa; */
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Einzelnes Ergebnis */
.zahnarzt-result-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.zahnarzt-result-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Hidden Results */
.zahnarzt-result-hidden {
    display: none;
}

/* FadeIn Animation für neu angezeigte Ergebnisse */
.zahnarzt-result-fadeIn {
    animation: fadeInResult 0.5s ease-in;
}

@keyframes fadeInResult {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zahnarzt-result-header h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #23282d;
    font-weight: 600;
}

.zahnarzt-firma {
    color: #666;
    font-style: italic;
    margin: 5px 0 15px 0;
}

.zahnarzt-result-body {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.zahnarzt-adresse {
    flex: 1;
    min-width: 200px;
}

.zahnarzt-kontakt {
    flex: 1;
    min-width: 200px;
}

.zahnarzt-adresse p,
.zahnarzt-kontakt p {
    margin: 5px 0;
    line-height: 1.5;
}

.zahnarzt-kontakt strong {
    display: inline-block;
    width: 60px;
}

.zahnarzt-kontakt a {
    color: #0073aa;
    text-decoration: none;
}

.zahnarzt-kontakt a:hover {
    text-decoration: underline;
}

/* Keine Ergebnisse */
.zahnarzt-no-results {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    color: #666;
}

/* Fehlermeldung */
.zahnarzt-error {
    background: #fff5f5;
    border: 1px solid #ffcccc;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    color: #d00;
}

/* Load More Button */
.zahnarzt-load-more-container {
    text-align: center;
    margin: 30px 0 20px 0;
}

.zahnarzt-load-more {
    background-color: #0073aa;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.zahnarzt-load-more:hover {
    background-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.zahnarzt-load-more:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Auto-Ergebnisse Container */
.zahnarzt-auto-ergebnisse-container {
    max-width: 800px;
    margin: 20px 0;
}

.zahnarzt-no-params {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .zahnarzt-suche-form label {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }
    
    .zahnarzt-suche-form input[type="text"],
    .zahnarzt-suche-form input[type="email"],
    .zahnarzt-suche-form select {
        width: 100%;
        max-width: none;
    }
    
    .zahnarzt-result-body {
        flex-direction: column;
        gap: 15px;
    }
    
    .zahnarzt-kontakt strong {
        display: block;
        width: auto;
    }
}