/* Basis-Layout */
.ix-header {
  background-color: white;
  box-shadow: none;
}

.ix-header__inner {
  background-color: var(--ix-color-header-bg);
}
.ix-header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  background:var(--ix-color-header-bg);
  border-bottom: 1px solid #000000;  
}

.ix-header .ix-title {
  color: rgba(255, 255, 255,1);
  font-size: 0.95rem;
}

.ix-header .ix-subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.ix-header .ix-brand {
  flex-direction: column;
  text-decoration: none;
  /*margin-left: -80px;*/
}

.ix-nav { 
  display: flex; 
  gap: 0.3rem;

}

/* Standard-Link im Header */
.ix-header a {
  color: var(--ix-color-white);              /* Weißer Text auf schwarzem Header */
  background-color: transparent;             /* Keine Fläche im Normalzustand */
  padding: 0.5rem 0.6rem;                    /* Gleichmäßiger Innenabstand */
  border-radius: 4px;                        /* Sanfte Rundung */
  text-decoration: none;                     /* Kein Unterstrich */
  font-weight: 500;
  font-size: 0.85rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.1s ease;
}

/* Hover-Zustand */
.ix-header a:hover {
  background-color: var(--ix-color-neutral); /* Graphite Gray Fläche */
  color: var(--ix-color-primary);            /* Kräftiges Amber */
  transform: translateY(-1px);               /* Leichter „Lift“ beim Hover */
}

/* Aktiver Menüpunkt (dauerhaft markiert) */
.ix-header a.is-active {
  background-color: var(--ix-color-neutral); /* Graphite Gray Fläche */
  color: var(--ix-color-primary-soft);       /* Gedämpftes Amber */
  font-weight: 600;                          /* Etwas stärker betont */
  transform: none;                           /* Keine Bewegung */
}

.ix-menu-block {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* alles nach rechts */
  /*gap: 0.8rem;*/
  flex-wrap: nowrap;         /* kein Zeilenumbruch */
  min-width: 0;              /* erlaubt Schrumpfen statt Umbruch */
}

/* NAV darf leicht schrumpfen, bleibt aber in einer Zeile */
.ix-nav {
  display: flex;
  /*gap: 0.8rem;*/
  flex: 0 1 auto;
  min-width: 0;
}

/* WICHTIG, für LUPE in Navigation */
.md-header__button[for="__search"] {
  display: inline-grid !important;
  place-items: center;
  width: 2rem;
  height: 2rem;
}
/* Farbe im Dark-Header */

.md-header__button[for="__search"] .md-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--ix-color-neutral-100,);
  fill: currentColor;
}

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
Ab hier CSS für Search Field
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ 

/* Overlay: nur Sichtbarkeit/Interaktion/Layering */
.md-search {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: block !important;
}

#__search:checked ~ header .md-search {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  /* Overlay bleibt vollflächig */
  /* optional: background: rgba(0,0,0,.35); */
}

/* Boxbreite + Zentrierung */
@media screen and (min-width: 60em) {
  [data-md-toggle=search]:checked ~ .md-header .md-search__inner {
    width: 35rem !important;
    max-width: 90vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative;
  }
  /* vertikaler Startpunkt unter dem Header */
  [data-md-toggle=search]:checked ~ .md-header .md-search__inner {
    padding-top: 5.2rem; /* oder was bei dir passt */
  }
  /* Ergebnisliste folgt Boxbreite */
  [data-md-toggle=search]:checked ~ .md-header .md-search__scrollwrap {
    width: auto !important;
  }
}



/* ============================================================================
   🔍 SEARCH – Gesamtpaket (Header-Integration, MkDocs Material)
   Gliederung:
   1) Technik & Overlay-Verhalten
   2) Layout & Zentrierung
   3) Interaktion & Layer-Fixes (Checked-State Patches)
   4) Icons (Lupe ↔ Zurück & Klickbarkeit)
   5) OPTIONAL: Design/Schrift/Farben
   6) OPTIONAL: Hervorhebungen (Amber statt Blau/Gelb)
   ============================================================================ */


/* ========== 1) TECHNIK & OVERLAY-VERHALTEN ================================= */

.md-header .md-search {
  text-align: initial !important;
}

.md-search {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: block !important;
}

