.h4a-spiele-block {
    margin: 1.5em 0;
    font-size: 0.95rem;
    line-height: 1.45;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.h4a-spiele-block.h4a-spiele-fullwidth {
    width: 100%;
    max-width: 100%;
}

.h4a-spiele-block .h4a-spiele-title {
    margin: 0 0 0.75em;
    font-size: 1.15em;
    font-weight: 600;
}

.h4a-spiele-block .h4a-spiele-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.h4a-spiele-block .h4a-spiele-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: inherit;
    line-height: inherit;
}

.h4a-spiele-block .h4a-spiele-table th,
.h4a-spiele-block .h4a-spiele-table td {
    padding: 0.5em 0.75em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
    vertical-align: top;
}

.h4a-spiele-block .h4a-spiele-table th {
    font-weight: 600;
    background: rgba(0, 0, 0, 0.03);
}

.h4a-spiele-block .h4a-spiele-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.04);
}

.h4a-spiele-block .h4a-spiele-table tbody tr:nth-child(odd) {
    background: transparent;
}

.h4a-spiele-block .h4a-spiele-table tbody tr.h4a-spiele-row-home-hall--a {
    background: #e8f3fc;
}

.h4a-spiele-block .h4a-spiele-table tbody tr.h4a-spiele-row-home-hall--b {
    background: #d4ebfa;
}

.h4a-spiele-block .h4a-spiele-hall-home {
    font-weight: 700;
}

.h4a-spiele-block .h4a-spiele-score {
    font-weight: 700;
    white-space: nowrap;
}

.h4a-spiele-block .h4a-spiele-empty {
    margin: 0;
    color: #666;
    font-style: italic;
}

.h4a-spiele-block .h4a-spiele-toolbar {
    margin-bottom: 1.25em;
}

.h4a-spiele-block.h4a-spiele-spielplan .h4a-spiele-toolbar {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 1em 1.1em;
}

.h4a-spiele-block script.h4a-spiele-data {
    display: none !important;
}

.h4a-spiele-block .h4a-spiele-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85em 1em;
    align-items: end;
}

.h4a-spiele-block .h4a-spiele-search {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 0.35em;
}

.h4a-spiele-block .h4a-spiele-search input[type="search"] {
    width: 100%;
    padding: 0.65em 0.9em;
    border: none;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.06);
    font: inherit;
    color: inherit;
    transition: background-color 0.15s ease;
}

.h4a-spiele-block .h4a-spiele-search input[type="search"]:hover,
.h4a-spiele-block .h4a-spiele-search input[type="search"]:focus {
    background-color: rgba(0, 0, 0, 0.09);
    outline: none;
}

.h4a-spiele-block .h4a-spiele-search input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
}

.h4a-spiele-block .h4a-spiele-filter {
    display: flex;
    flex-direction: column;
    gap: 0.35em;
    min-width: 0;
}

.h4a-spiele-block .h4a-spiele-reset {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 0.35em 0;
    margin-top: 0.15em;
}

.h4a-spiele-block .h4a-spiele-filter-label {
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
}

.h4a-spiele-block .h4a-spiele-filter select,
.h4a-spiele-block .h4a-spiele-per-page select {
    width: 100%;
    min-width: 0;
    padding: 0.65em 2.2em 0.65em 0.9em;
    border: none;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.06);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85em center;
    appearance: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.h4a-spiele-block .h4a-spiele-filter select:hover,
.h4a-spiele-block .h4a-spiele-per-page select:hover,
.h4a-spiele-block .h4a-spiele-filter select:focus,
.h4a-spiele-block .h4a-spiele-per-page select:focus {
    background-color: rgba(0, 0, 0, 0.09);
    outline: none;
}

.h4a-spiele-block .h4a-spiele-reset {
    padding: 0.65em 1em;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(0, 0, 0, 0.55);
    font: inherit;
    font-size: 0.9em;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.h4a-spiele-block .h4a-spiele-reset:hover {
    color: rgba(0, 0, 0, 0.85);
}

.h4a-spiele-block .h4a-spiele-summary {
    margin: 0;
    font-size: 0.88em;
    color: rgba(0, 0, 0, 0.55);
    text-align: right;
}

.h4a-spiele-block .h4a-spiele-footer {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-top: 1.25em;
}

.h4a-spiele-block .h4a-spiele-pagination {
    width: 100%;
}

.h4a-spiele-block .h4a-spiele-footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 1em 1.5em;
    width: 100%;
}

.h4a-spiele-block .h4a-spiele-per-page {
    display: flex;
    flex-direction: column;
    gap: 0.35em;
    min-width: 9em;
    flex: 0 0 auto;
}

.h4a-spiele-block .h4a-spiele-updated {
    margin: 0.85em 0 0;
    font-size: 0.82em;
    color: rgba(0, 0, 0, 0.45);
    text-align: right;
}

.h4a-spiele-block .h4a-spiele-pagination-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
    align-items: center;
}

.h4a-spiele-block .h4a-spiele-page-btn {
    min-width: 2.4em;
    padding: 0.5em 0.75em;
    border: none;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.06);
    font: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.h4a-spiele-block .h4a-spiele-page-btn.h4a-spiele-page-nav {
    min-width: 0;
    padding-inline: 1em;
}

.h4a-spiele-block .h4a-spiele-page-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.1);
}

.h4a-spiele-block .h4a-spiele-page-btn.is-active {
    font-weight: 700;
    background: rgba(0, 0, 0, 0.14);
}

