/* Nidino Campus – Team-Vorstellung. Embedded in Memberspot via iframe ("Externe Inhalte"). */
html.nd-team, html.nd-team body { margin: 0; background: var(--nt-canvas, #FBF7F1); }
/* Site-wide Webflow code (Chatbase etc.) must not show inside the iframe */
html.nd-team :is(#chatbase-bubble-button, #chatbase-bubble-window, #chatbase-message-bubbles, .w-webflow-badge) { display: none !important; }

#nd-team {
  --canvas: #FBF7F1; --surface: #FFFFFF; --ink: #163A35; --ink-soft: #4A6862; --accent: #245953;
  --mint: #86C8BC; --mint-soft: #E2F2EE; --peach: #FFD3B0; --peach-soft: #FFEEE1; --deep: #1C4842;
  --hair: rgba(22, 58, 53, .12);
  --display: "Outfit", system-ui, sans-serif; --text: "Figtree", system-ui, sans-serif;
  --e1: 0 1px 2px rgba(22,58,53,.06), 0 4px 14px -6px rgba(22,58,53,.18);
  --e2: 0 2px 4px rgba(22,58,53,.06), 0 18px 40px -16px rgba(22,58,53,.35);
  font-family: var(--text); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--canvas);
  -webkit-font-smoothing: antialiased; min-height: 100vh; padding: 20px 16px 24px; box-sizing: border-box;
}
#nd-team *, #nd-team *::before, #nd-team *::after { box-sizing: border-box; }
#nd-team :is(h1, h2, h3, p) { margin: 0; text-transform: none; }
#nd-team :is(p, span, a, li, button) { font-family: var(--text); }
#nd-team ul { list-style: none; margin: 0; padding: 0; }
#nd-team li { background-image: none; }
#nd-team svg { width: 18px; height: 18px; flex: none; }
#nd-team :is(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.nt-wrap { max-width: 1040px; margin-inline: auto; }

/* ---------- Person switcher ---------- */
.nt-pick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 14px; margin: 0 -2px; }
.nt-pick::-webkit-scrollbar { display: none; }
.nt-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px;
  border: 1px solid var(--hair); background: var(--surface); color: var(--ink); font-size: .92rem; font-weight: 600;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.nt-chip:hover { border-color: var(--mint); transform: translateY(-1px); }
.nt-chip img, .nt-chip .nt-ini { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--mint-soft); }
.nt-ini { display: grid; place-items: center; font-family: var(--display); font-size: .85rem; color: var(--accent); }
.nt-chip[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.nt-chip[aria-selected="true"] img { box-shadow: 0 0 0 2px #fff; }
.nt-chip .nt-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--peach); margin-left: 2px; }
.nt-chip[aria-selected="true"] .nt-dot { background: var(--peach); }

/* ---------- Stage: video left, details right ---------- */
.nt-stage {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: center;
  background: var(--surface); border-radius: 28px; padding: clamp(14px, 2vw, 20px); box-shadow: var(--e1);
}
.nt-stage[hidden] { display: none; }
.nt-media {
  --h: min(620px, calc(100vh - 120px));
  position: relative; height: max(var(--h), 420px); aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, var(--mint-soft), var(--peach-soft)); box-shadow: var(--e2);
}
.nt-media video, .nt-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.nt-play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(22,58,53,0) 55%, rgba(22,58,53,.55)); color: #fff;
}
.nt-play__btn {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92);
  color: var(--accent); box-shadow: 0 10px 30px -8px rgba(0,0,0,.45); transition: transform .25s;
}
.nt-play:hover .nt-play__btn { transform: scale(1.07); }
#nd-team .nt-play__btn svg { width: 28px; height: 28px; margin-left: 4px; }
.nt-play__len { position: absolute; left: 16px; bottom: 14px; font-size: .85rem; font-weight: 600; letter-spacing: .02em; }
.nt-media.is-playing .nt-play { display: none; }
.nt-soon {
  position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 10px 14px; border-radius: 14px;
  background: rgba(255,255,255,.92); font-size: .88rem; font-weight: 600; color: var(--ink-soft); text-align: center;
}
.nt-media .nt-big-ini { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 5rem; color: var(--accent); opacity: .5; }

.nt-info { padding: 8px clamp(4px, 2vw, 20px) 8px 0; max-width: 520px; }
.nt-eyebrow { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase !important; color: var(--accent); margin-bottom: .55rem; }
#nd-team .nt-name { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(2rem, 4.4vw, 3rem); color: var(--ink); }
.nt-role { margin-top: .35rem !important; font-size: 1.02rem; color: var(--ink-soft); }
.nt-quote {
  margin-top: 1.3rem !important; padding-left: 16px; border-left: 3px solid var(--mint);
  font-size: 1.08rem; line-height: 1.5; color: var(--ink);
}
.nt-ask { margin-top: 1.5rem; }
.nt-ask__t { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase !important; color: var(--ink-soft); margin-bottom: .6rem !important; }
.nt-tags { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; }
#nd-team .nt-tags li { display: block; width: auto; margin: 0; }
.nt-tags li { padding: 6px 12px; border-radius: 999px; background: var(--mint-soft); color: var(--deep); font-size: .9rem; font-weight: 500; }

.nt-contact { display: grid; gap: 8px; margin-top: 1.6rem; }
#nd-team .nt-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; text-decoration: none;
  background: var(--canvas); color: var(--ink); border: 1px solid transparent; transition: border-color .2s, background .2s;
  font-size: .98rem; font-weight: 500; min-width: 0;
}
#nd-team .nt-link:hover { border-color: var(--mint); background: #fff; }
.nt-link__ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--accent); flex: none; box-shadow: var(--e1); }
.nt-link__txt { display: flex; flex-direction: column; min-width: 0; }
.nt-link__lbl { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase !important; color: var(--ink-soft); }
.nt-link__val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nd-team .nt-link--primary { background: var(--accent); color: #fff; }
#nd-team .nt-link--primary:hover { background: var(--deep); border-color: var(--deep); }
#nd-team .nt-link--primary .nt-link__lbl { color: rgba(255,255,255,.75); }
.nt-hours { margin-top: .9rem !important; font-size: .86rem; color: var(--ink-soft); }

.nt-nav { display: flex; gap: 8px; margin-top: 1.4rem; }
.nt-nav button {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hair);
  background: transparent; color: var(--ink); font-size: .88rem; font-weight: 600; cursor: pointer;
}
.nt-nav button:hover { border-color: var(--mint); }
.nt-nav button[disabled] { opacity: .35; cursor: default; }

.nt-fade { animation: ntIn .35s ease both; }
@keyframes ntIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Solo mode (?p=name&solo=1): no switcher, no prev/next */
#nd-team.is-solo .nt-pick, #nd-team.is-solo .nt-nav { display: none; }

/* ---------- Narrow (Memberspot mobile / small iframes) ---------- */
@media (max-width: 720px) {
  #nd-team { padding: 14px 12px 20px; }
  .nt-stage { grid-template-columns: 1fr; gap: 18px; border-radius: 22px; padding: 12px; }
  .nt-media { height: auto; width: min(100%, 360px); margin-inline: auto; }
  .nt-info { padding: 0 6px 6px; }
  .nt-name { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nt-fade { animation: none; }
  .nt-chip, .nt-play__btn { transition: none; }
}
