/* Spiel-Infoseiten: Layoutabgleich mit dem öffentlichen WordPress-Original.
   Nach site.css und subpage-overrides.css laden. Der Builder soll die Abschnitte
   .detail-announcement, .detail-meta, .detail-intro, .detail-story und
   .detail-cta als eigene Geschwister im Seiteninhalt ausgeben. */

body.detail {
  background: #f3fcfb;
}

body.detail .detail-announcement {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6c477;
  color: #3c4449;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

@media (min-width: 761px) {
  body.detail .site-header {
    position: absolute;
    z-index: 20;
    top: 38px;
    left: 0;
    right: 0;
    height: 148px;
    background: transparent;
    box-shadow: none;
  }

  body.detail .site-header .brand {
    visibility: hidden;
  }

  body.detail .site-header .main-nav {
    transform: translateX(-7vw);
  }

  body.detail .detail-hero {
    height: 100vh;
    min-height: 0;
    padding: 0;
    background: #151719;
    border-radius: 0 0 50% 50% / 0 0 8% 8%;
  }

  body.detail .detail-hero .wrap {
    width: 100%;
    max-width: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  body.detail .detail-hero h1 {
    margin: 0;
    color: #87e4db;
    font-size: 96px;
    line-height: 1;
  }

  body.detail .detail-hero p {
    width: 69.3vw;
    max-width: 1800px;
    margin: 20px auto 0;
    padding: 0 24px;
    color: #f3fcfb;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
  }

  body.detail .detail-hero .hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px auto 0;
    transform: translateX(38px);
  }

  body.detail .detail-hero .btn {
    min-height: 52px;
    font-size: 18px;
  }

  body.detail .detail-hero img {
    position: absolute;
    top: calc(88vh - 204.8px);
    bottom: auto;
    left: calc(33vw - 76.8px);
    width: 256px;
    height: 256px;
    border-radius: 50%;
    opacity: .30;
    object-fit: cover;
    pointer-events: none;
  }

  body.detail .detail-meta {
    min-height: 289px;
    padding: 171px 0 10px;
    background: #3c4449;
  }

  body.detail .detail-meta .game-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 84%;
    max-width: none;
    min-height: 108px;
    margin: 0 auto;
    gap: 20px;
  }

  body.detail .detail-intro {
    min-height: 470px;
    padding: 160px 0 100px;
  }

  body.detail .detail-intro > .wrap,
  body.detail .detail-intro > .narrow {
    width: min(calc(100% - 48px), 1185px);
  }

  body.detail .detail-story {
    min-height: 546px;
    padding: 170px 0 100px;
  }

  body.detail .detail-story > .wrap,
  body.detail .detail-story > .narrow {
    width: 84%;
    max-width: none;
  }

  body.detail .detail-story h2,
  body.detail .detail-story h3,
  body.detail .detail-story p {
    width: 47%;
    margin-left: auto;
  }

  body.detail .detail-story .story-copy {
    width: 46.75%;
    margin-left: auto;
    transform: translateX(-10px);
  }

  body.detail .detail-story .story-copy > h2,
  body.detail .detail-story .story-copy > h3,
  body.detail .detail-story .story-copy > p {
    width: 100%;
  }

  body.detail .detail-cta {
    min-height: 619px;
    padding: 202px 0 100px;
  }

  body.detail .detail-cta .section-cta {
    margin-top: 0;
  }

  body.detail .detail-cta p {
    margin-bottom: 20px;
  }

  body.detail .faq {
    min-height: 872px;
    padding: 160px 0 170px;
  }

  body.detail .faq .narrow {
    grid-template-columns: 28.25% minmax(0, 1fr);
  }

  body.detail .faq h2.regular {
    padding: 12px 0 0 10px;
  }

  body.detail .faq .faq-list {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 0 0 10px;
  }

  body.detail .faq details {
    padding-left: 10px;
  }
}

body.detail .detail-meta,
body.detail .detail-intro {
  background: #3c4449;
  color: #f3fcfb;
}

body.detail .detail-meta .game-meta a,
body.detail .detail-meta .meta-item {
  color: #f3fcfb;
  text-decoration: none;
  text-align: center;
}

body.detail .detail-meta .game-meta a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  color: #87e4db;
  font-size: 24px;
  line-height: 1.5;
}

body.detail .detail-meta .meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

body.detail .detail-meta .game-meta a .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  order: -2;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(84%) sepia(21%) saturate(739%) hue-rotate(111deg) brightness(98%) contrast(88%);
}

/* Diese Label erscheinen nur bei der bisherigen, label-losen game_meta()-Ausgabe. */
body.detail .detail-meta .game-meta a:not(:has(.meta-label)):nth-child(1)::before { content: "Jahrgangsstufe"; }
body.detail .detail-meta .game-meta a:not(:has(.meta-label)):nth-child(2)::before { content: "Schwerpunkt"; }
body.detail .detail-meta .game-meta a:not(:has(.meta-label)):nth-child(3)::before { content: "Dauer"; }
body.detail .detail-meta .game-meta a::before,
body.detail .detail-meta .meta-label {
  order: -1;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
}

body.detail .detail-intro h2 {
  margin: 0 0 20px;
  padding-top: 50px;
  color: #f3fcfb;
  font-family: Lexend, sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  text-align: left;
}

body.detail .detail-intro p {
  margin: 0;
  color: #f3fcfb;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  text-align: left;
}

body.detail .detail-story {
  background: #f3fcfb;
  color: #3c4449;
}

body.detail .detail-story h2,
body.detail .detail-story h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #87e4db;
  font-family: Indigo, sans-serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

body.detail .detail-story p {
  margin-top: 0;
  color: #3c4449;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.2;
}

