﻿/* Ensure theme and background always apply so hero text stays readable when particles or CDN fail */
*, *::before, *::after {
  box-sizing: border-box;
}
:root {
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #e5e7eb;
  /* Einheitliche Scrollbars (statt Browser-Standard) */
  --scrollbar-size: 8px;
  --scrollbar-track: rgba(15, 23, 42, 0.55);
  --scrollbar-thumb: rgba(56, 189, 248, 0.35);
  --scrollbar-thumb-hover: rgba(56, 189, 248, 0.52);
}
html, body {
  color: var(--text-main);
  font-family: "Inter", sans-serif;
}
html {
  scrollbar-gutter: stable;
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
*::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}
*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}
*::-webkit-scrollbar-corner {
  background: transparent;
}
body {
  overflow-x: hidden;
  padding-top: 76px;
}
/*
 * Z-index scale (low → high):
 *   -1   #particles-js (background + particles)
 *    1   main, timeline/project blocks
 *  5–6   slider, slider-controls, slider-indicators
 *  999   nav (mobile overlay)
 * 1000   header
 * 1001   dropdown-menu, burger
 * 1100   .site-footer (footer.css)
 * 2000   .modal-overlay
 * 2200   .floating-login
 * (nexspace-extra: .global-rocket 1500, below modal)
 */

/* Particles container = fullscreen background #020617 + canvas */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background-color: #020617;
}
#particles-js canvas {
  display: block;
  vertical-align: bottom;
}

