/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;

  z-index: 1000;
  width: 100%;

  background: rgba(255, 255, 255, 0.97);

  border-bottom: 1px solid rgba(0, 0, 0, 0.08);

  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}


/* =========================================================
   HEADER-INHALT
   ========================================================= */

.header-inner {
  min-height: 84px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 32px;
}


/* =========================================================
   LOGO / MARKE
   ========================================================= */

.header-brand {
  display: inline-flex;
  align-items: center;

  gap: 12px;

  flex-shrink: 0;

  text-decoration: none;
}


.header-brand:hover {
  text-decoration: none;
}


.header-brand .brand-logo {
  display: block;

  width: 58px;
  height: 58px;

  object-fit: contain;
}


/* ajordi.ch */

.brand-text {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;

  color: #000;
}


.brand-text-red {
  color: var(--red);
}


/* =========================================================
   HAUPTNAVIGATION
   ========================================================= */

.main-navigation {
  margin-left: auto;
}


.nav-list {
  display: flex;
  align-items: center;

  gap: 6px;

  margin: 0;
  padding: 0;

  list-style: none;
}


.nav-list > li {
  position: relative;
}


/* =========================================================
   ALLE HAUPTMENÜPUNKTE
   ========================================================= */

.nav-list > li > a,
.nav-list > li > button {
  display: flex;
  align-items: center;

  min-height: 44px;

  padding: 10px 14px;

  border: 0;
  border-radius: 8px;

  background-color: transparent;

  color: #000;

  font: inherit;
  font-weight: 600;
  line-height: 1.2;

  text-decoration: none;

  cursor: pointer;

  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}


/* =========================================================
   HOVER ALLER HAUPTMENÜPUNKTE
   ========================================================= */

.nav-list > li > a:hover,
.nav-list > li > a:focus-visible,
.nav-list > li > button:hover,
.nav-list > li > button:focus-visible {
  color: var(--red);

  background-color:
    color-mix(
      in srgb,
      var(--red) 8%,
      transparent
    );

  outline: none;

  text-decoration: none;
}


/* Fallback für Browser ohne color-mix */

@supports not (
  background-color:
    color-mix(in srgb, red 8%, transparent)
) {

  .nav-list > li > a:hover,
  .nav-list > li > a:focus-visible,
  .nav-list > li > button:hover,
  .nav-list > li > button:focus-visible {

    background-color: rgba(190, 28, 42, 0.08);
  }
}


/* =========================================================
   AKTIVE SEITE
   ========================================================= */

.nav-list > li > a.active {
  color: var(--red);

  background-color:
    color-mix(
      in srgb,
      var(--red) 10%,
      transparent
    );
}


/* =========================================================
   DROPDOWN-PFEIL
   ========================================================= */

.dropdown-toggle::after {
  content: "";

  width: 7px;
  height: 7px;

  margin-left: 9px;

  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;

  transform:
    translateY(-2px)
    rotate(45deg);

  transition:
    transform 0.2s ease;
}


.nav-dropdown.open > .dropdown-toggle::after {
  transform:
    translateY(2px)
    rotate(225deg);
}


/* =========================================================
   DROPDOWN-MENÜ
   ========================================================= */

.dropdown-menu {
  position: absolute;

  top: calc(100% + 8px);
  left: 0;

  z-index: 1100;

  min-width: 260px;

  margin: 0;
  padding: 8px;

  list-style: none;

  visibility: hidden;

  opacity: 0;

  transform: translateY(-6px);

  background: #fff;

  border: 1px solid rgba(0, 0, 0, 0.08);

  border-radius: 12px;

  box-shadow:
    0 16px 40px
    rgba(0, 0, 0, 0.14);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}


/* =========================================================
   DROPDOWN-LINKS
   ========================================================= */

.dropdown-menu a {
  display: flex;
  align-items: center;

  width: 100%;

  min-height: 42px;

  padding: 10px 14px;

  border-radius: 8px;

  color: #000;

  text-decoration: none;

  white-space: nowrap;

  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}


.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  color: var(--red);

  background-color:
    color-mix(
      in srgb,
      var(--red) 8%,
      transparent
    );

  outline: none;

  text-decoration: none;
}


/* =========================================================
   DROPDOWN ÖFFNEN
   ========================================================= */

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown:focus-within > .dropdown-menu,
.nav-dropdown.open > .dropdown-menu {
  visibility: visible;

  opacity: 1;

  transform: translateY(0);
}


/* =========================================================
   KONTAKT-SCHALTFLÄCHE
   ========================================================= */

.nav-list > li > .nav-contact {
  margin-left: 8px;

  padding-left: 20px;
  padding-right: 20px;

  color: #fff;

  background-color: var(--red);
}


