/**
 * Eigene YOOtheme-Elemente: Kursplan und Kurszeiten.
 *
 * Farben, Radien und Abstände als Variablen; im Builder pro Element über „CSS“ überschreibbar, z. B.
 * .el-element { --thp-akzent: #97fa72; --thp-radius: 10px; }
 */

.thp-kursplan,
.thp-kurszeiten,
.thp-fakten,
.thp-texte,
.thp-kopf,
.thp-anmeldung,
.thp-fakten-karten,
.thp-kurs-start,
.thp-kursanmeldung,
.thp-kursuebersicht,
.thp-naechste-termine,
.thp-tanzlehrer,
.thp-wegweiser,
.thp-faq,
.thp-sticky-cta,
.thp-stimmen,
.ttw-figuren,
.ttw-wissen-liste {
    --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-akzent-text: #000;
    --thp-radius: 14px;
    --thp-radius-klein: 999px;

    --thp-farbe-kurs: #d9d9d9;
    --thp-farbe-uebungsabend: #dcb6f7;
    --thp-farbe-mottoparty: #c4f5bb;
    --thp-farbe-ferienspiele: #b8eef3;
    --thp-farbe-workshop: #ffe0a3;
    --thp-farbe-betriebsferien: #333;
}

.thp-kursplan [hidden],
.thp-kursplan[hidden] {
    display: none !important;
}

/* ------------------------------------------------------------------ Gemeinsam */

.thp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: var(--thp-radius-klein);
    background: var(--thp-flaeche);
    color: var(--thp-text);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

.thp-badge--ausfall {
    background: #fde7e7;
    color: #b42318;
}

.thp-badge--vertretung {
    background: #fdf1d6;
    color: #8a5a00;
}

.thp-badge--pausiert {
    background: #eef1f5;
    color: #475467;
}

.thp-badge--kategorie {
    background: color-mix(in srgb, var(--thp-farbe) 45%, #fff);
}

.thp-badge--kategorie::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--thp-farbe);
}

.thp-lehrer {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.thp-avatare {
    display: flex;
    flex-shrink: 0;
}

.thp-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    margin-right: -8px;
}

.thp-avatar:last-child {
    margin-right: 0;
}

.thp-lehrer-namen {
    font-size: 14px;
    line-height: 1.3;
    color: var(--thp-text);
}

.thp-kp-rund {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--thp-linie);
    border-radius: 50%;
    background: #fff;
    color: var(--thp-text);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

button.thp-kp-rund:hover:not(:disabled) {
    border-color: var(--thp-text);
}

.thp-kp-rund:disabled {
    opacity: 0.3;
    cursor: default;
}

/* ------------------------------------------------------------------ Kursplan */

.thp-kursplan {
    container-type: inline-size;
    color: var(--thp-text);
}

/* Leiste mit Tabs und Wochen-Navigation – bleibt unter der Theme-Navigation kleben */
.thp-kp-leiste {
    position: sticky;
    top: var(--thp-top, 0px);
    z-index: 5;
    display: grid;
    /* Filter und Ansicht links zusammen, Woche rechts; der Filter gibt als Erstes Platz ab */
    grid-template-columns: minmax(0, max-content) auto minmax(auto, 1fr);
    grid-template-areas: "filter ansicht woche";
    align-items: center;
    gap: 8px;
    margin: 0 -16px 24px;
    padding: 12px 16px;
    background: var(--thp-leiste-farbe, rgba(255, 255, 255, 0.92));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: top 0.2s ease, box-shadow 0.2s ease;
}

.thp-kp-leiste.is-stuck {
    box-shadow: 0 1px 0 var(--thp-linie), 0 8px 20px -14px rgba(0, 0, 0, 0.25);
}

