/* =====================================================================
   Секция «Unsere Leistungen» — карточки услуг
   Поведение по ТЗ (п.5): ховер по карточке — появляется/подсвечивается
   оранжевая ссылка «Weitere Details», стрелка становится оранжевой,
   карточка явно кликабельна.
   Mobile-safe: сетка 2 → 1 колонка; «Weitere Details» на тач-экранах
   показывается всегда (там нет ховера).
   ===================================================================== */

.lstg {
  background: var(--dark);
  color: #fff;
  border-radius: var(--r-section);
  padding: clamp(48px, 7vw, 96px) 0;
  /* лёгкий «нахлёст» скругления на светлые соседние секции */
  margin-block: -1px;
}

.lstg__head {
  text-align: center;
  max-width: 900px;
  margin: 0 auto clamp(32px, 5vw, 60px);
}

/* Сетка карточек */
.lstg__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}

/* --- Карточка ------------------------------------------------------ */
.lstg-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
  background: #fff;
  color: var(--ink);
  border-radius: 32px;
  padding: 30px 90px 30px 34px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.lstg-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.lstg-card:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* Вариант с фото (Großhandel, Online Arbitrage): фото слева */
.lstg-card--media .lstg-card__body {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 24px;
  align-items: stretch;
}
.lstg-card--media .lstg-card__body > div {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 18px !important;
}
.lstg-card__media {
  display: block !important;
  width: 136px !important;
  height: 100% !important;
  min-width: 136px !important;
  min-height: 158px !important;
  max-width: 136px !important;
/*  max-height: 158px !important;*/
  flex-shrink: 0 !important;
  border-radius: 22px;
  background-color: #d9d9e2;
  background-size: cover;
  background-position: center;
}

.lstg-card__body {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.lstg-card__title {
    margin-top: -8px;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
  }
.lstg-card__desc {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.25;
    letter-spacing: 0;
}

/* Ссылка «Weitere Details» — скрыта до ховера, появляется оранжевой */
.lstg-card__more {
  display: inline-block;
  
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: auto;
/*  opacity: 0;*/
  transition: opacity 0.25s ease;
}
.lstg-card:hover .lstg-card__more {
  color: var(--orange);
}


/* Круглая кнопка-стрелка: по умолчанию чёрная, на ховере — оранжевая */
.lstg-card__arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #000507;
  color: #fff;
  transition: background .25s ease, transform .25s ease;
}
.lstg-card__arrow svg { width: 20px; height: 20px; }
.lstg-card:hover .lstg-card__arrow {
  background: var(--orange);
  transform: rotate(0);
}

/* Подпись под сеткой с инлайн-кнопкой «Kontaktformular» */
.lstg__note {
    margin-top: clamp(28px, 4vw, 44px);
    text-align: center;
    color: #ffffff;
    font-size: 15.5px;
    transform: translateX(30px);
  }
  
.lstg__note-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  margin: 0 4px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  color: #fff;
  font-weight: 400;
  transition: background .2s ease, border-color .2s ease;
}
.lstg__note-btn:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
}

/* --- Адаптив ------------------------------------------------------- */
@media (max-width: 860px) {
  .lstg__grid { grid-template-columns: 1fr; }
}

/* На тач-экранах ховера нет — показываем «Weitere Details» всегда */
@media (hover: none) {
  .lstg-card__more {
    opacity: 1;
  }
}

@media (min-width: 992px) { .lstg-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
  background: #fff;
  color: var(--ink);
  border-radius: 32px;
  padding: 30px 90px 30px 34px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  /*height: 192px !important;
  min-height: 192px !important;
  max-height: 192px !important;*/
} }

.lstg-card--media {
  padding: 17px 90px 22px 20px;
  /*height: 192px !important;
  min-height: 192px !important;
  max-height: 192px !important;*/
}

.lstg-card__icon { width: 50px; height: 50px; margin-bottom: 20px; display: block; }

