/* Manazentrale — Startseite
   Designsprache an die offiziellen Wizards-Seiten angelehnt. Die Werte stammen aus
   der Inspektion von magic.wizards.com und gatherer.wizards.com (18.08.2026):
     Grund      #182024 / #0C0F11 / #000    (magic.wizards.com, Gatherer)
     Akzent     #EA3601                     (Signaturfarbe magic.wizards.com)
     Orange     #FF6000, Violett #5F40AB    (Gatherer)
     Sekundaer  #C2C2C2 / #DAD9DB
     Radien     3px, Pill
     Mittel     dunkle Verlaufs-Schleier, Weiss auf Dunkel
   Bewusst nur ein dunkles Theme, wie die Originale. */

:root {
  color-scheme: dark;

  --ground:      #14181B;
  --ground-deep: #0A0D0F;
  --surface:     #1D2429;
  --surface-2:   #262E34;
  --line:        #2F383E;
  --line-strong: #45525A;

  --text:        #FFFFFF;
  --text-2:      #C2C2C2;
  --text-3:      #8B959B;

  --accent:      #EA3601;
  --accent-hot:  #FF6000;
  --violet:      #5F40AB;
  --gold:        #D9B650;

  /* Die fuenf Manafarben in den Werten der Kartenrahmen */
  --mana-w: #FFFBD5;
  --mana-u: #AAE0FA;
  --mana-b: #CBC2BF;
  --mana-r: #F9AA8F;
  --mana-g: #9BD3AE;

  /* Display: Beleren, falls lokal vorhanden — sonst eine Serife als Vertretung.
     Body: Open Sans, exakt wie auf magic.wizards.com (freie Lizenz). */
  --f-display: Beleren, "Beleren Bold", Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --f-body:    "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --f-label:   "Gotham Narrow", "Open Sans", "Segoe UI", Arial, sans-serif;

  --measure: 64ch;
  --pad: clamp(1.35rem, 5vw, 3rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 var(--pad) 4rem;
  background: var(--ground);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;

  /* Der Verlaufs-Schleier der Originalseiten: dort liegt er ueber Artwork, hier
     traegt er die Atmosphaere allein. */
  background-image:
    radial-gradient(120% 70% at 50% -10%, rgba(234, 54, 1, 0.13) 0%, rgba(234, 54, 1, 0) 60%),
    radial-gradient(90% 50% at 85% 8%, rgba(95, 64, 171, 0.16) 0%, rgba(95, 64, 171, 0) 65%),
    linear-gradient(180deg, var(--ground) 0%, var(--ground-deep) 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

main { max-width: 40rem; margin: 0 auto; }

p { margin: 0 0 1rem; max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3rem, 11vw, 5.5rem) 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.emblem { width: 4.5rem; height: 4.5rem; margin-bottom: 0.3rem; }

.pip { opacity: 0; animation: pip-in 0.55s ease-out forwards; }
.pip-w { fill: var(--mana-w); animation-delay: 0.05s; }
.pip-u { fill: var(--mana-u); animation-delay: 0.13s; }
.pip-b { fill: var(--mana-b); animation-delay: 0.21s; }
.pip-r { fill: var(--mana-r); animation-delay: 0.29s; }
.pip-g { fill: var(--mana-g); animation-delay: 0.37s; }
.pip-core {
  fill: var(--gold);
  animation-delay: 0.48s;
  filter: drop-shadow(0 0 9px rgba(217, 182, 80, 0.5));
}

@keyframes pip-in { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: scale(1); } }
.pip { transform-origin: center; transform-box: fill-box; }

@media (prefers-reduced-motion: reduce) {
  .pip { animation: none; opacity: 1; transform: none; }
}

.wordmark {
  margin: 0;
  font-family: var(--f-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-hot);
}

h1 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.15rem, 7.6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 15ch;
  color: var(--text);
}

.lede {
  font-size: clamp(1.03rem, 2.6vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 38ch;
  margin: 0.3rem 0 0;
}

/* Der duenne Akzentstrich, wie ihn die Originalseiten unter Ueberschriften setzen */
.rule {
  width: 3.5rem;
  height: 3px;
  background: var(--accent);
  border: 0;
  margin: 1.4rem 0 0;
  border-radius: 3px;
}

/* ---------- Abschnitte ---------- */

section { padding-top: 3rem; }

.section-label {
  margin: 0 0 1.1rem;
  font-family: var(--f-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}

.intro { font-size: 1.05rem; color: var(--text-2); }
.intro strong { color: var(--text); font-weight: 600; }

/* ---------- Die Werkzeuge ---------- */

.tools { display: block; }

.tool {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 0.85rem;
}
.tool:last-child { margin-bottom: 0; }

.tool h3 {
  margin: 0 0 0.55rem;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.32rem;
  line-height: 1.22;
  color: var(--text);
}
.tool h3 span {
  display: block;
  font-family: var(--f-body);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--accent-hot);
  margin-top: 0.3rem;
}
.tool p { color: var(--text-2); margin: 0; font-size: 0.97rem; }

/* ---------- Status ---------- */

.status {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}
.status p { color: var(--text-2); }
.status strong { color: var(--text); font-weight: 600; }

/* ---------- Die Frage ---------- */

.ask {
  margin-top: 3rem;
  padding: 1.8rem 1.6rem;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
}
.ask h2 {
  margin: 0 0 1rem;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.38rem;
  line-height: 1.25;
  text-wrap: balance;
  color: var(--text);
}
.ask-question {
  font-family: var(--f-display);
  font-size: 1.55rem;
  line-height: 1.25;
  color: var(--accent-hot);
  margin: 0 0 1.15rem;
  text-wrap: balance;
}

/* Pill-Form, wie die Buttons auf den Originalseiten */
.options {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.options li {
  font-family: var(--f-label);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  padding: 0.42rem 0.9rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 999px;
}

.ask-close { margin: 0; color: var(--text-2); }
.ask-close strong { color: var(--text); font-weight: 600; }

/* ---------- Randnotiz ---------- */

.note {
  margin-top: 2.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
}
.note p {
  margin: 0;
  font-size: 0.91rem;
  line-height: 1.6;
  color: var(--text-3);
}

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

footer {
  max-width: 40rem;
  margin: 3.5rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--f-body);
  font-size: 0.79rem;
  line-height: 1.6;
  color: var(--text-3);
}
footer p { margin: 0 0 0.4rem; max-width: 60ch; }

a { color: var(--accent-hot); text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid var(--accent-hot); outline-offset: 3px; border-radius: 2px; }

@media (max-width: 30rem) {
  body { font-size: 16px; }
  .ask { padding: 1.4rem 1.15rem; }
  .tool { padding: 1.1rem 1.15rem; }
}
