/* ==========================================================================
   TasteJump — Website Stylesheet
   Struktur: Reset → Variablen → Layout-Helfer → Komponenten → Sektionen →
             Responsive
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Variablen ---------- */
:root {
  --bg-0: #06070c;
  --bg-1: #0b0c15;
  --bg-2: #12131f;
  --bg-3: #1a1c2b;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);

  --accent: #7c5cff;
  --accent-2: #00e5c7;
  --accent-warm: #ff5c8a;

  --text-hi: #f4f4fb;
  --text-mid: #b7b8cc;
  --text-low: #7d7e94;

  --success: #34e19a;
  --danger: #ff5c6c;
  --warning: #ffb84d;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-glow: 0 0 60px rgba(124, 92, 255, 0.25);
  --ease: cubic-bezier(.16,.8,.3,1);
}

body {
  background: var(--bg-0);
  color: var(--text-mid);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-hi);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ---------- Hintergrund-Effekte ---------- */
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  top: -20%; left: 50%;
  width: 1200px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(124,92,255,0.25) 0%, rgba(0,229,199,0.08) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Sections ---------- */
main, header, footer { position: relative; z-index: 1; }

.section { padding: 120px 0; }
.section-heading { max-width: 640px; margin-bottom: 56px; }
.section-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 14px; }
.section-sub { color: var(--text-low); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 13px 26px;
  font-size: 0.98rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5f3dff);
  color: #fff;
  box-shadow: 0 8px 30px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(124, 92, 255, 0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-hi);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }

.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-xl { padding: 20px 40px; font-size: 1.15rem; width: 100%; }

.btn-discord {
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.4);
  color: #b7bdff;
  margin-top: 10px;
}
.btn-discord:hover { background: rgba(88, 101, 242, 0.28); transform: translateY(-2px); }

.btn-icon { font-size: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease), padding .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6, 7, 12, 0.75);
  backdrop-filter: blur(14px);
  border-color: var(--border);
  padding: 12px 0;
}

.nav { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--border);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-hi);
}

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color .2s;
  position: relative;
}
.nav-links a:hover { color: var(--text-hi); }
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--accent-2);
  transition: width .25s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--text-hi) !important;
}
.nav-cta:hover { background: var(--surface-hover); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text-hi);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: heroIn 1s var(--ease) both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-hi);
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(120deg, #ffffff 10%, var(--accent-2) 45%, var(--accent) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shine 6s linear infinite;
}
@keyframes shine {
  to { background-position: 200% center; }
}

.hero-tagline {
  max-width: 560px;
  font-size: 1.2rem;
  color: var(--text-mid);
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-low);
  font-size: 0.92rem;
}
.version-chip strong { color: var(--accent-2); }
.dot-sep { opacity: 0.5; }

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  width: 26px; height: 42px;
  border: 2px solid var(--border);
  border-radius: 20px;
}
.hero-scroll-hint span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--accent-2);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 8px; }
}

/* ---------- Download Card ---------- */
.download-card {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(145deg, var(--surface), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(124,92,255,0.18), transparent 60%);
  pointer-events: none;
}

.download-card-left { flex: 1; min-width: 280px; }
.file-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(0, 229, 199, 0.1);
  border: 1px solid rgba(0, 229, 199, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.download-card-left h3 { font-size: 1.6rem; margin-bottom: 20px; word-break: break-word; }

.download-info-list { display: flex; flex-direction: column; gap: 10px; }
.download-info-list li {
  display: flex; justify-content: space-between;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 8px;
  font-size: 0.95rem;
}
.download-info-list .label { color: var(--text-low); }
.download-info-list .value { color: var(--text-hi); font-weight: 600; }

.download-card-right {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.download-hint { font-size: 0.82rem; color: var(--text-low); text-align: center; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: zoom-in;
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease), filter .5s var(--ease);
}
.gallery-item::after {
  content: '🔍 Vergrößern';
  position: absolute; inset: auto 0 0 0;
  padding: 14px;
  font-size: 0.85rem;
  color: var(--text-hi);
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  transform: translateY(100%);
  transition: transform .3s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { transform: translateY(0); }

.gallery-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  color: var(--text-low);
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(4, 4, 8, 0.92);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
  z-index: 200;
  padding: 40px;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
  transform: scale(0.92);
  transition: transform .3s var(--ease);
}
.lightbox.active img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 28px; right: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-hi);
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
}
.lightbox-close:hover { background: var(--surface-hover); }

