.vm-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px;
}

.vm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.vm-header-left,
.vm-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vm-title {
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

.vm-user {
    font-size: 14px;
    color: #555;
}

.vm-btn {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #999;
    border-radius: 4px;
    background: #fff;
    color: #222;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
}

.vm-btn-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.vm-section-title {
    font-size: 15px;
    color: #555;
    margin: 24px 0 10px;
}

.vm-kacheln {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.vm-kachel {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 2px solid #c3c8d2;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.vm-kachel:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 10px rgba(34, 113, 177, 0.15);
    transform: translateY(-1px);
}

.vm-kachel-icon {
    color: #2271b1;
    flex-shrink: 0;
    display: flex;
}

.vm-kachel-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.vm-kachel-sport {
    font-weight: 600;
    font-size: 16px;
}

.vm-kachel-kategorie {
    font-size: 13px;
    color: #555;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.vm-kachel-kategorie .vm-icon {
    color: #888;
}

.vm-kachel-meister {
    border-color: #e0b64a;
    background: #fffaf0;
}

.vm-kachel-meister .vm-kachel-icon {
    color: #c8901a;
}

.vm-kachel-meister:hover {
    border-color: #c8901a;
    box-shadow: 0 2px 10px rgba(200, 144, 26, 0.18);
}

.vm-icon {
    vertical-align: middle;
}

.vm-badge {
    display: inline-block;
    align-self: flex-start;
    margin-top: 4px;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 4px;
    background: #eee;
    color: #444;
}

.vm-gesamtplan {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vm-spiel-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 10px;
    border-radius: 4px;
    background: #f5f5f5;
    text-decoration: none;
    color: inherit;
    font-size: 14px;
}

.vm-spiel-datum {
    color: #777;
    min-width: 70px;
}

.vm-spiel-teams {
    flex: 1;
}

.vm-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #ddd;
    margin: 16px 0;
}

.vm-tab {
    padding: 8px 14px;
    text-decoration: none;
    color: #555;
    border-bottom: 2px solid transparent;
    font-size: 14px;
}

.vm-tab-active {
    color: #222;
    border-bottom-color: #2271b1;
    font-weight: 600;
}

.vm-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.vm-modal-overlay.vm-modal-visible {
    display: flex;
}

.vm-modal {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    width: 320px;
    max-width: 90vw;
    position: relative;
}

.vm-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.vm-modal label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
}

.vm-modal input {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 6px 8px;
    box-sizing: border-box;
}

.vm-error {
    color: #b32d2e;
    font-size: 13px;
}

.vm-vorlaeufig {
    color: #b32d2e;
    font-style: italic;
}

.vm-success {
    color: #2a7a2a;
    font-size: 13px;
}

.vm-forgot {
    margin-top: 14px;
    font-size: 13px;
}

.vm-cockpit-pending {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.vm-badge-success {
    background: #e5f5e5;
    color: #2a7a2a;
}

.vm-badge-warning {
    background: #fdf0d5;
    color: #9a6400;
}

.vm-cockpit-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 6px;
}

.vm-cockpit-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.vm-cockpit-info {
    font-size: 12.5px;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.35;
}

.vm-cockpit-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.vm-aktions-block .vm-cockpit-actions .vm-btn {
    padding: 4px 10px;
    font-size: 12px;
}

.vm-cockpit-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.vm-cockpit-form label {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    gap: 4px;
}

