/*-------------------------------------------------------+
| Teamliste Infusion – Bootstrap Theme
| Author: KrazzFM Development
| Design: Standard Bootstrap – hell, neutral
+--------------------------------------------------------+
| Verwendung: teamliste-bootstrap.css statt teamliste.css
| laden in teamliste.php und member.php
+--------------------------------------------------------*/

/* ── Abschnittstitel (Positionen) ───────────────────── */
.tl-section-title {
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 36px 0 20px;
    padding: 10px 16px;
    background: #f8f9fa;
    border-left: 4px solid #0d6efd;
    border-radius: 0 4px 4px 0;
    color: #0d6efd;
}
.tl-section-title:first-child {
    margin-top: 8px;
}

/* ── Grid ───────────────────────────────────────────── */
.tl-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 8px;
}

/* ── Flip-Card Wrapper ──────────────────────────────── */
.tl-card {
    width: calc(25% - 14px);
    aspect-ratio: 3 / 4;
    box-sizing: border-box;
    perspective: 1000px;
    cursor: default;
}

/* ── Innere Flip-Einheit ────────────────────────────── */
.tl-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}
.tl-card:hover .tl-card-inner {
    transform: rotateY(180deg);
}

/* ── Gemeinsame Stile Vorder- & Rückseite ───────────── */
.tl-front,
.tl-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 6px;
    overflow: hidden;
    box-sizing: border-box;
}

/* ════════════════════════════════════════════════════ */
/* VORDERSEITE                                         */
/* ════════════════════════════════════════════════════ */
.tl-front {
    background: #fff;
    border: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.tl-card:hover .tl-front {
    pointer-events: none;
}

/* Avatar füllt den oberen Bereich komplett */
.tl-front-avatar {
    width: 100%;
    flex: 1 1 auto;
    object-fit: cover;
    object-position: center top;
    display: block;
    min-height: 0;
}

/* Namensleiste unten */
.tl-front-footer {
    flex: 0 0 auto;
    background: #f8f9fa;
    border-top: 3px solid #0d6efd;
    padding: 10px 12px;
    text-align: center;
}
.tl-front-name {
    font-size: 1em;
    font-weight: 700;
    color: #212529;
    margin: 0;
    word-break: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tl-front-position {
    font-size: .75em;
    color: #0d6efd;
    margin: 3px 0 0;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ════════════════════════════════════════════════════ */
/* RÜCKSEITE                                           */
/* ════════════════════════════════════════════════════ */
.tl-back {
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: 3px solid #0d6efd;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* Scrollbarer Content-Bereich der Rückseite */
.tl-back-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 20px 16px 10px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* Kleiner runder Avatar auf der Rückseite */
.tl-back-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid #0d6efd;
    margin-bottom: 10px;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px #dee2e6;
}

.tl-back-name {
    font-size: 1em;
    font-weight: 700;
    color: #212529;
    margin: 0 0 2px;
    word-break: break-word;
}
.tl-back-realname {
    font-size: .78em;
    color: #6c757d;
    margin: 0 0 6px;
}
.tl-back-position {
    font-size: .75em;
    color: #0d6efd;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0 0 10px;
}

/* Trennlinie */
.tl-back-divider {
    width: 40px;
    height: 2px;
    background: #dee2e6;
    margin: 0 auto 10px;
    flex-shrink: 0;
}

.tl-back-since {
    font-size: .74em;
    color: #6c757d;
    margin: 0 0 8px;
}
.tl-back-since i {
    margin-right: 4px;
    color: #0d6efd;
}
.tl-back-bio {
    font-size: .80em;
    color: #495057;
    line-height: 1.55;
    margin: 0 0 10px;
    word-break: break-word;
    text-align: center;
    flex-grow: 1;
    width: 100%;
}

/* ── Card Footer ────────────────────────────────────── */
.tl-back-footer {
    width: calc(100% + 32px);
    margin: 0 -16px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.tl-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .76em;
    text-decoration: none;
    border-radius: 4px;
    padding: 4px 10px;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.tl-back-btn--contact {
    color: #0d6efd;
    border: 1px solid #0d6efd;
}
.tl-back-btn--contact:hover {
    background: #0d6efd;
    color: #fff;
}
.tl-back-btn--infos {
    color: #fd7e14;
    border: 1px solid #fd7e14;
}
.tl-back-btn--infos:hover {
    background: #fd7e14;
    color: #fff;
}

/* ── Leerseite ──────────────────────────────────────── */
.tl-empty {
    color: #6c757d;
    font-style: italic;
    padding: 20px 0;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1100px) {
    .tl-card { width: calc(33.333% - 12px); }
}
@media (max-width: 767px) {
    .tl-card { width: calc(50% - 9px); }
    .tl-grid  { gap: 14px; }
}
@media (max-width: 479px) {
    .tl-card  { width: 100%; aspect-ratio: 4 / 3; }
    .tl-grid  { gap: 12px; }
    .tl-section-title { font-size: 1em; }
}

/* ── ON AIR Badge ───────────────────────────────────── */
.tl-card.tl-on-air .tl-front {
    border: 1px solid #198754;
    box-shadow: 0 0 14px rgba(25,135,84,.2);
}
.tl-card.tl-on-air .tl-back {
    border: 1px solid #198754;
    box-shadow: 0 0 14px rgba(25,135,84,.2);
}

.tl-onair-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: #198754;
    color: #fff;
    font-size: .70em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 3px 8px 3px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}

.tl-onair-badge--back {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 8px;
    align-self: center;
    flex-shrink: 0;
}

.tl-onair-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    display: inline-block;
    animation: tl-pulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes tl-pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: .4; transform: scale(.7); }
}

/* ── Jetzt zuhören Button ───────────────────────────── */
.tl-back-listen {
    margin-top: 8px;
}
.tl-back-listen a {
    display: inline-block;
    font-size: .80em;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: #198754;
    border: 1px solid #198754;
    border-radius: 4px;
    padding: 5px 12px;
    transition: background .2s;
}
.tl-back-listen a:hover {
    background: #157347;
    border-color: #157347;
    color: #fff;
}
.tl-back-listen i {
    margin-right: 5px;
}

/* ── NEU-Badge ──────────────────────────────────────── */
.tl-new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: #fd7e14;
    color: #fff;
    font-size: .68em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .10em;
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
}

