/* light-theme: manual
   Team profile pages (team-*.html): big profile hero with ring avatar,
   name, role and brand-coloured social buttons; the content cards below run
   full width as a two-column grid. Builds on steckbrief.css and the --nx-*
   tokens / .nx-avatar ring from home-lower.css. Light variant at the end. */

:root .sb-page { max-width: 1080px; }

/* --- hero --- */
.sb-hero {
  position: relative;
  margin-bottom: 2.5rem;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border-radius: 32px;
  border: 1px solid var(--nx-line);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(500px circle at 0% 0%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(500px circle at 100% 100%, rgba(168, 85, 247, 0.18), transparent 60%),
    var(--nx-surface);
}

/* oversized name watermark behind the hero */
.sb-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: -1;
  background: conic-gradient(from 90deg, rgba(56, 189, 248, 0.15), rgba(168, 85, 247, 0.15), rgba(16, 185, 129, 0.15), rgba(56, 189, 248, 0.15));
  filter: blur(40px);
}

.sb-hero .sb-back-btn { margin-bottom: 1.4rem; }

.sb-hero-main {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 4vw, 2.8rem);
}

/* reuse the rotating ring avatar from the index, just bigger */
.sb-hero-avatar.nx-avatar {
  width: clamp(120px, 18vw, 180px);
  height: clamp(120px, 18vw, 180px);
  padding: 5px;
}

.sb-hero-avatar .nx-initials { font-size: clamp(2.6rem, 6vw, 4rem); }

.sb-hero-text { min-width: 0; }

.sb-hero-text .ux-page-eyebrow { margin-bottom: 0.8rem; }

:root .sb-hero .sb-page-title {
  margin: 0 0 0.6rem;
  font-size: clamp(2.6rem, 7vw, 4.6rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.04em !important;
  overflow-wrap: anywhere;
  color: var(--nx-text);
}

/* gradient name; applied to the word wrapper too, since the reveal splits the text */
:root .sb-hero .sb-page-title:not(.ux-words),
:root .sb-hero .sb-page-title ux-wi {
  background: linear-gradient(110deg, #f4c152, #f97316 40%, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sb-hero-role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.3rem;
  color: var(--nx-muted);
  font-size: 1.05rem;
}

.sb-hero-chip {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fde68a;
  background: rgba(244, 193, 82, 0.12);
  border: 1px solid rgba(244, 193, 82, 0.35);
}

/* --- social buttons --- */
.sb-socials { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.sb-social {
  --brand: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--nx-text);
  background: var(--nx-surface-2);
  border: 1px solid var(--nx-line);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sb-social i { color: var(--brand); font-size: 1rem; transition: color 0.2s ease; }

.sb-social:hover {
  transform: translateY(-2px);
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.sb-social:hover i { color: #fff; }

.sb-social-github { --brand: #6e5494; }
.sb-social-youtube { --brand: #ff0033; }
.sb-social-twitch { --brand: #9146ff; }
.sb-social-instagram { --brand: #e1306c; }
.sb-social-tiktok { --brand: #25f4ee; }
.sb-social-tiktok:hover { color: #000; }
.sb-social-tiktok:hover i { color: #000; }
.sb-social-discord { --brand: #5865f2; }
.sb-social-x { --brand: #64748b; }

/* --- content: cards as a full-width two-column grid --- */
:root .sb-layout { display: block; }

:root .sb-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

/* the first card ("Über mich") spans the whole row */
:root .sb-content > .sb-card:first-child { grid-column: 1 / -1; }

:root .sb-card {
  border-radius: 24px;
  border-color: var(--nx-line);
  background: var(--nx-surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (max-width: 760px) {
  .sb-hero-main { flex-direction: column; align-items: flex-start; }
  :root .sb-content { grid-template-columns: minmax(0, 1fr); }
  .sb-social span { display: none; }
  .sb-social { padding: 0.6rem; }
}

/* --- light theme --- */
html[data-theme="light"] .sb-hero-chip { color: #92400e; background: rgba(244, 193, 82, 0.2); border-color: rgba(217, 119, 6, 0.35); }
html[data-theme="light"] :root .sb-hero .sb-page-title ux-wi,
html[data-theme="light"] .sb-hero .sb-page-title ux-wi,
html[data-theme="light"] .sb-hero .sb-page-title:not(.ux-words) {
  background-image: linear-gradient(110deg, #d97706, #ea580c 40%, #db2777);
}
html[data-theme="light"] .sb-card,
html[data-theme="light"] .sb-hero { box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06); }
