/* Wettbewerbe: Seitengerüst und wiederverwendbare Bereichsnavigation */

.competition-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 26px;
  padding: 20px 30px 34px;
}

.section-sidebar {
  position: relative;
  z-index: 9;
  min-width: 0;
  padding-top: 94px;
}

.section-navigation-card {
  border: 1px solid var(--cream-300);
  border-radius: 10px;
  background: linear-gradient(145deg, rgb(255 255 255 / 88%), rgb(248 244 230 / 94%));
  box-shadow: 0 5px 14px rgb(39 50 36 / 12%);
}

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

.section-navigation-card > nav {
  display: grid;
}

.section-navigation-card > nav > a,
.section-navigation-entry > a {
  position: relative;
  display: grid;
  min-height: 52px;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--cream-300);
  color: var(--green-900);
  font-size: 0.9rem;
  line-height: 1.15;
  transition: color 150ms ease, background 150ms ease;
}

.section-navigation-card > nav > a:last-child,
.section-navigation-entry:last-child > a {
  border-bottom: 0;
}

.section-navigation-card a:hover {
  background: #fff;
}

.section-navigation-card a.active {
  color: #fff;
  background: linear-gradient(100deg, var(--green-800), var(--green-700));
}

.section-navigation-card a.active::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--gold);
  content: "";
}

.section-navigation-card a.no-icon {
  grid-template-columns: 1fr;
  padding-left: 54px;
}

.section-navigation-entry {
  position: relative;
}

.section-navigation-entry > a {
  padding-right: 43px;
}

.section-submenu-toggle {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 7px;
  width: 34px;
  height: 36px;
  padding: 0;
  border: 1px solid rgb(7 95 49 / 25%);
  border-radius: 6px;
  color: var(--green-800);
  background: rgb(255 255 255 / 72%);
  cursor: pointer;
}

.section-submenu-toggle > span:last-child {
  font-size: 1.4rem;
  line-height: 1;
}

.section-submenu-toggle[aria-expanded="true"] > span:last-child {
  display: inline-block;
  transform: rotate(180deg);
}

.section-submenu-flyout {
  position: absolute;
  z-index: 15;
  top: 0;
  left: calc(100% + 10px);
  display: none;
  min-width: 220px;
  overflow: hidden;
  border: 1px solid var(--cream-300);
  border-radius: 8px;
  background: var(--cream-50);
  box-shadow: var(--shadow-raised);
}

.section-submenu-flyout.open {
  display: grid;
}

.section-submenu-flyout a {
  position: relative;
  padding: 11px 13px;
  border-bottom: 1px solid var(--cream-300);
  color: var(--green-900);
}

.section-submenu-flyout a.active {
  color: #fff;
  background: linear-gradient(100deg, var(--green-800), var(--green-700));
}

.section-submenu-flyout a:last-child {
  border-bottom: 0;
}

.section-mobile-menu {
  display: none;
}

.section-mobile-submenu.active-branch > summary {
  color: var(--green-950);
  background: #fff8d9;
}

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

.competition-breadcrumb {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
}

.competition-breadcrumb span {
  margin: 0 8px;
  color: var(--gold);
}

.competition-heading {
  display: flex;
  min-height: 100px;
  align-items: center;
  gap: 18px;
  padding: 0 8px 12px;
}

