/**
 * PLU PREMIUM MASTER CSS
 * Einheitliche Premium-Styles für alle Seiten
 */

/* ==========================================
   1. AURORA BACKGROUND
   ========================================== */
.aurora-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: auroraFloat 20s ease-in-out infinite;
}

.aurora-blob-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.4), rgba(57, 208, 216, 0.3));
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.aurora-blob-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(236, 72, 153, 0.25));
  bottom: -150px;
  right: -150px;
  animation-delay: -7s;
}

.aurora-blob-3 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(245, 158, 11, 0.25));
  top: 40%;
  left: 60%;
  animation-delay: -14s;
}

@keyframes auroraFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-40px, 30px) scale(0.9); }
}

/* ==========================================
   2. PARTICLES CANVAS
   ========================================== */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* ==========================================
   3. CUSTOM CURSOR
   ========================================== */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
  box-shadow: 0 0 10px var(--accent-primary);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent-primary);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}

.cursor-outline.cursor-hover {
  width: 60px;
  height: 60px;
  opacity: 0.3;
  border-color: var(--accent-cyan);
}

@media (pointer: coarse) {
  .cursor-dot,
  .cursor-outline {
    display: none !important;
  }
}

/* ==========================================
   4. SCROLL PROGRESS
   ========================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-cyan), var(--accent-violet));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 10000;
}

/* ==========================================
   5. 3D TILT CARDS
   ========================================== */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tilt-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
}

.tilt-card:hover::after {
  opacity: 1;
}

/* ==========================================
   6. MAGNETIC BUTTONS
   ========================================== */
.btn-magnetic {
  position: relative;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-magnetic::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-violet));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

.btn-magnetic:hover::before {
  opacity: 0.5;
}

/* ==========================================
   7. REVEAL ANIMATIONS
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ==========================================
   8. PREMIUM HERO OVERLAY
   ========================================== */
.page-header-hero {
  position: relative;
  overflow: hidden;
}

.page-header-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(88, 166, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================
   9. GLASSMORPHISM ENHANCEMENT
   ========================================== */
.glass-card {
  background: rgba(13, 17, 23, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ==========================================
   10. GRADIENT BORDERS
   ========================================== */
.gradient-border {
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-violet), var(--accent-pink));
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ==========================================
   11. FLOATING ANIMATION
   ========================================== */
.float-animation {
  animation: float 6s ease-in-out infinite;
}

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

/* ==========================================
   12. PREMIUM TEXT SELECTION
   ========================================== */
::selection {
  background: rgba(88, 166, 255, 0.3);
  color: white;
}

/* ==========================================
   MOBILE OPTIMIZATIONS
   ========================================== */
@media (max-width: 768px) {
  .aurora-blob {
    filter: blur(100px);
    opacity: 0.3;
  }
  
  .aurora-blob-1 { width: 400px; height: 400px; }
  .aurora-blob-2 { width: 300px; height: 300px; }
  .aurora-blob-3 { width: 250px; height: 250px; }
  
  .tilt-card {
    transform: none !important;
  }
  
  .tilt-card:hover {
    transform: translateY(-4px) !important;
  }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  .aurora-blob,
  .float-animation {
    animation: none;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================
   LIGHT MODE OVERRIDES
   ========================================== */

.light-theme .glass-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(88, 166, 255, 0.15);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.light-theme .glass-card:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

/* Aurora im Light Mode subtiler */
.light-theme .aurora-blob {
  opacity: 0.25;
  filter: blur(100px);
}

.light-theme .aurora-blob-1 {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.3), rgba(57, 208, 216, 0.2));
}

.light-theme .aurora-blob-2 {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.15));
}

.light-theme .aurora-blob-3 {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(245, 158, 11, 0.15));
}

/* Particles im Light Mode dunkler */
.light-theme #particles-canvas {
  opacity: 0.6;
}

