/* ============================================================
   AL60 Behörden Plugin – Design V2
   Override-Schicht: AL60 V2 Tokens, geladen nach style.css
   ============================================================ */

/* ── Token-Override: V2-Farben einhängen ────────────────── */
#al60sb-wrap {
    --al60sb-accent:      var(--al60-primary, #1F6F5B);
    --al60sb-accent-dark: var(--al60-primary-dark, #145443);
    --al60sb-bg:          #FFFFFF;
    --al60sb-surface:     #F4EFE6;
    --al60sb-surface-alt: #F4EFE6;
    --al60sb-border:      #D8D3C7;
    --al60sb-primary:     #1F2933;
    --al60sb-muted:       #4B5563;
    --al60sb-radius:      10px;
    --al60sb-radius-lg:   16px;

    /* Schema-Tokens → AL60-Grün für alle Schemas */
    --sb-btn-bg:       var(--al60-primary, #1F6F5B);
    --sb-btn-hover:    var(--al60-primary-dark, #145443);
    --sb-kat-bg:       var(--al60-primary, #1F6F5B);
    --sb-kat-color:    #ffffff;
    --sb-badge-border: #D8D3C7;
    --sb-tag-border:   #D8D3C7;
    --sb-tag-color:    #4B5563;
    --sb-card-shadow:  0 6px 18px rgba(0,0,0,0.06);
    --sb-card-hover:   0 10px 28px rgba(31,111,91,0.12);

    font-size: 19px;
    color: #1F2933;
}

/* ── Filter-Bar ──────────────────────────────────────────── */
.al60sb-filter-bar {
    background: #FFFFFF;
    border: 1px solid #D8D3C7;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    gap: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.al60sb-filter-bar label {
    font-size: 17px;
    font-weight: 700;
    color: #1F2933;
    margin-bottom: 6px;
}

.al60sb-filter-bar input,
.al60sb-filter-bar select {
    min-height: 54px;
    font-size: 18px;
    border: 2px solid #D8D3C7;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    background: #FFFFFF;
    color: #1F2933;
}

.al60sb-filter-bar input:focus,
.al60sb-filter-bar select:focus {
    outline: 3px solid #005FCC;
    outline-offset: 3px;
    border-color: #005FCC;
}

/* ── Reset-Button ────────────────────────────────────────── */
#al60sb-reset {
    min-height: 54px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.7rem 1.5rem;
    background: var(--al60sb-accent);
    border: 2px solid var(--al60sb-accent);
    transition: background 0.18s ease, border-color 0.18s ease;
}

#al60sb-reset:hover,
#al60sb-reset:focus {
    background: var(--al60sb-accent-dark);
    border-color: var(--al60sb-accent-dark);
    outline: 3px solid #005FCC;
    outline-offset: 3px;
}

/* ── Ergebniszähler ──────────────────────────────────────── */
.al60sb-count-bar {
    font-size: 16px;
    color: #4B5563;
}

#al60sb-count {
    font-weight: 700;
    color: var(--al60sb-accent);
}

/* ── Karten-Grid ─────────────────────────────────────────── */
.al60sb-grid {
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* ── Karte ───────────────────────────────────────────────── */
.al60sb-card {
    background: #FFFFFF;
    border: 1px solid #D8D3C7;
    border-radius: 16px;
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    gap: 0.15rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.al60sb-card:hover {
    border-color: var(--al60sb-accent);
    box-shadow: 0 10px 28px rgba(31,111,91,0.12);
    transform: translateY(-2px);
}

/* ── Badges ──────────────────────────────────────────────── */
.al60sb-badge-reich {
    font-size: 13px;
    border-color: #D8D3C7;
    color: #4B5563;
    padding: 0.2rem 0.7rem;
}

.al60sb-badge-kat {
    font-size: 12px;
    background: var(--al60sb-accent);
    color: #fff;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
}

/* ── Titel ───────────────────────────────────────────────── */
.al60sb-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1F2933;
    margin: 0.5rem 0 0.4rem;
    line-height: 1.3;
}

/* ── Ort ─────────────────────────────────────────────────── */
.al60sb-ort {
    font-size: 15px;
    color: #4B5563;
    margin-bottom: 0.5rem;
}

/* ── Beschreibung ────────────────────────────────────────── */
.al60sb-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #1F2933;
    margin-bottom: 0.85rem;
}

/* ── Telefon ─────────────────────────────────────────────── */
.al60sb-tel {
    font-size: 16px;
    margin-bottom: 0.65rem;
}

.al60sb-tel a {
    color: var(--al60sb-accent);
    text-decoration: none;
    font-weight: 700;
}

.al60sb-tel a:hover {
    text-decoration: underline;
}

/* ── Tags ────────────────────────────────────────────────── */
.al60sb-tag {
    font-size: 11px;
    border-color: #D8D3C7;
    color: #4B5563;
    padding: 0.2rem 0.6rem;
}

/* ── Website-Button ──────────────────────────────────────── */
.al60sb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 0.85rem;
    padding: 0.75rem 1.25rem;
    background: var(--al60sb-accent);
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
    transition: background 0.18s ease;
}

.al60sb-btn:hover,
.al60sb-btn:focus {
    background: var(--al60sb-accent-dark);
    outline: 3px solid #005FCC;
    outline-offset: 3px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
    .al60sb-filter-bar {
        padding: 1.25rem;
    }

    #al60sb-reset {
        width: 100%;
    }

    .al60sb-grid {
        grid-template-columns: 1fr;
    }
}
