/* ================================
   WS-Technik Leistungs-Kacheln CSS
   ================================ */

/* Section Styling */

.ws-leistungen-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* Header */
  .ws-leistungen-header {
    text-align: center;
    margin-bottom: 60px;
  }
  
  .ws-leistungen-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #003d7a;
    margin-bottom: 16px;
    line-height: 1.2;
  }
  
  .ws-leistungen-subtitle {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
  }
  
  /* Slider Wrapper */
  .ws-slider-wrapper {
    position: relative;
    padding: 0 60px;
  }
  
  .ws-slider-container {
    overflow: hidden;
    position: relative;
  }
  
  .ws-slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease-in-out;
    cursor: grab;
    user-select: none;
  }
  
  .ws-slider-track:active {
    cursor: grabbing;
  }
  
  /* Kacheln/Cards */
  /* Desktop: 4 → 3 Spalten (25% → 33.333%) */
  .ws-leistung-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  
  .ws-leistung-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 61, 122, 0.15);
  }
  
  .ws-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e8f1f8;
    position: relative;
  }
  
  .ws-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .ws-leistung-card:hover .ws-card-image img {
    transform: scale(1.05);
  }
  
  .ws-card-content {
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  
  .ws-card-icon {
    width: 56px;
    height: 56px;
    background: #003d7a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
  }
  
  .ws-card-icon svg {
    color: #ffffff;
  }
  
  .ws-card-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #003d7a;
    margin-bottom: 12px;
    line-height: 1.3;
  }
  
  .ws-card-text {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
  }
  
  .ws-card-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #003d7a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: flex-start;
  }
  
  .ws-card-button:hover {
    background: #00569e;
    transform: translateX(4px);
  }
  
  .ws-card-button svg {
    transition: transform 0.3s ease;
  }
  
  .ws-card-button:hover svg {
    transform: translateX(4px);
  }
  
  /* Indicators */
  /* Indicator-Styles durch Pfeil-Navigation-Styles ersetzt */
  /* Navigation Arrows (zentriert unter den Kacheln) */
  .ws-slider-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
  }
  
  .ws-nav-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #003d7a;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 61, 122, 0.2);
  }
  
  .ws-nav-arrow:hover:not(:disabled) {
    background: #00569e;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 61, 122, 0.3);
  }
  
  .ws-nav-arrow:active:not(:disabled) {
    transform: scale(0.95);
  }
  
  .ws-nav-arrow:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
  }
  
  .ws-nav-arrow svg {
    width: 24px;
    height: 24px;
  }
  
  /* ===========================
       Responsive Design
       =========================== */
  
  /* Tablet: 3 → 2 Spalten (33.333% → 50%) */
  /* Tablet - 2 Spalten */
  @media (max-width: 1024px) {
    .ws-leistungen-title {
      font-size: 2rem;
    }
  
    .ws-slider-wrapper {
      padding: 0 50px;
    }
  
    .ws-leistung-card {
      flex: 0 0 calc(50% - 12px);
    }
  
    .ws-slider-nav {
      width: 40px;
      height: 40px;
    }
  }
  
  /* Tablet Portrait - weiterhin 2 Spalten */
  @media (max-width: 768px) {
    .ws-leistungen-section {
      padding: 60px 0;
    }
  
    .ws-leistungen-header {
      margin-bottom: 40px;
    }
  
    .ws-leistungen-title {
      font-size: 1.75rem;
    }
  
    .ws-leistungen-subtitle {
      font-size: 1rem;
    }
  
    .ws-slider-wrapper {
      padding: 0 45px;
    }
  
    .ws-leistung-card {
      flex: 0 0 calc(50% - 12px);
    }
  
    .ws-card-title {
      font-size: 1.25rem;
    }
  
    .ws-card-text {
      font-size: 0.875rem;
    }
  }
  
  /* Mobile - 1 Spalte */
  @media (max-width: 640px) {
    .ws-leistungen-section {
      padding: 40px 0;
    }
  
    .ws-leistungen-container {
      padding: 0 16px;
    }
  
    .ws-leistungen-title {
      font-size: 1.5rem;
    }
  
    .ws-leistungen-subtitle {
      font-size: 0.9375rem;
    }
  
    .ws-slider-wrapper {
      padding: 0 40px;
    }
  
    .ws-slider-track {
      gap: 16px;
    }
  
    .ws-leistung-card {
      flex: 0 0 calc(100% - 0px);
    }
  
    .ws-slider-nav {
      width: 36px;
      height: 36px;
    }
  
    .ws-slider-nav svg {
      width: 20px;
      height: 20px;
    }
  
    .ws-card-content {
      padding: 24px 20px 20px;
    }
  
    .ws-card-icon {
      width: 48px;
      height: 48px;
    }
  
    .ws-card-icon svg {
      width: 32px;
      height: 32px;
    }
  
    .ws-card-button {
      width: 100%;
      justify-content: center;
    }
  
    /* Navigation Arrows für Mobile anpassen */
    .ws-slider-navigation {
      margin-top: 30px;
      gap: 16px;
    }
  
    .ws-nav-arrow {
      width: 40px;
      height: 40px;
    }
  
    .ws-nav-arrow svg {
      width: 20px;
      height: 20px;
    }
  }
  
  /* Extra Small Mobile */
  @media (max-width: 375px) {
    .ws-slider-wrapper {
      padding: 0 35px;
    }
  
    .ws-leistungen-title {
      font-size: 1.375rem;
    }
  }
  