/* Silversword RPG – statische Website, keine externen Anfragen.
   Schriften selbst gehostet (SIL Open Font License): Alegreya, Alegreya SC.
   Optik aus der Spiel-UI: schwarzes Ladebild (Hero), Pergament-Tafeln (parch_bg.png),
   Marmor (Ausschnitt aus SS_Screen_FW.png), Logo-Silber mit rotem Glimmen. */

@font-face { font-family: "Alegreya"; src: url("fonts/alegreya-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("fonts/alegreya-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("fonts/alegreya-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Alegreya SC"; src: url("fonts/alegreya-sc-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya SC"; src: url("fonts/alegreya-sc-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night: #000;          /* Grund des Ladebilds */
  --stone: #15110e;       /* dunkle Zwischenflächen */
  --stone-2: #221b16;
  --ink: #2e1e10;         /* Schrift auf Pergament */
  --ink-dim: #5a4128;
  --silver: #c8c8c8;      /* Logo-Silber */
  --silver-hi: #ececec;
  --glow: #7d1410;        /* rotes Glimmen um den Schriftzug */
  --ember: #d9a441;       /* Akzent/Links auf Dunkel */
  --text: #e6ddcc;
  --text-dim: #b3a790;
  --measure: 68ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--stone);
  color: var(--text);
  font: 1.15rem/1.62 "Alegreya", Georgia, serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ember); text-underline-offset: 3px; }
a:hover { color: #f0c46a; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: "Alegreya SC", Georgia, serif; font-weight: 700; line-height: 1.15; }
h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem); margin: 0 0 .5em;
  color: var(--silver-hi);
  text-shadow: 0 0 .35em var(--glow), 0 0 .08em var(--glow);
}
h3 { font-size: 1.35rem; margin: 2em 0 .3em; color: var(--silver); }
p { margin: 0 0 1em; max-width: var(--measure); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
section { padding: clamp(56px, 8vw, 96px) 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: #fff; color: #000; padding: 8px 12px; }

/* ---------- Hero = Ladebild ---------- */
.hero { position: relative; background: var(--night); overflow: hidden; }
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  display: flex; justify-content: flex-end; gap: 18px;
  padding: 16px 20px; font-family: "Alegreya SC", serif; font-size: 1.05rem;
}
.topbar a { color: var(--silver); text-decoration: none; }
.topbar a:hover { color: var(--ember); }
.hero-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; align-items: end;
  min-height: min(92vh, 760px);
}
.bard { align-self: end; width: 100%; max-width: 580px; }
.hero-content { align-self: center; padding: 72px 24px 40px 0; text-align: center; }
.logo { width: 100%; max-width: 680px; margin: 0 auto; }
.hero h1 { margin: 0; }
.tagline {
  margin: .4em auto .2em; max-width: none;
  font-family: "Alegreya SC", serif; font-weight: 500; font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--silver); letter-spacing: .04em;
}
.ribbon {
  display: inline-block; margin: 1.1em auto 1.4em; max-width: none;
  padding: .45em 1.4em;
  font-family: "Alegreya SC", serif; font-weight: 700; font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: var(--ink);
  background: url("img/parchment.jpg") center / cover;
  border: 2px solid #8a6a3c; border-radius: 3px;
  box-shadow: 0 0 0 4px #000, 0 0 22px rgba(217, 164, 65, .45);
  transform: rotate(-2deg);
}
.platforms { margin: .8em auto 0; max-width: none; font-size: .95rem; color: var(--text-dim); }

