/* Shared layout for the imported pages. Keep these overrides out of vendor CSS. */
body.schulz-responsive {
  --schulz-gutter: clamp(16px, 3vw, 32px);
  --schulz-gap: 24px;
  --schulz-dock-height: 72px;
  padding-bottom: calc(
    var(--schulz-dock-height) + env(safe-area-inset-bottom, 0px)
  );
}

/* R01–R02: readable prices and a common structure for all four plans. */
#wrapper .schulz-plans-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--schulz-gap);
  align-items: stretch;
  padding-block: 24px;
}
#wrapper .schulz-plan {
  min-width: 0;
  margin: 0;
  padding: 0;
  align-self: stretch;
}
#wrapper .schulz-plan > .kt-inside-inner-col {
  display: grid;
  grid-template-rows: auto auto minmax(96px, auto) 1fr auto;
  gap: 16px;
  height: 100%;
  min-height: 0;
  padding: 24px 20px;
  justify-content: normal;
  align-content: stretch;
}
#wrapper .schulz-plan-title {
  margin: 0;
  padding: 0;
  font-size: 24px;
  line-height: 1.3;
  text-align: center;
  word-break: normal;
  overflow-wrap: normal;
}
#wrapper .schulz-plan-price {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 68px;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}
#wrapper .schulz-price-amount {
  display: block;
  white-space: nowrap;
  font-size: 32px;
  line-height: 44px;
}
#wrapper .schulz-plan-summary {
  margin: 0;
  padding: 0;
  align-self: start;
  font-size: 17px;
  line-height: 24px;
}
#wrapper .schulz-plan .kt-svg-icon-list-items {
  margin: 0;
  padding: 0;
  align-self: start;
}
#wrapper .schulz-plan .kt-svg-icon-list {
  gap: 12px;
}
#wrapper .schulz-plan .kt-svg-icon-list-text {
  font-size: 16px;
  line-height: 24px;
  word-break: normal;
  overflow-wrap: normal;
}
#wrapper .schulz-plan .wp-block-kadence-spacer {
  display: none;
}
#wrapper .schulz-plan .kb-buttons-wrap {
  margin: 0;
  padding: 0;
  align-self: end;
  justify-content: center;
}
#wrapper .schulz-plan .kb-button {
  min-height: 48px;
  padding: 12px 16px;
  font-size: 18px;
  line-height: 24px;
  white-space: nowrap;
}
@media (min-width: 640px) {
  #wrapper .schulz-plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  #wrapper .schulz-plans-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* R03: logo spacing stays inside the gallery rather than using negative margins. */
#wrapper .schulz-school-logos {
  width: 100%;
  margin: 0;
  padding: 24px var(--schulz-gutter);
}
#wrapper .schulz-school-logos .kb-gallery-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  margin: 0;
}
#wrapper .schulz-school-logos .kadence-blocks-gallery-item {
  width: auto;
  padding: 0;
}
#wrapper .schulz-school-logos .kadence-blocks-gallery-item-inner {
  padding: 0;
}
#wrapper .schulz-school-logos img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}
@media (min-width: 640px) {
  #wrapper .schulz-school-logos .kb-gallery-type-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  #wrapper .schulz-school-logos img {
    height: 144px;
  }
}

/* R04: remove the desktop overlap when the course hero stacks. */
@media (max-width: 1024px) {
  #wrapper .schulz-course-hero-photo {
    margin-bottom: 0;
  }
}

/* R05, R08: give the CRM and long contact details enough usable width. */
#wrapper .schulz-contact-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding-inline: var(--schulz-gutter);
}
#wrapper .schulz-contact-panel {
  margin: 0;
  min-width: 0;
}
#wrapper .schulz-contact-panel > .kt-inside-inner-col {
  padding: clamp(0px, 2vw, 24px);
  box-shadow: none;
}
#wrapper .schulz-contact-card > .kt-inside-inner-col {
  padding: 8px;
}
#wrapper .schulz-contact-email {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4;
  word-break: normal;
  overflow-wrap: normal;
}
@media (max-width: 479px) {
  #wrapper .schulz-contact-panel > .kt-inside-inner-col,
  #wrapper .schulz-contact-card > .kt-inside-inner-col {
    padding: 0;
  }
}
@media (min-width: 1025px) {
  #wrapper .schulz-contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 1fr);
    align-items: start;
  }
}

