/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fff;
  color: #333333;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: transparent;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Linke Seite - Logo */
.navbar-left .logo {
  height: 60px;
  width: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* Zentrierte Links */
.navbar-center {
  display: flex;
  gap: 2rem;
}

.navbar-center a {
  position: relative;
  text-decoration: none;
  color: #333333;
  font-size: 1.3rem;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  display: inline-block; /* Damit der Link auch eine Position hat */
}

/* Textmarker Effekt */
.navbar-center a.active::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 21%;
  height: 60%;
  width: 113%;
  background: #fff176;
  z-index: -1; /* Hinter dem Text */
  transition: width 0.3s ease;
}

.navbar-center a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 21%;
  height: 5%;
  width: 0%;
  background: #333333;
  z-index: -1;
  transition: width 0.3s ease;
}

.navbar-center a:hover::before {
  width: 113%;
}

/* Rechte Seite - Kons */
.navbar-right {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.navbar-right .cons {
  position: relative;
  text-decoration: none;
  color: #333333;
  font-weight: bold;
  padding: 0.5rem 0.5rem;
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease;
  width: 24px;
  height: 24px;
}

.navbar-right .cons svg {
  transition: 0.3s;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.navbar-right .cons svg:not(.search-icon):hover {
  color: #fff176;
  width: 35px;
  height: 35px;
}

/* Lupe-Such-Icon */
.search-icon {
  position: relative;
  text-decoration: none;
  cursor: pointer;
}

.search-icon svg {
  transition: 0.3s;
  width: 24px;
  height: 24px;
}


/* Suchfeld Overlay */
.search-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0.8rem 3rem;
  padding-top: 0.2rem;
  position: absolute;
  opacity: 0;
  transition: ease-in-out 0.2s;
  pointer-events: none;
}

.search-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

/* Wrapper um Input und Icon */
.search-wrapper {
  position: relative;
  width: 30%;
}

/* Input-Feld */
.search-input {
  width: 100%;
  padding: 0.8rem 3rem 0.8rem 1rem;
  font-size: 1.2rem;
  border-radius: 0;
  outline: none;
  box-shadow: 5px 5px 5px rgba(255, 241, 118, 0.7);
  border: 1px solid black;
  transition: 0.3s;
  text-overflow: ellipsis;
}

.search-input:focus {
  box-shadow: 10px 12px 5px rgba(255, 241, 118, 0.7);
}

/* Positionierung des Icons im Input */
.search-submit {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  padding: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Icon-Styling */
.suche-search {
  width: 26px;
  height: 26px;
  color: #333;
  transition: fill 0.3s ease;
}

.search-submit:hover .suche-search {
  fill: #fff176;
}



/* Hamburger Menü für kleine Bildschirme */
.hamburger-menu {
  display: none; /* Standardmäßig verstecken */
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 25px;
}

.hamburger-menu div {
  background-color: #333;
  height: 4px;
  width: 100%;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    position: relative;
  }

  .hamburger-menu {
    display: block;
    z-index: 11;
  }

  .navbar.open .mobile-menu {
    max-height: 500px;
    padding: 1.5rem;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    background-color: white;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-in-out, padding 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
  }

  .mobile-menu .top-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .mobile-menu .nav-links a {
    font-size: 1.2rem;
    text-align: left;
    color: #333;
    padding: 0.5rem 0;
    text-decoration: none;
  }

  .mobile-menu .search-icon {
    padding: 0.5rem;
  }

  .mobile-menu .bottom-row {
    width: 100%;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
  }

  .mobile-menu .bottom-row a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem;
  }

  .navbar-center,
  .navbar-right {
    display: none;
  }


  .nav-links a {
    position: relative;
  }

  .nav-links a.active::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 21%;
    height: 60%;
    width: 113%;
    background: #fff176;
    z-index: -1;
  }

  .nav-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 21%;
    height: 5%;
    width: 0%;
    background: #333333;
    z-index: -1;
    transition: width 0.3s ease;
  }
  
  .nav-links a:hover::before {
    width: 113%;
  }
}



@media (max-width: 768px) {
  .search-wrapper {
    width: 100%;
  }

  .search-overlay {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: white;
    z-index: 1000;
    top: 0;
  }

  .search-input {
    font-size: 1.1rem;
    padding: 1rem;
  }
}









/* Konto AdressBuch */

.anm_l.myLink.addrbookLinkCB.submit-btn-2.mt-20.btn-hover-2.lightbox.cboxElement::before {
    display: none !important;
}

.anm_l.myLink.addrbookLinkCB.submit-btn-2.mt-20.btn-hover-2.lightbox.cboxElement {
    color: black;
}

.addrbook_wrapper .sort-link {
    border: 1px solid black;
}

.addrbook_wrapper .sort-arrow {
     border-bottom: 4px solid black;
}

.list_hover {
    transition: 0.3s;
}

.list_hover:hover {
    background-color: #fef0769c;
}

.addrbook_list_item .arrowDown .fa.fa-chevron-down {
    color: black;
}

.edit-address-form .form-group .clearfix .form-group input[type=password], .edit-address-form .form-group .clearfix .form-group input[type=text] {
    box-shadow: none;
    border: 1px solid #ccc !important;
}

.edit-address-form .form-group .clearfix .form-group input[type=password]:focus, .edit-address-form .form-group .clearfix .form-group input[type=text]:focus {
    border: 1px solid black !important;
    box-shadow: 7px 7px 7px rgba(255, 241, 118, 0.8) !important;
}

.addrbook_button {
    background-color: transparent;
    border: 1px solid black;
    color: black;
    transition: 0.4s;
}

.addrbook_button:hover {
    background-color: black;
    color: white;
}

.addrbook_edit_button {
    background-color: transparent;
    border: 1px solid black;
    color: black;
    transition: 0.3s;
}

.addrbook_edit_button:hover {
    background-color: black;
    color: white;
}

.edit-address-form .form-group .clearfix .form-group select {
    box-shadow: none;
}

.edit-address-form .form-group .clearfix .form-group select:focus {
    border: 1px solid black !important;
    box-shadow: 7px 7px 7px rgba(255, 241, 118, 0.8) !important;
}