.sco-team-single .content-container,
.sco-team-single .site-container,
.sco-team-single .entry-content-wrap {
    max-width: 1240px;
}

.sco-team-single .content-area {
    width: 100%;
}

.sco-team-page {
    --sco-green: #00843d;
    --sco-green-dark: #006d32;
    --sco-dark: #111827;
    --sco-muted: #5b6573;
    --sco-border: #e4e8ec;
    --sco-surface: #f6f8f7;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.sco-team-photo {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2.5rem;
}

.sco-team-photo__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 680px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(17, 24, 39, 0.10);
}

.sco-team-photo--placeholder {
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    background: var(--sco-surface);
    border: 1px dashed #c8ced6;
    border-radius: 14px;
    color: var(--sco-muted);
    font-weight: 600;
}

.sco-team-section {
    margin: 0 0 3.5rem;
}

.sco-team-section > h2 {
    margin-bottom: 1.35rem;
    padding-bottom: .55rem;
    border-bottom: 3px solid var(--sco-green);
}

.sco-team-richtext {
    max-width: 920px;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.75;
}

.sco-team-person-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
}

.sco-team-person-card {
    overflow: hidden;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--sco-border);
    border-radius: 14px;
    box-shadow: 0 9px 28px rgba(17, 24, 39, 0.07);
}

.sco-team-person-card__photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    background: var(--sco-surface);
}

.sco-team-person-card__placeholder {
    display: grid;
    place-items: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--sco-green);
}

.sco-team-person-card__body {
    padding: 1.15rem 1.2rem 1.3rem;
}

