/* Navbar Styles */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding-top: 20px;
  padding-bottom: 20px;
}

.navbar-brand img {
  height: 50px;
  width: auto;
  transition: height 0.3s ease;
}

/* Abstand für große Screens */
@media (min-width: 1200px) {
  .ms-lg-8 {
    margin-left: 150px;
  }
}

/* Full‑width dropdown mega menu */
.position-static {
  position: static;
}

.full-width-dropdown {
  width: 100%;
  margin-top: 0;
  left: 0;
  right: 0;
  animation: fadeIn 0.3s ease;
  scrollbar-width: none;    /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
.full-width-dropdown::-webkit-scrollbar {
  display: none;            /* Chrome, Safari, Opera */
}

/* (Optional: falls du .mega-menu nutzt) */
.mega-menu {
  min-width: 600px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.3s ease;
  border-radius: 8px;
}

/* Mobile‑Scrollbars für Dropdowns */
@media (max-width: 991.98px) {
  .navbar-collapse {
    max-height: 80vh;
    overflow-y: auto;
  }
  .dropdown-menu {
    max-height: 60vh;
    overflow-y: auto;
  }
}

/* Fade‑In Animation für die Mega‑Menus */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile‑Justify für dein Collapse‑Container */
@media (max-width: 1200px) {
  .mega-menu123 {
    justify-content: space-around;
  }
}



/*─────────────────────────────────────────────*/
/* Flush hover underline + no more dashed bits */
/*─────────────────────────────────────────────*/

/* 1) Disable the old ::after dashes completely */
.navbar .nav-link::after {
  display: none !important;
}

/* 2) On hover/focus, give each link a solid bottom border that overlaps the dropdown */
.navbar .nav-item > .nav-link {
  position: relative;
  padding-bottom: 0.5rem; /* make room for the border */
  transition: border-color 0.3s ease;
}
.navbar .nav-item:hover > .nav-link,
.navbar .nav-link:focus {
  border-bottom: 3px solid #0d6efd;
  color:#0d6efd;
  margin-bottom: -3px; /* pull it down to meet the dropdown */
}

/* 3) Remove all box‑shadows so it’s perfectly flush */
.navbar.shadow-sm,              /* the fixed‑top bar */
.full-width-dropdown,           /* your mega‑menu container */
.dropdown-menu {
  box-shadow: none !important;
}

/* 4) (Optional) Remove the blue focus‑ring if you don’t want it at all */
.navbar .nav-link:focus {
  outline: none;
  box-shadow: none;
}

/*────────────────────────────────────────────────────────────────*/
/* 1) Mega‑menu card refinements                                   */
/*────────────────────────────────────────────────────────────────*/
.full-width-dropdown .p-3 {
  transition: 
    background-color 0.25s ease, 
    transform 0.25s ease, 
    border-color 0.25s ease, 
    box-shadow 0.25s ease;
  border-color: #e6e6e6; /* soften default border */
}
.full-width-dropdown .p-3:hover {
  background-color: rgba(0, 123, 255, 0.05);
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/*────────────────────────────────────────────────────────────────*/
/* 2) Mobile (collapsed) menu: remove hover‑underline, add dividers */
/*────────────────────────────────────────────────────────────────*/
@media (max-width: 991.98px) {
  /* a) remove the hover‑underline you added earlier */
  .navbar-collapse .nav-link {
    border-bottom: none !important;
    margin-bottom: 0 !important;
  }

  /* b) add a light grey border under each menu item */
  .navbar-collapse .nav-item {
    border-bottom: 1px solid #e0e0e0;
  }
  .navbar-collapse .nav-item:last-child {
    border-bottom: none;
  }

  /* c) give links a bit more tap area */
  .navbar-collapse .nav-link {
    padding: 0.75rem 1rem;
  }
}


/*──────────────────────────────────────────────────────────*/
/* SPACING ADJUSTMENTS FOR LOGO, LINKS & CTA               */
/*──────────────────────────────────────────────────────────*/

/* a) Space to the right of your logo */
.navbar-brand {
  margin-right: 2rem;
}

/* b) Even gap between each main nav item */
.navbar-nav .nav-item + .nav-item {
  margin-left: 1.5rem;
}

/* c) Push the “Pflege anfragen” button further right */
.navbar-nav.ms-auto {
  margin-left: 2rem;
}

/* d) Make room for your HTML‑inserted carets */
.navbar .dropdown-toggle {
  padding-right: 1rem; /* adjust as needed based on your icon width */
}
.fs---0{
  font-size:8px;
}


/*──────────────────────────────────────────────────────────────*/
/* 1) Desktop: only apply horizontal spacing at ≥992px          */
/*──────────────────────────────────────────────────────────────*/
@media (min-width: 992px) {
  .navbar-nav .nav-item + .nav-item {
    margin-left: 1.5rem;
  }
}

/*──────────────────────────────────────────────────────────────*/
/* 2) Mobile: fix collapsed menu indent & caret placement      */
/*──────────────────────────────────────────────────────────────*/
@media (max-width: 991.98px) {
  /* a) Remove the extra margin that pushed items in */
  .navbar-nav .nav-item + .nav-item {
    margin-left: 0 !important;
  }

  /* b) Give all links a uniform left‑pad so they line up */
  .navbar-collapse .nav-link {
    padding: 0.75rem 1rem;    /* your existing padding */
    padding-left: 1.5rem;     /* bump left‑pad for a clean gutter */
  }

  /* c) Make sure your <i> icon (caret) sits right after the text */
  .navbar-collapse .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    width: auto;              /* don’t force full‑width */
    padding-right: 1rem;      /* room for your icon */
  }
  .navbar-collapse .dropdown-toggle i {
    margin-left: 0.5rem;      /* a little breathing room */
  }
}
/*────────────────────────────────────────────────────────────────*/
/*  Align mega‑menu buttons flush to the bottom, same width     */
/*────────────────────────────────────────────────────────────────*/
.full-width-dropdown .p-3 {
  display: flex;
  flex-direction: column;
}

.full-width-dropdown .p-3 .btn {
  margin-top: auto;       /* push the button down */
  align-self: center;     /* center it horizontally */
  width: 215px;           /* <-- set your desired uniform width */
}
