:root {
  color-scheme: light;
  --ink: #111317;
  --muted: #555d66;
  --paper: #f5f6f7;
  --surface: #ffffff;
  --line: #c9ced3;
  --blue: #0b63e5;
  --green: #16734a;
  --gold: #d69b00;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 280px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

img {
  max-width: 100%;
}

a {
  color: #075bbb;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #003f85;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #f0b500;
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.96);
}

.site-header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

.site-brand img {
  display: block;
  width: 150px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 7px 10px;
  border-bottom: 3px solid transparent;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--blue);
  color: #064fae;
}

.site-nav .play-link {
  margin-left: 4px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
}

.site-nav .play-link:hover {
  border-bottom-color: var(--ink);
  background: #29323a;
  color: #fff;
}

.page-hero {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background-image: url("/Assets/Hintergrund%20Main.png");
  background-position: center 44%;
  background-size: cover;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 246, 247, 0.78);
}

.page-hero.compact {
  min-height: 250px;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 48px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #145438;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: 48px;
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 18px 0 0;
  color: #303840;
  font-size: 20px;
  line-height: 1.5;
}

.page-main {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  justify-content: space-between;
  gap: 64px;
}

.toc {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 28px);
  border-top: 4px solid var(--ink);
  padding-top: 14px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.toc a {
  display: block;
  padding: 4px 0;
  color: #414950;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.toc a:hover {
  color: #064fae;
  text-decoration: underline;
}

.article {
  min-width: 0;
}

.article > section,
.article > article {
  scroll-margin-top: calc(var(--header-height) + 24px);
  padding: 0 0 42px;
  margin: 0 0 42px;
  border-bottom: 1px solid var(--line);
}

.article > section:last-child,
.article > article:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.article h2 {
  margin: 0 0 16px;
  font-size: 30px;
}

.article h3 {
  margin: 28px 0 8px;
  font-size: 21px;
}

.article p {
  margin: 0 0 18px;
}

.article ul,
.article ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.article li + li {
  margin-top: 8px;
}

.lead {
  margin: 0 0 34px;
  padding-left: 20px;
  border-left: 5px solid var(--blue);
  color: #26313a;
  font-size: 20px;
}

.note {
  margin: 26px 0;
  padding: 18px 20px;
  border: 1px solid #b8c2ca;
  border-left: 5px solid var(--gold);
  border-radius: 6px;
  background: #fffdf5;
}

.note strong {
  display: block;
  margin-bottom: 4px;
}

.module-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.module-item {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 6px;
  background: var(--surface);
}

.module-item:nth-child(3n + 2) {
  border-top-color: var(--green);
}

.module-item:nth-child(3n) {
  border-top-color: var(--gold);
}

.module-item h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.module-item p {
  margin: 0;
  color: #40484f;
  font-size: 15px;
  line-height: 1.5;
}

.game-figure {
  margin: 28px 0 34px;
}

.game-figure img {
  display: block;
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #d9d9d9;
}

.game-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.faq-list details {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  padding: 16px 44px 16px 0;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.faq-list details p {
  padding: 0 0 16px;
  margin: 0;
}

.update-meta {
  display: inline-block;
  margin-bottom: 12px;
  color: #145438;
  font-size: 14px;
  font-weight: 800;
}

.contact-block {
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--surface);
}

.contact-block p:last-child {
  margin-bottom: 0;
}

.legal-copy address {
  margin: 18px 0 28px;
  font-style: normal;
}

.legal-copy h2 {
  margin-top: 40px;
}

.credits-list {
  margin: 24px 0 0;
}

.credits-list dt {
  margin-top: 18px;
  font-weight: 800;
}

.credits-list dd {
  margin: 2px 0 0;
  color: #414950;
}

.site-footer {
  border-top: 2px solid var(--ink);
  background: #191d21;
  color: #e7eaed;
}

.site-footer-inner {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.site-footer p {
  margin: 0;
  color: #c4cbd1;
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.site-footer a,
.site-footer button {
  color: #fff;
  font-size: 14px;
}

.site-footer button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.site-footer button:hover,
.site-footer button:focus-visible {
  color: #9ec9ff;
}

.privacy-settings-panel {
  margin-top: 24px;
  padding: 22px 0 2px;
  border-top: 2px solid var(--ink);
}

.privacy-settings-panel h3 {
  margin-top: 0;
}

.privacy-settings-action {
  min-height: 44px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.privacy-settings-action:hover,
.privacy-settings-action:focus-visible {
  background: #074f9f;
}

@media (max-width: 960px) {
  .site-header {
    position: static;
  }

  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .toc {
    position: static;
    columns: 2;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header-inner,
  .page-hero-inner,
  .page-main,
  .site-footer-inner {
    width: min(100% - 28px, 1080px);
  }

  .site-brand img {
    width: 126px;
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    min-height: 34px;
    padding: 5px 7px;
    font-size: 13px;
  }

  .page-hero,
  .page-hero.compact {
    min-height: 280px;
    background-position: 42% center;
  }

  .page-hero-inner {
    padding: 42px 0 36px;
  }

  h1 {
    font-size: 35px;
    overflow-wrap: anywhere;
  }

  .page-hero p:last-child,
  .lead {
    font-size: 18px;
  }

  .page-main {
    padding: 40px 0 54px;
  }

  .toc {
    columns: 1;
  }

  .article h2 {
    font-size: 26px;
  }

  .module-list {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