.sco-team-person-card__role {
    margin: 0 0 .35rem;
    color: var(--sco-green);
    font-size: .76rem;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.sco-team-person-card__name {
    margin: 0 0 .8rem;
    font-size: 1.24rem;
    line-height: 1.25;
}

.sco-team-person-card__bio {
    color: var(--sco-muted);
    font-size: .95rem;
}

.sco-team-person-card__contact {
    display: grid;
    gap: .55rem;
    margin-top: 1rem;
}

.sco-team-contact-link {
    display: flex;
    gap: .5rem;
    align-items: flex-start;
    color: var(--sco-green-dark);
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.sco-team-contact-link:hover {
    text-decoration: underline;
}

.sco-training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.4rem;
}

.sco-training-card {
    padding: 1.5rem;
    background: linear-gradient(180deg, #f8faf9 0%, #f2f6f3 100%);
    border: 1px solid var(--sco-border);
    border-top: 5px solid var(--sco-green);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.sco-training-card__heading {
    display: flex;
    gap: .75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.sco-training-card__heading h3 {
    margin: 0;
}

.sco-training-card__icon {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #fff;
    font-size: 1.2rem;
}

.sco-training-card__location {
    margin-bottom: .25rem;
    font-size: 1.05rem;
}

.sco-training-card__address {
    margin-top: 0;
    color: var(--sco-muted);
}

.sco-training-card__type,
.sco-training-card__hint {
    color: var(--sco-muted);
    font-size: .92rem;
}

.sco-training-card__times {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sco-border);
}

.sco-training-card__times-label {
    margin: 0 0 .45rem;
    color: var(--sco-green-dark);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.sco-training-card__times p {
    margin-bottom: .35rem;
    font-weight: 650;
}

.sco-button {
    display: inline-block;
    padding: .68rem .95rem;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 700;
}

.sco-button--secondary {
    color: #fff;
    background: var(--sco-green);
}

.sco-button--secondary:hover {
    color: #fff;
    background: var(--sco-green-dark);
}

.sco-team-admin-note {
    padding: 1rem;
    border: 1px dashed #c98b00;
    background: #fff8e6;
    color: #594100;
}

@media (max-width: 1024px) {
    .sco-team-photo {
        width: 90%;
    }
}

@media (max-width: 640px) {
    .sco-team-photo {
        width: 100%;
    }

    .sco-team-single .entry-content-wrap {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .sco-team-person-grid,
    .sco-training-grid {
        grid-template-columns: 1fr;
    }
}

/* Automatische Mannschaftsübersichten */
.sco-team-overview {
    --sco-green: #00843d;
    --sco-green-dark: #006d32;
    --sco-muted: #5b6573;
    --sco-border: #e4e8ec;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.sco-team-overview__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.sco-team-overview-card {
    overflow: hidden;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--sco-border);
    border-radius: 14px;
    box-shadow: 0 9px 28px rgba(17, 24, 39, 0.07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.sco-team-overview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.11);
}

.sco-team-overview-card__image-link,
.sco-team-overview-card__image {
    display: block;
    width: 100%;
}

.sco-team-overview-card__image {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.sco-team-overview-card__placeholder {
    display: grid;
    aspect-ratio: 16 / 10;
    place-items: center;
    background: linear-gradient(135deg, #eef4f0 0%, #dfeae3 100%);
    color: var(--sco-green);
    font-size: 3.2rem;
    text-decoration: none;
}

.sco-team-overview-card__body {
    padding: 1.25rem;
}

.sco-team-overview-card__body h3 {
    margin: 0 0 .75rem;
    font-size: 1.35rem;
}

.sco-team-overview-card__body h3 a {
    color: inherit;
    text-decoration: none;
}

.sco-team-overview-card__body p {
    color: var(--sco-muted);
}

.sco-team-overview-card__action {
    margin-top: 1rem;
    margin-bottom: 0;
}

.sco-team-overview-empty {
    padding: 1.2rem;
    background: #f6f8f7;
    border-left: 4px solid #00843d;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .sco-team-overview__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sco-team-overview__grid {
        grid-template-columns: 1fr;
    }
}


/* Version 1.2.1: robuste Kartenansicht auf den Bereichsseiten */
.sco-team-overview .sco-team-overview__grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.75rem !important;
    align-items: stretch;
}

.sco-team-overview .sco-team-overview-card {
    display: flex !important;
    flex-direction: column;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 1px solid #dfe5e1 !important;
    border-top: 5px solid #00843d !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.10) !important;
}

.sco-team-overview .sco-team-overview-card__image-link {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    text-decoration: none !important;
}

.sco-team-overview .sco-team-overview-card__image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    object-fit: cover !important;
    margin: 0 !important;
}

.sco-team-overview .sco-team-overview-card__placeholder {
    display: grid !important;
    width: 100% !important;
    min-height: 220px !important;
    aspect-ratio: 16 / 10 !important;
    place-items: center !important;
    background:
        radial-gradient(circle at center, rgba(0,132,61,.14) 0 22%, transparent 23%),
        linear-gradient(135deg, #eef6f1 0%, #dcebe2 100%) !important;
    color: #00843d !important;
    font-size: 4rem !important;
}

.sco-team-overview .sco-team-overview-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1.3rem !important;
}

.sco-team-overview .sco-team-overview-card__body h3 {
    margin: 0 0 .7rem !important;
}

.sco-team-overview .sco-team-overview-card__action {
    margin-top: auto !important;
    padding-top: .75rem;
}

@media (max-width: 900px) {
    .sco-team-overview .sco-team-overview__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .sco-team-overview .sco-team-overview__grid {
        grid-template-columns: 1fr !important;
    }
}


/* Version 1.2.2 – Übersicht auf normalen WordPress-Seiten */
.sco-team-overview {
    clear: both;
    padding: .25rem 0 1rem;
}

.sco-team-overview .sco-team-overview__grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.75rem !important;
}

.sco-team-overview .sco-team-overview-card {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid #dce3df !important;
    border-top: 5px solid #00843d !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 28px rgba(17, 24, 39, .10) !important;
}

.sco-team-overview .sco-team-overview-card__placeholder {
    display: grid !important;
    width: 100% !important;
    min-height: 230px !important;
    aspect-ratio: 16 / 10 !important;
    place-items: center !important;
    background: linear-gradient(135deg, #e7f2eb 0%, #cfe4d6 100%) !important;
    color: #00843d !important;
    font-size: 4rem !important;
    text-decoration: none !important;
}

.sco-team-overview .sco-team-overview-card__body {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    padding: 1.3rem !important;
}

.sco-team-overview .sco-team-overview-card__action {
    margin-top: auto !important;
    padding-top: .8rem !important;
}

@media (max-width: 900px) {
    .sco-team-overview .sco-team-overview__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .sco-team-overview .sco-team-overview__grid {
        grid-template-columns: 1fr !important;
    }
}


/* Version 1.3.0 – FUSSBALL.DE-Widgets */
.sco-team-widget {
    min-width: 0;
}

.sco-fussballde-widget-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border: 1px solid #dce3df;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(17, 24, 39, .08);
}

.sco-fussballde-widget-wrap .fussballde_widget {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
}

.sco-fussballde-widget-wrap iframe {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    border: 0;
}

@media (max-width: 640px) {
    .sco-fussballde-widget-wrap {
        border-radius: 10px;
    }
}


/* Version 1.3.1 – kollisionsfreie Trainer- und Ansprechpartnerkarten */
.sco-team-page .sco-team-person-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 1.4rem !important;
    width: 100% !important;
    min-width: 0 !important;
}

.sco-team-page .sco-team-person-card {
    position: relative !important;
    display: flex !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.sco-team-page .sco-team-person-card__photo {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 5 !important;
    object-fit: cover !important;
    object-position: center top !important;
}

.sco-team-page .sco-team-person-card__placeholder {
    position: static !important;
    inset: auto !important;
    display: grid !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
    place-items: center !important;
    background: linear-gradient(145deg, #f4f8f5, #dcecdf) !important;
    color: #00843d !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
}

.sco-team-page .sco-team-person-card__body {
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 1.15rem 1.2rem 1.3rem !important;
}

.sco-team-page .sco-team-person-card__role,
.sco-team-page .sco-team-person-card__name,
.sco-team-page .sco-team-person-card__bio,
.sco-team-page .sco-team-person-card__contact,
.sco-team-page .sco-team-contact-link {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: normal !important;
    word-break: normal !important;
}

.sco-team-page .sco-team-contact-link {
    overflow-wrap: anywhere !important;
}

@media (max-width: 640px) {
    .sco-team-page .sco-team-person-grid {
        grid-template-columns: 1fr !important;
    }
}


/* Version 1.3.2 – datenschutzkonforme FUSSBALL.DE-Einbindung */
.sco-fussballde-consent {
    width: 100%;
    min-width: 0;
}

.sco-fussballde-consent [hidden] {
    display: none !important;
}

.sco-fussballde-consent__placeholder {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.1rem;
    align-items: center;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(145deg, #f7faf8, #e8f2eb);
    border: 1px solid #d8e4dc;
    border-top: 4px solid #00843d;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(17, 24, 39, .08);
}

.sco-fussballde-consent__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    flex: 0 0 auto;
    background: #00843d;
    border-radius: 50%;
    color: #fff;
    font-size: 1.8rem;
}

.sco-fussballde-consent__content {
    min-width: 0;
}

.sco-fussballde-consent__content h3 {
    margin: 0 0 .45rem;
    font-size: 1.2rem;
}

.sco-fussballde-consent__content p {
    margin: 0 0 .8rem;
}

.sco-fussballde-consent__status:empty {
    display: none;
}

.sco-fussballde-consent__status {
    color: #5a3d00;
    font-weight: 600;
}

.sco-fussballde-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1rem;
    align-items: center;
}

.sco-fussballde-consent__button {
    appearance: none;
    cursor: pointer;
    border: 0;
}

.sco-fussballde-consent__privacy {
    color: #006b34;
    font-weight: 600;
}

.sco-fussballde-consent__privacy:hover,
.sco-fussballde-consent__privacy:focus {
    color: #004d25;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .sco-fussballde-consent__placeholder {
        grid-template-columns: 1fr;
        padding: 1.2rem;
        text-align: center;
    }

    .sco-fussballde-consent__icon {
        margin: 0 auto;
    }

    .sco-fussballde-consent__actions {
        justify-content: center;
    }
}