.vm-satz-rows,
.vm-zusatzfelder {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.vm-satz-row {
    flex-direction: row !important;
    align-items: center;
    gap: 6px !important;
}

.vm-satz-row input[type="number"] {
    width: 60px;
}

.vm-satz-row span {
    min-width: 70px;
}

.vm-satz-add {
    align-self: flex-start;
    margin: 2px 0;
}

.vm-zusatz-text {
    color: #777;
    font-size: 12px;
}

.vm-cockpit-form-error {
    color: #b32d2e;
    font-size: 13px;
    width: 100%;
}

.vm-subtabs {
    display: flex;
    gap: 6px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.vm-subtab {
    padding: 5px 12px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #444;
    text-decoration: none;
    font-size: 13px;
}

.vm-subtab-active {
    background: #2271b1;
    color: #fff;
}

.vm-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.vm-table th,
.vm-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.vm-table th {
    color: #666;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

.vm-table th:hover {
    color: #222;
}

.vm-filter-input {
    width: 100%;
    max-width: 300px;
    padding: 6px 10px;
    margin-top: 12px;
    box-sizing: border-box;
}

.vm-bracket-runde {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.vm-bracket-match {
    border: 1px solid #ddd;
    border-radius: 6px;
    max-width: 320px;
}

.vm-bracket-match-done {
    border-color: #bbb;
}

.vm-bracket-team {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.vm-bracket-team:last-child {
    border-bottom: none;
}

.vm-bracket-winner {
    font-weight: 600;
    background: #f3f9f3;
}

/* ── Spiele-Filter + Tabelle (Landingpage) ─────────────────────────────── */
.vm-filter {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: #fafafa;
}

.vm-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    align-items: end;
}

.vm-filter-row + .vm-filter-row {
    margin-top: 10px;
}

.vm-filter label {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #555;
    gap: 3px;
    min-width: 0;
}

.vm-filter select,
.vm-filter input {
    padding: 5px 7px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
}

.vm-filter-actions {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.vm-result-count {
    font-size: 13px;
    color: #666;
    margin: 6px 0;
}

.vm-table-scroll {
    overflow-x: auto;
}

.vm-spiele-tabelle {
    min-width: 1100px;
    width: 100%;
    table-layout: fixed;
}

.vm-spiele-tabelle th a {
    color: #555;
    text-decoration: none;
}

.vm-spiele-tabelle th a:hover {
    color: #2271b1;
}

.vm-spiele-tabelle tbody tr:nth-child(even):not(.vm-row-eigen) {
    background: #e9ebef;
}

.vm-spiele-tabelle tbody tr.vm-row-eigen:nth-child(even) {
    background: #dce9f6;
}

.vm-spiele-tabelle tbody tr:hover {
    background: #eef5fb;
}

.vm-td-icon {
    color: #2271b1;
    margin-right: 5px;
    vertical-align: middle;
    display: inline-block;
}

.vm-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    background: #eee;
    color: #444;
}

.vm-status-live {
    background: #fce4e4;
    color: #b32d2e;
    font-weight: 600;
}

.vm-status-geplant {
    background: #e3eefb;
    color: #1a5490;
}

.vm-status-gemeldet {
    background: #fdf0d5;
    color: #9a6400;
    font-weight: 600;
}

.vm-status-abgeschlossen {
    background: #e5f5e5;
    color: #2a7a2a;
}

.vm-paginator {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 14px;
}

.vm-page {
    display: inline-block;
    min-width: 30px;
    text-align: center;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
}

.vm-page-active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

/* ── Live-Ticker / vorläufige Tabellenwertung ──────────────────────────── */
.vm-row-vorlaeufig {
    background: #fffaf0;
}
.vm-vorlaeufig-marker {
    color: #c8901a;
    font-weight: 600;
}
.vm-vorlaeufig-hinweis {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.vm-spiele-tabelle em,
.vm-table em {
    font-style: italic;
    color: #444;
}

/* ── Auslosungs-Ansicht (Wettbewerb) ───────────────────────────────────── */
.vm-auslosung-gruppen {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}
.vm-auslosung-gruppe {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
}
.vm-auslosung-gruppe h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}
.vm-auslosung-liste {
    margin: 0;
    padding-left: 22px;
    font-size: 15px;
}
.vm-auslosung-liste li {
    padding: 3px 0;
}
.vm-auslosung-leer {
    color: #888;
    font-size: 13px;
}

/* ── Angemeldete Landing: Aktions-Block, Kachel-Status, interaktive Tabelle ─ */
.vm-aktions-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}
.vm-aktion-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
}
.vm-aktion-row-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.vm-aktion-row-sport {
    font-weight: 600;
    font-size: 14px;
}
.vm-aktion-row-status {
    font-size: 12.5px;
    color: #666;
}
.vm-kachel-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.vm-kachel-angemeldet {
    border-color: #2a7a2a !important;
    border-width: 3px !important;
}
.vm-badge-angemeldet {
    background: #e5f5e5;
    color: #2a7a2a;
    font-weight: 600;
}
.vm-teilnahme-btn {
    align-self: flex-start;
}
.vm-teilnahme-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.vm-filter-checkbox {
    flex-direction: row !important;
    align-items: center;
    gap: 6px !important;
    font-size: 13px !important;
    color: #333 !important;
}
.vm-row-eigen {
    background: #eef5fb;
}
.vm-row-eigen:hover {
    background: #e2eef9;
}
.vm-modal-wide {
    width: 460px;
    max-width: 94vw;
}
.vm-cockpit-noaction {
    font-size: 13px;
    color: #888;
}
