/* =========================================
   🔥 CAROUSEL – HIGH PRIORITY (SAFE)
   ========================================= */

/* SECTION */
.ss-carousel-section {
  width: 100% !important;
  padding: 60px 20px !important;
  overflow-x: hidden !important;
}

/* CONTAINER */
.ss-carousel-section .ss-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  overflow: visible !important;
}



/* WRAPPER */
.ss-carousel-section .ss-carousel-wrapper {
  position: relative !important;
  width: 100% !important;
  overflow: visible !important;
}

/* CAROUSEL */
.ss-carousel-section .ss-carousel {
  display: flex !important;
  width: 100% !important;

  gap: 16px !important;

  overflow-x: auto !important;
  overflow-y: hidden !important;

  padding: 10px 16px !important;

  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;

  box-sizing: border-box !important;
}

/* SCROLLBAR */
.ss-carousel-section .ss-carousel::-webkit-scrollbar {
  display: none !important;
}

/* CARD */
.ss-carousel-section .ss-card {
  flex: 0 0 auto !important;

  width: 75% !important;
  max-width: 220px !important;

  background: rgba(255,255,255,0.7) !important;
  backdrop-filter: blur(12px) !important;

  border-radius: 20px !important;
  padding: 20px !important;

  text-align: center !important;

  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.ss-carousel-section .ss-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
}

/* IMAGE */
.ss-carousel-section .ss-avatar {
  width: 120px !important;
  height: 120px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  margin-bottom: 14px !important;
}

/* TITLE */
.ss-carousel-section .ss-card h3 {
  font-size: 0.98rem !important;
  font-weight: 480 !important;
  margin-bottom: 12px !important;
    min-height: 48px;   /* 🔥 KEY: gleicht 1- vs 2-zeilig aus */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

}

.ss-carousel-section .ss-btn {
  all: unset !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 140px !important;   /* ↓ kleiner */
  height: 38px !important;   /* ↓ flacher */

  padding: 0 14px !important;

  border-radius: 999px !important;
  background: linear-gradient(135deg, #5b6cff, #7a8bff) !important;

  color: #fff !important;
  font-size: 0.85rem !important;  /* ↓ feiner */
  font-weight: 500;

  text-align: center;
  line-height: 1.2;

  cursor: pointer !important;
  margin-top: auto !important;
}

/* Umbruch behalten */
.ss-carousel-section .ss-btn {
  white-space: normal;
}

/* ARROWS */
.ss-carousel-section .ss-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  width: 42px !important;
  height: 42px !important;

  border-radius: 50% !important;
  border: none !important;

  background: rgba(255,255,255,0.8) !important;
  backdrop-filter: blur(10px) !important;

  font-size: 22px !important;
  cursor: pointer !important;

  opacity: 0 !important;
  transition: 0.25s ease !important;
  z-index:999;
}

.ss-carousel-section .ss-carousel-wrapper:hover .ss-arrow {
  opacity: 1 !important;
}

/* 🔥 WICHTIG: NICHT negativ */
.ss-carousel-section .ss-arrow-left {
  left: 6px !important;
}

.ss-carousel-section .ss-arrow-right {
  right: 6px !important;
}

/* =========================
   📱 MOBILE FIX
   ========================= */

@media (max-width: 768px) {

  .ss-carousel-section .ss-carousel {
    padding-left: 14px !important;
    padding-right: 10px !important;
    gap: 12px !important;
  }

  .ss-carousel-section .ss-card {
    width: 80% !important;
    max-width: 240px !important;
    padding: 16px !important;
  }

  .ss-carousel-section .ss-avatar {
    width: 96px !important;
    height: 96px !important;
  }

  .ss-carousel-section .ss-arrow {
    display: none !important;
  }
}

/* =========================
   🌙 DARK MODE
   ========================= */

@media (prefers-color-scheme: dark) {

  .ss-carousel-section {
    background: radial-gradient(circle at 20% 20%,#0e1a2a 0%,#0a111a 70%) !important;
  }


  .ss-carousel-section .ss-card {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
  }

  .ss-carousel-section .ss-card h3 {
    color: #fff !important;
  }

  .ss-carousel-section .ss-arrow {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
  }
}

/* =========================
   🍎 APPLE BUTTON
   ========================= */
/* =========================
   🍎 PREMIUM CTA
   ========================= */

.ss-all-books {
  text-align: center;
  margin-top: 36px;
}

.ss-apple-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-size: 1rem;
  font-weight: 500;

  color: #1d4ed8;
  text-decoration: none;

  padding: 14px 22px;
  border-radius: 999px;

  background: rgba(29, 78, 216, 0.08);

  border: 1px solid rgba(29, 78, 216, 0.12);

  backdrop-filter: blur(8px);

  transition: all 0.25s ease;
}