.competition-heading h1 {
  margin: 0 0 3px;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.competition-heading p {
  margin: 0;
  color: #304d3c;
}

/* Hervorgehobene Liga-Box */

.league-feature {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 26px 30px 25px;
  border: 2px solid #dda300;
  border-radius: 11px;
  background:
    radial-gradient(circle at 20% 0, rgb(255 255 255 / 86%), transparent 38%),
    linear-gradient(150deg, #fffefa, #f9f3df 58%, #fffdf8);
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 95%),
    inset 0 -4px 9px rgb(147 105 0 / 11%),
    0 2px 0 #9d7100,
    0 7px 16px rgb(80 55 0 / 16%);
}

.league-feature::after {
  position: absolute;
  inset: 5px;
  border: 1px solid rgb(255 220 111 / 48%);
  border-radius: 7px;
  pointer-events: none;
  content: "";
}

.league-feature-copy {
  position: relative;
  z-index: 1;
}

.league-feature h2 {
  margin: 0 0 7px;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  line-height: 1.1;
}

.league-feature p {
  max-width: 720px;
  margin: 0;
  color: #263e30;
}

.league-crown--feature {
  justify-self: center;
  color: var(--gold);
  font-size: 6.2rem;
  line-height: 1;
  text-shadow:
    0 1px 0 #fff2a9,
    0 3px 0 #a96e00,
    0 7px 8px rgb(104 66 0 / 25%);
}

.league-benefits {
  display: flex;
  flex-wrap: wrap;
  margin: 18px 0 17px;
  padding: 0;
  color: var(--green-900);
  list-style: none;
}

.league-benefits li {
  display: flex;
  min-height: 27px;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border-right: 1px solid var(--cream-400);
  font-size: 0.9rem;
}

.league-benefits li:first-child {
  padding-left: 0;
}

.league-benefits li:last-child {
  border-right: 0;
}

.league-benefits .benefit-icon,
.league-benefits .benefit-people {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 22px;
  flex: 0 0 24px;
  color: var(--green-800);
  font-size: 0;
}

.benefit-rise::before {
  position: absolute;
  top: 10px;
  left: 3px;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: rotate(-38deg);
}

.benefit-rise::after {
  position: absolute;
  top: 2px;
  right: 1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
}

.benefit-clock {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.benefit-clock::before {
  position: absolute;
  top: -4px;
  left: 8px;
  width: 6px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: currentColor;
  content: "";
}

.benefit-clock i {
  position: absolute;
  top: 4px;
  left: 10px;
  width: 2px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
}

.benefit-clock i::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: rotate(27deg);
  transform-origin: left center;
}

.league-benefits .benefit-people {
  top: 1px;
  transform: scale(0.92);
  transform-origin: left center;
}

.competition-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: max-content;
  min-width: 205px;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 10px 20px;
  border: 1px solid #004b28;
  border-radius: 7px;
  color: #fff;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 8%), transparent 42%),
    linear-gradient(100deg, var(--green-900), var(--green-700));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 3px 6px rgb(0 52 27 / 20%);
  font-weight: 700;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.competition-button:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 5px 10px rgb(0 52 27 / 25%);
}

.competition-button span {
  font-size: 1.45rem;
  line-height: 0;
}

/* Weitere Wettbewerbe */

