/* =========================================
   GCGF AFE – Kursboxen
   Seite: /afe-neu/
   ========================================= */

.gcgf-course-boxes {
  max-width: 1420px;
  margin: 0 auto;
  padding: 40px 20px 70px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.gcgf-sg-box,
.gcgf-pr-box {
  width: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #fbfaf5 100%);
  border: 1px solid rgba(24, 61, 37, .13);
  border-radius: 22px;
  padding: 34px 36px 38px;
  box-shadow: 0 16px 38px rgba(24, 61, 37, .10);
  box-sizing: border-box;
}

.gcgf-box-head {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.gcgf-icon {
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gcgf-icon img {
  width: 52px;
  height: 52px;
  display: block;
  filter: brightness(0) invert(1);
}

.gcgf-green {
  background: #679938;
}

.gcgf-bordeaux {
  background: #841d5b;
}

.gcgf-box-head h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 500;
}

.gcgf-sg-box h2 {
  color: #679938;
}

.gcgf-pr-box h2 {
  color: #841d5b;
}

.gcgf-box-head p {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  color: #1f2c24;
}

.gcgf-benefits,
.gcgf-benefits.bordeaux {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
  margin-bottom: 28px;
}

.gcgf-benefits span {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: #25362b;
  line-height: 1.45;
}

.gcgf-benefits span:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: #679938;
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
  font-weight: 800;
}

.gcgf-benefits.bordeaux span:before {
  background: #841d5b;
}

.gcgf-date-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}

.gcgf-date-grid.sg {
  grid-template-columns: repeat(3, 1fr);
}

.gcgf-date-grid.pr {
  grid-template-columns: repeat(2, 1fr);
}

.gcgf-date-grid div {
  background: #f8f7f1;
  border: 1px solid rgba(24, 61, 37, .14);
  border-radius: 12px;
  padding: 20px 14px 18px;
  text-align: center;
  font-size: 15px;
  line-height: 1.55;
  color: #1f2c24;
}

.gcgf-date-grid.pr div {
  background: #fbf6f3;
  border-color: rgba(132, 29, 91, .18);
}

.gcgf-date-grid strong {
  font-size: 17px;
  color: #111;
}

.gcgf-date-grid em {
  font-style: normal;
}

.gcgf-date-grid em.is-free {
  color: #679938;
  font-weight: 800;
}

.gcgf-date-grid em.is-booked {
  color: #841d5b;
  font-weight: 800;
}

.gcgf-detail-btn {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #25362b;
  font-size: 15px;
  cursor: pointer;
}

.gcgf-detail-btn:hover {
  color: #679938;
}

.gcgf-pr-box .gcgf-detail-btn:hover {
  color: #841d5b;
}

.gcgf-box-note {
  max-width: 92%;
  margin: -8px auto 26px;
  color: #344237;
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
}

.gcgf-price {
  text-align: center;
  margin: -8px 0 24px;
}

.gcgf-price strong {
  display: block;
  color: #841d5b;
  font-size: 28px;
  font-weight: 800;
}

.gcgf-price span,
.gcgf-price small {
  display: block;
  color: #1f2c24;
  font-size: 15px;
}

.gcgf-btn {
  display: flex;
  width: min(430px, 100%);
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  padding: 17px 28px;
  border-radius: 999px !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 10px 22px rgba(24, 61, 37, .18);
}

.gcgf-btn-green {
  background: #679938;
}

.gcgf-btn-bordeaux {
  background: #841d5b;
}

.gcgf-btn-green:hover {
  background: #557f2f;
}

.gcgf-btn-bordeaux:hover {
  background: #6f184c;
}

/* Modal Details */

.gcgf-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(24, 61, 37, .45);
  z-index: 99999;
  padding: 24px;
}

.gcgf-modal.is-open {
  display: flex;
}

.gcgf-modal-box {
  position: relative;
  max-width: 520px;
  width: 100%;
  background: #fff;
  border-radius: 22px;
  padding: 34px 34px 30px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .22);
}

.gcgf-modal-box p {
  margin: 0;
  color: #25362b;
  font-size: 17px;
  line-height: 1.6;
}

.gcgf-modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
  color: #841d5b;
}

/* Tablet */
@media only screen and (max-width: 989px) {
  .gcgf-course-boxes {
    max-width: 760px;
    grid-template-columns: 1fr;
  }

  .gcgf-benefits,
  .gcgf-benefits.bordeaux,
  .gcgf-date-grid.sg,
  .gcgf-date-grid.pr {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media only screen and (max-width: 640px) {
  .gcgf-course-boxes {
    padding: 32px 16px 56px;
  }

  .gcgf-sg-box,
  .gcgf-pr-box {
    padding: 28px 20px 30px;
  }

  .gcgf-box-head {
    gap: 16px;
  }

  .gcgf-icon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .gcgf-icon img {
    width: 40px;
    height: 40px;
  }

  .gcgf-box-head h2 {
    font-size: 28px;
  }

  .gcgf-box-head p {
    font-size: 16px;
  }

  .gcgf-btn {
    width: 100%;
  }
}


/* =========================================
   GCGF AFE – Mobile Feinschliff
   breitere Boxen, harmonische Seitenabstände,
   Listen etwas weiter rechts, Buttons zentriert
   ========================================= */


/* Button-Zentrierung global absichern */
#top .gcgf-course-boxes .gcgf-btn {
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  float: none !important;
  clear: both;
}


/* Mobile Optimierung */
@media only screen and (max-width: 640px) {

  /* Außenabstand reduzieren = Box insgesamt breiter */
  #top .gcgf-course-boxes {
    padding: 32px 0px 56px;
  }

  /* Box selbst harmonisch, aber nicht zu eng */
  #top .gcgf-sg-box,
  #top .gcgf-pr-box {
    padding: 28px 18px 30px;
    border-radius: 20px;
  }

  /* Kopfbereich etwas kompakter */
  #top .gcgf-box-head {
    gap: 16px;
    margin-bottom: 26px;
  }

  #top .gcgf-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
  }

  #top .gcgf-icon img {
    width: 40px;
    height: 40px;
  }

  #top .gcgf-box-head h2 {
    font-size: 28px;
  }

  #top .gcgf-box-head p {
    font-size: 16px;
  }

  /* Aufzählungen insgesamt etwas nach rechts */
  #top .gcgf-benefits,
  #top .gcgf-benefits.bordeaux {
    padding-left: 18px;
    margin-bottom: 28px;
    gap: 17px;
  }

  #top .gcgf-benefits span {
    padding-left: 34px;
    font-size: 15px;
    line-height: 1.45;
  }

  #top .gcgf-benefits span:before {
    left: 2px;
    top: 1px;
  }

  /* Terminboxen bleiben schön breit */
  #top .gcgf-date-grid div {
    padding: 19px 14px 18px;
  }

  /* Hinweistext harmonischer in der mobilen Box */
  #top .gcgf-box-note {
    max-width: 94%;
    margin: -6px auto 24px;
  }

  /* Button nicht vollflächig, sondern sauber zentriert */
  #top .gcgf-btn {
    width: min(360px, 100%);
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 17px 24px;
  }
}