/* ── Font inherit ── */
.crew-grid,
.crew-grid *,
.crew-modal,
.crew-modal * {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  box-sizing: border-box;
}

/* ── Crew Grid ── */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .crew-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .crew-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Portrait ── */
.crew-portrait {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 1.5rem 0;
  background: #e5e5e5;
}

.crew-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* ── Card info ── */
.crew-card {
  display: flex;
  flex-direction: column;
}

.crew-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.crew-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.crew-funktion {
  font-size: 0.9rem;
  color: inherit;
  margin: 0;
}

.crew-bottom {
  margin-top: auto;
  padding-top: 0.75rem;
}

.crew-links {
  list-style: none;
  padding: 0;
  margin: 0 0 0.15rem;
  display: flex;
  flex-direction: column;
}

.crew-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.crew-link:hover {
  opacity: 0.7;
}

.crew-mehr {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.crew-mehr:hover {
  opacity: 0.7;
  background: transparent;
  color: #000 !important;
  text-decoration: underline !important;
}

.crew-mehr:focus {
  background: transparent;
  color: #000 !important;
}

.crew-mehr:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
  background: transparent;
}

/* ── Jobs card ── */
.crew-card--jobs .crew-portrait--jobs {
  border-radius: 1.5rem 1.5rem 1.5rem 0;
  overflow: hidden;
  aspect-ratio: 1;
}

.crew-card--jobs .crew-portrait--jobs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.crew-card--jobs .crew-funktion {
  padding-bottom: 6px;
}

.crew-jobs-label {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #666;
  margin: 1rem 0 0.25rem;
  display: none;
}

/* ── Modal backdrop ── */
.crew-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.crew-modal[hidden] {
  display: none;
}

.crew-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* ── Modal inner ── */
.crew-modal__inner {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
}

/* ── Modal close ── */
.crew-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent !important;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  font-size: 1.25rem;
  color: #000 !important;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}

.crew-modal__close,
.crew-modal__close:link,
.crew-modal__close:visited,
.crew-modal__close:hover,
.crew-modal__close:active,
.crew-modal__close:focus,
.crew-modal__close:focus-visible,
.crew-modal__close span {
  color: #000 !important;
  background: transparent !important;
}

.crew-modal__close:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* ── Modal body ── */
.crew-modal__body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
}

@media (max-width: 640px) {
  .crew-modal__body {
    grid-template-columns: 1fr;
  }

  .crew-modal__inner {
    padding: 20px;
  }
}


.crew-modal__funktion {
  margin: 0.75rem 0 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.crew-modal__liste {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.crew-modal__titel {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.crew-modal__text {
  font-size: 0.9375rem;
  line-height: 1.65;
}

.crew-modal__text p + p {
  margin-top: 1em;
}