/* ================================
   Grundlegende Header-Einstellungen
   ================================ */

.site-header .size-karuna-hero,
.custom-header {
}

@media screen and (max-width: 767px) {
  .site-header .size-karuna-hero,
  .custom-header {
    max-width: 1654px !important;
    width: 275% !important;
  }
}

.blog .custom-header {
  display: none;
}

.category .custom-header {
  display: none;
}

.page-id-2671 .custom-header {
  display: none;
}


/* ================================
   Name im Header
   ================================ */

.site-header .site-title,
.site-header .site-title a,
#masthead .site-title,
#masthead .site-title a {
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}


/* ================================
   Desktop-Header
   ================================ */

@media screen and (min-width: 768px) {

  /* Mehr Platz für den Namen */
  .site-header .site-branding,
  #masthead .site-branding {
    width: 42% !important;
    max-width: none !important;
  }

  /* Navigation */
  .site-header .main-navigation,
  #masthead .main-navigation {
    width: 58% !important;
  }

  /* Nur die Hauptnavigation einzeilig halten */
  .site-header .main-navigation > ul,
  .site-header .main-navigation > div > ul,
  #masthead .main-navigation > ul,
  #masthead .main-navigation > div > ul {
    white-space: nowrap !important;
  }

  /* Hauptmenüpunkte nicht umbrechen */
  .site-header .main-navigation > ul > li,
  .site-header .main-navigation > div > ul > li,
  #masthead .main-navigation > ul > li,
  #masthead .main-navigation > div > ul > li {
    white-space: nowrap !important;
  }

  .site-header .main-navigation > ul > li > a,
  .site-header .main-navigation > div > ul > li > a,
  #masthead .main-navigation > ul > li > a,
  #masthead .main-navigation > div > ul > li > a {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  /* Untermenüs wieder korrekt untereinander anzeigen */
  .site-header .main-navigation ul ul,
  #masthead .main-navigation ul ul {
    white-space: normal !important;
  }

  .site-header .main-navigation ul ul li,
  #masthead .main-navigation ul ul li {
    display: block !important;
    float: none !important;
    white-space: normal !important;
  }

  .site-header .main-navigation ul ul li a,
  #masthead .main-navigation ul ul li a {
    display: block !important;
    white-space: nowrap !important;
  }
}

/* Untermenüs an lange Menütexte anpassen */
@media screen and (min-width: 768px) {
  .site-header .main-navigation ul ul,
  #masthead .main-navigation ul ul {
    width: max-content !important;
    min-width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
  }

  .site-header .main-navigation ul ul li,
  #masthead .main-navigation ul ul li {
    width: 100% !important;
  }

  .site-header .main-navigation ul ul li a,
  #masthead .main-navigation ul ul li a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    padding-right: 28px !important;
    white-space: nowrap !important;
  }
}