/* Kader: auf den Unterpunkt begrenzt. */
.teamRoster .rosterGroup + .rosterGroup { margin-top: 64px; }
.teamRoster .rosterGroupTitle {
  margin: 0 0 var(--heading-section-gap);
  font-size: var(--heading-section-size);
  font-weight: 700;
  line-height: var(--heading-line-height);
}
.teamRoster .rosterGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.teamRoster .rosterPlayer { min-width: 0; }
.teamRoster .rosterPlayerLink { display: block; color: #171717; text-decoration: none; border-radius: 8px; }
.teamRoster .rosterPlayerLink:focus-visible { outline: 3px solid #08774e; outline-offset: 6px; }
.teamRoster .rosterPortrait {
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 7;
  object-fit: contain;
  object-position: bottom;
  background: radial-gradient(circle closest-side at 50% 57%, #f0efed 99%, transparent 100%);
  border-radius: 0 0 50% 50% / 0 0 43% 43%;
}
.teamRoster .rosterPlayerInfo { margin-top: 10px; padding-inline: 10px; font-size: 0.9rem; font-weight: 700; }
.teamRoster .rosterNumber { display: block; }
.teamRoster .rosterPlayerName {
  font-size: var(--heading-card-size);
  font-weight: 700;
  line-height: var(--heading-line-height);
}
@media (hover: hover) {
  .teamRoster .rosterPlayerLink:hover .rosterPlayerName { color: #08774e; text-decoration: underline; text-underline-offset: 4px; }
}
@media (min-width: 701px) {
  .teamRoster .rosterGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; }
}

/* Umschaltbare Statistikliste im Kader. */
.teamRoster [hidden] { display: none !important; }
.rosterViewSwitch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.rosterViewSwitch button {
  padding: 10px 18px; border: 1px solid #08774e; border-radius: 6px;
  background: white; color: #08774e; font: inherit; font-weight: 600; cursor: pointer;
}
.rosterViewSwitch button[aria-pressed="true"] { background: #08774e; color: white; }
.rosterTableScroll { max-width: 100%; overflow-x: auto; border: 1px solid #ddd; border-radius: 8px; }
.rosterTable { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.rosterTable caption { padding: 16px; text-align: left; font-weight: 700; }
.rosterTable th, .rosterTable td { padding: 12px 16px; border-bottom: 1px solid #ddd; text-align: right; font-variant-numeric: tabular-nums; }
.rosterTable th { background: #edf6f2; vertical-align: bottom; }
.rosterTable th:nth-child(-n+2), .rosterTable td:nth-child(-n+2) { text-align: left; }
.rosterTable td:first-child { min-width: 180px; }
.rosterTable th button { padding: 4px; border: 0; background: transparent; color: #171717; font: inherit; font-weight: 700; text-align: inherit; cursor: pointer; }
.rosterSortIndicator { display: inline-block; min-width: 1em; color: #08774e; }
.rosterTable tbody tr:nth-child(even) { background: #f7faf8; }
.rosterTable tbody tr:hover { background: #edf6f2; }
.rosterTable tbody tr:last-child td { border-bottom: 0; }
.rosterTable a { color: #08774e; font-weight: 600; text-underline-offset: 3px; }
.rosterTablePlayer { display: flex; align-items: center; gap: 10px; }
.rosterTableAvatar { display: block; flex: 0 0 40px; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: #f0efed; }
.rosterTableAvatar .rosterTablePortrait { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.6); transform-origin: center top; }
.rosterViewSwitch button:focus-visible, .rosterTable button:focus-visible,
.rosterTable a:focus-visible, .rosterTableScroll:focus-visible { outline: 3px solid #08774e; outline-offset: 2px; }
.rosterSortStatus { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Einzelansicht des WordPress-Beitragstyps Spieler. */
.playerHero { overflow: hidden; background: linear-gradient(160deg, #049565, var(--color-primary) 45%, #c5eee0); }
.playerHeroInner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  max-width: 1080px;
  height: 420px;
  margin-inline: auto;
  padding-inline: 40px;
}
.playerHeroBackdrop {
  position: absolute;
  z-index: -1;
  inset: 32px 0 auto;
  color: rgb(255 255 255 / 34%);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-5deg);
}
.playerHeroBackdrop span { display: block; }
.playerHeroBackdrop span + span { margin-left: -100px; }
.playerHeroIntro { align-self: center; flex: 1; min-width: 0; color: white; font-weight: 600; text-shadow: 0 1px 8px rgb(0 0 0 / 15%); }
.playerHeroNumber { display: block; font-size: clamp(4rem, 9vw, 7rem); font-weight: 700; line-height: 1.2; }
.playerHeroPortrait { flex-shrink: 0; width: 340px; height: 390px; object-fit: contain; object-position: bottom; }
.playerHeroName { padding: 16px 24px; background: var(--color-primary); color: white; text-align: center; }
.playerHeroName h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); line-height: 1.2; text-transform: uppercase; }
.playerPage { max-width: 1100px; padding-top: 24px; }
.playerPage .playerBack { display: inline-block; margin-bottom: 28px; padding-block: 10px; color: #08774e; font-weight: 600; text-underline-offset: 4px; }
.playerPage .playerBack:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.playerProfileGrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; }
.playerProfileGrid h2 {
  margin: 0 0 var(--heading-section-gap);
  font-size: var(--heading-section-size);
  font-weight: 700;
  line-height: var(--heading-line-height);
}
.playerFacts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; padding-block: 10px; border-bottom: 1px solid #ddd; font-size: 0.9rem; overflow-wrap: anywhere; }
.playerFacts dt { color: #555; }
.playerFacts dd { font-weight: 600; }
.playerMainStats, .playerCardStats { display: grid; gap: 24px; text-align: center; }
.playerMainStats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.playerMainStats dt, .playerCardStats dt { margin-bottom: 14px; font-size: 0.85rem; font-weight: 600; }
.playerMainStats dd { display: grid; place-items: center; width: min(112px, 100%); aspect-ratio: 1; margin-inline: auto; border: 4px solid var(--color-primary); border-radius: 50%; font-size: 1.5rem; font-weight: 700; overflow-wrap: anywhere; }
.playerCardStats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; }
.playerCardStats dd { display: flex; flex-direction: column; align-items: center; gap: 12px; font-weight: 600; }
.playerCardIcon { position: relative; display: block; width: 24px; height: 34px; border-radius: 2px; background: #ffe500; box-shadow: 0 3px 8px rgb(0 0 0 / 12%); }
.playerCardIcon--red, .playerCardIcon--yellowRed { background: #f01824; }
.playerCardIcon--yellowRed { transform: rotate(12deg) translateX(6px); }
.playerCardIcon--yellowRed::before { position: absolute; inset: 2px 12px -2px -12px; content: ''; border-radius: 2px; background: #ffe500; transform: rotate(-24deg); }
@media (max-width: 760px) {
  .playerHeroInner { justify-content: center; height: 330px; padding-inline: 20px; }
  .playerHeroBackdrop { top: 85px; font-size: clamp(2.8rem, 10vw, 4.5rem); }
  .playerHeroPortrait { width: 230px; height: 270px; }
  .playerHeroIntro { position: absolute; left: 20px; bottom: 18px; }
  .playerHeroIntro p { display: none; }
  .playerHeroNumber { font-size: 2.5rem; }
  .playerProfileGrid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 480px) {
  .playerMainStats, .playerCardStats { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