/* R06: on narrow screens, utilities have their own opaque bottom bar.
   The bar is hidden while an inline CRM form, drawer or dialog is visible. */
.schulz-responsive .schulz-contact-dock {
  position: fixed;
  inset: auto 0 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--schulz-dock-height) + env(safe-area-inset-bottom, 0px));
  padding: 8px 64px calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e6e9f0;
  background: #fff;
}
.schulz-responsive .schulz-contact-dock .whatsapp-btn {
  position: static;
  display: inline-flex;
  gap: 10px;
  width: auto;
  height: 52px;
  min-width: 52px;
  margin: 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 28px;
  font: inherit;
  font-size: 17px;
  line-height: 24px;
  cursor: pointer;
  transform: none;
  box-shadow: none;
  background-color: #15803d;
}
.schulz-responsive .schulz-contact-dock .whatsapp-btn:hover {
  background-color: #166534;
}
.schulz-responsive .schulz-contact-dock .whatsapp-btn i {
  font-size: 30px;
}
.schulz-responsive #kt-scroll-up,
.schulz-responsive #kt-scroll-up-reader {
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 10001;
}
.schulz-form-visible .schulz-contact-dock,
.schulz-dialog-open .schulz-contact-dock,
.showing-popup-drawer-from-left .schulz-contact-dock,
.schulz-form-visible #kt-scroll-up,
.schulz-form-visible #kt-scroll-up-reader,
.schulz-dialog-open #kt-scroll-up,
.schulz-dialog-open #kt-scroll-up-reader {
  visibility: hidden;
  pointer-events: none;
}
@media (min-width: 1440px) {
  body.schulz-responsive {
    padding-bottom: 0;
  }
  .schulz-responsive .schulz-contact-dock {
    inset: auto max(16px, env(safe-area-inset-right, 0px)) 20px auto;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .schulz-responsive .schulz-contact-dock .whatsapp-btn {
    width: 52px;
    padding: 10px;
  }
  .schulz-responsive .schulz-contact-label {
    display: none;
  }
  .schulz-responsive #kt-scroll-up,
  .schulz-responsive #kt-scroll-up-reader {
    bottom: 88px;
  }
}

/* R07: the close control is in its own row, outside the scrollable form. */
.schulz-responsive .pum.migration-open.migration-crm > .pum-container {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  width: min(560px, calc(100vw - 20px));
  max-height: calc(100dvh - 20px);
  padding: 8px;
  overflow: hidden;
  border-radius: 8px;
}
.schulz-responsive .migration-crm .pum-close {
  position: static;
  grid-row: 1;
  justify-self: end;
  min-width: 72px;
  min-height: 44px;
  margin: 0;
  padding: 10px 16px;
  transform: none;
}
.schulz-responsive .migration-crm .pum-content {
  grid-row: 2;
  min-height: 0;
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.schulz-responsive .migration-crm iframe {
  max-width: 100%;
}

/* R09–R10: a fluid scale avoids the typography jump at 1025px. */
#wrapper h1 {
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.2;
  text-wrap: balance;
}
#wrapper .schulz-home-title {
  font-size: clamp(28px, 3.7vw, 56px);
  line-height: 1.16;
  padding-top: 0;
}
#wrapper .schulz-home-intro {
  margin-right: 0;
  padding-right: 0;
  max-width: 42ch;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.5;
}
@media (min-width: 768px) and (max-width: 1199px) {
  #wrapper .schulz-home-hero > .kt-row-column-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  #wrapper .schulz-home-title {
    max-width: 24ch;
  }
}
@media (max-width: 767px) {
  #wrapper h2:not(.schulz-plan-price) {
    font-size: clamp(26px, 5vw, 32px);
    line-height: 1.25;
  }
}

