/* Ausgelagert aus: team.php – CSS-Variablen-kompatibel */

.tp-topbar { height: 5px; background: var(--red); }
.tp-hero { background: var(--bg-section); }
.tp-hero__inner {
    max-width: 1160px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; min-height: 320px;
}
@media (max-width: 800px) {
    .tp-hero__inner { grid-template-columns: 1fr; }
    .tp-hero__img-col { min-height: 220px; }
}
.tp-hero__left {
    padding: 44px 36px; display: flex; flex-direction: column;
    justify-content: center; gap: 14px;
}
.tp-hero__back {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-muted); font-size: .82em;
    text-decoration: none; transition: color .2s; align-self: flex-start;
}
.tp-hero__back:hover { color: var(--text-main); }
.tp-hero__badge {
    display: inline-block; background: var(--red); color: #fff;
    font-size: .68em; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; padding: 4px 14px; border-radius: 4px; align-self: flex-start;
}
.tp-hero__title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2em, 4vw, 3em); color: var(--text-main); margin: 0; line-height: 1.05;
}
.tp-hero__meta {
    display: flex; flex-wrap: wrap; gap: 14px;
    font-size: .85em; color: var(--text-muted);
}
.tp-hero__meta span { display: flex; align-items: center; gap: 5px; }
.tp-hero__img-col { position: relative; overflow: hidden; background: var(--bg-page); }
.tp-hero__img {
    width: 100%; height: 100%; object-fit: contain;
    object-position: center; display: block; background: var(--bg-page);
}
.tp-hero__img-placeholder {
    width: 100%; height: 100%; min-height: 320px;
    display: flex; align-items: center; justify-content: center;
    font-size: 5em; color: var(--text-muted); background: var(--bg-page);
}

.tp-wrap {
    max-width: 1160px; margin: 0 auto;
    padding: 32px 24px 60px;
    display: grid; grid-template-columns: 1fr 290px; gap: 28px; align-items: start;
}
@media (max-width: 860px) {
    .tp-wrap { grid-template-columns: 1fr; }
    .tp-sidebar { order: -1; }
}

.tp-sh { display: flex; align-items: center; gap: 10px; margin: 28px 0 16px; }
.tp-sh:first-child { margin-top: 0; }
.tp-sh__label {
    font-family: 'Oswald', sans-serif; font-size: 1em; font-weight: 600;
    color: var(--text-main); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
}
.tp-sh__line { flex: 1; height: 2px; background: var(--border-col); border-radius: 2px; }

.tp-desc {
    background: var(--bg-card); border-radius: 12px; padding: 20px 24px;
    color: var(--text-main); line-height: 1.8; font-size: .97em;
    box-shadow: 0 1px 8px rgba(0,0,0,.3); border-top: 4px solid var(--red);
}

