/* Götterfunke - die Webseite (0242, Unterseiten 0248). Farben aus dem Startbild: Holz, Gold, Pergament. */

@font-face {
  font-family: "Fredoka";
  src: url("schrift/fredoka-semibold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("schrift/nunito-semibold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("schrift/nunito-extrabold.woff") format("woff");
  font-weight: 800;
  font-display: swap;
}

:root {
  --holz-tief: #1d120a;
  --holz: #2e1d10;
  --holz-hell: #4a2f19;
  --gold: #f0bf55;
  --gold-hell: #ffe39a;
  --pergament: #fbefd5;
  --pergament-matt: #d8c3a0;
  --himmel: #8fb6ff;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--holz-tief);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--pergament);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(240, 191, 85, 0.18), transparent 70%),
    linear-gradient(180deg, var(--holz) 0%, var(--holz-tief) 60%);
}

a {
  color: var(--gold-hell);
  text-underline-offset: 0.2em;
}
a:hover,
a:focus-visible {
  color: var(--gold);
}

.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Die Bühne: das Startbild ---------------------------------------- */

.buehne {
  width: 100%;
  max-width: 1400px;
  margin: 0;
  padding: 0;
}
.buehne img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1670 / 942;
}
@media (min-width: 900px) {
  .buehne {
    padding: 24px 24px 0;
  }
  .buehne img {
    border-radius: 18px;
    box-shadow:
      0 0 0 2px rgba(240, 191, 85, 0.55),
      0 18px 60px rgba(0, 0, 0, 0.55),
      0 0 80px rgba(240, 191, 85, 0.12);
  }
}

/* --- Darunter: wenige Sätze ------------------------------------------ */

main {
  width: 100%;
  max-width: 760px;
  padding: 28px 20px 40px;
  text-align: center;
}

.marke {
  display: inline-block;
  margin: 10px 0 0;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  color: var(--gold-hell);
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  background: rgba(240, 191, 85, 0.08);
}

.einleitung {
  margin: 0 0 22px;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.45;
  color: var(--pergament);
}
.marke strong {
  font-weight: 600;
  color: var(--gold);
}

main p {
  margin: 0 0 14px;
}

.platzhalter {
  outline: 2px dashed rgba(143, 182, 255, 0.6);
  outline-offset: 6px;
  border-radius: 4px;
}

.hinweis {
  color: var(--pergament-matt);
  font-size: 1rem;
}

/* --- Fuss ------------------------------------------------------------- */

footer {
  margin-top: auto;
  width: 100%;
  padding: 18px 20px 26px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--pergament-matt);
  border-top: 1px solid rgba(240, 191, 85, 0.18);
}
footer p {
  margin: 0;
}

/* --- Unterseiten (Impressum, Datenschutz) ---------------------------- */

.seite {
  text-align: left;
  max-width: 720px;
  padding-top: 40px;
}
.seite h1,
.unterseite h1 {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  color: var(--gold-hell);
  font-size: 2rem;
  margin: 0 0 18px;
}
.seite h2,
.unterseite h2 {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  color: var(--gold);
  font-size: 1.25rem;
  margin: 28px 0 8px;
}
.zurueck {
  display: inline-block;
  margin-bottom: 24px;
}

/* --- Leiste oben: schlichte Navigation (0248) ------------------------ */

.leiste {
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  padding: 12px 20px;
  font-family: "Fredoka", "Nunito", sans-serif;
}
.leiste.ohne-wort {
  justify-content: center;
}
.leiste .wort {
  font-size: 1.4rem;
  color: var(--gold-hell);
  text-decoration: none;
}
.leiste ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.leiste ul a {
  display: block;
  padding: 6px 0 4px;
  color: var(--pergament);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.leiste ul a:hover,
.leiste ul a:focus-visible {
  color: var(--gold-hell);
}
.leiste ul a[aria-current="page"] {
  color: var(--gold-hell);
  border-bottom-color: var(--gold);
}
@media (min-width: 900px) {
  .leiste + .buehne {
    padding-top: 4px;
  }
}

/* --- Unterseiten: Das Spiel, Werdegang, Über (0248) ------------------ */

.unterseite {
  width: 100%;
  max-width: 1100px;
  padding: 20px 20px 48px;
  text-align: left;
}
.unterseite > h1,
.text {
  max-width: 720px;
  margin-inline: auto;
}
.unterseite > h1 {
  font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.4rem);
}
.text p {
  margin: 0 0 14px;
}
.text .einleitung {
  margin-bottom: 18px;
}

.bild {
  display: block;
  object-fit: cover;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: var(--holz-hell);
  box-shadow:
    0 0 0 1.5px rgba(240, 191, 85, 0.45),
    0 10px 30px rgba(0, 0, 0, 0.45);
}
.bild.quadrat {
  aspect-ratio: 1;
}
/* Solange das Auge noch kein Bild geliefert hat. */
.bild.leer {
  display: grid;
  place-items: center;
  color: var(--pergament-matt);
  font-size: 0.95rem;
  background: repeating-linear-gradient(135deg, var(--holz) 0 14px, var(--holz-hell) 14px 28px);
}
figure {
  margin: 0;
}
figcaption {
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--pergament-matt);
}

.galerie {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 30px 0;
}
@media (min-width: 760px) {
  .galerie {
    grid-template-columns: 1fr 1fr;
  }
  .galerie .gross {
    grid-column: 1 / -1;
  }
}

/* Zeitleiste: eine Linie links, je Stufe ein goldener Punkt. */
.zeitleiste {
  position: relative;
  max-width: 900px;
  margin: 34px auto 0;
  padding: 0;
  list-style: none;
}
.zeitleiste::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(240, 191, 85, 0.15));
}
.stufe {
  position: relative;
  padding-left: 36px;
  margin-bottom: 40px;
}
.stufe::before {
  content: "";
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--holz-tief), 0 0 14px rgba(240, 191, 85, 0.6);
}
.stufe time {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.unterseite .stufe h2 {
  margin: 2px 0 6px;
  color: var(--gold-hell);
}
.stufe p {
  margin: 0 0 14px;
}
.stufe figure {
  max-width: 640px;
}

/* Dieselbe Figur in allen Stufen nebeneinander. */
.vergleich {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 26px auto 44px;
}
@media (min-width: 760px) {
  .vergleich {
    gap: 18px;
  }
}
/* Pixelgrafik beim Vergrössern nicht glätten. */
.pixel {
  image-rendering: pixelated;
}
.schluss {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 1.2rem;
  color: var(--gold-hell);
}
.vergleich figcaption {
  text-align: center;
}

.liste {
  margin: 0 0 14px;
  padding-left: 1.2em;
}
.liste li {
  margin-bottom: 6px;
}
.liste li::marker {
  color: var(--gold);
}
.text h2:first-child {
  margin-top: 0;
}
