/* Hauptnavigation direkt unter dem Portal-Header. */
.portal-mainnav-wrap {
  position: relative;
  z-index: 40;
  margin: 0 0 22px;
  border-bottom: 1px solid #cfd6d3;
  background: linear-gradient(180deg, #3a3d3f 0%, #252829 52%, #181a1b 100%);
  box-shadow: 0 7px 18px rgba(16, 27, 23, .12);
}

.portal-mainnav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 46px;
}

.portal-mainnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  min-height: 46px;
  padding: 0 20px;
  border-left: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.88);
  font-size: 13px;
  font-weight: 680;
  line-height: 1;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

.portal-mainnav a:last-child {
  border-right: 1px solid rgba(255,255,255,.07);
}

.portal-mainnav a:hover,
.portal-mainnav a:focus-visible {
  background: rgba(255,255,255,.07);
  color: #fff;
}

.portal-mainnav a.is-active {
  background: linear-gradient(180deg, #e39a2d, #c77b16);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.18);
}

.portal-mainnav a.is-active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: rgba(255,255,255,.72);
}

/* Seitennavigation bleibt als eigener Portalbaustein bestehen. */
.portal-navgroup { margin-bottom: 14px; overflow: hidden; border: 1px solid var(--ts-border); border-radius: var(--ts-radius-md); background: var(--ts-surface); }
.portal-navgroup__title { margin: 0; padding: 10px 12px; background: var(--ts-green-800); color: #fff; font-size: 12px; line-height: 1.2; letter-spacing: .065em; text-transform: uppercase; }
.portal-sidenav { display: flex; flex-direction: column; padding: 6px; }
.portal-sidenav a { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 9px; border-radius: 6px; color: #29453a; font-size: 14px; font-weight: 650; }
.portal-sidenav a:hover, .portal-sidenav a.is-active { background: var(--ts-green-100); color: var(--ts-green-900); }
.portal-sidenav a small { font-size: 11px; font-weight: 700; }
.portal-linklist { display: flex; flex-direction: column; }
.portal-linklist a { padding: 9px 0; border-bottom: 1px solid var(--ts-border); color: var(--ts-green-800); font-weight: 700; }
.portal-linklist a:last-child { border-bottom: 0; }

@media (max-width: 899px) {
  .portal-mainnav-wrap { display: none; }
}


/* v129: feine Trennlinien in der linken Seitennavigation */
.portal-sidenav a {
    position: relative;
    border-bottom: 1px solid rgba(37, 91, 67, .11);
    border-radius: 0;
}
.portal-sidenav a:last-child {
    border-bottom: 0;
}
.portal-sidenav a:hover,
.portal-sidenav a.is-active {
    border-radius: 6px;
}


/* V203 – Einheitliche Premium-Kacheln; Motiv und Kachel sind getrennt. */
.portal-mainnav a {
  gap: 8px;
  min-width: 118px;
  padding-inline: 15px;
}
.portal-mainnav__icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #d9b158;
  border-radius: 7px;
  background: linear-gradient(145deg,#fff8e8 0%,#f7e8c3 58%,#efd494 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.72);
}
.portal-mainnav__icon .ts-icon--graphic {
  display: block;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
}
.portal-mainnav__label {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}
.portal-mainnav a:hover .portal-mainnav__icon,
.portal-mainnav a:focus-visible .portal-mainnav__icon {
  border-color: #e6bd61;
  box-shadow: 0 2px 5px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.82);
}
.portal-mainnav a.is-active .portal-mainnav__icon {
  border-color: #c88b22;
  box-shadow: 0 2px 5px rgba(78,43,3,.28), inset 0 1px 0 rgba(255,255,255,.84);
}
