/* Figuren-Katalog (nutzt die Farben und Filter-Tabs aus Tanzhaus Kursplan) */

.ttw-filter {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.ttw-modus {
    display: inline-flex;
    justify-self: start;
    padding: 3px;
    border-radius: var(--thp-radius-klein);
    background: var(--thp-flaeche);
}

.ttw-modus-knopf {
    height: 32px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--thp-radius-klein);
    background: transparent;
    color: var(--thp-text);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.ttw-modus-knopf[aria-pressed="true"] {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    font-weight: 600;
}

.ttw-stufe1,
.ttw-stufe2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.ttw-stufe1[hidden],
.ttw-stufe2[hidden],
.ttw-stufe2 [hidden] {
    display: none;
}

.ttw-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 6px;
}

/* Eine Tanzfamilie bleibt zusammen; umgebrochen wird zwischen den Familien */
.ttw-familie-gruppe {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.ttw-auswahl {
    display: grid;
    gap: 4px;
    width: 100%;
    font-size: 13px;
    color: var(--thp-muted);
}

.ttw-auswahl .uk-select,
.ttw-stufe2 .ttw-gruppe {
    height: 40px;
    padding: 0 36px 0 16px;
    border: 1px solid var(--thp-linie) !important; /* Theme setzt einen dicken Unterstrich */
    border-radius: var(--thp-radius-klein);
    background-color: #fff;
    box-shadow: none;
    color: var(--thp-text);
    font-size: 14px;
}

.ttw-familie {
    margin: 0 2px 0 10px;
    color: var(--thp-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ttw-stufe2 {
    padding-top: 12px;
    border-top: 1px solid var(--thp-linie);
}

.ttw-stufe2 .ttw-familie:first-child {
    margin-left: 0;
}

.ttw-stufe2 .ttw-gruppe {
    flex: 0 0 auto;
    width: auto;
    max-width: 260px;
    margin-left: 6px;
}

.ttw-koennte {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    font-size: 14px;
    cursor: pointer;
}

.ttw-naechstes {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--thp-akzent);
    color: var(--thp-akzent-text, #000);
    font-size: 12px;
    font-weight: 600;
}

.ttw-naechstes[hidden] {
    display: none;
}

.ttw-mehr-tanz {
    display: block;
    margin-top: 4px;
}

.ttw-figuren .thp-kp-tab[aria-pressed="true"],
.ttw-wissen-liste .thp-kp-tab[aria-pressed="true"] {
    border-color: var(--thp-text);
    background: var(--thp-text);
    color: #fff;
}

.ttw-figur {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--thp-linie);
    border-radius: var(--thp-radius);
    background: #fff;
}

.ttw-video {
    position: relative;
}

.ttw-video-start,
.ttw-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.ttw-video-start {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: var(--thp-flaeche);
    cursor: pointer;
}

.ttw-video-start img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ttw-video-start:hover img {
    transform: scale(1.03);
}

.ttw-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--thp-akzent);
    color: var(--thp-akzent-text);
    transform: translate(-50%, -50%);
    box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.4);
}

.ttw-dauer {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.ttw-video-hinweis {
    margin: 0;
    padding: 6px 16px 0;
    color: var(--thp-muted);
    font-size: 12px;
}

.ttw-figur-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px 16px 16px;
}

.ttw-figur-titel {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.ttw-figur .thp-chips:empty {
    display: none;
}

a.thp-chip {
    text-decoration: none;
}


.ttw-achten {
    margin-top: 14px;
    font-size: 14px;
}

.ttw-achten ul {
    margin: 4px 0 0;
    padding-left: 18px;
}

.ttw-kurs {
    margin: auto 0 0;
    padding-top: 14px;
    color: var(--thp-muted);
    font-size: 14px;
}

.ttw-leer {
    color: var(--thp-muted);
}

/* Wissensartikel */

.ttw-kopfzeile,
.ttw-tipp,
.ttw-kurs-kasten {
    --thp-text: #111;
    --thp-muted: rgba(0, 0, 0, 0.55);
    --thp-linie: rgba(0, 0, 0, 0.09);
    --thp-flaeche: #f6f5f2;
    --thp-akzent: #97fa72;
    --thp-radius: 14px;
}

.ttw-kopfzeile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    color: var(--thp-muted);
    font-size: 14px;
}