/* ── Bewerbungs-Banner ──────────────────────────────── */
.tl-join-banner {
    background: #e9f3ff;
    border: 1px solid #b6d4fe;
    border-left: 5px solid #0d6efd;
    border-radius: 6px;
    margin-bottom: 30px;
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
}
.tl-join-banner::before {
    content: '\f130';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 7em;
    color: #0d6efd;
    opacity: .05;
    pointer-events: none;
}
.tl-join-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.tl-join-icon {
    font-size: 2.2em;
    color: #0d6efd;
    flex-shrink: 0;
    animation: tl-pulse 1.8s ease-in-out infinite;
}
.tl-join-text {
    flex: 1 1 200px;
}
.tl-join-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #212529;
    margin: 0 0 5px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.tl-join-sub {
    font-size: .88em;
    color: #495057;
    margin: 0;
    line-height: 1.5;
}
.tl-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0d6efd;
    color: #fff;
    font-weight: 700;
    font-size: .90em;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s, transform .2s;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.tl-join-btn:hover {
    background: #0b5ed7;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}
@media (max-width: 600px) {
    .tl-join-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
    .tl-join-btn   { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════
   NÄCHSTE SENDUNG – Flipcard Vorderseite
   ══════════════════════════════════════════════════════ */
.tl-front-nextshow {
    font-size: .70em;
    color: #6c757d;
    margin: 4px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tl-front-nextshow i {
    color: #fd7e14;
    margin-right: 4px;
}

/* ══════════════════════════════════════════════════════
   NÄCHSTE SENDUNG – Flipcard Rückseite
   ══════════════════════════════════════════════════════ */
.tl-back-nextshow {
    width: 100%;
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 4px;
    padding: 8px 10px;
    margin: 8px 0 6px;
    text-align: left;
}
.tl-back-nextshow-label {
    font-size: .70em;
    color: #e65100;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin: 0 0 3px;
}
.tl-back-nextshow-label i {
    margin-right: 4px;
}
.tl-back-nextshow-title {
    font-size: .82em;
    color: #212529;
    font-weight: 600;
    margin: 0 0 2px;
    word-break: break-word;
}
.tl-back-nextshow-time {
    font-size: .74em;
    color: #6c757d;
    margin: 0;
}

/* ══════════════════════════════════════════════════════
   PROFILSEITE (member.php)
   ══════════════════════════════════════════════════════ */
.tl-profile-wrap {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.tl-profile-sidebar {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tl-profile-avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    border: 3px solid #0d6efd;
    display: block;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.tl-profile-infobox {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 4px solid #0d6efd;
    border-radius: 4px;
    padding: 14px 16px;
}
.tl-profile-name {
    font-size: 1.15em;
    font-weight: 700;
    color: #212529;
    margin: 0 0 3px;
}
.tl-profile-realname {
    font-size: .83em;
    color: #6c757d;
    margin: 0 0 6px;
}
.tl-profile-position {
    font-size: .78em;
    color: #0d6efd;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 8px;
}
.tl-profile-since {
    font-size: .78em;
    color: #6c757d;
    margin: 0 0 6px;
}
.tl-profile-since i,
.tl-profile-email i {
    margin-right: 5px;
    color: #0d6efd;
}
.tl-profile-email a {
    font-size: .80em;
    color: #0d6efd;
    text-decoration: none;
}
.tl-profile-email a:hover {
    text-decoration: underline;
}

/* ── Fakten-Box ─────────────────────────────────────── */
.tl-profile-facts {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 14px 16px;
}
.tl-profile-facts-title {
    font-size: 1.05em;
    font-weight: 700;
    color: #0d6efd;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin: 0 0 14px;
}
.tl-profile-facts-title i {
    margin-right: 6px;
}
.tl-profile-fact-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}
.tl-profile-fact-row:last-child {
    margin-bottom: 0;
}
.tl-profile-fact-label {
    font-size: .82em;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 2px;
}
.tl-profile-fact-label i {
    margin-right: 4px;
    color: #0d6efd;
}
.tl-profile-fact-value {
    font-size: .95em;
    color: #212529;
    line-height: 1.4;
}

/* ── ON AIR Badge Profilseite ───────────────────────── */
.tl-onair-badge--profile {
    position: relative;
    top: auto; left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: .80em;
    margin-bottom: 4px;
}
.tl-profile-listen {
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    border-left: 1px solid rgba(255,255,255,.4);
    padding-left: 8px;
    margin-left: 2px;
    pointer-events: auto;
    cursor: pointer;
}
.tl-profile-listen:hover {
    text-decoration: underline !important;
}

/* ── Content-Bereich ────────────────────────────────── */
.tl-profile-content {
    flex: 1 1 0;
    min-width: 0;
}
.tl-profile-short-bio {
    background: #f8f9fa;
    border-left: 4px solid #0d6efd;
    border-radius: 0 4px 4px 0;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: .95em;
    color: #495057;
    line-height: 1.65;
    font-style: italic;
}
.tl-profile-bio {
    font-size: .92em;
    color: #212529;
    line-height: 1.75;
    word-break: break-word;
}

/* ── Navigations-Buttons ────────────────────────────── */
.tl-profile-nav {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.tl-profile-nav-btn {
    display: inline-block;
    padding: 8px 18px;
    font-size: .88em;
    font-weight: 600;
    color: #0d6efd;
    border: 1px solid #0d6efd;
    border-radius: 4px;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.tl-profile-nav-btn:hover {
    background: #0d6efd;
    color: #fff;
    text-decoration: none;
}
.tl-profile-nav-btn--home {
    color: #6c757d;
    border-color: #ced4da;
}
.tl-profile-nav-btn--home:hover {
    background: #6c757d;
    color: #fff;
}
.tl-profile-nav-btn i {
    margin-right: 6px;
}
@media (max-width: 767px) {
    .tl-profile-wrap      { flex-direction: column; }
    .tl-profile-sidebar   { flex: 0 0 auto; width: 100%; }
    .tl-profile-avatar    { max-width: 220px; margin: 0 auto; }
}

/* ══════════════════════════════════════════════════════
   NÄCHSTE SENDUNGEN – Profilseite
   ══════════════════════════════════════════════════════ */
.tl-profile-shows {
    margin-top: 24px;
}
.tl-profile-shows-title {
    font-size: 1.05em;
    font-weight: 700;
    color: #fd7e14;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin: 0 0 14px;
}
.tl-profile-shows-title i {
    margin-right: 6px;
}
.tl-profile-show-row {
    background: #fff;
    border: 1px solid #dee2e6;
    border-left: 4px solid #fd7e14;
    border-radius: 0 4px 4px 0;
    padding: 12px 16px;
    margin-bottom: 10px;
}
.tl-profile-show-row:last-child {
    margin-bottom: 0;
}
.tl-profile-show-date {
    font-size: .80em;
    color: #fd7e14;
    margin-bottom: 4px;
}
.tl-profile-show-date i {
    margin-right: 5px;
}
.tl-profile-show-title {
    font-size: .98em;
    font-weight: 700;
    color: #212529;
    margin-bottom: 3px;
}
.tl-profile-show-genre {
    font-size: .76em;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 5px;
}
.tl-profile-show-desc {
    font-size: .88em;
    color: #495057;
    line-height: 1.5;
    margin-top: 4px;
}
