/* glodhonēre – the look of the game's main menu: dark ground, the torch-lit picture, the glowing logo,
   pale stone slabs with charcoal writing. */
@font-face { font-family: Macondo; src: url(schrift/Macondo-Regular.ttf) format("truetype"); font-display: swap; }

:root {
  --grund: #0b0806;
  --glut: #ff9b2e;
  --schrift: #e6d8bf;
  --kohle: #26211c;
  --stein: #d9d3c6;
  --rauh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .32 0 0 0 0 .28 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--grund); color: var(--schrift); font: 18px/1.55 Macondo, Georgia, serif; }

/* two languages: only the chosen one shows */
html[data-lang="de"] [lang="en"], html[data-lang="en"] [lang="de"] { display: none !important; }

a { color: var(--glut); }

/* ---------- the top: picture at the left, logo and slabs at the right ---------- */
.held { position: relative; min-height: 100vh; display: flex; overflow: hidden; }
.bild { position: absolute; inset: 0 auto 0 0; height: 100%; width: min(100%, 125vh); }
.bild img { height: 100%; width: 100%; object-fit: cover; object-position: left center; display: block;
  -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 98%);
          mask-image: linear-gradient(to right, #000 55%, transparent 98%); }
.fackel { position: absolute; left: 7.5%; top: 17%; width: 60vh; height: 60vh; margin: -30vh 0 0 -30vh;
  background: radial-gradient(circle, rgba(255,150,40,.28), rgba(255,120,30,.08) 45%, transparent 70%);
  mix-blend-mode: screen; animation: flackern 3.1s infinite alternate ease-in-out; pointer-events: none; }
@keyframes flackern {
  0% { opacity: .75; transform: scale(1); } 30% { opacity: 1; transform: scale(1.04); }
  55% { opacity: .82; transform: scale(.98); } 80% { opacity: .95; transform: scale(1.03); } 100% { opacity: .8; transform: scale(1); }
}
.seite { position: relative; margin-left: auto; width: min(560px, 46%); padding: 5vh 4vw 6vh 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; }
h1 { margin: 0; line-height: 0; }
.logo { width: 100%; max-width: 520px; height: auto;
  filter: drop-shadow(0 0 14px rgba(255,140,30,.35)); animation: gluehen 4.5s infinite alternate ease-in-out; }
@keyframes gluehen { from { filter: drop-shadow(0 0 8px rgba(255,140,30,.25)); } to { filter: drop-shadow(0 0 22px rgba(255,150,40,.5)); } }
.satz { margin: 0; font-size: 1.3rem; text-align: center; text-shadow: 0 2px 6px #000; }
.platten { display: flex; flex-direction: column; gap: .9rem; width: 100%; max-width: 420px; }

/* a stone slab: pale, rough, a little uneven */
.platte { display: block; position: relative; padding: .7rem 1.2rem; text-align: center; text-decoration: none;
  color: var(--kohle); font-size: 1.35rem; background: var(--rauh), linear-gradient(170deg, #e4dfd3, #c9c2b3);
  border-radius: 7px 11px 6px 9px / 9px 6px 11px 7px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -3px 0 rgba(0,0,0,.18), 0 4px 10px rgba(0,0,0,.6);
  transition: transform .12s, filter .12s; }
.platte:nth-child(2) { border-radius: 10px 6px 9px 7px / 6px 10px 7px 9px; }
.platte:nth-child(3) { border-radius: 6px 9px 11px 6px / 10px 7px 6px 10px; }
.platte:hover { transform: translateY(-2px); filter: brightness(1.06); }
.platte:active { transform: translateY(1px); }
.platte.gross { display: inline-block; font-size: 1.6rem; padding: .9rem 2.2rem; }
.platte.aus { filter: grayscale(1) brightness(.6); cursor: not-allowed; transform: none; }
.version { display: block; font-size: .85rem; opacity: .7; }
.version:empty { display: none; }

.sprache { background: none; border: 1px solid rgba(230,216,191,.35); color: var(--schrift); font: inherit;
  font-size: .95rem; padding: .25rem .9rem; border-radius: 6px; cursor: pointer; opacity: .8; }
.sprache:hover { opacity: 1; border-color: var(--glut); }

/* ---------- the sections below ---------- */
main { max-width: 980px; margin: 0 auto; padding: 0 1.2rem 3rem; }
.tafel { margin: 3.5rem 0; padding: 2rem 2.2rem; border-radius: 10px 14px 9px 12px;
  background: var(--rauh), linear-gradient(170deg, #1d1712, #120e0b); box-shadow: 0 6px 22px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,180,90,.08); }
h2 { margin: 0 0 1rem; font-weight: normal; font-size: 2rem; color: var(--glut); text-shadow: 0 0 12px rgba(255,140,30,.35); }
.name { opacity: .8; font-style: italic; }
.bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.6rem; }
figure { margin: 0; }
figure img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.7); }
figcaption { font-size: .95rem; opacity: .75; margin-top: .4rem; text-align: center; }

.warnung { border: 2px solid #c0392b; background: rgba(150,30,20,.22); border-radius: 8px; padding: 1rem 1.3rem; }
.warnung strong { display: block; font-size: 1.3rem; color: #ff7b63; margin-bottom: .4rem; }
.warnung ul { margin: 0; padding-left: 1.2rem; }
.warnung li { margin: .35rem 0; }
.zustimmung { display: flex; gap: .7rem; align-items: flex-start; margin: 1.2rem 0 .2rem; cursor: pointer; }
.zustimmung input { width: 1.3rem; height: 1.3rem; margin-top: .2rem; accent-color: var(--glut); flex: none; }
.zustimmung.blinkt { animation: blinkt .9s 2; }
@keyframes blinkt { 50% { color: var(--glut); } }
.knopf { text-align: center; margin: 1.4rem 0; }
.klein { font-size: .95rem; opacity: .75; }
.neu-liste li { margin: .45rem 0; }

footer { display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; padding: 2rem 1rem 2.6rem;
  font-size: .95rem; opacity: .75; border-top: 1px solid rgba(230,216,191,.12); }
footer a { color: var(--schrift); }

/* ---------- the legal pages ---------- */
.recht { max-width: 820px; margin: 0 auto; padding: 2rem 1.2rem 3rem; }
.recht .zurueck { display: inline-block; margin-bottom: 1rem; }
.recht h1 { line-height: 1.2; font-weight: normal; font-size: 2.4rem; color: var(--glut); margin: .5rem 0 1.2rem; }
.recht h2 { font-size: 1.4rem; margin: 1.8rem 0 .5rem; }
.recht .kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.recht .kopf img { width: 180px; height: auto; }

/* ---------- narrow screens: picture above, everything in one column ---------- */
@media (max-width: 820px) {
  .held { flex-direction: column; min-height: 0; }
  .bild { position: relative; width: 100%; height: 62vh; }
  .bild img { -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
                      mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); }
  .fackel { width: 40vh; height: 40vh; margin: -20vh 0 0 -20vh; }
  .seite { width: 100%; margin: -16vh 0 0; padding: 0 1.2rem 2rem; }
  .logo { max-width: 360px; }
  .bilder { grid-template-columns: 1fr; }
  .tafel { padding: 1.4rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { .fackel, .logo { animation: none; } html { scroll-behavior: auto; } }