#__search:checked ~ header .md-search {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* ========== 2) LAYOUT & ZENTRIERUNG ======================================== */

@media screen and (min-width: 60em) {
  [data-md-toggle="search"]:checked ~ .md-header .md-search__inner {
    width: 35rem !important;
    max-width: 90vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    display: block !important;
  }

  [data-md-toggle="search"]:checked ~ .md-header .md-search__scrollwrap {
    width: auto !important;
  }
}

[data-md-toggle="search"]:checked ~ .md-header .md-search__output {
  position: static !important;
  display: block !important;
}


/* ========== 3) INTERAKTION & LAYER-FIXES (CHECKED-STATE PATCHES) ============ */

#__search:checked ~ header .md-search__overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1 !important;  /* Overlay unten */
}

#__search:checked ~ header .md-search__inner {
  position: relative !important;
  z-index: 2 !important;
  pointer-events: auto !important;
}

#__search:checked ~ header .md-search__output,
#__search:checked ~ header .md-search__scrollwrap {
  pointer-events: auto !important;
}

#__search:checked ~ header .md-search__scrollwrap {
  max-height: min(60vh, 48rem) !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
}

#__search:checked ~ .md-container {
  overflow: hidden !important;
}


/* ========== 4) ICONS (LUPE ↔ ZURÜCK & KLICKBARKEIT) ======================== */

#__search:checked ~ header .md-search .md-search__icon[for="__search"] svg:first-of-type { 
  display: none; 
}
#__search:checked ~ header .md-search .md-search__icon[for="__search"] svg:last-of-type  { 
  display: inline; 
}

#__search:checked ~ header .md-search .md-search__icon[for="__search"] {
  pointer-events: auto !important;
  cursor: pointer;
}

.md-search__options {
  position: absolute !important;
  right: 0.5rem !important;
  top: 0.35rem !important;
  display: flex !important;
  gap: 0.25rem !important;
  align-items: center !important;
  pointer-events: auto !important;
}

/* ========== 5) OPTIONAL: DESIGN / SCHRIFT / FARBEN ========================= */

.md-search__scrollwrap {
  background: #F3F4F6 !important;
  color: #374151 !important;
  border-radius: 0px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.md-search-result__link {
  display: block;
  padding: 0.6rem 1rem;
  color: #374151 !important;
  background: transparent;
  transition: background-color .2s ease, color .2s ease;
  text-decoration: none;
}

.md-search-result__link:hover,
.md-search-result__link:focus {
  background-color: rgba(245, 158, 11, 0.15) !important; /* Amber (F59E0B) weich */
  color: #E29A26 !important;                              /* gedämpftes Amber */
}

.md-search-result__meta {
  background: #F9FAFB !important;
  color: #6B7280 !important;
  border-bottom: 1px solid #E5E7EB !important;
  padding: 0.5rem 1rem !important;
}

.md-search,
.md-search__inner,
.md-search__scrollwrap,
.md-search-result__meta,
.md-search-result__link {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif !important;
  font-size: 1rem;
  line-height: 1.5;
}

/* ========== 6) OPTIONAL: HERVORHEBUNGEN (AMBER STATT BLAU/GELB) ============ */

/* 🔎 Hervorhebung im Such-Dialog (statt blau) */
.md-search-result__link mark {
  background-color: rgba(245, 158, 11, 0.3) !important;  /* Amber halbtransparent */
  color: #374151 !important;
  border-radius: 2px;
  padding: 0 2px;
  font-weight: 600;
}

/* 💛 Hervorhebung im geöffneten Dokument (statt grellem Gelb) */
.md-search-result__highlight {
  background-color: rgba(245, 158, 11, 0.4) !important; /* weiches Amber */
  color: #111827 !important;
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 600;
}

/* Einheitlicher Übergangseffekt für beide Varianten */
.md-search-result__link mark,
.md-search-result__highlight {
  transition: background-color .2s ease;
}

.md-content .md-typeset mark {
  background-color: rgba(217, 70, 126, 1) !important; 
  background-color: rgba(245, 158, 11, 0.4) !important;
}

/*
:root{
  --ix-color-primary:       #F59E0B;  
  --ix-color-primary-soft:  #E29A26; 
  --ix-color-accent:        #D9467E; 
}
*/