.h4a-spiele-block .h4a-spiele-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .h4a-spiele-block.h4a-spiele-spielplan .h4a-spiele-toolbar {
        padding: 0.9em;
    }

    .h4a-spiele-block .h4a-spiele-filters {
        grid-template-columns: 1fr 1fr;
        gap: 0.75em;
    }

    .h4a-spiele-block .h4a-spiele-filter:nth-child(3) {
        grid-column: 1 / -1;
    }

    .h4a-spiele-block .h4a-spiele-reset {
        grid-column: 1 / -1;
        justify-self: stretch;
        text-align: center;
        padding: 0.75em;
        background: rgba(0, 0, 0, 0.04);
        border-radius: 10px;
        text-decoration: none;
    }

    .h4a-spiele-block .h4a-spiele-footer-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .h4a-spiele-block .h4a-spiele-summary {
        text-align: left;
        order: 1;
    }

    .h4a-spiele-block .h4a-spiele-per-page {
        order: 2;
        width: 100%;
    }

    .h4a-spiele-block .h4a-spiele-pagination-inner {
        justify-content: center;
        width: 100%;
    }

    .h4a-spiele-block .h4a-spiele-updated {
        text-align: left;
    }

    .h4a-spiele-block .h4a-spiele-table-wrap {
        overflow: visible;
    }

    .h4a-spiele-block .h4a-spiele-table thead {
        display: none;
    }

    .h4a-spiele-block .h4a-spiele-table,
    .h4a-spiele-block .h4a-spiele-table tbody {
        display: block;
        width: 100%;
    }

    .h4a-spiele-block .h4a-spiele-table tbody tr {
        display: block;
        margin-bottom: 0.85em;
        padding: 0.85em 1em;
        border: 1px solid rgba(0, 0, 0, 0.12);
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }

    .h4a-spiele-block .h4a-spiele-table tbody tr:nth-child(odd) {
        background: #fff;
    }

    .h4a-spiele-block .h4a-spiele-table tbody tr:nth-child(even) {
        background: rgba(0, 0, 0, 0.04);
    }

    .h4a-spiele-block .h4a-spiele-table tbody tr.h4a-spiele-row-home-hall--a {
        background: #e8f3fc;
    }

    .h4a-spiele-block .h4a-spiele-table tbody tr.h4a-spiele-row-home-hall--b {
        background: #d4ebfa;
    }

    .h4a-spiele-block .h4a-spiele-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .h4a-spiele-block .h4a-spiele-table td {
        display: flex;
        align-items: flex-start;
        gap: 0.75em;
        padding: 0.45em 0;
        border-bottom: none;
        white-space: normal;
    }

    .h4a-spiele-block .h4a-spiele-table td::before {
        content: attr(data-label);
        flex: 0 0 5.5em;
        max-width: 5.5em;
        font-weight: 600;
        color: rgba(0, 0, 0, 0.55);
        font-size: 0.85em;
        line-height: 1.4;
    }

    .h4a-spiele-block .h4a-spiele-table td.h4a-spiele-col-date,
    .h4a-spiele-block .h4a-spiele-table td.h4a-spiele-col-time {
        display: inline-block;
        width: auto;
        padding: 0 0.75em 0.5em 0;
        font-weight: 600;
    }

    .h4a-spiele-block .h4a-spiele-table td.h4a-spiele-col-date::before,
    .h4a-spiele-block .h4a-spiele-table td.h4a-spiele-col-time::before {
        display: none;
    }

    .h4a-spiele-block .h4a-spiele-table td.h4a-spiele-col-time {
        padding-right: 0;
        color: rgba(0, 0, 0, 0.75);
    }

    .h4a-spiele-block .h4a-spiele-table td.h4a-spiele-col-staffel {
        padding-top: 0;
        padding-bottom: 0.65em;
        margin-bottom: 0.35em;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        font-size: 0.9em;
    }

    .h4a-spiele-block .h4a-spiele-table td.h4a-spiele-col-staffel::before {
        display: none;
    }

    .h4a-spiele-block .h4a-spiele-table td.h4a-spiele-col-home,
    .h4a-spiele-block .h4a-spiele-table td.h4a-spiele-col-away {
        font-weight: 500;
    }

    .h4a-spiele-block .h4a-spiele-table td.h4a-spiele-col-score {
        font-size: 1.15em;
        padding-top: 0.65em;
        margin-top: 0.25em;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .h4a-spiele-block .h4a-spiele-table td.h4a-spiele-col-hall {
        padding-top: 0.65em;
        margin-top: 0.25em;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }
}

@media (max-width: 480px) {
    .h4a-spiele-block .h4a-spiele-filters {
        grid-template-columns: 1fr;
    }

    .h4a-spiele-block .h4a-spiele-filter:nth-child(3) {
        grid-column: auto;
    }
}

@media (max-width: 400px) {
    .h4a-spiele-block {
        font-size: 0.9rem;
    }

    .h4a-spiele-block .h4a-spiele-table td::before {
        flex: 0 0 4.75em;
        max-width: 4.75em;
    }

    .h4a-spiele-block .h4a-spiele-table tbody tr {
        padding: 0.75em 0.85em;
    }
}

.h4a-spiele-block .h4a-spiele-standings-table .h4a-spiele-col-place,
.h4a-spiele-block .h4a-spiele-standings-table .h4a-spiele-col-num,
.h4a-spiele-block .h4a-spiele-standings-table .h4a-spiele-col-goals,
.h4a-spiele-block .h4a-spiele-standings-table .h4a-spiele-col-points {
    text-align: center;
    white-space: nowrap;
}

.h4a-spiele-block .h4a-spiele-standings-table tbody tr.h4a-spiele-row-own-team {
    background: #e8f3fc;
    font-weight: 600;
}

.h4a-spiele-block .h4a-spiele-standings-table tbody tr.h4a-spiele-row-own-team td {
    border-bottom-color: rgba(0, 90, 160, 0.2);
}
