/**
 * Umkreissuche CSS - Corporate Design
 * Datei: assets/css/umkreissuche.css
 */

/* Container */
.lohibw-umkreissuche {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.umkreissuche-container {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

/* Titel komplett entfernt */
.umkreissuche-titel {
    display: none !important;
}

/* Form - ohne grauen Hintergrund */
.umkreissuche-form {
    padding: 0;
    background: transparent;
}

.search-input-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333333;
    font-size: 16px;
}

.input-with-button {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.umkreissuche-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #bbbbbb;
    border-radius: 0;
    font-size: 16px;
    background: #fff;
    color: #333333;
    transition: border-color 0.3s ease;
}

.umkreissuche-input:focus {
    outline: none;
    border-color: #ffee00;
    box-shadow: 0 0 0 3px rgba(255, 238, 0, 0.2);
}

/* Button ohne Verlauf */
.umkreissuche-button {
    padding: 14px 24px;
    background: #ffee00;
    color: #333333;
    border: 2px solid #ffee00;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.umkreissuche-button:hover:not(:disabled) {
    background: #333333;
    color: #ffee00;
    border-color: #333333;
}

.umkreissuche-button:active:not(:disabled) {
    transform: translateY(1px);
}

.umkreissuche-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Icons entfernt */
.button-icon {
    display: none;
}

/* Status */
.search-status {
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid #bbbbbb;
    background: #f9f9f9;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #bbbbbb;
    border-top-color: #333333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Ergebnisse */
.umkreissuche-ergebnisse {
    padding: 30px 0;
}

.ergebnisse-titel {
    margin: 0 0 25px 0;
    padding: 20px 0;
    border-bottom: 2px solid #ffee00;
    color: #333333;
    font-size: 20px;
    font-weight: 600;
}

/* Beratungsstellen Cards */
.beratungsstelle-card {
    background: #fff;
    border: 1px solid #bbbbbb;
    border-radius: 0;
    margin-bottom: 20px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.beratungsstelle-card:hover {
    border-color: #333333;
}

.card-header {
    background: #f9f9f9;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #bbbbbb;
}

.beratungsstelle-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.beratungsstelle-name a {
    color: #333333;
    text-decoration: none;
    border-bottom: 1px dotted #bbbbbb;
    transition: border-color 0.3s ease;
}

.beratungsstelle-name a:hover {
    border-bottom-color: #333333;
}

/* Entfernung nur bei hervorgehobenen Beratungsstellen ausblenden */
.beratungsstelle-card.hervorgehoben .entfernung {
    display: none !important;
}

/* Entfernung bei normalen Suchergebnissen anzeigen */
.entfernung {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.card-content {
    padding: 20px;
}

.adresse {
    margin: 0 0 18px 0;
    line-height: 1.6;
    color: #333333;
}

.adresse strong {
    color: #333333;
    font-weight: 600;
}

.kontakt-info {
    margin: 18px 0;
}

.kontakt-info p {
    margin: 8px 0;
    color: #333333;
}

.kontakt-info a {
    color: #333333;
    text-decoration: none;
    border-bottom: 1px dotted #bbbbbb;
    transition: border-color 0.3s ease;
}

.kontakt-info a:hover {
    border-bottom-color: #333333;
}

/* E-Mail Adresse */
.lohibw-email a {
    color: #333333;
    text-decoration: none;
    border-bottom: 1px dotted #bbbbbb;
}

.lohibw-email a:hover {
    border-bottom-color: #333333;
}

/* Card Actions - nur ein Button */
.card-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #bbbbbb;
}

.details-link {
    display: none; /* Mehr Details Button ausblenden */
}

.website-link {
    padding: 12px 20px;
    background: #ffee00;
    color: #333333;
    border: 2px solid #ffee00;
    border-radius: 0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    flex: 1;
}

.website-link:hover {
    background: #333333;
    color: #ffee00;
    border-color: #333333;
}

/* Hervorgehobene Beratungsstellen Section */
.hervorgehobene-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #bbbbbb;
}

.hervorgehobene-titel {
    color: #333333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.hervorgehobene-beschreibung {
    color: #333333;
    margin-bottom: 25px;
    line-height: 1.6;
}

.beratungsstelle-card.hervorgehoben {
    border: 2px solid #ffee00;
    position: relative;
}

.beratungsstelle-card.hervorgehoben::before {
    content: none; display: none;
    position: absolute;
    top: 0;
    right: 0;
    background: #ffee00;
    color: #333333;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Fehler */
.umkreissuche-fehler {
    padding: 30px 0;
    text-align: center;
}

.fehler-message {
    background: #fff;
    border: 2px solid #333333;
    color: #333333;
    padding: 25px;
    display: inline-block;
    max-width: 500px;
}

.fehler-icon {
    display: none;
}

.fehler-text {
    display: block;
    margin-bottom: 15px;
}

.erneut-versuchen {
    margin-top: 15px;
    padding: 10px 20px;
    background: #333333;
    color: #ffee00;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.erneut-versuchen:hover {
    background: #ffee00;
    color: #333333;
}

/* Responsive */
@media (max-width: 768px) {
    .lohibw-umkreissuche {
        padding: 10px;
    }
    
    .input-with-button {
        flex-direction: column;
    }
    
    .umkreissuche-button {
        width: 100%;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .website-link {
        width: 100%;
    }
}

@media (max-width: 479px) {
    .umkreissuche-input {
        font-size: 16px; /* iOS Zoom verhindern */
    }
}