/* ---------- Feature Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.4);
  background: var(--surface-hover);
}
.feature-card .f-icon { font-size: 1.8rem; display: block; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; color: var(--text-low); }

.about-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.about-meta-card {
  background: linear-gradient(160deg, var(--surface), transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}
.about-meta-card .meta-icon { font-size: 1.5rem; }
.about-meta-card h4 { margin: 10px 0 8px; font-size: 1rem; color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; }
.about-meta-card p { color: var(--text-hi); font-size: 1rem; }
.about-meta-worlds ul { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.about-meta-worlds li { font-size: 0.92rem; }
.about-meta-worlds strong { color: var(--text-hi); }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 20px;
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-hi);
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--text-low);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.server-status-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
}
.status-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--text-low);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.03);
  flex-shrink: 0;
}
.status-dot.online { background: var(--success); box-shadow: 0 0 16px rgba(52, 225, 154, 0.6); animation: pulse 2s infinite; }
.status-dot.offline { background: var(--danger); box-shadow: 0 0 16px rgba(255, 92, 108, 0.5); }
.status-dot.maintenance { background: var(--warning); box-shadow: 0 0 16px rgba(255, 184, 77, 0.5); }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.server-status-text strong { color: var(--text-hi); display: block; }
.server-status-sub { font-size: 0.85rem; color: var(--text-low); }

/* ---------- Changelog ---------- */
.changelog-list { display: flex; flex-direction: column; gap: 18px; }
.changelog-entry {
  display: flex;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 30px;
}
.changelog-version {
  flex: 0 0 130px;
}
.changelog-version .v { font-family: var(--font-display); font-size: 1.3rem; color: var(--text-hi); font-weight: 700; }
.changelog-version .d { display: block; font-size: 0.82rem; color: var(--text-low); margin-top: 4px; }
.changelog-badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
}
.changelog-badge.release { background: rgba(124,92,255,0.15); color: #b3a2ff; border: 1px solid rgba(124,92,255,0.35); }
.changelog-badge.feature { background: rgba(0,229,199,0.12); color: var(--accent-2); border: 1px solid rgba(0,229,199,0.3); }
.changelog-badge.fix { background: rgba(255,184,77,0.12); color: var(--warning); border: 1px solid rgba(255,184,77,0.3); }

.changelog-changes { flex: 1; }
.changelog-changes li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-mid);
}
.changelog-changes li::before {
  content: '›';
  position: absolute; left: 0; top: 0;
  color: var(--accent-2);
  font-weight: 700;
}
.changelog-changes li.changelog-section-title {
  padding-left: 0;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-hi);
}
.changelog-changes li.changelog-section-title::before { content: none; }
.changelog-changes li.changelog-section-title:first-child { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 0;
  background: var(--bg-1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-hi);
  margin-bottom: 14px;
}
.footer-col p { font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent-2); }
.footer-brand p { margin-top: 14px; max-width: 260px; }

.social-links { display: flex; gap: 12px; margin-top: 6px; }
.social-links a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1.05rem;
  transition: background .25s, border-color .25s, transform .25s;
}
.social-links a:hover { background: var(--surface-hover); border-color: rgba(255,255,255,0.25); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-low);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(6,7,12,0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease);
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px 24px; width: 100%; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 12px 24px; display: inline-block; }

  .download-card { flex-direction: column; padding: 32px; }
  .download-card-right { width: 100%; }

  .section { padding: 84px 0; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .changelog-entry { flex-direction: column; gap: 12px; }
  .changelog-version { flex: none; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}
