/* B-001b-1 + B-001b-2: Sprung-Kacheln Services (9er) + Kompetenzen (4er); analog native-products-overview Kacheln.
   Langfristig möglich: generisches native-jump-cards.css — vorerst keine Umbenennung der Klassen. */

.native-services-jump {
  --nsj-blue: var(--hit-blue);
  --nsj-text: var(--hit-heading);
  --nsj-bg-card: var(--hit-bg-card);
  --nsj-border: rgba(0, 0, 0, 0.1);
  --nsj-border-hover: rgba(42, 130, 201, 0.55);
  --nsj-max: var(--hit-container-wide);

  background: #ffffff;
  color: var(--nsj-text);
}

.native-services-jump__inner {
  box-sizing: border-box;
  max-width: var(--nsj-max);
  margin: 0 auto;
  padding: 18px 18px 20px;
}

.native-services-jump__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 600px) {
  .native-services-jump__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .native-services-jump__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .native-services-jump__grid {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
}

.native-services-jump__card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 10px;
  min-height: 112px;
  padding: 14px 10px 14px;
  border: 1px solid var(--nsj-border);
  border-radius: 6px;
  background: var(--nsj-bg-card);
  color: inherit;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.native-services-jump__card:hover,
.native-services-jump__card:focus-visible {
  background: #ffffff;
  border-color: var(--nsj-border-hover);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
}

.native-services-jump__card:focus-visible {
  outline: 2px solid var(--nsj-blue);
  outline-offset: 2px;
}

.native-services-jump__icon {
  display: block;
  width: 100%;
  max-width: 84px;
  height: auto;
  max-height: 76px;
  object-fit: contain;
  flex-shrink: 0;
}

.native-services-jump__label {
  display: block;
  font-family: "PT Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--nsj-text);
  word-break: break-word;
  hyphens: auto;
}

/* Sticky Native-Header: Sprungziele nicht unter der Leiste verstecken (Services Post 577) */
body.elementor-page-577 #section1,
body.elementor-page-577 #section2,
body.elementor-page-577 #section3,
body.elementor-page-577 #section4,
body.elementor-page-577 #section5,
body.elementor-page-577 #section6,
body.elementor-page-577 #section7,
body.elementor-page-577 #section8,
body.elementor-page-577 #section9 {
  scroll-margin-top: 88px;
}

/* B-001b-2: Kompetenzen — 4-Spalten-Grid (überschreibt die 3/5/9er-Breakpoints der Basis-__grid) */
.native-services-jump__grid.native-services-jump__grid--cols4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 600px) {
  .native-services-jump__grid.native-services-jump__grid--cols4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .native-services-jump__grid.native-services-jump__grid--cols4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .native-services-jump__grid.native-services-jump__grid--cols4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* B-001b-2b: Kompetenzen — 4er-Gruppe kompakter, zentriert; Kacheln quadratischer
   (nur .native-services-jump--competencies; Services 9er unberührt) */
.native-services-jump--competencies .native-services-jump__grid {
  box-sizing: border-box;
  width: 100%;
  max-width: min(100%, 720px);
  margin-left: auto;
  margin-right: auto;
  gap: 16px;
}

.native-services-jump--competencies .native-services-jump__card {
  min-height: 162px;
}

@media (min-width: 900px) {
  .native-services-jump--competencies .native-services-jump__grid {
    width: fit-content;
    max-width: none;
    grid-template-columns: repeat(4, minmax(130px, 145px));
    gap: 16px;
    transform: translateX(100px);
  }
}

/* Sticky Native-Header: Kompetenzen-Seite (Post 331) */
body.elementor-page-331 #section1,
body.elementor-page-331 #section2,
body.elementor-page-331 #section3,
body.elementor-page-331 #section4 {
  scroll-margin-top: 88px;
}

/* ==========================================================================
 * A-020 Native Hero (pub28) — ersetzt Elementor 489f0df3
 * v33: Hero-Bild unter transparenten Header (Standard 550px)
 * ========================================================================== */

