: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-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-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{
    width:100%;
    margin:0 0 14px;
    padding:14px 18px;
    border:1px solid #202020;
    border-radius:6px;
    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;
    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}
    .ap-meister-jahre{white-space:normal}
}

@media(max-width:620px){
    .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-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-marktwert{margin-top:6px;font-size:16px}
.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:minmax(250px,1fr) auto minmax(210px,1fr);
    align-items:center;
    gap:12px;
    margin-bottom:12px;
}
.ap-htf-navigation-links{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
}
.ap-htf-navigation-mitte{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    flex-wrap:wrap;
}
.ap-htf-navigation-rechts{
    display:flex;
    align-items:center;
    justify-content:flex-end;
}
.ap-htf-navigation .ap-button,
.ap-htf-navigation .ap-htf-hammer{
    margin-top:0;
}
.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:1180px){
    .ap-htf-navigation{
        grid-template-columns:1fr;
    }
    .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-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%;
    }
}
