:root{
    --asche:#2f3437;
    --linie:#d7d0c4;
    --papier:#ece8c3;
    --karte:#fff;
    --rasen:#315c3b;
    --gold:#c7a24a;
    --rot:#b40000;
    --text:#1f2326;
    --ap-altrot:#b40000;
    --ap-schwarz:#050505;
    --ap-kopfgelb:#d7d39a;
    --ap-zebra:#d9d9d9;
    --ap-intro:#fff0a8;}

*{box-sizing:border-box}

body{
    margin:0;
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--text);
    background:#fff;}

a{color:var(--rasen);text-decoration:none}
a:hover{text-decoration:underline}



.ap-subtitle{
    margin-left:12px;
    margin:0 0 27px;
    color:#e2b84f;
    font-size:22px;
    font-style:italic;
    line-height:1;}

.ap-user{font-size:14px}
.ap-user a{color:white;margin-left:12px;font-weight:700}

.ap-shell{
    display:grid;
    grid-template-columns:332px minmax(0,1fr);
    min-height:calc(100vh - 47px);
    background:#fff;}



.seitenlinie a,
.nav-gruppe{
    display:block;
    padding:9px 10px;
    border-radius:0;}

.seitenlinie a:hover{
    background:#efe5d4;
    text-decoration:none;}

.nav-gruppe{
    margin-top:14px;
    color:#6b6257;
    font-size:12px;
    text-transform:uppercase;
    font-weight:800;
    letter-spacing:.08em;}



.ap-karte{
    background:var(--karte);
    border:1px solid var(--linie);
    border-radius:14px;
    padding:24px;
    margin-bottom:6px;
    box-shadow:0 8px 22px rgba(0,0,0,.04);}

.ap-karte h1{margin-top:0}

.ap-hinweis{
    padding:12px 14px;
    border-left:4px solid var(--gold);
    background:#fff7df;
    border-radius:8px;}

.ap-form{
    max-width:420px;
    margin:60px auto;
    background:white;
    border:1px solid var(--linie);
    border-radius:14px;
    padding:26px;}

.ap-form label{
    display:block;
    font-weight:700;
    margin:14px 0 6px;}

.ap-form input{
    width:100%;
    padding:11px 12px;
    border:1px solid var(--linie);
    border-radius:8px;
    font-size:16px;}

.ap-button{
    margin-top:18px;
    border:0;
    border-radius:8px;
    padding:12px 16px;
    background:var(--rasen);
    color:white;
    font-weight:800;
    cursor:pointer;}

.ap-fehler{
    background:#ffe8e8;
    border-left:4px solid var(--rot);
    padding:10px 12px;
    border-radius:8px;}

.ap-fuss{
    border-top:1px solid var(--linie);
    padding:14px 24px;
    color:#6b6257;
    font-size:13px;
    background:#fff;}

/* Mittelkreis / Newsportal */



.ap-meldung{
    background:#fff;
    overflow:hidden;
    margin-bottom:13px;
    border:1px solid #d67676;
    border-radius:6px;
    box-shadow:none;}

.ap-meldung-kopf{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    background:var(--ap-altrot);
    color:#fff;
    font-weight:900;
    min-height:45px;
    padding:8px 13px;
    font-size:17px;
    line-height:1.15;}

.ap-meldung-kopf span:last-child{
    white-space:nowrap;
    text-align:right;}

.ap-meldung-body{
    background:#fff;
    min-height:68px;
    padding:20px 14px;
    color:#111;
    font-size:16px;
    line-height:1.35;}

.ap-meldung-body p{
    margin:0 0 10px;}

.ap-meldung-body p:last-child{
    margin-bottom:0;}

.ap-statusbox{
    overflow:hidden;
    margin-bottom:14px;
    border-color:#9e9e9e;
    border-radius:6px;}

.ap-statusbox .ap-meldung-kopf{
    background:var(--ap-schwarz);
    color:var(--ap-kopfgelb);
    justify-content:center;
    min-height:55px;
    padding:10px 14px;
    font-size:28px;
    text-align:center;}

.ap-status-body{
    text-align:center;
    min-height:116px;
    padding:18px 18px 20px;
    color:var(--ap-altrot);}



.ap-status-managerliste{
    margin-top:10px;
    color:#333;
    font-size:16px;
    font-weight:750;
    line-height:1.35;
}

.ap-status-spieltag{
    font-size:60px;}

/* Kontostände */

.ap-konten{
    max-width:980px;
    margin:0 auto;
    background:#fffaf7;
    border:1px solid #777;}

.ap-konten-kopf{
    background:#000;
    color:var(--ap-kopfgelb);
    text-align:center;
    font-size:26px;
    font-weight:900;
    line-height:1.15;
    padding:7px 10px;}

.ap-konten-tabelle{
    width:100%;
    border-collapse:collapse;
    color:#000;
    background:#fff;}

.ap-konten-intro{
    background:var(--ap-intro);
    border-left:1px solid var(--ap-altrot);
    border-right:1px solid var(--ap-altrot);
    border-bottom:1px solid var(--ap-altrot);
    color:#000;
    text-align:center;
    line-height:1.45;
    padding:22px 30px;
    font-size:18px;}

.ap-konten-spalten th{
    background:var(--ap-altrot);
    color:#fff;
    text-align:left;
    padding:6px 14px;
    font-size:20px;
    line-height:1.1;}

.ap-konten-spalten th a{
    color:#fff;}

.ap-konten-tabelle td{
    padding:7px 14px;
    font-size:18px;
    line-height:1.15;}

.ap-konten-tabelle tr:not(.ap-konten-spalten):not(.ap-konten-fuss):not(:first-child):nth-child(even){
    background:var(--ap-zebra);}

.ap-konten-tabelle tr:not(.ap-konten-spalten):not(.ap-konten-fuss):not(:first-child):nth-child(odd){
    background:#f7f7f7;}

.ap-konten-fuss td{
    background:var(--ap-altrot);
    color:#fff;
    text-align:center;
    font-weight:900;
    padding:7px 10px;}

.ap-betrag{
    text-align:right !important;
    white-space:nowrap;}

@media(max-width:800px){
    .ap-shell{display:block}
    .seitenlinie{border-right:0;border-bottom:1px solid var(--linie)}
    .ap-user{margin-top:8px}
    .ap-inhalt{padding:14px}
    .ap-meldung-kopf{display:block}
    .ap-meldung-kopf span{display:block}
    .ap-meldung-kopf span:last-child{
        margin-top:3px;
        text-align:left;}
    .ap-status-managerliste{font-size:14px}
    .ap-status-spieltag{font-size:48px}
    .ap-konten-kopf{font-size:22px}
    .ap-konten-intro{font-size:16px;padding:14px 16px}
    .ap-konten-spalten th,
    .ap-konten-tabelle td{
        font-size:15px;
        padding:6px 8px;}
}

/* Passmappe Liste */

.ap-filterzeile{
    display:flex;
    flex-wrap:wrap;
    align-items:flex-end;
    gap:8px 12px;}

.ap-filterzeile label{
    display:flex;
    flex-direction:column;
    font-weight:800;
    gap:3px;}

.ap-filterzeile input,
.ap-filterzeile select{
    padding:5px 7px;
    border:1px solid #999;
    border-radius:5px;}

.ap-filterzeile .ap-button{
    margin-top:0;
    padding:7px 10px;}

.ap-passmappe-tabelle{
    font-size:15px;}

.ap-passmappe-tabelle th,
.ap-passmappe-tabelle td{
    padding:5px 7px;}

.ap-passmappe-aktionen{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:4px;
    white-space:nowrap;}

.ap-passmappe-aktionen form{
    display:inline-flex;
    align-items:center;
    gap:4px;
    margin:0;}

.ap-mini-input{
    width:58px;
    padding:3px 4px;
    border:1px solid #999;
    border-radius:4px;
    text-align:right;}

.ap-mini-button{
    border:0;
    border-radius:5px;
    padding:4px 7px;
    background:var(--rasen);
    color:#fff;
    font-weight:800;
    cursor:pointer;}

.ap-mini-button:hover{
    filter:brightness(1.08);}

/* Auth / Topbar replacement */


.ap-user-label{
    font-weight:800;
    color:#fff;}

.ap-inline-form{
    display:inline;
    margin:0;}

.ap-toplink,
.ap-loginbox button,
.ap-linkbutton{
    border:1px solid rgba(255,255,255,.35);
    background:rgba(255,255,255,.08);
    color:#fff;
    border-radius:8px;
    padding:7px 10px;
    font-weight:800;
    cursor:pointer;
    font:inherit;}

.ap-toplink:hover,
.ap-loginbox button:hover,
.ap-linkbutton:hover{
    background:rgba(255,255,255,.18);
    text-decoration:none;}

.ap-loginbox{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    justify-content:flex-end;}

.ap-loginbox input{
    width:170px;
    border:1px solid rgba(255,255,255,.35);
    background:#fff;
    color:#111;
    border-radius:8px;
    padding:8px 10px;
    font-size:14px;}

.ap-loginbox input[type="password"]{
    width:140px;}

.ap-linkbutton{
    background:transparent;
    border-color:transparent;
    padding-left:4px;
    padding-right:4px;}

.ap-sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;}

.ap-modal[hidden]{display:none}

.ap-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    display:flex;
    justify-content:center;
    padding:24px;
    z-index:1000;
    align-items:flex-start;
    padding-top:72px;
    overflow:auto;}

.ap-modal-dialog{
    position:relative;
    width:min(520px,100%);
    background:#fff;
    border:1px solid var(--linie);
    border-radius:14px;
    padding:24px;
    box-shadow:0 20px 60px rgba(0,0,0,.3);
    margin-bottom:32px;}

.ap-modal-dialog h2{margin-top:0}

.ap-modal-close{
    position:absolute;
    right:12px;
    top:10px;
    border:0;
    background:transparent;
    font-size:28px;
    line-height:1;
    cursor:pointer;}

.ap-form-compact{
    max-width:none;
    margin:0;
    border:0;
    padding:0;
    box-shadow:none;}

@media (max-width: 820px){
    .ap-loginbox{justify-content:flex-start}
    .ap-loginbox input,.ap-loginbox input[type="password"]{width:100%}
    .ap-shell{grid-template-columns:1fr}
    .seitenlinie{border-right:0;border-bottom:1px solid var(--linie)}
}

/* Auth update: statuszeile nebeneinander, Modals oben */
.ap-authbox{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:nowrap;
    white-space:nowrap;}

.ap-user-label,
.ap-auth-sep,
.ap-inline-form{
    display:inline-flex;
    align-items:center;}

.ap-auth-sep{
    color:rgba(255,255,255,.55);
    font-weight:800;}

.ap-toplink{
    display:inline-flex;
    align-items:center;
    line-height:1;}





@media (max-width: 820px){
    .ap-authbox,
    .ap-loginbox{
        justify-content:flex-start;
        flex-wrap:wrap;
        white-space:normal;}
}

/* Navigation und Seitenlayout */













.seitenlinie{
    background:#fff;
    border-right:1px solid #bdbdbd;
    padding:22px 31px 28px;}



.nav-gruppe,
.nav-gruppe-zum-platz{
    margin:12px 0 4px;
    padding:10px 0 0;
    border-top:1px solid #bdbdbd;
    color:var(--ap-altrot);
    font-size:23px;
    font-weight:900;
    letter-spacing:0;
    line-height:1.12;
    text-transform:uppercase;}

.nav-gruppe-zum-platz{
    margin-top:0;
    padding-top:0;
    padding-bottom:9px;
    border-top:0;
    border-bottom:2px solid #df7777;}

.seitenlinie a{
    display:block;
    padding:2px 0;
    color:#050505;
    font-size:16px;
    font-weight:750;
    line-height:1.28;}

.seitenlinie a:visited{
    color:#050505;}

.seitenlinie a:hover,
.seitenlinie a:focus{
    background:transparent;
    color:var(--ap-altrot);
    text-decoration:none;}

.seitenlinie .ap-nav-logo{
    display:block;
    width:150px;
    margin:0 auto 18px;
    padding:0;
    line-height:0;}

.seitenlinie .ap-nav-logo img{
    display:block;
    width:150px;
    height:220px;
    object-fit:contain;
    object-position:center;}

.ap-nav-auth{
    margin:12px 0 7px;
    padding:0 0 8px;
    border-bottom:1px solid #bdbdbd;}

.ap-nav-login,
.ap-nav-auth-form{
    margin:0;}

.ap-nav-login{
    display:flex;
    flex-direction:column;
    gap:8px;}

.ap-nav-login input{
    width:100%;
    min-width:0;
    height:36px;
    border:1px solid #b7b7b7;
    border-radius:3px;
    background:#fff;
    color:#111;
    padding:7px 9px;
    font-size:16px;
    box-shadow:inset 0 1px 2px rgba(0,0,0,.05);}

.ap-nav-login > button[type="submit"],
.ap-nav-auth-button{
    width:100%;
    min-height:30px;
    border:0;
    border-radius:2px;
    background:linear-gradient(#c90000,#a90000);
    color:#fff;
    padding:5px 10px;
    font-size:15px;
    font-weight:900;
    cursor:pointer;}

.ap-nav-login > button[type="submit"]:hover,
.ap-nav-auth-button:hover{
    filter:brightness(1.08);}

.ap-nav-linkbutton{
    width:100%;
    border:0;
    background:transparent;
    color:var(--ap-altrot);
    padding:1px 0 0;
    font-size:14px;
    font-weight:800;
    text-align:center;
    cursor:pointer;}

.ap-nav-user-label{
    margin-bottom:8px;
    color:#111;
    font-size:15px;
    font-weight:900;}

.ap-nav-auth-form{
    margin-top:8px;}

.ap-rechtsbereich{
    min-width:0;
    background:#fff;}

.ap-managerkopf{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:center;
    gap:10px;
    min-width:0;
    padding:16px clamp(28px,8vw,128px) 10px;
    border-bottom:1px solid #bdbdbd;
    background:#17191a;}

.ap-managerkopf-bild{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    height:150px;
    overflow:hidden;
    background:#17191a;}

.ap-managerkopf-bild img{
    display:block;
    width:100%;
    height:150px;
    object-fit:contain;
    object-position:center;}

.ap-inhalt{
    padding:31px clamp(28px,8vw,128px);
    background:#fff;}

.ap-mittelkreis{
    width:95%;
    max-width:none;
    margin:0 auto;
    padding-top:0;
    border-top:0;}

.ap-status-wert{
    font-size:31px;
    font-weight:950;
    line-height:1.15;}



@media(max-width:900px){
    .ap-shell{grid-template-columns:280px minmax(0,1fr)}
    .seitenlinie{padding:20px 22px}
    .ap-managerkopf{padding:14px 26px 9px}
    .ap-managerkopf-bild,
    .ap-managerkopf-bild img{height:130px}
    .ap-inhalt{padding:26px}
}

@media(max-width:800px){
    .ap-subtitle{margin-bottom:17px;font-size:17px}
    .ap-shell{display:block}
    .seitenlinie{border-right:0;border-bottom:1px solid #bdbdbd}
    .ap-managerkopf{padding:13px 14px 8px}
    .ap-managerkopf-bild,
    .ap-managerkopf-bild img{height:110px}
    .ap-inhalt{padding:18px 14px}
    .ap-statusbox .ap-meldung-kopf{font-size:23px}
    .ap-status-wert{font-size:25px}
}

/* Talentsuche – ausschließlich seitenbezogen */
.ap-talentsuche{width:min(100%,1120px);margin:0 auto;border:1px solid var(--ap-altrot);background:#fff;color:#111}
.ap-talentsuche-kopf{background:var(--ap-schwarz);color:#fff3a8;padding:6px 12px;text-align:center;font-size:24px;font-weight:900;line-height:1.15}
.ap-talentsuche-intro,.ap-talentsuche-status{border-bottom:1px solid var(--ap-altrot);background:var(--ap-intro);padding:5px 12px;text-align:center;font-size:15px;line-height:1.25}
.ap-talentsuche-status{background:#fff7d6}
.ap-talentsuche-fehler{border-bottom:1px solid var(--ap-altrot);background:#ffe4e4;color:var(--ap-altrot);padding:6px 12px;font-weight:800}
.ap-talentsuche-filter{display:grid;grid-template-columns:145px 215px minmax(190px,1fr) auto;align-items:end;gap:7px 10px;margin:0;padding:8px 10px;border-bottom:1px solid var(--ap-altrot);background:#f1f1f1}
.ap-talentsuche-filterfeld label{display:block;margin:0 0 2px;font-size:13px;font-weight:900;line-height:1.1}
.ap-talentsuche-filter select,.ap-talentsuche-filter input{width:100%;height:29px;border:1px solid #888;border-radius:0;background:#fff;padding:3px 6px;color:#111;font:inherit;font-size:14px}
.ap-talentsuche-filteraktionen{display:flex;align-items:center;gap:5px;white-space:nowrap}
.ap-talentsuche-filteraktionen button,.ap-talentsuche-filteraktionen a,.ap-talentsuche-aktionen button{display:inline-flex;align-items:center;justify-content:center;min-height:29px;border:0;border-radius:0;background:var(--ap-altrot);color:#fff;padding:4px 9px;font:inherit;font-size:13px;font-weight:900;line-height:1.05;cursor:pointer;text-decoration:none}
.ap-talentsuche-filteraktionen button:hover,.ap-talentsuche-filteraktionen a:hover,.ap-talentsuche-aktionen button:hover{filter:brightness(1.08);text-decoration:none}
.ap-talentsuche-ergebnis-kopf{background:var(--ap-schwarz);color:#fff3a8;padding:5px 10px;text-align:center;font-size:18px;font-weight:900;line-height:1.15}
.ap-talentsuche-scroll{width:100%;overflow-x:auto}
.ap-talentsuche-tabelle{width:100%;border-collapse:collapse;table-layout:auto;background:#fff;color:#111;font-size:14px}
.ap-talentsuche-tabelle th{background:var(--ap-altrot);color:#fff;padding:5px 7px;text-align:left;font-weight:900;line-height:1.05;white-space:nowrap}
.ap-talentsuche-tabelle td{padding:4px 7px;line-height:1.1;vertical-align:middle;white-space:nowrap}
.ap-talentsuche-tabelle tbody tr:nth-child(odd){background:#f7f7f7}
.ap-talentsuche-tabelle tbody tr:nth-child(even){background:var(--ap-zebra)}
.ap-talentsuche-tabelle th:first-child,.ap-talentsuche-tabelle td:first-child{width:64px;text-align:right}
.ap-talentsuche-name{font-weight:800}
.ap-talentsuche-zahl{text-align:right!important}
.ap-talentsuche-negativ{color:var(--ap-altrot);font-weight:900}
.ap-talentsuche-aktionen{min-width:220px}
.ap-talentsuche-aktionen form{display:flex;align-items:center;gap:4px;margin:0}
.ap-talentsuche-aktionen input[type="number"]{width:70px;height:26px;border:1px solid #888;border-radius:0;padding:2px 4px;text-align:right;font:inherit;font-size:13px}
.ap-talentsuche-aktionen button{min-height:26px;background:var(--ap-altrot);padding:3px 6px;font-size:12px}
@media(max-width:980px){.ap-talentsuche-filter{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.ap-talentsuche-filter{grid-template-columns:1fr}.ap-talentsuche-filteraktionen{flex-wrap:wrap}.ap-talentsuche-kopf{font-size:21px}.ap-talentsuche-intro,.ap-talentsuche-status{font-size:14px}}

/* Meistergalerie ausschließlich auf index.php */
.ap-meistergalerie-rahmen{
    width:100%;
    margin:0 0 14px;
    overflow:hidden;
    border:1px solid #202020;
    border-radius:6px;
    background:#17191a;
}

.ap-meistergalerie-kopf{
    min-height:55px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:10px 14px;
    background:var(--ap-schwarz);
    color:var(--ap-kopfgelb);
    text-align:center;
}

.ap-meistergalerie-kopf h2{
    margin:0;
    color:inherit;
    font-size:28px;
    font-weight:900;
    line-height:1.15;
}

.ap-meistergalerie{
    width:100%;
    margin:0;
    padding:14px 18px;
    border:0;
    border-radius:0;
    background:linear-gradient(110deg,#17191a 0%,#242728 48%,#17191a 100%);
    overflow:hidden;}

.ap-meisterleiste{
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:14px 18px;
    width:100%;
    min-width:0;
    align-items:start;}

.ap-meister{
    min-width:0;
    margin:0;
    color:#fff;
    text-align:center;}

.ap-meister-bild{
    width:100%;
    height:92px;
    overflow:hidden;
    border:0;
    background:transparent;}

.ap-meister-bild img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;}

.ap-meister-name{
    margin-top:4px;
    color:#fff;
    font-size:13px;
    font-weight:900;
    line-height:1.1;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;}

.ap-meister-jahre{
    margin-top:2px;
    color:var(--ap-kopfgelb);
    font-size:11px;
    font-weight:800;
    line-height:1.15;}

.ap-meister-jahre-zeile{
    display:block;
    white-space:nowrap;}

@media(max-width:1250px){
    .ap-meisterleiste{gap:12px}
    .ap-meister-bild{height:82px}
    .ap-meister-name{font-size:12px}
    .ap-meister-jahre{font-size:10px}
}

@media(max-width:980px){
    .ap-meisterleiste{grid-template-columns:repeat(4,minmax(0,1fr))}
    .ap-meister-bild{height:74px}
}

@media(max-width:620px){
    .ap-meistergalerie-kopf{min-height:48px;padding:8px 12px}
    .ap-meistergalerie-kopf h2{font-size:23px}
    .ap-meistergalerie{padding:10px}
    .ap-meisterleiste{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
    .ap-meister-bild{height:68px}
}

/* Ewige Tabelle – vollständig gekapselt, keine globalen Seiteneffekte */
.ap-ewige{
    width:min(100%,1120px);
    margin:0 auto;
    border:1px solid var(--ap-altrot);
    background:#fff;
    color:#111;
    overflow:hidden;}

.ap-ewige,
.ap-ewige *{
    box-sizing:border-box;}

.ap-ewige .ap-ewige-kopf{
    margin:0;
    padding:7px 12px;
    background:var(--ap-schwarz);
    color:#fff3a8;
    font-size:24px;
    font-weight:900;
    line-height:1.15;
    text-align:center;}

.ap-ewige .ap-ewige-intro{
    margin:0;
    padding:7px 12px;
    border-bottom:1px solid var(--ap-altrot);
    background:var(--ap-intro);
    color:#111;
    font-size:16px;
    line-height:1.3;
    text-align:center;}

.ap-ewige .ap-ewige-jahre{
    margin-top:3px;
    font-size:14px;
    font-weight:800;}

.ap-ewige .ap-ewige-umschalter{
    display:flex;
    align-items:stretch;
    justify-content:center;
    gap:0;
    margin:0;
    padding:0;
    border-bottom:1px solid var(--ap-altrot);
    background:#f2f2f2;}

.ap-ewige .ap-ewige-umschalter a{
    display:block;
    min-width:190px;
    margin:0;
    padding:8px 16px;
    border:0;
    border-right:1px solid #aaa;
    border-radius:0;
    background:#e2e2e2;
    color:#111;
    font-size:15px;
    font-weight:900;
    line-height:1.1;
    text-align:center;
    text-decoration:none;}

.ap-ewige .ap-ewige-umschalter a:first-child{
    border-left:1px solid #aaa;}

.ap-ewige .ap-ewige-umschalter a:hover,
.ap-ewige .ap-ewige-umschalter a:focus{
    background:#d5d5d5;
    color:#111;
    text-decoration:none;}

.ap-ewige .ap-ewige-umschalter a.aktiv{
    background:var(--ap-altrot);
    color:#fff;}

.ap-ewige .ap-fehler,
.ap-ewige .ap-hinweis{
    margin:10px;}

.ap-ewige .ap-ewige-scroll{
    width:100%;
    overflow-x:auto;
    background:#fff;}

.ap-ewige .ap-ewige-tabelle{
    width:100%;
    min-width:860px;
    margin:0;
    border:0;
    border-collapse:collapse;
    border-spacing:0;
    table-layout:auto;
    background:#fff;
    color:#111;
    font-size:16px;
    line-height:1.15;}

.ap-ewige .ap-ewige-tabelle thead,
.ap-ewige .ap-ewige-tabelle tbody,
.ap-ewige .ap-ewige-tabelle tr{
    border:0;}

.ap-ewige .ap-ewige-tabelle th{
    margin:0;
    padding:7px 10px;
    border:0;
    background:var(--ap-altrot);
    color:#fff;
    font-size:16px;
    font-weight:900;
    line-height:1.1;
    text-align:left;
    vertical-align:middle;
    white-space:nowrap;}

.ap-ewige .ap-ewige-tabelle td{
    margin:0;
    padding:6px 10px;
    border:0;
    color:#111;
    font-size:16px;
    line-height:1.15;
    vertical-align:middle;}

.ap-ewige .ap-ewige-tabelle tbody tr:nth-child(odd) td{
    background:#f7f7f7;}

.ap-ewige .ap-ewige-tabelle tbody tr:nth-child(even) td{
    background:var(--ap-zebra);}

.ap-ewige .ap-ewige-tabelle tbody tr:hover td{
    background:#fff2c7;}

.ap-ewige .ap-ewige-rang{
    width:72px;
    text-align:right;
    white-space:nowrap;}

.ap-ewige .ap-ewige-zahl{
    width:110px;
    text-align:right;
    white-space:nowrap;}

.ap-ewige .ap-ewige-tabelle th:nth-child(2),
.ap-ewige .ap-ewige-tabelle td:nth-child(2){
    min-width:360px;}

.ap-ewige .ap-ewige-tabelle th:nth-child(3),
.ap-ewige .ap-ewige-tabelle td:nth-child(3){
    min-width:165px;}

.ap-ewige .ap-supercup-grenze td{
    border-bottom:3px solid var(--ap-altrot);}

@media(max-width:900px){
    .ap-ewige{
        width:100%;}

    .ap-ewige .ap-ewige-kopf{
        font-size:21px;}

    .ap-ewige .ap-ewige-intro{
        font-size:15px;}

    .ap-ewige .ap-ewige-umschalter{
        flex-wrap:wrap;}

    .ap-ewige .ap-ewige-umschalter a{
        flex:1 1 190px;
        min-width:0;}
}

@media(max-width:620px){
    .ap-ewige .ap-ewige-tabelle{
        min-width:780px;
        font-size:14px;}

    .ap-ewige .ap-ewige-tabelle th,
    .ap-ewige .ap-ewige-tabelle td{
        padding:5px 7px;
        font-size:14px;}
}

/* Hinterzimmer – Kontoauszug, vollständig seitenbezogen */
.ap-hinterzimmer{
    width:auto;
    max-width:none;
    margin-right:calc(-1 * clamp(28px,8vw,128px));
    margin-left:calc(-1 * clamp(28px,8vw,128px));
    border:1px solid var(--ap-altrot);
    background:#fff;
    color:#111;
    overflow:hidden;}

.ap-hinterzimmer + .ap-hinterzimmer{
    margin-top:8px;
}

.ap-hinterzimmer,
.ap-hinterzimmer *{
    box-sizing:border-box;}

.ap-hinterzimmer .ap-hinterzimmer-kopf{
    margin:0;
    padding:8px 12px;
    background:var(--ap-schwarz);
    color:#fff3a8;
    font-size:26px;
    font-weight:900;
    line-height:1.15;
    text-align:center;}

.ap-hinterzimmer .ap-hinterzimmer-intro{
    margin:0;
    padding:10px 18px;
    border-bottom:1px solid var(--ap-altrot);
    background:var(--ap-intro);
    color:#111;
    font-size:18px;
    line-height:1.35;
    text-align:center;}

.ap-hinterzimmer .ap-fehler,
.ap-hinterzimmer .ap-hinweis{
    margin:10px;}

.ap-hinterzimmer .ap-hinterzimmer-scroll{
    width:100%;
    overflow-x:auto;
    background:#fff;}

.ap-hinterzimmer .ap-hinterzimmer-tabelle{
    width:100%;
    margin:0;
    border:0;
    border-collapse:collapse;
    border-spacing:0;
    table-layout:auto;
    background:#fff;
    color:#111;
    font-size:17px;
    line-height:1.15;
    min-width:1160px;}

.ap-hinterzimmer .ap-hinterzimmer-tabelle th{
    margin:0;
    padding:7px 12px;
    border:0;
    background:var(--ap-altrot);
    color:#fff;
    font-size:18px;
    font-weight:900;
    line-height:1.1;
    text-align:left;
    vertical-align:middle;
    white-space:nowrap;}

.ap-hinterzimmer .ap-hinterzimmer-tabelle td{
    margin:0;
    padding:7px 12px;
    border:0;
    color:#111;
    font-size:17px;
    line-height:1.15;
    vertical-align:middle;}

.ap-hinterzimmer .ap-hinterzimmer-tabelle tbody tr:nth-child(odd) td{
    background:#f7f7f7;}

.ap-hinterzimmer .ap-hinterzimmer-tabelle tbody tr:nth-child(even) td{
    background:var(--ap-zebra);}

.ap-hinterzimmer .ap-hinterzimmer-tabelle tbody tr:hover td{
    background:#fff2c7;}

.ap-hinterzimmer .ap-hinterzimmer-tabelle th:nth-child(1),
.ap-hinterzimmer .ap-hinterzimmer-tabelle td:nth-child(1){
    width:72px;}

.ap-hinterzimmer .ap-hinterzimmer-tabelle th:nth-child(2),
.ap-hinterzimmer .ap-hinterzimmer-tabelle td:nth-child(2){
    width:170px;
    white-space:nowrap;}

.ap-hinterzimmer .ap-hinterzimmer-tabelle th:nth-child(3),
.ap-hinterzimmer .ap-hinterzimmer-tabelle td:nth-child(3){
    width:170px;
    white-space:nowrap;}



.ap-hinterzimmer .ap-hinterzimmer-zahl{
    text-align:right!important;
    white-space:nowrap;}

.ap-hinterzimmer .ap-hinterzimmer-negativ{
    color:var(--ap-altrot);
    font-weight:400;}

.ap-hinterzimmer .ap-hinterzimmer-fuss{
    margin:0;
    padding:7px 10px;
    background:var(--ap-altrot);
    color:#fff;
    font-size:16px;
    font-weight:900;
    line-height:1.15;
    text-align:center;}

@media(max-width:900px){
    .ap-hinterzimmer{
        margin-right:-26px;
        margin-left:-26px;
    }
    .ap-hinterzimmer .ap-hinterzimmer-kopf{font-size:22px}
    .ap-hinterzimmer .ap-hinterzimmer-intro{font-size:16px;padding:8px 12px}
    .ap-hinterzimmer .ap-hinterzimmer-tabelle th{font-size:16px;padding:6px 9px}
    .ap-hinterzimmer .ap-hinterzimmer-tabelle td{font-size:15px;padding:6px 9px}
}

/* Hinterzimmer – Kontostand und bereinigter Kontoauszug */
.ap-hinterzimmer .ap-hinterzimmer-kontostand{
    margin:0;
    border-bottom:1px solid var(--ap-altrot);
    background:#fff;
    text-align:center;}

.ap-hinterzimmer .ap-hinterzimmer-kontostand-label{
    padding:6px 12px;
    background:var(--ap-schwarz);
    color:var(--ap-kopfgelb);
    font-size:19px;
    font-weight:900;
    line-height:1.15;}

.ap-hinterzimmer .ap-hinterzimmer-kontostand-wert{
    padding:13px 12px 15px;
    color:var(--ap-altrot);
    font-size:34px;
    font-weight:950;
    line-height:1.05;}



.ap-hinterzimmer .ap-hinterzimmer-tabelle th:nth-child(4),
.ap-hinterzimmer .ap-hinterzimmer-tabelle td:nth-child(4){
    min-width:300px;}

.ap-hinterzimmer .ap-hinterzimmer-tabelle th:nth-child(5),
.ap-hinterzimmer .ap-hinterzimmer-tabelle td:nth-child(5){
    min-width:190px;
    white-space:nowrap;}

@media(max-width:900px){
    .ap-hinterzimmer .ap-hinterzimmer-kontostand-label{font-size:17px}
    .ap-hinterzimmer .ap-hinterzimmer-kontostand-wert{font-size:28px}
}


@media(max-width:800px){
    .ap-hinterzimmer{
        margin-right:-14px;
        margin-left:-14px;
    }
}

/* OTM – vollständig seitenbezogen */
.ap-otm{width:min(100%,1320px);margin:0 auto;border:1px solid var(--ap-altrot);background:#fff;color:#111;overflow:hidden}
.ap-otm,.ap-otm *{box-sizing:border-box}
.ap-otm .ap-otm-kopf{margin:0;padding:7px 12px;background:var(--ap-schwarz);color:#fff3a8;font-size:25px;font-weight:900;line-height:1.15;text-align:center}
.ap-otm .ap-otm-intro{margin:0;padding:7px 12px;border-bottom:1px solid var(--ap-altrot);background:var(--ap-intro);font-size:16px;line-height:1.3;text-align:center}
.ap-otm .ap-otm-zeit{margin:0;padding:5px 10px;border-bottom:1px solid var(--ap-altrot);background:#f1f1f1;font-size:13px;font-weight:800;text-align:center}
.ap-otm .ap-fehler,.ap-otm .ap-hinweis{margin:8px 10px}
.ap-otm .ap-otm-scroll{width:100%;overflow-x:auto}
.ap-otm .ap-otm-tabelle{width:100%;min-width:980px;margin:0;border:0;border-collapse:collapse;table-layout:auto;background:#fff;color:#111;font-size:15px;line-height:1.15}
.ap-otm .ap-otm-tabelle th{padding:6px 8px;border:0;background:var(--ap-altrot);color:#fff;font-weight:900;text-align:left;white-space:nowrap}
.ap-otm .ap-otm-tabelle td{padding:5px 8px;border:0;vertical-align:middle;white-space:nowrap}
.ap-otm .ap-otm-tabelle tbody tr:nth-child(odd) td{background:#f7f7f7}
.ap-otm .ap-otm-tabelle tbody tr:nth-child(even) td{background:var(--ap-zebra)}
.ap-otm .ap-otm-tabelle tbody tr:hover td{background:#fff2c7}
.ap-otm .ap-otm-tabelle tbody tr.ap-otm-eigene-fuehrung td{background:#dff0d8!important}
.ap-otm .ap-otm-zahl{text-align:right!important}
.ap-otm .ap-otm-name{font-weight:900}
.ap-otm .ap-otm-ende{font-variant-numeric:tabular-nums}
.ap-otm .ap-otm-aktion form{display:flex;align-items:center;gap:4px;margin:0}
.ap-otm .ap-otm-aktion input{width:66px;height:27px;border:1px solid #888;border-radius:0;padding:2px 5px;text-align:right;font:inherit;font-size:13px}
.ap-otm .ap-otm-aktion button{min-height:27px;border:0;border-radius:0;background:var(--ap-altrot);color:#fff;padding:3px 7px;font:inherit;font-size:12px;font-weight:900;cursor:pointer}
.ap-otm .ap-otm-aktion button:hover{filter:brightness(1.08)}
.ap-otm .ap-otm-leer{padding:18px!important;text-align:center;font-style:italic}
.ap-otm .ap-otm-auswertung{margin:0;padding:7px 10px;border-top:1px solid var(--ap-altrot);background:#fff7d6;font-size:14px;font-weight:800;text-align:center}
@media(max-width:900px){.ap-otm .ap-otm-kopf{font-size:22px}.ap-otm .ap-otm-intro{font-size:15px}.ap-otm .ap-otm-tabelle{font-size:14px}}


/* OTM: Historie erfolgreicher Auktionen als eigene AP-Karte */
.ap-otm-historie-karte{
    margin-top:12px;
}

.ap-otm .ap-otm-historie-kopf{
    margin:0;
    padding:7px 12px;
    background:var(--ap-schwarz);
    color:#fff3a8;
    font-size:21px;
    font-weight:900;
    line-height:1.15;
    text-align:center;
}

.ap-otm .ap-otm-historie-inhalt{
    padding:10px 14px 12px;
    background:#fff;
}

.ap-otm .ap-otm-historie-liste p,
.ap-otm .ap-otm-historie-leer{
    margin:0;
    padding:5px 0;
    line-height:1.4;
}

.ap-otm .ap-otm-historie-liste p + p{
    border-top:1px solid #ddd;
}

@media(max-width:900px){
    .ap-otm .ap-otm-historie-kopf{font-size:19px}
    .ap-otm .ap-otm-historie-inhalt{padding:8px 10px 10px}
}

/* Kabine */
.ap-kabine-seitentitel{
    margin:0 0 8px;
}

/* Beide Kabinenkarten nutzen die komplette Breite des Inhaltsbereichs. */
.ap-kabine-seite{
    width:auto;
    margin-right:calc(-1 * clamp(28px,8vw,128px));
    margin-left:calc(-1 * clamp(28px,8vw,128px));
}

.ap-kabine-system,
.ap-kabine-kader{
    width:100%;
    max-width:none;
    box-sizing:border-box;
}

.ap-kabine-system{
    margin-top:8px;
    padding:0;
    overflow:hidden;
}

.ap-kabine-system-kopf{
    padding:8px 12px;
    background:var(--ap-schwarz);
    color:var(--ap-kopfgelb);
    text-align:center;
}

.ap-kabine-system-kopf h2{
    margin:0;
    color:inherit;
    font-size:22px;
    line-height:1.15;
}

.ap-kabine-system-kopf p{
    margin:3px 0 0;
    color:inherit;
    font-size:14px;
}

.ap-kabine-system .ap-hinweis,
.ap-kabine-system .ap-fehler{
    margin:8px 12px 0;
}

.ap-kabine-system-form{
    display:flex;
    align-items:flex-end;
    gap:8px;
    padding:12px;
    background:#fff;
}

.ap-kabine-system-form label{
    flex:0 0 auto;
    padding-bottom:5px;
    font-weight:900;
}

.ap-kabine-system-form select{
    flex:1 1 420px;
    min-width:240px;
    height:32px;
    border:1px solid #888;
    border-radius:4px;
    background:#fff;
    color:#111;
    padding:4px 7px;
    font:inherit;
    font-size:14px;
}

.ap-kabine-system-button{
    min-height:32px;
    border:0;
    border-radius:5px;
    background:var(--ap-altrot);
    color:#fff;
    padding:5px 11px;
    font:inherit;
    font-size:14px;
    font-weight:900;
    cursor:pointer;
    white-space:nowrap;
}

.ap-kabine-system-button:hover,
.ap-kabine-system-button:focus{
    background:#8f0000;
}

.ap-kabine-system-form select:disabled,
.ap-kabine-system-button:disabled{
    background:#777;
    color:#fff;
    cursor:not-allowed;
    opacity:.65;
}

.ap-kabine-system-form select:disabled{
    background:#e5e5e5;
    color:#666;
}

.ap-kabine-kader{
    margin-top:8px;
    padding:0;
    overflow:hidden;
}

.ap-kabine-kaderkopf{
    padding:8px 12px;
    background:var(--ap-schwarz);
    color:var(--ap-kopfgelb);
    text-align:center;
}

.ap-kabine-kaderkopf h2{
    margin:0;
    color:inherit;
    font-size:24px;
    line-height:1.15;
}

.ap-kabine-kaderkopf p{
    margin:3px 0 0;
    color:inherit;
    font-size:14px;
}

.ap-kabine-scroll{
    width:100%;
    overflow-x:auto;
}

.ap-kabine-tabelle{
    width:100%;
    min-width:1280px;
    margin:0;
    border:0;
    border-collapse:collapse;
    white-space:nowrap;
    font-size:14px;
}

.ap-kabine-tabelle th,
.ap-kabine-tabelle td{
    padding:6px 8px;
    border-bottom:1px solid #cfcfcf;
    vertical-align:middle;
}

.ap-kabine-tabelle th{
    background:var(--ap-altrot);
    color:#fff;
    font-weight:900;
}

.ap-kabine-tabelle tbody tr:nth-child(odd) td{
    background:#f7f7f7;
}

.ap-kabine-tabelle tbody tr:nth-child(even) td{
    background:var(--ap-zebra);
}

.ap-kabine-tabelle tbody tr:hover td{
    background:#fff2c7;
}

.ap-kabine-zahl{
    text-align:right;
}

.ap-kabine-mitte{
    text-align:center;
}

.ap-kabine-spieler{
    min-width:165px;
    font-weight:700;
    text-align:left;
}

.ap-kabine-buli-logo{
    display:block;
    width:24px;
    height:24px;
    margin:0 auto;
    object-fit:contain;
}

.ap-kabine-status{
    display:inline-block;
    width:.8rem;
    height:.8rem;
    border:1px solid rgba(0,0,0,.3);
    border-radius:50%;
    vertical-align:middle;
}

.ap-kabine-status-ja{background:#198754;}
.ap-kabine-status-nein{background:#dc3545;}

.ap-kabine-leer{
    padding:18px!important;
    text-align:center;
    font-style:italic;
}

@media(max-width:900px){
    .ap-kabine-seite{
        margin-right:-26px;
        margin-left:-26px;
    }

    .ap-kabine-kaderkopf h2{
        font-size:21px;
    }
}

@media(max-width:800px){
    .ap-kabine-seite{
        margin-right:-14px;
        margin-left:-14px;
    }
}

@media(max-width:700px){
    .ap-kabine-system-form{
        align-items:stretch;
        flex-direction:column;
    }

    .ap-kabine-system-form label{
        padding-bottom:0;
    }

    .ap-kabine-system-form select{
        flex-basis:auto;
        width:100%;
        min-width:0;
    }

    .ap-kabine-system-button{
        width:100%;
    }
}

/* Kabine: Aktionsbuttons im AP-Stil, nicht im Rasen-Grün */
.ap-kabine-tabelle .ap-mini-button{
    background:var(--ap-altrot);
    color:#fff;
}

.ap-kabine-tabelle .ap-mini-button:hover,
.ap-kabine-tabelle .ap-mini-button:focus{
    background:#8f0000;
    filter:none;
}

.ap-kabine-tabelle .ap-mini-button:disabled{
    background:#777;
    color:#fff;
    cursor:not-allowed;
    opacity:.65;
}

/* Kabine: Rückennummer direkt in der Spielerzeile ändern */
.ap-kabine-rn-form{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:4px;
    margin:0;
    white-space:nowrap;
}

.ap-kabine-rn-input{
    width:58px;
    height:26px;
    border:1px solid #888;
    border-radius:4px;
    background:#fff;
    color:#111;
    padding:2px 5px;
    font:inherit;
    font-size:13px;
    text-align:right;
}

.ap-kabine-rn-input:disabled{
    background:#e5e5e5;
    color:#666;
    cursor:not-allowed;
}



/* Strafbank und Sanktionshinweis */
.ap-liga-sanktionshinweis{
    padding:9px 14px!important;
    border-top:1px solid var(--ap-altrot);
    background:#fff7d6!important;
    color:#111;
    font-size:14px!important;
    text-align:center;}

.ap-liga-sanktionshinweis a{
    color:var(--ap-altrot);
    font-weight:900;}

.ap-strafbank{
    width:min(100%,1320px);
    margin:0 auto;
    border:1px solid var(--ap-altrot);
    background:#fff;
    color:#111;
    overflow:hidden;}

.ap-strafbank,.ap-strafbank *{box-sizing:border-box}

.ap-strafbank-kopf{
    margin:0;
    padding:7px 12px;
    background:var(--ap-schwarz);
    color:var(--ap-kopfgelb);
    font-size:25px;
    font-weight:900;
    line-height:1.15;
    text-align:center;}

.ap-strafbank-intro{
    margin:0;
    padding:8px 12px;
    border-bottom:1px solid var(--ap-altrot);
    background:var(--ap-intro);
    font-size:16px;
    line-height:1.3;
    text-align:center;}

.ap-strafbank-scroll{width:100%;overflow-x:auto}

.ap-strafbank-tabelle{
    width:100%;
    min-width:900px;
    margin:0;
    border:0;
    border-collapse:collapse;
    background:#fff;
    color:#111;
    font-size:15px;
    line-height:1.2;}

.ap-strafbank-tabelle th{
    padding:6px 9px;
    border:0;
    background:var(--ap-altrot);
    color:#fff;
    font-weight:900;
    text-align:left;
    white-space:nowrap;}

.ap-strafbank-tabelle td{
    padding:6px 9px;
    border:0;
    vertical-align:top;}

.ap-strafbank-tabelle tbody tr:nth-child(odd) td{background:#f7f7f7}
.ap-strafbank-tabelle tbody tr:nth-child(even) td{background:var(--ap-zebra)}
.ap-strafbank-tabelle tbody tr:hover td{background:#fff2c7}
.ap-strafbank-zahl{text-align:right!important;white-space:nowrap}
.ap-strafbank-negativ{color:var(--ap-altrot);font-weight:900}
.ap-strafbank-leer{padding:18px!important;text-align:center;font-style:italic}

@media(max-width:900px){
    .ap-strafbank-kopf{font-size:22px}
    .ap-strafbank-intro{font-size:15px}
    .ap-strafbank-tabelle{font-size:14px}
}

/* Spielbericht – modulare Verwaltung */
.ap-modul{margin:12px 0 18px}
.ap-modul-tabelle{width:100%;border-collapse:collapse;margin:0}
.ap-modul-tabelle th,.ap-modul-tabelle td{padding:3px 6px;line-height:1.2;vertical-align:middle;border:1px solid rgba(0,0,0,.18)}
.ap-modul-tabelle thead th{text-align:left;font-size:1.05em}
.ap-modul-tabelle input[type="text"],.ap-modul-tabelle textarea{box-sizing:border-box;width:100%}
.ap-label-zelle{width:110px;font-weight:700}
.ap-label-oben{vertical-align:top!important}
.ap-subtitel-zelle{font-weight:700}
.ap-zentriert{text-align:center;width:36px}
.ap-aktionen-zelle{text-align:right}
.ap-aktionen-zelle .ap-button + .ap-button{margin-left:8px}
.ap-hinweis-ok{border-left-color:#387f39}
.ap-hinweis-fehler{border-left-color:#9b2d2d}
/* Ligapokal – kompakter Turnierbaum ohne horizontales Scrollen */
.ap-ligapokal{
    width:auto;
    max-width:none;
    margin-right:calc(-1 * clamp(28px,8vw,128px));
    margin-left:calc(-1 * clamp(28px,8vw,128px));
    border:1px solid var(--ap-altrot);
    background:#fff;
    color:#111;
    overflow:hidden;
}

.ap-ligapokal,
.ap-ligapokal *{box-sizing:border-box}

.ap-ligapokal-kopf{
    margin:0;
    padding:8px 12px;
    background:var(--ap-schwarz);
    color:var(--ap-kopfgelb);
    font-size:26px;
    font-weight:900;
    line-height:1.15;
    text-align:center;
}

.ap-ligapokal-intro{
    margin:0;
    padding:9px 14px;
    border-bottom:1px solid var(--ap-altrot);
    background:var(--ap-intro);
    font-size:16px;
    line-height:1.3;
    text-align:center;
}

.ap-ligapokal .ap-fehler{margin:10px}

.ap-ligapokal-quali{
    padding:10px 14px 12px;
    border-bottom:1px solid var(--ap-altrot);
    background:#fffaf0;
}

.ap-ligapokal-quali > h2,
.ap-ligapokal-runde > h2{
    margin:0 0 8px;
    color:var(--ap-altrot);
    font-size:18px;
    font-weight:950;
    line-height:1.1;
    text-align:center;
    text-transform:uppercase;
}

.ap-ligapokal-quali-spiele{
    display:flex;
    align-items:flex-start;
    justify-content:center;
    gap:14px;
    flex-wrap:wrap;
}

.ap-ligapokal-quali-spiele .ap-ligapokal-spiel{
    flex:0 1 300px;
    width:min(300px,100%);
}

.ap-ligapokal-baum{
    display:grid;
    grid-template-columns:minmax(190px,1.22fr) repeat(3,minmax(155px,1fr));
    gap:10px;
    width:100%;
    margin:0;
    padding:12px;
    background:#fff;
    overflow:visible;
}

.ap-ligapokal-runde{
    min-width:0;
    padding:8px;
    border:1px solid #dedede;
    background:#fafafa;
}

.ap-ligapokal-rundeninhalt{
    display:flex;
    min-height:690px;
    flex-direction:column;
}

.ap-ligapokal-runde-achtel .ap-ligapokal-rundeninhalt{
    justify-content:space-between;
    gap:6px;
}

.ap-ligapokal-runde-viertel .ap-ligapokal-rundeninhalt{
    justify-content:space-around;
    gap:18px;
    padding-block:28px;
}

.ap-ligapokal-runde-halb .ap-ligapokal-rundeninhalt{
    justify-content:space-around;
    gap:60px;
    padding-block:118px;
}

.ap-ligapokal-runde-finale .ap-ligapokal-rundeninhalt{
    justify-content:center;
}

.ap-ligapokal-spiel{
    width:100%;
    min-width:0;
    border:1px solid #9b9b9b;
    background:#fff;
    box-shadow:0 2px 5px rgba(0,0,0,.06);
}

.ap-ligapokal-spiel h3{
    margin:0;
    padding:4px 5px;
    border-bottom:1px solid #cfc7b5;
    background:linear-gradient(#fffdf7,#f1ead9);
    color:#111;
    font-size:clamp(10px,.72vw,13px);
    font-weight:900;
    line-height:1.1;
    text-align:center;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.ap-ligapokal-ergebnis-kopf,
.ap-ligapokal-team{
    display:grid;
    grid-template-columns:minmax(0,1fr) repeat(3,24px);
    align-items:center;
}

.ap-ligapokal-ergebnis-kopf{
    min-height:21px;
    background:#202020;
    color:#fff;
    font-size:10px;
    font-weight:900;
}

.ap-ligapokal-ergebnis-kopf span,
.ap-ligapokal-team span{
    min-width:0;
    padding:3px 3px;
    border-left:1px solid #d2d2d2;
    text-align:center;
    font-variant-numeric:tabular-nums;
}

.ap-ligapokal-ergebnis-kopf span:first-child,
.ap-ligapokal-team span:first-child{
    border-left:0;
    text-align:left;
}

.ap-ligapokal-team{
    min-height:24px;
    border-top:1px solid #ddd;
    font-size:clamp(10px,.72vw,13px);
    line-height:1.1;
}

.ap-ligapokal-team:nth-child(4){background:var(--ap-zebra)}

.ap-ligapokal-team span:first-child{
    overflow:hidden;
    font-weight:800;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.ap-ligapokal-team span:not(:first-child){font-weight:900}

.ap-ligapokal-team.ap-ligapokal-sieger{
    color:var(--ap-altrot);
    font-weight:900;
}

.ap-ligapokal-finale{
    border:2px solid var(--ap-altrot);
    box-shadow:0 4px 10px rgba(0,0,0,.12);
}

.ap-ligapokal-finale h3{
    background:linear-gradient(#fffdf7,#f1ead9);
    color:#111;
    font-size:14px;
}

.ap-ligapokal-fuss{
    margin:0;
    padding:7px 10px;
    border-top:1px solid var(--ap-altrot);
    background:#fff7d6;
    font-size:13px;
    font-weight:800;
    line-height:1.3;
    text-align:center;
}

@media(max-width:1100px){
    .ap-ligapokal-baum{
        grid-template-columns:minmax(175px,1.2fr) repeat(3,minmax(140px,1fr));
        gap:7px;
        padding:8px;
    }
    .ap-ligapokal-runde{padding:6px}
    .ap-ligapokal-ergebnis-kopf,
    .ap-ligapokal-team{grid-template-columns:minmax(0,1fr) repeat(3,21px)}
    .ap-ligapokal-ergebnis-kopf span,
    .ap-ligapokal-team span{padding-inline:2px}
}

@media(max-width:900px){
    .ap-ligapokal{
        margin-right:-26px;
        margin-left:-26px;
    }
    .ap-ligapokal-kopf{font-size:22px}
    .ap-ligapokal-intro{font-size:15px}
    .ap-ligapokal-baum{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .ap-ligapokal-rundeninhalt{
        min-height:0;
        gap:8px!important;
        padding-block:0!important;
    }
}

@media(max-width:800px){
    .ap-ligapokal{
        margin-right:-14px;
        margin-left:-14px;
    }
}

@media(max-width:620px){
    .ap-ligapokal-baum{grid-template-columns:1fr}
    .ap-ligapokal-quali-spiele{display:grid;grid-template-columns:1fr}
    .ap-ligapokal-quali-spiele .ap-ligapokal-spiel{width:100%}
    .ap-ligapokal-runde > h2{font-size:17px}
    .ap-ligapokal-team{font-size:12px}
}

/* Kabine: Spielername öffnet die Saisonleistungen unterhalb der Kadertabelle */
.ap-kabine-spieler-link{
    border:0;
    background:transparent;
    color:#111;
    padding:0;
    font:inherit;
    font-weight:700;
    text-align:left;
    cursor:pointer;
    text-decoration:underline;
    text-decoration-thickness:1px;
    text-underline-offset:2px;
}

.ap-kabine-spieler-link:hover,
.ap-kabine-spieler-link:focus{
    color:var(--ap-altrot);
}

.ap-kabine-zeile-ausgewaehlt td{
    background:#fff2c7!important;
}

.ap-kabine-leistungen{
    width:100%;
    max-width:none;
    box-sizing:border-box;
    margin-top:8px;
    padding:0;
    overflow:hidden;
}

.ap-kabine-leistungen[hidden]{
    display:none;
}

.ap-kabine-leistungen-kopf{
    position:relative;
    padding:8px 48px 8px 12px;
    background:var(--ap-schwarz);
    color:var(--ap-kopfgelb);
    text-align:center;
}

.ap-kabine-leistungen-kopf h2{
    margin:0;
    color:inherit;
    font-size:22px;
    line-height:1.15;
}

.ap-kabine-leistungen-schliessen{
    position:absolute;
    top:50%;
    right:10px;
    width:30px;
    height:30px;
    border:0;
    border-radius:3px;
    background:var(--ap-altrot);
    color:#fff;
    font-size:22px;
    font-weight:900;
    line-height:1;
    cursor:pointer;
    transform:translateY(-50%);
}

.ap-kabine-leistungen-schliessen:hover,
.ap-kabine-leistungen-schliessen:focus{
    background:#8f0000;
}

.ap-kabine-leistungen-inhalt{
    background:#fff;
}

.ap-kabine-leistungen-scroll{
    width:100%;
    overflow-x:auto;
}

.ap-kabine-leistungen-tabelle{
    width:100%;
    min-width:760px;
    margin:0;
    border:0;
    border-collapse:collapse;
    table-layout:auto;
    background:#fff;
    color:#111;
    font-size:13px;
}

.ap-kabine-leistungen-tabelle th{
    padding:5px 7px;
    border:0;
    background:var(--ap-schwarz);
    color:var(--ap-kopfgelb);
    font-weight:900;
    line-height:1.1;
    text-align:right;
    white-space:nowrap;
}

.ap-kabine-leistungen-tabelle td{
    padding:5px 7px;
    border:0;
    color:#111;
    line-height:1.15;
    text-align:right;
    vertical-align:middle;
    white-space:nowrap;
}

.ap-kabine-leistungen-tabelle tbody tr:nth-child(odd) td{
    background:#f7f7f7;
}

.ap-kabine-leistungen-tabelle tbody tr:nth-child(even) td{
    background:var(--ap-zebra);
}

.ap-kabine-leistungen-tabelle tbody tr:hover td{
    background:#fff2c7;
}

.ap-kabine-leistungen-zahl{
    text-align:right!important;
}

.ap-kabine-leistungen-kurz{
    width:88px;
    text-align:center!important;
}

.ap-kabine-leistungen-verein{
    min-width:150px;
    text-align:left!important;
}

.ap-kabine-leistungen-negativ{
    color:var(--ap-altrot)!important;
    font-weight:900;
}

.ap-kabine-leistungen-meldung{
    margin:0;
    padding:16px;
    text-align:center;
    font-weight:700;
}

@media(max-width:900px){
    .ap-kabine-leistungen-kopf h2{
        font-size:20px;
    }
}

/* Hammer to Fall */
.ap-htf{width:100%;max-width:none;padding:0;overflow:hidden;background:#f3ecd9}
.ap-htf-kopf{padding:12px 16px;background:var(--ap-schwarz);color:var(--ap-kopfgelb);text-align:center}
.ap-htf-kopf h1{margin:0;color:inherit;font-size:clamp(28px,5vw,58px);letter-spacing:.06em;line-height:1}
.ap-htf-kopf p{margin:6px 0 0;font-weight:800}
.ap-htf-erklaerung{
    margin:0;
    padding:9px 16px;
    border-bottom:1px solid var(--ap-altrot);
    background:var(--ap-intro);
    color:#111;
    font-size:15px;
    line-height:1.35;
    text-align:center;
}
.ap-htf-buehne{position:relative;padding:18px;text-align:center;background:linear-gradient(#fffdf7,#e8dfca)}
.ap-htf-spieler{min-height:142px;display:flex;flex-direction:column;justify-content:center}
.ap-htf-position{font-size:18px;font-weight:900;color:var(--ap-altrot);text-transform:uppercase}
.ap-htf-name{font-size:clamp(34px,6vw,76px);font-weight:950;line-height:1.02;text-transform:uppercase}
.ap-htf-verein{font-size:clamp(18px,3vw,32px);font-weight:900}
.ap-htf-verein strong{font-weight:900}
.ap-htf-ap-verein{margin-top:4px;font-size:17px;font-weight:800}
.ap-htf-spielerstand{margin-top:5px;font-size:17px;font-weight:900;color:var(--ap-altrot)}
.ap-htf-live{display:flex;align-items:center;justify-content:center;gap:22px;flex-wrap:wrap;margin:10px 0}
.ap-htf-preis{font-size:clamp(48px,9vw,112px);font-weight:950;line-height:1;color:var(--ap-altrot);white-space:nowrap}
.ap-htf-countdown{display:grid;place-items:center;width:clamp(92px,14vw,160px);aspect-ratio:1;border:8px solid var(--ap-altrot);border-radius:50%;background:#fff;color:#111;font-size:clamp(46px,8vw,88px);font-weight:950;line-height:1}
.ap-htf-blindbid{width:82px;height:82px;object-fit:cover;border:4px solid var(--ap-schwarz);border-radius:8px}
.ap-htf-status{display:inline-block;padding:5px 14px;background:var(--ap-schwarz);color:var(--ap-kopfgelb);font-size:18px;font-weight:900;letter-spacing:.08em}
.ap-htf-fuehrung{margin:12px auto 0;max-width:620px;padding:10px;background:#d9f2d9;border:2px solid #247224;font-size:20px;font-weight:950}
.ap-htf-meldung{margin:12px auto 14px;max-width:800px}
.ap-htf-steuerung,.ap-htf-manager{padding:14px;background:#efe7d4;border-top:3px solid var(--ap-altrot)}
.ap-htf-navigation,.ap-htf-hauptaktionen{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.ap-htf-navigation input,.ap-htf-navigation select{min-height:38px;padding:6px 8px;border:1px solid #777;background:#fff}
.ap-htf-aktionsraster{display:grid;grid-template-columns:minmax(420px,1.35fr) minmax(540px,1fr);gap:10px;align-items:stretch}
.ap-htf-preisgruppen{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ap-htf-manager{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ap-htf-preisgruppe{padding:10px;border:2px solid var(--ap-schwarz);background:#fffdf7}
.ap-htf-preisgruppe h2{margin:0 0 8px;padding:5px;background:var(--ap-schwarz);color:var(--ap-kopfgelb);font-size:18px;text-align:center}
.ap-htf-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.ap-htf .ap-button{background:var(--ap-altrot);border-color:var(--ap-altrot);color:#fff}
.ap-htf .ap-button:hover:not(:disabled),.ap-htf .ap-button:focus-visible:not(:disabled){background:#74191d;border-color:#74191d;color:#fff}
.ap-htf .ap-button:disabled{background:#aaa;border-color:#888;color:#eee}
.ap-htf-buttons .ap-button{min-height:52px;font-size:17px;font-weight:950}
.ap-htf-tribuene{padding:10px;border:2px solid var(--ap-schwarz);background:#fffdf7}
.ap-htf-tribuene h2{margin:0 0 8px;padding:5px;background:var(--ap-schwarz);color:var(--ap-kopfgelb);font-size:18px;text-align:center}
.ap-htf-tribuene-buttons{display:grid;grid-template-columns:repeat(4,minmax(90px,1fr));gap:7px}
.ap-htf-tribuene-buttons .ap-button{min-height:44px;padding:6px 8px;font-size:14px;font-weight:900;white-space:nowrap}
.ap-htf-tribuene-buttons .ap-htf-tribuene-aktiv{outline:4px solid var(--ap-kopfgelb);outline-offset:1px}
.ap-htf-hauptaktionen{margin:14px 0 0}
.ap-htf-start,.ap-htf-abbruch{min-width:150px;min-height:58px;font-size:20px!important}
.ap-htf-abbruch{background:var(--ap-altrot)!important;color:#fff!important}
.ap-htf-hammer{display:flex;align-items:center;gap:8px;min-width:190px;min-height:64px;padding:5px 14px;border:3px solid var(--ap-schwarz);background:var(--ap-kopfgelb);font-size:24px;font-weight:950;cursor:pointer}
.ap-htf-hammer img{width:64px;height:52px;object-fit:cover}
.ap-htf-hammer:disabled{opacity:.35;cursor:not-allowed}
@media(max-width:1100px){.ap-htf-aktionsraster{grid-template-columns:1fr}.ap-htf-tribuene-buttons{grid-template-columns:repeat(4,minmax(90px,1fr))}}
@media(max-width:780px){.ap-htf-preisgruppen,.ap-htf-manager{grid-template-columns:1fr}.ap-htf-tribuene-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.ap-htf-buehne{padding:12px 8px}.ap-htf-live{gap:10px}.ap-htf-countdown{border-width:6px}.ap-htf-buttons .ap-button{min-height:58px}.ap-htf-navigation label{width:100%;text-align:center}}


/* Hammer to Fall – Navigation und Aktionspositionen */
.ap-htf-navigation{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-areas:"links mitte rechts";
    align-items:center;
    gap:12px;
    margin-bottom:12px;
}
.ap-htf-navigation-links{
    grid-area:links;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
    white-space:nowrap;
}
.ap-htf-navigation-mitte{
    grid-area:mitte;
    display:flex;
    min-width:0;
    align-items:center;
    justify-content:center;
    gap:8px;
    flex-wrap:wrap;
}
.ap-htf-navigation-rechts{
    grid-area:rechts;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
}
.ap-htf-navigation .ap-button,
.ap-htf-navigation .ap-htf-hammer{
    margin-top:0;
}
.ap-htf-navigation [data-htf-filter]{
    min-width:110px;
}
.ap-htf-navigation [data-htf-sid]{
    width:6.5rem;
    min-width:6.5rem;
    text-align:center;
}
.ap-htf-start,
.ap-htf-abbruch{
    min-width:112px;
    min-height:48px;
    font-size:17px!important;
}
.ap-htf-tribuene{
    padding-top:10px;
}
.ap-htf-buttons .ap-button{
    min-width:0;
    width:100%;
    padding-right:8px;
    padding-left:8px;
    font-weight:400;
}
@media(max-width:1650px){
    .ap-htf-navigation{
        grid-template-columns:auto minmax(0,1fr);
        grid-template-areas:
            "links mitte"
            "rechts rechts";
    }
    .ap-htf-navigation-rechts{
        justify-content:center;
    }
}
@media(max-width:1180px){
    .ap-htf-navigation{
        grid-template-columns:1fr;
        grid-template-areas:
            "links"
            "mitte"
            "rechts";
    }
    .ap-htf-navigation-links,
    .ap-htf-navigation-rechts{
        justify-content:center;
    }
}

.ap-htf-interesse-hinweis{
    margin:12px auto 0;
    max-width:760px;
    padding:10px 14px;
    border:2px solid var(--ap-altrot);
    background:var(--ap-intro);
    color:#111;
    font-size:18px;
    font-weight:950;
    line-height:1.25;
}
.ap-htf-interesse-manager{
    grid-column:1/-1;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    padding:10px;
    border:2px solid var(--ap-altrot);
    background:var(--ap-intro);
    color:#111;
    font-weight:850;
    text-align:center;
}
.ap-htf-interesse-manager .ap-button{
    flex:0 0 auto;
    min-width:190px;
    margin-top:0;
}
.ap-htf-saalruf-eingabe{
    flex:1 1 360px;
    max-width:620px;
    display:grid;
    grid-template-columns:auto minmax(220px, 1fr);
    align-items:center;
    gap:8px;
    text-align:left;
}
.ap-htf-saalruf-eingabe span{
    white-space:nowrap;
}
.ap-htf-saalruf-eingabe input{
    width:100%;
    min-width:0;
}
.ap-htf-interesse-verwerfen{
    min-width:165px;
}
@media(max-width:780px){
    .ap-htf-interesse-manager{
        align-items:stretch;
        flex-direction:column;
    }
    .ap-htf-interesse-manager .ap-button{
        width:100%;
    }
    .ap-htf-saalruf-eingabe{
        width:100%;
        max-width:none;
        grid-template-columns:1fr;
    }
}

/* ===== Aus auswertung.php zentralisiert (Korrektur 35) ===== */
.ap-karte-voll{
    width:100%;
    max-width:none;
}
.ap-karte-voll table{
    width:100%;
}


/* ===== Aus blind_bid.php zentralisiert (Korrektur 35) ===== */
.ap-blindbid {
    width: min(100%, 1180px);
    margin: 0 auto;
    border: 1px solid #b00000;
    background: #f5efc8;
    color: #111;
}
.ap-blindbid-kopf,
.ap-blindbid-ergebnis-kopf {
    margin: 0;
    padding: .35rem .75rem;
    background: #000;
    color: #efe5a1;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}
.ap-blindbid-kopf { font-size: 1.35rem; }
.ap-blindbid-ergebnis-kopf { font-size: 1.05rem; }
.ap-blindbid-intro,
.ap-blindbid-status,
.ap-blindbid-fehler,
.ap-blindbid-erfolg {
    margin: 0;
    padding: .45rem .75rem;
    text-align: center;
    line-height: 1.2;
}
.ap-blindbid-intro,
.ap-blindbid-erfolg { background: #fff0a8; }
.ap-blindbid-status { border-top: 1px solid #b00000; border-bottom: 1px solid #b00000; }
.ap-blindbid-fehler { background: #ffe4e4; color: #900; font-weight: 700; }
.ap-blindbid-erfolg { font-weight: 700; }
.ap-blindbid-filter {
    display: grid;
    grid-template-columns: 145px 215px minmax(190px, 1fr) auto;
    align-items: end;
    gap: .45rem .65rem;
    margin: 0;
    padding: .55rem .65rem;
    background: #f4f4f4;
}
.ap-blindbid-filterfeld label { display: block; margin: 0 0 .15rem; font-weight: 700; }
.ap-blindbid-filter select,
.ap-blindbid-filter input {
    width: 100%;
    height: 30px;
    border: 1px solid #888;
    border-radius: 0;
    background: #fff;
    padding: .2rem .4rem;
    font: inherit;
}
.ap-blindbid-filteraktionen { display: flex; gap: .35rem; white-space: nowrap; }
.ap-blindbid button,
.ap-blindbid-filteraktionen a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border: 0;
    border-radius: 0;
    background: #bd0000;
    color: #fff;
    padding: .3rem .6rem;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
}
.ap-blindbid-scroll { width: 100%; overflow-x: auto; }
.ap-blindbid-tabelle { width: 100%; border-collapse: collapse; background: #fff; table-layout: fixed; }
.ap-blindbid-tabelle th { padding: .35rem .5rem; background: #bd0000; color: #fff; text-align: left; white-space: nowrap; }
.ap-blindbid-tabelle td { padding: .35rem .5rem; vertical-align: middle; white-space: nowrap; }
.ap-blindbid-tabelle tbody tr:nth-child(odd) td { background: #f4f4f4; }
.ap-blindbid-tabelle tbody tr:nth-child(even) td { background: #d7d7d7; }
.ap-blindbid-tabelle tbody tr.ap-blindbid-eigenes-gebot td {
    background: var(--ap-intro) !important;
    box-shadow: inset 0 2px 0 var(--ap-altrot), inset 0 -2px 0 var(--ap-altrot);
}
.ap-blindbid-tabelle tbody tr.ap-blindbid-eigenes-gebot td:first-child {
    box-shadow: inset 3px 0 0 var(--ap-altrot), inset 0 2px 0 var(--ap-altrot), inset 0 -2px 0 var(--ap-altrot);
}
.ap-blindbid-zahl { text-align: right !important; }
.ap-blindbid-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.ap-blindbid-aktion form { display: flex; align-items: center; justify-content: flex-end; gap: .35rem; margin: 0; }
.ap-blindbid-aktion input {
    width: 5.2ch;
    min-width: 5.2ch;
    max-width: 5.2ch;
    height: 28px;
    border: 1px solid #888;
    border-radius: 0;
    padding: .15rem .3rem;
    text-align: right;
    font: inherit;
}
.ap-blindbid-aktion button { min-height: 28px; padding: .25rem .45rem; font-size: .9rem; }
@media (max-width: 760px) {
    .ap-blindbid-filter { grid-template-columns: 1fr; }
    .ap-blindbid-tabelle { min-width: 880px; }
}


/* ===== Aus liga.php zentralisiert (Korrektur 35) ===== */
.ap-konten.ap-liga-breit {
        width: 100%;
        max-width: none;
        overflow-x: auto;
    }

    .ap-liga-breit .ap-konten-tabelle,
    .ap-liga-details .ap-konten-tabelle {
        width: 100%;
        table-layout: auto;
    }

    .ap-liga-breit .ap-konten-tabelle th,
    .ap-liga-breit .ap-konten-tabelle td,
    .ap-liga-details .ap-konten-tabelle th,
    .ap-liga-details .ap-konten-tabelle td {
        vertical-align: middle;
    }

    .ap-liga-navigation {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.25rem;
        margin-top: 0.65rem;
        font-weight: 700;
    }

    .ap-liga-navigation a {
        color: inherit;
        text-decoration: none;
    }

    .ap-liga-navigation a:hover,
    .ap-liga-navigation a:focus {
        text-decoration: underline;
    }

    .ap-liga-navigation-ohne-link {
        visibility: hidden;
    }

    .ap-liga-indikator-spalte {
        width: 2.75rem;
        text-align: center;
    }

    .ap-liga-platz-spalte {
        width: 3.25rem;
        text-align: right;
        white-space: nowrap;
    }

    .ap-liga-vorwoche-spalte {
        width: 3.25rem;
        text-align: left;
        white-space: nowrap;
    }

    .ap-liga-verein,
    .ap-liga-manager {
        white-space: nowrap;
    }

    .ap-liga-verein-link {
        color: inherit;
        font-weight: inherit;
        text-decoration: none;
    }

    .ap-liga-verein-link:hover,
    .ap-liga-verein-link:focus {
        text-decoration: underline;
    }

    .ap-liga-indikator {
        display: inline-block;
        width: 0.85rem;
        height: 0.85rem;
        border-radius: 50%;
        border: 1px solid rgba(0, 0, 0, 0.35);
        vertical-align: middle;
    }

    .ap-indikator-besser { background-color: #198754; }
    .ap-indikator-gleich { background-color: #ffc107; }
    .ap-indikator-schlechter { background-color: #dc3545; }
    .ap-indikator-neutral {
        background-color: transparent;
        border-color: #8c959d;
    }

    .ap-konten-tabelle tr.ap-tabellenfuehrer > td {
        background-color: #bfe69b !important;
    }

    .ap-konten-tabelle tr.ap-europapokal > td {
        background-color: #dbeeff !important;
    }

    .ap-konten-tabelle tr.ap-absteiger > td {
        background-color: #f8d7da !important;
    }

    .ap-konten-tabelle tr.ap-liga-ausgewaehlt > td {
        box-shadow: inset 0 2px 0 #212529, inset 0 -2px 0 #212529;
    }

    .ap-liga-details {
        margin-top: 1.5rem;
        width: 100%;
        overflow-x: auto;
    }

    .ap-liga-details-kopf {
        background: #000;
        color: #eee5aa;
        font-size: 1.35rem;
        font-weight: 700;
        padding: 0.65rem 1rem;
        text-align: center;
    }

    .ap-liga-details .ap-konten-tabelle {
        min-width: 820px;
        table-layout: fixed;
    }

    .ap-liga-details .ap-konten-tabelle th,
    .ap-liga-details .ap-konten-tabelle td {
        padding: 0.38rem 0.55rem;
        line-height: 1.15;
    }

    .ap-liga-details-zahl {
        text-align: right;
        white-space: nowrap;
    }

    .ap-liga-details-spieler {
        text-align: left;
    }

    .ap-liga-details-logo,
    .ap-liga-details-status {
        text-align: center;
    }

    .ap-liga-buli-logo {
        display: block;
        width: 26px;
        height: 26px;
        margin: 0 auto;
        object-fit: contain;
    }

    .ap-liga-status-indikator {
        display: inline-block;
        width: 0.8rem;
        height: 0.8rem;
        border: 1px solid rgba(0, 0, 0, 0.3);
        border-radius: 50%;
        vertical-align: middle;
    }

    .ap-liga-status-ja { background-color: #198754; }
    .ap-liga-status-nein { background-color: #dc3545; }

    .ap-liga-punkte-negativ {
        color: #c00000;
        font-weight: 700;
    }

    .ap-liga-aufgestellt > td {
        font-weight: 600;
    }

    .ap-liga-trennlinie td {
        border-bottom: 3px solid var(--ap-altrot);
    }

    @media (max-width: 1100px) {
        .ap-liga-breit .ap-konten-tabelle {
            min-width: 980px;
        }
    }
.ap-liga-punkte-negativ{color:#c00000;font-weight:700;}


/* ===== Aus quoten.php zentralisiert (Korrektur 35) ===== */
.ap-quoten {
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid #b00000;
    background: #f5efc8;
}

.ap-quoten-titel {
    margin: 0;
    padding: .35rem .75rem;
    background: #000;
    color: #efe5a1;
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
}

.ap-quoten-spruch {
    margin: 0;
    padding: .4rem .75rem;
    background: #fff0a8;
    color: #111;
    text-align: center;
    line-height: 1.2;
}

.ap-quoten-tabelle {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    background: #fff;
}

.ap-quoten-tabelle th {
    padding: .35rem .65rem;
    background: #bd0000;
    color: #fff;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.ap-quoten-tabelle td {
    padding: .35rem .65rem;
    color: #111;
    vertical-align: middle;
}

.ap-quoten-tabelle tbody tr:nth-child(odd) td {
    background: #f4f4f4;
}

.ap-quoten-tabelle tbody tr:nth-child(even) td {
    background: #d7d7d7;
}

.ap-quoten-tabelle th:nth-child(1),
.ap-quoten-tabelle td:nth-child(1) {
    text-align: center;
}

.ap-quoten-tabelle th:nth-child(4),
.ap-quoten-tabelle td:nth-child(4) {
    text-align: right;
}

.ap-quoten-fuss {
    padding: .35rem .75rem;
    background: #bd0000;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.ap-quoten-meldung {
    margin: 0;
    padding: .75rem;
    background: #fff;
    color: #111;
    text-align: center;
}

@media (max-width: 900px) {
    .ap-quoten {
        overflow-x: auto;
    }

    .ap-quoten-tabelle {
        min-width: 850px;
    }
}


/* ===== Aus talentsuche.php zentralisiert (Korrektur 35) ===== */
.ap-talentsuche {
    width: min(100%, 1480px);
    margin: 0 auto;
    border: 1px solid #b00000;
    background: #f5efc8;
    color: #111;
}

.ap-talentsuche-kopf {
    margin: 0;
    padding: .35rem .75rem;
    background: #000;
    color: #efe5a1;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.ap-talentsuche-intro {
    margin: 0;
    padding: .4rem .75rem;
    background: #fff0a8;
    color: #111;
    line-height: 1.2;
    text-align: center;
}

.ap-talentsuche-status {
    margin: 0;
    padding: .35rem .75rem;
    border-top: 1px solid #b00000;
    border-bottom: 1px solid #b00000;
    background: #f5efc8;
    color: #111;
    line-height: 1.2;
    text-align: center;
}

.ap-talentsuche-fehler {
    margin: 0;
    padding: .55rem .75rem;
    border-top: 1px solid #b00000;
    background: #ffe4e4;
    color: #900;
    font-weight: 700;
    text-align: center;
}

.ap-talentsuche-erfolg {
    margin: 0;
    padding: .55rem .75rem;
    border-top: 1px solid #b00000;
    background: #fff0a8;
    color: #111;
    font-weight: 700;
    text-align: center;
}

.ap-talentsuche-filter {
    display: grid;
    grid-template-columns: 145px 215px minmax(190px, 1fr) auto auto;
    align-items: end;
    gap: .45rem .65rem;
    margin: 0;
    padding: .55rem .65rem;
    background: #f4f4f4;
}

.ap-talentsuche-filterfeld label {
    display: block;
    margin: 0 0 .15rem;
    font-weight: 700;
    line-height: 1.1;
}

.ap-talentsuche-filter select,
.ap-talentsuche-filter input {
    width: 100%;
    height: 30px;
    border: 1px solid #888;
    border-radius: 0;
    background: #fff;
    color: #111;
    padding: .2rem .4rem;
    font: inherit;
}


.ap-talentsuche-checkbox {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 30px;
    margin: 0;
    font-weight: 700;
    white-space: nowrap;
}

.ap-talentsuche-checkbox input {
    width: auto;
    height: auto;
    margin: 0;
}

.ap-talentsuche-filteraktionen {
    display: flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

.ap-talentsuche-filteraktionen button,
.ap-talentsuche-filteraktionen a,
.ap-talentsuche-aktionen button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border: 0;
    border-radius: 0;
    background: #bd0000;
    color: #fff;
    padding: .3rem .6rem;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
}

.ap-talentsuche-ergebnis-kopf {
    padding: .35rem .75rem;
    background: #000;
    color: #efe5a1;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.ap-talentsuche-scroll {
    width: 100%;
    overflow-x: auto;
}

.ap-talentsuche-tabelle {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    background: #fff;
    color: #111;
}


.ap-talentsuche-manager .ap-talentsuche-tabelle {
    min-width: 1510px;
}

.ap-talentsuche-tabelle th {
    padding: .35rem .55rem;
    background: #bd0000;
    color: #fff;
    font-weight: 700;
    line-height: 1.1;
    text-align: left;
    white-space: nowrap;
}

.ap-talentsuche-tabelle td {
    padding: .35rem .55rem;
    color: #111;
    line-height: 1.15;
    vertical-align: middle;
    white-space: nowrap;
}

.ap-talentsuche-tabelle tbody tr:nth-child(odd) td { background: #f4f4f4; }
.ap-talentsuche-tabelle tbody tr:nth-child(even) td { background: #d7d7d7; }
.ap-talentsuche-tabelle th:first-child,
.ap-talentsuche-tabelle td:first-child { text-align: right; }
.ap-talentsuche-name { font-weight: 700; }
.ap-talentsuche-zahl { text-align: right !important; }
.ap-talentsuche-negativ { color: #b00000 !important; font-weight: 700; }
.ap-talentsuche-aktionen { min-width: 470px; }
.ap-talentsuche-aktionsgruppe { display: flex; align-items: center; gap: .45rem; }
.ap-talentsuche-aktionen form { display: flex; align-items: center; gap: .3rem; margin: 0; }
.ap-talentsuche-aktionen input[type="number"] {
    width: 72px;
    height: 28px;
    border: 1px solid #888;
    border-radius: 0;
    padding: .15rem .3rem;
    text-align: right;
    font: inherit;
}
.ap-talentsuche-aktionen button { min-height: 28px; padding: .25rem .45rem; font-size: .9rem; }


.ap-talentsuche-name-button {
    border: 0;
    background: transparent;
    color: #111;
    padding: 0;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.ap-talentsuche-name-button:hover,
.ap-talentsuche-name-button:focus { color: #b00000; }
.ap-talentsuche-detailzeile[hidden] { display: none; }
.ap-talentsuche-detailzeile > td {
    padding: 0 !important;
    background: #fff8d7 !important;
    white-space: normal !important;
}
.ap-talentsuche-detail {
    position: relative;
    padding: .7rem .8rem .85rem;
    border-top: 2px solid #b00000;
    border-bottom: 2px solid #b00000;
}
.ap-talentsuche-detail-kopf {
    margin: 0 0 .55rem 2.4rem;
    text-align: left;
    color: #111;
    font-size: 1rem;
    font-weight: 800;
}
.ap-talentsuche-detail-schliessen {
    position: absolute;
    top: .35rem;
    left: .5rem;
    width: 30px;
    height: 30px;
    border: 0;
    background: #bd0000;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}
.ap-talentsuche-detail-scroll {
    width: 100%;
    overflow-x: visible;
}
.ap-talentsuche-detail-tabelle {
    width: 680px;
    max-width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: .82rem;
    table-layout: fixed;
}
.ap-talentsuche-detail-tabelle th {
    padding: .22rem .3rem;
    background: #000;
    color: #efe5a1;
    text-align: right;
    white-space: nowrap;
}
.ap-talentsuche-detail-tabelle td {
    padding: .22rem .3rem !important;
    background: #fff !important;
    color: #111;
    text-align: right;
    white-space: nowrap !important;
}
.ap-talentsuche-detail-tabelle tbody tr:nth-child(even) td { background: #e0e0e0 !important; }
.ap-talentsuche-detail-zahl { text-align: right !important; }
.ap-talentsuche-detail-kurz {
    white-space: nowrap;
}
.ap-talentsuche-detail-verein {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ap-talentsuche-detail-negativ { color: #b00000 !important; font-weight: 800; }
.ap-talentsuche-detail-meldung { margin: 0; padding: .65rem; text-align: center; font-weight: 700; }

@media (max-width: 900px) {
    .ap-talentsuche { overflow-x: auto; }
    .ap-talentsuche-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-talentsuche-tabelle { min-width: 1020px; }
}

@media (max-width: 620px) {
    .ap-talentsuche-filter { grid-template-columns: 1fr; }
    .ap-talentsuche-filteraktionen { flex-wrap: wrap; }
}


/* ===== Aus versteigerung.php zentralisiert (Korrektur 35) ===== */
.wichtigeZahl {
						border: none;
						background: transparent;
						outline: none;
						font-size: 40px;
					}

					.wichtigerText {
						border: none;
						background: transparent;
						outline: none;
						font-size: 40px;
					}

.manager-btn {
					background-color: #eee;
					border: 1px solid #999;
					padding: 8px 15px;
					margin: 5px;
					cursor: pointer;
				}

				.manager-btn.selected {
					background-color: #4CAF50;
					color: white;
				}

.hammer-btn {
					background: none;
					border: #000000;
					border-style: solid;
					border-width: 5px;
					cursor: pointer;
					padding: 0;
					margin-top: 20px;
				}

				.hammer-btn img {
					width: 180px;      /* nach Wunsch */
					height: auto;
				}

				.hammer-btn:hover img {
					transform: scale(1.05);
				}

				.hammer-btn:active img {
					transform: scale(0.95);
				}


/* Korrektur 39: verbliebene Inline-Styles zentralisiert */
.ap-text-links {
    text-align: left;
}

.ap-text-rechts {
    text-align: right;
}

.ap-auswertung-label {
    text-align: left !important;
}

.ap-auswertung-fehlertabelle {
    table-layout: auto;
}

.ap-auswertung-col-zeile {
    width: 8%;
}

.ap-auswertung-col-standard {
    width: 16%;
}

.ap-auswertung-col-feld {
    width: 9%;
}

.ap-auswertung-col-ursache {
    width: 43%;
}

.ap-auswertung-ursache {
    white-space: normal;
    overflow-wrap: anywhere;
}

.ap-pflege-tabelle {
    width: 100%;
    table-layout: auto;
    margin-bottom: 0;
    border-spacing: 0;
}

.ap-pflege-col-position {
    width: 170px;
}

.ap-pflege-col-marktwert {
    width: 90px;
}

.ap-pflege-col-verein,
.ap-pflege-col-filter {
    width: 220px;
}

.ap-pflege-col-ziel {
    width: 240px;
}

.ap-pflege-col-aktion {
    width: 1%;
}

.ap-pflege-modulkopf {
    padding-bottom: 4px;
    text-align: left;
}

.ap-pflege-modulkopf h1 {
    margin: 0;
}

.ap-pflege-feld {
    width: 100%;
    box-sizing: border-box;
}

.ap-pflege-aktion {
    white-space: nowrap;
    text-align: right;
}

.ap-blindbid-col-sid {
    width: 65px;
}

.ap-blindbid-col-position {
    width: 70px;
}

.ap-blindbid-col-verein {
    width: 135px;
}

.ap-blindbid-col-wert {
    width: 130px;
}

.ap-blindbid-col-aktion {
    width: 250px;
}

.ap-versteigerung-naechster {
    margin-left: 20px;
}

.ap-versteigerung-gebot {
    width: 180px;
    font-size: 40px;
}

.ap-talentsuche-maximalgebot {
    width: 5.2ch;
    min-width: 5.2ch;
    max-width: 5.2ch;
    text-align: right;
}

.ap-talentsuche-col-spieltag,
.ap-talentsuche-col-punkte {
    width: 58px;
}

.ap-talentsuche-col-verein {
    width: 100px;
}

.ap-talentsuche-col-kurz {
    width: 36px;
}

.ap-talentsuche-col-note {
    width: 48px;
}

.ap-talentsuche-col-notenpunkte {
    width: 82px;
}

.ap-talentsuche-col-tore {
    width: 46px;
}

.ap-talentsuche-col-torpunkte {
    width: 72px;
}

.ap-talentsuche-col-karte {
    width: 52px;
}

.ap-talentsuche-col-kartenpunkte {
    width: 92px;
}

.ap-liga-col-sid,
.ap-liga-col-karte {
    width: 7%;
}

.ap-liga-col-spieler {
    width: 22%;
}

.ap-liga-col-logo {
    width: 13%;
}

.ap-liga-col-kurz {
    width: 8%;
}

.ap-liga-col-punkte {
    width: 12%;
}

.ap-liga-col-status {
    width: 9%;
}

.ap-liga-col-tore {
    width: 6%;
}

.ap-htf-buttons-zweispaltig {
    display: grid;
    grid-template-columns: repeat(2, minmax(80px, 1fr));
    gap: .5rem;
}


/* Hammer to Fall: Saalruf */
.ap-htf-saalruf {
    margin-top: .75rem;
    padding: .65rem .8rem;
    border: 1px solid var(--linie);
    background: var(--karte);
}

.ap-htf-saalruf h2 {
    margin: 0 0 .35rem;
    font-size: 1rem;
}

.ap-htf-saalruf-liste {
    display: grid;
    gap: .2rem;
}

.ap-htf-saalruf-zeile {
    font-weight: 700;
}

.ap-htf-saalruf-farbe-0 { color: #a40000; }
.ap-htf-saalruf-farbe-1 { color: #005a9c; }
.ap-htf-saalruf-farbe-2 { color: #6b3fa0; }
.ap-htf-saalruf-farbe-3 { color: #007a3d; }
.ap-htf-saalruf-farbe-4 { color: #9a4d00; }
.ap-htf-saalruf-farbe-5 { color: #006b70; }
.ap-htf-saalruf-farbe-6 { color: #7a1f5c; }
.ap-htf-saalruf-farbe-7 { color: #3f5f00; }

/* HAMMERTIME: ausgewählten Bieter eindeutig kennzeichnen */
.ap-htf-ausgewaehlter-bieter{
    margin:0 0 10px;
    padding:8px 10px;
    border:2px solid #0f5132;
    background:#d1e7dd;
    color:#0f3d27;
    font-size:16px;
    font-weight:800;
    line-height:1.2;
    text-align:center;
}

.ap-htf-ausgewaehlter-bieter strong{
    font-weight:950;
}

.ap-htf .ap-htf-tribuene-buttons .ap-button.ap-htf-tribuene-aktiv,
.ap-htf .ap-htf-tribuene-buttons .ap-button.ap-htf-tribuene-aktiv:disabled{
    border:2px solid #0b4e2b;
    outline:3px solid #111;
    outline-offset:1px;
    background:#198754;
    color:#fff;
    box-shadow:0 0 0 3px rgba(25,135,84,.22);
    opacity:1;
}



/* HAMMERTIME: globale, nur außerhalb laufender Auktionen änderbare Laufzeit */
.ap-htf-laufzeit{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
    color:#111;
}
.ap-htf-laufzeit label{
    font-size:17px;
    font-weight:900;
    white-space:nowrap;
}
.ap-htf-laufzeit select{
    width:auto;
    min-width:112px;
    min-height:48px;
    border:1px solid #777;
    background:#fff;
    padding:6px 8px;
    font:inherit;
}
.ap-htf-laufzeit .ap-button{
    width:auto;
    min-width:100px;
    min-height:48px;
    margin-top:0;
    padding:7px 12px;
    font-size:17px;
    white-space:nowrap;
}
.ap-htf-laufzeit select:disabled{
    background:#e5e5e5;
    color:#666;
    cursor:not-allowed;
}
@media(max-width:780px){
    .ap-htf-navigation-mitte{
        align-items:stretch;
    }
    .ap-htf-navigation-mitte > label{
        width:auto;
        text-align:center;
    }
    .ap-htf-laufzeit{
        width:100%;
        justify-content:center;
        flex-wrap:wrap;
    }
    .ap-htf-laufzeit label{
        width:auto;
        text-align:center;
    }
}


/* Hammer to Fall – Feinlayout Steuerleiste (Korrektur 107) */
.ap-htf-navigation{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    grid-template-areas:
        "links mitte"
        "rechts mitte";
    align-items:start;
    column-gap:28px;
    row-gap:8px;
}
.ap-htf-navigation-links{
    grid-area:links;
    align-self:start;
    justify-content:flex-start;
}
.ap-htf-navigation-rechts{
    grid-area:rechts;
    align-self:start;
    justify-content:flex-end;
    width:100%;
}
.ap-htf-navigation-mitte{
    grid-area:mitte;
    align-self:start;
    justify-content:flex-start;
    padding-left:8px;
}
.ap-htf-navigation-mitte .ap-htf-laufzeit{
    order:20;
    flex-basis:100%;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    margin-top:4px;
}
.ap-htf-navigation-mitte .ap-htf-laufzeit label{
    margin:0;
    font-weight:900;
}
.ap-htf-navigation-rechts .ap-htf-hammer{
    margin-left:auto;
}
@media(max-width:1450px){
    .ap-htf-navigation{
        grid-template-columns:1fr;
        grid-template-areas:
            "links"
            "rechts"
            "mitte";
        row-gap:12px;
    }
    .ap-htf-navigation-links,
    .ap-htf-navigation-rechts,
    .ap-htf-navigation-mitte{
        justify-content:center;
        width:100%;
        padding-left:0;
    }
    .ap-htf-navigation-mitte .ap-htf-laufzeit{
        justify-content:center;
    }
    .ap-htf-navigation-rechts .ap-htf-hammer{
        margin-left:0;
    }
}


/* Hammer to Fall – Feinlayout Steuerleiste rechtsbündige Laufzeit (Korrektur 108) */
.ap-htf-navigation{
    display:grid;
    grid-template-columns:auto auto minmax(280px,1fr);
    grid-template-areas:
        "links mitte laufzeit"
        "rechts . .";
    align-items:start;
    column-gap:28px;
    row-gap:12px;
}
.ap-htf-navigation-links{
    grid-area:links;
    align-self:start;
    justify-content:flex-start;
}
.ap-htf-navigation-rechts{
    grid-area:rechts;
    align-self:start;
    justify-content:flex-start;
    width:auto;
}
.ap-htf-navigation-mitte{
    grid-area:mitte;
    align-self:start;
    justify-content:flex-start;
    padding-left:0;
}
.ap-htf-navigation-mitte .ap-htf-laufzeit{
    grid-area:laufzeit;
    order:initial;
    flex-basis:auto;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    margin-top:0;
    width:100%;
    min-height:72px;
}
.ap-htf-navigation-mitte .ap-htf-laufzeit label{
    margin:0;
    font-weight:900;
    white-space:nowrap;
}
.ap-htf-navigation-mitte .ap-htf-laufzeit select{
    min-width:202px;
}
.ap-htf-navigation-rechts .ap-htf-hammer{
    margin-left:0;
}
@media(max-width:1700px){
    .ap-htf-navigation{
        grid-template-columns:auto 1fr;
        grid-template-areas:
            "links mitte"
            "rechts laufzeit";
    }
    .ap-htf-navigation-mitte .ap-htf-laufzeit{
        justify-content:flex-start;
    }
}
@media(max-width:1250px){
    .ap-htf-navigation{
        grid-template-columns:1fr;
        grid-template-areas:
            "links"
            "rechts"
            "mitte"
            "laufzeit";
        row-gap:12px;
    }
    .ap-htf-navigation-links,
    .ap-htf-navigation-rechts,
    .ap-htf-navigation-mitte,
    .ap-htf-navigation-mitte .ap-htf-laufzeit{
        justify-content:center;
        width:100%;
    }
}


/* Hammer to Fall – Steuerleiste einzeilig bis auf Hammer (Korrektur 109) */
.ap-htf-steuerung{
    padding:14px 18px 12px;
}
.ap-htf-navigation{
    display:grid;
    grid-template-columns:auto minmax(0, 1fr);
    grid-template-areas:
        "links mitte"
        "rechts .";
    align-items:start;
    column-gap:24px;
    row-gap:12px;
    width:100%;
    margin-bottom:0;
}
.ap-htf-navigation-links{
    grid-area:links;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    white-space:nowrap;
}
.ap-htf-navigation-mitte{
    grid-area:mitte;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    flex-wrap:nowrap;
    width:100%;
    min-width:0;
}
.ap-htf-navigation-mitte > label{
    display:flex;
    align-items:center;
    gap:8px;
    margin:0;
    white-space:nowrap;
}
.ap-htf-navigation [data-htf-filter]{
    min-width:108px;
}
.ap-htf-navigation [data-htf-sid]{
    width:7rem;
    min-width:7rem;
    text-align:center;
}
.ap-htf-laufzeit{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    margin:0 0 0 18px;
    white-space:nowrap;
    flex:0 0 auto;
}
.ap-htf-laufzeit label{
    margin:0;
    font-weight:900;
    white-space:nowrap;
}
.ap-htf-laufzeit select{
    min-width:182px;
}
.ap-htf-laufzeit .ap-button{
    min-width:118px;
}
.ap-htf-navigation-rechts{
    grid-area:rechts;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
}
.ap-htf-navigation-rechts .ap-htf-hammer{
    margin:0;
}
@media(max-width:1500px){
    .ap-htf-navigation{
        grid-template-columns:1fr;
        grid-template-areas:
            "links"
            "mitte"
            "rechts";
    }
    .ap-htf-navigation-links,
    .ap-htf-navigation-rechts,
    .ap-htf-navigation-mitte{
        justify-content:center;
    }
    .ap-htf-navigation-mitte{
        flex-wrap:wrap;
    }
    .ap-htf-laufzeit{
        margin-left:0;
    }
}


/* Hammer to Fall – saubere 2-Zeilen-Steuerung (Korrektur 110) */
.ap-htf-steuerung{
    padding:12px 10px 14px !important;
}
.ap-htf-navigation{
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr) !important;
    grid-template-areas:
        "links mitte"
        "rechts rechts" !important;
    align-items:center !important;
    column-gap:20px !important;
    row-gap:12px !important;
    width:100% !important;
    margin-bottom:0 !important;
}
.ap-htf-navigation-links{
    grid-area:links !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:10px !important;
    white-space:nowrap !important;
}
.ap-htf-navigation-mitte{
    grid-area:mitte !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:10px !important;
    flex-wrap:nowrap !important;
    width:100% !important;
    min-width:0 !important;
    overflow:visible !important;
}
.ap-htf-navigation-mitte > label{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    margin:0 !important;
    white-space:nowrap !important;
}
.ap-htf-navigation [data-htf-filter]{
    min-width:108px !important;
}
.ap-htf-navigation [data-htf-sid]{
    width:7rem !important;
    min-width:7rem !important;
    text-align:center !important;
}
.ap-htf-laufzeit{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:10px !important;
    margin:0 0 0 auto !important;
    white-space:nowrap !important;
    flex:0 0 auto !important;
}
.ap-htf-laufzeit label{
    margin:0 !important;
    font-weight:900 !important;
    white-space:nowrap !important;
}
.ap-htf-laufzeit select{
    min-width:190px !important;
}
.ap-htf-laufzeit .ap-button{
    min-width:118px !important;
}
.ap-htf-navigation-rechts{
    grid-area:rechts !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
    width:100% !important;
}
.ap-htf-navigation-rechts .ap-htf-hammer{
    margin:0 !important;
}
@media(max-width:1500px){
    .ap-htf-navigation{
        grid-template-columns:1fr !important;
        grid-template-areas:
            "links"
            "mitte"
            "rechts" !important;
    }
    .ap-htf-navigation-links,
    .ap-htf-navigation-rechts,
    .ap-htf-navigation-mitte{
        justify-content:center !important;
    }
    .ap-htf-navigation-mitte{
        flex-wrap:wrap !important;
    }
    .ap-htf-laufzeit{
        margin-left:0 !important;
    }
}


/* Hammer to Fall – Steuerleiste als 3x2-Tabelle (Korrektur 111) */
.ap-htf-steuertabelle{
    width:100% !important;
    border-collapse:collapse !important;
    border-spacing:0 !important;
    table-layout:auto !important;
}
.ap-htf-steuertabelle td{
    border:0 !important;
    padding:8px 0 !important;
    vertical-align:middle !important;
}
.ap-htf-steuerzelle-links{
    width:1% !important;
    white-space:nowrap !important;
    text-align:left !important;
}
.ap-htf-steuerzelle-mitte{
    text-align:center !important;
}
.ap-htf-steuerzelle-rechts{
    width:1% !important;
    white-space:nowrap !important;
    text-align:right !important;
}
.ap-htf-navigation-links,
.ap-htf-navigation-mitte,
.ap-htf-navigation-rechts,
.ap-htf-navigation-speichern,
.ap-htf-laufzeit{
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
}
.ap-htf-navigation-links{
    justify-content:flex-start !important;
}
.ap-htf-navigation-mitte{
    justify-content:center !important;
    flex-wrap:nowrap !important;
}
.ap-htf-navigation-rechts{
    justify-content:flex-start !important;
}
.ap-htf-navigation-speichern,
.ap-htf-laufzeit{
    justify-content:flex-end !important;
}
.ap-htf-navigation-mitte label,
.ap-htf-laufzeit label{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    margin:0 !important;
    white-space:nowrap !important;
    font-weight:900 !important;
}
.ap-htf-navigation-mitte .ap-htf-nav-button{
    white-space:nowrap !important;
}
.ap-htf-steuertabelle .ap-button,
.ap-htf-steuertabelle .ap-htf-hammer,
.ap-htf-steuertabelle select,
.ap-htf-steuertabelle input{
    min-height:50px !important;
    height:50px !important;
    margin-top:0 !important;
}
.ap-htf-steuertabelle .ap-button{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:0 18px !important;
    font-size:17px !important;
    font-weight:900 !important;
}
.ap-htf-steuertabelle .ap-htf-start,
.ap-htf-steuertabelle .ap-htf-abbruch,
.ap-htf-steuertabelle .ap-htf-nav-button,
.ap-htf-steuertabelle [data-htf-select],
.ap-htf-steuertabelle [data-htf-countdown-speichern]{
    min-width:146px !important;
}
.ap-htf-steuertabelle select{
    padding:0 14px !important;
}
.ap-htf-steuertabelle [data-htf-filter]{
    min-width:112px !important;
}
.ap-htf-steuertabelle [data-htf-sid]{
    width:7rem !important;
    min-width:7rem !important;
    text-align:center !important;
}
.ap-htf-steuertabelle #ap-htf-countdown-sekunden{
    min-width:185px !important;
}
.ap-htf-steuertabelle .ap-htf-hammer{
    min-width:220px !important;
    justify-content:flex-start !important;
    padding:0 16px !important;
}
/* HAMMERTIME nutzt die vollständige Breite des Inhaltsbereichs. */
.ap-inhalt > .ap-htf{
    width:auto !important;
    max-width:none !important;
    margin-right:calc(0px - clamp(28px,8vw,128px)) !important;
    margin-left:calc(0px - clamp(28px,8vw,128px)) !important;
    border-right:0 !important;
    border-left:0 !important;
    border-radius:0 !important;
}

/* Ein verborgenes Interessenflag darf nicht durch Flex-Regeln eingeblendet werden. */
.ap-htf-steuertabelle [hidden]{
    display:none !important;
}

/* Interesse-verwerfen im 3x2-Layout: zweite Zeile, mittlere Spalte, zentriert. */
.ap-htf-steuerung{
    position:relative !important;
}
.ap-htf-interesse-verwerfen{
    min-width:190px !important;
}
.ap-htf-interesse-verwerfen:not([hidden]){
    position:absolute !important;
    left:50% !important;
    top:78px !important;
    transform:translateX(-50%) !important;
    z-index:2 !important;
}

@media(max-width:900px){
    .ap-inhalt > .ap-htf{
        margin-right:-26px !important;
        margin-left:-26px !important;
    }
}

@media(max-width:800px){
    .ap-inhalt > .ap-htf{
        margin-right:-14px !important;
        margin-left:-14px !important;
    }
}

@media(max-width:1500px){
    .ap-htf-steuertabelle,
    .ap-htf-steuertabelle tbody,
    .ap-htf-steuertabelle tr,
    .ap-htf-steuertabelle td{
        display:block !important;
        width:100% !important;
        text-align:center !important;
    }
    .ap-htf-navigation-links,
    .ap-htf-navigation-mitte,
    .ap-htf-navigation-rechts,
    .ap-htf-navigation-speichern,
    .ap-htf-laufzeit{
        justify-content:center !important;
        flex-wrap:wrap !important;
    }
}

/* Supercup – chronologisch von unten nach oben, vollständig seitenbezogen */
.ap-supercup{
    width:auto;
    max-width:none;
    margin-right:calc(-1 * clamp(28px,8vw,128px));
    margin-left:calc(-1 * clamp(28px,8vw,128px));
    border:1px solid var(--ap-altrot);
    background:#fff;
    color:#111;
    overflow:hidden;
}

.ap-supercup,
.ap-supercup *{
    box-sizing:border-box;
}

.ap-supercup-kopf{
    margin:0;
    padding:8px 12px;
    background:var(--ap-schwarz);
    color:var(--ap-kopfgelb);
    font-size:26px;
    font-weight:900;
    line-height:1.15;
    text-align:center;
}

.ap-supercup-intro{
    margin:0;
    padding:10px 14px;
    border-bottom:1px solid var(--ap-altrot);
    background:var(--ap-intro);
    color:#111;
    font-size:16px;
    line-height:1.3;
    text-align:center;
}

.ap-supercup > .ap-fehler{
    margin:10px 12px;
}

.ap-supercup-block{
    min-width:0;
    margin:14px 12px 0;
    border:1px solid #777;
    background:#fff;
    overflow:hidden;
}

.ap-supercup-block > h2{
    margin:0;
    padding:5px 10px;
    background:var(--ap-schwarz);
    color:var(--ap-kopfgelb);
    font-size:19px;
    font-weight:950;
    line-height:1.1;
    text-align:center;
    text-transform:uppercase;
}

.ap-supercup-zweispaltig{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:18px;
    margin:14px 12px 0;
}

.ap-supercup-zweispaltig .ap-supercup-block{
    margin:0;
}

.ap-supercup-spiele,
.ap-supercup-gruppenliste,
.ap-supercup-tabelle{
    width:100%;
    margin:0;
    border:0;
    border-collapse:collapse;
    border-spacing:0;
    background:#fff;
    color:#111;
}

.ap-supercup-spiele{
    table-layout:fixed;
    font-size:15px;
}

.ap-supercup-spiele td{
    padding:5px 8px;
    border-top:1px solid #b5b5b5;
    line-height:1.15;
    vertical-align:middle;
}

.ap-supercup-spiele tr:first-child td{
    border-top:0;
}

.ap-supercup-spiele tbody tr:nth-child(even) td{
    background:var(--ap-zebra);
}

.ap-supercup-spiele td:first-child,
.ap-supercup-spiele td:last-child{
    width:calc((100% - 118px) / 2);
}

.ap-supercup-spiele .ap-supercup-ergebnis{
    width:118px;
    border-right:1px solid #999;
    border-left:1px solid #999;
    font-weight:900;
    text-align:center;
    white-space:nowrap;
    font-variant-numeric:tabular-nums;
}

.ap-supercup-spiele .ap-supercup-siegerzelle{
    background:#dff0d8!important;
    font-weight:900;
}

.ap-supercup-spiele .ap-supercup-neuer-spieltag td{
    border-top:3px solid var(--ap-altrot);
}

.ap-supercup-siegerblock .ap-supercup-siegername{
    padding:23px 16px 25px;
    background:#fff;
    color:#e00000;
    font-size:27px;
    font-weight:950;
    line-height:1.15;
    text-align:center;
}

.ap-supercup-scroll{
    width:100%;
    overflow-x:auto;
}

.ap-supercup-tabelle{
    min-width:570px;
    table-layout:auto;
    font-size:14px;
}

.ap-supercup-tabelle th{
    padding:5px 6px;
    border-right:1px solid #aaa;
    border-bottom:1px solid #999;
    background:var(--ap-intro);
    color:#111;
    font-size:14px;
    font-weight:950;
    line-height:1.1;
    text-align:left;
    white-space:nowrap;
}

.ap-supercup-tabelle th:last-child{
    border-right:0;
}

.ap-supercup-tabelle td{
    padding:5px 6px;
    border-top:1px solid #c7c7c7;
    line-height:1.1;
    vertical-align:middle;
}

.ap-supercup-tabelle tbody tr:nth-child(even) td{
    background:var(--ap-zebra);
}

.ap-supercup-tabelle tbody tr.ap-supercup-qualifiziert td{
    background:#dff0d8;
}

.ap-supercup-zahl{
    text-align:right!important;
    white-space:nowrap;
    font-variant-numeric:tabular-nums;
}

.ap-supercup-punkte{
    font-weight:950;
}

.ap-supercup-gruppenliste{
    font-size:15px;
}

.ap-supercup-gruppenliste td{
    padding:5px 8px;
    border-top:1px solid #b5b5b5;
    line-height:1.15;
}

.ap-supercup-gruppenliste tr:first-child td{
    border-top:0;
}

.ap-supercup-gruppenliste tbody tr:nth-child(even) td{
    background:var(--ap-zebra);
}

.ap-supercup-gruppen{
    margin-bottom:12px;
}

@media(max-width:900px){
    .ap-supercup{
        margin-right:-26px;
        margin-left:-26px;
    }

    .ap-supercup-kopf{font-size:22px}
    .ap-supercup-intro{font-size:15px}
    .ap-supercup-zweispaltig{gap:10px}
    .ap-supercup-block > h2{font-size:17px}
    .ap-supercup-spiele{font-size:14px}
}

@media(max-width:800px){
    .ap-supercup{
        margin-right:-14px;
        margin-left:-14px;
    }

    .ap-supercup-zweispaltig{
        grid-template-columns:1fr;
    }

    .ap-supercup-spiele td:first-child,
    .ap-supercup-spiele td:last-child{
        width:auto;
    }

    .ap-supercup-spiele .ap-supercup-ergebnis{
        width:86px;
    }
}

@media(max-width:560px){
    .ap-supercup-spiele{font-size:12px}
    .ap-supercup-spiele td{padding:5px 4px}
    .ap-supercup-spiele .ap-supercup-ergebnis{width:68px}
    .ap-supercup-siegerblock .ap-supercup-siegername{font-size:22px}
}

/* Ehrentribüne – historische Titelträger */
.ap-ehrentribuene{
    width:auto;
    max-width:none;
    margin-right:calc(-1 * clamp(28px,8vw,128px));
    margin-left:calc(-1 * clamp(28px,8vw,128px));
    border:1px solid var(--ap-altrot);
    background:#fff;
    color:#111;
    overflow:hidden;
}

.ap-ehrentribuene,
.ap-ehrentribuene *{
    box-sizing:border-box;
}

.ap-ehrentribuene-kopf{
    margin:0;
    padding:8px 12px;
    background:var(--ap-schwarz);
    color:var(--ap-kopfgelb);
    font-size:26px;
    font-weight:900;
    line-height:1.15;
    text-align:center;
}

.ap-ehrentribuene-intro{
    margin:0;
    padding:9px 14px;
    border-bottom:1px solid var(--ap-altrot);
    background:var(--ap-intro);
    color:#111;
    font-size:16px;
    line-height:1.3;
    text-align:center;
}

.ap-ehrentribuene-umschalter{
    display:flex;
    align-items:stretch;
    justify-content:center;
    gap:0;
    width:100%;
    margin:0;
    padding:0;
    border-bottom:1px solid var(--ap-altrot);
    background:#f2f2f2;
}

.ap-ehrentribuene-umschalter a{
    display:flex;
    flex:1 1 0;
    align-items:center;
    justify-content:center;
    min-width:0;
    margin:0;
    padding:9px 7px;
    border:0;
    border-right:1px solid #aaa;
    border-radius:0;
    background:#e2e2e2;
    color:#111;
    font-size:14px;
    font-weight:900;
    line-height:1.1;
    text-align:center;
    text-decoration:none;
}

.ap-ehrentribuene-umschalter a:last-child{
    border-right:0;
}

.ap-ehrentribuene-umschalter a:hover,
.ap-ehrentribuene-umschalter a:focus{
    background:#d5d5d5;
    color:#111;
    text-decoration:none;
}

.ap-ehrentribuene-umschalter a.aktiv{
    background:var(--ap-altrot);
    color:#fff;
}

.ap-ehrentribuene > .ap-fehler,
.ap-ehrentribuene > .ap-hinweis{
    margin:10px;
}

.ap-ehrentribuene-scroll{
    width:100%;
    overflow-x:auto;
    background:#fff;
}

.ap-ehrentribuene-tabelle{
    width:100%;
    min-width:900px;
    margin:0;
    border:0;
    border-collapse:collapse;
    border-spacing:0;
    table-layout:fixed;
    background:#fff;
    color:#111;
}

.ap-ehrentribuene-tabelle th{
    padding:7px 12px;
    border:0;
    background:var(--ap-altrot);
    color:#fff;
    font-size:17px;
    font-weight:900;
    line-height:1.1;
    text-align:left;
    vertical-align:middle;
    white-space:nowrap;
}

.ap-ehrentribuene-tabelle td{
    height:98px;
    padding:4px 12px;
    border:0;
    color:#111;
    vertical-align:middle;
}

.ap-ehrentribuene-tabelle tbody tr:nth-child(odd) td{
    background:#f7f7f7;
}

.ap-ehrentribuene-tabelle tbody tr:nth-child(even) td{
    background:var(--ap-zebra);
}

.ap-ehrentribuene-tabelle tbody tr:hover td{
    background:#fff2c7;
}

.ap-ehrentribuene-tabelle th:nth-child(1),
.ap-ehrentribuene-tabelle td:nth-child(1){
    width:8%;
}

.ap-ehrentribuene-tabelle th:nth-child(2),
.ap-ehrentribuene-tabelle td:nth-child(2){
    width:8%;
}

.ap-ehrentribuene-tabelle th:nth-child(3),
.ap-ehrentribuene-tabelle td:nth-child(3){
    width:9%;
}

.ap-ehrentribuene-tabelle th:nth-child(4),
.ap-ehrentribuene-tabelle td:nth-child(4){
    width:31%;
}

.ap-ehrentribuene-tabelle th:nth-child(5),
.ap-ehrentribuene-tabelle td:nth-child(5){
    width:44%;
}

.ap-ehrentribuene-mit-punkten th:nth-child(1),
.ap-ehrentribuene-mit-punkten td:nth-child(1){
    width:8%;
}

.ap-ehrentribuene-mit-punkten th:nth-child(2),
.ap-ehrentribuene-mit-punkten td:nth-child(2){
    width:8%;
}

.ap-ehrentribuene-mit-punkten th:nth-child(3),
.ap-ehrentribuene-mit-punkten td:nth-child(3){
    width:9%;
}

.ap-ehrentribuene-mit-punkten th:nth-child(4),
.ap-ehrentribuene-mit-punkten td:nth-child(4){
    width:23%;
}

.ap-ehrentribuene-mit-punkten th:nth-child(5),
.ap-ehrentribuene-mit-punkten td:nth-child(5){
    width:39%;
}

.ap-ehrentribuene-mit-punkten th:nth-child(6),
.ap-ehrentribuene-mit-punkten td:nth-child(6){
    width:13%;
}

.ap-ehrentribuene-jahr{
    font-size:30px!important;
    font-weight:950!important;
    text-align:right!important;
    white-space:nowrap;
    font-variant-numeric:tabular-nums;
}

.ap-ehrentribuene-managername{
    font-size:23px;
    font-weight:900;
    line-height:1.15;
    text-align:left;
}

.ap-ehrentribuene-punkte{
    font-size:30px!important;
    font-weight:950!important;
    text-align:right!important;
    white-space:nowrap;
    font-variant-numeric:tabular-nums;
}

.ap-ehrentribuene-banner,
.ap-ehrentribuene-wappen,
.ap-ehrentribuene-manager{
    text-align:center;
}

.ap-ehrentribuene-banner img,
.ap-ehrentribuene-manager img{
    display:block;
    width:auto;
    max-width:100%;
    height:90px;
    margin:0 auto;
    object-fit:contain;
    object-position:center;
}

.ap-ehrentribuene-wappen img{
    display:block;
    width:auto;
    max-width:100%;
    height:82px;
    margin:0 auto;
    object-fit:contain;
    object-position:center;
}

@media(max-width:1100px){
    .ap-ehrentribuene-umschalter{
        flex-wrap:wrap;
    }

    .ap-ehrentribuene-umschalter a{
        flex:1 1 25%;
        min-width:180px;
    }
}

@media(max-width:900px){
    .ap-ehrentribuene{
        margin-right:-26px;
        margin-left:-26px;
    }

    .ap-ehrentribuene-kopf{font-size:22px}
    .ap-ehrentribuene-intro{font-size:15px}
    .ap-ehrentribuene-jahr,
    .ap-ehrentribuene-punkte{font-size:26px!important}
}

@media(max-width:800px){
    .ap-ehrentribuene{
        margin-right:-14px;
        margin-left:-14px;
    }
}

@media(max-width:620px){
    .ap-ehrentribuene-umschalter a{
        flex:1 1 50%;
        min-width:0;
        font-size:13px;
    }
}

/* Rumpelgurken – Punktewart-Testansicht, Formatione el Pirato 1-3-5-2 */
.ap-rumpelgurken{
    width:auto;
    max-width:none;
    margin-right:calc(-1 * clamp(28px,8vw,128px));
    margin-left:calc(-1 * clamp(28px,8vw,128px));
    border:1px solid var(--ap-altrot);
    background:#fff;
    color:#111;
    overflow:hidden;
}

.ap-rumpelgurken,
.ap-rumpelgurken *{box-sizing:border-box}

.ap-rumpel-kopf{
    margin:0;
    padding:10px 16px 12px;
    background:var(--ap-schwarz);
    color:var(--ap-kopfgelb);
    text-align:center;
}

.ap-rumpel-kopf h1{
    margin:0;
    color:inherit;
    font-size:30px;
    font-weight:950;
    line-height:1.1;
}

.ap-rumpel-kopf p{
    max-width:none;
    margin:10px -16px -12px;
    padding:10px 16px;
    border-top:1px solid var(--ap-altrot);
    background:var(--ap-intro);
    color:#111;
    font-size:16px;
    font-style:normal;
    line-height:1.35;
}

.ap-rumpel-spieltage{
    display:grid;
    grid-template-columns:repeat(17,minmax(32px,1fr));
    gap:4px;
    padding:8px 10px;
    border-bottom:1px solid var(--ap-altrot);
    background:#efefef;
}

.ap-rumpel-spieltage a{
    display:flex;
    min-height:30px;
    align-items:center;
    justify-content:center;
    border:1px solid #aaa;
    background:#fff;
    color:#111;
    font-size:13px;
    font-weight:900;
    line-height:1;
    text-decoration:none;
}

.ap-rumpel-spieltage a:hover,
.ap-rumpel-spieltage a:focus{
    border-color:var(--ap-altrot);
    color:var(--ap-altrot);
    text-decoration:none;
}

.ap-rumpel-spieltage a.aktiv{
    border-color:var(--ap-altrot);
    background:var(--ap-altrot);
    color:#fff;
}

.ap-rumpel-statuszeile{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px 18px;
    flex-wrap:wrap;
    min-height:44px;
    padding:7px 12px;
    border-bottom:1px solid var(--ap-altrot);
    background:var(--ap-intro);
    font-size:14px;
}

.ap-rumpel-kueren{margin:0}
.ap-rumpel-kueren .ap-mini-button{
    margin:0;
    background:var(--ap-altrot);
}

.ap-rumpel-leer{
    margin:0;
    padding:42px 18px;
    background:#fff;
    font-size:17px;
    font-style:italic;
    font-weight:800;
    text-align:center;
}

.ap-rumpel-platz{
    position:relative;
    display:grid;
    grid-template-rows:1fr 1fr 1fr 1fr;
    gap:18px;
    min-height:720px;
    padding:36px 48px;
    border:10px solid #244c2d;
    background:
        repeating-linear-gradient(
            90deg,
            #315c3b 0,
            #315c3b 8%,
            #386846 8%,
            #386846 16%
        );
    overflow:hidden;
}

.ap-rumpel-platz::before{
    content:"";
    position:absolute;
    inset:18px;
    border:3px solid rgba(255,255,255,.85);
    pointer-events:none;
}

.ap-rumpel-mittellinie{
    position:absolute;
    top:50%;
    right:18px;
    left:18px;
    height:3px;
    background:rgba(255,255,255,.85);
    transform:translateY(-50%);
    pointer-events:none;
}

.ap-rumpel-mittelkreis{
    position:absolute;
    top:50%;
    left:50%;
    width:150px;
    height:150px;
    border:3px solid rgba(255,255,255,.85);
    border-radius:50%;
    transform:translate(-50%,-50%);
    pointer-events:none;
}

.ap-rumpel-strafraum{
    position:absolute;
    left:50%;
    width:42%;
    height:105px;
    border:3px solid rgba(255,255,255,.85);
    transform:translateX(-50%);
    pointer-events:none;
}
.ap-rumpel-strafraum-oben{top:18px;border-top:0}
.ap-rumpel-strafraum-unten{bottom:18px;border-bottom:0}

.ap-rumpel-reihe{
    position:relative;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:space-evenly;
    gap:14px;
    min-width:0;
}

.ap-rumpel-sturm{grid-row:1}
.ap-rumpel-mittelfeld{grid-row:2}
.ap-rumpel-abwehr{grid-row:3}
.ap-rumpel-tor{grid-row:4}

.ap-rumpel-spieler{
    width:clamp(112px,13vw,170px);
    min-width:0;
    overflow:hidden;
    border:2px solid #111;
    background:#17191a;
    color:#fff;
    box-shadow:0 5px 12px rgba(0,0,0,.32);
    text-align:center;
}

.ap-rumpel-wappen{
    display:block;
    width:64px;
    height:64px;
    margin:7px auto 3px;
    object-fit:contain;
    object-position:center;
}

.ap-rumpel-name{
    min-height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:3px 6px;
    font-size:14px;
    font-weight:900;
    line-height:1.12;
}

.ap-rumpel-meta{
    display:grid;
    grid-template-columns:minmax(0,1fr) 42px;
    border-top:1px solid #555;
    background:#fff;
    color:#111;
    font-size:13px;
    font-weight:950;
}

.ap-rumpel-meta > span{padding:5px 4px}
.ap-rumpel-berufungen{
    border-left:1px solid #aaa;
    background:#e7e7e7;
}
.ap-rumpel-punkte.ap-rumpel-negativ{
    background:var(--ap-altrot);
    color:#fff;
}

.ap-rumpel-fuss{
    margin:0;
    padding:7px 12px;
    border-top:1px solid var(--ap-altrot);
    background:var(--ap-schwarz);
    color:var(--ap-kopfgelb);
    font-size:14px;
    font-weight:900;
    line-height:1.2;
    text-align:center;
}

@media(max-width:1200px){
    .ap-rumpel-spieltage{grid-template-columns:repeat(10,minmax(32px,1fr))}
    .ap-rumpel-platz{min-height:670px;padding-inline:28px}
    .ap-rumpel-reihe{gap:8px}
    .ap-rumpel-spieler{width:clamp(100px,14vw,145px)}
    .ap-rumpel-wappen{width:54px;height:54px}
    .ap-rumpel-name{font-size:12px}
}

@media(max-width:900px){
    .ap-rumpelgurken{
        margin-right:-26px;
        margin-left:-26px;
    }
    .ap-rumpel-kopf h1{font-size:25px}
    .ap-rumpel-kopf p{font-size:14px}
    .ap-rumpel-spieltage{grid-template-columns:repeat(8,minmax(32px,1fr))}
    .ap-rumpel-platz{min-width:850px}
    .ap-rumpelgurken{overflow-x:auto}
}

@media(max-width:800px){
    .ap-rumpelgurken{
        margin-right:-14px;
        margin-left:-14px;
    }
}
