/* raleway-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: 'Raleway';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/raleway-v28-latin-regular.eot'); /* IE9 Compat Modes */
  src: url('../fonts/raleway-v28-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/raleway-v28-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/raleway-v28-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/raleway-v28-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/raleway-v28-latin-regular.svg#Raleway') format('svg'); /* Legacy iOS */
}

/* raleway-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: 'Raleway';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/raleway-v28-latin-600.eot'); /* IE9 Compat Modes */
  src: url('../fonts/raleway-v28-latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/raleway-v28-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/raleway-v28-latin-600.woff') format('woff'), /* Modern Browsers */
       url('../fonts/raleway-v28-latin-600.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/raleway-v28-latin-600.svg#Raleway') format('svg'); /* Legacy iOS */
}

/* raleway-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: 'Raleway';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/raleway-v28-latin-700.eot'); /* IE9 Compat Modes */
  src: url('../fonts/raleway-v28-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/raleway-v28-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/raleway-v28-latin-700.woff') format('woff'), /* Modern Browsers */
       url('../fonts/raleway-v28-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/raleway-v28-latin-700.svg#Raleway') format('svg'); /* Legacy iOS */
}

/* permanent-marker-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: 'Permanent Marker';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/permanent-marker-v16-latin-regular.eot'); /* IE9 Compat Modes */
  src: url('../fonts/permanent-marker-v16-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/permanent-marker-v16-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/permanent-marker-v16-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/permanent-marker-v16-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/permanent-marker-v16-latin-regular.svg#PermanentMarker') format('svg'); /* Legacy iOS */
}


body, p {font-family: 'Raleway', sans-serif; font-weight: 400; font-size:19px; line-height: 1.3;}
h1 {font-family: 'Permanent Marker'; font-weight: 400; font-size:60px; line-height: 1.2;}
h2 {font-family: 'Permanent Marker'; font-weight: 400; font-size:50px; line-height: 1.2;}
h3 {font-family: 'Raleway'; font-weight: 700; font-size:22px; line-height: 1.3;}
h4 {font-family: 'Permanent Marker'; font-weight: 400; font-size:35px; line-height: 1.2;}

a { color: #f2d235;
    font-weight: 700;
    text-decoration: underline; } 


/* Menü */
#sp-header { height: 80px; }
#sp-header .logo { height: 80px; }
/* .logo-image { height: 66px !important; }  */

.sp-megamenu-parent > li > a {
  color: #000;
  line-height: 60px;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
}

/* Untermenü */
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
  color: #000;
  font-weight: 300;
  text-decoration: none;
}


/* Menü aktive und hover Links hineinfloatend gelbe Linie unterstrichen: */

#sp-header .sp-megamenu-parent > li > a {
  position: relative;
  text-decoration: none;
}

/* --- Items OHNE Dropdown: Linie via ::after --- */
#sp-header .sp-megamenu-parent > li:not(.sp-has-child) > a::after {
  content: "";
  position: absolute;
  left: 15px;          /* weiter rechts, bündig mit Textbeginn */
  bottom: 10px;
  width: 0;
  height: 1.8px;
  background: #f4c542;
  transition: width .35s ease-out;
}

#sp-header .sp-megamenu-parent > li:not(.sp-has-child) > a:hover::after,
#sp-header .sp-megamenu-parent > li:not(.sp-has-child).active > a::after {
  width: calc(50% - 10px);   /* ~50% der Link-Breite */
}

/* --- Items MIT Dropdown: Linie via ::before (::after ist der Pfeil!) --- */
#sp-header .sp-megamenu-parent > li.sp-has-child > a::before {
  content: "";
  position: absolute;
  left: 15px;          /* weiter rechts, bündig mit Textbeginn */
  bottom: 10px;
  width: 0;
  height: 1.8px;
  background: #f4c542;
  transition: width .35s ease-out;
  z-index: 1;
}

#sp-header .sp-megamenu-parent > li.sp-has-child > a:hover::before,
#sp-header .sp-megamenu-parent > li.sp-has-child.active > a::before {
  width: calc(50% - 15px);   /* ~50%, abzüglich Pfeil-Platz rechts */
}



/* Kleineres Logo für mittlere Auflösungen */
@media (min-width: 768px) and (max-width: 1399px) {
  #sp-header .logo-image {
    height: 36px !important;
    width: auto !important;
  } }

/* Größeres Logo ab 1400px */
@media (min-width: 1400px) {
  #sp-header .logo-image {
    height: 80px !important;
    width: auto !important;
  } }
  


/* Hide desktop menu at 1024px and below */
@media screen and (max-width: 1024px) {
  .sp-megamenu-parent {
    display: none !important;
  } }

/* Show hamburger at 1024px and below */
@media screen and (max-width: 1024px) {
  #offcanvas-toggler {
    display: flex !important;
  } }

/* Hide hamburger above 1024px */
@media screen and (min-width: 1025px) {
  #offcanvas-toggler {
    display: none !important;
  } }




/* Headermenü Hintergrund auf gezielten Seiten (Bodyklass: jo-headerfix, muss auch in Menüpunkten als CSS-Klasse eingetragen werden) transparent, und beim Scrollen weiß: */

/* 1. Standard-Header: transparent */
body.jo-headerfix #sp-header {
  background: transparent !important;
  box-shadow: none;
}

/* 2. Sticky-Header: weißer Hintergrund */
body.jo-headerfix #sp-header.header-sticky {
  background: #ffffff !important;
}

/* 3. Globalen Abstand direkt unter dem Header wegnehmen */
body.jo-headerfix #sp-main-body {
  margin-top: 0;
  padding-top: 0;
}

/* 4. Den eigentlichen Content-Wrapper (#sp-component) 80px nach oben ziehen (die 80px wurden oben mit "#sp-header { height: 80px; }" selbst definiert */
body.jo-headerfix #sp-component {
  margin-top: -80px;
  padding-top: 0;
}

/* 5. Den Abstand vom Menü zum Inhalt 80px wieder herstellen: */
body.jo-headerfix .sppb-row {
  margin-top: 80px;
}


/* Footer verschmälern - von 30px padding auf 15px */
#sp-footer .container-inner {
  padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}


