/* The homepage of the game: the same felt and thread as the game itself, laid out as a page.
   One look on purpose, in any browser theme. */
@font-face { font-family: Fredoka; src: url("spiel/assets/fonts/Fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
:root {
  --felt: #c6ecd9; --felt-deep: #a8dcc0; --cream: #fffaf0; --ink: #4a3b47; --soft: #6f6470;
  --red: #e9624e; --orange: #f29b38; --green: #69b96e; --green-ink: #2f6f58; --purple: #9a70cf; --blue: #4c9bdc; --pink: #ea7dae;
  --table: #24383f;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--felt);
  background-image: radial-gradient(circle at 12% 8%, rgba(255,255,255,.5) 0 90px, transparent 91px), radial-gradient(circle at 88% 22%, rgba(255,255,255,.35) 0 130px, transparent 131px), radial-gradient(circle at 30% 70%, rgba(255,255,255,.3) 0 110px, transparent 111px);
  background-attachment: fixed;
  font: 500 18px/1.55 Fredoka, "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}
a { color: #b0306f; text-underline-offset: 3px; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* The homepage speaks one language at a time: German first, English when the page is told so (the
   little script at its end). The legal pages show both, one below the other. */
.one-lang [lang="en"] { display: none; }
.one-lang[data-l="en"] [lang="en"] { display: revert; }
.one-lang[data-l="en"] [lang="de"] { display: none; }

/* ---------------------------------------------------------------- the top */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 6px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--green-ink); text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 3px 0 rgba(40,30,50,.16); }
.pill { font: inherit; font-weight: 600; font-size: 16px; color: var(--ink); background: var(--cream); border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; box-shadow: 0 4px 0 rgba(40,30,50,.14); }
.pill:hover { background: #fff; }

.hero { text-align: center; padding: 26px 0 8px; }
h1 { margin: 0; font-size: clamp(38px, 8vw, 76px); line-height: 1.05; font-weight: 700; color: var(--cream); text-wrap: balance;
  text-shadow: 0 0 0 var(--orange), 3px 3px 0 var(--orange), -3px 3px 0 var(--orange), 3px -3px 0 var(--orange), -3px -3px 0 var(--orange), 0 4px 0 var(--orange), 0 -4px 0 var(--orange), 4px 0 0 var(--orange), -4px 0 0 var(--orange), 0 9px 0 var(--red), 5px 7px 0 var(--red), -5px 7px 0 var(--red); }
.sub { margin: 20px auto 0; font-size: clamp(19px, 3vw, 25px); font-weight: 600; color: var(--green-ink); text-wrap: balance; }
.lead { max-width: 46ch; margin: 10px auto 0; color: var(--soft); text-wrap: pretty; }
.go { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin: 26px 0 0; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 22px; color: #fff; background: var(--red); border-radius: 26px; padding: 14px 30px; outline: 2.2px dashed rgba(255,255,255,.75); outline-offset: -8px; box-shadow: 0 6px 0 rgba(40,30,50,.2); transition: transform .12s; }
.btn:hover { color: #fff; transform: translateY(-2px); }
.btn.green { background: var(--green); }
.btn.quiet { background: var(--cream); color: var(--soft); outline-color: #e7c9a0; font-size: 18px; padding: 12px 22px; }

.stage { margin: 34px auto 0; max-width: 900px; background: var(--table); border-radius: 26px; padding: clamp(8px, 1.6vw, 14px); box-shadow: 0 10px 0 rgba(40,30,50,.16); }
.stage img { border-radius: 16px; width: 100%; }

/* ---------------------------------------------------------------- the cards */
section { padding: 54px 0 0; }
h2 { margin: 0 0 22px; text-align: center; font-size: clamp(28px, 5vw, 40px); line-height: 1.15; color: var(--red); text-wrap: balance; }
.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card { background: var(--cream); border-radius: 26px; padding: 14px 14px 20px; outline: 2.2px dashed #e7c9a0; outline-offset: -9px; box-shadow: 0 6px 0 rgba(40,30,50,.13); }
.card img { border-radius: 16px; width: 100%; aspect-ratio: 1238 / 696; object-fit: cover; }
.card h3 { margin: 16px 12px 6px; font-size: 23px; line-height: 1.2; color: var(--green-ink); }
.card p { margin: 0 12px; color: var(--ink); }

.facts { list-style: none; margin: 0 auto; padding: 22px clamp(18px, 4vw, 40px); max-width: 780px; background: var(--cream); border-radius: 26px; outline: 2.2px dashed #bfe0cc; outline-offset: -9px; box-shadow: 0 6px 0 rgba(40,30,50,.13); }
.facts li { position: relative; padding: 8px 0 8px 38px; }
.facts li::before { content: "★"; position: absolute; left: 4px; top: 5px; font-size: 22px; color: #f2c93b; text-shadow: 0 2px 0 rgba(40,30,50,.12); }
.facts strong { color: var(--green-ink); }

.contact { text-align: center; }
.contact p { max-width: 52ch; margin: 0 auto 18px; text-wrap: pretty; }
.mail { font-size: clamp(19px, 3.4vw, 24px); font-weight: 700; overflow-wrap: anywhere; }

footer { margin-top: 64px; padding: 26px 0 34px; background: var(--table); color: #f6ead6; text-align: center; font-size: 16px; }
footer a { color: #f6ead6; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-bottom: 10px; font-weight: 600; }
footer small { opacity: .75; }

/* ---------------------------------------------------------------- the two legal pages */
.paper { max-width: 800px; margin: 22px auto 0; padding: clamp(20px, 5vw, 44px); background: var(--cream); border-radius: 26px; outline: 2.2px dashed #e7c9a0; outline-offset: -9px; box-shadow: 0 6px 0 rgba(40,30,50,.13); overflow-wrap: anywhere; }
.paper h1 { font-size: clamp(30px, 6vw, 44px); color: var(--red); text-shadow: none; text-align: left; }
.paper h2 { text-align: left; font-size: 24px; margin: 30px 0 8px; color: var(--green-ink); }
.paper h2:first-of-type { margin-top: 22px; }
.paper p, .paper ul { margin: 0 0 12px; }
.paper ul { padding-left: 22px; }
.paper address { font-style: normal; margin: 0 0 12px; }
.paper hr { border: 0; border-top: 2.2px dashed #e7c9a0; margin: 38px 0 30px; }
.paper .stand { color: var(--soft); font-size: 16px; }

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