/* ============================================================
   SYNOVA Mitarbeiter Widget
   ============================================================ */

.mt-wrap, .mt-wrap * { box-sizing: border-box; }

.mt-wrap {
  position: relative;
  width: 100%;
  background: #0a0805;
  color: #f3e6d2;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  isolation: isolate;
}

.mt-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100vh;
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(184,150,110,0.10), transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 25%, rgba(122,82,48,0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.mt-wrap > * { position: relative; z-index: 1; }

/* ===== Hero ===== */
.mt-hero {
  position: relative;
  padding: 8rem 2rem 6rem;
  text-align: center;
  border-bottom: 1px solid rgba(184,150,110,0.1);
}
.mt-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,127,0.6), transparent);
}

.mt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #d4af7f;
  margin-bottom: 2rem;
  padding-left: 0.32em;
}
.mt-eyebrow::before, .mt-eyebrow::after {
  content: '';
  width: 18px; height: 1px;
  background: #d4af7f;
}

.mt-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 2rem;
  max-width: 920px;
  margin-left: auto; margin-right: auto;
}
.mt-hero-title .mt-italic {
  font-style: italic;
  color: #d4af7f;
}

.mt-hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(243,230,210,0.7);
  max-width: 640px;
  margin: 0 auto;
}

/* ===== Team-Liste ===== */
.mt-team {
  max-width: 1180px;
  margin: 0 auto;
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 7rem;
}

.mt-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4.5rem;
  align-items: center;
}
.mt-card:nth-child(even) .mt-photo  { order: 2; }
.mt-card:nth-child(even) .mt-info   { order: 1; }

/* ===== Foto-Frame ===== */
.mt-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(184,150,110,0.12), rgba(122,82,48,0.06));
  border: 1px solid rgba(184,150,110,0.25);
  box-shadow:
    0 20px 60px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(212,175,127,0.05) inset;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s ease;
}

.mt-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.7s ease;
  filter: saturate(0.85) contrast(1.05) brightness(0.95);
}

.mt-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,8,5,0.45) 100%);
  z-index: 2;
  pointer-events: none;
}

.mt-photo::after {
  content: '';
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  border-top: 1.5px solid #d4af7f;
  border-right: 1.5px solid #d4af7f;
  z-index: 3;
  pointer-events: none;
  transition: width 0.4s ease, height 0.4s ease;
}

.mt-photo:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 70px -20px rgba(0,0,0,0.7),
    0 0 0 1px rgba(212,175,127,0.2) inset;
}
.mt-photo:hover img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1) brightness(1);
}
.mt-photo:hover::after {
  width: 56px; height: 56px;
}

.mt-photo-corner {
  position: absolute;
  bottom: 14px; left: 14px;
  width: 40px; height: 40px;
  border-bottom: 1.5px solid #d4af7f;
  border-left: 1.5px solid #d4af7f;
  z-index: 3;
  pointer-events: none;
  transition: width 0.4s ease, height 0.4s ease;
}
.mt-photo:hover .mt-photo-corner {
  width: 56px; height: 56px;
}

.mt-photo-num {
  position: absolute;
  bottom: 1.25rem; right: 1.25rem;
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  color: rgba(243,230,210,0.85);
  letter-spacing: 0.2em;
  z-index: 4;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.mt-photo-num strong {
  font-weight: 500;
  color: #d4af7f;
  margin-right: 0.4rem;
}

/* ===== Info / Beschreibung ===== */
.mt-role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #d4af7f;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-left: 0.32em;
}
.mt-role::before {
  content: '';
  width: 28px; height: 1px;
  background: #d4af7f;
}

.mt-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: #f3e6d2;
}
.mt-name .mt-italic {
  font-style: italic;
  color: #d4af7f;
}

.mt-bio {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(243,230,210,0.78);
  margin: 0 0 1.75rem;
}
.mt-bio p { margin: 0 0 0.85rem; }
.mt-bio p:last-child { margin-bottom: 0; }
.mt-bio em, .mt-bio strong {
  color: #d4af7f;
  font-style: normal;
  font-weight: 500;
}

.mt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.mt-tag {
  padding: 0.35rem 0.85rem;
  background: rgba(184,150,110,0.06);
  border: 1px solid rgba(184,150,110,0.2);
  border-radius: 999px;
  font-size: 0.78rem;
  color: rgba(243,230,210,0.75);
  letter-spacing: 0.02em;
}

.mt-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(184,150,110,0.12);
}
.mt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(243,230,210,0.75);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.25s ease;
}
.mt-link:hover { color: #d4af7f; }
.mt-link svg { width: 16px; height: 16px; }

/* ===== Karriere CTA ===== */
.mt-join {
  max-width: 1080px;
  margin: 0 auto;
  padding: 7rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(184,150,110,0.1);
  position: relative;
}
.mt-join::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 1px;
  background: #d4af7f;
  box-shadow: 0 0 12px rgba(212,175,127,0.6);
}
.mt-join-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 1rem 0 1.25rem;
  color: #f3e6d2;
}
.mt-join-title .mt-italic {
  font-style: italic;
  color: #d4af7f;
}
.mt-join-text {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(243,230,210,0.7);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.mt-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.85rem;
  background: #f3e6d2;
  color: #2c1f0e;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              background 0.3s ease,
              color 0.3s ease;
}
.mt-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #d4af7f, #7a5230, #b8966e);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mt-cta:hover {
  transform: translateY(-2px);
  background: transparent;
  color: #f3e6d2;
  box-shadow: 0 12px 32px rgba(122,82,48,0.45);
}
.mt-cta:hover::before { opacity: 1; }
.mt-cta-arrow { transition: transform 0.3s ease; }
.mt-cta:hover .mt-cta-arrow { transform: translateX(4px); }

/* ===== Scroll-Fade =====
   Fade nur aktiv, wenn das JS .is-ready setzt. Dadurch:
   - Frontend: Fade-In funktioniert via IntersectionObserver
   - Editor / kein JS: Inhalt bleibt von Anfang an sichtbar
*/
.mt-wrap.is-ready .mt-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.mt-wrap.is-ready .mt-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .mt-hero { padding: 5rem 1.5rem 4rem; }
  .mt-team { padding: 4rem 1.5rem; gap: 5rem; }
  .mt-card,
  .mt-card:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .mt-card:nth-child(even) .mt-photo { order: 0; }
  .mt-card:nth-child(even) .mt-info  { order: 0; }
  .mt-photo { max-width: 380px; margin: 0 auto; width: 100%; }
  .mt-join { padding: 5rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mt-fade { opacity: 1; transform: none; transition: none; }
  .mt-photo, .mt-photo img { transition: none; }
}
