/**
 * Service Cards Component
 *
 * Enthält:
 * - Service Card (quadratisches Format)
 * - Glasmorphism Icons
 * - Gradient-Hintergründe (Blau/Gelb)
 * - Hover-Animationen
 *
 * Dependencies:
 * - base.css (CSS Variables)
 *
 * Extrahiert aus components.css: Zeilen 2112-2305
 * Datei-Größe: ~193 Zeilen
 *
 * @package SLV_Transporte
 * @version 1.1.0
 */


/* ============================================
   SERVICE CARDS (Screenshot-spezifisch)
   ============================================ */

/**
 * Service Card - Spezielle Variante für Service-Highlights
 *
 * OPTIMIERUNGEN 2025 (Best-Practice aus Analyse):
 * - Quadratisches Format (aspect-ratio: 1/1)
 * - Gradient-Hintergrund für moderne Optik
 * - Glasmorphism Icon mit backdrop-filter
 * - Responsive Typografie mit clamp()
 * - Hover-Animation mit GPU-Beschleunigung
 * - Focus-States für Accessibility
 * - Reduced-Motion Support
 *
 * Verwendung:
 * <div class="service-card">
 *   <div class="icon-circle">
 *     <i class="ph ph-phone"></i>
 *   </div>
 *   <h3>24/7 Erreichbarkeit</h3>
 *   <p>Schneller Service und zuverlässige Kommunikation</p>
 * </div>
 *
 * Basis-Farbe: Blau (#4BA3C3 → #3B8AAA Gradient)
 * Alternativ: Verwende .service-card--yellow für gelbe Variante
 */
.service-card {
  /* Layout */
  padding: clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;

  /* Visuals */
  background: linear-gradient(135deg, #4BA3C3 0%, #3B8AAA 100%);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

  /* OPTIMIERT: Längere Transition für smoothere Animation */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Performance */
  will-change: transform, box-shadow;
  transform: translateZ(0);
  color: var(--slv-bg-white);
}

/**
 * Service Card - Gelbe Variante
 * Für abwechslungsreiche Layouts
 */
.service-card--yellow {
  background: linear-gradient(135deg, #fcbc5b 0%, #d99a44 100%);
  color: var(--slv-text-dark);
}

/**
 * Icon Circle - Glasmorphism Effekt
 *
 * Features:
 * - Responsive Größe mit clamp() (70px - 95px)
 * - OPTIMIERT für 4-Spalten Desktop Layout
 * - Backdrop-filter für Blur-Effekt (Glasmorphism)
 * - Border für subtile Definition
 * - Smooth Transition für Hover-Animation
 */
.icon-circle {
  width: clamp(70px, 10vw, 95px);
  height: clamp(70px, 10vw, 95px);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Safari Support */
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* OPTIMIERT: Längere Transition */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

/**
 * Icon Circle - Gelbe Variante
 */
.service-card--yellow .icon-circle {
  background: rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(0, 0, 0, 0.15);
}

/**
 * Icon innerhalb des Kreises
 * Phosphor Icons oder andere Icon-Fonts
 */
.icon-circle i,
.icon-circle svg {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: inherit;
  line-height: 1;

  /* Smooth Transition */
  transition: transform 0.3s ease, font-size 0.3s ease;
}

/**
 * Icon Pulse - Subtile Animation bei Hover
 * "Heartbeat" Effekt für lebendige UI
 */
@keyframes icon-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
    /* Subtle Pulse */
  }
}

/* Apply to Icon on Card Hover */
.service-card:hover .icon-circle i,
.service-card:hover .icon-circle svg {
  animation: icon-pulse 1.5s ease-in-out infinite;
}

/**
 * Service Card Überschrift
 *
 * Features:
 * - Responsive Schriftgröße (clamp)
 * - OPTIMIERT für 4-Spalten Desktop Layout
 * - Engerer Letter-Spacing für modernen Look
 * - Optimale Line-Height für Lesbarkeit
 */
.service-card h3 {
  font-family: var(--slv-font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: inherit;
  margin: 0;

  /* Smooth Transition */
  transition: font-size 0.3s ease, letter-spacing 0.3s ease;
}

/**
 * Service Card Beschreibungstext
 *
 * Features:
 * - Responsive Schriftgröße (clamp)
 * - Optimale Line-Height (1.7)
 * - Leicht reduzierte Opacity für Hierarchie
 */
.service-card p {
  font-family: var(--slv-font-body);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.7;
  color: inherit;
  opacity: 0.92;
  margin: 0;

  /* Smooth Transition */
  transition: opacity 0.3s ease, font-size 0.3s ease;
}

/**
 * Service Card Hover-Effekt
 *
 * Features:
 * - Card hebt sich nach oben (translateY -8px)
 * - Schatten wird verstärkt und weicher
 * - Icon vergrößert sich (scale 1.15)
 * - Kein scale() um Layout-Shift zu vermeiden
 */
.service-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.2),
    0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Hover: Icon Animation */
.service-card:hover .icon-circle {
  transform: scale(1.15) rotate(5deg);
  background: rgba(255, 255, 255, 0.3);
  border-width: 3px;
}

/* Gelbe Variante - Andere Hover-Farbe */
.service-card--yellow:hover .icon-circle {
  background: rgba(0, 0, 0, 0.25);
}

/* Hover: Beschreibung prominenter */
.service-card:hover p {
  opacity: 1;
}

/* Active State (Click Feedback) */
.service-card:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/**
 * Service Card Focus-State
 *
 * Accessibility:
 * - Deutlicher goldener Outline (4px)
 * - Offset (6px)
 * - Nur bei Keyboard-Navigation (:focus-visible)
 * - WCAG 2.1 konform
 */
.service-card:focus-visible {
  outline: 4px solid #FFD700 !important;
  outline-offset: 6px !important;
  border-radius: 24px;
  box-shadow:
    0 0 0 8px rgba(255, 215, 0, 0.2),
    0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Kein Outline bei Mouse-Click */
.service-card:focus:not(:focus-visible) {
  outline: none;
}

/**
 * Reduced Motion Support
 *
 * Deaktiviert Animationen für Nutzer mit prefers-reduced-motion
 * Wichtig für Accessibility und Motion-Sensitivity
 */
@media (prefers-reduced-motion: reduce) {

  .service-card,
  .icon-circle,
  .service-card:hover .icon-circle i,
  .service-card:hover .icon-circle svg {
    transition: none;
    animation: none;
  }

  .service-card:hover {
    transform: none;
  }

  .service-card:hover .icon-circle {
    transform: none;
  }
}

/**
 * Service Card Grid - OPTIMIERT
 */
.service-cards-container,
.card-grid--6 {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1rem, 3vw, 2rem);
}

/* Mobile: 1 Spalte */
@media (max-width: 639px) {

  .service-cards-container,
  .card-grid--6 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Tablet: 2 Spalten */
@media (min-width: 640px) and (max-width: 1023px) {

  .service-cards-container,
  .card-grid--6 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Desktop: 3 Spalten */
@media (min-width: 1024px) {

  .service-cards-container,
  .card-grid--6 {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 3vw, 3rem);
  }
}

/* Large Desktop (1440px+): Mehr Gap */
@media (min-width: 1440px) {

  .service-cards-container,
  .card-grid--6 {
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
  }
}