/* === HEADER BANNER === */
.header-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#banner-slider {
    width: 100%;
    height: 480px;
    position: relative;
}

.slider-item {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Falls du data-bg per JS nutzt Theorieseite*/ 
.slider-item.pkw-img {
    background-image: url('../images/banner/ueber-uns.png');
}

/* Overlay */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* background: rgba(0, 0, 0, 0.4); */
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Optionaler Text im Overlay */
.overlay-text {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    z-index: 2;
}

/* Container-Anpassung */
.header-banner .container,
.header-banner .row,
.header-banner .col-6 {
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .slider-item {
        height: 300px;
    }

    .overlay-text {
        font-size: 1.5rem;
    }
}


/* =============== */
.team-curve {
  position: relative;
  /* padding:  20px 60px; */
  text-align: center;
  background: #f2f6fc; /* heller Hintergrund */
}

.team-curve .intro-container {
  margin-bottom: 60px;
}

.team-curve .intro-container h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0B1C4D;
}

.team-curve .intro-container .subtitle {
  font-size: 18px;
  color: #555f8a;
}

/* GLASS EFFECT DESCRIPTION */
.team-description {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px 50px;
    font-size: 18px;
    line-height: 1.7;
    color: #1e293b;
    text-align: center;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    position: relative;
}

.team-description::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #FF8C42, #1E90FF);
}

@media (max-width: 480px) {
  .team-description {
    max-width: 100%;
    padding: 25px 25px;
  }
}

/* .team-description:hover{
    transform:translateY(-3px);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.08),
        0 6px 20px rgba(0,0,0,0.05);
} */

.team-description p {
    margin:0;
    font-weight:400;
    letter-spacing:0.2px;
    color: #333;

}

/* Team Mitglieder */
.team-members {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
  padding-top: 50px;
}

.team-member {
  border-radius: 20px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: auto;
}

.team-member:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.team-member {
  padding-top: 100px;
  transform: translateX(-100px);
  opacity: 0;
  transition: transform 1s ease-out, opacity 1s ease-out;
}

.team-member.active {
  transform: translateX(0);
  opacity: 1;
}

@media (max-width: 1298px) {
  .team-members{
    justify-content: center;
  }

  .team-member{
    flex: 0 1 calc(50% - 40px);
    max-width: 420px;
  }
}

@media (max-width: 768px) {
  .team-members {
    flex-direction: column;
    align-items: center;
  }
}

.photo-container {
  width: 400px;
  height: 400px;
  margin: -90px auto 20px;
  overflow: hidden;
  border-radius: 20px;

  box-shadow: 0 15px 35px rgba(0,0,0,0.15), 
              0 5px 15px rgba(0,0,0,0.1);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.team-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-container:hover .team-photo {
  transform: scale(1.08) rotate(-1deg);
  filter: brightness(1.05);
}
.team-photo {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.photo-overlay {
  position: absolute;
  bottom: 0; /* ganz unten */
  left: 0;
  width: 100%;
  height: 20%; /* Overlay-Höhe */
  background: rgba(11,28,77,0.6);
  backdrop-filter: blur(5px);
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;

  /* Flexbox für zentrierten Text */
  display: flex;
  justify-content: center;
  align-items: center;

  line-height: 1.2;
  transition: background 0.3s ease, transform 0.3s ease;
}

.photo-container:hover .photo-overlay {
  background: rgba(11,28,77,0.8);
  transform: translateY(-5px); /* sanfte Bewegung beim Hover */
}
.team-curve-line {
  position: absolute;
  top: 430px;
  left: 0;
  width: 100%;
  height: 200px;
  z-index: 0;
  overflow: visible;
}

.curve-path {
  fill: transparent;
  stroke: url(#orange-blue-gradient);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;

  stroke-dasharray: 2500;
  stroke-dashoffset: 2500;
  transition: stroke-dashoffset 2.5s ease-in-out;
}



@media (max-width: 768px) {
  .team-curve-line {
    top: 300px;
    height: 120px;
  }
  
  .curve-path {
    stroke-width: 6;
  }
}



@media (max-width: 768px) {
  .team-curve-line {
    display: block;
    top: 140px;
    height: 120px;
    z-index: 0;
  }

  .curve-path {
    stroke-width: 60;
    stroke-dasharray: 2500;
    stroke-dashoffset: 2500;
  }


}

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease forwards;
}

.modal-content {
    max-width: 85%;
    max-height: 80%;
    border-radius: 20px;
    animation: zoomIn 0.5s ease forwards;
}

.image-modal.closing {
  animation: fadeOut 0.4s ease forwards;
}

.image-modal.closing .modal-content {
  animation: zoomOut 0.4s ease forwards;
}

.close-btn {
  position: absolute;
  top: 40px;
  right: 60px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes fadeOut {
  from {opacity: 1;}
  to {opacity: 0;}
}

@keyframes zoomIn {
  from {transform: scale(0.7);}
  to {transform: scale(1);}
}

@keyframes zoomOut {
  from {transform: scale(1);}
  to {transform: scale(0.7);}
}

.team-member {
  opacity: 0;
  transform: rotate(-5deg) translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.team-member.active {
  opacity: 1;
  transform: rotate(0deg) translateY(0);
}
/* Verschwommen
 .team-member {
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.8s ease, filter 0.8s ease;
}
.team-member.active {
  opacity: 1;
  filter: blur(0);
} */

/* .team-member {
  opacity: 0;
  transform: perspective(600px) rotateX(15deg) translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.team-member.active {
  opacity: 1;
  transform: perspective(600px) rotateX(0deg) translateY(0);
} */

@keyframes bounce-in {
  0% { opacity: 0; transform: translateY(50px); }
  60% { opacity: 1; transform: translateY(-10px); }
  80% { transform: translateY(5px); }
  100% { transform: translateY(0); }
}

/* .team-photo {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.photo-container:hover .team-photo {
  transform: scale(1.08) translateY(-5px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
} */