/* ===== Allgemeines Layout ===== */

:root {
  --bg-main: radial-gradient(circle at top, #1e293b 0, #020617 55%, #000 100%);
  --glass-bg: rgba(15, 23, 42, 0.78);
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.2);
  --accent-strong: #0ea5e9;
  --discord: #5865f2;
  --text-main: #e5e7eb;
  --text-muted: #94a3b8;
  --border-soft: rgba(148, 163, 184, 0.3);
  --danger: #f97373;
  --success: #4ade80;
  --shadow-strong: 0 20px 60px rgba(15, 23, 42, 0.9);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 999px;
  --transition-fast: 0.18s ease-out;
  --transition-slow: 0.35s ease;
}

html, body {
    height: 100%;
}

body.with-snow {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body.with-snow {
  min-height: 100vh;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ===== Snow Effect ===== */

body.with-snow::before,
body.with-snow::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,0.7) 50%, transparent 50%),
    radial-gradient(2px 2px at 80% 0, rgba(255,255,255,0.5) 50%, transparent 50%),
    radial-gradient(3px 3px at 0 50%, rgba(255,255,255,0.4) 50%, transparent 50%),
    radial-gradient(3px 3px at 100% 60%, rgba(255,255,255,0.6) 50%, transparent 50%);
  background-size: 220px 220px;
  animation: snowFall 18s linear infinite;
  opacity: 0.5;
  z-index: -1;
}

body.with-snow::after {
  animation-duration: 26s;
  animation-direction: reverse;
  opacity: 0.35;
}

@keyframes snowFall {
  from {
    transform: translateY(-10%);
  }
  to {
    transform: translateY(10%);
  }
}

/* ===== Container & Sections ===== */

.container {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
}

.page {
  padding-top: 90px;
}

.section {
  padding: 3rem 0;
}

.section-cta {
  background: radial-gradient(circle at top, rgba(56,189,248,0.06) 0, transparent 60%);
}

.section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.section-title span {
  color: var(--accent);
}

.section-subtitle {
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 640px;
}

/* ===== Header / Navigation ===== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 72px;
  display: flex;
  align-items: center;
  z-index: 20;
  backdrop-filter: blur(22px);
  background: linear-gradient(to bottom, rgba(15,23,42,0.92), rgba(15,23,42,0.55), transparent);
  border-bottom: 1px solid rgba(148,163,184,0.35);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-pixel {
  font-family: "Press Start 2P", system-ui;
  font-size: 0.85rem;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #111827;
  padding: 0.55rem 0.7rem;
  border-radius: 0.25rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.logo-text {
  font-weight: 600;
  font-size: 1rem;
  color: #e5e7eb;
}

.logo-text span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link {
  position: relative;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 999px;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  inset: auto 10% -3px 10%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #a855f7);
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.nav-link:hover {
  color: #e5e7eb;
  background: rgba(15,23,42,0.72);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #e5e7eb;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.55);
}

.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  color: #e5e7eb;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

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

.btn-primary {
  background: radial-gradient(circle at top left, #38bdf8, #0ea5e9);
  border-color: rgba(56,189,248,0.5);
  box-shadow: 0 14px 35px rgba(56,189,248,0.35);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 40px rgba(56,189,248,0.55);
}

.btn-ghost {
  background: rgba(15,23,42,0.85);
  border-color: rgba(148,163,184,0.4);
}

.btn-ghost:hover {
  background: rgba(15,23,42,1);
  border-color: rgba(148,163,184,0.7);
}

.btn-discord {
  background: linear-gradient(135deg, var(--discord), #7c8cff);
  border-color: rgba(148,163,184,0.7);
  box-shadow: 0 12px 32px rgba(88,101,242,0.45);
}

.btn-discord:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(88,101,242,0.7);
}

/* ===== Hero ===== */

.hero {
  padding: 3.25rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  background: radial-gradient(circle at top left, rgba(56,189,248,0.24), rgba(15,23,42,0.9));
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 3.4vw, 3.1rem);
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.hero h1 span {
  color: var(--accent);
}

.hero-subtitle {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.meta-box {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.95);
  display: flex;
  flex-direction: column;
  min-width: 120px;
}

.meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.meta-value {
  font-size: 0.9rem;
  font-weight: 500;
}

.meta-value.online {
  color: var(--success);
}

/* Hero Right */

.hero-art {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero-card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(56,189,248,0.25), rgba(15,23,42,0.98));
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(148,163,184,0.5);
  overflow: hidden;
}

.hero-card-header {
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(148,163,184,0.4);
  background: linear-gradient(to right, rgba(15,23,42,0.98), rgba(15,23,42,0.9));
}

.hero-card-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.hero-card-header .dot.red { background:#f97373; }
.hero-card-header .dot.yellow { background:#facc15; }
.hero-card-header .dot.green { background:#4ade80; }

.hero-card-title {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-card-body {
  padding: 1.1rem 1.1rem 1.05rem;
}

.hero-ip-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.hero-ip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: rgba(15,23,42,0.96);
  border: 1px solid rgba(148,163,184,0.6);
  font-family: "Press Start 2P", system-ui;
  font-size: 0.63rem;
  letter-spacing: 0.06em;
}

.ip-copy {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 999px;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.ip-copy:hover {
  background: rgba(148,163,184,0.25);
  color: #e5e7eb;
  transform: translateY(-1px);
}

.hero-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
}

.hero-list li {
  color: var(--text-muted);
}

.hero-list i {
  margin-right: 0.45rem;
  color: var(--accent);
}

/* Preview Slider */

.hero-preview {
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.98), rgba(15,23,42,0.95));
  border: 1px solid rgba(148,163,184,0.4);
  box-shadow: 0 16px 40px rgba(15,23,42,0.9);
}

.hero-preview-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.hero-preview-label i {
  color: var(--accent);
}

.hero-preview-slider {
  position: relative;
  height: 210px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at center, #0f172a, #020617);
}

.hero-preview-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 8s ease-out;
}

