@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f4efe4;
  --card: #fbf8f1;
  --ink: #1d1a2c;
  --muted: #6a6474;
  --rule: #ddd4c2;
  --accent: #6b4ef0;
  --display: "Fraunces", Georgia, serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16141f;
    --card: #1e1b2a;
    --ink: #ece6d8;
    --muted: #a39cae;
    --rule: #34304a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1rem 4rem; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Kopf */
.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 64rem; width: 100%; margin: 0 auto; padding: 1.5rem 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand .word { font: 600 1.35rem/1 var(--display); letter-spacing: -.01em; }
.brand em { font-style: italic; font-weight: 400; color: var(--accent); }
.dots { display: inline-grid; grid-template-columns: repeat(2, 9px); gap: 3px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: #f2a33a; }
.dots i:nth-child(2) { background: #e2546b; }
.dots i:nth-child(3) { background: #3cb7a5; }
.dots i:nth-child(4) { background: var(--accent); }
.brand:hover .dots i { animation: hop .5s ease both; }
.brand:hover .dots i:nth-child(2) { animation-delay: .06s; }
.brand:hover .dots i:nth-child(3) { animation-delay: .12s; }
.brand:hover .dots i:nth-child(4) { animation-delay: .18s; }
@keyframes hop { 40% { transform: translateY(-5px); } }
.lang {
  font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid var(--rule); border-radius: 999px; padding: .3rem .8rem;
}
.lang:hover { border-color: var(--accent); }

/* Übersicht */
.hero { padding: 3rem 0 2.5rem; max-width: 40rem; }
.hero h1 {
  font: 500 clamp(2.4rem, 7vw, 4rem)/1.02 var(--display);
  letter-spacing: -.025em; margin: 0 0 1rem;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.hero h1 em { color: var(--accent); }
.hero p { color: var(--muted); font-size: 1.15rem; margin: 0; }
.games { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.game {
  --accent: var(--game);
  background: var(--card); border: 1px solid var(--rule); border-radius: 22px;
  padding: 1.25rem; display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: center;
  box-shadow: 0 1px 0 var(--rule), 0 14px 30px -24px rgba(20, 10, 60, .45);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: rise .5s ease both;
}
.game:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 1px 0 var(--rule), 0 22px 40px -26px var(--game); }
.game img { width: 4.5rem; height: 4.5rem; border-radius: 18px; }
.game h2 { font: 600 1.3rem/1.15 var(--display); margin: 0 0 .2rem; }
.game p { margin: 0 0 .6rem; color: var(--muted); font-size: .95rem; line-height: 1.4; }
.game nav { display: flex; gap: .9rem; font-size: .9rem; font-weight: 700; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* Rechtstexte */
.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-top: 2rem; }
@media (min-width: 52rem) {
  .doc { grid-template-columns: 17rem minmax(0, 1fr); align-items: start; }
  .doc-head { position: sticky; top: 2rem; }
}
.doc-head img { width: 5rem; height: 5rem; border-radius: 20px; display: block; margin-bottom: 1rem; }
.doc-head .kicker { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0; }
.doc-head h1 { font: 500 clamp(1.9rem, 5vw, 2.1rem)/1.1 var(--display); hyphens: auto; overflow-wrap: break-word; letter-spacing: -.02em; margin: .3rem 0 .8rem; }
.doc-head .stand { color: var(--muted); font-size: .9rem; margin: 0; }
.doc-body { max-width: 42rem; counter-reset: sec; }
.summary {
  background: var(--card); border: 1px solid var(--rule); border-left: 5px solid var(--accent);
  border-radius: 14px; padding: 1.1rem 1.3rem; margin-bottom: 2.5rem;
}
.summary strong { display: block; font-family: var(--display); font-size: 1.1rem; margin-bottom: .25rem; }
.summary p { margin: 0; }
.doc-body section { padding-top: .5rem; margin-bottom: 2.2rem; }
.doc-body h2 {
  font: 600 1.45rem/1.2 var(--display); letter-spacing: -.01em; margin: 0 0 .8rem;
  display: flex; gap: .8rem; align-items: baseline;
}
.numbered section h2::before {
  counter-increment: sec; content: counter(sec, decimal-leading-zero);
  font: 700 .85rem/1 var(--body); color: var(--accent); letter-spacing: .05em;
  border: 1.5px solid var(--accent); border-radius: 999px; padding: .3rem .5rem; flex: none;
  position: relative; top: -.15rem;
}
.doc-body h3 { font: 700 1rem/1.3 var(--body); margin: 1.5rem 0 .4rem; }
.doc-body p, .doc-body ul { margin: 0 0 .9rem; }
.doc-body ul { padding-left: 1.2rem; }
.doc-body li { margin-bottom: .25rem; }
.doc-body li::marker { color: var(--accent); }
.address { font-style: normal; }
.more { font-size: .95rem; color: var(--muted); }

/* Fuß */
.foot {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  max-width: 64rem; width: 100%; margin: 0 auto; padding: 1.5rem 1rem 2rem;
  border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem;
}
.foot nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
