/* Eigenständiger Ligabereich */

.league-layout {
  align-items: start;
}

.league-layout .section-sidebar {
  padding-top: 94px;
}

.league-content {
  min-width: 0;
}

.league-content > * + * {
  margin-top: 24px;
}

.league-heading {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  min-height: 190px;
  padding: 26px 30px;
  border-bottom: 1px solid var(--cream-400);
}

.league-heading-crown {
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  border: 2px solid #c89726;
  border-radius: 26px;
  color: #f7d477;
  background:
    radial-gradient(circle at 35% 25%, rgb(255 255 255 / 45%), transparent 22%),
    linear-gradient(145deg, #8a5b0d, #e4b642 48%, #8c5a0b);
  box-shadow: inset 0 2px 2px rgb(255 255 255 / 55%), inset 0 -5px 9px rgb(91 50 0 / 34%), 0 7px 16px rgb(71 47 7 / 25%);
  font-family: Georgia, serif;
  font-size: 4.6rem;
  line-height: 1;
  text-shadow: 0 2px 1px #6d4303, 0 -1px #fff2b7;
}

.league-eyebrow,
.league-kicker {
  margin: 0 0 6px;
  color: #9a6812;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.league-heading h1 {
  margin: 0;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 0.98;
}

.league-heading p:last-child {
  max-width: 780px;
  margin: 13px 0 0;
  color: var(--ink-600);
  font-size: 1.08rem;
  line-height: 1.55;
}

.competition-breadcrumb a {
  color: inherit;
}

.league-panel,
.league-class-card,
.league-info-card {
  border: 1px solid var(--cream-400);
  border-radius: 12px;
  background: linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(250 247 236 / 96%));
  box-shadow: 0 6px 18px rgb(37 51 35 / 10%);
}

.league-panel {
  padding: 25px 27px;
}

.league-panel h2,
.league-section-heading h2,
.league-info-card h2 {
  margin: 0;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
}

.league-panel p {
  line-height: 1.58;
}

.league-intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 32px;
  overflow: hidden;
  border: 1px solid #c89b37;
  background:
    linear-gradient(90deg, rgb(255 251 232 / 96%), rgb(255 255 255 / 96%)),
    linear-gradient(145deg, #e1b84c, #9a6812);
  box-shadow: inset 0 1px #fff8ce, inset 0 -2px rgb(126 80 9 / 16%), 0 7px 20px rgb(68 48 15 / 15%);
}

.league-intro-panel::before {
  position: absolute;
  content: none;
}

.league-intro-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(82px, 1fr));
  gap: 9px;
}

.league-intro-facts span {
  display: grid;
  min-height: 86px;
  place-content: center;
  padding: 9px;
  border: 1px solid rgb(154 104 18 / 25%);
  border-radius: 9px;
  color: var(--ink-600);
  background: rgb(255 255 255 / 70%);
  text-align: center;
  font-size: 0.8rem;
}

.league-intro-facts strong {
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.league-button,
.league-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  color: var(--green-800);
  font-weight: 800;
}

.league-button {
  grid-column: 1 / -1;
  min-height: 43px;
  padding: 10px 17px;
  border: 1px solid var(--green-800);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  box-shadow: 0 3px 8px rgb(0 75 37 / 18%);
}

.league-button:hover {
  background: var(--green-950);
}

.league-button--quiet {
  color: var(--green-900);
  background: #fff;
}

.league-text-link:hover {
  text-decoration: underline;
}

.league-section {
  padding-top: 4px;
}

.league-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.league-class-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.league-class-card {
  overflow: hidden;
}

.league-class-card--royal {
  border-color: #c89b37;
  box-shadow: inset 0 1px #fff7cc, 0 7px 20px rgb(82 56 12 / 16%);
}

.league-class-card h3 {
  margin: 0;
  padding: 14px 17px;
  border-bottom: 1px solid var(--cream-400);
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.league-class-card--royal h3 {
  color: #704706;
  background: linear-gradient(90deg, #fff5ca, #fffdf4);
}

.league-class-card ol,
.league-season-preview ol {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.league-class-card li,
.league-season-preview li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 7px 15px;
  border-bottom: 1px solid var(--cream-300);
}

.league-class-card li > strong,
.league-season-preview li > strong {
  color: var(--green-800);
  white-space: nowrap;
}

.league-class-card > a {
  display: block;
  padding: 12px 16px;
  color: var(--green-800);
  text-align: center;
  font-weight: 800;
}

.league-rank {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green-700);
  font-size: 0.78rem;
  font-weight: 900;
}

.league-empty-row {
  display: block !important;
  padding: 18px !important;
  color: var(--ink-500);
  text-align: center;
}

.league-overview-grid,
.league-info-grid,
.league-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.league-season-preview ol {
  margin: 16px -8px 18px;
}

.league-path-panel {
  background:
    radial-gradient(circle at 95% 5%, rgb(208 164 59 / 14%), transparent 34%),
    linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(249 246 235 / 96%));
}

.league-ladder {
  display: flex;
  flex-direction: column-reverse;
  gap: 7px;
  max-width: 340px;
  margin: 18px auto;
  text-align: center;
}