/* --- Retro Roleplay Timeline Styles --- */
.project-timeline {
  position: relative;
  max-width: 900px;
  margin: 80px auto 60px;
  padding: 0 16px;
}
.timeline-track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #10B981, #3B82F6, #e5e7eb);
  border-radius: 4px;
  z-index: 1;
}
.timeline-list {
  position: relative;
  z-index: 2;
}
.tl-item {
  position: relative;
  width: 50%;
  min-height: 120px;
  padding: 0 65px 110px;
  opacity: 0;
  will-change: transform, opacity;
  transform: translateZ(0);
}
.tl-item.left { left: 0; text-align: right; }
.tl-item.right { left: 50%; text-align: left; }
.tl-item.enter-left {
  animation: swingInLeft 0.7s ease-out forwards;
}
.tl-item.enter-right {
  animation: swingInRight 0.7s ease-out forwards;
}
@keyframes swingInLeft {
  0% { opacity: 0; transform: translate3d(-50px, 10px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes swingInRight {
  0% { opacity: 0; transform: translate3d(50px, 10px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
.tl-connector {
  position: absolute; top: 22px; height: 2px; z-index: 4;
  background: linear-gradient(90deg, #e5e7eb, transparent);
  opacity: 0; transition: opacity 0.5s ease 0.4s;
}
.tl-item.left .tl-connector {
  right: 0; width: 52px;
  background: linear-gradient(90deg, transparent, #e5e7eb);
}
.tl-item.right .tl-connector {
  left: 0; width: 52px;
  background: linear-gradient(90deg, #e5e7eb, transparent);
}
.tl-item.activated .tl-connector { opacity: 1; }
.tl-node {
  position: absolute; top: 8px;
  width: 30px; height: 30px; z-index: 5;
}
.tl-item.left .tl-node { right: -15px; }
.tl-item.right .tl-node { left: -15px; }
.tl-node-core {
  width: 100%; height: 100%;
  border-radius: 50%; background: #0a0a0b;
  border: 3px solid rgba(63,63,70,0.4);
  position: relative; z-index: 3;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tl-node-core::after {
  content: ''; position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 0; height: 0; border-radius: 50%;
  background: #e5e7eb;
  transition: all 0.5s ease 0.2s;
}
.tl-item.activated .tl-node-core {
  border-color: #e5e7eb;
  box-shadow: 0 0 25px rgba(229,231,235,0.5);
  transform: scale(1.15);
}
.tl-item.activated .tl-node-core::after {
  width: 10px; height: 10px;
}
.tl-ring {
  position: absolute; top: 50%; left: 50%;
  border-radius: 50%; z-index: 2;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0; pointer-events: none;
}
.tl-ring-1 {
  width: 60px; height: 60px;
  border: 2px solid rgba(229,231,235,0.4);
}
.tl-ring-2 {
  width: 90px; height: 90px;
  border: 1px solid rgba(147,51,234,0.3);
}
.tl-ring-3 {
  width: 120px; height: 120px;
  border: 1px solid rgba(229,231,235,0.15);
}
.tl-item.activated .tl-ring-1 { animation: ringBurst 1.5s ease-out forwards; }
.tl-item.activated .tl-ring-2 { animation: ringBurst 1.5s ease-out 0.15s forwards; }
.tl-item.activated .tl-ring-3 { animation: ringBurst 1.5s ease-out 0.3s forwards; }
.tl-item.activated.milestone .tl-ring-1 { animation: ringBurst 2.5s ease-out infinite; }
.tl-item.activated.milestone .tl-ring-2 { animation: ringBurst 2.5s ease-out 0.3s infinite; }
.tl-item.activated.milestone .tl-ring-3 { animation: ringBurst 2.5s ease-out 0.6s infinite; }
@keyframes ringBurst {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
.tl-date {
  display: inline-block; padding: 7px 20px; border-radius: 12px;
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; margin-bottom: 18px;
  background: rgba(229,231,235,0.06); border: 1px solid rgba(229,231,235,0.15);
  color: #e5e7eb; transition: all 0.5s ease;
}
.tl-item.activated .tl-date {
  background: rgba(229,231,235,0.12);
  border-color: rgba(229,231,235,0.35);
  box-shadow: 0 0 25px rgba(229,231,235,0.08);
}
.tl-card {
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(63,63,70,0.3);
  border-radius: 20px; padding: 30px;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative; overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
}
.tl-card-glow {
  position: absolute; top: 0; left: -100%; right: -100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(229,231,235,0.7), transparent);
  opacity: 0; transition: all 0.6s ease;
}
.tl-card:hover .tl-card-glow { opacity: 1; left: 0; right: 0; }
.tl-card-shimmer {
  position: absolute; top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.tl-card:hover .tl-card-shimmer { animation: shimmer 1s ease; }
@keyframes shimmer { to { left: 250%; } }
.tl-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(229,231,235,0.07) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none; border-radius: 20px;
}
.tl-card:hover::after { opacity: 1; }
.tl-card:hover {
  border-color: rgba(229,231,235,0.35);
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 30px 70px rgba(0,0,0,0.4), 0 0 50px rgba(229,231,235,0.06);
}
.tl-icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: white; margin-bottom: 18px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tl-card:hover .tl-icon { transform: scale(1.15) rotate(-8deg); }
.tl-item.left .tl-icon { margin-left: auto; }
.icon-idea { background: linear-gradient(135deg, #F59E0B, #D97706); box-shadow: 0 8px 22px rgba(245,158,11,0.3); }
.icon-dev { background: linear-gradient(135deg, #3B82F6, #2563EB); box-shadow: 0 8px 22px rgba(59,130,246,0.3); }
.icon-launch { background: linear-gradient(135deg, #9333EA, #7E22CE); box-shadow: 0 8px 22px rgba(147,51,234,0.3); }
.icon-grow { background: linear-gradient(135deg, #e5e7eb, #FF6B00); box-shadow: 0 8px 22px rgba(229,231,235,0.3); }
.icon-players { background: linear-gradient(135deg, #10B981, #059669); box-shadow: 0 8px 22px rgba(16,185,129,0.3); }
.icon-boom { background: linear-gradient(135deg, #EC4899, #DB2777); box-shadow: 0 8px 22px rgba(236,72,153,0.3); }
.icon-700 { background: linear-gradient(135deg, #8B5CF6, #7C3AED); box-shadow: 0 8px 22px rgba(139,92,246,0.3); }
.icon-1k { background: linear-gradient(135deg, #e5e7eb, #9333EA); box-shadow: 0 8px 22px rgba(229,231,235,0.35); }
.tl-card h3 {
  font-size: 1.3rem; color: #fff; margin-bottom: 10px;
  font-weight: 700; transition: color 0.3s ease;
}
.tl-card:hover h3 { color: #10B981; }
.tl-card p { color: #bae6fd; font-size: 0.95rem; line-height: 1.8; }
@media (max-width: 900px) {
  .project-timeline { max-width: 100vw; padding: 0 8px; }
  .timeline-track { left: 30px; transform: none; }
  .tl-item { width: 100%; left: 0 !important; text-align: left !important; padding: 0 16px 60px 60px; }
  .tl-item.left, .tl-item.right { left: 0; }
  .tl-item.left .tl-node, .tl-item.right .tl-node { left: 15px; right: auto; }
  .tl-item.left .tl-icon { margin-left: 0; }
  .tl-item.left .tl-connector,
  .tl-item.right .tl-connector { right: auto; left: 30px; width: 30px; background: linear-gradient(90deg, #e5e7eb, transparent); }
  .tl-item.enter-left { animation-name: swingInRight; }
  .tl-card { padding: 20px; }
  .tl-card h3 { font-size: 1.1rem; }
  .tl-card p { font-size: 0.9rem; }
}
/* Timeline CTA Button */
.timeline-cta {
  text-align: center;
  margin-top: 10px;
  padding-bottom: 100px;
  position: relative;
  z-index: 2;
}
.timeline-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  border: 1px solid rgba(229,231,235,0.35);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.timeline-cta-btn i {
  font-size: 0.9em;
}
.timeline-cta-btn:hover {
  border-color: rgba(229,231,235,0.55);
  background: rgba(229,231,235,0.1);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 30px rgba(229,231,235,0.08);
}
/* Timeline "Mehr wird passieren" pill */
.tl-more-pill {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  padding-bottom: 1rem;
}
.tl-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 2rem;
  border-radius: 999px;
  border: 1px solid rgba(229,231,235,0.3);
  background: rgba(15,23,42,0.85);
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.tl-pill-link:hover {
  border-color: rgba(229,231,235,0.55);
  background: rgba(229,231,235,0.08);
  color: #e5e7eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 20px rgba(229,231,235,0.06);
}
@media (max-width: 900px) {
  .timeline-cta {
    margin-top: 0;
    padding-bottom: 30px;
  }
  .timeline-cta-btn {
    padding: 0.65rem 1.4rem;
    font-size: 0.88rem;
  }
}
@media (max-width: 600px) {
  .timeline-cta-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.82rem;
  }
}
/* --- Retro Roleplay Timeline Styles --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

header h1 {
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}

.brand-link {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
  height: 100%;
}

.header-flex {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}

.header-brand {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  z-index: 1001;
}

.brand-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo .logo-mark {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 0.25s ease;
}

.brand-logo .logo-mark img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.brand-logo .brand-text {
  white-space: nowrap;
  letter-spacing: 0.01em;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  opacity: 0;
  transform: translateX(-15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.brand-logo:hover .brand-text,
.brand-logo:focus-visible .brand-text {
  opacity: 1;
  transform: translateX(0);
}

.brand-logo:hover .logo-mark,
.brand-logo:focus-visible .logo-mark {
  transform: scale(1.05);
}

.brand-link:active .logo-mark {
  transform: scale(0.98);
}

.nav-center {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav, #main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

nav a:hover { 
  color: var(--text-main);
  transform: translateY(-1px);
}

nav a:active {
  transform: translateY(0);
}

nav a i {
  font-size: 0.9em;
}

/* Discord Counter Styles */
nav a.discord-counter {
  position: relative;
  color: #5865F2;
  transition: all 0.2s ease;
}

nav a.discord-counter:hover {
  color: #7289DA;
  transform: translateY(-1px);
}

nav a.discord-counter .member-count {
  display: inline-block;
  background: rgba(88, 101, 242, 0.15);
  color: #7289DA;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
  line-height: 1;
  border: 1px solid rgba(88, 101, 242, 0.3);
}

nav a.discord-counter:hover .member-count {
  background: rgba(88, 101, 242, 0.25);
  border-color: rgba(88, 101, 242, 0.5);
}

/* Login Button Styles */
nav a.nav-login {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  margin-left: 2rem;
  background: rgba(148, 163, 184, 0.05);
  transition: all 0.2s ease;
}

nav a.nav-login:hover {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text-main);
  transform: translateY(-1px);
}

nav a.nav-logout {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

nav a.nav-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.5);
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-toggle i.fa-chevron-down {
  font-size: 0.7em;
  margin-left: 0.3rem;
  transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle i.fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 0.5rem;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 23, 42, 0.8);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 1001;
  padding: 0.5rem 0;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Desktop hover: open dropdown on hover */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .dropdown:hover .dropdown-toggle i.fa-chevron-down {
    transform: rotate(180deg);
  }
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  margin: 0;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-main);
}

.dropdown-menu a i {
  margin-right: 0.75rem;
  width: 16px;
  text-align: center;
}

.dropdown-menu a .nav-project-icon {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  margin-right: 0.75rem;
  object-fit: contain;
  vertical-align: middle;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Burger Menu */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger-menu span {
  width: 100%;
  height: 3px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

section { min-height: auto; }

main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 2rem 3vw 4rem;
}

/* .glass-panel removed (placeholder not needed) */

/* Hero: links ausrichten wie Header (volle Breite innerhalb padding-inline) */
.hero {
  width: 100%;
  max-width: none;
  padding-inline: 6vw; /* gleiche Horizontal-AbstÃƒÂ¤nde wie Header */
  padding-top: 2.4rem;
  padding-bottom: 2.2rem;
  margin: 0; /* kein auto, nicht zentrieren */
  min-height: 26vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  align-items: flex-start;
}

.hero h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 0.4rem;
  line-height: 1.05;
  text-align: left;
}

.hero p {
  color: #94a3b8;
  color: var(--text-muted, #94a3b8);
  max-width: 650px;
  line-height: 1.7;
  margin-top: 0.6rem;
  text-align: left;
}

.hero-title {
  display: block;
  position: relative;
  letter-spacing: 0.02em;
  white-space: normal;
  color: #f1f5f9;
  color: var(--text-main, #f1f5f9);
  min-height: 1.05em;
}

/* Invisible placeholder keeps the full slogan height reserved so layout doesn't shift */
.hero-title::after {
  content: attr(data-full);
  display: block;
  height: 0;
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
}

/* Typewriter text: keep static to avoid full-line blinking or layout glitches */
#hero-typed {
  position: static;
  display: inline;
  white-space: normal;
  overflow: visible;
  color: inherit;
}

/* Disable blinking caret so only the text is visible */
#hero-typed::after {
  content: none;
}

.slider-section {
  padding: 0 2vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider {
  position: relative;
  overflow: hidden;
  max-width: 1600px;
  width: 100%;
  margin: 0.5rem auto 0;
  border-radius: 20px;
  background-color: #111318;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  transform: translate3d(
    calc(var(--mouseX) * 16px),
    calc(var(--mouseY) * 10px),
    0
  );
  transition: transform 0.25s ease-out;
  z-index: 5;
}

.slides {
  display: flex;
  transition: transform .8s ease;
}

.slide {
  position: relative;
  min-width: 100%;
  height: clamp(360px, 50vh, 480px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.3));
}

.slide.right::before {
  background: linear-gradient(270deg, rgba(0,0,0,.85), rgba(0,0,0,.3));
}

.slide-content {
  position: relative;
  max-width: 600px;
  padding: 2.5rem 5vw;
}

.right .slide-content { margin-left: auto; text-align: right; }

.slide h3 { font-size: 2rem; margin-bottom: 0.8rem; }
.slide p { color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }

.buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  /* keine Zentrierung hier Ã‚Â Buttons folgen dem normalen Fluss */
}

.right .buttons { justify-content: flex-end; } /* bleibt erhalten fÃ‚Âr rechts ausgerichtete Slides */

.buttons a {
  padding: .8rem 1.6rem;
  border-radius: 10px;
  border: 1px solid var(--accent);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  font-weight: 500;
}

.buttons a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.buttons a:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 193, 82, 0.3);
}

.buttons a:hover::before {
  width: 300px;
  height: 300px;
}

.buttons a:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(244, 193, 82, 0.2);
}

.buttons a i {
  transition: transform 0.3s ease;
}

.buttons a:hover i {
  transform: scale(1.1);
}

.slider-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.slider-controls button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #161922;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.8);
  pointer-events: auto;
}

.slider-controls button.prev {
  left: 1.25rem;
}

.slider-controls button.next {
  right: 1.25rem;
}

.slider-indicators {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
  z-index: 6;
  pointer-events: none;
}

.slider-indicators button {
  pointer-events: auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.7);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.slider-indicators button.active {
  width: 24px;
  background: #f9fafb;
  transform: translateY(-1px);
}

/* Info-Row: side-by-side layout */
.info-row {
  display: flex;
  gap: 1.5rem;
  padding: 3rem min(6vw, 5rem);
  max-width: 1400px;
  margin: 0 auto;
  align-items: stretch;
}

.info-banner {
  flex: 1;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 3rem 2.5rem;
  min-height: auto;
  display: flex;
  align-items: center;
  border-radius: 20px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.info-banner:hover {
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.info-inner {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding-inline: 0;
  text-align: left;
}

/* Ausnahme: Team-Sektion bleibt zentriert */
#between-craft-tale .info-inner {
  margin: 0 auto;
  padding-inline: 6vw;
  text-align: center;
}

.info-inner h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 1.5rem;
}

.info-inner p {
  color: var(--text-muted);
  line-height: 1.9;
}

.project-banner {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 5rem min(9vw, 7rem);
  overflow: hidden;
}

.nexcraft-banner {
  background-image:
    linear-gradient(120deg, rgba(2, 6, 23, 0.95), rgba(8, 47, 73, 0.7), rgba(88, 28, 135, 0.7)),
    url('../../images/itscraftbannernew.png');
  background-size: cover;
  background-position: center;
}

.nexspace-banner {
  background-image:
    radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.7), rgba(12, 74, 110, 0.7)),
    url('../../images/itsspacebannernew.png');
  background-size: cover;
  background-position: center;
}

.project-inner {
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: auto;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.06);
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  /* entfernt: border; */
}

.project-inner h2 {
  font-size: clamp(2.3rem, 4vw, 3.3rem);
  margin-bottom: 1.2rem;
}

.project-inner p {
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.9;
  margin-bottom: 2rem;
  max-width: 640px;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s, transform 0.6s;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading state for images */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Advertisement Styles */
.ad-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2.5rem auto;
  padding: 1.5rem;
  background: rgba(8, 10, 20, 0.4);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  min-height: 100px;
  max-width: 100%;
  overflow: hidden;
}

.ad-container.horizontal {
  max-width: 728px;
  min-height: 90px;
}

.ad-container.vertical {
  max-width: 300px;
  min-height: 250px;
}

  .ad-container.square {
    max-width: 336px;
    min-height: 280px;
  }

  .ad-container ins {
    display: block;
    width: 100%;
    height: 100%;
  }

  /* AdSense responsive */
  .adsbygoogle {
    display: block;
    width: 100%;
    height: 100%;
  }

  @media (max-width: 768px) {
    .ad-container {
      margin: 2rem auto;
      padding: 1rem;
      min-height: 80px;
    }

    .ad-container.horizontal {
      max-width: 100%;
    }
  }

  @media (max-width: 600px) {
    .ad-container {
      margin: 1.5rem auto;
      padding: 0.8rem;
      min-height: 70px;
    }
  }

  /* Footer visuals are handled in assets/css/footer.css */

/* Player count badges for servers */
.server-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem; /* give the server pill breathing room before CTA buttons */
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ItsTale styles removed (project no longer active) */

.server-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  border-radius: 12px; /* match other buttons */
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.18);
  color: #e6f9e9; /* brighter for better contrast */
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(2,6,23,0.45);
}

.server-status-pill.offline {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
  color: #fff; /* clear, readable */
}

.server-status-pill i {
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(0,0,0,0.12);
  color: inherit;
}

.server-status-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .server-status-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Team-Section: Grid + Avatar-Styles */
.team-grid {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 160px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(148,163,184,0.18);
  box-shadow: 0 10px 28px rgba(2,6,23,0.45);
  background: #0b0d10;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.member:hover .avatar img {
  transform: scale(1.1);
}

.member:hover .avatar {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(244, 193, 82, 0.2);
}

.member-name {
  margin-top: 0.6rem;
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.1;
}

.member-role {
  display: block;
  margin-top: 0.18rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1.0rem;
}

@media (max-width: 600px) {
  .member { width: 120px; }
  .avatar { width: 96px; height: 96px; }
  .member-name { font-size: 0.9rem; }
}

/* caret animation kept for backwards-compat, but no longer used */
@keyframes blink-caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (max-width: 900px) {
  main {
    padding-inline: 5vw;
  }

  .hero {
    padding: 3.3rem 2.2rem;
    margin-top: 1.5rem;
  }

  .slide {
    height: clamp(320px, 45vh, 420px);
  }

  .slide-content {
    padding: 2rem 2rem;
  }

  .slider {
    border-radius: 18px;
  }

  .slider-controls button {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .project-banner {
    padding-inline: 6vw;
  }

  .info-banner {
    padding-inline: 6vw;
  }

  .info-row {
    padding: 2rem 5vw;
  }

  body {
    padding-top: 70px;
    padding-bottom: 16px;
  }

  header {
    padding: 1rem 4vw;
    min-height: 70px;
    position: fixed;
  }

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

  .header-brand {
    position: static;
    transform: none;
  }

  .brand-logo .brand-text {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-center {
    width: auto;
    flex: 0;
  }

  header h1 {
    margin: 0;
    flex: 1;
  }

  .brand-link {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
  }

  .burger-menu {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  nav, #main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #020617;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 30px rgba(0, 23, 42, 0.8);
    flex-direction: column;
    padding: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    z-index: 999;
    display: none;
    justify-content: flex-start;
  }

  nav.active, #main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    display: flex;
    gap: 0;
  }

  nav a {
    margin-left: 0;
    padding: 1rem 4vw;
    font-size: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  }

  nav a:last-child {
    border-bottom: none;
  }

  nav a.nav-login {
    border: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 0;
    margin-left: 0;
    background: transparent;
  }

  nav a.nav-login:hover {
    background: rgba(148, 163, 184, 0.05);
    border-color: rgba(148, 163, 184, 0.1);
  }

  nav a.nav-logout {
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  }

  nav a.discord-counter {
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  }

  nav a.discord-counter .member-count {
    margin-left: auto;
    margin-right: 0;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    padding: 1rem 4vw;
    margin-left: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: rgba(148, 163, 184, 0.05);
    padding: 0;
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding-left: calc(4vw + 2rem);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  }

  nav a:hover {
    background: rgba(148, 163, 184, 0.05);
    color: var(--text-main);
  }

  .hero {
    padding: 2.5rem 4vw;
    min-height: 20vh;
  }

  .hero h2 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    line-height: 1.2;
  }

  .hero-title {
    white-space: normal;
    overflow: visible;
    display: block;
    text-align: left;
  }

  .hero p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .slide {
    height: clamp(280px, 42vh, 380px);
  }

  .slide-content {
    padding: 2rem 4vw;
    max-width: 100%;
  }

  .slide h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .slide p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }

  .buttons {
    gap: 0.7rem;
    flex-wrap: wrap;
  }

  .buttons a {
    padding: 0.7rem 1.3rem;
    font-size: 0.9rem;
    min-height: 44px;
    display: flex;
    margin-top: 0.25rem;
    align-items: center;
    justify-content: center;
  }

  .info-row {
    flex-direction: column;
    padding: 1.5rem 4vw;
    gap: 1rem;
  }

  .info-banner {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  .info-inner {
    padding-inline: 0;
  }

  .info-inner h2 {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

  .info-inner p {
    font-size: 0.95rem;
  }

  .project-banner {
    padding: 3rem 4vw;
    min-height: 60vh;
  }

  .project-inner {
    max-width: 100%;
  }

  .project-inner h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .project-inner p {
    font-size: 0.95rem;
    max-width: none;
    line-height: 1.7;
  }

  .team-grid {
    gap: 1.2rem;
  }

  .project-timeline {
    margin: 40px auto 30px;
  }
}

@media (max-width: 600px) {
  body {
    padding-top: 60px;
    padding-bottom: 16px;
  }

  header {
    padding: 0.9rem 4vw;
    min-height: 60px;
  }

  .brand-link {
    font-size: 1rem;
  }

  .brand-logo .brand-text {
    font-size: 1rem;
  }

  .brand-logo .logo-mark {
    width: 44px;
    height: 44px;
  }

  .brand-logo .logo-mark img {
    width: 44px;
    height: 44px;
  }

  .burger-menu {
    width: 24px;
    height: 24px;
  }

  nav, #main-nav {
    top: 60px;
  }

  nav a {
    font-size: 0.95rem;
    padding: 0.9rem 4vw;
  }

  .hero {
    padding: 1.5rem 4vw;
    min-height: auto;
    gap: 0.8rem;
  }

  .hero h2 {
    font-size: clamp(1.6rem, 9vw, 2.2rem);
    margin-bottom: 0.5rem;
  }

  .hero-title {
    white-space: normal;
    overflow: visible;
    display: block;
    text-align: left;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .slider {
    border-radius: 16px;
    margin: 0.3rem auto 0;
  }

  .slide {
    height: clamp(240px, 38vh, 320px);
  }

  .slide-content {
    padding: 1.5rem 4vw;
  }

  .slide h3 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
  }

  .slide p {
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
  }

  .buttons {
    gap: 0.6rem;
    flex-wrap: wrap;
  }

  .buttons a {
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .slider-controls button {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .slider-controls button.prev {
    left: 0.4rem;
  }

  .slider-controls button.next {
    right: 0.4rem;
  }

  .slider-indicators {
    bottom: 1.2rem;
    gap: 0.4rem;
  }

  .slider-indicators button {
    width: 8px;
    height: 8px;
  }

  .slider-indicators button.active {
    width: 20px;
  }

  .info-banner {
    padding: 1.8rem 1.2rem;
    border-radius: 14px;
  }

  .info-row {
    padding: 1rem 3vw;
    gap: 0.8rem;
  }

  .info-inner h2 {
    font-size: clamp(1.6rem, 7vw, 2rem);
    margin-bottom: 1.2rem;
  }

  .info-inner p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .project-banner {
    padding: 2.5rem 4vw;
    min-height: 50vh;
  }

  .project-inner h2 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-bottom: 1rem;
  }

  .project-inner p {
    font-size: 0.9rem;
    max-width: none;
    line-height: 1.7;
  }

  .project-tag {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    margin-bottom: 1rem;
  }

  .team-grid {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .member {
    width: 120px;
  }

  .avatar {
    width: 90px;
    height: 90px;
  }

  .project-timeline {
    margin: 30px auto 20px;
  }

  .tl-card {
    padding: 16px;
  }

  .tl-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  footer {
    padding: 1rem 4vw;
    font-size: 0.85rem;
  }
}

@media (max-width: 400px) {
  .brand-logo .brand-text {
    font-size: 0.95rem;
  }

  .brand-logo .logo-mark {
    width: 38px;
    height: 38px;
  }

  .brand-logo .logo-mark img {
    width: 38px;
    height: 38px;
  }

  header {
    padding: 0.8rem 3vw;
    min-height: 56px;
  }

  body {
    padding-top: 56px;
  }

  nav, #main-nav {
    top: 56px;
  }

  nav a {
    font-size: 0.9rem;
    padding: 0.85rem 4vw;
  }

  .hero {
    padding: 1.5rem 3vw;
  }

  .hero h2 {
    font-size: clamp(1.4rem, 10vw, 1.9rem);
  }

  .hero-title {
    white-space: normal;
    overflow: visible;
    display: block;
    text-align: left;
  }

  .slide {
    height: clamp(220px, 35vh, 300px);
  }

  .slide-content {
    padding: 1.2rem 3vw;
  }

  .slide h3 {
    font-size: 1.3rem;
  }

  .buttons a {
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
  }

  .project-banner {
    padding: 2rem 3vw;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgba(8, 10, 20, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.9);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close:hover {
  color: var(--text-main);
  background: rgba(148, 163, 184, 0.15);
  transform: rotate(90deg) scale(1.1);
}

.modal-close:active {
  transform: rotate(90deg) scale(0.95);
}

.modal-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.modal-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.modal-ip {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  word-break: break-all;
  transition: all 0.3s ease;
  cursor: text;
  user-select: all;
}

.modal-ip:hover {
  background: rgba(148, 163, 184, 0.12);
  border-color: var(--accent);
  transform: scale(1.02);
}

.modal-copy-btn {
  width: 100%;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.modal-copy-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.modal-copy-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .modal-content {
    padding: 2rem 2rem;
    max-width: 90%;
  }

  .modal-content h3 {
    font-size: 1.6rem;
  }

  .modal-ip {
    font-size: 1.2rem;
    padding: 1.1rem 1.3rem;
  }

  .modal-copy-btn {
    padding: 0.85rem 1.4rem;
    font-size: 0.95rem;
    min-height: 48px;
  }
}

@media (max-width: 600px) {
  .modal-content {
    padding: 1.8rem 1.5rem;
    max-width: 95%;
    margin: 1rem;
  }

  .modal-close {
    top: 0.8rem;
    right: 0.8rem;
    width: 36px;
    height: 36px;
    font-size: 1.6rem;
  }

  .modal-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
  }

  .modal-content p {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }

  .modal-ip {
    font-size: 1rem;
    padding: 1rem 1.1rem;
    word-break: break-all;
  }

  .modal-copy-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    min-height: 48px;
  }
}

@media (max-width: 400px) {
  .modal-content {
    padding: 1.5rem 1.2rem;
  }

  .modal-content h3 {
    font-size: 1.3rem;
  }

  .modal-ip {
    font-size: 0.95rem;
    padding: 0.9rem 1rem;
  }
}
/* Utility helpers: improve vertical rhythm, separators, cards and CTA visibility */
.section {
  padding-top: 4rem; /* 64px */
  padding-bottom: 4rem;
}

@media (max-width: 900px) {
  .section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

/* add subtle separators between stacked sections */
.section + .section {
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* Generic container: max-width + center (used e.g. with .impressum-grid) */
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Card utility for readable panels above busy backgrounds */
.card {
  background: rgba(2,6,23,0.78);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 14px 40px rgba(2,6,23,0.6);
  border: 1px solid rgba(148,163,184,0.06);
}

/* Make headings stand out a bit more */
h2, h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f8fafc;
}

/* Slightly brighter paragraph text for readability */
.info-inner p, .project-inner p, .hero p { color: rgba(238,241,246,0.92); }

/* Prominent Store CTA styling (used in header + page buttons) */
.store-cta {
  background: linear-gradient(90deg, #f6b042, #ff9a3d);
  color: #071226 !important;
  border: none !important;
  padding: .6rem 0.95rem !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(246,176,66,0.18);
  transition: transform .16s ease, box-shadow .16s ease;
  font-weight: 700;
}

.store-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(246,176,66,0.22); }
.store-cta:active { transform: translateY(0); }

/* Apply card look to slide content and project panels for better separation */
.slide-content.card, .project-inner.card { background: linear-gradient(180deg, rgba(6,8,14,0.86), rgba(6,8,14,0.72)); }

/* Slightly increase footer inner spacing for clarity */
.footer-inner { gap: 1rem; padding: 1.25rem 6vw; }

/* Visually emphasize store icon inside buttons */
.buttons a.store-cta i, nav a.store-cta i { color: rgba(0,0,0,0.12); }


/* Stylized horizontal timeline for index and roadmap */

/* Neue Timeline mit bewegendem Balken und alternierenden Stamps */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  min-height: 900px;
  max-width: 700px;
  width: 100%;
  overflow: visible;
}

.timeline-bar {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  min-height: 900px;
  background: linear-gradient(180deg, #10B981 0%, #3B82F6 50%, #e5e7eb 80%, transparent 100%);
  box-shadow: 0 0 8px 2px rgba(56,189,248,0.15);
  z-index: 20;
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  margin-bottom: 0;
  width: 32px;
  height: 32px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

@keyframes timelineBarMove {
  0% { background-position: 0 0; }
  100% { background-position: 100% 0; }
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 160px;
  margin-bottom: 30px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s, transform 0.6s;
  flex-basis: 100%;
  width: 100%;
  /* Animation optional, falls gewÃ¼nscht: timelineFadeIn 1.2s cubic-bezier(0.4,0,0.2,1); */
}

.timeline-item.left {
  flex-direction: row;
  justify-content: flex-end;
  margin-right: 0;
}
.timeline-item.right {
  flex-direction: row-reverse;
  justify-content: flex-start;
  margin-left: 0;
  min-width: 110px;
  text-align: right;
  font-weight: 600;
  color: #e5e7eb;
  font-size: 1.05rem;
  margin-right: 18px;
  margin-left: 0;
  text-align: left;
  margin-left: 18px;
  margin-right: 0;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: #0f172a;
  border: 2px solid #38bdf8;
  box-shadow: 0 0 0 6px rgba(56,189,248,0.15);
  z-index: 30;
  animation: timelineDotPulse 1.8s infinite;
  background: rgba(15,23,42,0.85);
  border-radius: 8px;
  padding: 18px 22px;
  box-shadow: 0 2px 12px rgba(56,189,248,0.08);
  margin-left: 24px;
  margin-right: 0;
  max-width: 320px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-right: 24px;
  margin-left: 0;
}

.timeline-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: #f9fafb;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

@keyframes timelineFadeIn {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes timelineDotPulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(56,189,248,0.15); }
  50% { box-shadow: 0 0 0 12px rgba(56,189,248,0.25); }
}

.buttons-roadmap-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.9rem;
  background: rgba(15,23,42,0.95);
}

.buttons-roadmap-link:hover {
  background: rgba(30,64,175,0.6);
  border-color: rgba(191,219,254,0.95);
}

/* Subpage fade-up animation: applied via body.subpage-page */
.subpage-page main {
  opacity: 0;
  transform: translateY(12px);
  animation: subpage-fade-up 0.3s ease-out forwards;
}

@keyframes subpage-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating login icon at center-left that follows scroll */
.floating-login {
  position: fixed;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  z-index: 2200;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at 30% 0%, rgba(148, 163, 184, 0.35), rgba(15, 23, 42, 0.95));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  opacity: 0.95;
}

.floating-login i {
  font-size: 1.1rem;
}

.floating-login:hover {
  transform: translateY(-50%) translateX(3px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.95);
  border-color: rgba(248, 250, 252, 0.8);
  background: radial-gradient(circle at 30% 0%, rgba(248, 250, 252, 0.5), rgba(15, 23, 42, 0.98));
  opacity: 1;
}

.floating-login:active {
  transform: translateY(-50%) translateX(1px) scale(0.97);
}

@media (max-width: 768px) {
  .floating-login {
    width: 38px;
    height: 38px;
    left: 0.5rem;
  }
}

/* ============================= */
/*   NexGames Cookie Button      */
/* ============================= */
.nexgames-cookie-btn {
  position: fixed;
  bottom: 10rem;
  right: 1.2rem;
  z-index: 2500;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(139,92,246,0.5);
  background: rgba(15,23,42,0.9);
  color: #fbbf24;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.nexgames-cookie-btn:hover {
  transform: scale(1.1);
  border-color: #8b5cf6;
  box-shadow: 0 0 16px rgba(139,92,246,0.35);
}
.nexgames-cookie-btn:active {
  transform: scale(0.95);
}

/* Cookie Popup */
.nexgames-cookie-popup {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  transition: opacity 0.25s;
}
.nexgames-cookie-popup.hidden {
  opacity: 0;
  pointer-events: none;
}
.nexgames-cookie-popup-inner {
  position: relative;
  background: rgba(15,23,42,0.98);
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  max-width: 380px;
  width: 100%;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.nexgames-cookie-popup-inner h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nexgames-cookie-popup-inner h3 i {
  color: #a78bfa;
}
.nexgames-cookie-popup-inner p {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 0.8rem;
}
.nexgames-cookie-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  background: none;
  border: none;
  color: #64748b;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.2rem;
  transition: color 0.15s;
}
.nexgames-cookie-close:hover {
  color: #e2e8f0;
}
.nexgames-cookie-status {
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
}
.nexgames-status-ok { color: #4ade80; }
.nexgames-status-ok i { margin-right: 0.3rem; }
.nexgames-status-no { color: #f87171; }
.nexgames-status-no i { margin-right: 0.3rem; }
.nexgames-status-pending { color: #fbbf24; }
.nexgames-status-pending i { margin-right: 0.3rem; }
.nexgames-cookie-actions {
  display: flex;
  gap: 0.5rem;
}
.nexgames-cookie-accept,
.nexgames-cookie-decline {
  flex: 1;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid;
  transition: background 0.15s;
}
.nexgames-cookie-accept {
  background: rgba(139,92,246,0.25);
  border-color: #8b5cf6;
  color: #e2e8f0;
}
.nexgames-cookie-accept:hover {
  background: rgba(139,92,246,0.45);
}
.nexgames-cookie-decline {
  background: transparent;
  border-color: rgba(148,163,184,0.4);
  color: #94a3b8;
}
.nexgames-cookie-decline:hover {
  background: rgba(148,163,184,0.1);
}

@media (max-width: 500px) {
  .nexgames-cookie-btn {
    width: 38px;
    height: 38px;
    bottom: 9rem;
    right: 0.8rem;
    font-size: 1rem;
  }
  .nexgames-cookie-popup-inner {
    margin-bottom: 0;
  }
}