/* ---------- Store-Knöpfe (Marmor wie die Spiel-Seitenleiste) ---------- */
.stores { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.store {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 190px;
  padding: 10px 20px 11px; border-radius: 8px; text-decoration: none; line-height: 1.15;
  color: #111; background: url("img/marble.jpg") center / cover;
  border: 1px solid #9a9a9a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 3px 10px rgba(0,0,0,.6);
}
.store small { font-size: .8rem; color: #333; }
.store span { font-family: "Alegreya SC", serif; font-weight: 700; font-size: 1.45rem; }
a.store:hover { color: #000; filter: brightness(1.08); }
.store.soon { opacity: .9; border-style: dashed; border-color: #ececec; background: rgba(255,255,255,.06); color: var(--silver-hi); box-shadow: none; }
.store.soon small { color: var(--ember); font-weight: 700; }

/* ---------- Pergament-Tafeln ---------- */
.parchment {
  background: url("img/parchment.jpg") center / cover, #e3cc9d;
  color: var(--ink);
  border-block: 6px solid #000;
}
.parchment h2 { color: var(--ink); text-shadow: none; }
.parchment a { color: #7d1410; }
.intro p:first-of-type { font-size: 1.35rem; font-style: italic; }

/* ---------- Android-Hinweis ---------- */
.android { background: radial-gradient(ellipse at 50% 0%, #2a1a12 0%, var(--stone) 70%); text-align: left; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .55em; }
.checks li { padding-left: 1.7em; position: relative; }
.checks li::before { content: "✦"; position: absolute; left: 0; color: var(--ember); }

/* ---------- Screenshots ---------- */
.shots { background: var(--night); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.gallery figure { margin: 0; }
.gallery img { border: 1px solid #3a2f25; border-radius: 4px; transition: transform .2s ease; }
.gallery a:hover img { transform: scale(1.02); }
.gallery figcaption { margin-top: .45em; font-size: .98rem; color: var(--text-dim); }

/* ---------- Features ---------- */
.features dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 26px 34px; }
.features dt { font-family: "Alegreya SC", serif; font-weight: 700; font-size: 1.35rem; color: #6b130f; }
.features dd { margin: .2em 0 0; }

/* ---------- Bestiarium / Drachen ---------- */
.bestiary { background: radial-gradient(ellipse at 50% 30%, #241a14 0%, var(--night) 75%); }
.mobs { list-style: none; margin: 1.5em 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); gap: 18px; }
.mobs li {
  aspect-ratio: 1; display: grid; place-items: center; padding: 12px;
  background: url("img/parchment.jpg") center / 500px; border-radius: 6px;
  border: 2px solid #000; box-shadow: 0 0 0 1px #6d5536, 0 6px 16px rgba(0,0,0,.55);
}
.mobs li { min-height: 0; overflow: hidden; }
.mobs img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); transition: transform .25s ease; }
.mobs li:hover img { transform: scale(1.07) rotate(-1deg); }
@media (prefers-reduced-motion: reduce) { .mobs img, .gallery img { transition: none; } }
.dragons { grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); }
.dragons li { background: rgba(255, 255, 255, .25); border-color: #6d5536; box-shadow: none; }

/* ---------- Community ---------- */
.community { background: var(--stone); }
.buttons { list-style: none; margin: 1em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: .55em 1.2em; border-radius: 6px; text-decoration: none;
  font-family: "Alegreya SC", serif; font-weight: 700; font-size: 1.1rem;
  color: #111; background: url("img/marble.jpg") center / cover; border: 1px solid #9a9a9a;
}
.btn:hover { color: #000; filter: brightness(1.08); }
.btn.ghost { background: none; color: var(--silver-hi); border-color: #6b5d4d; }
.btn.ghost:hover { color: var(--ember); border-color: var(--ember); }

/* ---------- Footer ---------- */
footer { background: var(--night); color: var(--text-dim); font-size: .95rem; padding: 28px 0 36px; border-top: 1px solid #2c241d; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; align-items: center; }
footer p { margin: 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--silver); }

/* ---------- Rechtliches ---------- */
.legal { padding: 48px 0 72px; background: var(--stone); }
.sheet {
  background: url("img/parchment.jpg") center / cover, #e3cc9d; color: var(--ink);
  padding: 32px clamp(20px, 5vw, 52px) 40px; border: 2px solid #000; border-radius: 4px;
  box-shadow: 0 0 0 1px #6d5536, 0 10px 30px rgba(0,0,0,.6);
}
.sheet h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin: .2em 0 .6em; }
.sheet h2 { font-size: 1.4rem; color: #6b130f; text-shadow: none; margin: 1.5em 0 .4em; }
.sheet a { color: #7d1410; }
.sheet address { font-style: normal; margin-bottom: 1em; }
.back { font-family: "Alegreya SC", serif; text-decoration: none; }

/* ---------- Schmal (Telefon) ---------- */
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-content { order: -1; padding: 64px 4px 8px; }
  .bard { max-width: 300px; margin: 0 auto; }
  .ribbon { transform: rotate(-1.5deg); }
}