.league-ladder span {
  padding: 8px 11px;
  border: 1px solid var(--cream-400);
  border-radius: 7px;
  color: var(--green-900);
  background: #fff;
  font-weight: 800;
}

.league-ladder i {
  color: #b57c14;
  font-style: normal;
  font-weight: 900;
}

.league-ladder .is-royal {
  border-color: #c99b34;
  color: #704706;
  background: #fff5ca;
}

.league-honours-panel {
  overflow: hidden;
  border-color: #c89b37;
  background: linear-gradient(145deg, #fffdf5, #fff7d9);
  box-shadow: inset 0 1px #fff, inset 0 -2px rgb(125 77 5 / 11%), 0 8px 22px rgb(70 49 15 / 15%);
}

.league-podium-category {
  margin: 4px 0 0;
  color: var(--green-800);
  font-size: 0.9rem;
}

.league-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.league-podium-place {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  padding: 18px 10px 14px;
  border: 1px solid rgb(167 119 27 / 27%);
  border-radius: 10px 10px 4px 4px;
  background: rgb(255 255 255 / 72%);
  text-align: center;
}

.league-podium-place--1 {
  min-height: 200px;
  order: 2;
  border-color: #d1a431;
  background: linear-gradient(180deg, #fffbe9, #fae8a6);
}

.league-podium-place--2 {
  min-height: 170px;
  order: 1;
}

.league-podium-place--3 {
  min-height: 150px;
  order: 3;
}

.league-medal {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #a87311;
  font-weight: 900;
}

.league-podium-place a {
  max-width: 100%;
  overflow: hidden;
  color: var(--green-900);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.league-podium-place strong {
  color: #80530a;
}

.league-centered-link {
  text-align: center;
}

.league-empty {
  padding: 20px;
  border: 1px solid #dfc779;
  border-radius: 10px;
  color: var(--ink-700);
  background: #fff9df;
}

.league-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--cream-400);
  border-radius: 10px;
  background: var(--cream-100);
}

.league-view-tabs a {
  flex: 1 1 auto;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--green-900);
  text-align: center;
  font-weight: 800;
}

.league-view-tabs a:hover {
  border-color: var(--cream-400);
  background: #fff;
}

.league-view-tabs a.active {
  color: #fff;
  background: linear-gradient(120deg, var(--green-800), var(--green-700));
  box-shadow: inset 0 -3px #d9aa37;
}

