/* Gemeinsames Kontoschild für Profilzugang und Profilseite. */
.wallet-sign {
  position: relative;
  z-index: 2;
  width: 190px;
  max-width: 100%;
  margin: 24px 0 0;
  padding: 17px 12px 13px;
  border: 4px solid #24170f;
  border-radius: 8px;
  background:
    radial-gradient(circle at 5px 5px, #e1bc81 0 1px, #61442d 2px 3px, transparent 4px),
    radial-gradient(circle at calc(100% - 5px) 5px, #e1bc81 0 1px, #61442d 2px 3px, transparent 4px),
    radial-gradient(circle at 5px calc(100% - 5px), #e1bc81 0 1px, #61442d 2px 3px, transparent 4px),
    radial-gradient(circle at calc(100% - 5px) calc(100% - 5px), #e1bc81 0 1px, #61442d 2px 3px, transparent 4px),
    linear-gradient(100deg, #49382b, #302720 55%, #413125);
  box-shadow: inset 0 0 0 2px #ac8256, inset 0 0 0 5px #251a13,
    0 0 0 1px #b0895f, 0 5px 10px #0009;
  color: #fff2d9;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  text-align: center;
  text-shadow: 0 1px 2px #130b07;
}
.wallet-sign .wallet-sign__heading {
  margin: 0;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
}
.wallet-sign .wallet-sign__balance {
  margin: 4px 0 10px;
  color: #ffe298;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.wallet-sign__topup {
  width: 100%;
  min-height: 36px;
  padding: 7px 4px;
  border: 1px solid #b08b5d;
  border-radius: 4px;
  background: linear-gradient(#61422d, #3f2b20);
  box-shadow: inset 0 0 0 2px #27180f, 0 2px 3px #0006;
  color: #e3d5bf;
  font-size: .75rem;
  font-weight: 700;
  cursor: not-allowed;
  opacity: 1;
}
.wallet-sign__limit {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid #94744b;
}
.wallet-sign .wallet-sign__amount {
  margin: 5px 0 9px;
  color: #ffe3a4;
  font-size: .85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.wallet-sign__amount span { font-size: .72rem; font-weight: 400; }
/* Kein Füllstand: es existiert noch kein abrufbares Ausgabenbudget. */
.wallet-sign__track {
  height: 10px;
  border: 1px solid #ad9f89;
  border-radius: 8px;
  background: repeating-linear-gradient(135deg, #241f1a 0 5px, #393127 5px 10px);
  box-shadow: inset 0 1px 3px #000b;
}
.wallet-sign .wallet-sign__hint,
.wallet-sign .wallet-sign__period,
.wallet-sign .wallet-sign__availability {
  margin: 7px 0 0;
  color: #e4d5bf;
  font-size: .69rem;
  line-height: 1.4;
}
.wallet-sign .wallet-sign__period { margin-top: 3px; }
.wallet-sign .wallet-sign__availability { color: #f2d295; margin-top: 10px; }
.wallet-sign__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.startseite:not(.profilseite):has(.profil-bereich) { min-height: max(100svh, 900px); }
.startseite:not(.profilseite) .profil-bereich { width: 190px; }
.startseite:not(.profilseite) .profil-text { margin-top: 20px; text-decoration: none; }
.startseite:not(.profilseite) .profil-text:hover,
.startseite:not(.profilseite) .profil-text:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.startseite:not(.profilseite) .profil-text:focus-visible {
  outline: 2px solid #e1c99e;
  outline-offset: 3px;
}
.startseite:not(.profilseite) .account-switcher-zugang,
.startseite:not(.profilseite) .logout-zugang { margin-top: 14px; }
.profilseite .wallet-sign { justify-self: start; }

@media (min-width: 701px) and (max-width: 1320px) {
  .startseite:not(.profilseite):has(.profil-bereich) { min-height: max(100svh, 890px); }
}
/* Im Dokumentfluss bleibt auch bei Textzoom ausreichend Platz für das Schild. */
@media (max-width: 700px) {
  .startseite:not(.profilseite) .profil-bereich {
    position: relative;
    order: -2;
    top: auto;
    right: auto;
    margin: 140px 16px 26px;
    justify-self: end;
  }
  .startseite:not(.profilseite) .profil-bereich ~ .server-overview { --server-top: 0px; }
}
