/*Header Layout*/

/*Musterlayout für meiste Seiten*/
.generalSite-header {
  background: var(--panel) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
}

.generalSite-header-inner {
  max-width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  grid-auto-rows: auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  position: relative;
  overflow: visible;
  z-index: 51;
}

/*Header für Login Seite*/
.loginSite-header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  min-height: auto;
  position: relative;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}

.loginSite-header-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-rows: 1fr;
  grid-auto-rows: auto;
  gap: 12px;
  align-items: center;
  padding: 8px 16px;
  position: relative;
  overflow: visible;
}







/*Header Elemente*/

/*Homebutton im Form von Logo*/
.headerElement-homebutton-logo {
  grid-column: 1; 
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 38px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  justify-self: start;
}

.headerElement-homebutton-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  aspect-ratio: 362 / 120;
  max-width: 120px;
  background: transparent;
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
}

.headerElement-homebutton-logo:hover {
  color: var(--text);
}






/*Hauptnavigationsbereich*/
.headerElement-navigationArea {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  height: 38px;
}

/*Einzelne Navigationsbuttons der Hauptnavigation*/
.headerElement-navigationButton-link {
  color: var(--text);
  text-decoration: none;
  opacity: 0.95;
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 2px;
}

.headerElement-navigationButton-link svg,
.headerElement-navigationButton-link i {
  display: none;
}

.headerElement-navigationButton-mobile-only {
  visibility: hidden;
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
}

.headerElement-navigationButton-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.headerElement-navigationButton-link:hover::after {
  transform: scaleX(1);
}