/* Auf grauer Section nimmt die Leiste deren Farbe an, damit sie nicht als weißer Streifen dasteht */
.uk-section-muted .thp-kp-leiste { --thp-leiste-farbe: rgba(243, 243, 243, 0.92); }
.uk-section-muted .thp-ku-leiste { --thp-hintergrund: #f3f3f3; }

.thp-kp-tabs {
    display: flex;
    gap: 6px;
    margin: 0 -16px;
    padding: 2px 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

/* Nur wenn die Tabs nicht in die Zeile passen: rechts ausblenden als Hinweis zum Wischen */
.thp-kp-filter.is-ueberlauf .thp-kp-tabs {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent 100%);
}

.thp-kp-filter {
    grid-area: filter;
    position: relative;
    min-width: 0;
}

/* Schmal mit Tabs statt Dropdown: Tabs bekommen eine eigene Zeile */
.thp-kp-leiste:has(.thp-kp-filter:not(.is-dropdown)) {
    grid-template-columns: auto minmax(auto, 1fr);
    grid-template-areas:
        "filter filter"
        "ansicht woche";
}

.thp-kp-filter.is-dropdown .thp-kp-tabs,
.thp-kp-filter:not(.is-dropdown) .thp-kp-dropdown {
    display: none;
}

/* Dropdown: „Filter: Alle ▾“ */
.thp-kp-dropdown-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    height: 34px;
    padding: 0 12px 0 14px;
    border: 1px solid var(--thp-linie);
    border-radius: var(--thp-radius-klein);
    background: #fff;
    color: var(--thp-text);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.thp-kp-dropdown-button:hover,
.thp-kp-dropdown-button[aria-expanded="true"] {
    border-color: var(--thp-text);
}

/* Filter gesetzt: dunkel markieren, damit man sieht, dass nicht alles angezeigt wird */
.thp-kp-dropdown-button.is-aktiv {
    border-color: var(--thp-text);
    background: var(--thp-text);
    color: #fff;
}

.thp-kp-dropdown-button.is-aktiv .thp-kp-dropdown-prefix {
    color: rgba(255, 255, 255, 0.7);
}

.thp-kp-filter-icon {
    flex-shrink: 0;
}

.thp-kp-dropdown-prefix {
    color: var(--thp-muted);
}

.thp-kp-dropdown-prefix::after {
    content: ":";
}

.thp-kp-dropdown-wert {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thp-kp-dropdown-button [uk-icon] {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.thp-kp-dropdown-button[aria-expanded="true"] [uk-icon] {
    transform: rotate(180deg);
}

.thp-kp-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 10;
    width: max-content;
    min-width: 220px;
    max-width: min(320px, calc(100vw - 32px));
    max-height: min(60vh, 420px);
    padding: 6px;
    overflow-y: auto;
    border: 1px solid var(--thp-linie);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.3);
}

.thp-kp-dropdown-gruppe {
    padding: 10px 10px 4px;
    color: var(--thp-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.thp-kp-dropdown-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--thp-text);
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.thp-kp-dropdown-menu button:hover {
    background: var(--thp-flaeche);
}

.thp-kp-dropdown-menu button [uk-icon] {
    visibility: hidden;
}

.thp-kp-dropdown-menu button[aria-checked="true"] {
    font-weight: 600;
}

.thp-kp-dropdown-menu button[aria-checked="true"] [uk-icon] {
    visibility: visible;
}

.thp-kp-tabs::-webkit-scrollbar {
    display: none;
}

.thp-kp-tab {
    flex-shrink: 0;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--thp-linie);
    border-radius: var(--thp-radius-klein);
    background: #fff;
    color: var(--thp-text);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    scroll-snap-align: start;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.thp-kp-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.thp-kp-punkt {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--thp-farbe);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.thp-kp-tab[aria-selected="true"] .thp-kp-punkt {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Trennt Tanzstile und Veranstaltungsarten in der Tab-Reihe */
.thp-kp-tabs-trenner {
    flex-shrink: 0;
    align-self: center;
    width: 1px;
    height: 20px;
    margin: 0 6px;
    background: var(--thp-linie);
}

.thp-kp-dropdown-eintrag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.thp-kp-tab:hover {
    border-color: var(--thp-text);
}

.thp-kp-tab[aria-selected="true"] {
    border-color: var(--thp-text);
    background: var(--thp-text);
    color: #fff;
}

.thp-kp-wochen-nav {
    grid-area: woche;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 6px;
}

.thp-kp-wochen-label {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    min-width: 8.5em;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.thp-kp-wochen-label small {
    color: var(--thp-muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.thp-kp-wochen-label span {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

/* Umschalter Woche / Liste */
.thp-kp-ansicht {
    grid-area: ansicht;
    display: inline-flex;
    justify-self: start;
    padding: 3px;
    border-radius: var(--thp-radius-klein);
    background: var(--thp-flaeche);
}

.thp-kp-ansicht button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 11px;
    border: 0;
    border-radius: var(--thp-radius-klein);
    background: transparent;
    color: var(--thp-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.thp-kp-ansicht button[aria-pressed="true"] {
    background: #fff;
    color: var(--thp-text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}


/* Schmal: Filter nur als Icon-Button wie der Umschalter, damit alles in eine Zeile passt */
@container (max-width: 639px) {
    .thp-kp-dropdown-button {
        justify-content: center;
        width: 34px;
        padding: 0;
    }

    .thp-kp-dropdown-button > span {
        display: none;
    }

    .thp-kp-ansicht button {
        padding: 0 9px;
    }

    .thp-kp-ansicht button span + span {
        display: none;
    }
}

/* Sehr schmal: Wochen-Beschriftung und Pfeile kompakter */
@container (max-width: 479px) {
    .thp-kp-wochen-nav {
        gap: 4px;
    }

    .thp-kp-wochen-nav .thp-kp-rund {
        width: 30px;
        height: 30px;
    }

    .thp-kp-wochen-label {
        min-width: 0;
    }

    .thp-kp-wochen-label small {
        font-size: 9px;
    }

    .thp-kp-wochen-label span {
        font-size: 12px;
    }
}

/* Liste: Wochen untereinander mit Abstand */
.thp-kursplan[data-ansicht="liste"] .thp-kp-woche + .thp-kp-woche {
    margin-top: 28px;
}

/* Tage */
.thp-kp-tag + .thp-kp-tag {
    margin-top: 28px;
}

.thp-kp-tag-titel {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 0 0 12px;
    font-family: inherit;
    font-size: 18px;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
}

.thp-kp-wochentag {
    font-weight: 700;
}

.thp-kp-datum {
    color: var(--thp-muted);
    font-weight: 400;
}

.thp-kp-heute {
    align-self: center;
    padding: 2px 8px;
    border-radius: var(--thp-radius-klein);
    background: var(--thp-akzent);
    color: var(--thp-akzent-text);
    font-size: 12px;
    font-weight: 600;
}

.thp-kp-termine {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Termin */
.thp-kp-termin {
    --thp-farbe: var(--thp-farbe-kurs);
    position: relative;
    display: grid;
    /* Schmal: Zeit links, Inhalt rechts, Lehrer:innen und Buttons darunter */
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "zeit haupt"
        ". lehrer"
        ". aktionen";
    align-items: start;
    gap: 12px 14px;
    padding: 14px 16px 14px 18px;
    border: 1px solid var(--thp-linie);
    border-radius: var(--thp-radius);
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.thp-kp-termin::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--thp-farbe);
}

.thp-kp-termin--link:hover {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 6px 20px -12px rgba(0, 0, 0, 0.25);
}

.thp-kp-termin[data-kategorie="uebungsabend"] {
    --thp-farbe: var(--thp-farbe-uebungsabend);
}

.thp-kp-termin[data-kategorie="mottoparty"] {
    --thp-farbe: var(--thp-farbe-mottoparty);
}

.thp-kp-termin[data-kategorie="ferienspiele"] {
    --thp-farbe: var(--thp-farbe-ferienspiele);
}

.thp-kp-termin[data-kategorie="workshop"] {
    --thp-farbe: var(--thp-farbe-workshop);
}

.thp-kp-termin[data-status="ausfall"] {
    background: #fffafa;
    --thp-farbe: #f04438;
}

.thp-kp-termin[data-status="ausfall"] .thp-kp-titel,
.thp-kp-termin[data-status="ausfall"] .thp-kp-zeit {
    text-decoration: line-through;
    color: var(--thp-muted);
}

.thp-kp-termin[data-status="pausiert"] {
    opacity: 0.55;
}

/* Zeiträume (Ferienspiele-Woche, Betriebsferien) als ruhiger Hinweis */
.thp-kp-termin--zeitraum {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "haupt aktionen";
    border-style: dashed;
    background: color-mix(in srgb, var(--thp-farbe) 12%, #fff);
}

.thp-kp-termin--zeitraum .thp-kp-zeitblock {
    display: none;
}

.thp-kp-termin--zeitraum .thp-kp-aktionen {
    align-self: center;
}

.thp-kp-termin[data-kategorie="betriebsferien"] {
    --thp-farbe: var(--thp-farbe-betriebsferien);
    border: 0;
    background: var(--thp-flaeche);
}

.thp-kp-termin[data-kategorie="betriebsferien"]::before {
    display: none;
}

.thp-kp-termin[data-kategorie="betriebsferien"] .thp-badge--kategorie {
    background: var(--thp-text);
    color: #fff;
}

.thp-kp-termin[data-kategorie="betriebsferien"] .thp-badge--kategorie::before {
    background: #fff;
}

/* Bereiche */
.thp-kp-zeitblock {
    grid-area: zeit;
    display: flex;
    flex-direction: column;
    min-width: 3.2em;
}

.thp-kp-zeit {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.thp-kp-zeit-bis {
    color: var(--thp-muted);
    font-size: 13px;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.thp-kp-termin--zeitraum .thp-kp-zeit {
    font-size: 13px;
    font-weight: 500;
    color: var(--thp-muted);
}

.thp-kp-haupt {
    grid-area: haupt;
    min-width: 0;
}

.thp-kp-haupt > * {
    margin: 0;
}

.thp-kp-haupt > * + * {
    margin-top: 4px;
}

.thp-kp-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin-bottom: 6px !important;
}

.thp-kp-titel {
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
    color: inherit;
}

.thp-kp-link {
    color: inherit;
    text-decoration: none;
}

.thp-kp-link:hover {
    color: inherit;
    text-decoration: none;
}

/* Klick auf die ganze Karte öffnet die Detailseite, Buttons bleiben eigenständig */
.thp-kp-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.thp-kp-thema {
    font-size: 14px;
    line-height: 1.4;
}

.thp-kp-meta,
.thp-kp-text {
    color: var(--thp-muted);
    font-size: 13px;
    line-height: 1.45;
}

.thp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px !important;
}

/* Automatische Infos: ruhige Chips, bewusst anders als Kategorie-Label und Listenpunkte */
.thp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--thp-linie);
    border-radius: 8px;
    background: #fff;
    color: var(--thp-text);
    font-size: 13px;
    line-height: 1.3;
}

.thp-chip svg {
    flex-shrink: 0;
    color: var(--thp-muted);
}

.thp-kp-zeitraum-datum {
    color: var(--thp-muted);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.thp-kp-level {
    display: inline-flex;
    gap: 2px;
    margin-right: 4px;
    vertical-align: 1px;
}

.thp-kp-level i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
}

.thp-kp-level i.is-voll {
    background: var(--thp-text);
}

.thp-kp-hinweis {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--thp-flaeche);
    font-size: 13px;
    line-height: 1.4;
}

.thp-kp-lehrerblock {
    grid-area: lehrer;
    min-width: 0;
}

.thp-kp-lehrerblock .thp-kp-status {
    margin-top: 0 !important;
}

/* Termine-Spalte als eigener Container: das Layout richtet sich nach ihrer Breite (mit/ohne Tag links) */
.thp-kp-termine {
    container-type: inline-size;
}

/* Ausfall / Vertretung / Pausiert samt Grund in einer Zeile */
.thp-kp-status {
    display: flex;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin-top: 10px !important;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.thp-kp-status--ausfall {
    background: #fde7e7;
    color: #b42318;
}

.thp-kp-status--vertretung {
    background: #fdf1d6;
    color: #6b4600;
}

.thp-kp-status--vertretung .thp-lehrer-namen {
    color: inherit;
    font-weight: 600;
}

.thp-kp-status--vertretung .thp-avatar {
    border-color: #fdf1d6;
}

.thp-kp-status--vertretung {
    flex-direction: column;
    align-items: flex-start;
}

.thp-kp-grund {
    font-size: 13px;
    opacity: 0.85;
}

.thp-kp-status--verlegt {
    background: #e8f0fe;
    color: #1e429f;
}

.thp-kopf-status {
    display: inline-flex !important;
    margin: 10px 0 0 !important;
}

.thp-kopf-trenner {
    margin: 24px 0 20px;
    border-top: 1px solid var(--thp-linie);
}

.thp-kopf-text {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
}

.thp-kp-status--pausiert {
    background: #eef1f5;
    color: #475467;
}

.thp-kp-aktionen {
    grid-area: aktionen;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.thp-kp-aktionen a {
    position: relative;
    z-index: 2;
}

.thp-kp-preis {
    color: var(--thp-text);
    font-weight: 600;
}

.thp-kp-cta {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 16px;
    border-radius: var(--thp-radius-klein);
    background: var(--thp-akzent);
    color: var(--thp-akzent-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: filter 0.2s ease;
}

.thp-kp-cta:hover {
    color: var(--thp-akzent-text);
    text-decoration: none;
    filter: brightness(0.94);
}

.thp-kp-mehr {
    color: var(--thp-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Schmal ohne Anmelden-Button: Pfeil rechts neben dem Inhalt statt in eigener Zeile */
.thp-kp-termin:not(.thp-kp-termin--zeitraum):not(:has(.thp-kp-cta)) {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "zeit haupt aktionen"
        ". lehrer aktionen";
}

.thp-kp-termin:not(:has(.thp-kp-cta)) .thp-kp-aktionen {
    align-self: center;
}

/* Schmal: neben „Anmelden“ reicht die klickbare Karte, der Pfeil entfällt */
.thp-kp-cta ~ .thp-kp-pfeil {
    display: none;
}

.thp-kp-termin--link:hover .thp-kp-pfeil {
    border-color: var(--thp-text);
    background: var(--thp-text);
    color: #fff;
}

.thp-kp-leer {
    padding: 32px 16px;
    border-radius: var(--thp-radius);
    background: var(--thp-flaeche);
    color: var(--thp-muted);
    text-align: center;
}

/* Breit: Leiste in einer Zeile, Termin als Zeile mit Spalten */
@container (min-width: 640px) {
    .thp-kp-leiste,
    .thp-kp-leiste:has(.thp-kp-filter:not(.is-dropdown)) {
        grid-template-columns: minmax(0, max-content) auto minmax(auto, 1fr);
        grid-template-areas: "filter ansicht woche";
        gap: 10px;
    }

    .thp-kp-filter-icon {
        display: none;
    }

    .thp-kp-tabs {
        margin: 0;
        padding: 2px 0;
    }

    .thp-kp-cta ~ .thp-kp-pfeil {
        display: inline-flex;
    }

    .thp-kp-wochen-label {
        min-width: 9.5em;
    }

    .thp-kursplan:not(.thp-kursplan--gestapelt) .thp-kp-termin:not(.thp-kp-termin--zeitraum) {
        grid-template-columns: 4.5rem minmax(0, 1fr) auto;
        grid-template-areas:
            "zeit haupt aktionen"
            ". lehrer aktionen";
        align-items: center;
        gap: 10px 24px;
        padding: 16px 18px 16px 22px;
    }

    .thp-kursplan:not(.thp-kursplan--gestapelt) .thp-kp-zeitblock {
        align-self: start;
    }

    .thp-kursplan:not(.thp-kursplan--gestapelt) .thp-kp-aktionen {
        flex-wrap: nowrap;
        justify-content: flex-end;
    }
}

/* Genug Platz: Lehrer:innen in eigener Spalte; erst wenn es eng wird, rutschen sie unter den Text */
@container (min-width: 760px) {
    .thp-kursplan:not(.thp-kursplan--gestapelt) .thp-kp-termin:not(.thp-kp-termin--zeitraum) {
        grid-template-columns: 4.5rem minmax(16rem, 1fr) minmax(9rem, 13rem) auto;
        grid-template-areas: "zeit haupt lehrer aktionen";
        gap: 0 24px;
    }
}

/* Sehr breit: Tag als Spalte links, klebt beim Scrollen unter der Leiste */
@container (min-width: 960px) {
    .thp-kursplan:not(.thp-kursplan--gestapelt) .thp-kp-tag {
        display: grid;
        grid-template-columns: 9rem minmax(0, 1fr);
        gap: 24px;
    }

    .thp-kursplan:not(.thp-kursplan--gestapelt) .thp-kp-tag + .thp-kp-tag {
        margin-top: 0;
        padding-top: 24px;
        border-top: 1px solid var(--thp-linie);
        margin-top: 24px;
    }

    .thp-kursplan:not(.thp-kursplan--gestapelt) .thp-kp-tag-titel {
        position: sticky;
        top: calc(var(--thp-top, 0px) + var(--thp-leiste, 0px) + 16px);
        flex-direction: column;
        align-items: flex-start;
        align-self: start;
        gap: 2px;
        margin: 0;
        padding-top: 14px;
        transition: top 0.2s ease;
    }

    .thp-kursplan:not(.thp-kursplan--gestapelt) .thp-kp-wochentag {
        font-size: 20px;
    }

    .thp-kursplan:not(.thp-kursplan--gestapelt) .thp-kp-datum {
        font-size: 14px;
    }

    /* In der Spalte links ausrichten (sonst zentriert durch align-self aus der einzeiligen Ansicht) */
    .thp-kursplan:not(.thp-kursplan--gestapelt) .thp-kp-heute {
        align-self: flex-start;
        margin-top: 6px;
    }
}

/* ------------------------------------------------------------------ Detailseite: Auf einen Blick */

.thp-kp-ueberschrift {
    margin: 0 0 16px;
}

.thp-fakten {
    color: var(--thp-text);
}

.thp-fakten--flaeche {
    padding: 24px;
    border-radius: var(--thp-radius);
    background: var(--thp-flaeche);
}

.thp-fakten--rahmen {
    padding: 24px;
    border: 1px solid var(--thp-linie);
    border-radius: var(--thp-radius);
}

.thp-fakten-titel {
    margin: 0 0 16px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.thp-fakten-eltern {
    margin: -8px 0 16px;
    color: var(--thp-muted);
    font-size: 14px;
}

.thp-fakten-eltern a {
    color: var(--thp-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.thp-fakten-liste {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    line-height: 1.4;
}

.thp-fakten-liste li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.thp-fakten-liste li > [uk-icon] {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--thp-muted);
}

.thp-fakten-liste small {
    color: var(--thp-muted);
    font-size: 13px;
}

.thp-fakten-lehrer {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--thp-linie);
}

.thp-fakten-lehrer .thp-avatar {
    width: 36px;
    height: 36px;
}

.thp-fakten-lehrer .thp-lehrer-namen {
    font-size: 15px;
}

.thp-fakten-infos {
    margin: 18px 0 0 !important;
    padding-top: 18px;
    border-top: 1px solid var(--thp-linie);
    flex-direction: column;
    align-items: flex-start;
}

/* Sprung zum Formular – bewusst kein grüner Absende-Button */
.thp-fakten-cta {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    margin-top: 20px;
    border: 1px solid var(--thp-text);
    border-radius: var(--thp-radius-klein);
    color: var(--thp-text);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.thp-fakten-cta:hover {
    background: var(--thp-text);
    color: #fff;
    text-decoration: none;
}

.thp-fakten-frei,
.thp-fakten-geschlossen {
    margin: 10px 0 0;
    color: var(--thp-muted);
    font-size: 14px;
    text-align: center;
}

.thp-fakten-geschlossen {
    margin-top: 20px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

/* ------------------------------------------------------------------ Detailseite: Raster der Vorlage
 * Unter 960 px werden die Spalten aufgelöst und die Elemente neu sortiert:
 * Kopf → Cover → „Auf einen Blick“ → Beschreibung → Anmeldung. Ein Kopf genügt (kein doppeltes Element).
 */
@media (max-width: 959px) {
    .thp-va-raster {
        display: flex;
        flex-direction: column;
        margin-left: 0 !important;
    }

    /* Spalten und Sticky-Hülle der rechten Spalte auflösen, damit die Elemente direkt sortiert werden */
    .thp-va-raster > *,
    .thp-va-raster > * > *,
    .thp-va-raster .uk-sticky {
        display: contents;
    }

    .thp-va-raster .thp-va-kopf,
    .thp-va-raster .thp-va-cover,
    .thp-va-raster .thp-va-fakten,
    .thp-va-raster .thp-va-texte,
    .thp-va-raster .thp-va-anmeldung {
        display: block;
        margin: 0 0 28px !important;
    }

    .thp-va-raster .thp-va-kopf { order: 1; }
    .thp-va-raster .thp-va-cover { order: 2; }
    .thp-va-raster .thp-va-fakten { order: 3; }
    .thp-va-raster .thp-va-texte { order: 4; }
    .thp-va-raster .thp-va-anmeldung { order: 5; margin-bottom: 0 !important; }
}

/* ------------------------------------------------------------------ Detailseite: Kopf */

.thp-kopf-label {
    margin-bottom: 12px;
}

.thp-kopf-label .thp-badge {
    padding: 4px 11px;
    font-size: 13px;
}

.thp-kopf-titel {
    margin: 0;
}

.thp-kopf-untertitel {
    margin: 12px 0 0;
}

.thp-kopf-cover {
    margin-top: 24px;
}

.thp-kopf-cover img {
    width: 100%;
    height: auto;
    border-radius: var(--thp-radius);
}

/* ------------------------------------------------------------------ Detailseite: Anmeldung */

.thp-anmeldung {
    padding: 28px;
    border: 1px solid var(--thp-linie);
    border-radius: var(--thp-radius);
    scroll-margin-top: 120px;
}

.thp-anmeldung-titel {
    margin: 0 0 8px;
}

.thp-anmeldung-status {
    margin: 0 0 20px;
    color: var(--thp-muted);
}

.thp-anmeldung--ausgebucht .thp-anmeldung-status,
.thp-anmeldung--geschlossen .thp-anmeldung-status,
.thp-anmeldung--abgesagt .thp-anmeldung-status {
    margin: 0;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--thp-flaeche);
    color: var(--thp-text);
}

.thp-anmeldung-hinweis {
    padding: 12px 16px;
    border-radius: 10px;
    background: #fdf1d6;
    font-size: 14px;
}

/* ------------------------------------------------------------------ Detailseite: Beschreibung */

.thp-texte {
    color: var(--thp-text);
}

.thp-texte-titel {
    margin: 0 0 12px;
}

.thp-texte-beschreibung > :last-child {
    margin-bottom: 0;
}

.thp-texte-karten {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.thp-texte-karte {
    padding: 18px 20px;
    border: 1px solid var(--thp-linie);
    border-radius: var(--thp-radius);
}

.thp-texte-karte-titel {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.thp-texte-karte-titel [uk-icon] {
    color: var(--thp-muted);
}

.thp-level-liste {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--thp-muted);
    font-size: 14px;
}

.thp-level-liste li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.thp-level-liste li.is-aktiv {
    color: var(--thp-text);
    font-weight: 600;
}

.thp-texte-karte p {
    margin: 0;
    color: var(--thp-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* ------------------------------------------------------------------ Kurs: Key Facts */

.thp-fakten-karten-titel {
    margin: 0 0 12px;
}

.thp-fakt {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 12px 14px;
    border: 1px solid var(--thp-linie);
    border-radius: 10px;
    background: #fff;
}

.thp-fakt-titel {
    color: var(--thp-muted);
    font-size: 12px;
    letter-spacing: 0.02em;
}

.thp-fakt-wert {
    font-size: 16px;
    line-height: 1.3;
}

.thp-fakt-zusatz {
    color: var(--thp-muted);
    font-size: 13px;
    line-height: 1.35;
}

/* Ungerade Anzahl: mobil spannt die letzte Karte über beide Spalten statt allein links zu stehen. */
@media (max-width: 959px) {
    .thp-fakten-ungerade > :last-child {
        width: 100%;
    }
}

.thp-fakten-schnuppern {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    padding: 9px 14px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--thp-akzent) 25%, #fff);
    font-size: 14px;
    font-weight: 500;
}

/* ------------------------------------------------------------------ Kurs: Nächster Start */

.thp-kurs-start {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    padding: 6px 14px;
    border-radius: var(--thp-radius-klein);
    background: var(--thp-flaeche);
    font-size: 14px;
}

.thp-kurs-start-punkt {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #12b76a;
    box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.2);
}

.thp-kurs-start--planung .thp-kurs-start-punkt {
    background: #f79009;
    box-shadow: 0 0 0 3px rgba(247, 144, 9, 0.2);
}

.thp-kurs-start-label {
    color: var(--thp-muted);
}

.thp-kurs-start-link {
    color: var(--thp-text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.thp-kurs-start-link:hover {
    color: var(--thp-text);
}

.thp-kurs-start-link span {
    display: inline-block;
    transition: transform 0.2s;
}

.thp-kurs-start-link:hover span {
    transform: translateY(2px);
}

/* ------------------------------------------------------------------ Wegweiser */

.thp-wegweiser-schritte {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.thp-wegweiser-schritt {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--thp-linie);
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Ganze Karte klickbar: der Titel-Link spannt sich über die Karte. */
.thp-wegweiser-schritt.is-link:hover {
    border-color: var(--thp-text);
}

.thp-wegweiser-schritt.is-link .thp-wegweiser-titel a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.thp-wegweiser-pfeil {
    align-self: center;
    margin-left: auto;
    font-size: 18px;
    transition: transform 0.2s;
}

.thp-wegweiser-schritt.is-link:hover .thp-wegweiser-pfeil {
    transform: translateX(3px);
}

.thp-wegweiser-schritt.is-hier {
    border-color: var(--thp-text);
    box-shadow: 0 0 0 1px var(--thp-text);
}

.thp-wegweiser-nummer {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--thp-flaeche);
    font-size: 14px;
    font-weight: 700;
}

.is-hier .thp-wegweiser-nummer {
    background: var(--thp-akzent);
    color: var(--thp-akzent-text);
}

.thp-wegweiser-inhalt {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.thp-wegweiser-titel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    font-size: 16px;
}

.thp-wegweiser-titel a {
    color: inherit;
    text-decoration: none;
}

.thp-wegweiser-hier {
    padding: 2px 8px;
    border-radius: var(--thp-radius-klein);
    background: var(--thp-text);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.thp-wegweiser-text {
    color: var(--thp-muted);
    font-size: 13px;
    line-height: 1.4;
}

.thp-wegweiser-zusatz {
    margin-top: 14px;
    color: var(--thp-muted);
    font-size: 14px;
}

.thp-wegweiser-zusatz > :last-child {
    margin-bottom: 0;
}

/* ------------------------------------------------------------------ FAQ */

.thp-faq-eintrag {
    margin: 0 !important;
}

.thp-faq--linie .thp-faq-eintrag {
    border-bottom: 1px solid var(--thp-linie);
}

.thp-faq--linie .thp-faq-eintrag:first-child {
    border-top: 1px solid var(--thp-linie);
}

.thp-faq--karten .thp-faq-eintrag {
    padding: 0 20px;
    border: 1px solid var(--thp-linie);
    border-radius: var(--thp-radius);
}

.thp-faq--karten .thp-faq-eintrag + .thp-faq-eintrag {
    margin-top: 8px !important;
}

.thp-faq-ueberschrift {
    margin: 0;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
}

.thp-faq .thp-faq-frage {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    color: var(--thp-text);
    font: inherit;
    text-decoration: none;
}

.thp-faq .thp-faq-frage::before {
    display: none;
}

.thp-faq .thp-faq-frage::after {
    /* Plus, geöffnet Minus – wie beim UIkit-Accordion */
    content: "";
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    background:
        linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
    transition: background-size 0.2s ease;
}

.thp-faq .uk-open > .thp-faq-ueberschrift .thp-faq-frage::after {
    background-size: 100% 2px, 2px 0;
}

.thp-faq-antwort {
    margin: 0 !important;
    padding: 0 0 18px;
    color: var(--thp-muted);
    font-size: 16px;
    line-height: 1.6;
}

.thp-faq-antwort > :last-child {
    margin-bottom: 0;
}

/* ------------------------------------------------------------------ Stimmen */

.thp-stimme {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 24px;
    border: 1px solid var(--thp-linie);
    border-radius: var(--thp-radius);
    background: #fff;
}

.thp-stimme-sterne {
    color: #f5a623;
    font-size: 15px;
    letter-spacing: 2px;
}

.thp-stimme-sterne span {
    color: rgba(0, 0, 0, 0.15);
}

.thp-stimme-text {
    flex: 1;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--thp-text);
    font-family: inherit;
    font-size: 16px;
    font-style: normal;
    line-height: 1.6;
}

.thp-stimme-wer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.thp-stimme-wer > span {
    display: flex;
    flex-direction: column;
}

.thp-stimme-zusatz {
    color: var(--thp-muted);
    font-size: 13px;
}

.thp-stimme-quelle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 5px;
    color: var(--thp-muted);
    font-size: 12px;
    text-decoration: none;
}

.thp-stimmen-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

/* Alles sichtbar, nichts zu blättern: Navigation ausblenden */
.thp-stimmen-nav:has(.uk-dotnav > li:only-child),
.thp-stimmen-nav:has(.uk-dotnav:empty) {
    display: none;
}

.thp-stimmen-google {
    margin: 16px 0 0;
    font-size: 14px;
}

.thp-stimmen-google a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--thp-text);
    font-weight: 600;
}

/* ------------------------------------------------------------------ Anmelde-Button (mitlaufend) */

/* Eigene Grafikebene von Anfang an (translate3d + will-change): Safari auf dem iPhone ließ den Button sonst mitten im
   Bild hängen, wenn er beim Runterscrollen während des Schwungs eingeblendet wurde. Abstand unten über dem Home-Balken. */
.thp-sticky-cta {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    z-index: 980;
    display: flex;
    justify-content: center;
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s;
}

.thp-sticky-cta[hidden] {
    display: flex !important;
    transform: translate3d(0, 150%, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s 0.25s;
}

.thp-sticky-cta-button {
    width: 100%;
    max-width: 420px;
    height: 48px;
    justify-content: center;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35);
    font-size: 16px;
}

@media (min-width: 960px) {
    .thp-sticky-cta--mobil {
        display: none !important;
    }
}

/* Stimmen: keine passenden Stimmen → Section mit Überschrift gar nicht zeigen */
.uk-section:has(.thp-stimmen-leer) {
    display: none;
}

/* ------------------------------------------------------------------ Warteliste (Kurszeiten ohne Termine) */

.thp-warteliste {
    padding: 28px;
    border: 1px solid var(--thp-linie);
    border-radius: var(--thp-radius);
}

.thp-warteliste-titel {
    margin: 0 0 6px;
}

.thp-warteliste-text {
    margin: 0 0 20px;
    color: var(--thp-muted);
}

/* ------------------------------------------------------------------ Kurszeiten */

.thp-kurszeiten {
    container-type: inline-size;
}

.thp-kz-tag + .thp-kz-tag {
    margin-top: 24px;
}

.thp-kz-tag-kopf {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    margin-bottom: 10px;
}

.thp-kz-tag-titel {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.thp-kz-tag-info {
    color: var(--thp-muted);
    font-size: 13px;
}

/* Breit genug: Wochentag links, Karten rechts – wie eine ruhige Tabelle */
@container (min-width: 760px) {
    .thp-kz-tag {
        display: grid;
        grid-template-columns: 130px 1fr;
        gap: 16px;
        align-items: start;
    }

    .thp-kz-tag + .thp-kz-tag {
        padding-top: 16px;
        border-top: 1px solid var(--thp-linie);
        margin-top: 16px;
    }

    .thp-kz-tag-kopf {
        flex-direction: column;
        margin: 12px 0 0;
    }
}

.thp-kz-karte {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid var(--thp-linie);
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s;
}

.thp-kz-kopf {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
}

.thp-kz-titel {
    font-size: 16px;
    line-height: 1.3;
}

.thp-kz-zeit {
    margin-top: -6px;
    font-size: 15px;
}

.thp-kz-infos {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--thp-muted);
    font-size: 13px;
    line-height: 1.4;
}

.thp-kz-infos li {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Lehrer:in und Link immer unten, auch wenn Karten nebeneinander unterschiedlich viel Inhalt haben */
.thp-kz-fuss {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-top: auto;
    padding-top: 6px;
}

.thp-kz-fuss .thp-lehrer-namen {
    font-size: 13px;
}

.thp-kz-link {
    margin-left: auto;
    color: var(--thp-text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.thp-kz-link:hover {
    color: var(--thp-text);
    text-decoration: none;
}

/* Ganze Karte klickbar */
.thp-kz-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.thp-kz-link span {
    display: inline-block;
    transition: transform 0.2s;
}

.thp-kz-karte.is-link:hover {
    border-color: var(--thp-text);
}

.thp-kz-karte.is-link:hover .thp-kz-link span {
    transform: translateX(3px);
}

/* Ausgebucht: zurückgenommen, aber für die Warteliste weiter klickbar */
.thp-kz-karte.is-voll {
    background: var(--thp-flaeche);
}

.thp-kz-karte.is-voll .thp-kz-titel,
.thp-kz-karte.is-voll .thp-kz-zeit,
.thp-kz-karte.is-voll .thp-lehrer {
    opacity: 0.55;
}

.thp-kz-karte.is-voll .thp-kz-link {
    font-weight: 500;
}

.thp-badge--wenige {
    background: #fff4d6;
    color: #7a5200;
}

/* ------------------------------------------------------------------ Tanzlehrer:innen */

.thp-lehrkraft {
    margin: 0;
}

.thp-lehrkraft-bild {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.thp-lehrkraft figcaption {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.thp-lehrkraft-name {
    font-size: 16px;
    line-height: 1.3;
}

.thp-lehrkraft-rolle,
.thp-lehrkraft-tage {
    color: var(--thp-muted);
    font-size: 13px;
}

.thp-lehrkraft-satz {
    margin: 6px 0 4px;
    padding: 0;
    font-size: 14px;
    font-style: normal;
    line-height: 1.45;
}

.thp-lehrkraft-satz::before {
    content: "„";
}

.thp-lehrkraft-satz::after {
    content: "“";
}

/* ------------------------------------------------------------------ Kursübersicht (Preise & Zeiten) */

.thp-ku-leiste {
    position: sticky;
    top: var(--thp-top, 0px);
    z-index: 5;
    margin: 0 0 24px;
    padding: 10px 0;
    background: var(--thp-hintergrund, #fff);
    border-bottom: 1px solid var(--thp-linie);
}

.thp-ku-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.thp-ku-filtergruppe {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.thp-ku-chip {
    padding: 0 12px;
}

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

.thp-ku-frei {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}

.thp-ku-filter-knopf {
    display: none;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--thp-linie);
    border-radius: var(--thp-radius-klein);
    background: #fff;
    color: var(--thp-text);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.thp-ku-anzahl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--thp-akzent);
    color: var(--thp-akzent-text);
    font-size: 11px;
    font-weight: 700;
}

/* Handy: Filter als ausklappbare Leiste */
@media (max-width: 959px) {
    .thp-ku-filter-knopf {
        display: inline-flex;
    }

    .thp-ku-filter {
        display: none;
        margin-top: 10px;
    }

    .thp-ku-leiste.is-offen .thp-ku-filter {
        display: flex;
    }
}

/* Kategorien klar getrennt: Linie und Luft */
.thp-ku-sparte + .thp-ku-sparte {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid var(--thp-linie);
}

.thp-ku-sparte-titel {
    margin: 0 0 24px;
}

.thp-ku-kurs {
    scroll-margin-top: calc(var(--thp-top, 0px) + 80px);
}

.thp-ku-kurs + .thp-ku-kurs {
    margin-top: 40px;
}

/* Kurskopf: Name, Chips und Satz links, „Mehr zu …“ immer rechts auf Höhe des Namens */
.thp-ku-kopf {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px 24px;
    margin-bottom: 16px;
}

.thp-ku-kopf-text {
    flex: 1 1 320px;
    min-width: 0;
}

.thp-ku-mehr {
    margin-top: 4px;
    font-size: 14px;
    white-space: nowrap;
}

/* Gruppiert nach Wochentag (z. B. Hobbykurs): Tag als Zwischenzeile über den Karten statt als Spalte links,
   damit alle Karten der Übersicht an derselben Kante beginnen */
.thp-kursuebersicht .thp-kz-tag {
    display: block;
}

.thp-kursuebersicht .thp-kz-tag + .thp-kz-tag {
    margin-top: 20px;
    padding-top: 0;
    border-top: 0;
}

.thp-kursuebersicht .thp-kz-tag-kopf {
    flex-direction: row;
    margin: 0 0 8px;
}

.thp-kursuebersicht .thp-kz-tag-titel {
    color: var(--thp-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.thp-ku-kopf-zeile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

.thp-ku-titel {
    margin: 0 6px 0 0;
    font-size: 20px;
    line-height: 1.3;
}

.thp-ku-chip-info {
    padding: 2px 10px;
    border-radius: var(--thp-radius-klein);
    background: var(--thp-flaeche);
    font-size: 13px;
}

.thp-ku-satz {
    margin: 6px 0 0;
    color: var(--thp-muted);
    font-size: 15px;
}

.thp-ku-planung {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 14px 16px;
    border: 1px dashed var(--thp-linie);
    border-radius: 10px;
    font-size: 14px;
}

.thp-ku-planung > span:nth-child(2) {
    flex: 1 1 220px;
}

.thp-ku-planung .thp-kurs-start-punkt {
    background: #f79009;
    box-shadow: 0 0 0 3px rgba(247, 144, 9, 0.2);
}

.thp-ku-leer {
    padding: 18px;
    border-radius: 10px;
    background: var(--thp-flaeche);
}

.thp-ku-zuruecksetzen {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* ------------------------------------------------------------------ Kurszeiten als Liste (eine Zeile pro Termin) */

.thp-kz-liste {
    overflow: hidden;
    border: 1px solid var(--thp-linie);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px -18px rgba(0, 0, 0, 0.22);
}

/* Zwischen den Wochentagen eine kräftigere Linie als zwischen den Zeilen eines Tages */
.thp-kz-liste-tag + .thp-kz-liste-tag {
    border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.thp-kz-liste-tag > * + * {
    border-top: 1px solid var(--thp-linie);
}

.thp-kz-zeile {
    position: relative;
    display: grid;
    grid-template-areas: "wann aktion" "infos infos" "lehrer lehrer";
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 12px;
    padding: 12px 16px;
    transition: background-color 0.2s;
}

.thp-kz-z-wann { grid-area: wann; display: flex; align-items: baseline; gap: 10px; }
.thp-kz-z-infos { grid-area: infos; }
.thp-kz-z-lehrer { grid-area: lehrer; }
.thp-kz-z-aktion { grid-area: aktion; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

.thp-kz-z-tag {
    width: 26px;
    font-weight: 600;
}

.thp-kz-z-zeit {
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.thp-kz-z-infos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    color: var(--thp-muted);
    font-size: 13px;
}

.thp-kz-z-infos > span:not(.thp-kz-z-punkt) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.thp-kz-z-punkt {
    opacity: 0.5;
}

.thp-kz-z-lehrer:empty {
    display: none;
}

.thp-kz-zeile.is-link:hover {
    background: var(--thp-flaeche);
}

.thp-kz-zeile.is-link:hover .thp-kz-link span {
    transform: translateX(3px);
}

.thp-kz-zeile.is-voll .thp-kz-z-wann,
.thp-kz-zeile.is-voll .thp-lehrer {
    opacity: 0.55;
}

.thp-kz-zeile.is-voll .thp-kz-link {
    font-weight: 500;
}

/* Breit genug: alles in einer Zeile, Spalten über alle Termine hinweg bündig */
@container (min-width: 760px) {
    .thp-kz-zeile {
        grid-template-areas: "wann infos lehrer aktion";
        grid-template-columns: 190px minmax(0, 1fr) 170px 190px;
        gap: 16px;
        padding: 14px 20px;
    }
}

/* ------------------------------------------------------------------ Kurs: Anmeldung */

.thp-kursanmeldung-auswahl {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 28px;
    padding: 16px 18px;
    border: 1px solid var(--thp-linie);
    border-radius: 10px;
    background: var(--thp-flaeche);
}

.thp-kursanmeldung-kurs {
    font-size: 20px;
    line-height: 1.25;
}

.thp-kursanmeldung-gruppe {
    font-size: 15px;
}

.thp-kursanmeldung-preis {
    color: var(--thp-muted);
    font-size: 14px;
}

.thp-kursanmeldung-auswahl .thp-fakten-schnuppern {
    align-self: stretch;
    margin-top: 6px;
}

.thp-kursanmeldung-auswahl-kopf {
    display: flex;
    align-self: stretch;
    justify-content: space-between;
    align-items: baseline;
}

.thp-kursanmeldung-aendern {
    color: var(--thp-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.thp-kursanmeldung-schritt + .thp-kursanmeldung-schritt {
    margin-top: 28px;
}

.thp-kursanmeldung-schritt-titel {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.3;
}

.thp-kursanmeldung-schritt-titel span {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--thp-akzent);
    color: var(--thp-akzent-text);
    font-size: 13px;
    font-weight: 700;
}

/* Tabs als Links: umbrechen statt wischen, damit alle Kurse sichtbar sind */
.thp-kursanmeldung-tabs {
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.thp-kursanmeldung-tabs .thp-kp-tab {
    text-decoration: none;
}

.thp-kursanmeldung-tabs .thp-kp-tab small {
    margin-left: 2px;
    color: var(--thp-muted);
    font-size: 12px;
    font-weight: 400;
}

.thp-kursanmeldung-tabs .thp-kp-tab[aria-selected="true"] small {
    color: rgba(255, 255, 255, 0.7);
}

.thp-kz-karte.is-gewaehlt {
    border-color: var(--thp-text);
    box-shadow: 0 0 0 1px var(--thp-text);
}

.thp-formular-zusammenfassung {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
    margin: 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--thp-flaeche, #f6f5f2);
    font-size: 14px;
}

.thp-formular-zusammenfassung dt {
    color: rgba(0, 0, 0, 0.55);
}

.thp-formular-zusammenfassung dd {
    margin: 0;
}

.thp-formular-info {
    margin: 0;
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
}

.thp-kursanmeldung-leer {
    padding: 18px;
    border-radius: 10px;
    background: var(--thp-flaeche);
}

.thp-kursanmeldung-leer p {
    margin: 0 0 8px;
}

/* ------------------------------------------------------------------ Gravity Forms im Seiten-Look
 * Farben und Radien kommen über gform_default_styles (THP_Anmeldung::formular_stil),
 * hier nur, was die Stil-Einstellungen nicht abdecken: Schrift, Button-Maße und Hover wie .uk-button-primary.
 */
.gform_wrapper.gform-theme {
    --gf-font-family-base: inherit;
    --gf-font-family-primary: inherit;
    --gf-font-family-secondary: inherit;
    font-family: inherit;
}

.gform_wrapper.gform-theme .gfield_label,
.gform_wrapper.gform-theme .gform-field-label--type-sub {
    font-weight: 600;
}

.gform_wrapper.gform-theme .gform_footer .gform_button,
.gform_wrapper.gform-theme .gform_page_footer .gform_next_button,
.gform_wrapper.gform-theme .gform_page_footer .gform_button {
    height: 48px;
    padding: 0 30px;
    border: 0;
    border-radius: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 48px;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out;
}

.gform_wrapper.gform-theme .gform_footer .gform_button:hover,
.gform_wrapper.gform-theme .gform_page_footer .gform_button:hover {
    background-color: #000;
    color: var(--thp-akzent, #97fa72);
}

/* ------------------------------------------------------------------ Newsletter (Formular „Newsletter“) */

@media (min-width: 640px) {
    .gform_wrapper .thp-newsletter-formular,
    form.thp-newsletter-formular {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0 12px;
    }

    form.thp-newsletter-formular .gform-body {
        flex: 1 1 360px;
    }

    form.thp-newsletter-formular .gform_footer {
        margin: 0 !important;
        padding: 0 !important;
    }
}

form.thp-newsletter-formular .gfield--type-html {
    margin-top: 4px;
}

/* ------------------------------------------------------------------ Hinweisleiste über der Navigation */

.thp-hinweisleiste {
    position: relative;
    z-index: 1000;
    background: #111;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
}

.thp-hinweisleiste-innen {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 1200px;
    min-height: 40px;
    margin: 0 auto;
    padding: 6px 16px;
}

.thp-hinweis {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.thp-hinweis[hidden] {
    display: none;
}

.thp-hinweis-chip {
    flex-shrink: 0;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 600;
}

.thp-hinweis--ausfall .thp-hinweis-chip,
.thp-hinweis--wichtig .thp-hinweis-chip {
    background: #f97066;
    color: #111;
}

.thp-hinweis--neu .thp-hinweis-chip {
    background: #97fa72;
    color: #111;
}

.thp-hinweis--ferien .thp-hinweis-chip {
    background: #fde68a;
    color: #111;
}

.thp-hinweis-text {
    overflow: hidden;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.thp-hinweis-text:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.thp-hinweis-zaehler {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.thp-hinweis-knopf {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.thp-hinweis-knopf:hover,
.thp-hinweis-knopf:focus-visible {
    background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 639px) {
    .thp-hinweis {
        justify-content: flex-start;
    }

    .thp-hinweis-zaehler {
        display: none;
    }
}

/* Statusfilter „Ausfälle & Änderungen“ im Kursplan: eigener Platz zwischen Filter und Ansicht (nur wenn vorhanden) */
.thp-kp-statusfilter {
    grid-area: status;
    justify-self: start;
    gap: 6px;
}

.thp-kp-leiste:has(.thp-kp-statusfilter) {
    grid-template-columns: minmax(0, max-content) auto auto minmax(auto, 1fr);
    grid-template-areas: "filter status ansicht woche";
    gap: 6px;
}

/* Schmal mit Tabs: Tabs oben, darunter Status, Ansicht, Woche */
.thp-kp-leiste:has(.thp-kp-statusfilter):has(.thp-kp-filter:not(.is-dropdown)) {
    grid-template-columns: auto auto minmax(auto, 1fr);
    grid-template-areas:
        "filter filter filter"
        "status ansicht woche";
}

@container (min-width: 640px) {
    .thp-kp-leiste:has(.thp-kp-statusfilter),
    .thp-kp-leiste:has(.thp-kp-statusfilter):has(.thp-kp-filter:not(.is-dropdown)) {
        grid-template-columns: minmax(0, max-content) auto auto minmax(auto, 1fr);
        grid-template-areas: "filter status ansicht woche";
        gap: 8px;
    }
}

/* Schmal: nur Punkt und Anzahl, wie der Filter nur als Icon */
@container (max-width: 639px) {
    .thp-kp-statusfilter {
        padding: 0 10px;
    }

    .thp-kp-statusfilter-text {
        display: none;
    }
}

.thp-kp-statusfilter[aria-pressed="true"] {
    border-color: var(--thp-text);
    background: var(--thp-text);
    color: #fff;
}

.thp-kp-anzahl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.08);
    font-size: 11px;
    font-weight: 700;
}

.thp-kp-statusfilter[aria-pressed="true"] .thp-kp-anzahl {
    background: rgba(255, 255, 255, 0.2);
}

/* ------------------------------------------------------------------ Nächste Termine */

.thp-nt-karte {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid var(--thp-linie);
    border-radius: var(--thp-radius);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.thp-nt-karte:hover {
    border-color: var(--thp-text);
}

.thp-nt-bild {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: color-mix(in srgb, var(--thp-farbe) 35%, #fff);
}

.thp-nt-karte--4-3 .thp-nt-bild { aspect-ratio: 4 / 3; }
.thp-nt-karte--16-9 .thp-nt-bild { aspect-ratio: 16 / 9; }

.thp-nt-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.thp-nt-karte:hover .thp-nt-img {
    transform: scale(1.03);
}

/* Ohne Cover: ruhige Datumskarte in der Kategoriefarbe */
.thp-nt-datumskarte {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--thp-text);
    text-align: center;
}

.thp-nt-wochentag,
.thp-nt-monat {
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.thp-nt-tag {
    font-size: clamp(56px, 9vw, 96px);
    font-weight: 700;
    line-height: 1;
}

.thp-nt-inhalt {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px 18px;
}

.thp-nt-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--thp-muted);
    font-size: 13px;
}

.thp-nt-titel {
    margin: 0;
    font-size: 19px;
    line-height: 1.25;
}

.thp-nt-link {
    color: inherit;
    text-decoration: none;
}

.thp-nt-link:hover {
    color: inherit;
    text-decoration: none;
}

/* ganze Karte klickbar */
.thp-nt-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.thp-nt-untertitel {
    margin: 0;
    color: var(--thp-muted);
    font-size: 14px;
    line-height: 1.45;
}

.thp-nt-fakten {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.45;
}

.thp-nt-weitere {
    color: var(--thp-muted);
    font-size: 13px;
    font-weight: 400;
}

.thp-nt-fuss {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

.thp-nt-status {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--thp-flaeche);
    font-size: 12px;
    font-weight: 600;
}

.thp-nt-status--frei { background: #e8f9e1; color: #1d6b0c; }
.thp-nt-status--wenige { background: #fff4d6; color: #7a5200; }
.thp-nt-status--warteliste { background: #f0f6fc; color: #0a4b78; }
.thp-nt-status--voll { background: #fde7e7; color: #b42318; }

.thp-nt-mehr {
    margin-left: auto;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Highlight: nächster Termin groß, Bild links, Inhalt rechts */
@media (min-width: 960px) {
    .thp-nt-karte.is-gross {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    }

    .thp-nt-karte.is-gross .thp-nt-bild {
        aspect-ratio: auto;
        min-height: 360px;
    }

    .thp-nt-karte.is-gross .thp-nt-inhalt {
        justify-content: center;
        gap: 10px;
        padding: 32px 36px;
    }

    .thp-nt-karte.is-gross .thp-nt-titel {
        font-size: 28px;
    }

    .thp-nt-karte.is-gross .thp-nt-untertitel,
    .thp-nt-karte.is-gross .thp-nt-fakten {
        font-size: 16px;
    }

    .thp-nt-karte.is-gross .thp-nt-fuss {
        margin-top: 8px;
    }
}

.thp-nt-weitere-liste {
    margin-top: 16px;
}

.thp-nt-alle {
    margin: 16px 0 0;
}

/* Zurück-Link (statt Breadcrumb) */

.thp-zurueck a {
    color: var(--thp-muted, rgba(0, 0, 0, 0.55));
    font-size: 14px;
    text-decoration: none;
}

.thp-zurueck a:hover {
    color: #000;
}

/* ------------------------------------------------------------------ Karten einheitlich: weicher Schatten, Hover in Grau */

.thp-kp-termin,
.thp-fakten--rahmen,
.thp-texte-karte,
.thp-faq--karten .thp-faq-eintrag,
.thp-wegweiser-schritt,
.thp-stimme,
.thp-warteliste,
.thp-kz-karte,
.thp-nt-karte,
.ttw-figur,
.ttw-kurs-kasten,
.ttw-wissen-karte {
    box-shadow: 0 10px 28px -18px rgba(0, 0, 0, 0.22);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Klickbare Karten: statt schwarzer Kontur nur minimal dunkleres Grau und etwas mehr Schatten */
.thp-kp-termin--link:hover,
.thp-wegweiser-schritt.is-link:hover,
.thp-kz-karte.is-link:hover,
.thp-nt-karte:hover,
.ttw-wissen-karte:hover {
    border-color: rgba(0, 0, 0, 0.18);
    box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.28);
}

/* Filter-Tabs, Chips und runde Knöpfe: Hover ebenfalls grau statt schwarz (aktive Auswahl bleibt schwarz) */
.thp-kp-tab:hover,
a.thp-chip:hover,
button.thp-kp-rund:hover:not(:disabled),
.thp-kp-dropdown-button:hover {
    border-color: rgba(0, 0, 0, 0.25);
}

/* Fokus-Rahmen nur bei Tastatur, nicht nach dem Klick */
.thp-kp-tab:focus:not(:focus-visible),
.ttw-modus-knopf:focus:not(:focus-visible) {
    outline: none;
}

/* Pfeile in Links: beim Hover ein Stück in Leserichtung */
.thp-pfeil,
.thp-pfeil-zurueck,
.thp-wegweiser-pfeil {
    display: inline-block;
    transition: transform 0.2s ease;
}

a:hover .thp-pfeil,
a:hover > .thp-pfeil,
.thp-nt-karte:hover .thp-pfeil,
.thp-kz-karte:hover .thp-pfeil,
.ttw-wissen-karte:hover .thp-pfeil,
.thp-wegweiser-schritt.is-link:hover .thp-wegweiser-pfeil {
    transform: translateX(4px);
}

a:hover .thp-pfeil-zurueck {
    transform: translateX(-4px);
}
