/* games.dennis-krohmann.de – gemeinsames Aussehen. Keine externen Schriften oder Skripte (Datenschutz). */
:root {
  --night: #060a18;
  --night-2: #0b1430;
  --card: rgba(14, 24, 52, 0.72);
  --line: rgba(255, 194, 74, 0.22);
  --text: #e9eefb;
  --muted: #a9b4d0;
  --accent: #ffc24a;
  --cyan: #3fe0ff;
  --pink: #ff5fc8;
  --radius: 22px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 17px/1.6 var(--font);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(90, 110, 220, 0.18), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(63, 224, 255, 0.08), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Sterne: zwei Ebenen aus Punkten, nur CSS */
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-repeat: repeat;
}
body::before {
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1px 1px at 140px 80px, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1.5px 1.5px at 260px 160px, rgba(255,255,255,0.6), transparent 50%),
    radial-gradient(1px 1px at 90px 220px, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1px 1px at 330px 260px, rgba(255,255,255,0.5), transparent 50%);
  background-size: 380px 300px;
  opacity: 0.6;
}
body::after {
  background-image:
    radial-gradient(1px 1px at 60px 120px, rgba(200,220,255,0.6), transparent 50%),
    radial-gradient(1px 1px at 210px 40px, rgba(200,220,255,0.4), transparent 50%),
    radial-gradient(1.5px 1.5px at 470px 200px, rgba(255,240,210,0.5), transparent 50%);
  background-size: 540px 420px;
  opacity: 0.5;
}

/* Glühwürmchen: wenige warme Punkte, die langsam schweben */
.fireflies { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.fireflies i {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff3c4;
  box-shadow: 0 0 10px 4px rgba(255, 194, 74, 0.55), 0 0 28px 10px rgba(255, 194, 74, 0.18);
  opacity: 0;
  animation: drift 14s ease-in-out infinite;
}
.fireflies i:nth-child(1) { left: 12%; top: 70%; animation-delay: 0s; }
.fireflies i:nth-child(2) { left: 78%; top: 62%; animation-delay: 3s; animation-duration: 17s; }
.fireflies i:nth-child(3) { left: 55%; top: 85%; animation-delay: 6s; }
.fireflies i:nth-child(4) { left: 30%; top: 40%; animation-delay: 9s; animation-duration: 19s; }
.fireflies i:nth-child(5) { left: 88%; top: 28%; animation-delay: 4.5s; animation-duration: 16s; }
.fireflies i:nth-child(6) { left: 6%; top: 22%; animation-delay: 11s; }
@keyframes drift {
  0%   { transform: translate(0, 0); opacity: 0; }
  15%  { opacity: 0.9; }
  50%  { transform: translate(40px, -60px); opacity: 0.35; }
  70%  { opacity: 0.85; }
  100% { transform: translate(-20px, -120px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fireflies i { animation: none; opacity: 0.5; }
}

a { color: var(--accent); text-decoration-color: rgba(255, 194, 74, 0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

/* Kopf */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--text); text-decoration: none;
  font-weight: 650; letter-spacing: 0.02em;
}
.brand .hex {
  width: 30px; height: 34px;
  background: linear-gradient(160deg, #ffd77e, var(--accent));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: 0 0 18px rgba(255, 194, 74, 0.5);
}
.brand small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; letter-spacing: 0.04em; }

.lang { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(6, 10, 24, 0.5); }
.lang a {
  padding: 4px 12px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600;
}
.lang a[aria-current="true"] { background: var(--accent); color: #1a1405; }

/* Startseite */
.hero { margin: 0 0 40px; }
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.hero h1 span { color: var(--accent); text-shadow: 0 0 24px rgba(255, 194, 74, 0.35); }
.hero p { margin: 0; max-width: 620px; color: var(--muted); font-size: 18px; }

.game {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.game-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.game-head img {
  width: 76px; height: 76px; border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 10px 30px rgba(255, 194, 74, 0.18);
}
.game h2 { margin: 0; font-size: 28px; line-height: 1.15; }
.game h2 small { display: block; color: var(--muted); font-size: 15px; font-weight: 500; margin-top: 2px; }
.game p { margin: 0 0 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; padding: 0; list-style: none; }
.tags li {
  padding: 4px 12px; border-radius: 999px; font-size: 14px;
  background: rgba(63, 224, 255, 0.08); border: 1px solid rgba(63, 224, 255, 0.25); color: #bdf3ff;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: #1a1405;
  font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 194, 74, 0.25);
}
.btn.soon { background: rgba(255, 194, 74, 0.12); color: var(--accent); border: 1px solid var(--line); box-shadow: none; cursor: default; }
.link-quiet { color: var(--muted); font-size: 15px; }

.shots { position: relative; height: 420px; }
.shots img {
  position: absolute;
  width: 200px; aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.shots img:nth-child(1) { left: 0; top: 40px; transform: rotate(-6deg); }
.shots img:nth-child(2) { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; }
.shots img:nth-child(3) { right: 0; top: 40px; transform: rotate(6deg); }

.more { margin-top: 28px; color: var(--muted); text-align: center; font-size: 15px; }

/* Rechtstexte */
.doc {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(6px);
}
.doc h1 { margin: 0 0 4px; font-size: clamp(28px, 5vw, 38px); line-height: 1.15; }
.doc .meta { margin: 0 0 28px; color: var(--muted); font-size: 15px; }
.doc h2 {
  margin: 34px 0 10px;
  font-size: 21px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.doc h3 { margin: 22px 0 6px; font-size: 17px; color: #fff2d0; }
.doc p, .doc li { color: #d5dcef; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .short {
  margin: 0 0 8px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 194, 74, 0.07);
  border: 1px solid var(--line);
}
.doc .short ul { margin: 6px 0 0; }
.doc address { font-style: normal; }
.todo { background: rgba(255, 95, 200, 0.18); color: #ffd1f0; padding: 0 4px; border-radius: 4px; }
.toc { columns: 2; column-gap: 32px; margin: 0; padding-left: 22px; }
.toc li { break-inside: avoid; }

/* Fuß */
.foot {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  color: var(--muted); font-size: 14px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); }

@media (max-width: 760px) {
  .top { margin-bottom: 32px; }
  .game { grid-template-columns: 1fr; padding: 22px; gap: 24px; }
  .shots { height: 330px; }
  .shots img { width: 150px; border-radius: 16px; }
  .doc { padding: 22px 18px; }
  .toc { columns: 1; }
}
@media (max-width: 380px) {
  .shots img { width: 128px; }
  .shots { height: 290px; }
}

/* sehr schmale Fenster: lange Wörter (Datenschutzerklärung) umbrechen, nichts ragt heraus */
h1, h2, h3, p, li { overflow-wrap: break-word; hyphens: auto; }
.game > div { min-width: 0; }
.btn { white-space: normal; text-align: center; }
@media (max-width: 420px) {
  body { font-size: 16px; }
  .brand { font-size: 15px; }
  .game { padding: 18px 16px; }
  .game-head img { width: 60px; height: 60px; border-radius: 14px; }
  .game h2 { font-size: 24px; }
  .doc { padding: 20px 14px; }
  .doc .short { padding: 14px 14px; }
  .doc ul { padding-left: 18px; }
}
