/* DreamKeepers – Webseite. Eigene Schriften (OFL) liegen auf dem eigenen Server: keine Anfragen an fremde Dienste. */
@font-face { font-family: "Cinzel"; src: url("../fonts/Cinzel-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DK UI"; src: url("../fonts/DreamKeepersUI.ttf") format("truetype"); font-display: swap; }

:root {
  --bg: #07060d;
  --bg2: #0e0b18;
  --surface: #141022;
  --surface2: #1b1530;
  --line: rgba(216, 180, 106, .35);
  --gold: #d8b46a;
  --gold-hi: #f6dc9f;
  --text: #eee8f7;
  --muted: #a99fbf;
  --ember: #ff7a3d; --tide: #3db8ff; --bloom: #5fd36a; --lunar: #a77bff; --astral: #ffd36a;
  --radius: 14px;
  --max: 1180px;
  --head: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "DK UI", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 17px/1.6 var(--body); background: var(--bg);
  min-height: 100vh; overflow-x: hidden;
}
/* Sternenhimmel */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(120, 70, 200, .28), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(60, 40, 140, .25), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, rgba(200, 120, 60, .12), transparent 60%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 120px 80px, #e8dcff, transparent),
    radial-gradient(1.4px 1.4px at 200px 160px, #fff6d8, transparent),
    radial-gradient(1px 1px at 300px 40px, #fff, transparent),
    radial-gradient(1px 1px at 360px 220px, #d9e8ff, transparent);
  background-size: 400px 260px;
  animation: drift 160s linear infinite;
}
@keyframes drift { to { transform: translate3d(-400px, -260px, 0); } }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } * { transition: none !important; animation: none !important; } }

a { color: var(--gold-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: .04em; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.gold { background: linear-gradient(180deg, #fff3cf 0%, var(--gold-hi) 35%, var(--gold) 70%, #9c7a3c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Kopfzeile */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 6, 13, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(216, 180, 106, .18);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { font-family: var(--head); font-size: 1.25rem; letter-spacing: .14em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand img { width: 22px; height: auto; }
.nav { display: flex; gap: 6px; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(216, 180, 106, .14); color: var(--gold-hi); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 10px 20px 18px; background: rgba(7, 6, 13, .97); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
}

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  font: 600 1rem var(--body); letter-spacing: .02em; text-decoration: none; cursor: pointer; border: 0;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-gold { color: #1a1206; background: linear-gradient(180deg, #ffe7a8, var(--gold) 60%, #a98140); box-shadow: 0 0 0 1px #ffe9b0 inset, 0 8px 30px rgba(216, 180, 106, .28); }
.btn-gold:hover { color: #1a1206; transform: translateY(-2px); box-shadow: 0 0 0 1px #fff3cf inset, 0 12px 40px rgba(216, 180, 106, .45); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(216, 180, 106, .12); color: #fff; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

/* Goldrahmen wie die Spielkarten */
.frame { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(27, 21, 48, .92), rgba(14, 11, 24, .92)); }
.frame::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(216, 180, 106, .16); border-radius: calc(var(--radius) - 4px); pointer-events: none; }

/* Startbereich */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .eyebrow { font-family: var(--head); letter-spacing: .3em; color: var(--gold); font-size: .85rem; margin-bottom: 14px; }
.hero p.lead { font-size: 1.18rem; color: #d9d0ea; max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-art { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(80, 40, 160, .45), 0 0 0 6px rgba(216, 180, 106, .06); }
.hero-art img { width: 100%; height: auto; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(7, 6, 13, .55)); }
.element-row { display: flex; gap: 10px; margin-top: 30px; align-items: center; flex-wrap: wrap; }
.element-row img { height: 38px; width: auto; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .15)); }
.element-row span { color: var(--muted); font-size: .9rem; margin-left: 6px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 30px; } .hero { padding-top: 28px; } .hero-art { order: -1; } }

section { padding: 70px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-head .kicker { font-family: var(--head); letter-spacing: .3em; color: var(--gold); font-size: .8rem; display: block; margin-bottom: 10px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); border: 0; margin: 0; }

/* Spielmodi */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.mode { padding: 26px 24px 22px; transition: transform .25s, border-color .25s; }
.mode:hover { transform: translateY(-4px); border-color: rgba(246, 220, 159, .6); }
.mode .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: radial-gradient(circle at 30% 30%, rgba(246, 220, 159, .35), rgba(216, 180, 106, .08)); border: 1px solid var(--line); font-size: 1.4rem; }
.mode p { color: var(--muted); margin: 0; font-size: .97rem; }
.badge-online { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(61, 184, 255, .5); color: #9fdcff; margin-left: 6px; vertical-align: middle; }

/* Elemente */
.elements { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.element { text-align: center; padding: 22px 12px 18px; }
.element img { height: 96px; width: auto; margin: 0 auto 10px; transition: transform .3s; }
.element:hover img { transform: translateY(-6px) scale(1.04); }
.element h3 { margin-bottom: 4px; }
.element p { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 760px) { .elements { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .elements { grid-template-columns: repeat(2, 1fr); } }

/* Figuren-Karten */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 18px; }
.card { padding: 10px 10px 14px; cursor: pointer; text-align: left; color: inherit; font: inherit; width: 100%; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover, .card:focus-visible { transform: translateY(-5px); border-color: var(--el, var(--gold)); box-shadow: 0 14px 40px color-mix(in srgb, var(--el, #d8b46a) 30%, transparent); outline: none; }
.card .pic { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #000; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .pic .soon { position: absolute; left: 8px; bottom: 8px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .65); border: 1px solid rgba(255, 255, 255, .2); color: #ddd; }
.card .pic img.crystal { position: absolute; width: auto; object-fit: contain; right: 8px; top: 8px; height: 30px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .7)); }
.card h3 { font-size: 1rem; margin: 12px 4px 2px; letter-spacing: .03em; }
.card .meta { display: flex; justify-content: space-between; gap: 6px; margin: 0 4px; font-size: .82rem; color: var(--muted); }
.cards[data-cards="vorschau"] { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 940px; margin-inline: auto; }
@media (max-width: 600px) { .cards[data-cards="vorschau"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { padding: 7px 7px 11px; min-width: 0; }
  .card h3 { font-size: .86rem; letter-spacing: .01em; overflow-wrap: anywhere; hyphens: auto; }
  .card .meta { flex-direction: column; gap: 0; font-size: .78rem; }
}
.rar { font-weight: 600; }
.rar-0 { color: #c9c3d6; } .rar-1 { color: #7fe08c; } .rar-2 { color: #6fc4ff; } .rar-3 { color: #c79bff; } .rar-4 { color: #ffc35e; } .rar-5 { color: #ff7d9b; }
.el-0 { --el: var(--ember); } .el-1 { --el: var(--tide); } .el-2 { --el: var(--bloom); } .el-3 { --el: var(--lunar); } .el-4 { --el: var(--astral); }

/* Filter */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: .92rem; cursor: pointer; }
.chip img { height: 20px; width: auto; }
.chip[aria-pressed="true"] { background: rgba(216, 180, 106, .2); border-color: var(--gold-hi); color: #fff; }
.filters select { padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--text); border: 1px solid var(--line); font: inherit; font-size: .92rem; }
.count { text-align: center; color: var(--muted); margin: -14px 0 24px; font-size: .9rem; }

/* Figur-Fenster */
dialog.figure { padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); width: min(760px, 94vw); box-shadow: 0 40px 120px rgba(0, 0, 0, .7); }
dialog.figure::backdrop { background: rgba(4, 3, 10, .72); backdrop-filter: blur(4px); }
.figure .in { display: grid; grid-template-columns: 300px 1fr; }
.figure .in img { width: 100%; height: 100%; object-fit: cover; background: #000; }
.figure .txt { padding: 26px 58px 26px 28px; }
.figure .flavor { font-style: italic; color: #d9d0ea; border-left: 2px solid var(--el, var(--gold)); padding-left: 14px; margin: 16px 0; }
.figure dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.figure dt { color: var(--muted); }
.figure dd { margin: 0; }
.figure .close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.2rem; cursor: pointer; }
@media (max-width: 640px) { .figure .in { grid-template-columns: 1fr; } .figure .in img { max-height: 46vh; } }

/* Band mit Wolken */
.band { position: relative; overflow: hidden; border-radius: 20px; padding: 56px 40px; text-align: center; border: 1px solid var(--line); background: url("../img/wolken.jpg") center/cover; }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 10, 40, .55), rgba(7, 6, 13, .82)); }
.band > * { position: relative; }
.band p { max-width: 640px; margin-inline: auto; color: #e6ddf5; }

/* Textseiten */
.page-head { padding: 54px 0 20px; text-align: center; }
.page-head p { color: var(--muted); max-width: 680px; margin: 0 auto; }
.prose { max-width: 820px; margin: 0 auto; padding: 32px 36px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.3em; font-size: 1.08rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.note { border: 1px dashed rgba(255, 195, 94, .7); background: rgba(255, 195, 94, .08); color: #ffe3b0; padding: 12px 16px; border-radius: 10px; margin-bottom: 24px; font-size: .95rem; }
.fill { background: rgba(255, 195, 94, .18); color: #ffd98f; padding: 0 4px; border-radius: 4px; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 14px 54px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); color: #1a1206; background: linear-gradient(180deg, #ffe7a8, var(--gold)); }
@media (max-width: 640px) { .prose { padding: 22px 18px; } }

/* Fußzeile */
.site-foot { margin-top: 60px; border-top: 1px solid rgba(216, 180, 106, .18); padding: 36px 0 46px; color: var(--muted); font-size: .92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--gold-hi); }

/* Sanftes Einblenden */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.shown { opacity: 1; transform: none; }
