/* OdysseySMP.net Website im Stil des Logos: dunkles All, Pixel-Sterne, Cyan und Lila. */

:root {
  --grund: #080b1f;
  --flaeche: #111838;
  --flaeche-hell: #18214a;
  --linie: #26336e;
  --text: #c6d0ee;
  --text-hell: #f3f6ff;
  --text-leise: #8a94bb;
  --cyan: #8be3f4;
  --blau: #3a7bea;
  --lila: #a874f2;
  --lila-knopf: #7c45e0;
  --lila-kante: #4c2398;
  --gold: #f4b942;

  --schrift-pixel: "Jersey 15", "Courier New", monospace;
  --schrift-logo: "Jersey 10", "Courier New", monospace;
  --schrift-text: "Outfit", "Segoe UI", sans-serif;

  --breite: 1120px;
  --rand: 24px;
  --abstand: 96px;

  /* Pixelecke: an jeder Ecke fehlt ein 4-px-Block, wie bei Pixelgrafik */
  --pixelecke: polygon(
    4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px,
    100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%,
    4px calc(100% - 4px), 0 calc(100% - 4px), 0 4px, 4px 4px
  );
}

/* ---------- Grundlagen ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
canvas {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text-hell);
  font-family: var(--schrift-pixel);
  font-weight: 700;
  line-height: 1.1;
}

h1,
h2,
h3 {
  font-weight: 400;
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1;
}

h3 {
  font-size: 1.6rem;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

#sterne {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.sprung {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--lila-knopf);
  color: #fff;
}

.sprung:focus {
  top: 16px;
}

.ansage {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.breit {
  width: min(var(--breite), 100% - 2 * var(--rand));
  margin-inline: auto;
}

.schmal {
  width: min(720px, 100% - 2 * var(--rand));
  margin-inline: auto;
}

.abschnitt {
  padding-block: var(--abstand);
}

.planet {
  image-rendering: pixelated;
}

/* ---------- Weltall-Deko hinter den Abschnitten ---------- */

main {
  overflow-x: clip;
}

.abschnitt,
.schluss {
  position: relative;
}

