/*
 * Pixikon – Studio-Seite. Dunkler Grund, drei Pixel-Farben für die Marke, je Spiel ein eigener Akzent (--akzent).
 * Eine Datei, kein Bauschritt, kein fremder Server.
 */
@font-face {
  font-family: "Manrope";
  src: url("/studio/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* Die Titelschrift von Seewind (liegt mit der Seewind-Seite in /fonts/). */
@font-face {
  font-family: "IM Fell English";
  src: url("/fonts/IMFeENrm28P.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --grund: #0e0b1c;
  --grund-2: #161230;
  --flaeche: rgba(255, 255, 255, 0.05);
  --flaeche-rand: rgba(255, 255, 255, 0.1);
  --text: #f5f2ff;
  --text-leise: rgba(245, 242, 255, 0.68);
  --text-ganz-leise: rgba(245, 242, 255, 0.45);
  /* Marke: die Pixel im Würfel. */
  --pink: #ff4f8b;
  --gelb: #ffc83d;
  --tuerkis: #36e0c2;
  --violett: #8b6cff;
  --akzent: var(--pink);
  --akzent-text: #1a0d18;
  --rund: 22px;
  --breite: 1180px;
  --schrift: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --schatten: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 17px / 1.6 var(--schrift);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.vorzeile {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gelb);
}

.klein {
  font-size: 14px;
  color: var(--text-ganz-leise);
}

/* ---------- Kopf ---------- */

.kopf {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px max(16px, calc((100vw - var(--breite)) / 2));
  background: linear-gradient(to bottom, rgba(14, 11, 28, 0.92), rgba(14, 11, 28, 0));
  transition: background 0.3s;
}

.kopf.gerollt {
  background: rgba(14, 11, 28, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--flaeche-rand);
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.wuerfel {
  width: 30px;
  height: 30px;
  overflow: visible;
}

.wuerfel .p1 {
  fill: var(--pink);
}
.wuerfel .p2 {
  fill: var(--gelb);
}
.wuerfel .p3 {
  fill: var(--tuerkis);
}
.wuerfel .p4 {
  fill: var(--violett);
}

.huepfer {
  transform-box: fill-box;
  transform-origin: center;
  animation: huepfen 2.8s cubic-bezier(0.3, 0, 0.3, 1) infinite;
}

@keyframes huepfen {
  0%,
  60%,
  100% {
    transform: translateY(0) rotate(0);
  }
  72% {
    transform: translateY(-9px) rotate(45deg);
  }
  84% {
    transform: translateY(0) rotate(90deg);
  }
  90% {
    transform: translateY(0) scale(1.15, 0.85) rotate(90deg);
  }
}

.menue {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.menue a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-leise);
  transition: color 0.2s;
}

.menue a:hover {
  color: var(--text);
}

.sprachen {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 99px;
  background: var(--flaeche);
  border: 1px solid var(--flaeche-rand);
}

.sprachen button {
  border: 0;
  border-radius: 99px;
  padding: 4px 10px;
  background: none;
  color: var(--text-leise);
  font: 700 12px / 1.4 var(--schrift);
  letter-spacing: 0.06em;
  cursor: pointer;
}

.sprachen button[aria-pressed="true"] {
  background: var(--text);
  color: var(--grund);
}

/* ---------- Knöpfe ---------- */

.knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.knopf-voll {
  background: var(--akzent);
  color: var(--akzent-text);
  box-shadow: 0 8px 26px color-mix(in srgb, var(--akzent) 40%, transparent);
}

.knopf-voll::after {
  content: "→";
  transition: transform 0.2s;
}

.knopf-voll:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px color-mix(in srgb, var(--akzent) 55%, transparent);
}

.knopf-voll:hover::after {
  transform: translateX(3px);
}

.knopf-rand {
  border: 2px solid color-mix(in srgb, var(--akzent) 60%, transparent);
  color: var(--text);
}

.knopf-rand:hover {
  background: color-mix(in srgb, var(--akzent) 14%, transparent);
}

.knopf:focus-visible,
.sprachen button:focus-visible,
.menue a:focus-visible {
  outline: 3px solid var(--gelb);
  outline-offset: 3px;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding: 120px max(16px, calc((100vw - var(--breite)) / 2)) 80px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 30%, rgba(139, 108, 255, 0.28), transparent 70%),
    radial-gradient(50% 45% at 10% 85%, rgba(255, 79, 139, 0.2), transparent 70%),
    radial-gradient(40% 40% at 60% 95%, rgba(54, 224, 194, 0.14), transparent 70%);
}

.hero-inhalt {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(44px, 7.2vw, 92px);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--pink), var(--gelb) 55%, var(--tuerkis));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-satz {
  max-width: 34em;
  margin: 24px 0 0;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-leise);
}

