/*
 * itweso Workshop Schedule Portlet — Interaktive Terminübersicht
 * @version 1.0.0
 */

.ws-wrap {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
}

/* ── Header ─────────────────────────────── */

.ws-wrap .ws-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ws-wrap .ws-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #f89917;
    margin: 0 0 6px;
    line-height: 1;
}

.ws-wrap .ws-headline {
    font-size: 38px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.05;
}

/* ── Stadt-Filter-Buttons (rechts oben) ─── */

.ws-wrap .ws-city-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-self: flex-start;
    padding-top: 4px;
}

.ws-wrap .ws-city-btn {
    padding: 9px 20px;
    border-radius: 9px;
    border: 2px solid #ddd8cf;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    white-space: nowrap;
}

.ws-wrap .ws-city-btn:hover {
    border-color: #435334;
}

.ws-wrap .ws-city-btn.active {
    background: #435334;
    border-color: #435334;
    color: #fff;
}

/* ── Filter-Bar (Kurstyp + Level) ──────── */

.ws-wrap .ws-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.ws-wrap .ws-type-filters,
.ws-wrap .ws-level-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Kurstyp-Pills: orange aktiv */
.ws-wrap .ws-type-pill {
    padding: 9px 20px;
    border-radius: 50px;
    border: 2px solid #ddd8cf;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    white-space: nowrap;
}

.ws-wrap .ws-type-pill:hover {
    border-color: #f89917;
}

.ws-wrap .ws-type-pill.active {
    background: #f89917;
    border-color: #f89917;
    color: #fff;
}

/* Level-Pills: grün aktiv */
.ws-wrap .ws-level-pill {
    padding: 9px 20px;
    border-radius: 50px;
    border: 2px solid #ddd8cf;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    white-space: nowrap;
}

.ws-wrap .ws-level-pill:hover {
    border-color: #435334;
}

.ws-wrap .ws-level-pill.active {
    background: #435334;
    border-color: #435334;
    color: #fff;
}

/* ── Tabelle ────────────────────────────── */

.ws-wrap .ws-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ws-wrap .ws-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.ws-wrap .ws-table thead tr {
    background: #435334;
}

.ws-wrap .ws-table th {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: 13px 16px;
    text-align: left;
    white-space: nowrap;
}

.ws-wrap .ws-row td {
    padding: 20px 16px;
    border-bottom: 1px solid #eee8dc;
    vertical-align: middle;
}

.ws-wrap .ws-row:last-child td {
    border-bottom: none;
}

.ws-wrap .ws-row--out td {
    opacity: .45;
}

/* hidden by JS filter */
.ws-wrap .ws-row.js-hidden {
    display: none;
}

/* ── Datumsspalte ───────────────────────── */

.ws-wrap .ws-col-datum {
    white-space: nowrap;
    width: 72px;
}

.ws-wrap .ws-date-wd {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    letter-spacing: .06em;
    line-height: 1;
    margin-bottom: 1px;
}

.ws-wrap .ws-date-day {
    display: block;
    font-size: 40px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 1px;
}

.ws-wrap .ws-date-mon {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    letter-spacing: .06em;
    line-height: 1;
}

/* ── Kursspalte ─────────────────────────── */

.ws-wrap .ws-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
    line-height: 1.3;
}

.ws-wrap .ws-row--out .ws-title {
    color: #888;
}

.ws-wrap .ws-level {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    color: #435334;
}

/* ── Ort ────────────────────────────────── */

.ws-wrap .ws-col-ort {
    font-size: 14px;
    color: #3a3a35;
    white-space: nowrap;
}

.ws-wrap .ws-pin {
    color: #c0392b;
    font-size: 12px;
    margin-right: 5px;
}

.ws-wrap .ws-ort-link {
    color: #3a3a35;
    text-decoration: none;
}

.ws-wrap .ws-ort-link:hover {
    color: #435334;
    text-decoration: underline;
}

/* ── Dauer ──────────────────────────────── */

.ws-wrap .ws-col-dauer {
    font-size: 14px;
    color: #3a3a35;
    white-space: nowrap;
}

/* ── Verfügbar ──────────────────────────── */

.ws-wrap .ws-avail-num {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}

.ws-wrap .ws-avail-num--low {
    color: #f89917;
}

.ws-wrap .ws-avail-warn {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #f89917;
    margin-top: 4px;
    white-space: nowrap;
}

.ws-wrap .ws-avail-out {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #aaa;
    white-space: nowrap;
}

/* ── Preis ──────────────────────────────── */

.ws-wrap .ws-col-preis {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}

/* ── Buchen-Button ──────────────────────── */

.ws-wrap .ws-btn {
    display: inline-block;
    background: #f89917;
    color: #fff !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 9px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .2s;
    cursor: pointer;
}

.ws-wrap .ws-btn:hover {
    background: #e68910;
    color: #fff !important;
}

.ws-wrap .ws-btn--disabled {
    background: #ddd;
    color: #aaa !important;
    cursor: not-allowed;
}

.ws-wrap .ws-waitlist {
    font-size: 13px;
    font-weight: 500;
    color: #999;
    text-decoration: none;
}

.ws-wrap .ws-waitlist:hover {
    color: #435334;
}

/* ── Kein Ergebnis ──────────────────────── */

.ws-wrap .ws-no-results {
    padding: 24px 16px;
    font-size: 14px;
    color: #888;
    margin: 0;
    border-top: 1px solid #eee8dc;
}

.ws-wrap .ws-reset {
    background: none;
    border: none;
    color: #435334;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

/* ── Empty State ────────────────────────── */

.ws-wrap .ws-empty {
    padding: 40px;
    text-align: center;
    color: #999;
    font-size: 15px;
    margin: 0;
}

/* ── Responsive ─────────────────────────── */

@media (max-width: 900px) {
    .ws-wrap .ws-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ws-wrap .ws-headline {
        font-size: 28px;
    }

    .ws-wrap .ws-city-filters {
        width: 100%;
    }

    .ws-wrap .ws-filter-bar {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .ws-wrap .ws-date-day {
        font-size: 28px;
    }

    .ws-wrap .ws-type-pill,
    .ws-wrap .ws-level-pill,
    .ws-wrap .ws-city-btn {
        font-size: 13px;
        padding: 7px 14px;
    }
}
