/* ==========================================================================
   NoversityCraft — Modernes Dark Theme & Style System
   ========================================================================== */

:root {
  /* Farbpalette (abgeleitet vom Logo) */
  --bg-deep: #080912;
  --bg-surface: rgba(15, 18, 35, 0.75);
  --bg-surface-hover: rgba(22, 27, 52, 0.85);
  --bg-surface-solid: #0f1223;

  /* Neon- & Kristall-Akzente */
  --cyan-core: #00d2ff;
  --cyan-bright: #38bdf8;
  --cyan-glow: rgba(0, 210, 255, 0.25);

  --purple-core: #8b5cf6;
  --purple-deep: #6366f1;
  --purple-glow: rgba(139, 92, 246, 0.3);

  --magenta-core: #d946ef;
  --magenta-glow: rgba(217, 70, 239, 0.25);

  --gold-core: #f59e0b;
  --gold-bright: #fbbf24;
  --gold-glow: rgba(245, 158, 11, 0.25);

  --status-green: #10b981;
  --status-green-glow: rgba(16, 185, 129, 0.4);
  --status-red: #ef4444;

  /* Typografie & Linien */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-highlight: rgba(139, 92, 246, 0.35);

  /* Schatten & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 12px 35px -8px rgba(0, 0, 0, 0.6), 0 0 20px -3px var(--purple-glow);
}

/* Reset & Basis-Layout */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Hintergrund mit Blur-Screenshot & atmosphärischem Gradienten */
.bg-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(0, 210, 255, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, rgba(8, 9, 18, 0.72) 0%, rgba(8, 9, 18, 0.88) 60%, rgba(8, 9, 18, 0.98) 100%),
    url('assets/bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
  filter: contrast(105%) brightness(95%);
}

/* Hintergrund-Partikel Canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.site-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--cyan-glow));
}

.nav-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-title span {
  background: linear-gradient(135deg, var(--gold-bright), #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.server-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 18, 35, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-online {
  background-color: var(--status-green);
  box-shadow: 0 0 10px var(--status-green-glow), 0 0 4px var(--status-green);
  animation: pulse-dot 2s infinite ease-in-out;
}

.dot-offline {
  background-color: var(--status-red);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

.dot-loading {
  background-color: var(--gold-bright);
  box-shadow: 0 0 6px var(--gold-glow);
  animation: pulse-dot 1.2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

.btn-nav-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  background: #5865f2;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.35);
}

.btn-nav-discord:hover {
  background: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(88, 101, 242, 0.45);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0 3.5rem;
}

.logo-container {
  position: relative;
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.35) 0%, rgba(139, 92, 246, 0.25) 45%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  animation: pulse-ambient 4s infinite alternate ease-in-out;
}

@keyframes pulse-ambient {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.1); opacity: 1; }
}

.hero-logo {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: 90vw;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.65));
  animation: float-logo 5s ease-in-out infinite;
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.hero-text {
  max-width: 680px;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan-bright) 0%, var(--purple-core) 50%, var(--magenta-core) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   IP Copy Card
   ========================================================================== */
.ip-card-wrapper {
  width: 100%;
  max-width: 560px;
  margin-bottom: 1.5rem;
}

.ip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(20, 25, 48, 0.85) 0%, rgba(13, 16, 34, 0.9) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  outline: none;
}

.ip-card:hover, .ip-card:focus-visible {
  border-color: var(--cyan-bright);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), 0 0 30px var(--cyan-glow);
}

.ip-card:active {
  transform: translateY(0);
}

.ip-left {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  text-align: left;
}

.ip-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(0, 210, 255, 0.12);
  color: var(--cyan-core);
  border: 1px solid rgba(0, 210, 255, 0.25);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ip-card:hover .ip-icon-badge {
  transform: scale(1.05);
  background: rgba(0, 210, 255, 0.2);
}

.ip-meta {
  display: flex;
  flex-direction: column;
}

.ip-header-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.ip-caption {
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cyan-bright);
}

.version-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.675rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.4);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.ip-address {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

/* Neuer eleganter Kopier-Button */
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.16) 0%, rgba(139, 92, 246, 0.26) 100%);
  color: #ffffff;
  border: 1px solid rgba(0, 210, 255, 0.35);
  backdrop-filter: blur(8px);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  position: relative;
  user-select: none;
}

.btn-copy:hover {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.28) 0%, rgba(139, 92, 246, 0.42) 100%);
  border-color: var(--cyan-bright);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

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

.copy-btn-text {
  transition: opacity 0.15s ease;
}

