/**
 * Wireframe Fahrschule Stuker
 * Custom Styles
 * 
 * Farbschema:
 * - Weiss: #FFFFFF
 * - Schwarz: #1A1A1A
 * - Fahrschul-Blau: #1D4ED8 (blue-700)
 * - WhatsApp-Grün: #25D366
 */

/* ========================================
   BASE STYLES
   ======================================== */

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  min-height: 100vh;
}

/* ========================================
   LOADING SCREEN
   ======================================== */

.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: #64748b;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #1D4ED8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

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

/* ========================================
   ANIMATIONS
   ======================================== */

.animate-pulse-once {
  animation: pulse-once 0.3s ease-in-out;
}

@keyframes pulse-once {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.animate-fade-in {
  animation: fade-in 0.4s ease-out;
}

@keyframes fade-in {
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.animate-scale-in {
  animation: scale-in 0.3s ease-out;
}

@keyframes scale-in {
  from { 
    opacity: 0; 
    transform: scale(0.95); 
  }
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}

/* Timeline Step Animation */
.step-animate {
  opacity: 0;
  transform: translateY(20px);
  animation: step-appear 0.5s ease-out forwards;
}

.step-animate:nth-child(1) { animation-delay: 0.1s; }
.step-animate:nth-child(2) { animation-delay: 0.2s; }
.step-animate:nth-child(3) { animation-delay: 0.3s; }
.step-animate:nth-child(4) { animation-delay: 0.4s; }
.step-animate:nth-child(5) { animation-delay: 0.5s; }
.step-animate:nth-child(6) { animation-delay: 0.6s; }

@keyframes step-appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   CUSTOM COMPONENTS
   ======================================== */

/* Sticky WhatsApp Button */
.whatsapp-sticky {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 50;
  animation: bounce-soft 2s ease-in-out infinite;
}

@keyframes bounce-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Card Hover Effect */
.card-hover {
  transition: all 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ========================================
   WIREFRAME SPECIFIC
   ======================================== */

/* Placeholder Text Lines */
.placeholder-line {
  height: 8px;
  background: #d1d5db;
  border-radius: 4px;
}

.placeholder-line:last-child {
  width: 66%;
}

/* Wireframe Box Label */
.wireframe-label {
  position: absolute;
  top: -10px;
  left: 8px;
  background: white;
  padding: 0 4px;
  font-size: 11px;
  color: #6b7280;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 640px) {
  .loading-screen p {
    font-size: 14px;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  body {
    background: white;
  }
  
  .whatsapp-sticky,
  .loading-screen {
    display: none;
  }
}
