/*-------------------------------------------------------+
| Teamliste Infusion – KFM Dark Theme
| Author: KrazzFM Development
| Design: KFM Dark – angepasst an KFM Theme-Palette
+--------------------------------------------------------+
| Farben:  --accent #ff6b35 | --bg #0a0c10
| Fonts:   Syne (Headlines) | DM Sans (Text) | DM Mono
+--------------------------------------------------------*/

/* ── Abschnittstitel (Positionen) ───────────────────── */
.tl-section-title {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin: 36px 0 20px;
    padding: 10px 16px;
    background: #181b22;
    border-left: 3px solid #ff6b35;
    border-radius: 0 8px 8px 0;
    color: #ff6b35;
}
.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: 8px;
    overflow: hidden;
    box-sizing: border-box;
}

/* ════════════════════════════════════════════════════ */
/* VORDERSEITE                                         */
/* ════════════════════════════════════════════════════ */
.tl-front {
    background: #111318;
    border: 1px solid #252830;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.tl-card:hover .tl-front { pointer-events: none; }

.tl-front-avatar {
    width: 100%;
    flex: 1 1 auto;
    object-fit: cover;
    object-position: center top;
    display: block;
    min-height: 0;
}

.tl-front-footer {
    flex: 0 0 auto;
    background: #181b22;
    border-top: 2px solid #ff6b35;
    padding: 10px 12px;
    text-align: center;
}
.tl-front-name {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: .92rem;
    font-weight: 700;
    color: #e8eaf0;
    margin: 0;
    word-break: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tl-front-position {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: .65rem;
    color: #ff6b35;
    margin: 3px 0 0;
    text-transform: uppercase;
    letter-spacing: .10em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ════════════════════════════════════════════════════ */
/* RÜCKSEITE                                           */
/* ════════════════════════════════════════════════════ */
.tl-back {
    background: #111318;
    border: 1px solid #252830;
    border-top: 2px solid #ff6b35;
    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 4px 20px rgba(0,0,0,.4);
}

.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;
}

.tl-back-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid #ff6b35;
    margin-bottom: 10px;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px #111318, 0 0 0 4px #252830, 0 0 16px rgba(255,107,53,.2);
}

.tl-back-name {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: .92rem;
    font-weight: 700;
    color: #e8eaf0;
    margin: 0 0 2px;
    word-break: break-word;
}
.tl-back-realname {
    font-size: .76rem;
    color: #555a6a;
    margin: 0 0 6px;
    font-family: 'DM Mono', monospace;
}
.tl-back-position {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: .65rem;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: .10em;
    margin: 0 0 10px;
}

.tl-back-divider {
    width: 32px;
    height: 1px;
    background: #252830;
    margin: 0 auto 10px;
    flex-shrink: 0;
}

.tl-back-since {
    font-size: .72rem;
    color: #555a6a;
    margin: 0 0 8px;
    font-family: 'DM Mono', monospace;
}
.tl-back-since i { margin-right: 4px; color: #ff6b35; }

.tl-back-bio {
    font-size: .80rem;
    color: #b8bcc8;
    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: 8px 14px;
    background: #181b22;
    border-top: 1px solid #252830;
    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: .72rem;
    font-family: 'Syne', system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration: none;
    border-radius: 4px;
    padding: 4px 10px;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.tl-back-btn--contact {
    color: #ff6b35;
    border: 1px solid rgba(255,107,53,.4);
}
.tl-back-btn--contact:hover {
    background: rgba(255,107,53,.1);
    border-color: #ff6b35;
    color: #ff6b35;
}
.tl-back-btn--infos {
    color: #ffb347;
    border: 1px solid rgba(255,179,71,.35);
}
.tl-back-btn--infos:hover {
    background: rgba(255,179,71,.1);
    border-color: #ffb347;
    color: #ffb347;
}

/* ── Leerseite ──────────────────────────────────────── */
.tl-empty {
    color: #555a6a;
    font-style: italic;
    padding: 20px 0;
    font-family: 'DM Mono', monospace;
    font-size: .88rem;
}

/* ── 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: .75rem; }
}

/* ── ON AIR ─────────────────────────────────────────── */
.tl-card.tl-on-air .tl-front,
.tl-card.tl-on-air .tl-back {
    border-color: #00e5a0;
    box-shadow: 0 0 20px rgba(0,229,160,.15);
}
.tl-card.tl-on-air .tl-front { border-top-color: #00e5a0; }
.tl-card.tl-on-air .tl-back  { border-top-color: #00e5a0; }

.tl-onair-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: #00e5a0;
    color: #000;
    font-family: 'Syne', system-ui, sans-serif;
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    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: #000;
    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-family: 'Syne', system-ui, sans-serif;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    background: #00e5a0;
    border: 1px solid #00e5a0;
    border-radius: 4px;
    padding: 5px 14px;
    transition: box-shadow .15s;
}
.tl-back-listen a:hover { box-shadow: 0 0 14px rgba(0,229,160,.35); color: #000; }
.tl-back-listen i { margin-right: 5px; }

/* ── NEU-Badge ──────────────────────────────────────── */
.tl-new-badge {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 10;
    background: #ff6b35;
    color: #000;
    font-family: 'Syne', system-ui, sans-serif;
    font-size: .6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .10em;
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
}

/* ── Bewerbungs-Banner ──────────────────────────────── */
.tl-join-banner {
    background: #111318;
    border: 1px solid #252830;
    border-left: 3px solid #ff6b35;
    border-radius: 0 8px 8px 0;
    padding: 18px 22px;
    margin-bottom: 28px;
}
.tl-join-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.tl-join-icon {
    font-size: 1.8rem;
    color: #ff6b35;
    flex-shrink: 0;
    animation: tl-pulse 1.8s ease-in-out infinite;
}
.tl-join-text { flex: 1 1 200px; }
.tl-join-title {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: .82rem;
    font-weight: 800;
    color: #e8eaf0;
    margin: 0 0 5px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.tl-join-sub {
    font-size: .85rem;
    color: #b8bcc8;
    margin: 0;
    line-height: 1.5;
}
.tl-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff6b35;
    color: #000;
    font-family: 'Syne', system-ui, sans-serif;
    font-weight: 800;
    font-size: .78rem;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: box-shadow .15s, transform .15s;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.tl-join-btn:hover {
    box-shadow: 0 0 18px rgba(255,107,53,.4);
    transform: translateY(-2px);
    color: #000;
    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: .65rem;
    color: #555a6a;
    margin: 4px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'DM Mono', monospace;
}
.tl-front-nextshow i { color: #ffb347; margin-right: 4px; }

/* ══════════════════════════════════════════════════════
   NÄCHSTE SENDUNG – Flipcard Rückseite
   ══════════════════════════════════════════════════════ */
.tl-back-nextshow {
    width: 100%;
    background: #181b22;
    border: 1px solid #252830;
    border-left: 2px solid #ffb347;
    border-radius: 4px;
    padding: 8px 10px;
    margin: 8px 0 6px;
    text-align: left;
}
.tl-back-nextshow-label {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: .62rem;
    color: #ffb347;
    text-transform: uppercase;
    letter-spacing: .10em;
    margin: 0 0 3px;
}
.tl-back-nextshow-label i { margin-right: 4px; }
.tl-back-nextshow-title {
    font-size: .82rem;
    color: #e8eaf0;
    font-weight: 600;
    margin: 0 0 2px;
    word-break: break-word;
}
.tl-back-nextshow-time {
    font-size: .72rem;
    color: #555a6a;
    margin: 0;
    font-family: 'DM Mono', monospace;
}

/* ══════════════════════════════════════════════════════
   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: 2px solid #ff6b35;
    display: block;
    box-shadow: 0 0 0 3px #111318, 0 0 0 4px #252830, 0 0 24px rgba(255,107,53,.15);
}
.tl-profile-infobox {
    background: #111318;
    border: 1px solid #252830;
    border-left: 3px solid #ff6b35;
    border-radius: 0 8px 8px 0;
    padding: 14px 16px;
}
.tl-profile-name {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #e8eaf0;
    margin: 0 0 3px;
}
.tl-profile-realname {
    font-size: .80rem;
    color: #555a6a;
    margin: 0 0 6px;
    font-family: 'DM Mono', monospace;
}
.tl-profile-position {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: .68rem;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: .10em;
    margin: 0 0 8px;
}
.tl-profile-since {
    font-size: .76rem;
    color: #555a6a;
    margin: 0 0 6px;
    font-family: 'DM Mono', monospace;
}
.tl-profile-since i,
.tl-profile-email i { margin-right: 5px; color: #ff6b35; }
.tl-profile-email a {
    font-size: .80rem;
    color: #ff6b35;
    text-decoration: none;
}
.tl-profile-email a:hover { text-decoration: underline; }

/* ── Fakten-Box ─────────────────────────────────────── */
.tl-profile-facts {
    background: #111318;
    border: 1px solid #252830;
    border-radius: 8px;
    padding: 14px 16px;
}
.tl-profile-facts-title {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: .72rem;
    font-weight: 800;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: .12em;
    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-family: 'Syne', system-ui, sans-serif;
    font-size: .70rem;
    color: #555a6a;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 2px;
}
.tl-profile-fact-label i { margin-right: 4px; color: #ff6b35; }
.tl-profile-fact-value {
    font-size: .9rem;
    color: #b8bcc8;
    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: .75rem;
    margin-bottom: 4px;
}
.tl-profile-listen {
    color: #000 !important;
    font-weight: 700;
    text-decoration: none !important;
    border-left: 1px solid rgba(0,0,0,.25);
    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: #111318;
    border: 1px solid #252830;
    border-left: 3px solid #ff6b35;
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: .92rem;
    color: #b8bcc8;
    line-height: 1.65;
    font-style: italic;
}
.tl-profile-bio {
    font-size: .92rem;
    color: #b8bcc8;
    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-family: 'Syne', system-ui, sans-serif;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #ff6b35;
    border: 1px solid rgba(255,107,53,.4);
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s, box-shadow .15s;
}
.tl-profile-nav-btn:hover {
    background: rgba(255,107,53,.1);
    box-shadow: 0 0 12px rgba(255,107,53,.2);
    color: #ff6b35;
    text-decoration: none;
}
.tl-profile-nav-btn--home {
    color: #555a6a;
    border-color: #252830;
}
.tl-profile-nav-btn--home:hover {
    background: #181b22;
    box-shadow: none;
    color: #b8bcc8;
}
.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-family: 'Syne', system-ui, sans-serif;
    font-size: .72rem;
    font-weight: 800;
    color: #ffb347;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin: 0 0 14px;
}
.tl-profile-shows-title i { margin-right: 6px; }
.tl-profile-show-row {
    background: #111318;
    border: 1px solid #252830;
    border-left: 3px solid #ffb347;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin-bottom: 10px;
}
.tl-profile-show-row:last-child { margin-bottom: 0; }
.tl-profile-show-date {
    font-size: .75rem;
    color: #ffb347;
    margin-bottom: 4px;
    font-family: 'DM Mono', monospace;
}
.tl-profile-show-date i { margin-right: 5px; }
.tl-profile-show-title {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: .92rem;
    font-weight: 700;
    color: #e8eaf0;
    margin-bottom: 3px;
}
.tl-profile-show-genre {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: .68rem;
    color: #555a6a;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 5px;
}
.tl-profile-show-desc {
    font-size: .85rem;
    color: #b8bcc8;
    line-height: 1.5;
    margin-top: 4px;
}