body.detail .detail-cta {
  background: #87e4db url('/assets/overlay-mint-section.png') center center / auto no-repeat;
  color: #3c4449;
  text-align: center;
}

body.detail .detail-cta h2 {
  margin: 0 0 20px;
  color: #3c4449;
  font-family: Indigo, sans-serif;
  font-size: 96px;
  line-height: 1;
  text-transform: uppercase;
}

body.detail .detail-cta p {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

body.detail .detail-cta .section-cta,
body.detail .detail-cta .hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

body.detail .detail-cta .btn {
  min-height: 52px;
  margin: 0;
  font-size: 18px;
}

body.detail .detail-cta .btn.outline {
  color: #3c4449;
  border-color: #3c4449;
  background: transparent;
}

body.detail .detail-hero .btn[aria-disabled="true"],
body.detail .detail-cta .btn[aria-disabled="true"] {
  opacity: 1;
}

body.detail .faq {
  background: #f3fcfb;
  color: #3c4449;
}

body.detail .faq details {
  margin: 0 0 30px;
  padding-top: 0;
  padding-bottom: 0;
  border: 0;
}

body.detail .faq details:last-child {
  margin-bottom: 0;
}

body.detail .faq summary {
  margin-bottom: 5px;
  padding: 0 10px 30px;
  border-bottom: .667px solid #9e9e9e33;
}

body.detail .faq details:not([open]) summary {
  margin-bottom: 0;
}

body.detail .faq details p {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 10px 24.4px;
  font-size: 18px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  body.detail .detail-announcement {
    min-height: 44px;
    padding: 4px 12px;
    font-size: 14px;
  }

  body.detail .site-header {
    position: relative;
    z-index: 20;
    top: auto;
    height: 68px;
    background: #fff;
    color: #3c4449;
  }

  body.detail .site-header .header-inner {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 68px;
  }

  body.detail .site-header .brand,
  body.detail .site-header .brand img {
    width: 180px;
    height: 62px;
  }

  body.detail .site-header .brand img {
    transform: none;
    object-fit: contain;
  }

  body.detail .site-header .menu-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
    display: block;
    margin: 0;
  }

  body.detail .site-header .mobile-nav { top: 68px; }

  body.detail .detail-hero {
    height: 100vh;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: #151719;
  }

  body.detail .detail-hero .wrap {
    width: 90%;
    max-width: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  body.detail .detail-hero h1 {
    margin: 0;
    color: #87e4db;
    font-size: clamp(34px, 7.7vw, 40px);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  body.detail .detail-hero p {
    max-width: none;
    margin: 20px auto 0;
    color: #f3fcfb;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
  }

  body.detail .detail-hero .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 20px;
    margin: 22px auto 0;
    justify-content: stretch;
  }

  body.detail .detail-hero .hero-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 10px 14px;
    font-size: 18px;
    line-height: 1.15;
  }

  body.detail .detail-hero img {
    position: absolute;
    top: 0;
    bottom: auto;
    left: 0;
    width: 256px;
    height: 256px;
    opacity: .30;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
  }

  body.detail .detail-meta {
    min-height: 484px;
    padding: 51px 0 9px;
  }

  body.detail .detail-meta .game-meta {
    display: grid;
    grid-template-columns: 1fr;
    width: 80%;
    max-width: none;
    gap: 50px;
    margin: 0 auto;
  }

  body.detail .detail-meta .game-meta a,
  body.detail .detail-meta .meta-item {
    min-height: 108px;
  }

  body.detail .detail-intro {
    min-height: 486px;
    padding: 52px 0;
  }

  body.detail .detail-intro > .wrap,
  body.detail .detail-intro > .narrow {
    width: min(calc(100% - 52px), 306px);
  }

  body.detail .detail-intro h2 {
    margin-bottom: 20px;
    padding-top: 50px;
    font-size: 24px;
    line-height: 1;
    text-align: center;
  }

  body.detail .detail-intro p {
    font-size: 18px;
    line-height: 1.5;
  }

  body.detail .detail-story {
    min-height: 391px;
    padding: 112px 0 0;
    border-bottom: 0;
  }

  body.detail .detail-story > .wrap,
  body.detail .detail-story > .narrow {
    width: 80%;
  }

  body.detail .detail-story h2,
  body.detail .detail-story h3,
  body.detail .detail-story p {
    width: 100%;
    margin-left: 0;
  }

  body.detail .detail-story h2,
  body.detail .detail-story h3 {
    font-size: 26px;
    line-height: 1.2;
  }

  body.detail .detail-story p {
    margin-bottom: 0;
    font-size: 24px;
    line-height: 1.2;
  }

  body.detail .detail-cta {
    min-height: 384px;
    padding: 52px 0;
    background-size: cover;
  }

  body.detail .detail-cta > .wrap {
    width: 84%;
  }

  body.detail .detail-cta h2 {
    margin-bottom: 20px;
    font-size: 50px;
    line-height: 1.2;
  }

  body.detail .detail-cta p {
    margin-bottom: 20px;
    font-size: 28px;
    line-height: 1;
  }

  body.detail .detail-cta .section-cta,
  body.detail .detail-cta .hero-actions {
    align-items: center;
    flex-direction: column;
    gap: 20px;
    margin-top: 0;
  }

  body.detail .detail-cta .btn {
    width: 100%;
  }

  body.detail .faq {
    min-height: 1013px;
    padding: 52px 0 51.2px;
  }

  body.detail .faq .narrow {
    display: block;
    width: 80%;
  }

  body.detail .faq h2.regular {
    margin: 0 0 60px;
    font-size: 28px;
    line-height: 38px;
  }

  body.detail .faq summary {
    font-size: 24px;
    line-height: 38px;
    font-weight: 300;
  }
}
