/* Made by PapaGordon */
/* WindowsGSM-Seiten. Basis kommt aus mf-base.css. */
.pageHero h1 { animation: fadeIn .6s both; }
.pageHero { padding-top: clamp(40px, 6vw, 80px); }
.pageHero > .heroNote { margin-top: 10px; font-size: 16px; }

/* Bereichsnavigation. */
.projectNav { width: var(--page); margin: 14px auto 0; display: flex; flex-wrap: wrap; gap: 4px; }
.projectNav a { padding: 6px 14px; border-radius: 999px; color: var(--haze); font-size: 15px; font-weight: 600; text-decoration: none; transition: color .2s, background .2s; }
.projectNav a:hover, .projectNav a[aria-current="page"] { color: var(--moon); background: var(--deck); }

.wgsmFacts { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 0; padding: 0; list-style: none; }
.wgsmFacts li { padding: 6px 14px; border-radius: 999px; background: var(--deck); color: var(--soft); font-size: 14px; font-weight: 600; }

/* Schritte und Karten. */
.wgsmSteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.wgsmSteps li { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-tile); background: var(--deck); counter-increment: step; }
.wgsmSteps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%; background: var(--coral); color: #1a0f0b; font: 900 19px/1 var(--font-display); }
.wgsmSteps h3, .wgsmCard h3 { margin-bottom: 10px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1; }
.wgsmSteps p, .wgsmCard p { color: var(--soft); }
.wgsmCards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wgsmCard { min-width: 0; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-tile); background: var(--deck); }

/* Spiele. */
.gameLinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.gameLinks a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: var(--radius-small); background: var(--deck); font-weight: 600; text-decoration: none; transition: background .2s; }
.gameLinks a:hover { background: var(--deck-high); }
.gameLinksAll { margin-top: 22px; }

/* Hilfe. */
.wgsmHelp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wgsmHelp h2 { margin-bottom: 14px; font-size: clamp(28px, 3.4vw, 44px); }
.wgsmHelp .heroActions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.wgsmLinks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; }
.wgsmLinks a { font-weight: 600; text-decoration-color: var(--coral); text-underline-offset: 4px; }

/* Dokumentation. */
.docsHero h1 { font-size: clamp(44px, 6.4vw, 92px); overflow-wrap: anywhere; hyphens: auto; }
.docsLayout { width: var(--page); margin: 0 auto; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.docsToc { position: sticky; top: 90px; display: grid; gap: 2px; max-height: calc(100vh - 110px); overflow-y: auto; padding: 20px; border-radius: var(--radius-tile); background: var(--deck); font-size: 15px; }
.docsTocTitle { margin-bottom: 6px; font: 800 18px/1.2 var(--font-display); }
.docsTocGroup { margin-top: 12px; color: var(--haze); font-size: 13px; font-weight: 600; }
.docsToc a { padding: 5px 8px; border-radius: 8px; text-decoration: none; }
.docsToc a:hover { background: var(--deck-high); }
.docsContent { display: grid; gap: 12px; min-width: 0; }
.docSection { min-width: 0; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-tile); background: var(--deck); scroll-margin-top: 90px; }
.docSection h2 { margin-bottom: 16px; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.docBody { color: var(--soft); line-height: 1.7; }
.docBody > * + * { margin-top: 12px; }
.docBody h3 { margin-top: 22px; color: var(--moon); font: 800 20px/1.3 var(--font-display); letter-spacing: -.01em; }
.docBody strong { color: var(--moon); }
.docBody ol, .docBody ul { padding-left: 22px; }
.docBody li + li { margin-top: 8px; }
.docBody a { color: var(--moon); font-weight: 600; text-decoration-color: var(--coral); text-underline-offset: 3px; overflow-wrap: anywhere; }
.docBody code { padding: 1px 6px; border-radius: 6px; background: var(--night); font: 14px/1.5 Consolas, ui-monospace, monospace; overflow-wrap: anywhere; }
.docBody pre { overflow-x: auto; padding: 14px 16px; border-radius: var(--radius-small); background: var(--night); }
.docBody pre code { padding: 0; background: none; overflow-wrap: normal; }
.docBody details { padding: 14px 18px; border-radius: var(--radius-small); background: var(--deck-high); }
.docBody summary { color: var(--moon); font-weight: 600; cursor: pointer; }
.docBody details p { margin-top: 10px; }

@media (max-width: 900px) {
  .wgsmSteps, .wgsmCards, .wgsmHelp { grid-template-columns: 1fr; }
  .docsLayout { grid-template-columns: 1fr; }
  .docsToc { position: static; max-height: none; }
}