.team-league-primary-tabs {
  border-color: #d8bd72;
  background: linear-gradient(145deg, #fffdf7, #f7f0d8);
}

.team-league-primary-tabs a {
  flex-basis: 170px;
}

.team-group-points-card {
  border-color: #d6ad4d;
  background: linear-gradient(145deg, #fffdf7, #fff6d8);
}

.team-points-formula {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.team-points-formula span {
  display: grid;
  min-height: 76px;
  place-content: center;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--cream-400);
  border-radius: 8px;
  text-align: center;
  background: rgb(255 255 255 / 82%);
}

.team-points-formula b {
  color: #a56700;
  font-size: 1.2rem;
}

.team-points-formula .team-points-total {
  border-color: #c89424;
  color: #fff;
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
}

.team-points-formula .team-points-total b {
  color: #ffd96c;
  font-size: 1rem;
}

.team-league-actions {
  margin-top: 18px;
}

.team-identity {
  min-width: 170px;
}

.team-identity a {
  display: block;
  color: var(--green-900);
  text-decoration: none;
}

.team-identity a + a {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 0.78rem;
  font-weight: 700;
}

.team-identity a:hover {
  text-decoration: underline;
}

.team-status {
  white-space: nowrap;
  font-weight: 800;
}

.team-table-explainer {
  margin: 0;
  padding: 13px 15px;
  border-left: 4px solid #d4a432;
  color: var(--ink-700);
  background: #fff9e8;
}

.team-table-explainer a {
  color: var(--green-800);
  font-weight: 800;
}

.season-picker,
.league-date-picker {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--cream-400);
  border-radius: 10px;
  background: linear-gradient(145deg, #fffdf6, #f6f1df);
}

.season-picker form,
.league-date-picker form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.season-picker form > span,
.league-date-picker label {
  width: 100%;
  color: var(--green-900);
  text-align: center;
  font-weight: 800;
}

.season-picker select,
.season-picker button,
.league-date-picker input,
.league-date-picker button {
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--cream-500);
  border-radius: 7px;
  color: var(--green-950);
  background: #fff;
  font: inherit;
}

.season-picker button,
.league-date-picker button {
  color: #fff;
  background: var(--green-800);
  cursor: pointer;
}

.season-picker small,
.league-date-picker small {
  width: 100%;
  color: var(--ink-500);
  text-align: center;
}

.league-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.league-summary-stats > div {
  display: grid;
  gap: 2px;
  padding: 15px;
  border: 1px solid var(--cream-400);
  border-radius: 9px;
  background: #fff;
  text-align: center;
}

.league-summary-stats strong {
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.league-table .trend-up,
.league-table .is-positive {
  color: #08743c;
}

.league-table .trend-down,
.league-table .is-negative {
  color: #a2392f;
}

.league-table .is-vacation {
  color: #8b620e;
  font-weight: 800;
}

.league-month-cell {
  min-width: 62px;
  text-align: center;
}

.league-month-cell span {
  display: block;
  color: var(--ink-500);
  font-size: 0.72rem;
}

.league-info-card {
  padding: 23px;
}

.league-info-card p,
.league-info-card li {
  line-height: 1.65;
}

.league-info-card--wide {
  grid-column: 1 / -1;
}

.league-formula {
  overflow-x: auto;
  padding: 13px;
  border-left: 4px solid #c8982c;
  border-radius: 4px;
  color: var(--green-950);
  background: #fff9e4;
  font-family: Consolas, monospace;
}

.league-archive-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.league-archive-list a {
  display: block;
  min-height: 100%;
  padding: 15px;
  border: 1px solid var(--cream-400);
  border-radius: 8px;
  color: var(--green-900);
  background: #fff;
  font-weight: 800;
}

.league-archive-list a:hover {
  border-color: #c8982c;
  background: #fffaf0;
}

.od-icon--ranking,
.od-icon--season-cycle,
.od-icon--day-list,
.od-icon--star-list,
.od-icon--simple-trophy {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
  color: currentColor;
}

.od-icon--ranking {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 2px;
}
.od-icon--ranking i { width: 7px; border: 2px solid currentColor; border-bottom-width: 3px; }
.od-icon--ranking i:nth-child(1) { height: 13px; }
.od-icon--ranking i:nth-child(2) { height: 24px; }
.od-icon--ranking i:nth-child(3) { height: 18px; }

.od-icon--season-cycle > svg,
.od-icon--simple-trophy > svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.od-icon--day-list { border: 2px solid currentColor; border-radius: 4px; }
.od-icon--day-list b { position: absolute; right: 5px; left: 5px; border-top: 2px solid currentColor; }
.od-icon--day-list b:nth-of-type(1) { top: 8px; }
.od-icon--day-list b:nth-of-type(2) { top: 15px; }
.od-icon--day-list b:nth-of-type(3) { top: 22px; }

.od-icon--star-list i { position: absolute; top: -2px; left: 1px; font-style: normal; font-size: 1.25rem; }
.od-icon--star-list b { position: absolute; right: 0; width: 14px; border-top: 2px solid currentColor; }
.od-icon--star-list b:nth-of-type(1) { top: 10px; }
.od-icon--star-list b:nth-of-type(2) { top: 19px; }

.section-navigation-icon.people-icon {
  width: 24px;
  height: 20px;
}

@media (max-width: 980px) {
  .league-heading { grid-template-columns: 100px minmax(0, 1fr); min-height: 160px; }
  .league-heading-crown { width: 92px; height: 92px; font-size: 3.6rem; }
  .league-intro-panel { grid-template-columns: 1fr; }
  .league-intro-facts { width: 100%; }
}

@media (max-width: 760px) {
  .league-layout { align-items: stretch; }
  .league-layout .section-sidebar { padding-top: 0; }
  .league-content { width: 100%; max-width: 100%; }
  .league-heading { grid-template-columns: 72px minmax(0, 1fr); gap: 15px; min-height: 0; padding: 20px 4px; }
  .league-heading-crown { width: 68px; height: 68px; border-radius: 16px; font-size: 2.6rem; }
  .league-heading h1 { font-size: clamp(1.9rem, 10vw, 2.8rem); }
  .league-heading p:last-child { font-size: .98rem; }
  .league-class-grid,
  .league-overview-grid,
  .league-info-grid,
  .league-record-grid { grid-template-columns: 1fr; }
  .league-info-card--wide { grid-column: auto; }
  .league-intro-facts { grid-template-columns: repeat(3, 1fr); }
  .league-section-heading { align-items: start; flex-direction: column; }
  .league-view-tabs { display: grid; grid-template-columns: repeat(2, 1fr); }
  .team-points-formula { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .league-podium { gap: 6px; }
  .league-podium-place { padding-inline: 5px; }
  .league-podium-place--1 { min-height: 185px; }
  .league-podium-place--2 { min-height: 160px; }
  .league-podium-place--3 { min-height: 140px; }
  .league-summary-stats { grid-template-columns: 1fr; }
  .league-archive-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .league-panel { padding: 20px 16px; }
  .league-intro-facts { grid-template-columns: 1fr; }
  .league-intro-facts span { min-height: 66px; }
  .league-view-tabs { grid-template-columns: 1fr; }
  .team-points-formula { grid-template-columns: 1fr; }
  .season-picker,
  .league-date-picker { grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 6px; padding: 10px 6px; }
  .season-picker form,
  .league-date-picker form { display: grid; grid-template-columns: 1fr; }
  .league-podium { grid-template-columns: 1fr; align-items: stretch; }
  .league-podium-place--1,
  .league-podium-place--2,
  .league-podium-place--3 { min-height: 0; order: initial; }
}
