/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/


/*Ultility Classes outside CF */


/* Base styling for menu links */
.header-nav a {
  text-decoration: none;
  padding: 8px 16px;
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
}

/* Underline animation on hover */
.header-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #000;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.header-nav a:hover::after {
  width: 80%;
}

/* Active state styling (using aria-current="page") */
.header-nav a[aria-current="page"]::after {
  width: 80%;
  background-color: #000;
}





/*Button mit Bubble*/
.bubble-button {
  width: fit-content !important;
  position: relative;  /* Required for absolute positioning of pseudo-element */
  background-color: var(--dark);
  color: var(--light);
  border-radius: var(--radius-l);
  padding: 1.3rem 5rem;
  font-size: var(--text-size-l);
  cursor: pointer;
  flex: 0 0 auto;
  margin-top: 0.5rem;
}

.bubble-button:hover, .bewerben-button:hover, .button-dark:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.bubble-button[data-sa-count]::before {
  content: attr(data-sa-count);  /* Use the data-count attribute value */
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: var(--light);  /* Customize color as needed */
  color: var(--dark);
  border-radius: 50%;
  border: 1px solid #000;
  min-width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 500;
  padding: 0;
  line-height: 1;
  
  /* These are needed to center the text in the bubble */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Optional: Hide the bubble when count is zero */
.bubble-button[data-sa-count="0"]::before {
  display: none;
}

