/* AK86 2026 – Teamseite /agentur/ (aus dem Prototyp vom 29.10.2026) */
/* =================== Teamseite =================== */
mark.ph { background: #ffe14d; color: var(--bgcolor); padding: .02em .3em; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* 4K/hohe Pixeldichte: der 30px-Weichzeichner auf den riesigen Bubbles kostet bei jedem Farbwechsel viel; die Verläufe sind schon weich */
.bubwrap .b { filter: none; }

/* Kopf: Zahlenzeile vor der Projektwand, ohne Personen. Nicht bildschirmhoch, damit der Text danach direkt folgt */
.tm-hero { min-height: 0; align-items: flex-end; padding-top: clamp(150px, 24svh, 260px); padding-bottom: clamp(40px, 8svh, 90px); overflow: hidden; }
.tm-hero .scrollcue { display: none; }
.tm-wall { position: absolute; top: 0; right: 0; width: 74%; height: 100%; z-index: 0; overflow: hidden; pointer-events: none; will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%), linear-gradient(to right, transparent, #000 35%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 45%, transparent 100%), linear-gradient(to right, transparent, #000 35%); mask-composite: intersect; }
.tm-wall-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; opacity: .34; filter: grayscale(1) contrast(1.05); }
.tm-wall-in img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tm-hin { z-index: 3; }
.tm-h1 { display: block; text-shadow: 0 2px 40px rgba(0,0,0,.35); }
.tm-l { display: block; overflow: hidden; padding-bottom: .04em; }
.tm-l > span { display: block; font-family: var(--f-ext); font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; line-height: .9; font-size: min(7vw, 140px, 12svh); }
.tm-l b { color: var(--main); font-weight: 900; }
.tm-l mark.ph { font-weight: 900; padding: 0 .12em; }
.tm-anker { display: flex; align-items: center; margin: clamp(10px, 2vh, 24px) 0 0 -33px; } /* -33: der Ring steht bündig unter dem Text */
@media (max-width: 700px) { .tm-anker { margin-left: -16px; } .tm-anker .rb { width: min(88px, calc((100vw - 16px) / 4)); --bblur: 22px; } .tm-anker .rb span { font-size: 11px; } } /* am Handy alle vier in einer Reihe */
.tm-sub { margin-top: clamp(16px, 3vh, 30px); font-size: clamp(17px, 1.4vw, 25px); max-width: 40ch; }

/* Haltung */
/* Haltung rückt direkt unter den Kopf (Alex 29.10.) */
.tm-about { padding-top: clamp(24px, 4vh, 60px); }
.tm-about .li-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vh, 70px) clamp(30px, 6vw, 120px); align-items: start; }
.tm-about .li-lead { grid-column: 1 / -1; font-weight: 700; font-size: clamp(30px, 4.2vw, 80px); line-height: 1.04; letter-spacing: -.028em; max-width: 19ch; }
.tm-about .li-body p { font-size: clamp(18px, 1.45vw, 25px); line-height: 1.5; color: rgba(var(--gridcolor-rgb),.9); max-width: 40ch; }
.tm-about .li-body .rb { margin-top: 30px; }

/* Team: seitwärts, ein Bildschirm pro Person (wie live) */
.tm-team { --vw: calc(100vw - var(--sbw, 0px)); --hpad: max(var(--gut), calc((var(--vw) - 1920px) / 2 + var(--gut)));
  position: relative; z-index: 2; width: var(--vw); margin-left: calc(50% - var(--vw) / 2); height: 100vh; height: 100svh; overflow: hidden; margin-top: clamp(60px, 12vh, 150px); }
