﻿/* =========================================================
   MY1STMIO – Content Access Badges
   Paket 2B – Feinschliff v2.3
   public  -> FREI
   member  -> LOGIN
   premium -> PREMIUM
   ========================================================= */

/* Linkzeile: Titel links, Status rechts */
.content-nav-link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  white-space: nowrap !important;
}

/* 1) Benchmark MSCI World: normal, nicht fett */
.content-nav-title {
  min-width: 0;
  white-space: nowrap;
  font-weight: 400 !important;
}

/* 2) Status kleiner als Titel */
.content-access-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: .34rem;
  white-space: nowrap;
  font-size: .60rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
}

/* FREI jetzt weiß statt grün */
.content-access-badge--public {
  color: rgba(255,255,255,.90) !important;
}

.content-access-badge--public .content-access-badge__dot {
  background: rgba(255,255,255,.92) !important;
  box-shadow: none !important;
}

/* LOGIN/PREMIUM im MY1STMIO-Gold */
.content-access-badge--login,
.content-access-badge--premium {
  color: #d7a12a !important;
}

.content-access-badge--login .content-access-badge__dot {
  background: #d7a12a !important;
  box-shadow: none !important;
}

/* 3) Punkte kleiner und ruhiger */
.content-access-badge__dot {
  width: .44rem;
  height: .44rem;
  flex: 0 0 .44rem;
  border-radius: 50%;
}

/* 3) Schloss kleiner und ruhiger */
.content-access-badge__lock {
  position: relative;
  width: .50rem;
  height: .43rem;
  flex: 0 0 .50rem;
  margin-top: .04rem;
  border: 1.2px solid currentColor;
  border-radius: .06rem;
  box-sizing: border-box;
}

.content-access-badge__lock::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% - 1px);
  width: .31rem;
  height: .28rem;
  transform: translateX(-50%);
  border: 1.2px solid currentColor;
  border-bottom: 0;
  border-radius: .24rem .24rem 0 0;
  box-sizing: border-box;
}

/* Fallback */
.content-access-badge--unavailable {
  color: rgba(185,195,205,.58) !important;
}

/* ---------------------------------------------------------
   4) Desktop
   --------------------------------------------------------- */
.main-nav__dropdown {
  width: max-content !important;
  min-width: 285px !important;
  max-width: min(360px, calc(100vw - 24px));
}

.main-nav__dropdown > a.content-nav-link {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: .72rem .92rem !important;
  box-sizing: border-box;

  /* Titelgröße */
  font-size: .72rem !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
}

.main-nav__dropdown .content-nav-title {
  color: rgba(255,255,255,.88) !important;
  font-weight: 400 !important;
}

/* ---------------------------------------------------------
   4) iPhone / Mobile
   --------------------------------------------------------- */
.mobile-nav__submenu a.content-nav-link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: .70rem !important;
  width: 100%;
  box-sizing: border-box;
  font-weight: 400 !important;
}

.mobile-nav__submenu .content-nav-title {
  font-weight: 400 !important;
}

/* Status auf Mobile bewusst kleiner als Seitentitel */
.mobile-nav__submenu .content-access-badge {
  font-size: .57rem !important;
  font-weight: 500 !important;
  gap: .30rem;
}

@media (max-width: 620px) {
  .mobile-nav__submenu a.content-nav-link {
    gap: .62rem !important;
  }

  .mobile-nav__submenu .content-access-badge__dot {
    width: .42rem;
    height: .42rem;
    flex-basis: .42rem;
  }

  .mobile-nav__submenu .content-access-badge__lock {
    width: .48rem;
    height: .41rem;
    flex-basis: .48rem;
  }
}