/* Gradient Border im Light Mode */
.light-theme .gradient-border::before {
  background: linear-gradient(135deg, 
    rgba(88, 166, 255, 0.6), 
    rgba(139, 92, 246, 0.5), 
    rgba(236, 72, 153, 0.4)
  );
}

/* Selection im Light Mode */
.light-theme ::selection {
  background: rgba(88, 166, 255, 0.25);
  color: var(--text-primary);
}

/* Content Block - Einheitliches Rounding */
.content-block {
  border-radius: 20px;
  padding: 32px;
}

@media (max-width: 768px) {
  .content-block {
    border-radius: 16px;
    padding: 24px;
  }
}

.light-theme .content-block {
  border-radius: 20px;
}

.light-theme .content-block h2 {
  color: var(--text-primary);
}

/* Timeline im Light Mode */
.light-theme .mindset-timeline-line,
.light-theme .pledge-timeline-line {
  opacity: 0.6;
}

.light-theme .mindset-icon,
.light-theme .pledge-icon {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile Anpassungen Light Mode */
@media (max-width: 768px) {
  .light-theme .glass-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(88, 166, 255, 0.2);
  }
  
  .light-theme .aurora-blob {
    opacity: 0.15;
  }
}

/* Timeline-Regeln sind in premium.css definiert - keine Duplikate hier um Konflikte zu vermeiden */

/* ==========================================================================
   MOBILE PADDING FIX - Container-Inflation beheben
   ========================================================================== */

@media (max-width: 768px) {
  /* Section-Inner Padding reduzieren */
  .section-inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  /* Content-Body Padding entfernen */
  .content-body {
    padding: 0 !important;
  }
  
  /* Content-Block Padding reduzieren */
  .content-block {
    padding: 20px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* Timeline spezifisch - volle Breite nutzen */
  .mindset-timeline,
  .pledge-timeline {
    max-width: 100% !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
  
  .mindset-timeline-line,
  .pledge-timeline-line {
    left: 16px !important;
  }
  
  .mindset-schritt,
  .pledge-schritt {
    padding-left: 0 !important;
    margin-left: 0 !important;
    gap: 10px !important;
  }
  
  .mindset-icon,
  .pledge-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
    flex: 0 0 36px !important;
  }
  
  /* Charter-Cards im Timeline-Kontext - kompaktes Padding */
  .mindset-schritt .charter-card,
  .pledge-schritt .charter-card {
    padding: 12px !important;
    margin-left: 0 !important;
    flex: 1 !important;
  }
  
  /* Glass-Cards Padding reduzieren */
  .glass-card {
    padding: 20px !important;
  }
  
  /* Timeline Card Text */
  .mindset-schritt .charter-card p,
  .pledge-schritt .charter-card p {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }
}

/* Extra kleine Screens */
@media (max-width: 480px) {
  .section-inner {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  .content-block {
    padding: 16px !important;
  }
  
  .mindset-schritt .charter-card,
  .pledge-schritt .charter-card {
    padding: 10px !important;
  }
  
  .mindset-icon,
  .pledge-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
    flex: 0 0 32px !important;
  }
}

/* ==========================================================================
   MOBILE BUTTON OPTIMIZATION - Pfeile ausblenden
   ========================================================================== */

@media (max-width: 768px) {
  /* Pfeil-Icons in Buttons ausblenden */
  .btn .ph-arrow-right,
  .btn .ph-arrow-left,
  .btn-magnetic .ph-arrow-right,
  .btn-magnetic .ph-arrow-left {
    display: none !important;
  }
  
  /* Button-Text zentrieren wenn Icon entfernt */
  .btn {
    justify-content: center !important;
    text-align: center !important;
  }
  
  /* Sicherstellen dass der Text nicht umbrechen muss */
  .btn span {
    white-space: nowrap !important;
  }
}

/* Extra kleine Screens - Buttons volle Breite */
@media (max-width: 480px) {
  .btn {
    width: 100% !important;
    max-width: 100% !important;
  }
}