.tm-track { display: flex; height: 100%; width: max-content; will-change: transform; }
.tm-p { position: relative; flex: none; width: var(--vw); height: 100%; }
.tm-first { display: flex; align-items: center; padding: 0 var(--hpad); }
.tm-ftxt { max-width: min(1100px, 70vw); }
.tm-fh { font-size: clamp(40px, 5.2vw, 100px); } /* Abschnittsüberschrift 100 px wie überall (Alex 02.11.) */
.tm-fsub { display: block; margin-top: 14px; font-family: var(--f-ext); font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: clamp(18px, 1.9vw, 34px); line-height: 1; letter-spacing: -.02em; color: var(--acc); }
.tm-ftxt p { margin-top: clamp(20px, 4vh, 40px); max-width: 56ch; font-size: clamp(17px, 1.3vw, 22px); line-height: 1.55; color: rgba(var(--gridcolor-rgb),.88); }
.tm-hint { display: inline-flex; gap: 12px; align-items: center; margin-top: clamp(26px, 5vh, 50px); font: 600 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.tm-hint i { font-style: normal; font-size: 22px; color: var(--main); animation: tmnudge 1.6s ease-in-out infinite; }
@keyframes tmnudge { 50% { transform: translateX(8px); } }
.tm-media { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.tm-cut { position: absolute; left: max(2vw, calc(var(--hpad) - 4vw)); bottom: 0; z-index: 3; height: 96%; width: auto; max-width: 62%; object-fit: contain; object-position: 0 100%; filter: grayscale(1) contrast(1.04);
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent); mask-image: linear-gradient(to bottom, #000 88%, transparent); }
/* Galerie hinter der Person: privater Fotostrom im Halbsekundentakt (wie live) */
.tm-ss { position: absolute; z-index: 1; left: 27%; top: 10%; width: min(38vw, 760px); aspect-ratio: 16 / 9; overflow: hidden; background: rgba(var(--gridcolor-rgb),.06); box-shadow: 0 30px 80px rgba(0,0,0,.45); clip-path: inset(0 100% 0 0); }
.tm-ss i { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity .3s ease-in-out; }
.tm-ss i.on { opacity: 1; }
.tm-txt { position: absolute; z-index: 4; right: var(--hpad); bottom: clamp(40px, 9vh, 110px); width: min(40vw, 720px); text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.tm-txt::before { content: ''; position: absolute; inset: -18% -12% -12% -22%; z-index: -1; background: radial-gradient(closest-side, rgba(var(--bgcolor-rgb),.62), transparent); pointer-events: none; }
.tm-k { display: block; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); }
.tm-name { margin-top: 10px; font-family: var(--f-ext); font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; line-height: .86; font-size: clamp(56px, 7.4vw, 150px); }
.tm-role { display: block; margin-top: 10px; font-family: var(--f-ext); font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; font-size: clamp(20px, 2.2vw, 42px); }
.tm-txt p { margin-top: clamp(14px, 2.4vh, 24px); max-width: 48ch; font-size: clamp(16px, 1.12vw, 19px); line-height: 1.55; color: rgba(var(--gridcolor-rgb),.9); }
.tm-btns { display: flex; gap: 10px; margin-top: clamp(16px, 3vh, 28px); }
.tm-btn { display: grid; place-items: center; width: 52px; height: 52px; color: var(--textcolor); background: rgba(var(--bgcolor-rgb),.35); border: 1px solid rgba(var(--gridcolor-rgb),.55); transition: background-color .25s, color .25s, border-color .25s; }
.tm-btn svg { width: 20px; height: 20px; }
.tm-btn:hover, .tm-btn:focus-visible { background: var(--gridcolor); color: var(--ink); border-color: var(--gridcolor); }
/* Handy/schmal: untereinander, Galerie immer sichtbar (wie live) */
.tm-team.stack { height: auto; overflow: visible; }
.tm-team.stack .tm-track { display: block; width: auto; transform: none !important; }
.tm-team.stack .tm-p { width: auto; height: auto; padding: 0 var(--gut); margin-bottom: clamp(70px, 12vh, 130px); }
.tm-team.stack .tm-first { display: block; }
.tm-team.stack .tm-ftxt { max-width: none; }
.tm-team.stack .tm-media { position: relative; inset: auto; aspect-ratio: 1; max-height: 78svh; margin: 0 auto; }
.tm-team.stack .tm-cut { left: 0; height: 100%; max-width: 100%; }
.tm-team.stack .tm-ss { left: 34%; top: 8%; width: 66%; clip-path: none; }
.tm-team.stack .tm-txt { position: relative; right: auto; bottom: auto; width: auto; margin-top: -16%; }
.tm-team.stack .tm-hint { display: none; }

/* Personen-Fotowand: läuft hinter der Person durch und fährt mit ihr ins Bild und hinaus, nur der Text öffnet (03.11., team.js).
   Alles ohne eigene Ebene (z-index auto): Reihenfolge im DOM ist Wand, Person, Text. So liegt der Text vor der Person und der Name kann mit den Fotos dahinter die Farben umkehren */
.tm-person .tm-media { z-index: auto; }
.tm-person .tm-cut { z-index: auto; left: 2%; width: 56%; max-width: none; object-position: 50% 100%; }
.tm-panel { position: absolute; z-index: auto; top: 0; right: 0; width: 50%; height: 100%; pointer-events: none; }
.tm-panel .tm-ss { display: none; }
.tm-wand { position: absolute; top: 0; bottom: 0; left: 24%; width: 50%; /* rechts bleibt Platz fürs Licht mit der zweiten Personenfarbe (03.11.: „stt 3 spalten nur 2 …, dann hat das licht rechts genug platz“) */ overflow: hidden; display: flex; gap: 12px; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%); mask-image: linear-gradient(to right, transparent, #000 16%); }
.tm-sp { flex: 1; min-width: 0; }
.tm-sp:first-child { -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 88%); mask-image: linear-gradient(to bottom, #000 66%, transparent 88%); } /* endet über dem weichen Auslauf der Person (04.11.: „die linke nbild spalte irgendwie weider oben ausfaden lassen“, dann „der team auslauf muss etwas tiefer“) */
.tm-sp-in { display: flex; flex-direction: column; gap: 12px; will-change: transform; }
.tm-sp img { display: block; width: 100%; height: auto; background: rgba(var(--gridcolor-rgb),.06); }
/* Text auf einer Glasfläche, überlappt die Person und liegt vor ihr. Der Name steht halb darüber */
.tm-panel .tm-txt { --nm: clamp(44px, 6.4vw, 132px); position: absolute; right: auto; bottom: clamp(36px, 7vh, 72px); left: clamp(24px, 2vw, 60px); z-index: auto; width: min(100% - 90px, 860px); text-shadow: none; pointer-events: auto; }
.tm-panel .tm-txt::before { content: ''; display: block; position: absolute; z-index: auto; top: calc(var(--nm) * .46); right: -28px; bottom: -26px; left: -28px; background: rgba(var(--bgcolor-rgb),.82); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: inset 0 0 0 1px rgba(var(--gridcolor-rgb),.2); }
html.lightmode .tm-panel .tm-txt::before { background: rgba(var(--bgcolor-rgb),.9); }
.tm-panel .tm-txt > * { position: relative; }
.tm-panel .tm-name { margin: 0; padding-top: .08em; overflow: hidden; white-space: nowrap; font-size: var(--nm); color: var(--static-white); mix-blend-mode: difference; } /* keine Ebene dazwischen, sonst blendet der Name gegen nichts */
.tm-c { display: inline-block; }
.tm-panel .tm-k { position: absolute; top: -34px; left: 0; padding: 5px 10px; background: var(--bgcolor); color: var(--textcolor); }
.tm-team.stack .tm-panel { position: relative; top: auto; right: auto; width: auto; height: auto; pointer-events: auto; }
.tm-team.stack .tm-wand { display: none; }
.tm-team.stack .tm-person .tm-cut { left: 0; width: auto; max-width: 100%; object-position: 0 100%; }
.tm-team.stack .tm-panel .tm-ss { display: block; position: relative; left: auto; top: auto; z-index: auto; width: 100%; aspect-ratio: 16 / 9; box-shadow: none; clip-path: none; }
.tm-team.stack .tm-panel .tm-txt { position: relative; right: auto; bottom: auto; left: auto; width: auto; margin-top: 18px; padding: 0; }
.tm-team.stack .tm-panel .tm-txt::before { display: none; }
/* Handy: Die Galerie läuft hinter der Person durch und verschwindet nach unten hinter ihr, statt als eigener Block zwischen Foto und Text zu stehen (05.11.: „Besser wäre es, wenn die Galerie auch hier hinter den Menschen verschwinden würde“) */
.tm-team.stack .tm-person { isolation: isolate; overflow: clip; }
.tm-team.stack .tm-person .tm-media { z-index: 2; }
.tm-team.stack .tm-person .tm-panel { position: static; }
.tm-team.stack .tm-panel .tm-ss { position: absolute; z-index: 1; left: -20%; top: 0; width: 140%; aspect-ratio: 7 / 4; max-height: 64svh; background-color: transparent; -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 96%); mask-image: linear-gradient(to bottom, #000 58%, transparent 96%); will-change: transform; }
.tm-team.stack .tm-person .tm-txt { z-index: 3; }
.tm-team.stack .tm-panel .tm-k { position: static; padding: 0; background: none; }
.tm-team.stack .tm-panel .tm-name { margin-top: 10px; white-space: normal; color: inherit; mix-blend-mode: normal; font-size: clamp(44px, 13vw, 96px); }

/* Jobs + Bewerbung */
/* Karriere: letzte Station im Seitwärtslauf */
.tm-karriere { box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; padding: clamp(96px, 14vh, 150px) var(--hpad) clamp(24px, 5vh, 56px); overflow: hidden; }
.tm-karriere .tm-fh { margin: 0 0 clamp(12px, 2.4vh, 26px); }
.tm-karriere .jb-lead { margin-bottom: 0; }
.tm-team.stack .tm-karriere { display: block; padding: 0 var(--gut); overflow: visible; scroll-margin-top: calc(var(--abh, 0px) + 96px); }
.tm-team.stack .tm-karriere .tm-fh { font-size: clamp(26px, 8vw, 54px); } /* am Handy passt „Mitzumachen?“ so in eine Zeile */
.jb-lead { max-width: 46ch; font-size: clamp(18px, 1.45vw, 25px); line-height: 1.5; color: rgba(var(--gridcolor-rgb),.9); margin-bottom: clamp(30px, 6vh, 70px); }
/* Jobs wie live: große blasse Schrift bleibt beim Scrollen stehen, alles andere läuft darüber */
.tm-jobs { position: relative; }
.tm-jobs > *:not(.jb-geist) { position: relative; z-index: 1; }
.jb-geist { position: sticky; top: 34vh; z-index: 0; height: 0; font-family: var(--f-ext); font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; line-height: .95; font-size: clamp(52px, 8.8vw, 170px); color: rgba(var(--gridcolor-rgb),.14); filter: blur(3px); pointer-events: none; user-select: none; }
.jb-such { margin: calc(-1 * clamp(10px, 1.6vw, 26px)) 0 clamp(16px, 2vw, 30px); font-family: var(--f-ext); font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; font-size: clamp(18px, 1.9vw, 34px); }
.jb-liste { display: grid; gap: clamp(12px, 1.4vw, 22px); max-width: min(100%, 860px); }
.jb-zwei { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 100px); align-items: start; margin-top: clamp(50px, 9vh, 110px); }
.jb-form .bform { margin-top: 0; }
.jb-form .bf-row { grid-template-columns: 44px minmax(0, 1fr); }
.jb-form .bf-row .bf-f { grid-column: 2; }
.jb-form .bf-h h3 { font-size: clamp(20px, 1.9vw, 34px); line-height: 1.05; }
.job { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.6vw, 46px); text-decoration: none; background-color: var(--job-bg); border: 1px solid rgba(var(--gridcolor-rgb),.4); transition: background-color .35s, border-color .35s; }
.job:hover, .job:focus-visible { background-color: var(--job-bg-hover); border-color: var(--gridcolor); }
.job .kick { margin-bottom: 0; }
.job-t { font-family: var(--f-ext); font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; line-height: .92; font-size: clamp(32px, 4vw, 76px); overflow-wrap: anywhere; }
.job-t small { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 600; vertical-align: top; opacity: .8; }
.job-f { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.job-f li { font: 500 13px var(--f-mono); padding: 7px 11px; border: 1px solid var(--line); }
.job-go { margin-top: auto; padding-top: 16px; font-style: normal; font-weight: 700; font-size: clamp(17px, 1.3vw, 22px); }
.job-go i { font-style: normal; color: var(--main); display: inline-block; transition: transform .3s; }
.job:hover .job-go i { transform: translateX(8px); }
.jb-ini { position: sticky; top: clamp(120px, 18vh, 180px); }
.jb-ini h3 { --hl-case: uppercase; line-height: 1; font-size: var(--kap); }
.jb-ini p { margin-top: 14px; max-width: 34ch; font-size: clamp(17px, 1.3vw, 22px); color: rgba(var(--gridcolor-rgb),.88); }
.bform { margin-top: clamp(50px, 9vh, 110px); border-top: 1px solid var(--line); scroll-margin-top: 120px; }
.bf-row { display: grid; grid-template-columns: 64px minmax(0, .9fr) minmax(0, 1.4fr); gap: 16px clamp(20px, 3vw, 50px); padding: clamp(24px, 3.4vw, 48px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.bf-n { font: 600 13px var(--f-mono); color: var(--acc); padding-top: .5em; }
.bf-h h3 { font-family: var(--f-ext); font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; font-size: clamp(22px, 2.2vw, 40px); overflow-wrap: anywhere; }
.bf-f { display: grid; gap: 18px; border: 0; padding: 0; margin: 0; min-width: 0; }
.bf-f fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.bf-l { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: rgba(var(--gridcolor-rgb),.78); margin-bottom: 10px; padding: 0; }
.bform input[type=text], .bform input[type=email], .bform input[type=tel], .bform textarea { display: block; width: 100%; font: 16px var(--f-body); color: var(--textcolor); background: rgba(var(--gridcolor-rgb),.06); border: 1px solid rgba(var(--gridcolor-rgb),.35); border-radius: 0; padding: 12px 14px; outline: none; transition: border-color .25s, background-color .25s; }
.bform input:focus, .bform textarea:focus { border-color: var(--main); background: rgba(var(--gridcolor-rgb),.1); }
.bform textarea { resize: vertical; min-height: 130px; }
.bform .cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.bform .cf-grid label { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: rgba(var(--gridcolor-rgb),.78); }
.bform .cf-grid input { margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: block; padding: 9px 14px; font-size: 15px; border: 1px solid rgba(var(--gridcolor-rgb),.4); transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover span { border-color: var(--gridcolor); }
.chip input:checked + span { background: var(--main); border-color: var(--main); }
.chip input:focus-visible + span { outline: 2px solid var(--gridcolor); outline-offset: 2px; }
.bf-drop { position: relative; display: grid; place-items: center; min-height: 150px; padding: 24px; text-align: center; border: 1.5px dashed rgba(var(--gridcolor-rgb),.5); cursor: pointer; transition: border-color .25s, background-color .25s; }
.bf-drop:hover, .bf-drop.over { border-color: var(--gridcolor); background: rgba(var(--gridcolor-rgb),.06); }
.bf-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bf-drop span { font-size: 15px; color: rgba(var(--gridcolor-rgb),.85); }
.bf-drop b { display: block; font-size: 18px; color: var(--textcolor); margin-bottom: 4px; }
.bf-send { display: flex; justify-content: flex-end; padding-top: 30px; }
/* Kontakt */
.cta .ct-lead { flex-basis: 100%; margin: 26px 0 clamp(40px, 7vh, 80px); max-width: 44ch; font-size: clamp(18px, 1.45vw, 25px); line-height: 1.5; color: rgba(var(--gridcolor-rgb),.9); }

@media (max-width: 1023px) {
  .tm-about .li-grid, .jb-zwei { grid-template-columns: minmax(0, 1fr); }
  .jb-ini { position: static; }
  .jb-geist { font-size: clamp(44px, 13vw, 96px); }
  .bf-row { grid-template-columns: 48px minmax(0, 1fr); }
  .bf-row .bf-f { grid-column: 2; }
}
@media (max-width: 760px) {
  .tm-hero { padding-top: 150px; padding-bottom: 40px; }
  .tm-wall { width: 100%; }
  .tm-wall-in { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .tm-l > span { font-size: 11.4vw; }
  .bf-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bf-row .bf-f { grid-column: 1; }
  .bf-n { padding-top: 0; }
  .bform .cf-grid { grid-template-columns: 1fr; }
}

/* 200+ auf Türkis (20.11.2026, Feedback): Rot war auf dem roten Kopfbild nicht lesbar. Nur die Projektzeile, 2006 bleibt rot. */
.tm-l:nth-child(2) b { color: #50BBB8; }