.hero .knopf-voll {
  --akzent: var(--gelb);
  --akzent-text: #241a00;
}

/* Schwebende Pixel im Hintergrund. */
.pixel {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pixel i {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--pink);
  opacity: 0.5;
  animation: schweben 14s ease-in-out infinite;
}

.pixel i:nth-child(3n + 2) {
  background: var(--gelb);
}
.pixel i:nth-child(3n) {
  background: var(--tuerkis);
}
.pixel i:nth-child(4n) {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}
.pixel i:nth-child(5n) {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  opacity: 0.3;
}

.pixel i:nth-child(1) { left: 6%; top: 18%; animation-delay: -1s; }
.pixel i:nth-child(2) { left: 18%; top: 78%; animation-delay: -4s; }
.pixel i:nth-child(3) { left: 40%; top: 14%; animation-delay: -7s; }
.pixel i:nth-child(4) { left: 47%; top: 88%; animation-delay: -2s; }
.pixel i:nth-child(5) { left: 92%; top: 12%; animation-delay: -9s; }
.pixel i:nth-child(6) { left: 96%; top: 70%; animation-delay: -5s; }
.pixel i:nth-child(7) { left: 30%; top: 50%; animation-delay: -11s; }
.pixel i:nth-child(8) { left: 3%; top: 55%; animation-delay: -3s; }
.pixel i:nth-child(9) { left: 58%; top: 8%; animation-delay: -6s; }
.pixel i:nth-child(10) { left: 74%; top: 92%; animation-delay: -8s; }
.pixel i:nth-child(11) { left: 52%; top: 46%; animation-delay: -10s; }
.pixel i:nth-child(12) { left: 84%; top: 40%; animation-delay: -12s; }

@keyframes schweben {
  0%,
  100% {
    transform: translate(0, 0) rotate(0);
  }
  33% {
    transform: translate(18px, -26px) rotate(60deg);
  }
  66% {
    transform: translate(-14px, 16px) rotate(-30deg);
  }
}

/* Drei Vorschaubilder als lockerer Stapel. */
.hero-vorschau {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  aspect-ratio: 1 / 0.92;
}

.hero-vorschau li {
  position: absolute;
  width: 72%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--schatten);
  border: 3px solid rgba(255, 255, 255, 0.9);
  animation: wippen 7s ease-in-out infinite;
}

.hero-vorschau img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.vs-seewind {
  left: 0;
  top: 2%;
  --dreh: -6deg;
  animation-delay: -1s;
}

.vs-mumble {
  right: 0;
  top: 24%;
  --dreh: 5deg;
  z-index: 2;
  animation-delay: -3.5s;
}

.vs-logiplay {
  left: 10%;
  bottom: 0;
  --dreh: -2deg;
  z-index: 3;
  animation-delay: -5s;
}

@keyframes wippen {
  0%,
  100% {
    transform: rotate(var(--dreh)) translateY(0);
  }
  50% {
    transform: rotate(calc(var(--dreh) * 0.6)) translateY(-10px);
  }
}

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

.spiele,
.studio {
  padding: 110px max(16px, calc((100vw - var(--breite)) / 2));
}

.abschnitt-kopf {
  max-width: 720px;
  margin-bottom: 70px;
}

.abschnitt-kopf h2 {
  font-size: clamp(36px, 5vw, 60px);
}

/* ---------- Spielkarten ---------- */

.spiel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  margin-bottom: 140px;
}

.spiel:last-child {
  margin-bottom: 0;
}

.spiel:nth-of-type(even) .spiel-bild {
  order: 2;
}

/* Farbiger Schein hinter dem Bild. */
.spiel-bild {
  position: relative;
}

.spiel-bild::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  background: var(--akzent);
  filter: blur(70px);
  opacity: 0.32;
  border-radius: 50%;
}

.rahmen {
  position: relative;
  border-radius: var(--rund);
  overflow: hidden;
  box-shadow: var(--schatten);
  border: 1px solid var(--flaeche-rand);
  transform: rotate(-1.5deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.spiel:nth-of-type(even) .rahmen {
  transform: rotate(1.5deg);
}

.spiel:hover .rahmen {
  transform: rotate(0) scale(1.015);
}

.rahmen img,
.rahmen video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--grund-2);
}

.rahmen-klein {
  position: absolute;
  width: 42%;
  right: -4%;
  bottom: -12%;
  border: 3px solid var(--text);
  transform: rotate(5deg);
}

.spiel:nth-of-type(even) .rahmen-klein,
.spiel:hover .rahmen-klein {
  transform: rotate(5deg);
}

