/* L'felder Highlights – Startseiten-Slider */
.lf-hl {
  --lf-hl-green: #346a33;       /* L'felder Akzent (Elementor global accent) */
  --lf-hl-green-dark: #244d24;
  --lf-hl-max: 1140px;          /* wie Elementor-Container */
  --lf-hl-yellow: #f5d468;
  --lf-hl-ink: #1e2a1b;
  --lf-hl-white: #ffffff;
  --lf-hl-radius: 28px;
  --lf-hl-height: 420px;

  position: relative;
  box-sizing: border-box;
  width: auto;
  max-width: min(var(--lf-hl-max), calc(100% - 40px));
  margin: 0 auto 40px !important;
  background: var(--lf-hl-green);
  border-radius: var(--lf-hl-radius);
  color: var(--lf-hl-white);
  overflow: hidden;
  font-family: inherit;
}

.lf-hl__swiper { overflow: hidden; }

.lf-hl__slide {
  display: flex;
  align-items: center;
  gap: 48px;
  min-height: var(--lf-hl-height);
  padding: 36px 56px 64px;
  box-sizing: border-box;
}

/* ---------- Medien (links, Hochformat) ---------- */
.lf-hl__media {
  position: relative;
  flex: 0 0 auto;
  width: 240px;
  aspect-ratio: 2 / 3;
  box-sizing: border-box;
  border: 3px solid var(--lf-hl-white);
  border-radius: 18px;
  overflow: hidden;
  background: var(--lf-hl-green-dark);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}
.lf-hl--neu .lf-hl__media,
.lf-hl--aktion .lf-hl__media { width: 300px; aspect-ratio: 4 / 5; }

.lf-hl__media img,
.lf-hl__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Play-Button für Instagram-Reels */
.lf-hl__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #fff;
  font: inherit;
  font-weight: 700;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.05) 60%);
  transition: background .2s;
}
.lf-hl__play:hover,
.lf-hl__play:focus-visible { background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.15) 60%); }
.lf-hl__play-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  position: relative;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  transition: transform .2s;
}
.lf-hl__play-icon::after {
  content: "";
  position: absolute;
  left: 26px; top: 20px;
  border-style: solid;
  border-width: 12px 0 12px 19px;
  border-color: transparent transparent transparent var(--lf-hl-green);
}
.lf-hl__play:hover .lf-hl__play-icon { transform: scale(1.08); }
.lf-hl__play-label {
  position: absolute;
  bottom: 16px;
  font-size: 15px;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

/* ---------- Text (rechts) ---------- */
.lf-hl__body { flex: 1 1 auto; min-width: 0; max-width: 680px; }

.lf-hl__badge {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--lf-hl-yellow);
  color: var(--lf-hl-ink);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}

.lf-hl__title {
  margin: 18px 0 12px;
  color: var(--lf-hl-white);
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.15;
  font-weight: 800;
}
.lf-hl__title a { color: inherit; text-decoration: none; }
.lf-hl__title a:hover { text-decoration: underline; }

.lf-hl__text {
  margin: 0 0 26px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,.92);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lf-hl__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

.lf-hl__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--lf-hl-white);
  color: var(--lf-hl-green-dark) !important;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: transform .15s, box-shadow .15s;
}
.lf-hl__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.2); }

/* Instagram-Icon rechts unten */
.lf-hl__slide { position: relative; }
.lf-hl__insta {
  position: absolute;
  right: 22px; bottom: 16px;
  z-index: 6;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--lf-hl-white) !important;
  background: rgba(255,255,255,.14);
  transition: background .15s, transform .15s;
}
.lf-hl__insta:hover { background: rgba(255,255,255,.28); transform: scale(1.06); }
.lf-hl__insta svg { display: block; }

/* ---------- Hinweis-Slide (wie bisheriger Ticker) ---------- */
.lf-hl__slide--note { justify-content: center; text-align: center; }
.lf-hl__slide--note .lf-hl__body { max-width: 900px; }
.lf-hl__date { display: block; font-size: 18px; letter-spacing: .02em; opacity: .9; }
.lf-hl__slide--note .lf-hl__title { margin: 10px 0 0; font-size: clamp(22px, 2.2vw, 30px); }

/* ---------- Navigation ---------- */
.lf-hl__nav {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
}
.lf-hl__nav > * { pointer-events: auto; }
.lf-hl__dots { display: flex; gap: 8px; width: auto !important; position: static !important; }
.lf-hl__dots .swiper-pagination-bullet {
  width: 10px; height: 10px; margin: 0 !important;
  background: #fff; opacity: .45;
  transition: width .25s, opacity .25s;
}
.lf-hl__dots .swiper-pagination-bullet-active { width: 28px; border-radius: 5px; opacity: 1; }
.lf-hl__arrow {
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 24px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0 0 3px;
}
.lf-hl__arrow:hover { background: rgba(255,255,255,.32); }

.lf-hl :focus-visible { outline: 3px solid var(--lf-hl-yellow); outline-offset: 3px; }

