/* open-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/open-sans-v44-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/open-sans-v44-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/open-sans-v44-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/open-sans-v44-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}




/* =========================================================
   8ITS – TYPOGRAFIE + FARBLOGIK (Open Sans only)
   Joomla 6 / Helix Ultimate
   ========================================================= */


/* =========================
   1. CI-FARBVARIABLEN
   ========================= */

:root {
  --primary:   #1f344a;   /* Dunkelblau – dominiert */
  --secondary: #4a79a3;   /* Blau – Struktur */
  --tertiary:  #9bb7cf;   /* Hellblau – Flächen */
  --neutral:   #ebeef0;   /* Hellgrau – Background */
  --accent:    #e9a27f;   /* Warmton – sparsam */
}


/* =========================
   2. BODY / GRUNDTEXT
   ========================= */

html { font-size: 16px; }

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--primary);
  background: var(--neutral);
  letter-spacing: 0.15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p { margin-bottom: 1.2em; }
strong { font-weight: 600; }


/* =========================
   3. LINKS
   ========================= */

a {
  color: var(--secondary);
  text-decoration: none;
}

a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* =========================
   4. ÜBERSCHRIFTEN
   ========================= */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', sans-serif;
  color: var(--primary);
  margin-bottom: 0.8em;
  letter-spacing: -0.2px;
}

h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
}

h2 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}

h4 {
  font-size: 20px;
  font-weight: 600;
}

h5 {
  font-size: 18px;
  font-weight: 600;
}

h6 {
  font-size: 16px;
  font-weight: 600;
}


/* =========================
   5. NAVIGATION (Helix)
   ========================= */

.sp-megamenu-parent > li > a {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: var(--primary);
}

.sp-megamenu-parent > li > a:hover,
.sp-megamenu-parent > li.active > a {
  color: var(--secondary);
}


/* =========================
   6. BUTTONS
   ========================= */

.btn {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 6px;
}

/* CTA – Akzent sparsam */
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

.btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #ffffff;
}


/* =========================
   7. RESPONSIVE TYPO
   ========================= */

/* Tablet */
@media (max-width: 992px) {

  body {
    font-size: 16px;
    line-height: 1.7;
  }

  h1 { font-size: 36px; line-height: 1.15; }
  h2 { font-size: 28px; line-height: 1.2; }
  h3 { font-size: 22px; line-height: 1.25; }

}

/* Mobile */
@media (max-width: 576px) {

  body {
    font-size: 16.5px;
    line-height: 1.75;
  }

  h1 {
    font-size: 30px;
    line-height: 1.18;
    letter-spacing: -0.15px;
    margin-bottom: 0.6em;
  }

  h2 {
    font-size: 24px;
    line-height: 1.22;
    margin-bottom: 0.65em;
  }

  h3 {
    font-size: 20px;
    line-height: 1.28;
    margin-bottom: 0.7em;
  }

  h4 { font-size: 18px; }
  h5 { font-size: 16px; }
  h6 { font-size: 15px; }

  .btn {
    padding: 11px 18px;
    font-size: 15px;
  }
}

/* ===== Hauptmenü – 8ITS Stil ===== */

#sp-header .sp-megamenu-parent > li > a {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;              /* ruhig, nicht fett */
    font-size: 16px;
    letter-spacing: 0.6px;         /* leicht gesperrt wie in deiner Vorlage */
    text-transform: none;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Hover nur Farbwechsel – kein Unterstrich */
#sp-header .sp-megamenu-parent > li > a:hover {
    text-decoration: none !important;
}

/* Dropdown Links */
#sp-header .sp-dropdown li a {
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
}

#sp-header .sp-dropdown li a:hover {
    text-decoration: none !important;
}

/* Sub-Submenu ohne linken Schatten */
#sp-header .sp-dropdown .sp-dropdown {
    box-shadow: none !important;
    border-left: none !important;
}


/* IT-Check als Button im Menü */
#sp-header .sp-megamenu-parent > li > a.is-cta {
  background: #e9a27f;
  color: #ffffff !important;
  border-radius: 8px;
  padding: 10px 14px !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

/* Hover ohne Unterstreichung */
#sp-header .sp-megamenu-parent > li > a.is-cta:hover {
  text-decoration: none !important;
  filter: brightness(0.97);
}