@media (max-width: 768px) {
  .lstg { padding: 40px 16px; border-radius: 20px 20px 0 0; }
  .lstg__head { margin-bottom: 24px; }
  .lstg-card {
    padding: 22px 66px 20px 20px !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    border-radius: 20px;
  }
  .lstg-card__title { font-size: 20px; margin-bottom: 8px; }
  .lstg-card__desc { font-size: 15px; line-height: 1.3; }
  
  .lstg-card__arrow {
    width: 32px; height: 32px;
    top: 20px; right: 16px;
  }
  .lstg-card__arrow svg { width: 14px; height: 14px; }
  
  .lstg-card__icon { width: 36px; height: 36px; margin-bottom: 12px; }
  
  .lstg-card--media .lstg-card__body {
    grid-template-columns: 80px 1fr;
    gap: 16px;
  }
  .lstg-card__media {
    width: 80px !important;
    height: 96px !important;
    min-width: 80px !important;


/* Вариант с фото (Großhandel, Online Arbitrage): фото слева */
.lstg-card--media .lstg-card__body {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 24px;
  align-items: stretch;
}
.lstg-card--media .lstg-card__body > div {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.lstg-card__media {
  display: block !important;
  width: 136px !important;
  height: 158px !important;
  min-width: 136px !important;
  min-height: 158px !important;
  max-width: 136px !important;
  max-height: 158px !important;
  flex-shrink: 0 !important;
  border-radius: 22px;
  background-color: #d9d9e2;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px #000;
}

.lstg-card__body {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.lstg-card__title {
    margin-top: -8px;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
  }
.lstg-card__desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.25;
    letter-spacing: 0;
}

/* Ссылка «Weitere Details» — скрыта до ховера, появляется оранжевой */
.lstg-card__more {
  display: inline-block;
  color: var(--orange);
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: auto;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lstg-card:hover .lstg-card__more {
  opacity: 1;
}


/* Круглая кнопка-стрелка: по умолчанию чёрная, на ховере — оранжевая */
.lstg-card__arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #000507;
  color: #fff;
  transition: background .25s ease, transform .25s ease;
}
.lstg-card__arrow svg { width: 20px; height: 20px; }
.lstg-card:hover .lstg-card__arrow {
  background: var(--orange);
  transform: rotate(0);
}

/* Подпись под сеткой с инлайн-кнопкой «Kontaktformular» */
.lstg__note {
    margin-top: clamp(28px, 4vw, 44px);
    text-align: center;
    color: #ffffff;
    font-size: 15.5px;
    transform: translateX(30px);
  }
  
.lstg__note-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  margin: 0 4px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  color: #fff;
  font-weight: 400;
  transition: background .2s ease, border-color .2s ease;
}
.lstg__note-btn:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
}

/* --- Адаптив ------------------------------------------------------- */
@media (max-width: 860px) {
  .lstg__grid { grid-template-columns: 1fr; }
}

/* На тач-экранах ховера нет — показываем «Weitere Details» всегда */
@media (hover: none) {
  .lstg-card__more {
    opacity: 1;
  }
}

@media (min-width: 992px) { .lstg-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
  background: #fff;
  color: var(--ink);
  border-radius: 32px;
  padding: 30px 90px 30px 34px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  min-height: 192px !important;
  height: auto !important;
} }

.lstg-card--media {
  padding: 12px 90px 22px 20px;
  /*min-height: 192px !important;
  height: auto !important;*/
}

.lstg-card__icon { width: 50px; height: 50px; margin-bottom: 20px; display: block; }

@media (max-width: 768px) {
  .lstg { padding: 40px 16px; border-radius: 20px 20px 0 0; }
  .lstg__head { margin-bottom: 24px; }
  .lstg-card {
    padding: 20px 56px 20px 20px !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    border-radius: 20px;
  }
  .lstg-card__title { font-size: 18px; margin-bottom: 8px; }
  .lstg-card__desc { font-size: 13px; line-height: 1.3; }
  
  .lstg-card__arrow {
    width: 32px; height: 32px;
    top: 20px; right: 16px;
  }
  .lstg-card__arrow svg { width: 14px; height: 14px; }
  
  .lstg-card__icon { width: 36px; height: 36px; margin-bottom: 12px; }
  
  .lstg-card--media .lstg-card__body {
    grid-template-columns: 80px 1fr;
    gap: 16px;
  }
  .lstg-card__media {
    width: 80px !important;
    height: 96px !important;
    min-width: 80px !important;
    min-height: 96px !important;
    max-width: 80px !important;
    max-height: 96px !important;
    border-radius: 12px;
  }
  .lstg-card--media .lstg-card__body > div {
    padding-top: 0 !important;
    justify-content: center;
  }
  
  .lstg-card__more { display: none !important; }
  
  .lstg__note {
    transform: none;
    font-size: 14px;
    margin-top: 24px;
  }
  .lstg__note-btn {
    margin-top: 12px;
  }
}


@media (max-width: 768px) {
  /* Hide Weitere Details */
  .folder-card__btn,
  .folder-card__link {
    display: none !important;
  }
  
  
  .folder-card__image-wrapper img, .folder-card__img {
    height: auto;
    width: 100%;
    object-fit: cover;
  }
}

/* FIXES FOR LEISTUNGEN MOBILE */
@media (max-width: 768px) {
  .lstg__head {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  
  .lstg__grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-rows: 1fr !important;
    gap: 16px !important;
  }
  
  .lstg-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
  }
  
  .lstg-card__title {
    font-size: 20px !important;
    font-family: "SF Pro Display", "SF UI Display", "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
  }
  
  .lstg-card__desc {
    font-size: 15px !important;
    font-family: "SF Pro Display", "SF UI Display", "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
  }
  
  .lstg-card__more {
    display: none !important;
  }
}
