/* Rechts wie in der Vorlage: Namensschild, runder Kopf und drei einzelne
   Holzschilder; die zwei hellen Ketten laufen hinter den Schildern weiter. */
.startseite:not(.profilseite) .profil-bereich {
  position: absolute;
  top: 24px;
  right: 24px;
  left: auto;
  z-index: 72;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 168px;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
}

.startseite:not(.profilseite) .profil-bereich::before,
.startseite:not(.profilseite) .profil-bereich::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 143px;
  bottom: 18px;
  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) .profil-bereich::before { left: 19px; }
.startseite:not(.profilseite) .profil-bereich::after { right: 19px; }

/* Das kleine Holzschild sitzt über dem runden Minecraft-Avatar. */
.startseite:not(.profilseite) .profil-account-name {
  position: relative;
  z-index: 2;
  display: block;
  box-sizing: border-box;
  min-width: 112px;
  max-width: 164px;
  margin: 0 0 9px;
  padding: 7px 14px;
  overflow: hidden;
  border: 3px solid #190e0a;
  border-radius: 7px;
  background:
    radial-gradient(circle at 6px 6px, #c58b53 0 1.5px, #3f281a 2px 3px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 6px) 6px, #c58b53 0 1.5px, #3f281a 2px 3px, transparent 3.5px),
    linear-gradient(180deg, #85522d 0 13%, #56331e 22% 70%, #3e2619);
  box-shadow: inset 0 0 0 2px #a4774c, inset 0 -3px #302015, 0 3px 5px rgba(0, 0, 0, .55);
  color: #fff7e8;
  font-size: .81rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 2px 2px #170c08;
  white-space: nowrap;
}

.startseite:not(.profilseite) .profil-zugang {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
}
.startseite:not(.profilseite) .profil-zugang::before,
.startseite:not(.profilseite) .profil-zugang::after,
.startseite:not(.profilseite) .account-switcher-zugang::before,
.startseite:not(.profilseite) .account-switcher-zugang::after,
.startseite:not(.profilseite) .logout-zugang::before,
.startseite:not(.profilseite) .logout-zugang::after { display: none; }

.startseite:not(.profilseite) .profil-bild {
  position: relative;
  z-index: 2;
  display: grid;
  flex: 0 0 132px;
  place-items: center;
  width: 132px;
  height: 132px;
  margin: 0;
  overflow: hidden;
  border: 4px solid #16191b;
  border-radius: 50%;
  background: #182125;
  box-shadow:
    0 0 0 2px #ad825e,
    0 0 0 6px #5f3e25,
    0 0 0 9px #20140e,
    inset 0 0 0 2px rgba(255, 255, 255, .14),
    3px 6px 5px rgba(0, 0, 0, .5);
}
.startseite:not(.profilseite) .profil-kopf {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

/* Originale Holz- und Metallgrafik; nur die Ecken außerhalb des
   sichtbaren Rahmens sind ausgeschnitten. */
.startseite:not(.profilseite) .profil-text,
.startseite:not(.profilseite) .account-switcher-button,
.startseite:not(.profilseite) .logout-text {
  position: relative;
  top: auto;
  left: auto;
  display: block;
  box-sizing: border-box;
  width: 156px;
  min-height: 0;
  height: 60px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid #21120b;
  border-radius: 3px;
  background: #58351e url("../images/ui/navbar.png") center -20px / auto 83px no-repeat;
  box-shadow: inset 0 0 0 1px #8e633e;
  filter: none;
  clip-path: polygon(
    16px 0, calc(100% - 16px) 0,
    calc(100% - 4px) 9px, calc(100% - 4px) calc(100% - 9px),
    calc(100% - 16px) 100%, 16px 100%,
    4px calc(100% - 9px), 4px 9px
  );
  color: #fff8ed;
  cursor: pointer;
  font-size: .89rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 2px 2px #15100e, 1px 1px 0 #15100e;
  white-space: nowrap;
  transform: none;
  transition: transform .16s ease, filter .16s ease;
}
.startseite:not(.profilseite) .profil-text { margin-top: 34px; }
.startseite:not(.profilseite) .account-switcher-zugang,
.startseite:not(.profilseite) .logout-zugang {
  position: relative;
  z-index: 2;
  display: block;
  width: 156px;
  height: auto;
  margin: 24px 0 0;
  padding: 0;
}
.startseite:not(.profilseite) .account-switcher-zugang { z-index: 5; }
.startseite:not(.profilseite) .account-switcher-button,
.startseite:not(.profilseite) .logout-text { width: 100%; }

.startseite:not(.profilseite) .profil-text::before,
.startseite:not(.profilseite) .account-switcher-button::before,
.startseite:not(.profilseite) .logout-text::before,
.startseite:not(.profilseite) .profil-text::after,
.startseite:not(.profilseite) .account-switcher-button::after,
.startseite:not(.profilseite) .logout-text::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 7px;
  bottom: 0;
  width: 35px;
  background: url("../images/ui/navbar.png") right -27px / auto 83px no-repeat;
  pointer-events: none;
}
.startseite:not(.profilseite) .profil-text::before,
.startseite:not(.profilseite) .account-switcher-button::before,
.startseite:not(.profilseite) .logout-text::before {
  left: 0;
  transform: scaleX(-1);
}
.startseite:not(.profilseite) .profil-text::after,
.startseite:not(.profilseite) .account-switcher-button::after,
.startseite:not(.profilseite) .logout-text::after { right: 0; }

.startseite:not(.profilseite) .mini-sign__label {
  position: absolute;
  z-index: 1;
  inset: 13px 25px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 0;
  margin: 0;
  padding: 0 2px;
  border: 1px solid #81736a;
  background: linear-gradient(#6a5a52, #524740 55%, #403832);
  box-shadow: inset 0 1px rgba(255, 255, 255, .13), inset 0 -2px #2a211b;
}

.startseite:not(.profilseite) .profil-zugang:hover .profil-text,
.startseite:not(.profilseite) .profil-zugang:focus-visible .profil-text,
.startseite:not(.profilseite) .account-switcher-button:hover,
.startseite:not(.profilseite) .account-switcher-button:focus-visible,
.startseite:not(.profilseite) .logout-text:hover,
.startseite:not(.profilseite) .logout-text:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.startseite:not(.profilseite) .profil-zugang:focus-visible,
.startseite:not(.profilseite) .account-switcher-button:focus-visible,
.startseite:not(.profilseite) .logout-text:focus-visible {
  outline: 2px solid #d0c6b7;
  outline-offset: 3px;
}

/* Das Accountmenü klappt zum Seiteninneren auf und bleibt vollständig bedienbar. */
.startseite:not(.profilseite) .account-switcher-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  bottom: auto;
  left: auto;
  width: min(340px, calc(100vw - 24px));
  padding: 13px;
  max-height: min(70svh, 520px);
  overflow: auto;
  border: 4px solid #20130c;
  border-radius: 7px;
  background:
    radial-gradient(circle at 10px 10px, #d1a477 0 1px, #3d2719 2px 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 10px) 10px, #d1a477 0 1px, #3d2719 2px 4px, transparent 5px),
    radial-gradient(circle at 10px calc(100% - 10px), #d1a477 0 1px, #3d2719 2px 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), #d1a477 0 1px, #3d2719 2px 4px, transparent 5px),
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 27%),
    repeating-linear-gradient(90deg, #704328 0 58px, #60371e 58px 116px);
  box-shadow: inset 0 0 0 2px #b9824e, inset 0 0 0 5px #342114, 0 12px 24px rgba(0,0,0,.52);
  scrollbar-color: #a3754e #322015;
}
.startseite:not(.profilseite) .account-switcher-kopf {
  padding: 10px 12px;
  border: 2px solid #211610;
  border-radius: 3px;
  background: linear-gradient(#776960, #4d4540 58%, #39332e);
  box-shadow: inset 0 0 0 2px #a38160, inset 0 -3px #27201a;
  color: #fff8ed;
  font-size: .85rem;
}
.startseite:not(.profilseite) .account-switcher-aktiv {
  margin: 9px 0;
  padding: 8px 10px;
  border: 2px solid #26170e;
  border-radius: 3px;
  background: linear-gradient(#35312e, #252422);
  box-shadow: inset 0 0 0 1px #866240;
}
.startseite:not(.profilseite) .account-switcher-aktiv strong { color: #c9eca2; }
.startseite:not(.profilseite) .account-switcher-liste { gap: 7px; }
.startseite:not(.profilseite) .account-switcher-eintrag {
  grid-template-columns: 34px minmax(0, 1fr) max-content;
  gap: 9px;
  padding: 7px 8px;
  border: 2px solid #21150e;
  border-radius: 3px;
  background: linear-gradient(#64564c, #403a35);
  box-shadow: inset 0 0 0 1px #947351, inset 0 -2px #261c16;
}
.startseite:not(.profilseite) .account-switcher-eintrag.aktiv {
  border-color: #4e653b;
  background: linear-gradient(#45513c, #303a2c);
  box-shadow: inset 0 0 0 1px #9aaa73, inset 0 -2px #253020;
}
/* Das Formular ist selbst die Zeile; der Knopf enthält alle drei Spalten. */
.startseite:not(.profilseite) form.account-switcher-eintrag {
  display: block;
  padding: 0;
}
.startseite:not(.profilseite) .account-switcher-eintrag button {
  grid-template-columns: 34px minmax(0, 1fr) max-content;
  gap: 9px;
  min-height: 48px;
  margin: 0;
  padding: 7px 8px;
}
.startseite:not(.profilseite) .account-switcher-eintrag span { min-width: 0; }
.startseite:not(.profilseite) .account-switcher-eintrag:not(.aktiv):hover {
  background: linear-gradient(#746052, #4c4037);
  box-shadow: inset 0 0 0 1px #c09463, inset 0 -2px #261c16;
}
.startseite:not(.profilseite) .account-switcher-eintrag button:focus-visible,
.startseite:not(.profilseite) .account-hinzufuegen:focus-visible {
  outline: 2px solid #e1c99e;
  outline-offset: -2px;
}
.startseite:not(.profilseite) .account-hinzufuegen {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 2px solid #21150e;
  border-radius: 4px;
  background: linear-gradient(#80502d, #58331e);
  box-shadow: inset 0 0 0 2px #b7804c, inset 0 0 0 4px #3e2718;
  color: #fff8ed;
}

@media (max-width: 1320px) {
  .startseite:not(.profilseite) .profil-bereich { top: 120px; right: 16px; }
}
@media (max-width: 680px) {
  .startseite:not(.profilseite) .profil-bereich {
    top: 140px;
    right: 12px;
    bottom: auto;
    transform: none;
  }
}
/* Auf sehr schmalen Anzeigen beginnen die linken Serverboxen unter dem Profil. */
@media (max-width: 660px) {
  .startseite:not(.profilseite) .profil-bereich ~ .server-overview {
    --server-top: 620px;
  }
}
