/* Die Zugangsschilder verwenden denselben Rahmen und dieselbe Kette wie die Statusschilder. */
.startseite:not(.profilseite) .auth-zugang {
  --auth-top: 34px;
  position: fixed;
  top: var(--auth-top);
  right: 24px;
  z-index: 65;
  display: grid;
  width: min(320px, calc(100vw - 28px));
  gap: 18px;
  isolation: isolate;
}

.startseite:not(.profilseite) .auth-zugang::before,
.startseite:not(.profilseite) .auth-zugang::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: calc(0px - var(--auth-top));
  bottom: 0;
  width: 16px;
  background: url("../images/chain.png?v=20260924-light-steel") center top / 114px 326px repeat-y;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25));
  pointer-events: none;
}
.startseite:not(.profilseite) .auth-zugang::before { left: 11px; }
.startseite:not(.profilseite) .auth-zugang::after { right: 11px; }

.startseite:not(.profilseite) .auth-zugang .auth-button {
  position: relative;
  z-index: 1;
  display: block;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  padding: 0;
  color: #fff6e8;
  border: solid transparent;
  border-width: 26px 34px 15px 0;
  border-image-source: url("../images/ui/navbar.png");
  border-image-slice: 34 45 18 100 fill;
  border-image-width: 26px 34px 15px 0;
  border-image-repeat: stretch;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 4px 1px #130a06) drop-shadow(0 9px 11px rgba(0, 0, 0, .42));
  font-size: .95rem;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 2px 2px #15100e, 1px 1px 0 #15100e;
  transition: transform .16s ease, filter .16s ease;
}

/* Das rechte Metall-Endstück spiegelt sich am linken Rand, samt Nieten. */
.startseite:not(.profilseite) .auth-zugang .auth-button::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: -26px;
  bottom: -15px;
  left: 0;
  box-sizing: border-box;
  width: 34px;
  border: solid transparent;
  border-width: 26px 34px 15px 0;
  border-image-source: url("../images/ui/navbar.png");
  border-image-slice: 34 45 18 100 fill;
  border-image-width: 26px 34px 15px 0;
  border-image-repeat: stretch;
  pointer-events: none;
  transform: scaleX(-1);
}

/* Oben die Holzleiste freilassen; der Linktext bleibt echtes HTML. */
.startseite:not(.profilseite) .auth-zugang .auth-button::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 8px 0 0;
  background: linear-gradient(to bottom, #665449, #635147 34%, #493e38 52%, #453a34);
  pointer-events: none;
}

.startseite:not(.profilseite) .auth-zugang .auth-button__label {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 35px;
  margin-left: 34px;
  padding: 6px 3px;
  border: 1px solid rgba(180, 132, 83, .56);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), transparent 45%, rgba(16, 10, 7, .08));
  box-shadow: inset 0 1px rgba(255, 255, 255, .13), inset 0 -1px rgba(23, 14, 9, .65);
}

.startseite:not(.profilseite) .auth-zugang .auth-button:hover,
.startseite:not(.profilseite) .auth-zugang .auth-button:focus-visible {
  filter: brightness(1.08) drop-shadow(0 7px 7px rgba(0, 0, 0, .55));
  transform: translateY(-3px) scale(1.015);
}
.startseite:not(.profilseite) .auth-zugang .auth-button:focus-visible {
  outline: 2px solid #d0c6b7;
  outline-offset: 3px;
}

@media (min-width: 681px) and (max-width: 1380px) {
  .startseite:not(.profilseite) .auth-zugang {
    --auth-top: 120px;
    right: 16px;
    width: min(300px, calc(100vw - 32px));
  }
}

@media (max-width: 680px) {
  .startseite:not(.profilseite) .auth-zugang {
    --auth-top: 140px;
    right: 12px;
    width: min(300px, calc(100vw - 24px));
    gap: 16px;
  }
}

/* Auf schmalen Ansichten hängen die Statusschilder erst unter den Zugangsbuttons. */
@media (max-width: 760px) {
  .startseite:not(.profilseite) .auth-zugang {
    position: absolute;
  }
  .startseite:not(.profilseite) .auth-zugang ~ .server-overview {
    --server-top: 330px;
  }
}
@media (max-width: 680px) {
  .startseite:not(.profilseite) .auth-zugang ~ .server-overview {
    --server-top: 350px;
  }
}
