/* Unser Team page (team.html). Fonts and the footer styles come from home.css. */
/* Keep the scrollbar's space when the profile window stops the page scrolling, so nothing jumps sideways */
html{scrollbar-gutter:stable}
.tm{background:#fff;color:#1F1B16;font-family:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:16px;line-height:normal;-webkit-font-smoothing:antialiased;padding-top:96px}
.tm-wrap{max-width:1200px;margin:0 auto;padding:0 32px;box-sizing:border-box}

/* Heading */
.tm-hero{padding-top:50px;display:flex;flex-direction:column;align-items:center;text-align:center}
.tm-h1{margin:0;font-family:inherit;font-size:clamp(44px,5vw,64px);font-weight:800;letter-spacing:-.04em;line-height:1.05;color:#1F1B16}
.tm-intro{margin:18px 0 0;max-width:600px;font-size:17px;line-height:1.65;color:#5E5246;text-align:justify;text-align-last:center;-webkit-hyphens:auto;hyphens:auto}

/* Member cards */
.tm-sec{padding-top:56px}
.tm-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:22px}
.tm-card{display:block;width:calc((100% - 66px) / 4);min-width:0;padding:0;border:0;background:none;text-align:left;font:inherit;color:inherit;cursor:pointer;animation:tmIn .5s cubic-bezier(.2,.8,.2,1) both}
@keyframes tmIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.tm-pic{position:relative;display:block;width:100%;aspect-ratio:3/4;border-radius:26px;overflow:hidden;background:#E0D7CF;transition:transform .45s cubic-bezier(.2,.8,.2,1),box-shadow .45s ease}
.tm-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 25%;transition:transform 1s cubic-bezier(.2,.7,.2,1)}
.tm-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(31,27,22,0) 52%,rgba(31,27,22,.62) 100%);transition:background .45s ease}
.tm-cap{position:absolute;left:20px;right:70px;bottom:18px;display:flex;flex-direction:column;gap:3px}
.tm-name{font-size:24px;font-weight:800;letter-spacing:-.03em;line-height:1.1;color:#fff}
.tm-role{font-size:13.5px;font-weight:700;line-height:1.35;color:rgba(255,255,255,.85)}
.tm-tease{display:block;max-height:0;opacity:0;overflow:hidden;font-size:13.5px;font-weight:500;line-height:1.5;color:rgba(255,255,255,.9);transition:max-height .5s cubic-bezier(.2,.8,.2,1),opacity .4s ease,margin-top .5s ease}
.tm-go{position:absolute;right:16px;bottom:18px;width:42px;height:42px;border-radius:50%;background:#fff;color:#1F1B16;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 18px -8px rgba(31,27,22,.4);transition:transform .4s cubic-bezier(.2,.8,.2,1),background .25s ease,color .25s ease}
.tm-card:hover .tm-pic,.tm-card.tm-hold .tm-pic{transform:translateY(-4px);box-shadow:0 22px 40px -22px rgba(74,61,49,.5)}
.tm-card:hover .tm-pic img,.tm-card.tm-hold .tm-pic img{transform:scale(1.05)}
.tm-card:hover .tm-shade{background:linear-gradient(180deg,rgba(31,27,22,0) 30%,rgba(31,27,22,.78) 100%)}
.tm-card:hover .tm-tease{max-height:62px;opacity:1;margin-top:8px}
.tm-card:hover .tm-go{background:#1F1B16;color:#fff;transform:rotate(45deg)}
.tm-card:focus{outline:none}
.tm-card:focus-visible .tm-pic{box-shadow:0 0 0 3px #fff,0 0 0 6px #4E5A2E}

/* "Das könntest du sein" fills the rest of the last row */
.tm-join{position:relative;box-sizing:border-box;display:flex;align-items:center;gap:40px;padding:36px 44px;border-radius:26px;background:#F3EEE8}
.tm-join-d1,.tm-join-d4{width:100%}
.tm-join-d2{width:calc((100% - 66px) / 4 * 2 + 22px)}
.tm-join-d3{width:calc((100% - 66px) / 4 * 3 + 44px)}
.tm-join-main{flex:1;min-width:0}
.tm-join-top{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.tm-join-faces{display:flex;align-items:center}
.tm-jf{position:relative;width:50px;height:50px;border-radius:50%;overflow:hidden;background:#E0D7CF;box-shadow:0 0 0 4px #F3EEE8;flex:none}
.tm-jf + .tm-jf{margin-left:-14px}
.tm-jf img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 25%}
.tm-join-tag{display:inline-block;padding:6px 12px;border-radius:999px;background:#fff;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#4E5A2E}
.tm-join-h{margin:18px 0 10px;font-family:inherit;font-size:clamp(28px,3vw,38px);font-weight:800;letter-spacing:-.035em;line-height:1.1;color:#1F1B16}
.tm-join p{margin:0;max-width:640px;font-size:16px;line-height:1.65;color:#5E5246;text-align:justify;-webkit-hyphens:auto;hyphens:auto}

/* Profile window: same look and motion as the welcome pop-up on the homepage */
.tm-layer{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box;overscroll-behavior:contain;font-family:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif;color:#1F1B16;-webkit-font-smoothing:antialiased}
.tm-layer[hidden]{display:none}
.tm-scrim{position:absolute;inset:0;cursor:pointer;touch-action:none;background:rgba(31,27,22,.28);-webkit-backdrop-filter:blur(7px) saturate(.9);backdrop-filter:blur(7px) saturate(.9);animation:tmFade .45s ease both}
.tm-closing .tm-scrim{animation:tmFadeOut .3s ease both}
.tm-closing .tm-modal{animation:tmOut .3s ease both}
@keyframes tmFade{from{opacity:0}to{opacity:1}}
@keyframes tmFadeOut{to{opacity:0}}
@keyframes tmPop{from{opacity:0;transform:translate3d(0,22px,0)}to{opacity:1;transform:none}}
@keyframes tmOut{to{opacity:0;transform:translate3d(0,12px,0)}}
.tm-modal{position:relative;z-index:1;width:100%;max-width:900px;max-height:100%;overflow:auto;display:grid;grid-template-columns:320px minmax(0,1fr);border-radius:32px;background:#fff;box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(47,39,34,.05),0 40px 90px -24px rgba(31,27,22,.5);animation:tmPop .65s cubic-bezier(.2,.8,.2,1) .05s both}
.tm-mx{position:absolute;top:26px;right:24px;z-index:3;width:40px;height:40px;border-radius:50%;border:0;background:#F3EEE8;color:#2F2722;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s ease,color .2s ease,transform .35s cubic-bezier(.2,.8,.2,1)}
.tm-mx:hover{background:#2F2722;color:#fff;transform:rotate(90deg)}
.tm-mpic{position:relative;min-height:440px}
.tm-mpic img{position:absolute;top:14px;bottom:14px;left:14px;width:calc(100% - 14px);height:calc(100% - 28px);border-radius:22px;object-fit:cover;object-position:50% 25%;background:#E0D7CF}
.tm-mbody{position:relative;display:flex;flex-direction:column;padding:34px 38px 26px}
.tm-mrole{align-self:flex-start;max-width:calc(100% - 56px);padding:7px 13px;border-radius:999px;background:#F3EEE8;font-size:12.5px;font-weight:800;color:#4E5A2E}
.tm-mname{margin:14px 0 12px;font-family:inherit;font-size:36px;font-weight:800;letter-spacing:-.04em;line-height:1.05;color:#1F1B16}
.tm-mtext{margin:0;font-size:15.5px;line-height:1.7;color:#5E5246;text-align:justify;-webkit-hyphens:auto;hyphens:auto}
.tm-cred{list-style:none;margin:18px 0 0;padding:16px 18px;border-radius:18px;background:#F3EEE8;display:flex;flex-direction:column;gap:10px}
.tm-cred[hidden]{display:none}
.tm-cred li{display:flex;gap:10px;font-size:14px;font-weight:700;line-height:1.45;color:#2F2722}
.tm-cred-ic{flex:none;width:22px;height:22px;border-radius:50%;background:#4E5A2E;color:#fff;display:flex;align-items:center;justify-content:center}
.tm-mnav{display:flex;align-items:center;gap:12px;margin-top:24px;padding-top:18px;border-top:1px solid #EDE7DF}
.tm-mbtn{width:44px;height:44px;border-radius:50%;border:1.5px solid #E0D7CF;background:#fff;color:#1F1B16;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:border-color .2s ease,background .2s ease,color .2s ease}
.tm-mbtn:hover{background:#1F1B16;border-color:#1F1B16;color:#fff}
.tm-mcount{font-size:14px;font-weight:800;color:#9F8B72;font-variant-numeric:tabular-nums}

/* Tablets */
@media (max-width:900px){
.tm-card{width:calc((100% - 44px) / 3)}
.tm-join{flex-direction:column;align-items:flex-start;gap:20px;padding:28px 26px}
.tm-join-t1,.tm-join-t3{width:100%}
.tm-join-t2{width:calc((100% - 44px) / 3 * 2 + 22px)}
.tm-tease{display:none}
.tm-name{font-size:20px}
.tm-modal{grid-template-columns:1fr}
.tm-mpic{min-height:0;height:300px}
.tm-mpic img{top:10px;bottom:0;left:10px;width:calc(100% - 20px);height:calc(100% - 10px)}
}
/* Phones */
@media (max-width:640px){
.tm-wrap{padding:0 20px}
.tm-hero{padding-top:28px}
.tm-h1{font-size:40px}
.tm-intro{font-size:16px}
.tm-sec{padding-top:30px}
.tm-grid{gap:12px}
.tm-card{width:calc((100% - 12px) / 2)}
.tm-card.tm-odd-last{width:100%}
.tm-odd-last .tm-pic{aspect-ratio:4/3}
.tm-pic{border-radius:20px}
.tm-cap{left:12px;right:12px;bottom:12px}
.tm-shade{background:linear-gradient(180deg,rgba(31,27,22,0) 45%,rgba(31,27,22,.7) 100%)}
.tm-name{font-size:17px}
.tm-role{font-size:11.5px}
.tm-go{display:none}
.tm-join{width:100%!important;margin-top:8px;padding:28px 20px;border-radius:24px}
.tm-jf{width:44px;height:44px}
.tm-jf + .tm-jf{margin-left:-12px}
.tm-join p{font-size:15.5px}
.tm-layer{padding:14px}
.tm-modal{display:flex;flex-direction:column;overflow:hidden;border-radius:28px}
.tm-mx{top:18px;right:16px;background:rgba(255,255,255,.92)}
.tm-mpic{flex:none;height:260px}
.tm-mbody{flex:1 1 auto;min-height:0;overflow:auto;padding:24px 20px 20px}
.tm-mname{font-size:30px}
.tm-mtext{font-size:15px}
}
@media (max-width:640px) and (max-height:720px){.tm-mpic{height:190px}}
@media (prefers-reduced-motion:reduce){.tm-card,.tm-modal,.tm-scrim,.tm-closing .tm-scrim,.tm-closing .tm-modal{animation:none}.tm-pic,.tm-pic img,.tm-go{transition:none}}

/* Final design: left-aligned header, circle buttons with ring and pale-green hover */
.tm-h1{font-size:clamp(40px,4.4vw,56px)}
.tm-hero{align-items:flex-start;text-align:left;padding-top:36px}
.tm-intro{max-width:none;font-size:18px;line-height:1.75;text-align:justify;text-align-last:left;-webkit-hyphens:manual;hyphens:manual;text-wrap:pretty}
@media (max-width:640px){.tm-h1{font-size:36px}.tm-hero{padding-top:24px}.tm-intro{font-size:15.5px;line-height:1.7;-webkit-hyphens:auto;hyphens:auto}}
.tm-go,.tm-mx{background:#fff;color:#1F1B16;border:0;box-shadow:0 0 0 1px rgba(47,39,34,.09),0 2px 4px rgba(47,39,34,.06),0 14px 26px -10px rgba(47,39,34,.34)}
.tm-mx:hover,.tm-card:hover .tm-go{background:#fff;color:#1F1B16;box-shadow:0 0 0 1px rgba(78,90,46,.45),0 4px 8px rgba(47,39,34,.08),0 20px 32px -12px rgba(47,39,34,.4)}
.tm-card:hover .tm-go{transform:rotate(45deg)}
.tm-mx:hover{transform:rotate(90deg) scale(1.06)}
.tm-go svg,.tm-mx svg{overflow:visible}
@media (hover:none){.tm-card:hover .tm-go{transform:none}}

/* Profile window buttons and credential ticks like the final design */
.tm-mbtn{background:#fff;color:#1F1B16;border:0;box-shadow:0 0 0 1px rgba(47,39,34,.09),0 2px 4px rgba(47,39,34,.06),0 14px 26px -10px rgba(47,39,34,.34);transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s ease}
.tm-mbtn:hover{background:#fff;color:#1F1B16;border:0;transform:translateY(-2px);box-shadow:0 0 0 1px rgba(78,90,46,.45),0 4px 8px rgba(47,39,34,.08),0 20px 32px -12px rgba(47,39,34,.4)}
.tm-mbtn:active,.tm-mx:active{transform:scale(.94)}
.tm-mbtn svg{overflow:visible}
.tm-mx{transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s ease}
.tm-cred-ic{width:24px;height:24px;border-radius:0;background:none;color:inherit}
.tm-cap{text-align:left}
@media (min-width:641px){.tm-sec{margin-top:-24px}}
@media (max-width:640px){.tm-go{width:36px;height:36px;right:8px;bottom:8px}.tm-role{font-size:12.5px}}
@media (hover:none){.tm-card:hover,.tm-card:hover img{transform:none}.tm-mbtn:hover{transform:none}}

/* Oct 2026: text like the homepage paragraphs */
.tm .tm-intro,.tm .tm-join-main p,.tm .tm-mtext,.tm-mtext{font-size:16px;font-weight:400;line-height:1.7}
/*TYPE*/
/* calm text layer, copied from the design board */
.tm .tm-join-main p,.tm .tm-mtext,.tm p.tm-intro{font-size:16px!important;font-weight:400!important;line-height:1.7!important}
/*/TYPE*/