.ttw-kopfzeile strong {
    color: var(--thp-text);
    font-weight: 600;
}

.ttw-person-bild {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.ttw-tipp {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 24px;
    border-left: 4px solid var(--thp-akzent);
    border-radius: var(--thp-radius);
    background: var(--thp-flaeche);
}

.ttw-tipp .ttw-person-bild {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.ttw-tipp-titel {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.ttw-tipp blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 18px;
    font-style: normal;
    line-height: 1.5;
}

.ttw-kurs-kasten {
    padding: 24px;
    border: 1px solid var(--thp-linie);
    border-radius: var(--thp-radius);
    background: #fff;
}

.ttw-kurs-label {
    display: block;
    color: var(--thp-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ttw-kurs-name {
    display: block;
    margin: 4px 0 8px;
    font-size: 20px;
}

.ttw-kurs-kasten p {
    margin: 0 0 16px;
}

.ttw-wissen-karte {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    padding: 20px;
    border: 1px solid var(--thp-linie);
    border-radius: var(--thp-radius);
    background: #fff;
    color: var(--thp-text);
    text-decoration: none !important;
    transition: border-color 0.2s;
}


.ttw-wissen-frage {
    font-size: 18px;
    line-height: 1.3;
}

.ttw-wissen-antwort {
    color: var(--thp-muted);
    font-size: 15px;
}

.ttw-wissen-mehr {
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
}

/* Figuren: Kurzbeschreibung, „Mehr zur Figur“, Hauptvideo */

.ttw-figur-kurz {
    margin: 6px 0 0;
    font-size: 15px;
}

.ttw-mehr {
    margin-top: 12px;
    font-size: 14px;
}

.ttw-mehr summary {
    font-weight: 600;
    cursor: pointer;
}

.ttw-mehr p,
.ttw-transkript {
    margin: 8px 0 0;
}

.ttw-transkript strong {
    display: block;
}

.ttw-hauptvideo {
    max-width: 900px;
}

.ttw-hauptvideo .ttw-video-start {
    border-radius: var(--thp-radius, 14px);
}

.ttw-themen {
    margin-bottom: 20px;
}

/* Gruppierte Liste */

.ttw-gruppe + .ttw-gruppe {
    margin-top: 40px;
}

.ttw-gruppe[hidden],
.ttw-liste[hidden] {
    display: none;
}

.ttw-gruppe-titel {
    margin: 0 0 16px;
    font-size: 22px;
}

.ttw-gruppe-titel span {
    margin-left: 6px;
    color: var(--thp-muted, rgba(0, 0, 0, 0.55));
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Coverbilder */

.ttw-wissen-karte.mit-bild {
    padding: 0;
    overflow: hidden;
}

.ttw-wissen-karte.mit-bild > :not(.ttw-wissen-bild) {
    margin-right: 20px;
    margin-left: 20px;
}

.ttw-wissen-karte.mit-bild > .ttw-wissen-mehr {
    margin-bottom: 20px;
}

.ttw-wissen-bild {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 8px;
    object-fit: cover;
}

.ttw-cover {
    margin: 0;
}

.ttw-cover-bild {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--thp-radius, 14px);
    object-fit: cover;
}

.ttw-cover figcaption {
    margin-top: 6px;
    color: var(--thp-muted, rgba(0, 0, 0, 0.55));
    font-size: 13px;
}

/* Tabellen aus dem Block-Editor (Wissensartikel) im Stil der übrigen Tabellen */
.wp-block-table {
    margin: 24px 0;
    overflow-x: auto;
}

.wp-block-table table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    font-size: 15px;
}

.wp-block-table thead {
    border: 0;
}

.wp-block-table th {
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

.wp-block-table td {
    padding: 12px;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    vertical-align: top;
}