/* R11: one logo size in both header states; room for the desktop navigation. */
#wrapper #masthead .site-branding a.brand img {
  width: 160px;
  max-width: 160px;
  max-height: 44px;
  height: auto;
}
#wrapper #masthead .site-main-header-inner-wrap {
  min-height: 80px;
}
#wrapper #masthead .header-button {
  white-space: nowrap;
}
@media (min-width: 1025px) {
  #wrapper #masthead .header-navigation .header-menu-container > ul > li > a {
    padding-inline: clamp(8px, 1vw, 16px);
  }
  #wrapper #masthead .header-button {
    padding-inline: 16px;
  }
}
@media (max-width: 479px) {
  #wrapper #masthead .site-branding a.brand img {
    width: 120px;
    max-width: 120px;
  }
}

/* R12: intrinsic logo proportions, with compact carousel slides. */
#wrapper :is(.schulz-payment-logos, .schulz-partner-logos) {
  margin: 0;
  padding: 16px var(--schulz-gutter) 32px;
}
#wrapper
  :is(.schulz-payment-logos, .schulz-partner-logos)
  .kb-gallery-image-contain {
  height: 144px;
  padding-bottom: 0;
}
#wrapper
  :is(.schulz-payment-logos, .schulz-partner-logos)
  .kb-gallery-image-contain
  img {
  position: static;
  width: 100%;
  height: 144px;
  max-height: 144px;
  object-fit: contain;
}
#wrapper .schulz-partner-logos .kb-gallery-image-contain,
#wrapper .schulz-partner-logos .kb-gallery-image-contain img {
  height: 88px;
  max-height: 88px;
}

/* R13: equivalent benefit cards keep equivalent image sizes and structure. */
#wrapper .schulz-benefits-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}
#wrapper .schulz-benefit {
  grid-column: auto;
  min-width: 0;
  margin: 0;
}
#wrapper .schulz-benefit > .kt-inside-inner-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  gap: 20px;
  height: 100%;
  padding: 0;
  justify-content: stretch;
}
#wrapper .schulz-benefit figure {
  width: 100%;
  max-width: none;
  margin: 0;
}
#wrapper .schulz-benefit figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  box-shadow: none;
}
#wrapper .schulz-benefit :is(h4, h5) {
  margin: 0;
  padding: 0;
  font-size: 24px;
  line-height: 1.3;
}
#wrapper .schulz-benefit :is(p, h6) {
  margin: 0;
  padding: 0;
  font-size: 17px;
  line-height: 1.5;
}
#wrapper .schulz-benefit .kb-buttons-wrap {
  margin: 0;
  align-self: end;
}

/* Statistics labels also need room when nested inside a half-width section. */
#wrapper .schulz-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 20px;
}
#wrapper .schulz-stat-grid > .wp-block-kadence-column > .kt-inside-inner-col {
  padding: 12px;
}
#wrapper .schulz-stat-grid .kb-count-up-title {
  font-size: 16px;
  line-height: 24px;
  word-break: normal;
  overflow-wrap: normal;
}
@media (min-width: 640px) and (max-width: 1099px) {
  #wrapper .schulz-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #wrapper .schulz-benefit:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 32px) / 2);
    justify-self: center;
  }
}
@media (min-width: 1100px) {
  #wrapper .schulz-benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* R14: two footer columns in tablet, four when the content fits. */
@media (min-width: 640px) and (max-width: 1099px) {
  #wrapper .site-middle-footer-inner-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    padding-block: 40px;
  }
  #wrapper .site-middle-footer-inner-wrap .site-footer-section {
    margin: 0;
    text-align: left;
    align-items: flex-start;
  }
  #wrapper .site-middle-footer-inner-wrap .widget {
    margin-bottom: 16px;
  }
}
@media (min-width: 1100px) {
  #wrapper .site-middle-footer-inner-wrap {
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
}
