/* Modul: Tippspiel nächste Spiele */
.mod-tippspiel-nextmatches {
    background: #ffffff;
    border: 1px solid #d8e3f2;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 22px rgba(15, 37, 72, .08);
    color: #0b2345;
}

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

.mod-tippspiel-nextmatches__match {
    padding: 12px;
    border: 1px solid #e0e8f3;
    border-radius: 14px;
    background: #f8fbff;
}

.mod-tippspiel-nextmatches__match.is-featured {
    background: linear-gradient(180deg, #f7fbff, #eef6ff);
    border-left: 6px solid #244a9b;
}

.mod-tippspiel-nextmatches__list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.mod-tippspiel-nextmatches__teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.mod-tippspiel-nextmatches__team {
    display: grid;
    justify-items: center;
    gap: 5px;
    text-align: center;
    font-size: .95rem;
}

.mod-tippspiel-nextmatches__team img,
.mod-tippspiel-nextmatches__placeholder {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

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

.mod-tippspiel-nextmatches__middle {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-width: 120px;
}

.mod-tippspiel-nextmatches__versus {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: #244a9b;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
}

.mod-tippspiel-nextmatches__kickoff {
    font-size: .84rem;
    color: #4a5b73;
    white-space: nowrap;
}

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

.mod-tippspiel-nextmatches__location {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e0e8f3;
    color: #4a5b73;
    font-size: .85rem;
    text-align: center;
}

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

.mod-tippspiel-nextmatches__list .mod-tippspiel-nextmatches__match {
    padding: 9px;
}

.mod-tippspiel-nextmatches__list .mod-tippspiel-nextmatches__team {
    grid-template-columns: 28px 1fr;
    justify-items: start;
    text-align: left;
    font-size: .86rem;
}

.mod-tippspiel-nextmatches__list .mod-tippspiel-nextmatches__team img,
.mod-tippspiel-nextmatches__list .mod-tippspiel-nextmatches__placeholder {
    width: 28px;
    height: 28px;
}

.mod-tippspiel-nextmatches__list .mod-tippspiel-nextmatches__middle {
    min-width: 92px;
}

.mod-tippspiel-nextmatches__list .mod-tippspiel-nextmatches__versus {
    font-size: .75rem;
    padding: 2px 7px;
}

.mod-tippspiel-nextmatches__list .mod-tippspiel-nextmatches__kickoff,
.mod-tippspiel-nextmatches__list .mod-tippspiel-nextmatches__countdown {
    font-size: .75rem;
}

@media (max-width: 560px) {
    .mod-tippspiel-nextmatches {
        padding: 12px;
    }

    .mod-tippspiel-nextmatches__teams {
        grid-template-columns: 1fr;
    }

    .mod-tippspiel-nextmatches__middle {
        order: 2;
    }

    .mod-tippspiel-nextmatches__team {
        grid-template-columns: 36px 1fr;
        justify-items: start;
        text-align: left;
    }

    .mod-tippspiel-nextmatches__team img,
    .mod-tippspiel-nextmatches__placeholder {
        width: 36px;
        height: 36px;
    }
}


/* Kompakte Darstellung / Bildgrößen-Fix */
.mod-tippspiel-nextmatches {
    max-width: 420px;
    padding: 12px;
}

.mod-tippspiel-nextmatches__match {
    padding: 10px;
}

.mod-tippspiel-nextmatches__teams {
    gap: 8px;
}

.mod-tippspiel-nextmatches__team img {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    object-fit: contain !important;
}

.mod-tippspiel-nextmatches__match.is-featured .mod-tippspiel-nextmatches__team img {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
}

.mod-tippspiel-nextmatches__team strong {
    font-size: .9rem;
    line-height: 1.15;
}

.mod-tippspiel-nextmatches__kickoff {
    font-size: .78rem;
    white-space: normal;
    text-align: center;
}

.mod-tippspiel-nextmatches__countdown {
    font-size: .8rem;
    padding: 3px 7px;
}

.mod-tippspiel-nextmatches__location {
    font-size: .78rem;
    margin-top: 7px;
    padding-top: 7px;
}

.mod-tippspiel-nextmatches__list .mod-tippspiel-nextmatches__team img {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
}

@media (max-width: 560px) {
    .mod-tippspiel-nextmatches {
        max-width: 100%;
    }

    .mod-tippspiel-nextmatches__teams {
        grid-template-columns: 1fr auto 1fr;
    }

    .mod-tippspiel-nextmatches__team {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .mod-tippspiel-nextmatches__middle {
        order: initial;
        min-width: 76px;
    }

    .mod-tippspiel-nextmatches__match.is-featured .mod-tippspiel-nextmatches__team img {
        width: 48px !important;
        height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
    }
}

/* Sidebar kompakt: siehe Inline-Fallback im Template */


/* Frame-Fix: äußere Sidebar-Box umfasst alle Spielkarten */
.mod-tippspiel-nextmatches--sidebar{
    width:100%!important;
    max-width:360px!important;
    overflow:visible!important;
}
.mod-tippspiel-nextmatches--sidebar *{
    box-sizing:border-box!important;
}
.mod-tippspiel-nextmatches--sidebar .mod-tippspiel-nextmatches__match{
    width:100%!important;
    max-width:100%!important;
}
.mod-tippspiel-nextmatches--sidebar .mod-tippspiel-nextmatches__teams{
    grid-template-columns:minmax(0,1fr) 56px minmax(0,1fr)!important;
}


/* Readable Sidebar-Fallback */
.mod-tippspiel-nextmatches--sidebar .mod-tippspiel-nextmatches__teams{
    grid-template-columns:1fr!important;
}
.mod-tippspiel-nextmatches--sidebar .mod-tippspiel-nextmatches__team{
    display:grid!important;
    grid-template-columns:34px 1fr!important;
    text-align:left!important;
    justify-items:start!important;
    gap:8px!important;
}
.mod-tippspiel-nextmatches--sidebar .mod-tippspiel-nextmatches__team strong{
    white-space:normal!important;
    overflow-wrap:anywhere!important;
}

.mod-tippspiel-nextmatches__usertip{
    margin:7px auto 0;
    padding:3px 9px;
    border-radius:999px;
    background:#fff;
    border:1px solid #d8e3f2;
    color:#12366e;
    font-size:.78rem;
    font-weight:700;
    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__timebar{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    margin:0 0 8px;
    padding-bottom:7px;
    border-bottom:1px solid #e0e8f3;
}
.mod-tippspiel-nextmatches--sidebar .mod-tippspiel-nextmatches__timebar{
    margin-bottom:8px!important;
}
.mod-tippspiel-nextmatches--sidebar .mod-tippspiel-nextmatches__middle{
    padding:1px 0!important;
}


/* uniform_100width_v107 */
.mod-tippspiel-nextmatches,
.mod-tippspiel-nextmatches--sidebar{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    padding:12px!important;
}

.mod-tippspiel-nextmatches *{
    box-sizing:border-box!important;
}

.mod-tippspiel-nextmatches__list{
    width:100%!important;
    display:grid!important;
    gap:12px!important;
    margin-top:12px!important;
}

.mod-tippspiel-nextmatches__match,
.mod-tippspiel-nextmatches__match.is-featured,
.mod-tippspiel-nextmatches__list .mod-tippspiel-nextmatches__match{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:12px!important;
    border-radius:14px!important;
    background:#f8fbff!important;
    border:1px solid #dce7f5!important;
    border-left:6px solid #244a9b!important;
}

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

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

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

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

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

.mod-tippspiel-nextmatches__team img,
.mod-tippspiel-nextmatches__placeholder,
.mod-tippspiel-nextmatches__match.is-featured .mod-tippspiel-nextmatches__team img,
.mod-tippspiel-nextmatches__list .mod-tippspiel-nextmatches__team img,
.mod-tippspiel-nextmatches__list .mod-tippspiel-nextmatches__placeholder{
    width:30px!important;
    height:30px!important;
    max-width:30px!important;
    max-height:30px!important;
    object-fit:contain!important;
    flex-shrink:0!important;
}

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

.mod-tippspiel-nextmatches__middle,
.mod-tippspiel-nextmatches--sidebar .mod-tippspiel-nextmatches__middle,
.mod-tippspiel-nextmatches__list .mod-tippspiel-nextmatches__middle{
    width:100%!important;
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    padding:2px 0!important;
    margin:0!important;
    min-width:0!important;
}

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

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

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

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

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



/* live current match v1.0.8 */
.mod-tippspiel-nextmatches__livebadge{
    display:inline-block!important;
    padding:3px 8px!important;
    border-radius:999px!important;
    background:#dc3545!important;
    color:#fff!important;
    font-weight:900!important;
    font-size:.72rem!important;
    line-height:1.1!important;
    letter-spacing:.02em!important;
}
.mod-tippspiel-nextmatches__liveresult{
    display:inline-block!important;
    padding:5px 10px!important;
    border-radius:10px!important;
    background:#ffffff!important;
    border:1px solid #d8e3f2!important;
    color:#082b5f!important;
    font-weight:900!important;
    font-size:1rem!important;
    line-height:1.1!important;
}