.sticker {
  position: absolute;
  top: -16px;
  left: 18px;
  z-index: 2;
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--akzent);
  color: var(--akzent-text);
  font-weight: 800;
  font-size: 14px;
  transform: rotate(-4deg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.spiel-nr {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--akzent);
}

.spiel h3 {
  font-size: clamp(46px, 6vw, 72px);
}

.spiel-genre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 16px 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-ganz-leise);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 11px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-live {
  color: #4ef0a0;
  background: rgba(78, 240, 160, 0.12);
}

.status-live::before {
  animation: pulsieren 1.8s ease-in-out infinite;
}

.status-alpha {
  color: var(--gelb);
  background: rgba(255, 200, 61, 0.12);
}

@keyframes pulsieren {
  50% {
    opacity: 0.3;
  }
}

.spiel-text > p:not([class]) {
  margin: 0;
  color: var(--text-leise);
}

.merkmale {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.merkmale li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
}

.merkmale b {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--akzent) 16%, transparent);
  font-size: 17px;
}

/* Akzente je Spiel. */
.spiel-seewind {
  --akzent: #f2cf73;
  --akzent-text: #1f1604;
}

.spiel-seewind h3 {
  font-family: "IM Fell English", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

.spiel-mumble {
  --akzent: #ff5c9e;
  --akzent-text: #2a0716;
}

.spiel-mumble h3 {
  background: linear-gradient(95deg, #ff5c9e, #ffb03b 50%, #4fd3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.spiel-logiplay {
  --akzent: #ffcb2b;
  --akzent-text: #241a00;
}

.lp-play {
  color: #ffcb2b;
}

/* ---------- Studio ---------- */

.studio {
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(139, 108, 255, 0.16), transparent 70%),
    var(--grund-2);
}

.studio-satz {
  margin: 22px 0 0;
  font-size: 19px;
  color: var(--text-leise);
}

.werte {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.werte li {
  padding: 26px 24px;
  border-radius: var(--rund);
  background: var(--flaeche);
  border: 1px solid var(--flaeche-rand);
  transition:
    transform 0.3s,
    border-color 0.3s;
}

.werte li:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

.werte h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 16px 0 8px;
}

.werte p {
  margin: 0;
  font-size: 15px;
  color: var(--text-leise);
}

.wert-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 24px;
  background: rgba(255, 79, 139, 0.16);
}

.werte li:nth-child(2) .wert-icon {
  background: rgba(255, 200, 61, 0.16);
}
.werte li:nth-child(3) .wert-icon {
  background: rgba(54, 224, 194, 0.16);
}
.werte li:nth-child(4) .wert-icon {
  background: rgba(139, 108, 255, 0.2);
}

/* ---------- Fuß ---------- */

.fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 36px;
  padding: 48px max(16px, calc((100vw - var(--breite)) / 2)) calc(48px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--flaeche-rand);
}

.marke-klein {
  font-size: 19px;
}

.marke-klein .wuerfel {
  width: 24px;
  height: 24px;
}

.fuss-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.fuss-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-leise);
}

.fuss-links a:hover {
  color: var(--text);
}

.fuss .klein {
  margin: 0 0 0 auto;
}

/* ---------- Einblenden ---------- */

.js .einblenden {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .einblenden.sichtbar {
  opacity: 1;
  transform: none;
}

.werte li.einblenden:nth-child(2) {
  transition-delay: 0.08s;
}
.werte li.einblenden:nth-child(3) {
  transition-delay: 0.16s;
}
.werte li.einblenden:nth-child(4) {
  transition-delay: 0.24s;
}

/* ---------- Schmal ---------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 110px;
    gap: 56px;
  }

  .hero-vorschau {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }

  .spiel {
    grid-template-columns: 1fr;
    margin-bottom: 110px;
  }

  .spiel:nth-of-type(even) .spiel-bild {
    order: 0;
  }

  .werte {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .kopf {
    gap: 14px;
  }

  .menue {
    gap: 14px;
  }

  .menue a {
    font-size: 14px;
  }

  .marke {
    font-size: 20px;
  }

  .wuerfel {
    width: 26px;
    height: 26px;
  }

  .spiele,
  .studio {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .abschnitt-kopf {
    margin-bottom: 52px;
  }

  .werte {
    grid-template-columns: 1fr;
  }

  .rahmen-klein {
    right: -2%;
  }

  .fuss .klein {
    margin-left: 0;
  }
}

@media (max-width: 380px) {
  .menue {
    display: none;
  }

  .sprachen {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .einblenden {
    opacity: 1;
    transform: none;
  }
}

/* Wolkenwind */
.spiel-wolkenwind {
  --akzent: #8fc6f2;
  --akzent-text: #10203a;
}
