/* ===========================
   Referent: Wissensvermittlung
=========================== */
.teaching-section {
  position: relative;
  padding-top: clamp(80px, 9vw, 132px);
  padding-bottom: clamp(80px, 9vw, 132px);
  overflow: hidden;
  background:
    radial-gradient(
      circle at 92% 15%,
      rgba(130, 162, 17, 0.16),
      transparent 28%
    ),
    #263826;
}

.teaching-section .referent-container {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0;
}

.teaching-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.teaching-image {
  position: relative;
}

.teaching-image::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 44%;
  height: 44%;
  border-top: 3px solid var(--color-accent);
  border-left: 3px solid var(--color-accent);
  border-radius: 18px 0 0;
}

.teaching-image::after {
  content: "20+ Jahre Erfahrung";
  position: absolute;
  right: -24px;
  bottom: 28px;
  max-width: 145px;
  padding: 18px 20px;
  border-radius: 12px;
  background-color: var(--color-accent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  color: #263826;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.teaching-image img {
  position: relative;
  display: block;
  width: 100%;
  min-height: 520px;
  max-height: 650px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
}

.teaching-content .section-label {
  color: #bfd557;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.teaching-content > h2 {
  max-width: 12ch;
  margin-top: 10px;
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.1;
}

.teaching-content > p {
  max-width: 58ch;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.75;
}

.benefit-list {
  margin-top: 34px;
  display: grid;
  gap: 2px;
}

.benefit-list > div {
  position: relative;
  padding: 22px 20px 22px 58px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.benefit-list > div::before {
  content: "✓";
  position: absolute;
  top: 23px;
  left: 18px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.benefit-list h3 {
  margin-bottom: 5px;
  color: #fff;
}

.benefit-list p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.info-box {
  position: relative;
  margin-top: 34px;
  padding: 24px 26px 24px 30px;
  border: 1px solid rgba(191, 213, 87, 0.35);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 12px 12px 0;
  background-color: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.referent-cta {
  padding-top: 32px;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.referent-cta a{
  margin: 32px 0;
display: inline-block;
}

/* ===========================
   Responsives Design (Breakpoints)
   Range: 320px – 1920px
=========================== */
/* Extra Large Devices (1200px – 1599px) */
@media (min-width: 1600px) and (max-width: 1800px) {
}

/* Extra Large Devices (1200px – 1599px) */
@media (min-width: 1200px) and (max-width: 1599px) {
}

/* Large Devices (992px – 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
}

/* Medium Devices (768px – 991px) */
@media (max-width: 991px) {
  .teaching-grid {
    grid-template-columns: 1fr;
  }

  .teaching-image {
    width: min(100%, 680px);
    margin: 0 auto;
  }

  .teaching-image img {
    min-height: 440px;
  }

  .teaching-content {
    width: min(100%, 680px);
    margin: 0 auto;
  }

  .gallery-card {
    display: none;
  }

  .mySwiper {
    display: block !important;
  }

  .contact-cta {
    justify-content: center;
  }
}

/* Small Devices (576px – 767px) */
@media (max-width: 767px) {
  .gallery {
    padding-bottom: 72px;
  }
  .gallery-headline p {
    width: 400px;
  }
}

/* Extra Small Smartphones (320px – 575px) */
@media (max-width: 575px) {
  .teaching-grid {
    gap: 48px;
  }

  .teaching-image::before {
    top: -12px;
    left: -12px;
  }

  .teaching-image::after {
    right: 12px;
    bottom: 14px;
    max-width: 125px;
    padding: 14px 16px;
    font-size: 0.76rem;
  }

  .teaching-image img {
    min-height: 360px;
  }

  .benefit-list > div {
    padding-right: 0;
    padding-left: 48px;
  }

  .benefit-list > div::before {
    left: 8px;
  }

  .info-box {
    padding: 20px;
  }

  .gallery-headline p {
    width: 280px;
  }
  .swiper {
    width: 308px;
  }
  .swiper-slide img {
    height: 450px;
  }
}

/* Extra Small Smartphones (320px – 575px) */
@media (max-width: 350px) {
  .swiper {
    width: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teaching-section * {
    scroll-behavior: auto;
  }
}