.native-services-hero {
  --services-hero-header-overlap: 80px;
  position: relative;
  z-index: 0;
  margin-top: calc(-1 * var(--services-hero-header-overlap));
  background-color: #0082cb;
  background-image: url("../img/global/hit_services_page.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #ffffff;
  overflow: hidden;
}

.native-services-hero .native-services-hero__inner {
  max-width: 1140px;
  margin: 0 auto;
  min-height: 640px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: var(--services-hero-header-overlap) 15px 0;
  box-sizing: border-box;
}

.native-services-hero .native-services-hero__content {
  width: 50%;
  max-width: 100%;
  box-sizing: border-box;
}

.native-services-hero .native-services-hero__title {
  margin: 50px 0 0;
  font-family: "PT Sans Narrow", "PT Sans", Arial, sans-serif;
  font-size: 55px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.native-services-hero .native-services-hero__subtitle {
  margin: 120px 0 50px;
  font-family: "PT Sans Narrow", "PT Sans", Arial, sans-serif;
  font-size: 35px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1366px) {
  .native-services-hero {
    height: 550px;
  }

  .native-services-hero .native-services-hero__inner {
    min-height: 550px;
    height: auto;
  }
}

@media (max-width: 1200px) {
  .native-services-hero .native-services-hero__inner { padding-left: 11px; padding-right: 11px; }
  .native-services-hero .native-services-hero__title { font-size: 44px; }
}

@media (max-width: 1024px) {
  .native-services-hero .native-services-hero__inner { min-height: 450px; }
  .native-services-hero .native-services-hero__title { font-size: 35px; }
  .native-services-hero .native-services-hero__subtitle { font-size: 35px; }
}

@media (max-width: 767px) {
  .native-services-hero {
    height: auto;
    min-height: 359px;
  }

  .native-services-hero .native-services-hero__inner {
    min-height: 300px;
    height: auto;
    align-items: center;
    justify-content: center;
    padding: calc(125px + var(--services-hero-header-overlap)) 15px 50px;
  }
  .native-services-hero .native-services-hero__content { width: 100%; text-align: center; }
  .native-services-hero .native-services-hero__title { margin: 25px 0 0; font-size: 30px; }
  .native-services-hero .native-services-hero__subtitle { margin: 25px 0 0; font-size: 30px; }
}

/* ==========================================================================
 * A-007 Native Content (Services + Kompetenzen sections)
 * ========================================================================== */

.native-services-content {
  --nsc-blue: var(--hit-blue);
  --nsc-text: var(--hit-text);
  --nsc-heading: var(--hit-heading);
  --nsc-bg-alt: var(--hit-bg-light);
  --nsc-max: var(--hit-container);
  color: var(--nsc-text);
  font-family: "PT Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.5;
}

.native-services-section {
  padding: 28px 15px;
}

.native-services-section--alt {
  background-color: var(--nsc-bg-alt);
}

.native-services-section__inner {
  box-sizing: border-box;
  max-width: var(--nsc-max);
  margin: 0 auto;
}

.native-services-section__title {
  margin: 0 0 16px;
  font-family: "PT Sans Narrow", "PT Sans", Arial, sans-serif;
  font-size: 35px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--nsc-heading);
}

.native-services-section__grid {
  display: grid;
  grid-template-columns: minmax(90px, 120px) minmax(0, 1fr);
  gap: 20px 28px;
  align-items: start;
}

.native-services-section__media img {
  display: block;
  width: 90px;
  height: auto;
  max-width: 100%;
}

.native-services-section__text {
  min-width: 0;
}

.native-services-section__intro {
  margin-bottom: 14px;
}

.native-services-section__intro p {
  margin: 0 0 12px;
}

.native-services-section__intro p:last-child {
  margin-bottom: 0;
}

.native-services-section__subheading {
  margin: 12px 0 0;
  font-family: "PT Sans Narrow", "PT Sans", Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}

.native-services-section__subheading a {
  color: var(--nsc-blue);
  text-decoration: none;
}

.native-services-section__subheading a:hover,
.native-services-section__subheading a:focus-visible {
  text-decoration: underline;
}

.native-services-toggle {
  margin-top: 8px;
}

.native-services-toggle__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-family: "PT Sans Narrow", "PT Sans", Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--nsc-blue);
  cursor: pointer;
  list-style: none;
}

.native-services-toggle__summary::-webkit-details-marker {
  display: none;
}

.native-services-toggle__summary::before {
  content: "+";
  flex-shrink: 0;
  width: 1.1em;
  font-weight: 700;
  line-height: 1;
}

.native-services-toggle__item[open] > .native-services-toggle__summary::before {
  content: "−";
}

.native-services-toggle__body {
  padding: 0 0 14px 1.6em;
}

.native-services-toggle__body ul {
  margin: 0;
  padding-left: 1.1em;
}

.native-services-toggle__body li {
  margin-bottom: 6px;
}

body.elementor-page-577 .native-services-section[id^="section"],
body.elementor-page-331 .native-services-section[id^="section"] {
  scroll-margin-top: 88px;
}

@media (max-width: 767px) {
  .native-services-section__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .native-services-section__media {
    justify-self: center;
  }

  .native-services-section__title {
    font-size: 28px;
    text-align: center;
  }
}
