/* Denika Games – Stylesheet
   Farben stammen aus dem Spiel Lumora: Nachtindigo, warmes Gold, Aurora-Türkis.
   Keine externen Schriften oder Dienste (Inter liegt lokal in assets/fonts). */

@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/inter-regular.woff") format("woff");
}
@font-face {
  font-family: "Inter";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/inter-bold.woff") format("woff");
}

:root {
  color-scheme: dark;
  --night: #070a1b;
  --night-mid: #10143b;
  --violet: #4a339e;
  --glass: rgba(19, 23, 61, 0.78);
  --glass-strong: rgba(12, 15, 44, 0.9);
  --edge: rgba(140, 158, 255, 0.28);
  --gold: #ffd47a;
  --gold-deep: #f59e38;
  --teal: #4de3c2;
  --rose: #ff8ccf;
  --text: #edf2ff;
  --muted: #9eabdb;
  --dim: #66709e;
  --radius: 28px;
  --maxw: 1080px;
  --gutter: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 50% -8%, #2a2170 0%, rgba(42, 33, 112, 0) 70%),
    linear-gradient(180deg, var(--night-mid) 0%, var(--night) 55%);
  background-color: var(--night);
  background-attachment: fixed;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: #8ff3dc; }

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--gold);
  color: #1a1230;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 27, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(140, 158, 255, 0.14);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.04em; }
.brand img { width: 40px; height: 40px; }
.brand:hover { color: var(--gold); }

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: rgba(140, 158, 255, 0.14); color: var(--text); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: clamp(56px, 11vw, 128px) 0 clamp(40px, 7vw, 80px); }

.hero-logo {
  width: clamp(110px, 24vw, 168px);
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 0 28px rgba(245, 158, 56, 0.45));
  animation: float 6s ease-in-out infinite;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 11vw, 92px);
  line-height: 1;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text);
}
.hero h1 span {
  display: block;
  margin-top: 0.3em;
  font-size: 0.42em;
  letter-spacing: 0.62em;
  padding-left: 0.62em; /* gleicht den Buchstabenabstand optisch aus */
  color: var(--teal);
}

.lead { max-width: 560px; margin: 30px auto 0; font-size: clamp(18px, 3.2vw, 22px); color: var(--muted); }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.btn-primary {
  background: linear-gradient(135deg, #ffe3a3 0%, var(--gold-deep) 100%);
  color: #1a1230;
  box-shadow: 0 8px 28px rgba(245, 158, 56, 0.28);
}
.btn-primary:hover { color: #1a1230; transform: translateY(-2px); box-shadow: 0 12px 34px rgba(245, 158, 56, 0.4); }
.btn-ghost { background: rgba(140, 158, 255, 0.08); border-color: var(--edge); color: var(--text); }
.btn-ghost:hover { background: rgba(140, 158, 255, 0.18); color: var(--text); transform: translateY(-2px); }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(40px, 7vw, 84px) 0; }
.section-head { max-width: 640px; margin: 0 0 clamp(24px, 4vw, 40px); }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); }
.section h2 { margin: 0; font-size: clamp(30px, 5.4vw, 44px); line-height: 1.15; }
.section-head p { margin: 14px 0 0; color: var(--muted); }

/* ---------- Spiele (kompakte Kacheln im Raster) ---------- */
.games { display: grid; gap: 16px; }

.game {
  position: relative; /* Basis für den „ganze Kachel klickbar"-Link */
  display: grid;
  grid-template-columns: 96px 1fr auto;
  grid-template-areas: "icon body cta";
  gap: 14px 24px;
  align-items: center;
  padding: 20px 24px;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--edge);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.game:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 212, 122, 0.55);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.5), 0 0 48px rgba(245, 158, 56, 0.14);
}

/* Die gesamte Kachel ist ein Link: der Titel-Link wird über die Kachel gespannt. */
.game-link { color: inherit; text-decoration: none; }
.game-link::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.game-link:focus-visible { outline: none; }
.game-link:focus-visible::after { outline: 3px solid var(--teal); outline-offset: 4px; }

.game-icon { grid-area: icon; width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.game-body { grid-area: body; min-width: 0; }
.game-cta { grid-area: cta; pointer-events: none; } /* Klicks gehen durch auf den Kachel-Link */

.game h3 { margin: 0; font-size: 26px; line-height: 1.2; }
.tagline { margin: 4px 0 0; font-size: 16px; line-height: 1.4; color: var(--gold); font-weight: 700; }
.game-body p.desc { margin: 8px 0 0; font-size: 15.5px; line-height: 1.55; max-width: 60ch; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.tags li { padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--teal); background: rgba(77, 227, 194, 0.1); border: 1px solid rgba(77, 227, 194, 0.28); }

/* Zweiter, eigener Link in der Kachel (Datenschutz).
   z-index nötig, weil der Titel-Link die ganze Kachel überdeckt (.game-link::after). */
.game-links { margin: 12px 0 0; }
.game-privacy {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: var(--muted); text-decoration: none;
  background: rgba(140, 158, 255, 0.08); border: 1px solid var(--edge);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.game-privacy:hover { background: rgba(140, 158, 255, 0.18); color: var(--text); border-color: rgba(255, 212, 122, 0.45); }
.game-privacy svg { width: 14px; height: 14px; flex: none; }

.play-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 10px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe3a3 0%, var(--gold-deep) 100%);
  color: #1a1230; font-weight: 700; font-size: 15.5px; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(245, 158, 56, 0.26);
  transition: transform 0.18s, box-shadow 0.18s;
}
.play-btn svg { width: 18px; height: 18px; flex: none; }
.game:hover .play-btn { transform: scale(1.03); box-shadow: 0 10px 28px rgba(245, 158, 56, 0.42); }

