/* Tippspiel Next Matches */
.mod-tippspiel-nextmatches,
.mod-tippspiel-nextmatches--sidebar {
    position: relative;
    z-index: 2;
    isolation: isolate;
    clear: both;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #d8e3f2;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15, 37, 72, .08);
    color: #0b2345;
    overflow: hidden;
}

.mod-tippspiel-nextmatches *,
.mod-tippspiel-nextmatches *::before,
.mod-tippspiel-nextmatches *::after {
    box-sizing: border-box;
}

.mod-tippspiel-nextmatches__title {
    margin: 0 0 12px;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: #12366e;
}

.mod-tippspiel-nextmatches__empty {
    padding: 12px;
    border-radius: 10px;
    background: #f8fbff;
    color: #4a5b73;
}

/* Ausführliche Einzelkarte */
.mod-tippspiel-nextmatches__match {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid #dce7f5;
    border-left: 6px solid #244a9b;
    border-radius: 14px;
    background: #f8fbff;
}

.mod-tippspiel-nextmatches__match.is-featured {
    background: linear-gradient(180deg, #f7fbff, #eef6ff);
}

.mod-tippspiel-nextmatches__timebar {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 10px;
    padding: 0 0 9px;
    border-bottom: 1px solid #e0e8f3;
    text-align: center;
}

.mod-tippspiel-nextmatches__kickoff {
    font-size: .86rem;
    line-height: 1.2;
    color: #334e75;
    white-space: normal;
    text-align: center;
}

.mod-tippspiel-nextmatches__countdown {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #d8e3f2;
    color: #12366e;
    font-weight: 800;
    font-size: .86rem;
    line-height: 1.15;
}

.mod-tippspiel-nextmatches__teams {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    align-items: center;
    justify-items: center;
}

.mod-tippspiel-nextmatches__team {
    width: 100%;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 9px;
    text-align: left;
    min-width: 0;
    padding: 0 4px;
}

.mod-tippspiel-nextmatches__team img,
.mod-tippspiel-nextmatches__placeholder {
    width: 30px;
    height: 30px;
    max-width: 30px;
    max-height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

.mod-tippspiel-nextmatches__placeholder {
    display: inline-block;
    border-radius: 50%;
    background: #dbe6f5;
}

.mod-tippspiel-nextmatches__team strong {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    font-size: 1rem;
    line-height: 1.2;
    color: #082b5f;
}

.mod-tippspiel-nextmatches__middle {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 2px 0;
    margin: 0;
    min-width: 0;
}

.mod-tippspiel-nextmatches__versus {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #244a9b;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
}

.mod-tippspiel-nextmatches__livebadge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-weight: 900;
    font-size: .72rem;
    line-height: 1.1;
    letter-spacing: .02em;
}

.mod-tippspiel-nextmatches__liveresult {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #d8e3f2;
    color: #082b5f;
    font-weight: 900;
    font-size: 1rem;
    line-height: 1.1;
}

.mod-tippspiel-nextmatches__usertip {
    margin: 10px auto 0;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d8e3f2;
    color: #12366e;
    font-size: .86rem;
    font-weight: 800;
    text-align: center;
    width: max-content;
    max-width: 100%;
}

.mod-tippspiel-nextmatches__usertip.has-tip {
    background: #e7f7ed;
    border-color: #b9e5c9;
    color: #137333;
}

.mod-tippspiel-nextmatches__usertip.no-tip {
    color: #6b7280;
}

.mod-tippspiel-nextmatches__location {
    width: 100%;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid #e0e8f3;
    text-align: center;
    color: #4a5b73;
    font-size: .82rem;
    line-height: 1.25;
}

/* Kompakte Listenansicht */
.mod-tippspiel-nextmatches__compact-list {
    width: 100%;
    display: block;
    margin-top: 10px;
    min-width: 0;
    overflow: hidden;
}

.mod-tippspiel-nextmatches__date-group {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 12px 0 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #244a9b;
    color: #ffffff;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
}

.mod-tippspiel-nextmatches__compact-match {
    width: 100%;
    min-width: 0;
    padding: 7px 0 8px;
    border-bottom: 1px solid #dce7f5;
    overflow: hidden;
}

.mod-tippspiel-nextmatches__compact-match:last-child {
    border-bottom: 0;
}

.mod-tippspiel-nextmatches__compact-main {
    width: 100%;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    align-items: center;
    column-gap: 8px;
    min-width: 0;
}

.mod-tippspiel-nextmatches__compact-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.mod-tippspiel-nextmatches__compact-logo img,
.mod-tippspiel-nextmatches__compact-logo .mod-tippspiel-nextmatches__placeholder {
    display: block;
    width: 26px;
    height: 26px;
    max-width: 26px;
    max-height: 26px;
    object-fit: contain;
}

.mod-tippspiel-nextmatches__compact-tip {
    justify-self: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef4ff;
    border: 1px solid #d8e3f2;
    color: #12366e;
    font-size: .82rem;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mod-tippspiel-nextmatches__compact-tip.has-tip {
    background: #e7f7ed;
    border-color: #b9e5c9;
    color: #137333;
}

.mod-tippspiel-nextmatches__compact-tip.no-tip {
    color: #6b7280;
}

.mod-tippspiel-nextmatches__compact-sub {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(48px, auto) minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    margin-top: 2px;
    font-size: .72rem;
    line-height: 1.2;
    color: #4a5b73;
    min-width: 0;
}

.mod-tippspiel-nextmatches__compact-sub span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mod-tippspiel-nextmatches__compact-sub span:last-child {
    text-align: right;
}

.mod-tippspiel-nextmatches__compact-sub strong {
    color: #082b5f;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 420px) {
    .mod-tippspiel-nextmatches,
    .mod-tippspiel-nextmatches--sidebar {
        padding: 10px;
    }

    .mod-tippspiel-nextmatches__compact-main {
        grid-template-columns: 30px minmax(62px, 1fr) 30px;
        gap: 6px;
    }

    .mod-tippspiel-nextmatches__compact-logo img,
    .mod-tippspiel-nextmatches__compact-logo .mod-tippspiel-nextmatches__placeholder {
        width: 25px;
        height: 25px;
        max-width: 25px;
        max-height: 25px;
    }

    .mod-tippspiel-nextmatches__compact-tip {
        font-size: .78rem;
        padding: 2px 6px;
    }

    .mod-tippspiel-nextmatches__compact-sub {
        font-size: .7rem;
        gap: 6px;
    }
}

.mod-tippspiel-nextmatches__match + .mod-tippspiel-nextmatches__match {
    margin-top: 10px;
}


/* Punktefarben analog zur Tippabgabe: Tendenz rot, Differenz gelb, exakt grün */
.mod-tippspiel-nextmatches__points {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: 7px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    background: #8b9ab0;
}

.mod-tippspiel-nextmatches__points.points-zero {
    background: #8b9ab0;
}

.mod-tippspiel-nextmatches__points.points-tendency {
    background: #dc3545;
}

.mod-tippspiel-nextmatches__points.points-difference {
    background: #ffc107;
    color: #10233f;
}

.mod-tippspiel-nextmatches__points.points-exact {
    background: #198754;
}

.mod-tippspiel-nextmatches__compact-tip.points-zero {
    background: #eef2f7;
    border-color: #d8e3f2;
    color: #4a5b73;
}

.mod-tippspiel-nextmatches__compact-tip.points-tendency {
    background: #fdecef;
    border-color: #f3b7c0;
    color: #842029;
}

.mod-tippspiel-nextmatches__compact-tip.points-difference {
    background: #fff3cd;
    border-color: #ffda6a;
    color: #664d03;
}

.mod-tippspiel-nextmatches__compact-tip.points-exact {
    background: #e7f7ed;
    border-color: #9bd4ae;
    color: #0f5132;
}

.mod-tippspiel-nextmatches__compact-tip .mod-tippspiel-nextmatches__points {
    min-width: 20px;
    height: 20px;
    margin-left: 6px;
    padding: 0 6px;
    font-size: .7rem;
}
