@import url('https://pardus-education.de/templates/nestfund/css/pd_standorte.css');

/* Design für die Standorte wird importiert */

/* =========================================================
   PARDUS – custom.css (Joomla 4 / Helix / SP Page Builder)
   Stand: aufgeräumt + kommentiert
   ========================================================= */


/* =========================================================
   1) TYPO / FONTS (Global)
   ========================================================= */

/* Google Font entfernt, weil überall Arial erzwungen wird
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
*/


body {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

/* Navigation (allgemein) */
nav a,
nav#sp-main-menu a,
.sp-megamenu-parent > li > a {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

/* Hauptnavigation etwas kräftiger */
.sp-megamenu-parent > li > a {
  font-weight: 500 !important;
}

/* SP Page Builder – wichtige Addons ebenfalls auf Arial */
.sppb-animated-number,
.sppb-addon-content,
.sppb-btn-primary,
.sp-slider,
.sp-slider [id^="sp-slider-inner-item"],
.sppb-addon-header .sppb-addon-title,
.sppb-addon-text,
.sppb-readmore,
.sppb-pricing-price {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}


/* =========================================================
   2) KLEINE UI-FIXES / LAYOUT
   ========================================================= */

/* Tabs: "Förderung" initial rot (Hover/Active/Focus) */
.nestfund-service-tab.sppb-addon-tab .sppb-nav-tabs li a:hover,
.nestfund-service-tab.sppb-addon-tab .sppb-nav-tabs li.active a,
.nestfund-service-tab.sppb-addon-tab .sppb-nav-tabs li a:focus {
  color: #ff0000 !important;
}

/* Feature-Boxen: leere P/BR entfernen + gleiche Höhe */
.home-tilebox p:empty,
.home-tilebox br {
  display: none !important;
}

.home-tilebox {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-tiles {
  flex: 1 1 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* global box sizing (sauber für Layout) */
*,
*::before,
*::after {
  box-sizing: border-box;
}


/* =========================================================
   3) FOOTER
   ========================================================= */

#sp-footer ul.menu {
  padding: 50px 0px;
}

#sp-footer ul.menu li a {
  font-size: 14px;
}


/* =========================================================
   4) KUNDENREZENSIONEN – Nummern-Bilder
   ========================================================= */

.sppb-addon-content .sppb-img-container img[src*="nummern_klein_"] {
  max-width: 55px !important;
  max-height: 56px !important;
  width: 55px !important;
  height: 55px !important;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}


/* =========================================================
   5) MAIN MENU – normales Dropdown (Nicht-Mega)
   ========================================================= */

/* Dropdown-Breite rechts (stabil ohne [style]) */
.sp-dropdown.sp-dropdown-main.sp-menu-right {
  width: 540px !important;
}

/* Menülinks nicht umbrechen (Desktop) */
.sp-menu-item > a {
  white-space: nowrap !important;
  max-width: 100%;
}

/* Aktiver Hauptmenüpunkt: rote Linie unten */
.sp-megamenu-parent .sp-menu > li.current-item.active > a {
  position: relative;
}

.sp-megamenu-parent .sp-menu > li.current-item.active > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background-color: red;
}

/* Untermenü (normales Dropdown): roter senkrechter Strich beim Hover */
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a::before {
  content: "";
  display: inline-block;
  height: 16px;
  width: 2px;
  background-color: red;
  margin-right: 10px;
  transform: translateX(-5px);
  vertical-align: middle;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover::before {
  opacity: 1;
}


/* =========================================================
   6) HEADER MOBILE – Kontaktbutton + Burger Position
   ========================================================= */

@media (max-width: 768px) {
  /* Kontaktbutton links oben */
  #btn-fded724c-db91-493a-be3c-1958888219da {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 9999;
    padding: 6px 16px;
    font-size: 15px;
  }

  /* Offcanvas/Hamburger rechts oben */
  #offcanvas-toggler {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 9999;
  }

  .sppb-row {
    position: relative;
  }
}

/* Desktop/Mobile Sichtbarkeit Kontaktbutton (gleiche ID!) */
@media (max-width: 991px) {
  #btn-fded724c-db91-493a-be3c-1958888219da {
    display: none !important;
  }
}
@media (min-width: 992px) {
  #btn-fded724c-db91-493a-be3c-1958888219da {
    display: inline-block !important;
  }
}


/* =========================================================
   7) WEITERBILDUNGSSEITEN – Button vereinheitlichen
   ========================================================= */

.btn-weiterbildung {
  width: 215px;
  height: 36px;
}


/* =========================================================
   8) ABOUT US – 2 Spalten gleich hoch
   ========================================================= */

.equal-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}

.equal-boxes > div {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: 20px;
}