.tp-vol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.tp-vol-card {
    background: var(--bg-card); border-radius: 12px; overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,.3); display: flex; flex-direction: column;
    border-top: 4px solid var(--red); transition: transform .2s, box-shadow .2s;
}
.tp-vol-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.tp-vol-card__photo {
    width: 100%; aspect-ratio: 3/4; object-fit: cover;
    object-position: top center; display: block; background: var(--bg-section);
}
.tp-vol-card__avatar {
    width: 100%; aspect-ratio: 3/4; background: var(--bg-section);
    display: flex; align-items: center; justify-content: center;
}
.tp-vol-card__avatar svg { width: 52%; height: 52%; fill: var(--border-col); }
.tp-vol-card__body { padding: 12px 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.tp-vol-card__role {
    font-size: .62em; font-weight: 700; color: var(--red);
    text-transform: uppercase; letter-spacing: .1em; background: rgba(204,0,0,.15);
    display: inline-block; padding: 2px 8px; border-radius: 3px;
    align-self: flex-start; margin-bottom: 2px;
}
.tp-vol-card__name { font-size: .9em; font-weight: 700; color: var(--text-main); line-height: 1.3; }
.tp-vol-card__qualifikation {
    font-size: .75em; color: var(--text-muted); font-style: italic;
    display: flex; align-items: center; gap: 4px; margin-top: 2px;
}
.tp-vol-card__phone { margin-top: 5px; font-size: .78em; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.tp-vol-card__phone a { color: var(--red); text-decoration: none; font-weight: 600; }
.tp-vol-card__phone a:hover { text-decoration: underline; }

.tp-training-table { width: 100%; border-collapse: collapse; }
.tp-training-table thead th {
    background: var(--bg-section); color: var(--text-muted); font-size: .7em;
    text-transform: uppercase; letter-spacing: .1em;
    padding: 9px 14px; text-align: left; border-bottom: 2px solid var(--border-col);
}
.tp-training-table tbody tr { border-bottom: 1px solid var(--border-col); }
.tp-training-table tbody td { padding: 10px 14px; font-size: .9em; color: var(--text-main); vertical-align: middle; }
.tp-training-table .td-tag { font-weight: 700; color: var(--text-main); }
.tp-training-table .td-time { font-family: 'Oswald', sans-serif; color: var(--red); white-space: nowrap; }
.tp-training-table .td-bereich {
    font-size: .78em; background: var(--bg-section); color: var(--text-muted);
    padding: 2px 9px; border-radius: 20px; display: inline-block;
}
@media (max-width: 600px) {
    .tp-training-table thead { display: none; }
    .tp-training-table, .tp-training-table tbody,
    .tp-training-table tr, .tp-training-table td { display: block; width: 100%; }
    .tp-training-table tbody tr {
        background: var(--bg-card); border-radius: 10px; margin-bottom: 10px;
        border: 1px solid var(--border-col); padding: 10px 14px;
    }
    .tp-training-table tbody td { padding: 3px 0; border: none; }
}

.tp-news-list { display: flex; flex-direction: column; gap: 12px; }
.tp-news-item {
    display: flex; align-items: center; gap: 16px;
    background: var(--bg-card); border-radius: 12px; overflow: hidden;
    text-decoration: none; color: inherit;
    border: 1px solid var(--border-col); border-left: 4px solid var(--red);
    transition: border-color .2s, box-shadow .2s, transform .2s;
    padding-right: 16px;
}
.tp-news-item:hover {
    border-color: var(--red); box-shadow: 0 4px 16px rgba(204,0,0,.15);
    transform: translateX(3px);
}
.tp-news-item__img {
    width: 90px; height: 70px; object-fit: cover;
    flex-shrink: 0; display: block; background: var(--bg-section);
}
.tp-news-item__img-placeholder {
    width: 90px; height: 70px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8em; background: var(--bg-section); color: var(--text-muted);
}
.tp-news-item__body { flex: 1; padding: 10px 0; min-width: 0; }
.tp-news-item__date { font-size: .72em; color: var(--text-muted); display: block; margin-bottom: 3px; }
.tp-news-item__title {
    font-size: .92em; font-weight: 700; color: var(--text-main);
    line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tp-news-item__teaser {
    font-size: .78em; color: var(--text-muted); margin-top: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tp-news-item__arrow { color: var(--red); font-size: 1.1em; font-weight: 700; flex-shrink: 0; }
@media (max-width: 500px) {
    .tp-news-item__img,
    .tp-news-item__img-placeholder { width: 70px; height: 56px; }
}

.tp-sidebar { display: flex; flex-direction: column; gap: 18px; }

.tp-sponsor-card {
    background: var(--bg-card); border-radius: 12px; overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.tp-sponsor-card__head {
    background: var(--red); color: #fff; font-family: 'Oswald', sans-serif;
    font-size: .88em; font-weight: 600; letter-spacing: .1em;
    text-transform: uppercase; padding: 11px 18px;
    display: flex; align-items: center; gap: 8px;
}
.tp-sponsor-card__body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }

/* Sponsor-Item: Logo füllt den gesamten Kasten */
.tp-sponsor-item {
    display: block;
    border: 1px solid var(--border-col); border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
    text-decoration: none; background: var(--bg-section);
}
.tp-sponsor-item:hover { border-color: var(--red); box-shadow: 0 2px 10px rgba(204,0,0,.15); }
.tp-sponsor-item--nolink { cursor: default; }
.tp-sponsor-item--nolink:hover { border-color: var(--border-col); box-shadow: none; }

/* Logo: volle Breite, festes Seitenverhältnis, contain damit nichts abgeschnitten wird */
.tp-sponsor-logo {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: contain;
    background: var(--bg-section);
    padding: 10px;
    box-sizing: border-box;
}

.tp-fussball-btn {
    display: flex; align-items: center; gap: 14px;
    background: #1d4ed8; color: #fff; text-decoration: none;
    padding: 16px 18px; border-radius: 12px; font-weight: 700; font-size: .88em;
    transition: background .2s; box-shadow: 0 2px 12px rgba(29,78,216,.25);
}
.tp-fussball-btn:hover { background: #1e40af; }
.tp-fussball-btn__icon { font-size: 1.5em; flex-shrink: 0; }
.tp-fussball-btn__text { flex: 1; }
.tp-fussball-btn__text strong { display: block; }
.tp-fussball-btn__text span { font-size: .8em; opacity: .8; font-weight: 400; }

.tp-empty {
    text-align: center; padding: 30px 20px; color: var(--text-muted); font-size: .9em;
    background: var(--bg-card); border-radius: 12px; border: 2px dashed var(--border-col);
}

.tp-widget-divider { height: 5px; background: linear-gradient(90deg, var(--red), var(--bg-page)); }
.tp-widget-section { max-width: 1160px; margin: 0 auto; padding: 32px 24px 60px; }
.tp-widget-section-title {
    font-family: 'Oswald', sans-serif; font-size: 1.1em; font-weight: 600;
    color: var(--text-main); text-transform: uppercase; letter-spacing: .08em;
    margin: 0 0 20px; display: flex; align-items: center; gap: 10px;
}
.tp-widget-section-title::after { content: ''; flex: 1; height: 2px; background: var(--border-col); border-radius: 2px; }
.tp-widgets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .tp-widgets-grid { grid-template-columns: 1fr; } }
.tp-widget-card { background: var(--bg-card); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 8px rgba(0,0,0,.3); }
.tp-widget-card__head {
    background: var(--red); color: #fff; font-family: 'Oswald', sans-serif;
    font-size: .85em; font-weight: 600; letter-spacing: .1em;
    text-transform: uppercase; padding: 11px 18px;
    display: flex; align-items: center; gap: 8px;
}
.tp-widget-card__head.dark { background: var(--bg-section); }
.tp-widget-card__body { padding: 16px; overflow-x: auto; }
.tp-widget-wrap { width: 100%; min-height: 80px; }
.tp-widget-wrap iframe { width: 100% !important; border: none; }

@media (max-width: 600px) {
    .tp-vol-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .tp-hero__left { padding: 28px 20px; }
    .tp-widget-section { padding: 24px 16px 40px; }
}
@media (max-width: 360px) { .tp-vol-grid { grid-template-columns: 1fr; } }
