/* experten.css – Experten-Übersicht & Detail */

/* ── Suchleiste (wiederverwendet von aussteller) ── */
.search-bar {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem 1.25rem .5rem;
}
.search-input {
    width: 100%;
    padding: .65rem 1rem .65rem 2.5rem;
    border: 2px solid var(--as-hellbeige);
    border-radius: 8px;
    background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239a8e87' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat .75rem center;
    color: var(--text);
    font-family: 'PT Sans', sans-serif;
    font-size: .95rem;
    transition: border-color .15s;
}
.search-input:focus {
    outline: none;
    border-color: var(--as-rot);
}
.search-input::placeholder { color: var(--text-light); }

/* ── Kategorie-Filter ── */
.kat-filters {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1.25rem .5rem;
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}
.kat-filter-btn {
    padding: .3rem .6rem;
    border: 1px solid var(--as-hellbeige);
    border-radius: 6px;
    background: var(--card);
    color: var(--text);
    font-family: 'PT Sans', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
}
.kat-filter-btn.active {
    background: var(--as-braun-dark);
    color: #fff;
    border-color: var(--as-braun-dark);
}
.kat-filter-btn:hover:not(.active) {
    border-color: var(--as-rot);
    color: var(--as-rot);
}

/* ── Ergebnis-Zähler ── */
.experten-count {
    max-width: 600px;
    margin: 0 auto;
    padding: .25rem 1.25rem .5rem;
    font-size: .78rem;
    color: var(--text-light);
    font-weight: 600;
}

/* ── Experten-Grid ── */
.experten-list {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1.25rem 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
}

/* ── Experten Card (Übersicht) ── */
.exp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card);
    padding: 1rem .75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: box-shadow .2s, border-color .2s, transform .1s;
    text-align: center;
}
.exp-card:hover {
    border-color: var(--as-rot);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.exp-card:active {
    transform: scale(.98);
}

/* ── Avatar ── */
.exp-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: .5rem;
    border: 2px solid var(--as-hellbeige);
    background: var(--as-hellbeige);
}
.exp-avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: .5rem;
    border: 2px solid var(--as-hellbeige);
    background: var(--as-braun-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'PT Sans', sans-serif;
    letter-spacing: .05em;
}

.exp-name {
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: .15rem;
}
.exp-firma {
    font-size: .72rem;
    color: var(--as-orange, #e08c3a);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: .2rem;
}
.exp-funktion {
    font-size: .72rem;
    color: var(--text-light);
    line-height: 1.3;
    margin-bottom: .3rem;
}
.exp-kategorie {
    font-size: .65rem;
    font-weight: 700;
    color: var(--as-rot);
    background: rgba(207,54,40,.08);
    padding: .15rem .45rem;
    border-radius: 4px;
    display: inline-block;
}
.exp-ws-kats {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin-top: .3rem;
}
.exp-ws-kats .kat-tag {
    font-size: .6rem;
    font-weight: 600;
    color: var(--text-light);
    background: rgba(0,0,0,.06);
    padding: .1rem .35rem;
    border-radius: 3px;
    white-space: nowrap;
}

/* ── Detail-Seite ── */
.exp-detail-card {
    max-width: 600px;
    margin: 1.5rem auto;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
}
.exp-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--as-braun-dark), #4a3f3a);
    color: #fff;
}
.exp-detail-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.25);
    background: var(--as-hellbeige);
    flex-shrink: 0;
}
.exp-detail-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'PT Sans', sans-serif;
    flex-shrink: 0;
}
.exp-detail-info {}
.exp-detail-name {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 .2rem;
    color: #fff;
}
.exp-detail-funktion {
    font-size: .85rem;
    color: var(--as-pfirsich);
    line-height: 1.3;
}
.exp-detail-kategorie {
    display: inline-block;
    margin-top: .35rem;
    font-size: .72rem;
    font-weight: 700;
    color: var(--as-orange);
    background: rgba(255,255,255,.12);
    padding: .15rem .5rem;
    border-radius: 4px;
}

.exp-detail-body {
    padding: 1.25rem;
}
.exp-detail-body h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--as-braun-dark);
    margin: 0 0 .5rem;
}
.exp-bio {
    font-size: .88rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1.25rem;
}
.exp-website {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: var(--as-rot);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.exp-website:hover {
    text-decoration: underline;
}

/* ── Workshop-Liste im Detail ── */
.exp-workshops {
    margin-top: .5rem;
}
.exp-ws-card {
    display: block;
    text-decoration: none;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .75rem .85rem;
    margin-bottom: .5rem;
    transition: border-color .15s, box-shadow .15s;
}
.exp-ws-card:hover {
    border-color: var(--as-rot);
    box-shadow: var(--shadow-sm);
}
.exp-ws-title {
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: .25rem;
}
.exp-ws-meta {
    font-size: .75rem;
    color: var(--text-light);
}
.exp-ws-meta span {
    margin-right: .6rem;
}

/* ── Back Header ── */
.exp-back-header {
    max-width: 600px;
    margin: 0 auto;
    padding: .75rem 1.25rem;
}
.exp-back-header a {
    color: var(--as-rot);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 700;
}
.exp-back-header a:hover {
    text-decoration: underline;
}

/* ── Empty / Loading ── */
.experten-list .loading,
.experten-list .empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 0;
    color: var(--text-light);
    font-size: .95rem;
}

/* ── Responsive ── */
@media (min-width: 480px) {
    .exp-avatar, .exp-avatar-placeholder { width: 72px; height: 72px; }
    .exp-name { font-size: .92rem; }
}
@media (max-width: 320px) {
    .experten-list { grid-template-columns: 1fr; }
}
