/* ── WMT Dashboard Styles ─────────────────────────────────── */
.wmt-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
    color: #1a2332;
}

/* ── Page header ── */
.wmt-header {
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
    color: white;
    padding: 24px 28px;
    border-radius: 10px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.wmt-header h1 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    color: white;
    border: none;
}
.wmt-header__meta {
    font-size: .82em;
    opacity: .7;
    margin-top: 4px;
}
.wmt-header__flush a {
    font-size: .8em;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.3);
    padding: 4px 10px;
    border-radius: 4px;
}
.wmt-header__flush a:hover { color: white; border-color: white; }

/* ── Navigation ── */
.wmt-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.wmt-nav a {
    display: inline-block;
    padding: 8px 18px;
    background: #3498db;
    color: white !important;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: .88em;
    font-weight: 500;
    transition: background .15s;
}
.wmt-nav a:hover { background: #2980b9; }
.wmt-nav a.wmt-nav--active {
    background: #1a2332;
    cursor: default;
    pointer-events: none;
}

/* ── KPI Cards ── */
.wmt-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}
.wmt-kpi {
    background: white;
    border-radius: 8px;
    padding: 18px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    border-top: 3px solid #3498db;
}
.wmt-kpi--green  { border-color: #27ae60; }
.wmt-kpi--red    { border-color: #e74c3c; }
.wmt-kpi--orange { border-color: #f39c12; }
.wmt-kpi--purple { border-color: #9b59b6; }
.wmt-kpi__value {
    font-size: 1.9em;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 5px;
    color: #1a2332;
}
.wmt-kpi__label {
    font-size: .78em;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* ── Section ── */
.wmt-section {
    margin-bottom: 32px;
}
.wmt-section__title {
    font-size: 1em;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 8px;
    margin: 0 0 16px;
}

/* ── Collapsible sections ── */
details.wmt-section > summary.wmt-section__title {
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}
details.wmt-section > summary.wmt-section__title::-webkit-details-marker { display: none; }
details.wmt-section > summary.wmt-section__title::marker { display: none; }
details.wmt-section > summary.wmt-section__title::after {
    content: '▸';
    font-size: .8em;
    color: #bdc3c7;
    transition: transform .15s;
    display: inline-block;
    flex-shrink: 0;
}
details.wmt-section[open] > summary.wmt-section__title::after {
    transform: rotate(90deg);
}
details.wmt-section[open] > summary.wmt-section__title {
    margin-bottom: 16px;
}

/* ── WL KPI tint ── */
.wmt-kpis--wl .wmt-kpi { border-top: 3px solid #3498db; }
.wmt-kpis--wl .wmt-kpi__value { color: #1a5276; }

/* ── Class Cards ── */
.wmt-classes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.wmt-class-card {
    background: white;
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
    display: flex;
    align-items: center;
    gap: 14px;
}
.wmt-class-card__count {
    font-size: 2em;
    font-weight: 700;
    color: #3498db;
    min-width: 2ch;
    text-align: center;
}
.wmt-class-card__code {
    font-size: .78em;
    font-weight: 700;
    color: #95a5a6;
    text-transform: uppercase;
}
.wmt-class-card__label {
    font-size: .85em;
    color: #555;
    line-height: 1.35;
}

/* ── Group Capacity Cards ── */
.wmt-groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.wmt-group-card {
    background: white;
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.wmt-group-card__label {
    font-size: .78em;
    font-weight: 700;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}
.wmt-group-card__count {
    font-size: 2em;
    font-weight: 700;
    color: #3498db;
    line-height: 1.1;
}
.wmt-group-card__max {
    font-size: .5em;
    font-weight: 400;
    color: #aaa;
}
.wmt-group-card__bar {
    margin-top: 10px;
    height: 6px;
    background: #ecf0f1;
    border-radius: 3px;
    overflow: hidden;
}
.wmt-group-card__bar-fill            { height: 100%; background: #3498db; border-radius: 3px; }
.wmt-group-card__bar-fill--warn      { background: #e67e22; }
.wmt-group-card__bar-fill--full      { background: #e74c3c; }
.wmt-group-card--wl .wmt-group-card__count { color: #1a5276; }

/* ── Accommodation Summary ── */
.wmt-accom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.wmt-accom-card {
    background: white;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
    text-align: center;
}
.wmt-accom-card__count {
    font-size: 1.7em;
    font-weight: 700;
    color: #2c3e50;
}
.wmt-accom-card__label {
    font-size: .8em;
    color: #7f8c8d;
    margin-top: 4px;
}

/* ── Tables ── */
.wmt-table-wrap { overflow-x: auto; }
.wmt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88em;
}
.wmt-table th,
.wmt-wrap .wmt-table th {
    background: #2c3e50 !important;
    color: #fff !important;
    padding: 10px 12px;
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
}
.wmt-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: middle;
}
.wmt-table tbody tr:hover td { background: #f8f9fa; }
.wmt-table .wmt-table--num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Sortable column headers ── */
.wmt-wrap .wmt-table th.wmt-sortable {
    cursor: pointer;
    user-select: none;
    padding-right: 26px;
    position: relative;
}
.wmt-wrap .wmt-table th.wmt-sortable::after {
    content: '↕';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
    font-size: 0.75em;
}
.wmt-wrap .wmt-table th.wmt-sort--asc::after  { content: '↑'; opacity: 1; }
.wmt-wrap .wmt-table th.wmt-sort--desc::after { content: '↓'; opacity: 1; }

/* ── Fixed-layout tables (Teams): gleiche Spaltenbreiten in allen Tabellen ── */
.wmt-table--fixed {
    table-layout: fixed;
}
.wmt-table--fixed td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wmt-table--fixed td:hover {
    white-space: normal;
    overflow: visible;
}

/* ── Badges ── */
.wmt-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 12px;
    font-size: .78em;
    font-weight: 600;
    white-space: nowrap;
}
.wmt-badge--paid      { background: #d5f5e3; color: #1e8449; }
.wmt-badge--partial   { background: #fef3cd; color: #7a4f0b; }
.wmt-badge--over      { background: #dbeafe; color: #1e40af; }
.wmt-badge--unpaid    { background: #fadbd8; color: #922b21; }
.wmt-badge--pending   { background: #fef9e7; color: #9a7d0a; }
.wmt-badge--wl        { background: #d6eaf8; color: #1a5276; }
.wmt-badge--invisible { visibility: hidden; }

/* ── Kassier-Modus ── */
.wmt-kassier {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 100;
    isolation: isolate;
    background: #f0f7ff;
    border: 1.5px solid #bfd7f7;
    border-radius: 10px;
    padding: 16px 20px 14px;
    margin-bottom: 16px;
    box-shadow: 0 3px 10px rgba(0,0,0,.08); /* sichtbar wenn "hängend" über Tabelle */
}
.wmt-kassier::before {
    content: '';
    position: absolute;
    top: -24px;
    bottom: -8px;
    left: -16px;
    right: -16px;
    background: white;
    z-index: -1;
}
.wmt-kassier__heading {
    font-size: .9em;
    font-weight: 700;
    color: #1a4a8a;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}
.wmt-kassier__form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.wmt-kassier__group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wmt-kassier__label {
    font-size: .72em;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.wmt-kassier__input {
    border: 1.5px solid #c0c8d8;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 1.05em;
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.wmt-kassier__input:focus {
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74,144,217,.15);
}
.wmt-kassier__input--ref    { width: 80px; font-family: monospace; font-size: 1.2em; letter-spacing: .1em; }
.wmt-kassier__input--betrag { width: 120px; }
.wmt-kassier__input:disabled { background: #f4f6f9; color: #bbb; cursor: not-allowed; }
.wmt-kassier__preview {
    flex: 1;
    min-width: 180px;
    padding: 8px 13px;
    border-radius: 7px;
    background: #fff;
    border: 1.5px solid #e0e8f0;
    font-size: .91em;
    color: #444;
    min-height: 38px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 10px;
    transition: border-color .15s, background .15s;
}
.wmt-kp__name   { flex: 1 1 100%; }
.wmt-kp__horse  { flex: 0 0 auto; color: #555; }
.wmt-kp__code   { flex: 1 1 auto; }
.wmt-kp__betrag { flex: 0 0 auto; white-space: nowrap; }
.wmt-kassier__preview--match   { border-color: #4caf50; background: #f0fff4; }
.wmt-kassier__preview--nomatch { border-color: #e57373; background: #fff5f5; color: #c0392b; }
.wmt-kassier__preview--multi   { border-color: #ffa726; background: #fffbf0; color: #7a4f0b; }
.wmt-kassier__hint { color: #aaa; }
.wmt-kassier__btn {
    padding: 8px 20px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-weight: 700;
    font-size: .95em;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    align-self: flex-end;
}
.wmt-kassier__btn:not(:disabled):hover { background: #1e8449; }
.wmt-kassier__btn:disabled { background: #c8d8c8; cursor: not-allowed; }
.wmt-kassier__status { font-size: .9em; font-weight: 600; align-self: flex-end; padding-bottom: 8px; }
.wmt-kassier__status--ok  { color: #27ae60; }
.wmt-kassier__status--err { color: #c0392b; }

@media (max-width: 600px) {
    .wmt-kassier__form {
        flex-direction: column;
        align-items: stretch;
    }
    .wmt-kassier__preview {
        width: 100%;
        min-width: 0;
        flex: none;
    }
    .wmt-kassier__input--ref,
    .wmt-kassier__input--betrag {
        width: 100%;
        box-sizing: border-box;
    }
    .wmt-kassier__btn {
        width: 100%;
        align-self: stretch;
    }
    .wmt-kassier__status {
        align-self: center;
        padding-bottom: 0;
        text-align: center;
    }
}

/* Zeilen-Highlight durch Kassier-Modus */
tr.wmt-kassier-match td { background: #f0fff4 !important; outline: 2px solid #4caf50; outline-offset: -1px; }

/* ── Filter-Bar (Schnellsuche) ── */
.wmt-filterbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.wmt-filterbar__input {
    flex: 1;
    min-width: 220px;
    padding: 7px 12px;
    border: 1.5px solid #d0d8e4;
    border-radius: 7px;
    font-size: .93em;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.wmt-filterbar__input:focus {
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74,144,217,.15);
}
.wmt-filterbar__toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .88em;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

/* ── Filters ── */
.wmt-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    align-items: center;
}
.wmt-filters select,
.wmt-filters input[type="text"] {
    padding: 7px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: .88em;
    background: white;
}
.wmt-filters label {
    font-size: .85em;
    color: #555;
}
#wmt-count {
    margin-left: auto;
    font-size: .85em;
    color: #7f8c8d;
}

/* ── Recent entries ── */
.wmt-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.wmt-recent-list li {
    background: white;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    display: grid;
    grid-template-columns: 1fr 4rem 7.5rem 7.5rem 6.5rem;
    align-items: center;
    gap: 0 10px;
    font-size: .88em;
}
.wmt-recent-list__name { font-weight: 600; }
.wmt-recent-list__meta { color: #7f8c8d; }

@media (max-width: 600px) {
    .wmt-recent-list li {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 8px;
    }
    .wmt-recent-list li .wmt-recent-list__name {
        flex: 1 1 100%;
    }
    .wmt-recent-list li .wmt-badge--invisible {
        display: none;
    }
    .wmt-recent-list li .wmt-recent-list__meta,
    .wmt-recent-list li .wmt-badge {
        flex: 0 0 auto;
        font-size: .82em;
    }
    .wmt-recent-list li .wmt-recent-list__meta:last-child {
        margin-left: auto;
    }
}

/* ── Team cards ── */
.wmt-team-block {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
    margin-bottom: 16px;
    overflow: hidden;
}
.wmt-team-block__head {
    background: #2c3e50;
    color: white;
    padding: 10px 16px;
    font-weight: 600;
    font-size: .92em;
    display: flex;
    justify-content: space-between;
}
.wmt-team-block--ohne .wmt-team-block__head { background: #e74c3c; }

/* ── Payment bar ── */
.wmt-pay-bar {
    height: 18px;
    border-radius: 9px;
    background: #fadbd8;
    overflow: hidden;
    margin-bottom: 10px;
}
.wmt-pay-bar__fill {
    height: 100%;
    background: #27ae60;
    border-radius: 9px;
    transition: width .3s;
}

/* ── Zahlungserfassung ── */
#wmt-erfassung-table th:last-child,
#wmt-erfassung-table td:last-child {
    width: 1%;
    white-space: nowrap;
}

.wmt-pay-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.wmt-wrap .wmt-zahlung-input {
    width: 90px;
    padding: 3px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: .88em;
    font-family: inherit;
    text-align: right;
    font-variant-numeric: tabular-nums;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    line-height: normal;
}
.wmt-zahlung-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,.2);
}
.wmt-wrap .wmt-pay-btn {
    flex-shrink: 0;
    padding: 3px 10px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: .82em;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
    box-sizing: border-box;
    line-height: normal;
}
.wmt-wrap .wmt-pay-btn:hover { background: #1e8449; }
.wmt-save-status {
    font-size: .8em;
}
.wmt-save-status--ok      { color: #27ae60; }
.wmt-save-status--err     { color: #e74c3c; font-weight: 600; }
.wmt-save-status--pending { color: #95a5a6; }

/* ── Warteliste – Sektion & Hinweis-Banner ── */
.wmt-section--wl {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
    border-radius: 8px;
    padding: 0 16px;
    margin-top: 8px;
}
.wmt-section--wl > summary.wmt-section__title {
    color: #92400e;
}
.wmt-wl-notice {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: .87em;
    color: #78350f;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* ── Warteliste – Tabellenzeilen ── */
tr.is-wl {
    background: rgba(251, 191, 36, 0.08);
}
tr.is-wl td {
    color: #78350f;
    opacity: .85;
}
tr.is-wl td:first-child::before {
    content: '⏳ ';
    font-size: .8em;
    opacity: .6;
}

/* ── Warteliste – Team-Block ── */
.wmt-team-block--wl {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
}
.wmt-team-block--wl .wmt-team-block__head {
    background: #fef3c7;
    color: #92400e;
}

/* ── Warteliste – Unterkunfts-Kachel ── */
.wmt-accom-card--wl {
    border: 1.5px solid #fcd34d;
    background: #fffbeb;
}
.wmt-accom-card--wl .wmt-accom-card__count {
    color: #d97706;
}

/* ── Geschlecht-Karten ── */
.wmt-sex-card {
    background: white;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.wmt-sex-card--total {
    border: 2px solid #2c3e50;
}
.wmt-sex-card__title {
    font-weight: 700;
    font-size: .85em;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: white;
    background: #2c3e50;
    border-radius: 5px;
    margin: -14px -14px 10px;
    padding: 8px 14px;
}
.wmt-sex-card__row {
    display: flex;
    justify-content: space-between;
    font-size: .85em;
    padding: 3px 0;
    color: #555;
}
.wmt-sex-card__row--total {
    font-weight: 700;
    color: #2c3e50;
    border-top: 1px solid #ecf0f1;
    margin-top: 4px;
    padding-top: 6px;
}
.wmt-sex-card__row strong {
    font-weight: 600;
    color: #2c3e50;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .wmt-kpis { grid-template-columns: repeat(2, 1fr); }
    .wmt-classes { grid-template-columns: 1fr; }
    .wmt-table th, .wmt-table td { padding: 7px 8px; }

    /* Kassier-Box: kompakt */
    .wmt-kassier           { padding: 10px 12px; }
    .wmt-kassier__heading  { display: none; }
    .wmt-kassier__form     { gap: 8px; align-items: center; }
    .wmt-kassier__group    { flex-direction: row; align-items: center; gap: 6px; }
    .wmt-kassier__label    { white-space: nowrap; margin: 0; }
    .wmt-kassier__input    { padding: 5px 8px; font-size: .95em; }
    .wmt-kassier__input--ref    { width: 62px; }
    .wmt-kassier__input--betrag { width: 90px; }
    .wmt-kassier__btn      { padding: 6px 14px; align-self: center; }
    .wmt-kassier__preview  { min-width: 100%; order: 10; padding: 6px 10px; min-height: 30px; font-size: .85em; }
    .wmt-kassier__status   { order: 11; padding-bottom: 0; }

    /* Zahlungserfassung: Tabellenzeilen als Karten */
    #wmt-erfassung-table thead { display: none; }
    #wmt-erfassung-table,
    #wmt-erfassung-table tbody { display: block; }
    #wmt-erfassung-table tr {
        display: grid;
        grid-template-areas:
            "name     name     status"
            "pferd    ref      betrag"
            "pruefung pruefung pruefung"
            "input    input    input";
        grid-template-columns: 1fr auto auto;
        gap: 3px 8px;
        padding: 10px 12px;
        border-bottom: 1px solid #ecf0f1;
    }
    #wmt-erfassung-table td                { padding: 0; border: none; white-space: normal; }
    #wmt-erfassung-table td:nth-child(1)   { grid-area: name;     font-weight: 600; font-size: .9em; align-self: center; }
    #wmt-erfassung-table td:nth-child(2)   { grid-area: pferd;    font-size: .82em; color: #7f8c8d; align-self: center; }
    #wmt-erfassung-table td:nth-child(3)   { grid-area: pruefung; font-size: .75em; color: #aaa; }
    #wmt-erfassung-table td:nth-child(4)   { grid-area: ref;      font-size: .82em; font-family: monospace; align-self: center; justify-self: center; }
    #wmt-erfassung-table td:nth-child(5)   { grid-area: status;   align-self: center; justify-self: end; }
    #wmt-erfassung-table td:nth-child(6)   { grid-area: betrag;   font-weight: 700; align-self: center; justify-self: end; font-size: .88em; }
    #wmt-erfassung-table td:nth-child(7)   { grid-area: input; }
    #wmt-erfassung-table .wmt-pay-cell     { gap: 8px; }
    #wmt-erfassung-table .wmt-zahlung-input { flex: 1; width: auto; font-size: 1em; padding: 6px 10px; }
    #wmt-erfassung-table .wmt-pay-btn      { padding: 6px 12px; font-size: .88em; }

    /* Teams: Tabellenzeilen als Karten */
    .wmt-team-block .wmt-table thead { display: none; }
    .wmt-team-block .wmt-table,
    .wmt-team-block .wmt-table tbody { display: block; }
    .wmt-team-block .wmt-table tr {
        display: grid;
        grid-template-areas:
            "name    name    zahlung"
            "pferd   pferd   nation"
            "pruefung pruefung pruefung";
        grid-template-columns: 1fr 1fr auto;
        gap: 2px 8px;
        padding: 10px 12px;
        border-bottom: 1px solid #ecf0f1;
    }
    .wmt-team-block .wmt-table tr:last-child { border-bottom: none; }
    .wmt-team-block .wmt-table td {
        padding: 0;
        border: none;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
    .wmt-team-block .wmt-table td:nth-child(1) { grid-area: name;     font-weight: 600; }
    .wmt-team-block .wmt-table td:nth-child(2) { grid-area: nation;   font-size: .82em; color: #7f8c8d; text-align: right; align-self: center; }
    .wmt-team-block .wmt-table td:nth-child(3) { grid-area: pferd;    font-size: .88em; }
    .wmt-team-block .wmt-table td:nth-child(4) { grid-area: pruefung; font-size: .78em; color: #7f8c8d; }
    .wmt-team-block .wmt-table td:nth-child(5) { grid-area: zahlung;  align-self: start; justify-self: end; }
}

/* ── Hilfe-Button (im Header) ── */
.wmt-help-btn {
    font-size: .8em;
    color: rgba(255,255,255,.75);
    background: transparent;
    border: 1px solid rgba(255,255,255,.35);
    padding: 5px 13px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: color .15s, border-color .15s, background .15s;
    white-space: nowrap;
    line-height: 1.4;
}
.wmt-help-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,.8);
    background: rgba(255,255,255,.1);
}

/* ── Hilfe-Modal: Overlay ── */
.wmt-help-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    overflow-y: auto;
    padding: 40px 16px 60px;
}
.wmt-help-overlay.is-open { display: block; }

/* ── Hilfe-Modal: Inhaltsbox ── */
.wmt-help-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 680px;
    margin: 0 auto;
    padding: 36px 40px 40px;
    position: relative;
    box-shadow: 0 12px 48px rgba(0,0,0,.28);
}

/* ── Schließen-Button ── */
.wmt-help-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.3em;
    color: #aab;
    cursor: pointer;
    line-height: 1;
    padding: 5px 9px;
    border-radius: 5px;
    transition: color .15s, background .15s;
}
.wmt-help-modal__close:hover { color: #2c3e50; background: #f0f2f5; }

/* ── Anleitung-Inhalt: Typografie ── */
.wmt-help-content h2 {
    font-size: 1.25em;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 4px;
    border: none;
    padding: 0;
}
.wmt-help-subtitle {
    font-size: .83em;
    color: #7f8c8d;
    margin: 0 0 28px;
}
.wmt-help-content h3 {
    font-size: .88em;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 26px 0 12px;
    padding-bottom: 7px;
    border-bottom: 2px solid #ecf0f1;
}
.wmt-help-content h3:first-of-type { margin-top: 0; }
.wmt-help-content p {
    margin: 0 0 10px;
    font-size: .9em;
    line-height: 1.65;
    color: #333;
}
.wmt-help-content ul {
    margin: 0 0 12px;
    padding-left: 20px;
    font-size: .9em;
    color: #333;
    line-height: 1.75;
}
.wmt-help-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: .87em;
    margin-bottom: 14px;
}
.wmt-help-content table th {
    background: #f4f6f8 !important;
    color: #2c3e50 !important;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dde2e8;
}
.wmt-help-content table td {
    padding: 8px 12px;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: middle;
}
.wmt-help-content code {
    background: #f0f2f5;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: .88em;
    font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
    color: #c0392b;
}

/* ── Nummerierte Schritte ── */
.wmt-help-step {
    display: flex;
    gap: 13px;
    margin-bottom: 12px;
    align-items: flex-start;
}
.wmt-help-step__num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3498db;
    color: #fff;
    font-size: .78em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.wmt-help-step__text {
    flex: 1;
    font-size: .9em;
    line-height: 1.65;
    color: #333;
}

/* ── FAQ ── */
.wmt-help-faq dt {
    font-weight: 600;
    font-size: .9em;
    color: #2c3e50;
    margin-top: 14px;
    margin-bottom: 3px;
}
.wmt-help-faq dd {
    margin: 0 0 0 0;
    font-size: .87em;
    line-height: 1.65;
    color: #555;
}

/* ── Responsive Modal ── */
@media (max-width: 600px) {
    .wmt-help-modal { padding: 28px 20px 32px; }
    .wmt-help-overlay { padding: 16px 8px 40px; }
}
