/* ======================================
   TEAM PAGE STYLES
   ====================================== */

/* Team Card */
.team-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-card-inner {
  display: flex;
  flex-direction: column;
}

/* Image Container */
.team-image-container {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
  background: #f3f4f6;
}

.team-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-image {
  transform: scale(1.1);
  filter: brightness(0.7);
}

/* Overlay */
.team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(46, 139, 87, 0.0) 0%,
    rgba(39, 39, 39, 0.7) 50%,
    rgba(0, 0, 0, 0.95) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.team-card:hover .team-overlay {
  opacity: 1;
}

/* Quote */
.team-quote {
  text-align: center;
  margin-bottom: 1.5rem;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.team-card:hover .team-quote {
  transform: translateY(0);
}

.team-quote p {
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
}

/* Button in Overlay */
.team-btn {
  background: white;
  color: #2E8B57;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.team-card:hover .team-btn {
  transform: translateY(0);
  opacity: 1;
  transition: all 0.4s ease 0.2s;
}

.team-btn:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Team Info */
.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  transition: color 0.3s ease;
}

.team-card:hover .team-info h3 {
  color: #2E8B57;
}

/* Modal Styles */
#teamModal {
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

#teamModal.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#teamModal > div {
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  position: relative;
  height: 250px;
  background: linear-gradient(135deg, #7ac49a, #66C2A5);
  overflow: hidden;
}

.modal-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('Logo/Blume-1200w-400h.png');
}

.modal-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 6px solid white;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-body {
  padding: 5rem 2rem 2rem;
  text-align: center;
}

.modal-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.modal-role {
  color: #2E8B57;
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.modal-experience {
  display: inline-flex;
  align-items: center;
  background: #f0fdf4;
  color: #2E8B57;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.modal-quote {
  background: #f9fafb;
  border-left: 4px solid #2E8B57;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  position: relative;
}

.modal-quote i {
  position: absolute;
  top: -10px;
  left: 20px;
  color: #2E8B57;
  opacity: 0.3;
  font-size: 2rem;
}

.modal-quote p {
  font-style: italic;
  color: #4b5563;
  margin-top: 1rem;
  line-height: 1.7;
}

.modal-description {
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 2rem;
  text-align: left;
}

.modal-skills {
  margin-top: 2rem;
  text-align: left;
}

.modal-skills h4 {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: #e5e7eb;
  color: #374151;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: #2E8B57;
  color: white;
  transform: translateY(-2px);
}

.modal-achievements {
  margin-top: 2rem;
  text-align: left;
}

.modal-achievements h4 {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.achievement-item {
  display: flex;
  align-items: start;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.achievement-item:hover {
  background: #f9fafb;
}

.achievement-item i {
  color: #2E8B57;
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.achievement-item span {
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .team-card {
    margin-bottom: 1rem;
  }

  .team-overlay {
    padding: 1.5rem 1rem;
  }

  .team-quote p {
    font-size: 0.85rem;
  }

  .team-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  .modal-body {
    padding: 4.5rem 1.5rem 1.5rem;
  }

  .modal-avatar {
    width: 120px;
    height: 120px;
    bottom: 20px;
  }

  .modal-name {
    font-size: 1.5rem;
  }

  .modal-role {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .team-info {
    padding: 1rem;
  }

  .team-info h3 {
    font-size: 1.125rem;
  }

  .modal-header {
    height: 200px;
  }
}

/* Animations für Scroll */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading State */
.team-card.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Accessibility */
.team-btn:focus,
.modal-close:focus {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .team-overlay,
  .team-btn,
  #teamModal {
    display: none !important;
  }

  .team-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
  .team-card {
    background: #1f2937;
    color: #f3f4f6;
  }

  .team-info h3 {
    color: #f3f4f6;
  }

  .team-info p {
    color: #d1d5db;
  }
}

/* Hover Effects Enhancement */
.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  box-shadow: 0 0 0 2px #2E8B57;
}

.team-card:hover::before {
  opacity: 0.3;
}

/* Smooth scrolling for modal */
#teamModal > div {
  scroll-behavior: smooth;
}

/* Custom Scrollbar for Modal */
#teamModal > div::-webkit-scrollbar {
  width: 6px;
}

#teamModal > div::-webkit-scrollbar-track {
  background: #f3f4f6;
}

#teamModal > div::-webkit-scrollbar-thumb {
  background: #6d6d6d;
  border-radius: 4px;
}

#teamModal > div::-webkit-scrollbar-thumb:hover {
  background: #3f3f3f;
}

.team-birgit-sam {
  .team-card {
  position: central;
  border-radius: 16px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
}