/* programm.css – Programmübersicht & Detail-Seite */

/* ── Tab Bar ── */
.tab-bar {
    display: flex;
    background: var(--as-braun-dark);
    border-bottom: 3px solid var(--as-rot);
    padding: 0;
}
.tab {
    flex: 1;
    padding: .85rem 1rem;
    background: none;
    border: none;
    color: var(--as-beige);
    font-family: 'PT Sans', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: color .15s, background .15s;
    position: relative;
}
.tab.active {
    color: #fff;
    background: rgba(207,54,40,.15);
}
.tab.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--as-orange);
}
.tab:hover { color: #fff; }
.fav-count {
    display: inline-block;
    background: var(--as-rot);
    color: #fff;
    font-size: .7rem;
    padding: .1rem .45rem;
    border-radius: 10px;
    margin-left: .3rem;
    min-width: 1.2rem;
    text-align: center;
}
.fav-count:empty { display: none; }

/* ── Filter Bar ── */
.filter-bar {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem 1.25rem .5rem;
}
.day-filters {
    display: flex;
    gap: .5rem;
    margin-bottom: .75rem;
    flex-wrap: wrap;
}
.day-btn {
    flex: 1;
    min-width: 0;
    padding: .55rem .75rem;
    border: 2px solid var(--as-hellbeige);
    border-radius: 8px;
    background: var(--card);
    color: var(--text);
    font-family: 'PT Sans', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
}
.day-btn.active {
    background: var(--as-braun-dark);
    color: #fff;
    border-color: var(--as-braun-dark);
}
.day-btn:hover:not(.active) {
    border-color: var(--as-rot);
    color: var(--as-rot);
}
.filter-row {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
}
.filter-row .typ-filter,
.filter-row .ort-filter,
.filter-row .kat-filter {
    flex: 1 1 0;
    min-width: 0;
}
.typ-filter select,
.ort-filter select,
.kat-filter select {
    width: 100%;
    padding: .35rem .5rem;
    border: 1px solid var(--as-hellbeige);
    border-radius: 6px;
    background: var(--card);
    color: var(--text-light);
    font-family: 'PT Sans', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    appearance: auto;
}

/* ── Workshop-Liste ── */
.programm-main {
    min-height: 60vh;
}
.workshop-list {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1.25rem 3rem;
}
.loading {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-light);
    font-size: 1rem;
}

/* ── Day Divider ── */
.day-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.5rem 0 .75rem;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--as-dunkelrot);
}
.day-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--as-hellbeige);
}

/* ── Programm Card ── */
.prog-card {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    background: var(--card);
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: .65rem;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow .2s, border-color .2s;
    position: relative;
}
.prog-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--as-rot);
}
.prog-card-body {
    flex: 1;
    min-width: 0;
}
.prog-card .typ-badge {
    font-size: .6rem;
    padding: .15rem .5rem;
    margin-bottom: .35rem;
}
.prog-card-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--as-braun-dark);
    margin-bottom: .35rem;
    text-decoration: none;
}
.prog-card-title:hover {
    color: var(--as-rot);
}

/* Typ + Kategorien Zeile */
.typ-kat-row {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    align-items: center;
    margin-bottom: .35rem;
}
.kat-tag {
    display: inline-block;
    font-size: .6rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 4px;
    background: rgba(241, 136, 100, .15);
    color: var(--as-dunkelrot);
    text-transform: uppercase;
    letter-spacing: .02em;
}

.prog-card .meta-row {
    margin-top: .3rem;
    gap: .6rem;
    flex-wrap: wrap;
}
.prog-card .meta-item {
    font-size: .8rem;
}
.prog-card-desc {
    font-size: .8rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-top: .4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Card-Action Buttons (Fav + Share) ── */
.prog-card-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    flex-shrink: 0;
}
.fav-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    padding: .2rem;
    line-height: 1;
    opacity: .35;
    transition: opacity .15s, transform .15s;
    flex-shrink: 0;
}
.fav-btn:hover { opacity: .7; transform: scale(1.15); }
.fav-btn.active { opacity: 1; }
.fav-btn.active::after { content: ''; }
.share-ws-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: .2rem;
    line-height: 1;
    opacity: .3;
    transition: opacity .15s, transform .15s;
    flex-shrink: 0;
    color: var(--text);
}
.share-ws-btn:hover { opacity: .7; transform: scale(1.15); }
.share-ws-btn svg { display: block; }

/* ── Details Page ── */
.detail-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}
.detail-content h2 { font-size: 1.25rem; margin: 1.5rem 0 .6rem; color: var(--as-braun-dark); }
.detail-content h3 { font-size: 1.1rem; margin: 1.3rem 0 .5rem; color: var(--as-dunkelrot); }
.detail-content h4 { font-size: 1rem; margin: 1.2rem 0 .5rem; color: var(--as-warmgrau); font-weight: 700; }
.detail-content p { margin-bottom: .75rem; line-height: 1.6; }
.detail-content ul, .detail-content ol { margin: .5rem 0 1rem 1.5rem; }
.detail-content li { margin-bottom: .35rem; line-height: 1.5; }
.detail-content hr { border: none; height: 2px; background: var(--as-hellbeige); margin: 1.5rem 0; }
.detail-content blockquote {
    border-left: 4px solid var(--as-rot);
    padding: .75rem 1rem;
    margin: 1rem 0;
    background: rgba(207,54,40,.04);
    border-radius: 0 8px 8px 0;
}
.detail-content .callout {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    margin: .75rem 0;
}
.detail-content figure { margin: 1rem 0; }
.detail-content figure img { max-width: 100%; border-radius: 8px; }
.detail-content figcaption { font-size: .8rem; color: var(--text-light); margin-top: .4rem; text-align: center; }
.detail-content pre {
    background: var(--as-braun-dark);
    color: var(--as-pfirsich);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: .85rem;
    margin: .75rem 0;
}
.detail-content .video-embed {
    position: relative;
    padding-bottom: 56.25%;
    margin: 1rem 0;
}
.detail-content .video-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    border-radius: 8px;
}

/* ── Detail Action Buttons ── */
.detail-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.detail-actions .btn {
    flex: 1;
    min-width: 0;
    font-size: .9rem;
    padding: .7rem 1rem;
}

/* ── Empty State ── */
.workshop-list .empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
    font-size: .95rem;
    line-height: 1.6;
}

/* ── Result Count (Favoriten-Tab) ── */
.result-count {
    text-align: center;
    font-size: .8rem;
    color: var(--text-light);
    padding: .5rem 0;
    font-weight: 700;
}

/* ── Result Summary (bottom) ── */
.result-summary {
    text-align: center;
    font-size: .8rem;
    color: var(--text-light);
    font-weight: 700;
    padding: .5rem 1.25rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Focus Highlight (Ortskonstanz) ── */
@keyframes focus-glow {
    0%   { box-shadow: 0 0 0 0 rgba(207,54,40,.4); }
    50%  { box-shadow: 0 0 0 6px rgba(207,54,40,.15); }
    100% { box-shadow: var(--shadow-sm); }
}
.prog-card.focus-highlight {
    border-color: var(--as-rot);
    animation: focus-glow 1.5s ease-out;
}