.copy-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.copy-btn-icon .icon-copy {
  color: var(--cyan-bright);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.copy-btn-icon .icon-check {
  display: none;
  color: #ffffff;
}

/* Zustand bei Klick / erfolgreichem Kopieren */
.ip-card.copied {
  border-color: var(--status-green);
  box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.6), 0 0 25px var(--status-green-glow);
}

.ip-card.copied .btn-copy {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #34d399;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: scale(1.02);
}

.ip-card.copied .icon-copy {
  display: none;
}

.ip-card.copied .icon-check {
  display: block;
  animation: checkmark-pop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes checkmark-pop {
  0% {
    transform: scale(0) rotate(-25deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.25) rotate(4deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.copy-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ==========================================================================
   Live Server Status Box
   ========================================================================== */
.live-status-box {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.status-meta-icon {
  color: var(--purple-core);
  flex-shrink: 0;
}

.status-meta-text {
  font-size: 0.85rem;
}

.status-meta-text strong {
  color: var(--cyan-bright);
}

.status-divider {
  width: 1px;
  height: 16px;
  background: var(--border-subtle);
}

.btn-status-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  outline: none;
}

.btn-status-detail:hover {
  background: rgba(139, 92, 246, 0.3);
  border-color: var(--cyan-bright);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-status-detail svg {
  color: var(--cyan-bright);
}

.btn-refresh-status {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.btn-refresh-status:hover {
  color: var(--cyan-bright);
  background: rgba(255, 255, 255, 0.08);
}

.btn-refresh-status.spinning svg {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Server MOTD Banner
   ========================================================================== */
.motd-wrapper {
  max-width: 560px;
  width: 100%;
  margin: -0.5rem auto 2rem;
  text-align: center;
  position: relative;
}

.motd-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
}

.motd-box {
  background: rgba(11, 14, 28, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.5;
  white-space: pre-line;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 158, 11, 0.1);
}

/* ==========================================================================
   Hero Actions
   ========================================================================== */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #5865f2;
  color: #ffffff;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.4);
}

.btn-primary-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.55);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

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

.feature-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: left;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-highlight), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  background: var(--bg-surface-hover);
  box-shadow: var(--shadow-card);
}

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

.feature-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.feature-icon-wrapper.cyan {
  background: rgba(0, 210, 255, 0.12);
  color: var(--cyan-core);
  border: 1px solid rgba(0, 210, 255, 0.25);
}

.feature-icon-wrapper.purple {
  background: rgba(139, 92, 246, 0.12);
  color: var(--purple-core);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.feature-icon-wrapper.gold {
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold-bright);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   How to Join Section
   ========================================================================== */
.join-section {
  padding: 2.5rem 0;
}

.join-card {
  background: linear-gradient(180deg, rgba(16, 20, 42, 0.8) 0%, rgba(11, 14, 28, 0.9) 100%);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

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

.step-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease;
}

.step-box:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 210, 255, 0.3);
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-core), var(--purple-core));
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px var(--cyan-glow);
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.inline-ip {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0, 210, 255, 0.15);
  color: var(--cyan-bright);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-logo {
  height: 28px;
  width: auto;
}

.footer-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 600px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  margin: 0.5rem 0;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--cyan-bright);
}

.footer-separator {
  color: var(--text-muted);
}

.footer-btn-copy {
  background: none;
  border: none;
  color: var(--cyan-bright);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
  padding: 0;
}

.footer-btn-copy:hover {
  text-decoration: underline;
}

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

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  background: rgba(16, 20, 42, 0.95);
  border: 1px solid var(--status-green);
  border-radius: var(--radius-full);
  padding: 0.75rem 1.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--status-green-glow);
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notification.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.toast-icon {
  color: var(--status-green);
  flex-shrink: 0;
}

/* ==========================================================================
   GitHub-Style Status & Uptime Modal
   ========================================================================== */