.deko {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.deko canvas {
  position: absolute;
  image-rendering: pixelated;
}

.deko__nebel {
  height: auto;
}

/* Asteroiden und Satelliten treiben langsam auf und ab */
.deko__treiben {
  animation: treiben 7s ease-in-out infinite alternate;
}

.deko__treiben--langsam {
  animation-duration: 11s;
  animation-delay: -3s;
}

@keyframes treiben {
  to {
    transform: translate(10px, -14px);
  }
}

/* Ein kleines Schiff fliegt ab und zu durch den Hero */
.schiff {
  position: absolute;
  left: 0;
  top: 88%;
  animation: vorbeiflug 26s linear infinite;
  animation-delay: 2s;
}

.schiff canvas {
  position: static;
  max-width: none;
}

@keyframes vorbeiflug {
  0% {
    transform: translate(-120px, 40px);
  }
  32%,
  100% {
    transform: translate(calc(100vw + 40px), -70px);
  }
}

/* ---------- Wortmarke wie im Logo ---------- */

.wortmarke {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--schrift-logo);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.wortmarke__oben,
.wortmarke__unten {
  display: block;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

/* oben: Weiß nach Cyan in harten Pixelstufen */
.wortmarke__oben {
  background-image: linear-gradient(#ffffff 0 48%, #c4f4fc 48% 72%, #7fd8ef 72%);
}

/* unten: helles Lila nach dunklem Lila */
.wortmarke__unten {
  background-image: linear-gradient(#e6ceff 0 34%, #b884f7 34% 66%, #8a4fe6 66%);
}

/* dunkler Innenrand und blauer Außenrand wie beim Logo-Schild */
/* dunkler Innenrand, blauer Außenrand und ein harter Pixelschatten wie beim Logo-Schild */
.wortmarke--gross {
  font-size: clamp(6rem, 21vw, 14.5rem);
  filter:
    drop-shadow(0.022em 0 0 #121b52) drop-shadow(-0.022em 0 0 #121b52)
    drop-shadow(0 0.022em 0 #121b52) drop-shadow(0 -0.022em 0 #121b52)
    drop-shadow(0.018em 0 0 #2f6fd6) drop-shadow(-0.018em 0 0 #2f6fd6)
    drop-shadow(0 0.018em 0 #2f6fd6) drop-shadow(0 -0.018em 0 #2f6fd6)
    drop-shadow(0 0.04em 0 #0b1035);
}

.wortmarke--gross .wortmarke__unten {
  font-size: 1.15em;
  margin-top: 0.02em;
}

.wortmarke--klein {
  flex-direction: row;
  gap: 0.2em;
  font-size: 2rem;
  filter: drop-shadow(0 2px 0 #121b52);
}

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px 5px;
  border: 0;
  background: var(--lila-knopf);
  color: #fff;
  font: 400 1.5rem var(--schrift-pixel);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  clip-path: var(--pixelecke);
  box-shadow: inset 0 -5px 0 var(--lila-kante), inset 0 3px 0 rgb(255 255 255 / 18%);
  transition: background 150ms ease, transform 80ms ease;
}

.knopf:hover {
  background: #8d57ea;
}

.knopf:active {
  transform: translateY(3px);
  box-shadow: inset 0 -2px 0 var(--lila-kante);
}

.knopf--klein {
  min-height: 42px;
  padding: 0 20px 4px;
  font-size: 1.3rem;
  box-shadow: inset 0 -4px 0 var(--lila-kante);
}

.knopf--zweit {
  background: transparent;
  color: var(--text-hell);
  box-shadow: inset 0 0 0 3px var(--linie);
  padding-bottom: 0;
}

.knopf--zweit:hover {
  background: var(--flaeche-hell);
}

.knopf--zweit:active {
  box-shadow: inset 0 0 0 3px var(--linie);
}

/* Kaufknopf ohne hinterlegten Shop-Link */
.knopf--aus {
  background: transparent;
  color: var(--text-leise);
  box-shadow: inset 0 0 0 3px var(--linie);
  padding-bottom: 0;
  cursor: default;
}

.aktionen {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.ip-feld {
  display: flex;
  min-height: 54px;
  background: rgb(17 24 56 / 85%);
  clip-path: var(--pixelecke);
  box-shadow: inset 0 0 0 3px var(--linie);
}

.ip-feld__adresse {
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: var(--text-hell);
  font-family: var(--schrift-pixel);
  font-size: 1.35rem;
  user-select: all;
}

.ip-feld__knopf {
  min-width: 128px;
  padding: 0 18px;
  border: 0;
  border-left: 3px solid var(--linie);
  background: transparent;
  color: var(--cyan);
  font: 400 1.3rem var(--schrift-pixel);
  cursor: pointer;
}

.ip-feld__knopf:hover {
  background: rgb(139 227 244 / 10%);
}

.ip-feld__knopf.ist-kopiert {
  color: var(--gold);
}

/* ---------- Kopfleiste ---------- */

.kopf {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
  padding: 0 max(var(--rand), (100% - var(--breite)) / 2);
  transition: background 300ms ease, box-shadow 300ms ease;
}

.kopf.ist-gescrollt {
  background: rgb(8 11 31 / 85%);
  box-shadow: 0 3px 0 rgb(38 51 110 / 60%);
  backdrop-filter: blur(10px);
}

.kopf__marke {
  text-decoration: none;
  opacity: 0;
  transition: opacity 300ms ease;
}

.kopf.ist-gescrollt .kopf__marke {
  opacity: 1;
}

.hauptnav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.hauptnav a {
  color: var(--text);
  font-family: var(--schrift-pixel);
  font-size: 1.4rem;
  text-decoration: none;
}

.hauptnav a:hover {
  color: var(--cyan);
}

.menue-knopf {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 100svh;
  padding: 96px var(--rand) 72px;
  text-align: center;
}

.hero__himmel {
  overflow: hidden;
}

.hero__himmel .planet {
  position: absolute;
  top: 9%;
  right: max(4%, (100% - 1300px) / 2);
}

.hero .wortmarke {
  animation: landen 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes landen {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
}

.hero__text {
  max-width: 460px;
  color: var(--text);
  font-size: 1.2rem;
}

.hero__start {
  color: var(--gold);
  font-family: var(--schrift-pixel);
  font-size: 1.4rem;
}

/* Pixel-Funkeln wie die Sterne im Logo, werden in main.js verteilt */
.funkeln {
  position: absolute;
  width: 15px;
  height: 15px;
  color: #fff;
  animation: funkeln 3.2s ease-in-out infinite;
}

.funkeln svg {
  width: 100%;
  height: 100%;
  shape-rendering: crispEdges;
}

@keyframes funkeln {
  50% {
    opacity: 0.2;
    transform: scale(0.7);
  }
}

/* ---------- Welten ---------- */

.welten h2,
.faq h2 {
  text-align: center;
}

.welten__liste {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 16px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}

/* gepunktete Flugroute durch alle Planeten */
.welten__liste::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 38%;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--linie) 0 8px, transparent 8px 20px);
}

.welt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.welt .planet {
  margin-bottom: 20px;
  transition: transform 300ms ease;
}

.welt:hover .planet {
  transform: translateY(-8px);
}

.welt h3 {
  color: var(--farbe);
}

.welt p {
  color: var(--text-leise);
  font-size: 0.95rem;
}

.welt .welt__boss {
  margin-top: 4px;
  color: var(--text-leise);
  font-size: 0.9rem;
}

.welt--ziel h3::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  vertical-align: middle;
  background: var(--gold);
}

/* ---------- An Bord ---------- */

.bord__raster {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.bord__szene canvas {
  width: 100%;
  height: auto;
}

.punkte {
  display: grid;
  gap: 22px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.punkte li {
  position: relative;
  padding-left: 30px;
}

.punkte li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  background: var(--lila);
  box-shadow: 4px 4px 0 var(--blau);
}

.punkte strong {
  display: block;
  color: var(--text-hell);
  font-family: var(--schrift-pixel);
  font-size: 1.55rem;
  font-weight: 400;
}

/* ---------- Shop ---------- */

.shop__band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 48px;
  align-items: center;
  padding: 48px;
  background: rgb(17 24 56 / 80%);
  clip-path: var(--pixelecke);
  box-shadow: inset 0 0 0 3px var(--linie);
}

.shop__kopf p {
  margin-top: 12px;
  max-width: 440px;
}

.shop .knopf {
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* ---------- FAQ ---------- */

.faq__liste {
  display: grid;
  gap: 10px;
  margin-top: 40px;
}

.faq details {
  background: rgb(17 24 56 / 80%);
  clip-path: var(--pixelecke);
}

.faq summary {
  position: relative;
  display: block;
  padding: 18px 56px 18px 24px;
  color: var(--text-hell);
  font-family: var(--schrift-pixel);
  font-size: 1.5rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  color: var(--cyan);
  font-size: 1.6rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 200ms ease;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  padding: 0 24px 20px;
}

.faq code {
  color: var(--cyan);
  font-family: var(--schrift-pixel);
}

/* ---------- Schluss ---------- */

.schluss {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 80vh;
  padding: 96px var(--rand) 360px;
  overflow: hidden;
  text-align: center;
}

.schluss__inhalt {
  display: grid;
  gap: 32px;
  justify-items: center;
}

.planet--bogen {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: -1;
  width: min(760px, 80vw);
  transform: translate(-50%, 50%);
}

/* ---------- Footer ---------- */

.fuss {
  padding: 40px 0;
  border-top: 3px solid var(--linie);
  background: var(--grund);
  font-size: 0.92rem;
}

.fuss__reihe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.fuss__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.fuss__links a {
  color: var(--text);
  text-decoration: none;
}

.fuss__links a:hover {
  color: var(--cyan);
}

.fuss__hinweis {
  margin-top: 24px;
  color: var(--text-leise);
  font-size: 0.8rem;
}

/* ---------- Auftauchen beim Scrollen ---------- */

.auftauchen {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.auftauchen.ist-sichtbar {
  opacity: 1;
  transform: none;
}

/* ---------- Tablet ---------- */

@media (max-width: 960px) {
  .welten__liste {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 48px;
  }

  .welten__liste::before {
    display: none;
  }

  .bord__raster {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .shop__band {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .shop .knopf {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }
}

/* ---------- Handy ---------- */

@media (max-width: 700px) {
  .nur-desktop {
    display: none;
  }

  :root {
    --rand: 20px;
    --abstand: 88px;
  }

  body {
    font-size: 16px;
  }

  .kopf {
    gap: 12px;
  }

  .knopf--klein {
    margin-left: auto;
  }

  .menue-knopf {
    display: grid;
    gap: 6px;
    place-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .menue-knopf span {
    width: 22px;
    height: 3px;
    background: var(--text-hell);
    transition: transform 250ms ease;
  }

  .menue-knopf[aria-expanded="true"] span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .menue-knopf[aria-expanded="true"] span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .hauptnav {
    position: fixed;
    inset: 68px 0 0;
    flex-direction: column;
    gap: 8px;
    padding: 32px var(--rand);
    background: rgb(8 11 31 / 97%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, visibility 0s linear 250ms;
  }

  .hauptnav.ist-offen {
    opacity: 1;
    visibility: visible;
    transition: opacity 250ms ease;
  }

  .hauptnav a {
    padding: 10px 0;
    font-size: 2rem;
  }

  .hero__himmel .planet {
    top: 11%;
    right: 2%;
  }

  .aktionen {
    flex-direction: column;
    width: 100%;
  }

  .aktionen .knopf,
  .aktionen .ip-feld {
    width: 100%;
  }

  .ip-feld__adresse {
    flex: 1;
  }

  .welten__liste {
    grid-template-columns: repeat(2, 1fr);
  }

  .schluss {
    min-height: 0;
    padding-bottom: 66vw;
  }

  .planet--bogen {
    width: 120vw;
  }

  .fuss__reihe {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Weniger Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
  }

  .auftauchen {
    opacity: 1;
    transform: none;
  }
}
