#ringen-table-container {
    margin: 20px auto;
    padding: 1rem;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto; 
}

#ringen-liga-logos-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem; 
    align-items: center;
    justify-items: center;
    margin-bottom: 1rem;
}

.ringen-header-logo-item {
    display: block; 
}

.ringen-header-logo-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

#ringen-liga-name-container {
    display: none;
    text-align: center;
    background: #f0f0f0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
}

#ringen-table-container .kampftag-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

#ringen-table-container .kampftag-header-title {
    font-size: clamp(1rem, 3vw, 1.6rem);
    font-weight: bold;
}

#ringen-table-container .ringen-button {
    background: #0d6efd;
    border: none;
    padding: 0.5rem 1rem;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.ringen-table {
    width: auto;
    border-collapse: collapse;
    table-layout: auto;
    font-size: clamp(0.85rem, 1vw, 1rem);
}

.ringen-table th,
.ringen-table td {
    padding: clamp(0.5rem, 1vw, 0.75rem);
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    text-overflow: ellipsis;
}

.ringen-table tr {
    border-bottom: 1px solid #dee2e6;
}

.ringen-table tr:hover {
    background: #fefefe;
}

.team-cell {
    display: flex;
    align-items: center;
}

.team-cell img {
    margin-right: 10px;
    width: clamp(1.5rem, 5vw, 3rem);
    height: auto;
}

.diff-positive {
    color: #28a745;
}

.diff-negative {
    color: #dc3545;
}

#ringen-table-container.in-wpb {
    margin: 10px auto;
    padding: 0.5rem;
}

.ac-match-item {
    text-align: center;
    margin-bottom: 1.5rem;
}

.ac-match-item .kampftag-title {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: bold;
}

.ac-match-item .kampftag-datum {
    font-size: clamp(0.9rem, 2vw, 1.125rem);
}

.match-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
}

/* =========================
   MEDIA QUERIES FÜR MOBIL
   ========================= */

@media (max-width: 768px) {
    .ringen-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .ringen-table th,
    .ringen-table td {
        min-width: 100px;
    }
    .kampftag-header {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .kampftag-header-title {
        display: none;
    }
    .ac-match-item .team-name {
        display: none;
    }
    .ac-match-item > div {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    .ringen-table {
        font-size: 0.8rem;
    }
    .ringen-table th,
    .ringen-table td {
        padding: 0.5rem;
    }
    .team-cell img {
        width: 1.5rem;
    }
}

.ac-widget {
    text-align: center;
    margin-bottom: 1.5rem;
}

.ac-widget .kampftag {
    margin-bottom: .3rem;
    font-weight: 600;
}
.ac-widget .kampftag-date {
    margin-bottom: .8rem;
    opacity: .85;
}


/* Container für die Kampffrei-Zeile */
.ac-widget .match-container {
    display: flex;
    justify-content: center; /* mittig ausrichten */
    align-items: center;
    text-align: center;
    margin-top: .5rem;
}

/* Logo + Text nebeneinander */
.ac-widget .bye-inline {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}

/* Logo- und Textgrößen wie zuvor */
.ac-widget .bye-inline .team-logo {
    width: clamp(60px, 6vw, 90px);
    height: auto;
    object-fit: contain;
}

.ac-widget .bye-inline span {
    font-size: 1.2rem;
    line-height: 1.3;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .ac-widget .bye-inline .team-logo {
        width: clamp(48px, 8vw, 70px);
    }
    .ac-widget .bye-inline span {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .ac-widget .bye-inline .team-logo {
        width: 40px;
    }
    .ac-widget .bye-inline span {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .ac-widget .bye-inline .team-logo {
        width: 32px;
    }
    .ac-widget .bye-inline span {
        font-size: .95rem;
    }
}