.nav-list > li > .nav-contact:hover,
.nav-list > li > .nav-contact:focus-visible {
  color: #fff;

  background-color:
    var(--red-dark, #8f1520);
}


/* =========================================================
   MOBILE MENÜSCHALTER
   ========================================================= */

.nav-toggle {
  display: none;

  width: 46px;
  height: 46px;

  padding: 10px;

  border:
    1px solid
    rgba(0, 0, 0, 0.10);

  border-radius: 8px;

  background: #fff;

  cursor: pointer;
}


.nav-toggle span {
  display: block;

  width: 100%;
  height: 2px;

  margin: 5px 0;

  background: #000;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}


/* Hamburger → X */

.nav-toggle.active span:nth-child(1) {
  transform:
    translateY(7px)
    rotate(45deg);
}


.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}


.nav-toggle.active span:nth-child(3) {
  transform:
    translateY(-7px)
    rotate(-45deg);
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 960px) {

  .header-inner {
    position: relative;

    min-height: 74px;
  }


  .header-brand .brand-logo {
    width: 50px;
    height: 50px;
  }


  .brand-text {
    font-size: 1.3rem;
  }


  /* Hamburger anzeigen */

  .nav-toggle {
    display: block;

    margin-left: auto;
  }


  /* Navigation */

  .main-navigation {
    position: absolute;

    top: 100%;
    right: 0;
    left: 0;

    display: none;

    padding:
      12px
      0
      18px;

    background: #fff;

    border-top:
      1px solid
      rgba(0, 0, 0, 0.07);

    box-shadow:
      0 14px 24px
      rgba(0, 0, 0, 0.10);
  }


  .main-navigation.open {
    display: block;
  }


  .nav-list {
    flex-direction: column;

    align-items: stretch;

    gap: 3px;
  }


  .nav-list > li {
    width: 100%;
  }


  .nav-list > li > a,
  .nav-list > li > button {
    width: 100%;

    justify-content: space-between;

    min-height: 46px;

    padding:
      11px
      16px;

    text-align: left;
  }


  /* Kontakt */

  .nav-list > li > .nav-contact {
    width: auto;

    justify-content: center;

    margin:
      8px
      16px
      0;
  }


  /* =======================================================
     MOBILE DROPDOWN
     ======================================================= */

  .dropdown-menu {
    position: static;

    display: none;

    min-width: 0;

    margin:
      2px
      16px
      8px;

    padding: 5px;

    visibility: visible;

    opacity: 1;

    transform: none;

    background:
      rgba(0, 0, 0, 0.025);

    border: 0;

    border-radius: 8px;

    box-shadow: none;
  }


  /* Hover öffnet auf Mobilgeräten nicht */

  .nav-dropdown:hover > .dropdown-menu,
  .nav-dropdown:focus-within > .dropdown-menu {
    display: none;
  }


  /* JavaScript öffnet Dropdown */

  .nav-dropdown.open > .dropdown-menu {
    display: block;
  }


  .dropdown-menu a {
    white-space: normal;
  }

}


/* =========================================================
   KLEINE SMARTPHONES
   ========================================================= */

@media (max-width: 480px) {

  .header-inner {
    min-height: 68px;
  }


  .header-brand {
    gap: 9px;
  }


  .header-brand .brand-logo {
    width: 44px;
    height: 44px;
  }


  .brand-text {
    font-size: 1.15rem;
  }

}
/* =========================================================
   HAUPTMENÜ – DEFINITIVE FARBREGELN
   ========================================================= */

/* Normalzustand */
.nav-list > li > a,
.nav-list > li > button,
.nav-list > li > .dropdown-toggle {
  color: #000 !important;
  background-color: transparent !important;
}


/* Hover */
.nav-list > li > a:hover,
.nav-list > li > a:focus-visible,
.nav-list > li > button:hover,
.nav-list > li > button:focus-visible,
.nav-list > li > .dropdown-toggle:hover,
.nav-list > li > .dropdown-toggle:focus-visible {
  color: var(--red) !important;
  background-color: rgba(190, 28, 42, 0.10) !important;
}


/* Auch ein als "active" markierter Menüpunkt bleibt normal schwarz */
.nav-list > li > a.active,
.nav-list > li > button.active {
  color: #000 !important;
  background-color: transparent !important;
}


/* Active + Hover */
.nav-list > li > a.active:hover,
.nav-list > li > button.active:hover {
  color: var(--red) !important;
  background-color: rgba(190, 28, 42, 0.10) !important;
}


/* Kontakt ebenfalls wie normale Menüpunkte */
.nav-list > li > .nav-contact {
  color: #000 !important;
  background-color: transparent !important;
}

.nav-list > li > .nav-contact:hover,
.nav-list > li > .nav-contact:focus-visible {
  color: var(--red) !important;
  background-color: rgba(190, 28, 42, 0.10) !important;
}

body {
  padding-top: 75px;
}

/* =========================================================
   REMOTE SUPPORT
   ========================================================= */

.nav-remote-support {
    display: flex;
    align-items: center;
}

.remote-support-link {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px 12px;

    color: #111;
    text-decoration: none;
    font-weight: 600;

    border-radius: 6px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.remote-support-link:hover {
    color: var(--red);
    background-color: rgba(200, 0, 0, 0.08);
}

.remote-support-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}