.hbw-gamehero {
  --hbw-blue: #064f88;
  --hbw-blue-dark: #032f55;
  --hbw-red: #d8242f;
  --hbw-white: #fff;
  --hbw-link-muted: #9dabb4;
  --hbw-focus: #ffd43b;
  width: 100%;
  margin: 0 0 2rem;
  overflow: hidden;
  color: var(--hbw-white);
  background: #fff;
  box-sizing: border-box;
}

.hbw-gamehero *,
.hbw-gamehero *::before,
.hbw-gamehero *::after {
  box-sizing: border-box;
}

.hbw-gamehero__panel {
  position: relative;
  height: 318px;
  overflow: hidden;
  background: var(--hbw-blue-dark);
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.88);
}

.hbw-gamehero--hero .hbw-gamehero__panel {
  height: clamp(420px, 31.25vw, 600px);
}

.hbw-gamehero.is-enhanced .hbw-gamehero__panel:not(.is-active) {
  display: none;
}

.hbw-gamehero.is-enhanced .hbw-gamehero__panel.is-active {
  animation: hbw-gamehero-enter 320ms ease-out both;
}

.hbw-gamehero__media {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hbw-gamehero__panel--bundesliga .hbw-gamehero__media {
  background-image: url("../img/spieltag-1bl-2020.jpg");
}

.hbw-gamehero__panel--hbw2 .hbw-gamehero__media {
  background-image: url("../img/spieltag-3l-2020.jpg");
}

.hbw-gamehero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(1, 17, 51, 0.12), rgba(1, 17, 51, 0.48) 50%, rgba(1, 17, 51, 0.12));
}

.hbw-gamehero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hbw-gamehero__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.hbw-gamehero__information {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.hbw-gamehero__information-inner {
  display: flex;
  width: 100%;
  max-width: 1180px;
  height: 100%;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding: 18px 2rem 44px;
}

.hbw-gamehero__title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25em;
  margin: 0;
  border: 0;
  padding: 0;
  color: var(--hbw-white);
  font-family: 'open_sansregular', Arial, sans-serif;
  font-size: clamp(26px, 2.2vw, 40px);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.12;
  text-transform: uppercase;
}

.hbw-gamehero__title strong {
  font-family: 'open_sansextrabold', Arial, sans-serif;
  font-weight: 700;
}

.hbw-gamehero__versus {
  font-weight: 400;
  text-transform: lowercase;
}

.hbw-gamehero__match-block {
  display: flex;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
}

.hbw-gamehero__date {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  font-family: 'open_sanssemibold', Arial, sans-serif;
  font-size: clamp(17px, 1.35vw, 24px);
  line-height: 1.2;
  text-transform: uppercase;
}

.hbw-gamehero__status {
  font-size: 0.6em;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hbw-gamehero__venue {
  font-size: 0.68em;
  letter-spacing: 0.02em;
  text-transform: none;
}

.hbw-gamehero__status--live {
  border-radius: 999px;
  padding: 0 0.55em;
  background: var(--hbw-red);
}

.hbw-gamehero__matchup {
  display: grid;
  width: min(680px, 100%);
  flex: 1 1 auto;
  grid-template-columns: 170px minmax(260px, 280px) 170px;
  align-items: center;
  justify-content: center;
  gap: clamp(0.25rem, 1vw, 1rem);
  margin-top: 0.1rem;
}

.hbw-gamehero__team {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .hbw-gamehero__team {
    transform: translateY(-1.25rem);
  }
}

.hbw-gamehero__team img {
  display: block;
  width: 360px;
  height: auto;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.48));
}

.hbw-gamehero__scoreboard {
  align-self: center;
  min-width: 0;
}

.hbw-gamehero__scoreboard-values {
  position: relative;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.hbw-gamehero__scoreboard-number {
  display: inline-flex;
  gap: 4px;
}

.hbw-gamehero__scoreboard-digit {
  display: inline-flex;
  width: 52px;
  height: 78px;
  align-items: center;
  justify-content: center;
  color: #000;
  background: #fff;
  font-family: 'open_sansregular', Arial, sans-serif;
  font-size: 62px;
  line-height: 1;
  text-shadow: none;
}

.hbw-gamehero__scoreboard-divider {
  font-size: 34px;
  line-height: 1;
}

.hbw-gamehero__scoreboard-suffix {
  position: absolute;
  bottom: 0.2rem;
  left: calc(50% + 128px);
  margin: 0;
  font-family: 'open_sanssemibold', Arial, sans-serif;
  font-size: 17px;
  line-height: 1;
  text-transform: uppercase;
}

.hbw-gamehero__scoreboard-unconfirmed {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.78);
  padding: 0.5rem 1rem;
  font-family: 'open_sanssemibold', Arial, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
}

