/* ============================================================
   POLONIA BONN – mannschaften.css
   Spielerkarten-Seite (mn-* und tc-card-mn Klassen)
   ============================================================ */

[hidden] { display: none !important; }
:root { --red: #f10402; --max-w: 1200px; }

/* ── Hero ── */
.mn-hero {
    background: linear-gradient(135deg, #f10402 0%, #8f001b 100%);
    padding: 64px 0 48px;
    position: relative; overflow: hidden;
}
.mn-hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,.2), transparent 32%),
        linear-gradient(135deg, rgba(255,255,255,.14) 0%, transparent 62%);
    pointer-events: none;
}
.mn-hero-inner {
    max-width: var(--max-w); margin: 0 auto;
    padding: 0 clamp(16px,3vw,40px);
    position: relative; z-index: 1;
}
.mn-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: .8rem; color: rgba(255,255,255,.45); margin-bottom: 16px;
}
.mn-breadcrumb a { color: rgba(255,255,255,.45); text-decoration: none; }
.mn-breadcrumb a:hover { color: #fff; }
.mn-breadcrumb span { color: rgba(255,255,255,.7); }
.mn-hero h1 {
    font-family: 'Oswald', Arial Narrow, Arial, sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700;
    color: #fff; text-transform: uppercase; letter-spacing: 3px;
    line-height: 1; margin-bottom: 10px;
}
.mn-hero h1 .accent { color: #fff; }
.mn-hero p { color: rgba(255,255,255,.55); font-size: 1rem; font-family: 'Inter', sans-serif; }

/* ── Toggle ── */
.mn-toggle-wrap { display: flex; justify-content: center; padding: 36px 0 0; }
.mn-toggle {
    display: inline-flex; background: #fff; border: 1px solid #EEEEEE;
    border-radius: 12px; padding: 4px; gap: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.mn-toggle-btn {
    padding: 10px 28px; border-radius: 9px; border: none; background: transparent;
    font-family: 'Oswald', Arial Narrow, Arial, sans-serif;
    font-size: 1rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: #555; cursor: pointer; transition: all .2s;
    display: flex; align-items: center; gap: 8px;
}
.mn-toggle-btn.active { background: var(--red); color: #fff; box-shadow: 0 2px 10px rgba(241,4,2,.3); }
.mn-toggle-btn .cnt {
    font-size: .72rem; background: rgba(0,0,0,.07); color: #888;
    border-radius: 10px; padding: 1px 7px;
    font-family: 'Inter', sans-serif; font-weight: 600;
}
.mn-toggle-btn.active .cnt { background: rgba(255,255,255,.25); color: #fff; }

/* ── Section ── */
.mn-container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(16px,3vw,40px); }
.mn-section { padding: 40px 0 80px; }
.mn-team-header { text-align: center; margin-bottom: 40px; }
.mn-liga-badge {
    display: inline-block; background: #fff; border: 1px solid #EEEEEE;
    border-radius: 20px; padding: 6px 16px; font-size: .8rem; color: #555;
    margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.mn-team-title {
    font-family: 'Oswald', Arial Narrow, Arial, sans-serif;
    font-size: 1.8rem; font-weight: 700; color: #111;
    text-transform: uppercase; letter-spacing: 2px;
}
.mn-team-title span { color: var(--red); }

/* ── Position group ── */
.mn-group { margin-bottom: 48px; }
.mn-group-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 24px; padding-bottom: 10px;
    border-bottom: 1px solid #EEEEEE;
}
.mn-group-icon {
    width: 34px; height: 34px; background: var(--red); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
}
.mn-group-title {
    font-family: 'Oswald', Arial Narrow, Arial, sans-serif;
    font-size: 1.1rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; color: #111;
}
.mn-group-count { font-size: .8rem; color: #888; margin-left: 4px; }

/* ── Player cards (tc-*-mn) ── */
.tc-grid-mn {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(0, 268px));
    justify-content: start; gap: 28px; padding-top: 4px;
}
.tc-wrap-mn { position: relative; width: 100%; max-width: 268px; }
.tc-photo-wrap {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
    background-image: linear-gradient(180deg, #f10402 0%, #8f001b 78%);
    background-size: cover; background-position: center top; background-repeat: no-repeat;
    z-index: 1; display: flex; align-items: flex-end; justify-content: center;
}
.tc-photo-wrap svg { display: none; }
.tc-photo-mn {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top; display: block;
}
.tc-card-mn {
    width: 100%; max-width: 268px; height: 367px;
    background: linear-gradient(180deg, #f10402 0%, #740015 100%);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px; border-bottom: 4px solid #fff;
    padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px;
    position: relative; overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,.22);
    transition: transform .3s cubic-bezier(0.34,1.56,0.64,1), box-shadow .3s cubic-bezier(0.34,1.56,0.64,1);
}
.tc-card-mn.trainer-card {
    background: radial-gradient(circle at 50% 34%, rgba(255,255,255,.12), transparent 36%),
        linear-gradient(180deg, #1a1a1a 0%, #111 100%);
    border-bottom: 4px solid #D4AF37; border-color: rgba(212,175,55,.3);
}
.tc-card-mn::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
    background: linear-gradient(180deg, transparent 0%, transparent 58%, rgba(0,0,0,.82) 100%);
}
.tc-card-mn:hover {
    transform: translateY(-12px);
    box-shadow: 0 18px 42px rgba(116,0,21,.32), 0 8px 26px rgba(241,4,2,.24);
}
.tc-card-mn.trainer-card:hover {
    box-shadow: 0 18px 42px rgba(0,0,0,.4), 0 8px 26px rgba(212,175,55,.3);
}
.tc-badge-row-mn {
    display: flex; justify-content: space-between; align-items: flex-start;
    position: relative; z-index: 3;
}
.tc-trikot-badge {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Oswald', sans-serif; font-size: .9rem; font-weight: 700;
    background: rgba(255,255,255,.14); color: #fff;
    border: 1px solid rgba(255,255,255,.32); box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.tc-trikot-badge.has-nr { background: rgba(255,255,255,.2); }
.tc-jersey-mn {
    position: absolute; left: 50%; top: 44%; transform: translate(-50%,-50%);
    width: 86px; height: 86px; border-radius: 50%;
    background: rgba(255,255,255,.12); color: rgba(255,255,255,.92); z-index: 4;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Oswald', sans-serif; font-size: 24px; font-weight: 700;
    border: 1px solid rgba(255,255,255,.22); box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.tc-trainer-label {
    font-family: 'Oswald', sans-serif; font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    background: #D4AF37; color: #111; padding: 2px 8px; border-radius: 4px;
    z-index: 3; position: relative;
}
.tc-flag-mn {
    width: 32px; height: 32px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.92); box-shadow: 0 4px 12px rgba(0,0,0,.28);
    overflow: hidden; flex-shrink: 0;
}
.tc-flag-mn .fi {
    display: block; width: 100%; height: 100%;
    background-size: cover; background-position: center;
}
.tc-info-mn {
    text-align: center; margin-top: auto; position: relative; z-index: 3;
    padding: 10px 18px 8px; min-height: 104px; width: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.tc-firstname-mn {
    display: block; font-family: 'Inter', sans-serif; font-size: 14px;
    font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: .02em;
    line-height: 1.2; font-style: italic; text-shadow: 0 3px 12px rgba(0,0,0,.35);
    overflow-wrap: break-word; word-break: break-word; max-width: 100%; padding: 0 6px;
}
.tc-lastname-mn {
    display: block; font-family: 'Oswald', sans-serif; font-size: 25px;
    font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .01em;
    line-height: .95; font-style: italic; text-shadow: 0 4px 14px rgba(0,0,0,.42);
    overflow-wrap: break-word; word-break: break-word; max-width: 100%; padding: 0 8px 2px;
}
.tc-underline-mn {
    width: 42px; height: 4px; background: #fff; border-radius: 4px;
    margin: 10px auto 0; box-shadow: 0 0 14px rgba(255,255,255,.48);
}
.trainer-card .tc-underline-mn { background: #D4AF37; box-shadow: 0 0 12px rgba(212,175,55,.5); }
.mn-empty { text-align: center; padding: 60px 20px; color: #888; }
.mn-empty svg { opacity: .2; margin-bottom: 14px; }

@media (max-width: 768px) {
    .tc-grid-mn { grid-template-columns: repeat(auto-fill, minmax(0, 200px)); gap: 18px; }
    .tc-card-mn { height: 290px; }
    .tc-firstname-mn { font-size: 12px; }
    .tc-lastname-mn { font-size: 21px; }
    .mn-hero { padding: 48px 0 32px; }
    .mn-toggle-btn { padding: 9px 18px; }
}
@media (max-width: 480px) {
    .tc-grid-mn { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
    .tc-card-mn { height: 250px; max-width: none; }
    .tc-wrap-mn { max-width: none; min-width: 0; }
    .tc-info-mn { padding-left: 8px; padding-right: 8px; }
    .tc-firstname-mn { font-size: 10px; }
    .tc-lastname-mn { font-size: clamp(15px, 5vw, 18px); }
}
