/* Zusatzstile für Kästchensystem-Seiten der Clubmeisterschaften */

.box-page {
    max-width: 1180px;
}

.box-intro h1 {
    margin-bottom: 8px;
}

.box-card {
    background: #ffffff;
    border: 2px solid #000099;
    border-radius: 16px;
    padding: 0 0 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 153, 0.12);
}

.box-titlebar {
    display: flex;
    align-items: center;
    gap: 26px;
    background: #062766;
    color: #ffffff;
    padding: 10px 22px;
    min-height: 96px;
}

.box-titlebar img {
    width: 88px;
    height: auto;
    display: block;
}

.box-titlebar h2 {
    flex: 1;
    margin: 0;
    color: #ffffff;
    text-align: center;
    font-size: 1.9em;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.box-table-wrap {
    width: calc(100% - 28px);
    margin: 16px auto 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.box-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    color: #000000;
    background: #ffffff;
    font-size: 0.95em;
}

.box-table th,
.box-table td {
    border: 1px solid #000000;
    padding: 12px 10px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.35;
}

.box-table thead th,
.box-table tbody th {
    font-weight: bold;
}

.box-table thead th:first-child,
.box-table tbody th {
    width: 160px;
}

.box-table td {
    width: 170px;
}

.box-diagonal {
    font-weight: bold;
    background: #f4f4f4;
}

.box-info-grid {
    margin-top: 22px;
}

.box-print-button {
    font: inherit;
    cursor: pointer;
}

@media (max-width: 768px) {
    .box-card {
        border-radius: 12px;
    }

    .box-titlebar {
        display: block;
        padding: 12px;
        text-align: center;
    }

    .box-titlebar img {
        width: 72px;
        margin: 0 auto 8px;
    }

    .box-titlebar h2 {
        font-size: 1.25em;
        line-height: 1.3;
    }

    .box-table-wrap {
        width: calc(100% - 16px);
        margin-top: 10px;
    }

    .box-table {
        min-width: 780px;
        font-size: 0.86em;
    }

    .box-table th,
    .box-table td {
        padding: 10px 8px;
    }
}

@media print {
    header,
    nav,
    footer,
    .tournament-actions,
    .box-info-grid,
    .box-intro {
        display: none !important;
    }

    body {
        background: #ffffff;
        color: #000000;
    }

    .clubmeisterschaft-section,
    .box-card {
        max-width: none;
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    .box-table-wrap {
        overflow: visible;
        width: 100%;
    }

    .box-table {
        min-width: 0;
        font-size: 10pt;
    }
}
