/* Teamseite – Frontend */
.teamseite-shell{--ts-yellow:#f5c400;--ts-black:#171717;--ts-dark:#222;--ts-gray:#6b6b6b;--ts-border:#e4e4e4;max-width:1120px;margin:0 auto;padding:28px 20px;box-sizing:border-box;font-family:Arial,Helvetica,sans-serif;color:#222}
.teamseite-shell *{box-sizing:border-box}
.teamseite-directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.teamseite-card{display:block;text-decoration:none;color:inherit;background:#fff;border:1px solid var(--ts-border);border-radius:10px;overflow:hidden;transition:.2s ease;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.teamseite-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.1)}
.teamseite-card-image{height:260px;background:#ececec}
.teamseite-card-image img{width:100%;height:100%;object-fit:cover;display:block}
.teamseite-card-body{padding:18px}
.teamseite-card h2{font-size:21px;margin:0 0 7px}
.teamseite-role{font-size:14px;color:#555;font-weight:600}
.teamseite-card p{font-size:14px;color:#777;margin:8px 0 16px}
.teamseite-card-link{font-size:13px;color:#111;font-weight:700}
.teamseite-placeholder{height:100%;display:flex;align-items:center;justify-content:center;background:#d7d7d7;color:#777}
.teamseite-placeholder span{width:90px;height:90px;border-radius:50%;background:#bcbcbc;display:flex;align-items:center;justify-content:center;font-size:38px;font-weight:700;color:#fff}
.teamseite-profile{padding-top:24px}
.teamseite-profile-head{background:var(--ts-black);color:#fff;border-radius:10px;display:grid;grid-template-columns:190px 1fr;gap:28px;padding:28px;align-items:center}
.teamseite-profile-photo{width:190px;height:220px;border-radius:8px;overflow:hidden;background:#2d2d2d}
.teamseite-profile-photo img{width:100%;height:100%;object-fit:cover}
.teamseite-placeholder-large{background:#2d2d2d}
.teamseite-profile-main h1{font-size:38px;line-height:1.1;margin:5px 0 10px;color:#fff}
.teamseite-eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:11px;color:#cfcfcf}
.teamseite-profile-role{font-size:17px;font-weight:700}
.teamseite-profile-subtitle{color:#d7d7d7;margin:8px 0 20px}
.teamseite-profile-actions{display:flex;gap:10px;flex-wrap:wrap}
.teamseite-button{display:inline-block;padding:11px 17px;background:var(--ts-yellow);color:#111;text-decoration:none;border-radius:22px;font-weight:700;font-size:13px}
.teamseite-button-light{background:#fff}
.teamseite-profile-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:28px;margin-top:28px}
.teamseite-section{margin-bottom:30px}
.teamseite-section h2{font-size:22px;margin:0 0 16px}
.teamseite-section-title{display:flex;align-items:end;justify-content:space-between;border-bottom:2px solid #222;padding-bottom:8px;margin-bottom:0}
.teamseite-section-title span{font-size:12px;color:#777}
.teamseite-section p{line-height:1.7}
.teamseite-richtext{line-height:1.7}
.teamseite-known-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.teamseite-known-card{display:flex;min-height:100px;border:1px solid var(--ts-border);border-radius:8px;overflow:hidden;text-decoration:none;color:inherit;background:#fff}
.teamseite-known-image{width:76px;min-width:76px;background:#ddd}
.teamseite-known-image img{width:100%;height:100%;object-fit:cover}
.teamseite-mini-placeholder{height:100%;min-height:70px;display:flex;align-items:center;justify-content:center;background:#ddd;color:#999;font-weight:700}
.teamseite-known-body{padding:12px;display:flex;flex-direction:column;gap:4px}
.teamseite-known-body strong{font-size:14px}
.teamseite-known-body span{font-size:12px;color:#777}
.teamseite-known-body small{font-size:11px;color:#777}
.teamseite-credits{border:1px solid var(--ts-border);border-top:0;border-radius:0 0 8px 8px;overflow:hidden}
.teamseite-credit{display:grid;grid-template-columns:48px minmax(0,1fr) 70px 30px;gap:12px;align-items:center;padding:10px 12px;border-top:1px solid var(--ts-border);min-height:70px}
.teamseite-credit-image{width:48px;height:48px;border-radius:6px;overflow:hidden}
.teamseite-credit-image img{width:100%;height:100%;object-fit:cover}
.teamseite-credit-main{min-width:0;display:flex;flex-direction:column;gap:2px}
.teamseite-credit-main strong{font-size:14px}
.teamseite-credit-main span{font-size:12px;color:#555}
.teamseite-credit-main small{font-size:11px;color:#888}
.teamseite-credit-year{text-align:right;font-size:12px;color:#777}
.teamseite-credit-link{color:#777;text-decoration:none;font-size:18px}
.teamseite-sidebar{display:flex;flex-direction:column;gap:16px}
.teamseite-sidebox{border:1px solid var(--ts-border);border-radius:8px;padding:18px;background:#fff}
.teamseite-sidebox h3{margin:0 0 15px;font-size:17px}
.teamseite-sideitem{padding:10px 0;border-top:1px solid #eee;display:flex;flex-direction:column;gap:3px}
.teamseite-sideitem:first-of-type{border-top:0}
.teamseite-sideitem b{font-size:11px;text-transform:uppercase;color:#888;letter-spacing:.06em}
.teamseite-sideitem a{color:#111;text-decoration:none;font-weight:600;font-size:13px}
.teamseite-sidebox-dark{background:#1b1b1b;color:#fff;border-color:#1b1b1b}
.teamseite-sidebox-dark p{color:#ccc;font-size:13px;line-height:1.5}
.teamseite-side-button{display:inline-block;background:var(--ts-yellow);color:#111;padding:10px 13px;border-radius:18px;text-decoration:none;font-size:12px;font-weight:700}
.teamseite-empty{padding:28px;border:1px dashed #ccc;border-radius:8px;text-align:center;color:#777}
@media(max-width:900px){
 .teamseite-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .teamseite-profile-grid{grid-template-columns:1fr}
 .teamseite-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
 .teamseite-shell{padding:18px 12px}
 .teamseite-directory-grid{grid-template-columns:1fr}
 .teamseite-profile-head{grid-template-columns:1fr;padding:18px;gap:18px}
 .teamseite-profile-photo{width:120px;height:145px}
 .teamseite-profile-main h1{font-size:30px}
 .teamseite-profile-grid{margin-top:18px}
 .teamseite-known-grid{grid-template-columns:1fr}
 .teamseite-sidebar{display:flex}
 .teamseite-credit{grid-template-columns:42px minmax(0,1fr);gap:10px}
 .teamseite-credit-year{grid-column:2;text-align:left}
 .teamseite-credit-link{grid-column:2}
}

/* Header-Tabmenü */
.teamseite-header-tabs{background:#171717;border-radius:10px 10px 0 0;overflow-x:auto}.teamseite-header-tabs-inner{display:flex;min-width:max-content;padding:0 8px}.teamseite-header-tab{display:flex;align-items:center;min-height:48px;padding:0 18px;color:#d7d7d7;text-decoration:none;font-size:13px;font-weight:700;border-bottom:3px solid transparent;white-space:nowrap}.teamseite-header-tab:hover{color:#fff;background:rgba(255,255,255,.06);border-bottom-color:#f5c400}.teamseite-header-tabs + .teamseite-profile-head{border-radius:0 0 10px 10px}@media(max-width:640px){.teamseite-header-tab{padding:0 14px;min-height:44px}}


/* Inhalte der bearbeitbaren Header Tabs */
.teamseite-tab-content{
    background:#fff;
    border:1px solid var(--ts-border);
    border-top:0;
    padding:30px;
    margin:0 0 24px;
    border-radius:0 0 10px 10px;
}
.teamseite-tab-content h2{font-size:28px;margin:0 0 20px}
.teamseite-tab-content-inner{line-height:1.7;color:#333}
.teamseite-tab-content-inner > *:first-child{margin-top:0}
.teamseite-tab-content-inner > *:last-child{margin-bottom:0}
@media(max-width:640px){
    .teamseite-tab-content{padding:20px 16px}
    .teamseite-tab-content h2{font-size:23px}
}


/* Profil-Tabs werden in das vorhandene Website-Hauptmenü eingebunden */
.teamseite-header-menu-tab > a{
    display:flex !important;
    align-items:center;
    min-height:52px;
    padding:0 16px !important;
    transition:background .2s ease,color .2s ease !important;
}
.teamseite-header-menu-tab:hover > a,
.teamseite-header-menu-tab.current-menu-item > a{
    background:rgba(0,0,0,.20) !important;
    color:#fff !important;
    border-bottom-color:transparent !important;
}
.teamseite-header-menu-tab:hover,
.teamseite-header-menu-tab.current-menu-item{
    background:rgba(0,0,0,.20) !important;
}

/* Inhalt des aktuell gewählten Profil-Tabs */
.teamseite-profile .teamseite-tab-content{
    background:#fff;
    border:1px solid var(--ts-border);
    border-radius:8px;
    padding:30px;
    margin:0 0 28px;
}
.teamseite-profile .teamseite-tab-content h2{
    font-size:28px;
    margin:0 0 20px;
}
.teamseite-tab-content-inner{
    line-height:1.75;
}
.teamseite-tab-content-inner > *:first-child{margin-top:0}
.teamseite-tab-content-inner > *:last-child{margin-bottom:0}

@media(max-width:768px){
    .teamseite-header-menu-tab > a{min-height:44px;padding:0 12px !important}
    .teamseite-profile .teamseite-tab-content{padding:20px}
}


/* Profil-Tabs: oben rechts innerhalb des schwarzen Profilkopfes */
.teamseite-profile-head{
    position:relative;
}
.teamseite-profile-tabs-nav{
    position:absolute;
    top:0;
    right:0;
    display:flex;
    align-items:stretch;
    height:52px;
    z-index:5;
}
.teamseite-profile-tab-link{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    padding:0 18px;
    color:#d9d9d9;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
    background:transparent;
    border:0;
    transition:background .2s ease,color .2s ease,box-shadow .2s ease;
}
.teamseite-profile-tab-link:hover{
    color:#fff;
    background:rgba(255,255,255,.14);
    box-shadow:inset 0 -3px 0 var(--ts-yellow);
}
.teamseite-profile-tab-link.is-active{
    color:#fff;
    background:rgba(255,255,255,.09);
    box-shadow:inset 0 -3px 0 var(--ts-yellow);
}

/* Alte Theme-Header-Anpassung deaktivieren: Tabs gehören nicht in den blauen Website-Header */
.teamseite-header-menu-tab{display:none !important;}

@media(max-width:900px){
    .teamseite-profile-tabs-nav{
        position:relative;
        top:auto;
        right:auto;
        width:100%;
        order:-1;
        overflow-x:auto;
        justify-content:flex-start;
        border-bottom:1px solid rgba(255,255,255,.12);
    }
    .teamseite-profile-tab-link{
        flex:0 0 auto;
    }
}


/* Version 1.4.2 – Vollflächige gelbe Profil-Tabs */
.teamseite-profile .teamseite-profile-tabs-nav .teamseite-profile-tab-link:hover,
.teamseite-profile .teamseite-profile-tabs-nav .teamseite-profile-tab-link.is-active{
    background:var(--ts-yellow) !important;
    color:#171717 !important;
    box-shadow:none !important;
    border-bottom:0 !important;
}
.teamseite-profile .teamseite-profile-tabs-nav .teamseite-profile-tab-link:hover{
    background:#ffd21a !important;
}
.teamseite-profile .teamseite-profile-tabs-nav .teamseite-profile-tab-link.is-active:hover{
    background:#ffd21a !important;
    color:#171717 !important;
}


/* Version 1.4.3 – Nicht aktive Tabs immer deutlich gelb */
.teamseite-profile .teamseite-profile-tabs-nav .teamseite-profile-tab-link{
    color:var(--ts-yellow) !important;
    background:transparent !important;
    box-shadow:none !important;
    border:0 !important;
    opacity:1 !important;
}
.teamseite-profile .teamseite-profile-tabs-nav .teamseite-profile-tab-link:visited{
    color:var(--ts-yellow) !important;
}
.teamseite-profile .teamseite-profile-tabs-nav .teamseite-profile-tab-link:hover,
.teamseite-profile .teamseite-profile-tabs-nav .teamseite-profile-tab-link.is-active{
    background:var(--ts-yellow) !important;
    color:#171717 !important;
    opacity:1 !important;
    box-shadow:none !important;
    border:0 !important;
}


/* Version 1.4.4 – Wiederherstellung von Fähigkeiten und Credits */
.teamseite-skills-list{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}
.teamseite-skill-item{
    display:flex;
    align-items:center;
    gap:8px;
    padding:9px 13px;
    border:1px solid var(--ts-border);
    border-radius:6px;
    background:#fff;
}
.teamseite-skill-name{font-weight:700}
.teamseite-skill-level{
    font-size:12px;
    color:#666;
}
.teamseite-credits-list{
    display:grid;
    gap:10px;
}
.teamseite-credit-card{
    display:flex;
    gap:14px;
    align-items:center;
    padding:12px;
    background:#fff;
    border:1px solid var(--ts-border);
    border-radius:7px;
    color:inherit;
    text-decoration:none;
}
a.teamseite-credit-card:hover{
    border-color:var(--ts-yellow);
}
.teamseite-credit-image{
    width:56px;
    height:56px;
    flex:0 0 56px;
    overflow:hidden;
    border-radius:5px;
}
.teamseite-credit-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.teamseite-credit-body{
    display:flex;
    flex-direction:column;
    gap:3px;
}
.teamseite-credit-body strong{font-size:15px}
.teamseite-credit-body span,
.teamseite-credit-body small{color:#666}
.teamseite-credit-body p{margin:3px 0 0;color:#555}


/* Version 1.4.5 – Einheitliche Querformat-Thumbnails */
.teamseite-known-image,
.teamseite-credit-image{
    width:120px !important;
    height:68px !important;
    flex:0 0 120px !important;
    overflow:hidden;
    border-radius:5px;
}
.teamseite-known-image img,
.teamseite-credit-image img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    display:block;
}
.teamseite-known-card,
.teamseite-credit-card{
    min-height:92px;
    align-items:center;
}

/* Überschriften im gewünschten Stil */
.teamseite-section-title h2,
.teamseite-section > h2,
.teamseite-tab-content h2{
    font-size:11px !important;
    font-weight:800 !important;
    letter-spacing:.15em !important;
    text-transform:uppercase !important;
    color:#4e88b7 !important;
}

@media(max-width:600px){
    .teamseite-known-image,
    .teamseite-credit-image{
        width:100px !important;
        height:56px !important;
        flex-basis:100px !important;
    }
}


/* Version 1.4.6 – Einheitliche Abstände für „Bekannt für“ und „Credits“ */
.teamseite-known-section,
.teamseite-credits-section{
    margin-top:30px !important;
    margin-bottom:30px !important;
    padding:0 !important;
}

.teamseite-known-section .teamseite-section-title,
.teamseite-credits-section .teamseite-section-title{
    margin:0 0 12px !important;
    padding:0 0 8px !important;
}

.teamseite-known-grid,
.teamseite-credits-list{
    margin:0 !important;
    padding:0 !important;
}

.teamseite-known-card,
.teamseite-credit-card{
    margin:0 !important;
    padding:12px !important;
}

.teamseite-known-card + .teamseite-known-card,
.teamseite-credit-card + .teamseite-credit-card{
    margin-top:10px !important;
}

/* Gleicher Abstand zwischen Biografie, Bekannt für und Credits */
.teamseite-profile main > .teamseite-section{
    margin-bottom:30px !important;
}

.teamseite-profile main > .teamseite-section:last-child{
    margin-bottom:0 !important;
}