/* ---------- Tablet / Handy ---------- */
@media (max-width: 900px) {
  .lf-hl__slide { gap: 28px; padding: 28px 28px 60px; }
  .lf-hl__media { width: 190px; }
  .lf-hl--neu .lf-hl__media, .lf-hl--aktion .lf-hl__media { width: 220px; }
}
@media (max-width: 640px) {
  .lf-hl { --lf-hl-radius: 22px; }
  .lf-hl__slide {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 18px;
    min-height: 0;
    padding: 22px 20px 58px;
  }
  .lf-hl__media,
  .lf-hl--neu .lf-hl__media,
  .lf-hl--aktion .lf-hl__media { width: 62%; max-width: 240px; margin: 0 auto; }
  .lf-hl__text { display: none; }
  .lf-hl__title { margin: 12px 0 16px; font-size: 24px; }
  .lf-hl__actions { justify-content: center; }
  .lf-hl__slide--note { padding: 30px 20px 58px; }
  .lf-hl__arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lf-hl * { transition: none !important; }
}

/* ---------- Schutz gegen Theme-/Elementor-Styles (Hello Elementor) ---------- */
.lf-hl button.lf-hl__play,
.lf-hl button.lf-hl__arrow,
.lf-hl button.lf-hl__close {
  border: 0 !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-family: inherit !important;
}
.lf-hl button.lf-hl__play {
  display: flex !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: #fff !important;
  background-color: transparent !important;
}
.lf-hl button.lf-hl__play:hover,
.lf-hl button.lf-hl__play:focus { background-color: transparent !important; color: #fff !important; }
.lf-hl .lf-hl__play-icon { display: block; flex: 0 0 auto; }
.lf-hl button.lf-hl__arrow { border-radius: 50% !important; padding: 0 0 3px !important; color: #fff !important; background-color: rgba(255,255,255,.18) !important; }
.lf-hl button.lf-hl__arrow:hover { background-color: rgba(255,255,255,.32) !important; }
.lf-hl button.lf-hl__close { padding: 0 !important; background: transparent !important; color: var(--lf-hl-ink) !important; }

.lf-hl h2.lf-hl__title {
  color: var(--lf-hl-white) !important;
  font-size: clamp(26px, 2.6vw, 38px) !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  margin: 18px 0 12px !important;
}
.lf-hl__slide--note h2.lf-hl__title { font-size: clamp(22px, 2.2vw, 30px) !important; margin: 10px 0 0 !important; }
.lf-hl p.lf-hl__text { color: rgba(255,255,255,.92) !important; }
.lf-hl a.lf-hl__btn { color: var(--lf-hl-green) !important; }

@media (max-width: 640px) {
  .lf-hl h2.lf-hl__title { font-size: 24px !important; margin: 12px 0 16px !important; }
  .lf-hl__insta { right: 14px; bottom: 12px; width: 36px; height: 36px; }
}

/* Verlauf + Pfeile auch gegen Theme-Button-Styles absichern */
.lf-hl button.lf-hl__play { background-image: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.05) 60%) !important; }
.lf-hl button.lf-hl__play:hover,
.lf-hl button.lf-hl__play:focus-visible { background-image: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.15) 60%) !important; }
.lf-hl button.lf-hl__arrow { display: flex !important; width: 36px !important; height: 36px !important; }
@media (max-width: 640px) {
  .lf-hl button.lf-hl__arrow { display: none !important; }
}

/* ---------- Fußzeile rechts unten: „Direkt zu: Firma“ + Instagram ---------- */
.lf-hl__foot {
  position: absolute;
  right: 22px; bottom: 16px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 45%;
}
.lf-hl__foot .lf-hl__insta { position: static; flex: 0 0 auto; }
.lf-hl a.lf-hl__rel {
  color: var(--lf-hl-white) !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lf-hl a.lf-hl__rel:hover { text-decoration: underline !important; text-underline-offset: 3px; }
.lf-hl__rel-pre { font-weight: 400; opacity: .85; }

@media (max-width: 640px) {
  .lf-hl__foot {
    position: static;
    max-width: none;
    justify-content: center;
    margin-top: -4px;
  }
  .lf-hl a.lf-hl__rel { white-space: normal; text-align: center; }
}

/* ---------- Instagram direkt im Slide (nach Klick) ---------- */
.lf-hl { --lf-hl-ig-w: 328px; --lf-hl-ig-h: 552px; }   /* Höhe = Kopf + Video + „Mehr auf Instagram“ */
.lf-hl__play-label small { display: block; font-size: 11px; font-weight: 400; opacity: .8; text-align: center; margin-top: 2px; }
.lf-hl__media.is-playing,
.lf-hl--neu .lf-hl__media.is-playing,
.lf-hl--aktion .lf-hl__media.is-playing {
  width: var(--lf-hl-ig-w);
  aspect-ratio: auto;
  height: var(--lf-hl-ig-h);
  background: #fff;
}
.lf-hl__media.is-playing > img,
.lf-hl__media.is-playing > video,
.lf-hl__media.is-playing > .lf-hl__play { display: none !important; }
.lf-hl__ig-frame { position: absolute; inset: 0; overflow: hidden; }
.lf-hl__ig-frame iframe {
  display: block;
  width: 100%;
  height: 900px;          /* Rest (Likes/Kommentare) wird unten abgeschnitten */
  border: 0;
}
@media (max-width: 640px) {
  .lf-hl__media.is-playing,
  .lf-hl--neu .lf-hl__media.is-playing,
  .lf-hl--aktion .lf-hl__media.is-playing { width: 100%; max-width: var(--lf-hl-ig-w); }
}
