/* ========== GLOBAL FIXES ========== */
body {
  overflow-x: hidden !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

.ct-text-block a:hover {
    font-weight: 700 !important;
  }

/* Silbentrennung für Überschriften auf kleineren Bildschirmen */
@media (max-width: 992px) {
  h1, h2, h3, h4, h5, h6 {
    hyphens: auto;
    overflow-wrap: break-word;
    word-break: normal;
  }
  #ai-summary-placeholder {
    font-size: 16px;
    line-height: 26px;
  }
}

/* Oxygen-Builder Fix */
.oxygen-builder-body .comment-sidebar {
  display: none !important;
}

@media (min-width: 1440px) {
  .ct-inner-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ========== FONTS ========== */
@font-face {
  font-family: 'Manrope';
  src: url('/wp-content/uploads/fonts/manrope/subset-Manrope-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/wp-content/uploads/fonts/manrope/subset-Manrope-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/wp-content/uploads/fonts/manrope/subset-Manrope-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ========== TYPOGRAPHIE DESKTOP ========== */
h1,
.ct-section h1,
.ct-text-block h1,
.oxy-h1 {
  font-size: 64px;
  font-weight: 500;
  font-style: normal;
}

h2,
.ct-section h2,
.ct-text-block h2,
.oxy-h2 {
  font-size: 48px;
  font-weight: 500;
  font-style: normal;
}

h3,
.ct-section h3,
.ct-text-block h3,
.oxy-h3 {
  font-size: 32px;
  font-weight: 500;
  font-style: normal;
}

h4,
.ct-section h4,
.ct-text-block h4,
.oxy-h4 {
  font-size: 28px;
  font-weight: 500;
  font-style: normal;
  line-height: 40px;
}

/* Standard Textblöcke */
body, p, .ct-text-block {
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  line-height: 28px;
}

/* ========== LINKS ========== */
.insights-page .oxy-rich-text:not(.links-dark-background) p a,
.insights-page .oxy-rich-text:not(.links-dark-background) li a,
.insights-page .ct-inner-content .oxy-rich-text:not(.links-dark-background) a {
    font-weight: 700;
    text-decoration: underline;
}

.insights-page .oxy-rich-text:not(.links-dark-background) p a:hover,
.insights-page .oxy-rich-text:not(.links-dark-background) li a:hover,
.insights-page .ct-inner-content .oxy-rich-text:not(.links-dark-background) a:hover {
    font-weight: 700;
    text-decoration: underline;
}

.insights-page .oxy-rich-text.links-dark-background a {
    text-decoration: none;
}



/* ========== TABLET (1023px und kleiner) ========== */
@media (max-width: 1023px) {
  h1,
  .ct-section h1,
  .ct-text-block h1,
  .oxy-h1 {
    font-size: 50px !important;
    line-height: 60px !important;
  }
  h2,
  .ct-section h2,
  .ct-text-block h2,
  .oxy-h2 {
    font-size: 37px !important;
    line-height: 46px !important;
  }
  h3,
  .ct-section h3,
  .ct-text-block h3,
  .oxy-h3 {
    font-size: 26px !important;
    line-height: 35px !important;
  }
  h4,
  .ct-section h4,
  .ct-text-block h4,
  .oxy-h4 {
    font-size: 23px !important;
    line-height: 32px !important;
  }
  body, p, .ct-text-block {
    font-size: 18px !important;
    line-height: 25px !important;
  }
}

/* ========== MOBILE (767px und kleiner) ========== */
@media (max-width: 767px) {
  h1,
  .ct-section h1,
  .ct-text-block h1,
  .oxy-h1 {
    font-size: 34px !important;
    line-height: 44px !important;
  }
  h2,
  .ct-section h2,
  .ct-text-block h2,
  .oxy-h2 {
    font-size: 26px !important;
    line-height: 34px !important;
  }
  h3,
  .ct-section h3,
  .ct-text-block h3,
  .oxy-h3 {
    font-size: 20px !important;
    line-height: 26px !important;
  }
  h4,
  .ct-section h4,
  .ct-text-block h4,
  .oxy-h4 {
    font-size: 18px !important;
    line-height: 24px !important;
  }
  body, p, .ct-text-block {
    font-size: 16px !important;
    line-height: 23px !important;
  }
  
}

/* ========== ENDE ========== */



@media (max-width: 992px) {
  /* Oberste Section */
  .section-padding > div {
    gap: 25px !important;
  }

  /* Erste Verschachtelung */
  .section-padding > div > div {
      gap: 15px !important;
      padding: 10px !important;
      flex-direction: column-reverse !important;
      flex-direction: column !important;
  }

  .dark-section .oxy-tab-content > div > div:nth-child(2) {
      padding-top: 10px;
      padding-right: 10px;
      padding-bottom: 10px;
      padding-left: 10px;
  }

  /* Zweite Verschachtelung (und NUR diese) */
  .section-padding .ct-section-inner-wrap > div > div {
    gap: 20px !important;
  }

  /* Dritte Verschachtelung (z.B. falls du weitergehst) */
   .section-padding .ct-section-inner-wrap > div > div > div {
    gap: 16px !important;
  }

  /* Vierte Verschachtelung (z.B. noch tiefer) */
  .section-padding .ct-section-inner-wrap > div > div > div > div {
    gap: 8px !important;
  }
}


@media (max-width: 479px) {
    .section-padding {
        padding: 0;
    }
}
