@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;600&family=Montserrat:wght@600&display=swap');

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f9fbff;
  color: #1e2a38;
}

/* ===========================
   ABOUT SECTION
=========================== */
.about-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 120px 20px;
}

/* ===========================
   BACKGROUND
=========================== */
.bg-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
}

.bg-color {
  position: absolute;
  inset: 0;
  background: #1d4b81;
  z-index: 0;
}

.bg-img {
  position: relative;
  flex: 1;
  background-size: cover;
  background-position: center;
  transition: opacity 2s ease, transform 2s ease;
  opacity: 0;
  transform: scale(1.05);
  z-index: 1;
}

.img1 {
  background-image: url('../../img/home/about/stefan-bg.png');
  clip-path: polygon(0 0, 102% 0, 82% 100%, 0 100%);
}

.img2 {
  background-image: url('../../img/home/about/gabi-bg.png');
  clip-path: polygon(18% 0, 102% 0, 82% 100%, -2% 100%);
}

.img3 {
  background-image: url('../../img/home/about/Silas-bg.png');
  clip-path: polygon(18% 0, 100% 0, 100% 100%, -2% 100%);
}

.bg-img.animate {
  opacity: 0.85;
  transform: scale(1);
}

/* ===========================
   ABOUT CARDS
=========================== */
.about-cards {
  position: relative;
  display: flex;
  gap: 45px;
  justify-content: center;
  flex-wrap: nowrap;
  opacity: 0;
  transform: translateY(70px);
  transition: all 1.8s ease;
  z-index: 3;
}

.about-cards.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  width: 430px;
  padding: 55px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* ===========================
   HEADER
=========================== */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header .info h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  margin: 0;
}

.card-header .info p {
  margin: 0;
  color: #4b7bec;
  font-weight: 500;
}

.avatar {
  background: #45aaf26a;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===========================
   TEXT
=========================== */
.about-text {
  font-size: 1.15rem;
  color: #222;
  line-height: 1.7;
}

/* ===========================
   FOOTER
=========================== */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-learn {
  background: linear-gradient(90deg, #4b7bec, #45aaf2);
  border: none;
  color: white;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 28px;
  cursor: pointer;
  transition: all 0.6s ease;
}

.btn-learn:hover {
  background: linear-gradient(90deg, #45aaf2, #4b7bec);
  transform: scale(1.08);
  box-shadow: 0 5px 14px rgba(69, 170, 242, 0.5);
}

.socials {
  display: flex;
  gap: 12px;
}

.social-btn {
  background: white;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #4b7bec;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
}

.social-btn:hover {
  background: #4b7bec;
  color: white;
  transform: translateY(-3px) scale(1.05);
}

/* ===========================
   MOBILE FIX
=========================== */
@media (max-width: 1000px) {
  .about-section {
    flex-direction: column;
    padding: 0;
  }

  .bg-wrapper {
    position: relative;
    flex-direction: column;
    height: auto;
  }

  .bg-img {
    width: 100%;
    height: 100vh;
    clip-path: none;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .about-cards {
    display: none; /* JS übernimmt */
  }

  .about-card {
    width: 88%;
    max-width: 440px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.596);
    border-radius: 25px;
    position: relative;
    z-index: 2;
  }

  .about-card-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* ===========================
   MOBILE ANIMATIONS
=========================== */
.fade-in-card {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s ease;
}

.mobile-block .bg-img-mobile {
  will-change: opacity, transform;
}