.hero-preview-slider .slide.active {
  opacity: 1;
  transform: scale(1);
}

/* ===== Features ===== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.5rem;
}

.feature-card {
  border-radius: var(--radius-md);
  padding: 1.3rem 1.1rem;
  background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(15,23,42,0.95));
  border: 1px solid rgba(148,163,184,0.5);
  box-shadow: 0 16px 40px rgba(15,23,42,0.7);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(56,189,248,0.11), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,1);
  border: 1px solid rgba(148,163,184,0.6);
  margin-bottom: 0.8rem;
}

.feature-icon i {
  color: var(--accent);
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== CTA ===== */

.section-cta .cta-inner {
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.4rem;
  border: 1px solid rgba(148,163,184,0.5);
  background: linear-gradient(135deg, rgba(15,23,42,0.98), rgba(37,99,235,0.35));
  box-shadow: var(--shadow-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.section-cta h2 {
  margin: 0 0 0.3rem;
  font-size: 1.5rem;
}

.section-cta p {
  margin: 0;
  color: var(--text-muted);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ===== Regelwerk ===== */

.page-title {
  font-size: clamp(1.9rem, 2.6vw, 2.2rem);
  margin: 0 0 0.5rem;
}

.page-title span {
  color: var(--accent);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.rule-card {
  padding: 1.2rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(15,23,42,0.96);
  border: 1px solid rgba(148,163,184,0.5);
  box-shadow: 0 14px 40px rgba(15,23,42,0.9);
}

.rule-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}

.rule-card h2 i {
  color: var(--accent);
  margin-right: 0.4rem;
}

.rule-card ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.rules-note {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(15,23,42,0.96);
  border: 1px dashed rgba(148,163,184,0.7);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.rules-note i {
  margin-top: 0.15rem;
  color: var(--accent);
}

/* ===== Staff ===== */

.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.4rem;
}

.staff-card {
  display: grid;
  grid-template-columns: 130px minmax(0,1fr);
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(15,23,42,0.96);
  border: 1px solid rgba(148,163,184,0.5);
  box-shadow: 0 14px 40px rgba(15,23,42,0.9);
}

.staff-avatar img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.6);
  background: #020617;
}

.staff-body h2 {
  margin: 0 0 0.2rem;
}

.staff-role {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
}

.staff-info {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.staff-info i {
  margin-right: 0.4rem;
  color: var(--accent);
}

/* ===== Leaks ===== */

.leaks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.4rem;
}

.leak-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(15,23,42,0.96);
  border: 1px solid rgba(148,163,184,0.5);
  box-shadow: 0 16px 40px rgba(15,23,42,0.9);
  display: flex;
  flex-direction: column;
}

.leak-image {
  height: 160px;
  background-size: cover;
  background-position: center;
}

.leak-body {
  padding: 0.85rem 1rem 1rem;
}

.leak-body h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.leak-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Dynmap ===== */

.dynmap-info {
  margin-bottom: 0.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px dashed rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.98);
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ===== Footer ===== */

.site-footer {
  padding: 1.6rem 0 2rem;
  border-top: 1px solid rgba(148,163,184,0.35);
  margin-top: 1.5rem;
  background: radial-gradient(circle at top, rgba(15,23,42,0.9), rgba(15,23,42,0.97));
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-logo {
  margin: 0 0 0.2rem;
  font-weight: 600;
}

.footer-logo span {
  color: var(--accent);
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.socials {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  background: rgba(15,23,42,1);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.socials a:hover {
  color: #e5e7eb;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15,23,42,0.9);
}

/* ===== Animations / Scroll Effects ===== */

.fade-in {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeIn 0.8s ease-out forwards;
}

.slide-up {
  opacity: 0;
  transform: translateY(14px);
  animation: slideUp 0.9s ease-out forwards;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(18px);
  animation: slideRight 0.9s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== Responsive ===== */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .hero-art {
    order: -1;
  }

  .feature-grid,
  .rules-grid,
  .staff-grid,
  .leaks-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .staff-card {
    grid-template-columns: minmax(0,1fr);
  }

  .section-cta .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: auto;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.3rem;
    padding-bottom: 0.35rem;
  }

  .main-nav {
    order: 2;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .page {
    padding-top: 110px;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-preview-slider {
    height: 190px;
  }

  .section {
    padding: 2.3rem 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* EVENT-KARTEN FIX – gleiche Höhe + Countdown unten fixieren */
.event-card {
    position: relative;
    padding-bottom: 80px; /* Platz für Countdown */
    min-height: 520px; /* gleiche Höhe für alle Karten */
    display: flex;
    flex-direction: column;
}

.countdown {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 10px 15px;
    background: rgba(0,0,0,0.35);
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}