.competition-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.competition-card {
  position: relative;
  display: grid;
  min-height: 242px;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: 12px;
  padding: 22px 18px 18px;
  border: 1px solid var(--cream-300);
  border-radius: 10px;
  background:
    radial-gradient(circle at 10% 0, #fff, transparent 44%),
    linear-gradient(150deg, #fffefa, #f8f4e8);
  box-shadow: 0 4px 12px rgb(32 52 38 / 10%);
}

.competition-card h2 {
  align-self: center;
  margin: 0;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.competition-card p {
  grid-column: 1 / -1;
  margin: 15px 0 18px;
  color: #2e4336;
  font-size: 0.9rem;
  line-height: 1.48;
}

.competition-card > a {
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  color: var(--green-800);
  font-weight: 700;
}

.competition-card > a:hover {
  text-decoration: underline;
}

.competition-card > a span {
  font-size: 1.35rem;
  line-height: 1;
}

/* Einheitliche Wettbewerbssymbole */

.od-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  color: var(--green-800);
}

.section-navigation-icon {
  justify-self: center;
}

.section-navigation-icon.league-crown {
  width: 28px;
  color: var(--green-800);
  font-size: 1.55rem;
  text-align: center;
  filter: none;
}

.section-navigation-card a.active .section-navigation-icon {
  color: #fff;
}

.od-icon--trophy {
  --trophy-scale: 1;
  position: relative;
  width: calc(88px * var(--trophy-scale));
  height: calc(108px * var(--trophy-scale));
  color: #d59a00;
  filter: drop-shadow(0 2px 0 #fff0a4) drop-shadow(0 5px 4px rgb(112 71 0 / 30%));
}

.od-icon--trophy .cup {
  position: absolute;
  z-index: 2;
  top: calc(5px * var(--trophy-scale));
  left: calc(20px * var(--trophy-scale));
  width: calc(48px * var(--trophy-scale));
  height: calc(49px * var(--trophy-scale));
  border: calc(2px * var(--trophy-scale)) solid #9b6300;
  border-radius: calc(4px * var(--trophy-scale)) calc(4px * var(--trophy-scale)) calc(25px * var(--trophy-scale)) calc(25px * var(--trophy-scale));
  background: linear-gradient(90deg, #a96e00, #ffd75a 36%, #ffed97 52%, #e6aa13 75%, #a96e00);
  box-shadow: inset 0 calc(4px * var(--trophy-scale)) 0 rgb(255 250 201 / 70%), inset 0 calc(-5px * var(--trophy-scale)) 0 rgb(125 76 0 / 22%);
}

.od-icon--trophy .cup::before,
.od-icon--trophy .cup::after {
  position: absolute;
  z-index: -1;
  top: calc(7px * var(--trophy-scale));
  width: calc(22px * var(--trophy-scale));
  height: calc(27px * var(--trophy-scale));
  border: calc(5px * var(--trophy-scale)) solid currentColor;
  content: "";
}

.od-icon--trophy .cup::before {
  right: calc(46px * var(--trophy-scale));
  border-right: 0;
  border-radius: calc(18px * var(--trophy-scale)) 0 0 calc(18px * var(--trophy-scale));
}

.od-icon--trophy .cup::after {
  left: calc(46px * var(--trophy-scale));
  border-left: 0;
  border-radius: 0 calc(18px * var(--trophy-scale)) calc(18px * var(--trophy-scale)) 0;
}

.od-icon--trophy .cup b {
  position: absolute;
  inset: calc(9px * var(--trophy-scale)) 0 auto;
  color: #fff5bb;
  font-size: calc(26px * var(--trophy-scale));
  font-style: normal;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 0 #875400;
}

.od-icon--trophy .stem {
  position: absolute;
  z-index: 1;
  top: calc(51px * var(--trophy-scale));
  left: calc(40px * var(--trophy-scale));
  width: calc(8px * var(--trophy-scale));
  height: calc(29px * var(--trophy-scale));
  border-radius: 0 0 calc(3px * var(--trophy-scale)) calc(3px * var(--trophy-scale));
  background: linear-gradient(90deg, #a96e00, #ffd75a 45%, #e7a50c 76%, #9a6200);
}

.od-icon--trophy .stem::before,
.od-icon--trophy .stem::after {
  position: absolute;
  left: 50%;
  background: linear-gradient(90deg, #a96e00, #ffd75a 45%, #e7a50c 76%, #9a6200);
  content: "";
  transform: translateX(-50%);
}

.od-icon--trophy .stem::before {
  bottom: calc(-8px * var(--trophy-scale));
  width: calc(36px * var(--trophy-scale));
  height: calc(10px * var(--trophy-scale));
  border-radius: calc(5px * var(--trophy-scale)) calc(5px * var(--trophy-scale)) calc(2px * var(--trophy-scale)) calc(2px * var(--trophy-scale));
}

.od-icon--trophy .stem::after {
  bottom: calc(-18px * var(--trophy-scale));
  width: calc(52px * var(--trophy-scale));
  height: calc(11px * var(--trophy-scale));
  border-radius: calc(3px * var(--trophy-scale));
  box-shadow: inset 0 calc(2px * var(--trophy-scale)) 0 rgb(255 255 255 / 20%);
}

.competition-title-trophy {
  flex: 0 0 auto;
  margin: -5px 0;
}

.od-icon--card-pairs {
  display: flex;
  width: 52px;
  height: 45px;
  align-items: center;
  gap: 3px;
}

.od-icon--card-pairs .card-set {
  position: relative;
  display: block;
  width: 23px;
  height: 31px;
}

.od-icon--card-pairs .card-set b {
  position: absolute;
  bottom: 0;
  left: 5px;
  width: 15px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 3px;
  background: var(--cream-100);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 70%);
  transform-origin: 50% 100%;
}

.od-icon--card-pairs .card-set b:nth-child(1) {
  transform: rotate(-18deg) translateX(-4px);
}

.od-icon--card-pairs .card-set b:nth-child(2) {
  transform: rotate(0deg);
}

.od-icon--card-pairs .card-set b:nth-child(3) {
  transform: rotate(18deg) translateX(4px);
}

.od-icon--card-pairs .card-set b::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.section-navigation-icon.od-icon--card-pairs {
  width: 29px;
  height: 28px;
  gap: 1px;
  transform: scale(0.62);
  transform-origin: center;
}

.od-icon--podium {
  display: flex;
  width: 54px;
  height: 47px;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}

.od-icon--podium i {
  display: flex;
  width: 16px;
  align-items: flex-start;
  justify-content: center;
  border: 2px solid currentColor;
  border-bottom-width: 4px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #fff, var(--cream-200));
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.od-icon--podium i:nth-child(1) {
  height: 28px;
}

.od-icon--podium i:nth-child(2) {
  height: 43px;
}

.od-icon--podium i:nth-child(3) {
  height: 20px;
}

.section-navigation-icon.od-icon--podium {
  width: 29px;
  height: 28px;
  transform: scale(0.58);
  transform-origin: center;
}

.od-icon--notepad {
  width: 44px;
  height: 50px;
  border: 2px solid currentColor;
  border-radius: 4px;
  background: linear-gradient(145deg, #fff, var(--cream-100));
}

.od-icon--notepad i {
  position: absolute;
  top: -5px;
  right: 7px;
  left: 7px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 4px;
  background: var(--cream-100);
}

.od-icon--notepad b {
  position: relative;
  display: block;
  width: 21px;
  height: 2px;
  margin: 10px 0 0 15px;
  background: currentColor;
}

.od-icon--notepad b::before {
  position: absolute;
  top: -3px;
  left: -10px;
  width: 5px;
  height: 3px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  transform: rotate(-45deg);
}

.section-navigation-icon.od-icon--notepad {
  width: 25px;
  height: 28px;
  transform: scale(0.58);
  transform-origin: center;
}

@media (max-width: 1120px) {
  .competition-layout {
    grid-template-columns: 208px minmax(0, 1fr);
    gap: 18px;
    padding: 18px 18px 28px;
  }

  .section-sidebar {
    padding-top: 74px;
  }

  .section-navigation-card > nav > a,
  .section-navigation-entry > a {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    padding-right: 8px;
    font-size: 0.78rem;
  }

  .section-navigation-entry > a {
    padding-right: 43px;
  }

  .section-navigation-card a.no-icon {
    padding-left: 46px;
  }

  .competition-heading {
    gap: 12px;
  }

  .competition-title-trophy {
    --trophy-scale: 0.82;
    margin-right: -4px;
  }

  .league-feature {
    grid-template-columns: 90px minmax(0, 1fr);
    padding: 23px 22px;
  }

  .league-crown--feature {
    font-size: 5.2rem;
  }

  .league-benefits li {
    padding: 0 11px;
    font-size: 0.8rem;
  }

  .competition-card {
    min-height: 255px;
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 18px 14px 15px;
  }

  .competition-card h2 {
    font-size: 1.08rem;
  }
}

@media (max-width: 760px) {
  .competition-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px;
  }

  .section-sidebar {
    padding: 0;
  }

  .section-navigation-card {
    display: none;
  }

  .section-mobile-menu {
    display: block;
    margin: 0 0 14px;
    border: 1px solid var(--cream-400);
    border-radius: 8px;
    background: #fffdf8;
    box-shadow: var(--shadow);
  }

  .section-mobile-menu > summary {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    color: var(--green-950);
    cursor: pointer;
    list-style: none;
  }

  .section-mobile-menu > summary::-webkit-details-marker {
    display: none;
  }

  .section-mobile-menu > summary::after {
    width: 15px;
    height: 15px;
    margin: -7px 6px 0 12px;
    border-right: 3px solid var(--green-800);
    border-bottom: 3px solid var(--green-800);
    content: "";
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform 150ms ease, margin 150ms ease;
  }

  .section-mobile-menu[open] > summary::after {
    margin-top: 7px;
    transform: rotate(225deg);
  }

  .section-mobile-menu > summary span {
    font-family: var(--font-display);
    font-weight: 700;
  }

  .section-mobile-menu > nav {
    display: grid;
    padding: 0 9px 9px;
  }

  .section-mobile-menu > nav > a,
  .section-mobile-submenu > a,
  .section-mobile-submenu > summary {
    min-height: 43px;
    padding: 10px 12px;
    border-top: 1px solid var(--cream-300);
    color: var(--green-800);
  }

  .section-mobile-menu a.active {
    font-weight: 800;
  }

  .section-mobile-submenu {
    display: block;
    width: 100%;
  }

  .section-mobile-submenu > summary {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
  }

  .section-mobile-submenu > a {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding-left: 28px;
  }

  .section-mobile-submenu > summary::-webkit-details-marker {
    display: none;
  }

  .section-mobile-submenu > summary::after {
    width: 10px;
    height: 10px;
    margin: -5px 4px 0 10px;
    flex: 0 0 auto;
    border-right: 2px solid var(--green-800);
    border-bottom: 2px solid var(--green-800);
    content: "";
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform 150ms ease, margin 150ms ease;
  }

  .section-mobile-submenu[open] > summary::after {
    margin-top: 5px;
    transform: rotate(225deg);
  }

  .competition-breadcrumb {
    display: none;
  }

  .competition-heading {
    min-height: auto;
    align-items: flex-start;
    gap: 10px;
    padding: 0 7px 14px;
  }

  .competition-heading .competition-title-trophy {
    --trophy-scale: 0.52;
    margin: -3px 0 0 -5px;
  }

  .competition-heading h1 {
    margin-bottom: 5px;
    font-size: 1.38rem;
  }

  .competition-heading p {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .league-feature {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 19px 14px 15px;
  }

  .league-crown--feature {
    align-self: start;
    font-size: 3.75rem;
  }

  .league-feature h2 {
    font-size: 1.22rem;
  }

  .league-feature p {
    font-size: 0.77rem;
    line-height: 1.45;
  }

  .league-benefits {
    display: none;
  }

  .competition-button {
    width: 100%;
    min-width: 0;
    min-height: 43px;
    gap: 18px;
    margin-top: 13px;
    font-size: 0.88rem;
  }

  .competition-cards {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 11px;
  }

  .competition-card {
    min-height: 0;
    grid-template-columns: 48px minmax(0, 1fr) 20px;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 9px;
    padding: 15px 13px;
  }

  .competition-card h2 {
    grid-column: 2;
    font-size: 1.05rem;
  }

  .competition-card p {
    grid-column: 2;
    margin: 2px 0 0;
    font-size: 0.73rem;
    line-height: 1.35;
  }

  .competition-card > a {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    color: transparent;
    text-indent: -999px;
  }

  .competition-card > a span {
    position: absolute;
    top: 50%;
    right: 13px;
    color: var(--green-800);
    text-indent: 0;
    transform: translateY(-50%);
  }

  .competition-card .od-icon {
    grid-row: 1 / span 2;
    transform: scale(0.8);
    transform-origin: center;
  }
}

@media (max-width: 400px) {
  .competition-layout {
    padding: 9px 8px;
  }

  .competition-heading h1 {
    font-size: 1.25rem;
  }

  .league-feature {
    grid-template-columns: 51px minmax(0, 1fr);
    padding-right: 11px;
    padding-left: 11px;
  }

  .league-crown--feature {
    font-size: 3.35rem;
  }
}