/*Mobile: Hauptnavigationsbereich*/
.headerElement-navigationsArea-mobile { 
  grid-column: 2; 
  grid-row: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.headerElement-navigationsArea-mobile.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.headerElement-navigationsIcon-toggle-mobile {
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  position: relative;
  z-index: 101;
  pointer-events: auto;
}

.headerElement-navigationsIcon-toggle-mobile .headerElement-navigationsIcon-icon-close-mobile {
  display: none;
}

.headerElement-navigationsIcon-toggle-mobile[aria-expanded="true"] .headerElement-navigationsIcon-icon-burger-mobile {
  display: none;
}

.headerElement-navigationsIcon-toggle-mobile[aria-expanded="true"] .headerElement-navigationsIcon-icon-close-mobile {
  display: block;
}

.headerElement-navigationsIcon-toggle-mobile i {
  font-size: 26px;
}







/*Rechter Bereich (Suche und Account)*/
.headerElement-rightArea {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  justify-self: end;
}

/*Suchbereich und Elemente davon*/
.headerElement-searchArea { 
  position: relative;
  display: flex;
  align-items: center;
  height: 38px;
  width: 240px;
  max-width: 240px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.headerElement-searchArea button {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  padding: 0;
  z-index: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  pointer-events: none;
}

.headerElement-searchArea button i {
  font-size: 18px;
}

.headerElement-searchArea button:hover {
  background: transparent;
}

.headerElement-searchArea input[type="search"] {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px;
  border-radius: 9999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  box-sizing: border-box;
}

.headerElement-searchArea input[type="search"]:focus {
  outline: none;
  border-color: var(--brand);
}

.headerElement-searchArea.expanded {
  flex: 1 1 auto;
  min-width: 240px;
}

.headerElement-searchArea.collapsing {
  width: 240px !important;
  max-width: 240px !important;
}

.headerElement-searchArea-resultsList {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 100;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.headerElement-searchArea.expanded .headerElement-searchArea-resultsList.has-content {
  display: block;
}

.headerElement-searchArea-resultItem {
  display: block;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.headerElement-searchArea-resultItem:hover {
  background: var(--bg);
  border-color: var(--brand);
}

.headerElement-searchArea-noResults {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.headerElement-searchArea-resultTitle {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.headerElement-searchArea-resultDescription {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.headerElement-searchArea-resultExcerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}

.headerElement-searchArea-resultExcerpt mark {
  background-color: var(--brand);
  color: var(--text);
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 500;
}







/*Mobile: Suchicon und Elemente davon*/
.headerElement-searchArea-mobile {
  display: none;
  transition: opacity .15s ease, transform .15s ease;
}

.headerElement-searchArea-modal-mobile {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px;
  z-index: 200;
  background: var(--overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.headerElement-searchArea-modal-mobile.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.headerElement-searchArea-toggle-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  position: relative;
  z-index: 101;
  pointer-events: auto;
}

.headerElement-searchArea-toggle-mobile i {
  font-size: 20px;
}

.headerElement-searchArea-form-simple-mobile input[type="search"] {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  box-sizing: border-box;
}

.headerElement-searchArea-resultsContainer-mobile {
  margin-top: 16px;
}

.headerElement-searchArea-resultItem-mobile {
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.headerElement-searchArea-resultItem-mobile a {
  color: var(--text);
  text-decoration: none;
  display: block;
}

.headerElement-searchArea-resultItem-mobile:hover {
  background: var(--bg);
  border-color: var(--brand);
}

.headerElement-searchArea-noResults-mobile {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

.headerElement-searchArea-resultItem-mobile .headerElement-searchArea-resultTitle {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.headerElement-searchArea-resultItem-mobile .headerElement-searchArea-resultDescription {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.headerElement-searchArea-resultItem-mobile .headerElement-searchArea-resultExcerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}

.headerElement-searchArea-resultItem-mobile .headerElement-searchArea-resultExcerpt mark {
  background-color: var(--brand);
  color: var(--text);
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 500;
}








/*Accountleistebereich und Elemente davon*/
.headerElement-accountArea { 
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  flex-shrink: 0;
}

.headerElement-accountArea-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 140px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.headerElement-accountArea-panel h3 {
  text-align: center;
  font-size: 1.125rem;
  margin: 0 0 12px 0;
  color: var(--text);
}

.headerElement-accountArea-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 2px;
  box-sizing: border-box;
  border-radius: 50%;
  cursor: pointer;
  background: var(--panel);
  overflow: hidden;
  position: relative;
  z-index: 101;
  pointer-events: auto;
}

.headerElement-accountArea-trigger img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.headerElement-accountArea-trigger-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

.headerElement-accountArea-trigger.has-profile-picture .headerElement-accountArea-trigger-icon {
  display: none;
}

.headerElement-accountArea-trigger-profile {
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  object-fit: cover;
  display: none;
  position: absolute;
  top: -2px;
  left: -2px;
  border-radius: 50%;
  z-index: 2;
  box-sizing: border-box;
}

.headerElement-accountArea-trigger-profile.has-profile {
  display: block;
}

.headerElement-accountArea-trigger svg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.headerElement-accountArea[open] .headerElement-accountArea-trigger {
  background: var(--panel);
  border: 1px solid var(--border);
}

.headerElement-accountArea-panelLayout {
  display: grid;
  gap: 8px;
}

.headerElement-accountArea-panelLayout-link {
  margin-top: 4px;
  padding: 8px 2px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-weight: normal;
  cursor: pointer;
  text-align: left;
  position: relative;
  opacity: 0.95;
  display: block;
  transition: opacity 0.2s ease;
}

.headerElement-accountArea-panelLayout-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.headerElement-accountArea-panelLayout-link:hover {
  background: transparent;
  opacity: 1;
  color: var(--text);
}

.headerElement-accountArea-panelLayout-link:hover::after {
  transform: scaleX(1);
}

.headerElement-accountArea-panelLayout.hiding {
  opacity: 0;
  transform: translateY(-10px);
}

.headerElement-accountArea-panelLayout label {
  display: grid;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
}






/**************************************************************************************************************/
/**************************************************************************************************************/
/************************************RESOLUTION Abhangige Einstellungen****************************************/
/**************************************************************************************************************/
/**************************************************************************************************************/

@media (min-width: 1024px) {
  .headerElement-navigationsArea-mobile {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  
  .burgerMenu-page-navigation {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .headerElement-searchArea.expanded ~ .headerElement-navigationsArea-mobile {
    opacity: 0;
    pointer-events: none;
  }
}

@media (min-width: 1024px) {
  .headerElement-searchArea.expanded .headerElement-searchArea-resultsList {
    left: 50%;
    right: auto;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    transform: translateX(-50%);
    margin-left: 0;
  }
}

@media (max-width: 1024px) {
  .generalSite-header-inner {
    grid-template-columns: auto 1fr auto auto auto;
    column-gap: 8px;
    row-gap: 12px;
  }

  .headerElement-rightArea {
    grid-column: 3 / 5;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
  }

  .loginSite-header-inner {
    grid-template-columns: auto 1fr auto auto auto;
    column-gap: 8px;
    row-gap: 12px;
  }

  .headerElement-navigationButton-link {
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    height: auto;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .headerElement-navigationButton-link svg,
  .headerElement-navigationButton-link i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.8;
    display: block;
    text-align: center;
  }

  .headerElement-navigationButton-link i {
    font-size: 20px;
    line-height: 20px;
  }

  @media (hover: hover) {
    .headerElement-navigationButton-link:hover {
      background: rgba(59, 130, 246, 0.15);
      transform: translateX(4px);
      box-shadow: inset 3px 0 0 var(--brand);
    }

    .headerElement-navigationButton-link:hover svg,
    .headerElement-navigationButton-link:hover i {
      opacity: 1;
      color: var(--brand);
    }
  }

  .headerElement-navigationButton-link:active {
    background: rgba(59, 130, 246, 0.15);
    transform: scale(0.98);
    box-shadow: inset 3px 0 0 var(--brand);
  }

  .headerElement-navigationButton-link::after {
    display: none;
  }

  .headerElement-navigationArea {
    flex-direction: column;
    margin: 0;
    padding: 0;
    width: 100%;
    gap: 8px;
    height: auto;
  }

  .headerElement-navigationsIcon-toggle-mobile {
    display: inline-flex;
    grid-column: 5;
    grid-row: 1;
    z-index: 101;
    pointer-events: auto;
  }

  .headerElement-navigationsArea-mobile {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    transform: translateY(-6px);
    top: var(--header-height);
    width: 100%;
    max-width: none;
    max-height: calc(100vh - var(--header-height));
    padding: 20px 16px;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 100;
    overflow-y: auto;
  }
  
  .headerElement-navigationsArea-mobile.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .headerElement-navigationArea-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0;
    width: 100%;
  }

  .headerElement-searchArea {
    display: none;
  }

  .headerElement-searchArea-mobile {
    display: block;
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    top: var(--header-height);
    width: min(calc(100% - 24px), 85vw);
    max-width: none;
    min-height: 140px;
    max-height: 70vh;
    padding: 36px 24px;
    box-sizing: border-box;
    z-index: 100;
    overflow-y: auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
  }
  
  .headerElement-searchArea-mobile.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .headerElement-searchArea-toggle-mobile {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    z-index: 101;
    pointer-events: auto;
  }

  .headerElement-accountArea {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
  }
  
  .headerElement-navigationButton-mobile-only {
    visibility: visible !important;
    position: relative !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    display: flex !important;
  }

  .headerElement-searchArea-form-simple-mobile {
    width: 100%;
  }

  .headerElement-searchArea-resultItem-mobile {
    display: block;
    text-decoration: none;
    color: var(--text);
  }

  .headerElement-searchArea-noResults-mobile {
    padding: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
  }
  
  .headerElement-searchArea-modal-mobile {
    padding: 0;
    align-items: stretch;
  }

  .burgerMenu-page-navigation {
    width: 100%;
    margin: 8px 0;
  }

  .burgerMenu-nav-category {
    width: 100%;
    margin-bottom: 4px;
  }

  .burgerMenu-nav-category-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: default;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    list-style: none;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
    user-select: none;
  }
  
  .burgerMenu-nav-category-title::marker {
    display: none;
  }

  .burgerMenu-nav-category-title::-webkit-details-marker {
    display: none;
  }

  .burgerMenu-nav-category-text-link {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
  }

  .burgerMenu-nav-category-dropdown-area {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    cursor: pointer;
    margin-left: 8px;
  }

  .burgerMenu-nav-category-spacer {
    flex: 1;
    min-width: 0;
  }

  .burgerMenu-nav-category-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .burgerMenu-nav-category[data-level="0"][open] > .burgerMenu-nav-category-title {
    background: color-mix(in srgb, var(--brand) 3.5%, transparent);
    box-shadow: inset 3px 0 0 color-mix(in srgb, var(--brand) 50%, transparent);
  }

  .burgerMenu-nav-category[data-level="1"][open] > .burgerMenu-nav-category-title {
    background: color-mix(in srgb, var(--brand) 2%, transparent);
    box-shadow: inset 3px 0 0 color-mix(in srgb, var(--brand) 22%, transparent);
  }

  .burgerMenu-nav-category[data-level="2"][open] > .burgerMenu-nav-category-title,
  .burgerMenu-nav-category[data-level="3"][open] > .burgerMenu-nav-category-title {
    background: color-mix(in srgb, var(--brand) 1%, transparent);
    box-shadow: inset 3px 0 0 color-mix(in srgb, var(--brand) 15%, transparent);
  }

  @media (hover: hover) {
  .burgerMenu-nav-category-title:hover {
      background: rgba(59, 130, 246, 0.15);
    color: var(--brand);
      transform: translateX(4px);
      box-shadow: inset 3px 0 0 var(--brand);
    }
  }

  .burgerMenu-nav-category-title:active {
    background: rgba(59, 130, 246, 0.15);
    transform: scale(0.98);
    box-shadow: inset 3px 0 0 var(--brand);
  }

  .burgerMenu-nav-category-title i {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    opacity: 0.8;
  }

  @media (hover: hover) {
    .burgerMenu-nav-category-title:hover i {
      opacity: 1;
      color: var(--brand);
    }
  }

  .burgerMenu-nav-category-content {
    padding: 0;
    background: transparent;
    border-left: none;
    margin-left: 0;
    margin-top: 4px;
  }

  .burgerMenu-nav-dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    border-left: none;
  }

  @media (hover: hover) {
  .burgerMenu-nav-dropdown-item:hover {
      background: rgba(59, 130, 246, 0.15);
    color: var(--brand);
      transform: translateX(4px);
      box-shadow: inset 3px 0 0 var(--brand);
    }
  }

  .burgerMenu-nav-dropdown-item:active {
    background: rgba(59, 130, 246, 0.15);
    transform: scale(0.98);
    box-shadow: inset 3px 0 0 var(--brand);
  }

  .burgerMenu-nav-dropdown-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--brand);
    font-weight: 500;
    box-shadow: inset 3px 0 0 var(--brand);
  }

  .burgerMenu-nav-dropdown-item.favorited {
    color: #fbbf24;
  }

  @media (hover: hover) {
  .burgerMenu-nav-dropdown-item.favorited:hover {
    color: #f59e0b;
    }
  }

  .burgerMenu-nav-category .burgerMenu-nav-category {
    margin-bottom: 0;
  }

  .burgerMenu-nav-category .burgerMenu-nav-category-title {
    font-weight: 500;
    padding: 12px 16px;
  }

  .burgerMenu-nav-category .burgerMenu-nav-category-content {
    margin-left: 0;
    border-left: none;
    margin-top: 4px;
  }

}