/* Pfeil */
.ss-apple-btn .arrow {
  transition: transform 0.25s ease;
}

/* Hover */
.ss-apple-btn:hover {
  background: rgba(29, 78, 216, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(29, 78, 216, 0.05);
}

.ss-apple-btn:hover .arrow {
  transform: translateX(4px);
}

/* Active */
.ss-apple-btn:active {
  transform: translateY(0);
}

/* MOBILE */
@media (max-width: 480px) {
  .ss-apple-btn {
    font-size: 0.95rem;
    padding: 13px 18px;
  }
}

/* DARK MODE */
@media (prefers-color-scheme: dark) {

  .ss-apple-btn {
    color: #7aa6ff;

    background: rgba(122,166,255,0.12);
    border: 1px solid rgba(122,166,255,0.2);
  }

  .ss-apple-btn:hover {
    background: rgba(122,166,255,0.22);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  }
}

/* =========================
   📱 MOBILE BUTTON FIX (HIGH PRIORITY)
   ========================= */

@media (max-width: 480px) {

/* =========================
   🍎 BUTTON – PREMIUM STYLE
   ========================= */


  .ss-carousel-section .ss-card {
    width: 76% !important;
    max-width: 200px !important;
    min-height: 220px !important;
    padding: 14px 12px !important;

    justify-content: flex-start !important; /* ❌ kein Space-Between */
    gap: 5px !important;
  }

  .ss-carousel-section .ss-avatar {
    width: 96px !important;
    height: 96px !important;
    margin-bottom: 3px !important;
  }

  .ss-carousel-section .ss-card h3 {
    font-size: 0.92rem !important;
    margin-bottom: 6px !important;
    min-height: 37px !important;
    margin-bottom: 4px !important;
  }

  .ss-carousel-section .ss-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;

  justify-content: space-between !important; /* 🔥 KEY FIX */

  padding-top: 20px !important;
  padding-bottom: 20px !important;

  min-height: 240px !important;
}

.ss-carousel-section .ss-btn {
  margin-top: 6px !important;   /* Abstand zum Titel */
  margin-bottom: 4px !important; /* weniger Luft unten */
  height:34px !important;
  width: 130px !important;
  font-size: 0.83rem !important;
  align-self: center !important; /* echte Zentrierung */
}
}

/* =========================
   📱 NO HOVER ON MOBILE
   ========================= */

@media (hover: none) and (pointer: coarse) {

  .ss-carousel-section .ss-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }

}

/* =========================
   🧠 HEADER UPGRADE (APPLE STYLE)
   ========================= */

.ss-carousel-section .ss-header {
  text-align: center;
  margin-bottom: 28px;
}

/* EYEBROW */
.ss-carousel-section .ss-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;

  color: #8a94a6;

  margin-bottom: 6px;
}

/* H2 → jetzt visuell stärker + minimaler Gradient */
.ss-carousel-section .ss-header h2 {
  font-size: 1.6rem !important;
  font-weight: 600 !important;

  margin: 0;

  background: linear-gradient(180deg, #1a1a1a 0%, #444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* SUBLINE */
.ss-carousel-section .ss-subtitle {
  font-size: 0.95rem;
  line-height: 1.5;

  color: #6b7280;

  max-width: 520px;
  margin: 10px auto 0;
}

/* =========================
   📱 MOBILE FEINTUNING
   ========================= */

@media (max-width: 480px) {

  .ss-carousel-section .ss-header h2 {
    font-size: 1.35rem !important;
  }

  .ss-carousel-section .ss-subtitle {
    font-size: 0.9rem;
    padding: 0 10px;
  }
}

/* =========================
   🌙 DARK MODE (SEHR WICHTIG)
   ========================= */

@media (prefers-color-scheme: dark) {

  .ss-carousel-section .ss-eyebrow {
    color: rgba(255,255,255,0.5);
  }

  .ss-carousel-section .ss-header h2 {
    background: linear-gradient(180deg, #ffffff 0%, #bfc9d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .ss-carousel-section .ss-subtitle {
    color: rgba(255,255,255,0.7);
  }
}