@media (max-width: 991px) {
  .equal-boxes {
    flex-direction: column;
  }
  .equal-boxes > div {
    flex: 1 1 100%;
  }
}


/* =========================================================
   9) BUTTONS – Hover Border + Ecken eckig
   ========================================================= */

#btn-cbaa3486-e612-42d4-b54f-6fe9079a2c5d,
#btn-1719388375033 {
  border: 1px solid transparent !important;
  transition: all 0.3s ease;
}

#btn-cbaa3486-e612-42d4-b54f-6fe9079a2c5d:hover {
  border: 1px solid white !important;
}

#btn-1719388375033:hover {
  border-color: black !important;
}

/* Button-Ecken generell eckig */
.sppb-btn,
.sppb-btn-round {
  border-radius: 0 !important;
}


/* =========================================================
   10) OFFCANVAS (Mobile Menü)
   - Kontakt-Button: rot, schwarzer Rahmen, eckig
   - Submenu: roter Strich mit Umbruchhöhe + zentriert
   ========================================================= */

@media (max-width: 768px) {

  /* Kontakt-Button im Offcanvas */
  .offcanvas-menu a.mobile-contact-btn{
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;

    background-color: #d00 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
    border-radius: 0 !important;

    padding: 14px 16px !important;
    margin: 12px 0 20px 0 !important;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none !important;

    transition: background-color .2s ease;
  }

  .offcanvas-menu a.mobile-contact-btn:hover,
  .offcanvas-menu a.mobile-contact-btn:focus{
    background-color: #b00 !important;
    color: #fff !important;
  }

  /* Submenu-Links im Offcanvas: Platz für Strich */
  .offcanvas-menu .sp-dropdown li.sp-menu-item > a,
  .offcanvas-menu ul ul li > a {
    position: relative;
    padding-left: 22px !important;
  }

  /* Roter Strich: Höhe passt sich Umbruch an + vertikal zentriert */
  .offcanvas-menu .sp-dropdown li.sp-menu-item > a::before,
  .offcanvas-menu ul ul li > a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: calc(100% - 8px);
    width: 2px;
    background-color: red;
    opacity: 0;
    transition: opacity .15s ease;
  }

  /* sichtbar bei Hover */
  .offcanvas-menu .sp-dropdown li.sp-menu-item > a:hover::before,
  .offcanvas-menu ul ul li > a:hover::before {
    opacity: 1;
  }

  /* sichtbar bei aktiv/current */
  .offcanvas-menu .sp-dropdown li.sp-menu-item.active > a::before,
  .offcanvas-menu .sp-dropdown li.sp-menu-item.current-item > a::before,
  .offcanvas-menu ul ul li.active > a::before,
  .offcanvas-menu ul ul li.current > a::before {
    opacity: 1;
  }
}

/* Desktop: Offcanvas-Kontaktbutton ausblenden (nur Offcanvas, nicht global!) */
@media (min-width: 769px) {
  .offcanvas-menu a.mobile-contact-btn{
    display: none !important;
  }
}


/* =========================================================
   11) MEGAMENU (Helix / SP Megamenu)
   - gleiche Optik wie normales Dropdown
   - entfernt uppercase
   - roter Strich bei Hover/Active (2px wie Original)
   ========================================================= */

/* Container-Font sicher setzen */
.sp-megamenu-parent .sp-dropdown.sp-dropdown-mega,
.sp-megamenu-parent .sp-dropdown.sp-dropdown-mega *{
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

/* Link-Selektor aus deinem Inspector (gewinnt gegen template.css/preset.css) */
.sp-megamenu-parent .sp-mega-group > li > a{
  display: block !important;

  text-transform: none !important;    /* entfernt uppercase */
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;

  color: #111 !important;
  margin-bottom: 0 !important;
  padding: 6px 0 6px 18px !important; /* Platz links für Strich */

  position: relative !important;
  text-decoration: none !important;
}

/* Roter Strich (2px, umbruchfähig, zentriert) */
.sp-megamenu-parent .sp-mega-group > li > a::before{
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  width: 2px !important;
  height: calc(100% - 8px) !important;
  background: red !important;
  opacity: 0 !important;
  transition: opacity .15s ease !important;
}

.sp-megamenu-parent .sp-mega-group > li > a:hover::before{
  opacity: 1 !important;
}

.sp-megamenu-parent .sp-mega-group > li.active > a::before,
.sp-megamenu-parent .sp-mega-group > li.current-item > a::before{
  opacity: 1 !important;
}

/* Optional: Mega-Header-Items (falls Helix so klassifiziert) */
.sp-megamenu-parent li.menu_item.item-header > a{
  text-transform: none !important;
  font-weight: 400 !important;
}
@media (max-width: 768px) {
  .sppb-btn {
    display: block !important;
    margin-bottom: 12px !important;
    width: 100%;
  }
}