.hbw-gamehero__competition {
  margin: 0.8rem 0 0;
  font-family: 'open_sanssemibold', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.2;
}

.hbw-gamehero__context {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  line-height: 1.2;
}

.hbw-gamehero__direct-links {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  text-shadow: none;
}

.hbw-gamehero__direct-links ul {
  display: flex;
  max-width: 900px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.hbw-gamehero__direct-link {
  flex: 0 1 145px;
  margin: 0;
  padding: 0;
}

.hbw-gamehero__direct-link + .hbw-gamehero__direct-link {
  border-left: 2px solid #d5dde2;
}

.hbw-gamehero__direct-link a {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  color: var(--hbw-link-muted);
  background: var(--hbw-white);
  font-family: 'open_sanssemibold', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
}

.hbw-gamehero__direct-link a:hover,
.hbw-gamehero__direct-link a:focus {
  color: var(--hbw-blue-dark);
  background: #eef3f6;
  text-decoration: none;
}

.hbw-gamehero__toolbar {
  position: relative;
  z-index: 5;
  display: none;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-top: 1px solid #dbe3e8;
  padding: 0.25rem 1rem;
  color: var(--hbw-blue-dark);
  background: #fff;
  text-shadow: none;
}

.hbw-gamehero.is-enhanced .hbw-gamehero__toolbar {
  display: flex;
}

.hbw-gamehero__tabs {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.hbw-gamehero__tab {
  display: inline-flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  border: 0;
  padding: 0.35rem 0.15rem;
  color: #6f8492;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
}

.hbw-gamehero__tab:hover,
.hbw-gamehero__tab.is-active,
.hbw-gamehero__tab[aria-selected="true"] {
  color: var(--hbw-blue-dark);
  background: transparent;
}

.hbw-gamehero__tab::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  margin-right: 0.55rem;
  border: 2px solid #bdcbd4;
  border-radius: 50%;
  background: var(--hbw-white);
}

.hbw-gamehero__tab.is-active::before,
.hbw-gamehero__tab[aria-selected="true"]::before {
  border-color: var(--hbw-red);
  background: var(--hbw-red);
}

.hbw-gamehero__pause {
  position: relative;
  display: inline-flex;
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-left: 1.5rem;
  border: 1px solid #cfdae1;
  border-radius: 50%;
  padding: 0;
  color: #6f8492;
  background: var(--hbw-white);
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

.hbw-gamehero__pause::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -1.25rem;
  width: 1px;
  height: 20px;
  background: #dbe3e8;
  transform: translateY(-50%);
}

.hbw-gamehero__pause:hover {
  border-color: #9eb2bf;
  color: var(--hbw-blue-dark);
  background: #f5f8fa;
}

.hbw-gamehero__pause-icon {
  position: relative;
  display: block;
  width: 10px;
  height: 12px;
}

.hbw-gamehero__pause-icon::before,
.hbw-gamehero__pause-icon::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 2px;
  height: 10px;
  border-radius: 1px;
  background: currentColor;
}

.hbw-gamehero__pause-icon::before {
  left: 2px;
}

.hbw-gamehero__pause-icon::after {
  right: 2px;
}

.hbw-gamehero__pause[aria-pressed="true"] .hbw-gamehero__pause-icon::before {
  top: 0;
  left: 2px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid currentColor;
  border-radius: 0;
  background: transparent;
}

.hbw-gamehero__pause[aria-pressed="true"] .hbw-gamehero__pause-icon::after {
  display: none;
}

.hbw-gamehero__direct-link a:focus,
.hbw-gamehero__cta:focus {
  outline: 3px solid var(--hbw-focus);
  outline-offset: -3px;
}

.hbw-gamehero__tab:focus,
.hbw-gamehero__pause:focus {
  outline: 2px solid var(--hbw-focus);
  outline-offset: 3px;
}

.hbw-gamehero__tab:focus:not(:focus-visible),
.hbw-gamehero__pause:focus:not(:focus-visible),
.hbw-gamehero__direct-link a:focus:not(:focus-visible),
.hbw-gamehero__cta:focus:not(:focus-visible) {
  outline: none;
}

.hbw-gamehero__panel--motif .hbw-gamehero__information-inner {
  justify-content: center;
  padding-bottom: 2rem;
}

.hbw-gamehero__panel--align-left .hbw-gamehero__information-inner {
  align-items: flex-start;
  text-align: left;
}

.hbw-gamehero__panel--align-center .hbw-gamehero__information-inner {
  align-items: center;
  text-align: center;
}

