/* Team, Karriere, Final, Footer */

/* ===== TEAM ===== */
.team-section .section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 56px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.team-card {
  position: relative;
  aspect-ratio: 3/4;
  background: #E5E4E1;
  overflow: hidden;
  cursor: default;
}
.team-card .photo {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(0,0,0,0.06) 0,
      rgba(0,0,0,0.06) 2px,
      transparent 2px,
      transparent 14px),
    linear-gradient(180deg, #DCDBD7 0%, #C9C8C3 100%);
  transition: transform 600ms cubic-bezier(.2, .7, .2, 1);
}
.team-card.has-photo .photo {
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.team-card.has-photo:hover .photo { transform: scale(1.04); }
.team-card.has-photo .photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.9) 100%);
  pointer-events: none;
  transition: height 400ms ease, background 400ms ease;
}
.team-card.has-photo:hover .photo::after {
  height: 50%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 50%, rgba(0,0,0,0.95) 100%);
}
.team-card.has-photo .silhouette { display: none; }
.team-card.has-photo .index { display: none; }
.team-card.has-photo .meta {
  background: transparent;
  padding: 18px 18px 20px;
  z-index: 3;
}
.team-card.has-photo .meta .name {
  font-size: 18px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.team-card.has-photo .meta .role {
  opacity: 0.85;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.team-card .silhouette {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  height: 80%;
  background: rgba(36, 43, 61, 0.85);
  clip-path: polygon(50% 0%, 78% 12%, 88% 32%, 88% 100%, 12% 100%, 12% 32%, 22% 12%);
  filter: blur(0.3px);
}
.team-card .meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.78) 100%);
  color: var(--white);
  z-index: 2;
}
.team-card .meta .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.team-card .meta .role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 6px;
  display: block;
}
.team-card .index {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.85);
  background: rgba(36, 43, 61, 0.7);
  padding: 4px 8px;
  border-radius: 2px;
  z-index: 2;
}

/* Recruiting card */
.team-card.join {
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  text-decoration: none;
  transition: background 220ms ease;
}
.team-card.join:hover { background: var(--red); }
.team-card.join .top {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}
.team-card.join .big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.team-card.join .arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 880px) {
  .team-section .section-head { grid-template-columns: 1fr; align-items: start; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== KARRIERE ===== */
.karriere {
  background:
    linear-gradient(180deg, var(--navy) 0%, #1B2030 100%);
  position: relative;
  overflow: hidden;
}
.karriere-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  position: relative;
  z-index: 2;
}
.karriere h2 {
  font-size: clamp(44px, 6vw, 80px);
  margin: 24px 0 32px;
}
.karriere .body-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted-dark);
  max-width: 50ch;
  margin-bottom: 36px;
}
.karriere-image {
  aspect-ratio: 4/5;
  background: #2D3447;
  position: relative;
}
.karriere-image .badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 2px;
  z-index: 2;
}
.bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--white);
}
.bullets li::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--red);
}
@media (max-width: 880px) {
  .karriere-grid { grid-template-columns: 1fr; }
  .bullets { grid-template-columns: 1fr; }
}

/* ===== FINAL CTA ===== */
.final {
  background: var(--off-white);
  color: var(--ink);
  text-align: center;
  padding-top: clamp(120px, 14vw, 200px);
  padding-bottom: clamp(120px, 14vw, 200px);
  position: relative;
  overflow: hidden;
}
.final .container { position: relative; z-index: 2; }
.final .eyebrow {
  color: var(--red);
  margin-bottom: 32px;
}
.final h2 {
  font-size: clamp(48px, 7vw, 96px);
  max-width: 18ch;
  margin: 0 auto 48px;
  line-height: 1;
  color: var(--ink);
}
.final .actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.final .actions .btn-ghost {
  color: var(--ink);
  border: 1px solid rgba(0,0,0,0.25);
}
.final .actions .btn-ghost:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.5);
}
.final-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(239, 24, 24, 0.10) 0%, transparent 55%);
}
.final-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  z-index: 1;
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}
.footer-col p, .footer-col a {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.footer-col a:hover { color: var(--red); }
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-top: 20px;
  max-width: 32ch;
}
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bar a { color: inherit; text-decoration: none; }
.footer-bar a:hover { color: var(--white); }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