.status-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.status-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.status-modal {
  background: #0d1022;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(139, 92, 246, 0.2);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.status-modal-backdrop.active .status-modal {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 19, 39, 0.7);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.modal-brand-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--cyan-core);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-btn-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Modal Body */
.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Global Operational Banner */
.uptime-global-banner {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.uptime-global-banner.status-all-operational {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(5, 150, 105, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.uptime-global-banner.status-degraded {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16) 0%, rgba(185, 28, 28, 0.08) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
}

.global-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: var(--status-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.uptime-global-banner.status-degraded .global-banner-icon {
  background: rgba(239, 68, 68, 0.2);
  color: var(--status-red);
}

.global-banner-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.global-banner-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Metrics 4-Grid */
.uptime-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.metric-label {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-value {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.metric-value.text-green { color: var(--status-green); }
.metric-value.text-cyan { color: var(--cyan-bright); }
.metric-value.text-purple { color: #c4b5fd; }
.metric-value.text-gold { color: var(--gold-bright); }

/* System Components */
.components-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.components-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.uptime-legend {
  font-size: 0.725rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.green {
  background: var(--status-green);
  box-shadow: 0 0 6px var(--status-green-glow);
}

.legend-dot.yellow {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.legend-dot.red {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

.legend-dot.gray {
  background: rgba(255, 255, 255, 0.25);
}

.component-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.component-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.2s ease;
}

.component-item:hover {
  border-color: rgba(139, 92, 246, 0.35);
}

.component-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.component-title-wrap {
  display: flex;
  flex-direction: column;
}

.component-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.component-sub {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.component-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.component-badge.operational {
  background: rgba(16, 185, 129, 0.15);
  color: var(--status-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.component-badge.degraded {
  background: rgba(239, 68, 68, 0.15);
  color: var(--status-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* GitHub-Style Segmented Uptime Bars */
.uptime-bars-container {
  display: flex;
  gap: 3px;
  height: 28px;
  align-items: center;
  position: relative;
}

.uptime-bar-segment {
  flex: 1;
  height: 100%;
  border-radius: 3px;
  background: #10b981;
  transition: transform 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
  position: relative;
}

.uptime-bar-segment:hover {
  transform: scaleY(1.2);
  filter: brightness(1.25);
}

.uptime-bar-segment.online {
  background: #10b981;
}

.uptime-bar-segment.degraded {
  background: #f59e0b;
}

.uptime-bar-segment.down {
  background: #ef4444;
}

.uptime-bar-segment.no-data {
  background: rgba(255, 255, 255, 0.08);
  cursor: default;
}

.uptime-bar-segment.no-data:hover {
  transform: none;
  filter: none;
  background: rgba(255, 255, 255, 0.14);
}

.uptime-bar-segment.pulse-today {
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulse-bar 2s infinite ease-in-out;
}

@keyframes pulse-bar {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.uptime-bars-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Incidents Section */
.incidents-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.incidents-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.incidents-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.incident-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.incident-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
}

.incident-item.active-outage {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
}

.incident-item.resolved {
  border-left: 3px solid var(--status-green);
}

.incident-status-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.incident-status-indicator.green {
  background: var(--status-green);
  box-shadow: 0 0 8px var(--status-green-glow);
}

.incident-status-indicator.red {
  background: var(--status-red);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
  animation: pulse-dot 1.2s infinite ease-in-out;
}

.incident-status-indicator.yellow {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.incident-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
}

.incident-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.incident-date {
  font-size: 0.825rem;
  font-weight: 700;
  color: #ffffff;
}

.incident-badge-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.incident-badge-tag.tag-active {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.incident-badge-tag.tag-resolved {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.incident-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.incident-meta {
  font-size: 0.725rem;
  color: var(--text-muted);
}

/* Modal Footer */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(15, 19, 39, 0.7);
}

.modal-last-check {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-modal-refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--cyan-bright);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-modal-refresh:hover {
  background: rgba(0, 210, 255, 0.22);
  border-color: var(--cyan-core);
  color: #ffffff;
}

.btn-modal-refresh.spinning svg {
  animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   Mobile-First & Responsive Optimierungen
   ========================================================================== */

/* Touch-Optimierung für alle mobilen Browser */
@media (hover: none) and (pointer: coarse) {
  * {
    -webkit-tap-highlight-color: transparent;
  }
}

@media (max-width: 900px) {
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-title {
    font-size: 1.95rem;
  }
}

@media (max-width: 640px) {
  .site-wrapper {
    padding: 0 1rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 1.5rem));
  }

  /* Header auf Smartphones: Kompakt & sauber */
  .navbar {
    padding: 0.85rem 0;
    margin-bottom: 1.25rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
  }

  .nav-brand {
    gap: 0.5rem;
  }

  .nav-logo {
    height: 34px;
  }

  .nav-title {
    font-size: 1.1rem;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .server-pill {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
  }

  .btn-nav-discord {
    padding: 0.38rem 0.75rem;
    font-size: 0.8rem;
  }

  /* Hero Bereich auf Handys */
  .hero-section {
    padding: 0.5rem 0 2rem;
  }

  .logo-container {
    margin-bottom: 1.25rem;
  }

  .hero-logo {
    max-width: 290px;
    width: 82vw;
  }

  .logo-glow {
    width: 180px;
    height: 180px;
    filter: blur(28px);
  }

  .hero-title {
    font-size: 1.6rem;
    line-height: 1.25;
    padding: 0 0.25rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    padding: 0 0.5rem;
    margin-bottom: 1.5rem;
  }

  /* IP Kopier-Karte auf Handys */
  .ip-card-wrapper {
    margin-bottom: 1.25rem;
  }

  .ip-card {
    flex-direction: column;
    padding: 1.15rem 1rem;
    gap: 1rem;
  }

  .ip-left {
    flex-direction: column;
    text-align: center;
    width: 100%;
    gap: 0.5rem;
  }

  .ip-icon-badge {
    margin: 0 auto 0.25rem;
    width: 40px;
    height: 40px;
  }

  .ip-header-line {
    justify-content: center;
  }

  .ip-address {
    font-size: 1.35rem;
    letter-spacing: 0.02em;
  }

  .ip-action {
    width: 100%;
  }

  .btn-copy {
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
    justify-content: center;
  }

  /* Status-Box als modulares Widget */
  .live-status-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 0.5rem;
    border-radius: var(--radius-md);
    padding: 0.9rem;
    width: 100%;
    max-width: 100%;
    align-items: center;
  }

  .status-divider {
    display: none;
  }

  .status-item {
    justify-content: center;
  }

  .btn-status-detail {
    grid-column: 1 / 2;
    width: 100%;
    min-height: 38px;
    justify-content: center;
  }

  .btn-refresh-status {
    grid-column: 2 / 3;
    width: 100%;
    min-height: 38px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
  }

  /* MOTD auf Handys */
  .motd-wrapper {
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
  }

  .motd-box {
    font-size: 0.775rem;
    padding: 0.65rem 0.9rem;
  }

  /* Hero Buttons */
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .btn-primary-discord,
  .btn-secondary {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    font-size: 0.95rem;
  }

  /* Features & Beitrittsanleitung */
  .feature-card {
    padding: 1.35rem 1.15rem;
  }

  .join-card {
    padding: 1.75rem 1.15rem;
  }

  .section-heading {
    font-size: 1.45rem;
    margin-bottom: 1.5rem;
  }

  /* GitHub-Style Uptime Modal als native Mobile Bottom-Sheet Drawer */
  .status-modal-backdrop {
    padding: 0;
    align-items: flex-end; /* Fährt von unten hoch wie eine App */
  }

  .status-modal {
    width: 100%;
    max-width: 100%;
    height: 92vh;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    transform: translateY(100%);
  }

  .status-modal-backdrop.active .status-modal {
    transform: translateY(0);
  }

  .modal-header {
    position: relative;
    padding: 1.35rem 1.15rem 1rem;
  }

  /* Drag-Handle Indikator oben */
  .modal-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.22);
  }

  .modal-body {
    padding: 1.1rem;
    gap: 1.15rem;
  }

  .uptime-global-banner {
    padding: 0.9rem 1rem;
    gap: 0.85rem;
  }

  .global-banner-icon {
    width: 38px;
    height: 38px;
  }

  .global-banner-title {
    font-size: 0.95rem;
  }

  .global-banner-desc {
    font-size: 0.775rem;
  }

  .uptime-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .metric-card {
    padding: 0.75rem 0.85rem;
  }

  .metric-label {
    font-size: 0.675rem;
  }

  .metric-value {
    font-size: 1.05rem;
  }

  .uptime-bars-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 2px;
    padding-bottom: 2px;
  }

  .uptime-bar-segment {
    min-width: 5px;
  }

  .uptime-legend {
    gap: 0.45rem 0.65rem;
    font-size: 0.675rem;
  }

  .modal-footer {
    padding: 0.85rem 1.15rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
    flex-direction: column;
    gap: 0.6rem;
  }

  .btn-modal-refresh {
    width: 100%;
    justify-content: center;
    min-height: 40px;
  }

  /* Toast Notification */
  .toast-notification {
    bottom: max(1.25rem, env(safe-area-inset-bottom, 1.25rem));
    width: 90%;
    max-width: 360px;
    padding: 0.7rem 1.1rem;
    text-align: center;
  }

  .toast-content {
    justify-content: center;
    font-size: 0.825rem;
  }
}

@media (max-width: 380px) {
  .ip-address {
    font-size: 1.15rem;
  }

  .hero-title {
    font-size: 1.45rem;
  }

  .nav-title {
    display: none;
  }
}