.hbw-gamehero__panel--align-right .hbw-gamehero__information-inner {
  align-items: flex-end;
  text-align: right;
}

.hbw-gamehero__motif-title {
  max-width: 760px;
  margin: 0;
  border: 0;
  color: var(--hbw-white);
  font-family: 'ChunkFiveRegular', 'open_sansextrabold', Arial, sans-serif;
  font-size: clamp(28px, 2.15vw, 36px);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.08;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
  text-transform: uppercase;
}

.hbw-gamehero__motif-text {
  max-width: 640px;
  margin: 0.6rem 0 0;
  color: var(--hbw-white);
  font-family: 'open_sansregular', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.78);
}

.hbw-gamehero__eyebrow {
  margin: 0 0 0.15rem;
  color: var(--hbw-white);
  font-family: 'open_sanssemibold', Arial, sans-serif;
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
  text-transform: uppercase;
}

.hbw-gamehero__cta {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-top: 0.55rem;
  border: 0;
  padding: 0 15px 0 0;
  color: var(--hbw-white);
  background: url("../img/pfeil-weiss-klein.png") right center / 7px 15px no-repeat;
  font-family: 'open_sansbold', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-decoration: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.78);
  text-transform: uppercase;
  transition: opacity 160ms ease;
}

.hbw-gamehero__cta:hover {
  color: var(--hbw-white);
  background: url("../img/pfeil-weiss-klein.png") right center / 7px 15px no-repeat;
  opacity: 0.75;
  text-decoration: none;
}

.hbw-gamehero__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 767px) {
  .hbw-gamehero {
    margin-bottom: 2rem;
  }

  .hbw-gamehero__panel,
  .hbw-gamehero--hero .hbw-gamehero__panel {
    height: auto;
    min-height: 0;
  }

  .hbw-gamehero__information {
    position: relative;
    min-height: 340px;
  }

  .hbw-gamehero__information-inner {
    padding: 1.1rem 0.85rem 1rem;
  }

  .hbw-gamehero__title {
    font-size: clamp(19px, 5.8vw, 25px);
  }

  .hbw-gamehero__match-block {
    margin-top: 0.8rem;
  }

  .hbw-gamehero__date {
    font-size: clamp(16px, 4.5vw, 20px);
  }

  .hbw-gamehero__matchup {
    grid-template-columns: minmax(64px, 1fr) minmax(130px, 1.5fr) minmax(64px, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .hbw-gamehero__team img {
    width: clamp(120px, 32vw, 170px);
    height: auto;
  }

  .hbw-gamehero__scoreboard-values {
    min-height: 58px;
    gap: 0.2rem;
  }

  .hbw-gamehero__scoreboard-number {
    gap: 2px;
  }

  .hbw-gamehero__scoreboard-digit {
    width: clamp(29px, 8.5vw, 36px);
    height: 58px;
    font-size: 40px;
  }

  .hbw-gamehero__scoreboard-divider {
    font-size: 23px;
  }

  .hbw-gamehero__scoreboard-suffix {
    display: none;
  }

  .hbw-gamehero__competition {
    font-size: 14px;
  }

  .hbw-gamehero__context {
    font-size: 11px;
  }

  .hbw-gamehero__direct-links {
    position: relative;
  }

  .hbw-gamehero__direct-links ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hbw-gamehero__direct-link {
    min-width: 0;
  }

  .hbw-gamehero__direct-link + .hbw-gamehero__direct-link {
    border-left: 1px solid #d5dde2;
  }

  .hbw-gamehero__direct-link a {
    min-height: 42px;
    font-size: 14px;
  }

  .hbw-gamehero__toolbar {
    gap: 0.65rem;
  }

  .hbw-gamehero__tabs {
    width: auto;
    flex: 1 1 auto;
    gap: clamp(0.75rem, 5vw, 1.5rem);
  }

  .hbw-gamehero__tab {
    min-width: 0;
    flex: 1 1 50%;
    padding-right: 0.65rem;
    padding-left: 0.65rem;
  }

  .hbw-gamehero__pause {
    width: 34px;
    min-width: 34px;
    margin-left: 0.25rem;
    padding-right: 0;
    padding-left: 0;
  }

  .hbw-gamehero__pause::before {
    left: -0.6rem;
  }
}

#content main > .frame:has(> #news_category) {
  margin-bottom: 0;
}

#content main > .frame:has(> #news_category) + .frame > header > h1 {
  margin-top: 0;
}

#content main #news_category {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hbw-gamehero.is-enhanced .hbw-gamehero__panel.is-active {
    animation: none;
  }
}

@keyframes hbw-gamehero-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
