@import url("vars.css");

h1,
h2,
h3,
h4,
h5 {
  text-align: center;
  margin: 2rem 0;
  color: #333;
}

.team-grid {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2rem 2rem;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--accent2);
  margin-bottom: 1rem;
}

.card .name {
  font-weight: bold;
  font-size: 1.2rem;
  color: #222;
}

.card .age {
  font-size: 0.95rem;
  color: #777;
}

hr {
  color: #d7d7d7;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  text-align: center;
}

.modal-content img {
  object-fit: cover;
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: auto;
  border: 4px solid var(--accent2);
  margin-bottom: 1rem;
}

.modal-content h2 {
  margin: 0.5rem 0 0.2rem;
  color: #333;
}

.modal-content h4 {
  margin: 0;
  color: var(--accent2);
  font-weight: 500;
}

.modal-content p {
  margin-top: 1rem;
  color: #555;
  line-height: 1.4;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
}

.close-btn:hover {
  color: #333;
}

/* leiter */
.leiter-card {
  background-color: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  max-width: min(1200px - 4rem, 100% - 4rem);
  margin: 2rem auto;
  font-family: "Segoe UI", sans-serif;
  gap: 16px;
  padding: 32px;
}

.leiter-card img {
  height: 400px;
  object-fit: cover;
  float: right;
  padding: 0 0 8px 8px;
}

.leiter-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  text-align: left;
}

@media (max-width: 1100px) {
  .leiter-card > img {
    width: 100%;
    height: inherit;
  }
}
