/* --------------------------------------------- */
/* MEMBER ICON                                   */
/* --------------------------------------------- */

.adhs-member-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 9999;
  margin-right: 10px;
}

.adhs-member-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--color-accent-purple);
}

.adhs-member-icon:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.logged-in .adhs-member-icon svg {
  fill: var(--color-accent-orange);
}


/* --------------------------------------------- */
/* MAIL ICON (NEU)                               */
/* --------------------------------------------- */

.adhs-mail-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 9999;
}

.adhs-mail-wrapper {
  position: relative;
  width: 40px;
  height: 40px;
}

.adhs-mail-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--color-secondary-text-light);
  transition: 0.2s ease;
}

/* Hover */
.adhs-mail-icon:hover svg {
  fill: var(--color-accent-orange);
}

/* Badge (rote 1) */
.adhs-mail-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-danger);
  color: var(--color-white);
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  line-height: 1;
  display: none !important;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

/* Wenn Badge sichtbar sein soll */
.adhs-mail-badge[style*="display: flex"] {
  display: flex !important;
}


/* --------------------------------------------- */
/* LOGOUT ICON                                   */
/* --------------------------------------------- */

.adhs-logout-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
}

.adhs-logout-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--color-secondary-text-light);
  transition: 0.2s ease;
}

.adhs-logout-icon:hover svg {
  fill: var(--color-accent-orange);
}


/* --------------------------------------------- */
/* Header Alignment (Kadence)                    */
/* --------------------------------------------- */

.site-header-main-section-right {
    display: flex;
    align-items: center;
}

.mobile-toggle-open-container {
    display: flex;
    align-items: center;
}

/* Gemeinsame Abstände */
.adhs-mail-icon,
.adhs-member-icon,
.adhs-logout-icon {
    margin-left: 10px; /* Icons rücken nach rechts */
}


/* --------------------------------------------- */
/* LOGOUT POPUP                                   */
/* --------------------------------------------- */

#adhs-logout-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-index-popup);
}

.adhs-popup-inner {
  background: var(--color-white);
  padding: 24px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  font-size: 18px;
}

.adhs-popup-inner button {
  margin: 10px;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

#adhs-logout-yes {
  background: var(--color-secondary-text-light);
  color: var(--color-white);
}

#adhs-logout-no {
  background: var(--color-gray-light);
  color: var(--color-secondary-text);
}

#adhs-logout-yes:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

#adhs-logout-no:hover {
  background: var(--color-primary-light);
  color: var(--color-secondary-text);
}

/* Extra Abstand zwischen Mail-Icon und Menübutton */
.adhs-mail-icon {
    margin-right: 18px; /* oder 20px, 24px – je nach Geschmack */
}

#pg-unread-wrapper {
    position: absolute;
    left: -9999px;   /* weit außerhalb des sichtbaren Bereichs */
    top: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}




