/* ============================================================
   BayGleam – baygleam.punktdev.com
   Design: dunkles Ozean-Navy, Himmel-Blau, warmes Gold.
   Fonts: Fredoka (Display) + Plus Jakarta Sans (Text).
   ============================================================ */

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/fredoka-600.ttf) format('truetype');
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/fredoka-700.ttf) format('truetype');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/pjs-400.ttf) format('truetype');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/pjs-500.ttf) format('truetype');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/pjs-600.ttf) format('truetype');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/pjs-700.ttf) format('truetype');
}

:root {
  color-scheme: dark;
  --bg: #0d1f3c;
  --bg-deep: #091631;
  --surface: #142c53;
  --raised: #1a3765;
  --ink: #f2f7ff;
  --soft: #d9e5f7;
  --muted: #9db1d2;
  --sky: #63aef4;
  --sky-deep: #2f6fc4;
  --gold: #f5c542;
  --gold-deep: #e0a92e;
  --line: rgba(151, 191, 245, 0.18);
  --header: rgba(9, 22, 49, 0.82);
  --button-ink: #3a2a05;
  --shadow: 0 30px 80px rgba(2, 8, 20, 0.55);
  --radius-card: 22px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(90% 55% at 82% -12%, rgba(99, 174, 244, 0.16), transparent 60%) var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, .brand {
  font-family: 'Fredoka', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

.gold {
  background: linear-gradient(180deg, #ffe9a8 0%, #f5c542 55%, #e0a92e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.inner--narrow { max-width: 820px; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--gold);
  color: var(--button-ink);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip:focus { top: 14px; }

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 9px 12px 9px 20px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: var(--header);
  border-color: var(--line);
  box-shadow: 0 14px 40px rgba(2, 8, 20, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
@media (min-width: 1200px) { .site-header { padding-inline: 28px; } }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }

.header-links { display: flex; gap: 4px; }
.header-links a {
  color: var(--soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 13px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.header-links a:hover { background: rgba(99, 174, 244, 0.14); color: var(--ink); }
@media (max-width: 840px) { .header-links { display: none; } }

.header-actions { display: flex; align-items: center; gap: 10px; }

.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #ffd75e, #f0b429);
  color: var(--button-ink);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(240, 180, 41, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-chip svg { width: 17px; height: 17px; }
.store-chip:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(240, 180, 41, 0.45); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 0;
  overflow: hidden;
}
.hero::after {
  /* Sanfte Wellenlinie am unteren Hero-Rand – wie im Spiel */
  content: '';
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -14px;
  height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 64c120-32 240-32 360 0s240 32 360 0 240-32 360 0 240 32 360 0v56H0z' fill='%23122a50'/%3E%3C/svg%3") repeat-x bottom / 1440px 120px;
  opacity: 0.55;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { text-align: center; }
  .button-row { justify-content: center; }
}

.hero-copy h1 {
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero-copy h1 span { display: block; }
.hero-copy > p {
  color: var(--soft);
  font-size: clamp(17px, 1.6vw, 20px);
  max-width: 34em;
  margin: 22px 0 30px;
}
@media (max-width: 900px) { .hero-copy > p { margin-inline: auto; } }

.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.button-row--center { justify-content: center; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(180deg, #ffd75e, #f0b429);
  color: var(--button-ink);
  font-weight: 700;
  font-size: 16.5px;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(240, 180, 41, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(240, 180, 41, 0.45); }
.button.secondary {
  background: rgba(99, 174, 244, 0.14);
  color: var(--ink);
  border: 1px solid rgba(99, 174, 244, 0.35);
  box-shadow: none;
}
.button.secondary:hover { background: rgba(99, 174, 244, 0.22); box-shadow: none; }

.hero-note { color: var(--muted); font-size: 14.5px; margin-top: 18px; }

/* Phone-Mockup im Hero */
.device-stage { display: flex; justify-content: center; perspective: 1400px; }
.device {
  width: min(300px, 72vw);
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(151, 191, 245, 0.35), rgba(21, 44, 84, 0.9));
  box-shadow: var(--shadow), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transform: rotateY(-7deg) rotateX(2deg);
  animation: phone-drift 7s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes phone-drift {
  from { transform: rotateY(-7deg) rotateX(2deg) translateY(0); }
  to { transform: rotateY(-3.5deg) rotateX(1deg) translateY(-14px); }
}
.device-screen {
  position: relative;
  border-radius: 37px;
  overflow: hidden;
  border: 1px solid rgba(9, 22, 49, 0.8);
}
.device-screen img { display: block; width: 100%; }

/* Hero-Kreuzblendung: drei Screens weichen sanft überblendet */
.hero-shot { backface-visibility: hidden; }
.hero-shot:nth-child(n + 2) {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: hero-cycle 13.5s ease-in-out infinite;
}
.hero-shot:nth-child(2) { animation-delay: 0s; }
.hero-shot:nth-child(3) { animation-delay: -4.5s; }
.hero-shot:nth-child(1) { animation-delay: -9s; animation: hero-cycle 13.5s ease-in-out infinite; }
@keyframes hero-cycle {
  0%, 28% { opacity: 1; }
  35%, 88% { opacity: 0; }
  95%, 100% { opacity: 1; }
}

.hero-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: -40px;
  padding-top: 56px;
  padding-bottom: 84px;
}
@media (max-width: 720px) { .hero-facts { grid-template-columns: 1fr; text-align: center; gap: 26px; } }
.hero-facts strong {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(30px, 3vw, 40px);
  color: var(--gold);
}
.hero-facts span { color: var(--soft); font-size: 15.5px; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--bg-deep);
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track div { display: flex; align-items: center; }
.marquee-track span {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--muted);
  padding: 0 22px;
  white-space: nowrap;
}
.marquee-track i { color: var(--gold); font-style: normal; font-size: 13px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--alt {
  background: var(--bg-deep);
  border-block: 1px solid var(--line);
}
@media (max-width: 720px) { .section { padding: 76px 0; } }

.section-heading {
  font-size: clamp(30px, 3.4vw, 46px);
  text-align: center;
  margin-bottom: 18px;
}
.section-intro {
  text-align: center;
  color: var(--soft);
  max-width: 42em;
  margin: 0 auto 56px;
}

/* ---------- Spielprinzip: Steps ---------- */
.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
@media (max-width: 880px) { .steps-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

.step-card {
  position: relative;
  background: linear-gradient(160deg, var(--surface), var(--bg-deep));
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 34px 28px 30px;
  box-shadow: 0 18px 44px rgba(2, 8, 20, 0.35);
}
.step-num {
  position: absolute;
  top: -16px;
  left: 26px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffd75e, #f0b429);
  color: var(--button-ink);
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 19px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(240, 180, 41, 0.4);
}
.step-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(99, 174, 244, 0.14);
  border: 1px solid rgba(99, 174, 244, 0.3);
}
.step-icon svg { width: 30px; height: 30px; color: var(--sky); }
.step-card h3 { font-size: 21px; margin-bottom: 10px; }
.step-card p { color: var(--soft); font-size: 15.5px; margin: 0; }

/* ---------- Funktionen ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}
@media (max-width: 1020px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: linear-gradient(165deg, var(--raised), var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 26px 28px;
  box-shadow: 0 18px 44px rgba(2, 8, 20, 0.3);
}
.feature-visual {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  margin-bottom: 16px;
}
.feature-badge {
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  height: 64px;
  padding: 0 14px;
  border-radius: 18px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 26px;
  background: rgba(99, 174, 244, 0.14);
  border: 1px solid rgba(99, 174, 244, 0.3);
  color: var(--sky);
}
.feature-badge--level { color: var(--gold); background: rgba(245, 197, 66, 0.12); border-color: rgba(245, 197, 66, 0.35); font-size: 30px; }
.feature-badge--offline, .feature-badge--free { font-size: 24px; }
.mini-art { width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(2, 8, 20, 0.5)); }
.mini-art--solo { width: 84px; height: 84px; }
.feature-visual--symbols { gap: 16px; }

/* Spielkacheln (wie im Spiel: Farbverlauf, Emblem, Glanzkante) */
.game-tile {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(2, 8, 20, 0.45), inset 0 2px 2px rgba(255, 255, 255, 0.45), inset 0 -3px 6px rgba(2, 8, 20, 0.3);
}
.game-tile svg { width: 30px; height: 30px; color: #fff; filter: drop-shadow(0 2px 3px rgba(2, 8, 20, 0.4)); }
.gt-blue { background: linear-gradient(180deg, #55b0f5, #1f7cd0); }
.gt-green { background: linear-gradient(180deg, #93cb52, #5f9c2f); }
.gt-teal { background: linear-gradient(180deg, #35b09a, #1c7d6d); }
.gt-purple { background: linear-gradient(180deg, #c46bf2, #8b2bd1); }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { color: var(--soft); font-size: 15.5px; margin: 0; }

/* ---------- Screenshots ---------- */
.screens-strip {
  display: flex;
  gap: 26px;
  margin-top: 60px;
  overflow-x: auto;
  padding: 12px 24px 30px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--sky-deep) transparent;
}
.screens-strip::-webkit-scrollbar { height: 8px; }
.screens-strip::-webkit-scrollbar-thumb { background: var(--sky-deep); border-radius: 999px; }
.screens-strip::-webkit-scrollbar-track { background: rgba(99, 174, 244, 0.08); border-radius: 999px; }

.screen-card { margin: 0; flex: 0 0 auto; width: 220px; scroll-snap-align: center; text-align: center; }
.screen-frame {
  border-radius: 30px;
  padding: 7px;
  background: linear-gradient(160deg, rgba(151, 191, 245, 0.4), rgba(21, 44, 84, 0.9));
  box-shadow: 0 22px 55px rgba(2, 8, 20, 0.5);
  transition: transform 0.25s ease;
}
.screen-card:hover .screen-frame { transform: translateY(-6px) scale(1.015); }
.screen-frame img { display: block; border-radius: 24px; }
.screen-card figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; font-weight: 600; }
@media (min-width: 1100px) {
  .screen-card:nth-child(even) { transform: translateY(26px); }
}

/* ---------- FAQ ---------- */
.faq {
  background: linear-gradient(160deg, var(--surface), var(--bg-deep));
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 14px;
  padding: 4px 26px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 18.5px;
  padding: 18px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--gold);
  font-size: 26px;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--soft); font-size: 15.5px; margin: 0 0 20px; }

/* ---------- CTA ---------- */
.cta-panel {
  text-align: center;
  background:
    radial-gradient(70% 120% at 50% -20%, rgba(99, 174, 244, 0.28), transparent 65%),
    linear-gradient(160deg, var(--raised), var(--bg-deep));
  border: 1px solid rgba(245, 197, 66, 0.35);
  border-radius: 30px;
  padding: 68px 28px 62px;
  box-shadow: var(--shadow);
}
.cta-logo { width: min(320px, 70vw); height: auto; margin-bottom: 14px; }
.cta-line { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: clamp(21px, 2.4vw, 27px); margin: 0 0 28px; }
.cta-panel .button-row { margin-bottom: 20px; }
.cta-note { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 56px 0 30px; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand img { height: 40px; width: auto; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 34em; margin: 12px 0 0; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.footer-links a:hover { color: var(--gold); }
.footer-base { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-base p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ---------- Legal-Seiten ---------- */
.legal-main { padding: 150px 0 90px; }
.legal-header h1 { font-size: clamp(34px, 4vw, 52px); }
.legal-header .stand { color: var(--muted); font-size: 15px; margin-top: 10px; }
.legal-grid { margin-top: 46px; display: grid; gap: 0; }
.legal-section { border-top: 1px solid var(--line); padding: 26px 0; }
.legal-section h2 { font-size: 22px; margin-bottom: 12px; }
.legal-section p, .legal-section li { color: var(--soft); font-size: 16px; margin: 0 0 12px; }
.legal-section ul { padding-left: 22px; margin: 0 0 12px; }
.legal-section a { color: var(--gold); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }
.legal-section address { font-style: normal; color: var(--soft); line-height: 1.8; }
.legal-footer-nav { text-align: center; margin-top: 40px; }
.legal-footer-nav a {
  display: inline-block;
  color: var(--soft);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.legal-footer-nav a:hover { color: var(--gold); border-color: rgba(245, 197, 66, 0.4); }
.legal-footer-nav a + a { margin-left: 10px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .device { animation: none; }
  .marquee-track { animation: none; }
  .screen-card:hover .screen-frame { transform: none; }
  .button:hover, .store-chip:hover { transform: none; }
  .hero-shot, .hero-shot:nth-child(n + 2) { animation: none; opacity: 1; }
  .hero-shot:nth-child(n + 2) { position: absolute; inset: 0; opacity: 0; }
}