/* ---------- Über uns ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.about p { color: var(--muted); margin: 14px 0 0; }
.values { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.values li { padding: 20px 22px; border-radius: 22px; background: var(--glass); border: 1px solid var(--edge); }
.values strong { display: block; margin-bottom: 4px; color: var(--gold); font-size: 18px; }
.values span { color: var(--muted); font-size: 15.5px; }

/* ---------- Kontakt ---------- */
.contact {
  text-align: center;
  padding: clamp(32px, 6vw, 60px) var(--gutter);
  border-radius: var(--radius);
  background: radial-gradient(600px 240px at 50% 0%, rgba(74, 51, 158, 0.55), rgba(74, 51, 158, 0) 70%), var(--glass);
  border: 1px solid var(--edge);
}
.contact h2 { margin: 0; font-size: clamp(28px, 5vw, 40px); }
.contact p { max-width: 520px; margin: 14px auto 26px; color: var(--muted); }

/* ---------- Fußzeile ---------- */
.site-footer { margin-top: clamp(40px, 7vw, 80px); padding: 36px 0 44px; border-top: 1px solid rgba(140, 158, 255, 0.14); background: rgba(7, 10, 27, 0.6); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; color: var(--muted); font-size: 15px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.legal-note { margin: 18px 0 0; font-size: 12.5px; color: var(--dim); line-height: 1.5; }

/* ---------- Rechtstexte & 404 ---------- */
.doc { max-width: 760px; padding: clamp(40px, 7vw, 80px) 0; overflow-wrap: anywhere; }
.doc h1 { margin: 0 0 8px; font-size: clamp(34px, 6vw, 50px); line-height: 1.1; }
.doc h2 { margin: 40px 0 8px; font-size: 22px; color: var(--gold); }
.doc p, .doc li { color: #cfd7f5; }
.doc ul { padding-left: 22px; }
.doc .meta { color: var(--dim); font-size: 14px; margin: 0 0 24px; }
.hint {
  margin: 0 0 28px; padding: 16px 18px; border-radius: 16px;
  background: rgba(255, 226, 122, 0.1); border: 1px solid rgba(255, 226, 122, 0.45); color: #ffeaa8 !important; font-size: 15px;
}
/* Platzhalter, die du ersetzen musst – im fertigen Text darf nichts mehr gelb sein */
.todo { background: #ffe27a; color: #1a1230; padding: 0 0.35em; border-radius: 5px; font-weight: 700; }

/* ---------- Spiel-Datenschutzseiten (datenschutz/) ----------
   Elemente, die nur dort vorkommen: Karten, Tabellen, Code, Trennlinien.
   Alles unter .doc, damit die übrigen Seiten unverändert bleiben. */
.doc h3 { margin: 26px 0 8px; font-size: 18px; color: var(--text); }
.doc .lead { max-width: none; margin: 0 0 26px; font-size: 18px; color: var(--muted); }
.doc .small { font-size: 14.5px; }
.doc .muted { color: var(--muted); }
.doc .card {
  margin: 0 0 30px; padding: 18px 22px;
  border-radius: 20px; background: var(--glass); border: 1px solid var(--edge);
}
.doc .card h2 { margin: 0 0 10px; font-size: 20px; }
.doc .card p { margin: 0 0 8px; }
.doc .card ul { margin: 0; }
.doc .note {
  margin: 18px 0 0; padding: 4px 0 4px 16px; font-size: 15.5px;
  color: var(--muted); border-left: 3px solid var(--gold);
}
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 15.5px; }
.doc th, .doc td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(140, 158, 255, 0.16); }
.doc th { color: var(--muted); font-size: 14px; }
.doc code {
  padding: 1px 6px; border-radius: 6px; font-size: 14.5px; overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(140, 158, 255, 0.12); border: 1px solid var(--edge);
}
.doc hr { border: 0; border-top: 1px solid rgba(140, 158, 255, 0.18); margin: 44px 0 30px; }
.doc .en h1 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 34px); }
.doc .fill { padding: 0 0.3em; border-radius: 5px; background: #ffe27a; color: #1a1230; font-style: normal; font-weight: 700; }

.notfound { text-align: center; padding: clamp(70px, 14vw, 150px) 0; }
.notfound .big { font-size: clamp(90px, 22vw, 190px); font-weight: 700; line-height: 1; margin: 0; background: linear-gradient(135deg, #ffe3a3, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound p { color: var(--muted); font-size: 20px; margin: 12px 0 30px; }

/* ---------- Animation ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero h1, .hero .lead, .hero-actions { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .lead { animation-delay: 0.12s; }
.hero-actions { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Tablet / Handy ---------- */
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16.5px; }
  .game { grid-template-columns: 80px 1fr; grid-template-areas: "icon body" "cta cta"; align-items: start; padding: 18px; }
  .game-icon { width: 80px; height: 80px; border-radius: 20px; }
  .doc th, .doc td { padding: 8px; }
}

@media (max-width: 440px) {
  .brand span { display: none; }
  .nav a { padding: 8px 11px; }
}

@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .nav a { padding: 8px 8px; font-size: 14px; }
}
