/* ==========================================================================
   NLE Shortcodes - Stylesheet
   Brand: #008FFF (Site-Brand-Blau, identisch mit .btn-buchen)
          border-radius 24px, font-weight 500, font-size 0.9rem
   Mobile-first.
   ========================================================================== */

:root {
    --nlesc-bg:           #f5f7fa;
    --nlesc-surface:      #ffffff;
    --nlesc-border:       #e3e6ed;
    --nlesc-border-soft:  #eef1f5;
    --nlesc-primary:      #008FFF;
    --nlesc-primary-hover:#0077d6;
    --nlesc-primary-tint: rgba(0, 143, 255, 0.06);
    --nlesc-primary-tint2:rgba(0, 143, 255, 0.10);
    --nlesc-text:         #131829;
    --nlesc-text-soft:    #5a6072;
    --nlesc-text-mute:    #828a9c;
    --nlesc-star:         #f5b400;
    --nlesc-radius-card:  16px;
    --nlesc-radius-md:    12px;
    --nlesc-radius-btn:   24px;     /* exakt wie Site-Buttons */
    --nlesc-shadow-card:  0 2px 10px rgba(20, 30, 70, 0.05);
    --nlesc-shadow-hover: 0 8px 24px rgba(20, 30, 70, 0.10);
    --nlesc-shadow-cta:   0 6px 18px rgba(0, 143, 255, 0.25);
}

/* ==========================================================================
   BOOKING PICKER WRAPPER
   ========================================================================== */
.nle-picker {
    width: 100%;
    box-sizing: border-box;
    padding: clamp(12px, 2vw, 24px) 0;
    color: var(--nlesc-text);
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.nle-picker__head {
    text-align: center;
    margin-bottom: 18px;
}
.nle-picker__title {
    font-size: clamp(1.25rem, 4vw, 1.8rem);
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--nlesc-text);
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.nle-picker__sub {
    font-size: clamp(0.85rem, 2.4vw, 0.95rem);
    color: var(--nlesc-text-soft);
    margin: 0;
}

/* ==========================================================================
   CHOICE CARDS - klare Hierarchie zwischen active/hover/inactive
   ========================================================================== */
.nle-picker__choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 720px;
    margin: 0 auto 22px;
    padding: 0 4px;
}

/* Elementor-Kit-Override:
   ".elementor-kit-15 button" setzt background, border-radius, font-family,
   font-size, line-height etc. mit hoher Spezifitaet. Wir muessen mit
   !important + spezifischem Selektor dagegen halten. */
.nle-picker button.nle-picker-card,
.nle-picker .nle-picker-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 12px 14px;
    background: var(--nlesc-surface) !important;
    background-color: var(--nlesc-surface) !important;
    background-image: none !important;
    border: 1.5px solid var(--nlesc-border) !important;
    border-radius: var(--nlesc-radius-md) !important;
    color: var(--nlesc-text) !important;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.16s ease, transform 0.16s ease,
                box-shadow 0.16s ease, background-color 0.16s ease;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: normal !important;
    min-height: 64px;
    min-width: 0;
    overflow: hidden;
    box-shadow: none;
}

/* INACTIVE - dezent. HOVER nur Border-Highlight, KEIN Background-Tint.
   Klar abgrenzbar vom Active-State (= solid blau + weisse Schrift). */
.nle-picker button.nle-picker-card:not(.is-active):hover,
.nle-picker .nle-picker-card:not(.is-active):hover {
    border-color: var(--nlesc-primary) !important;
    background: var(--nlesc-surface) !important;
    background-color: var(--nlesc-surface) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 143, 255, 0.10);
}
.nle-picker .nle-picker-card:not(.is-active):hover .nle-picker-card__radio {
    border-color: var(--nlesc-primary);
}

/* ACTIVE - solid Brand-Blau, weisse Schrift = "ausgewaehlt" eindeutig */
.nle-picker button.nle-picker-card.is-active,
.nle-picker .nle-picker-card.is-active {
    border-color: var(--nlesc-primary) !important;
    border-width: 2px !important;
    padding: 11px 15px 11px 13px;
    background: var(--nlesc-primary) !important;
    background-color: var(--nlesc-primary) !important;
    background-image: none !important;
    box-shadow:
        0 0 0 4px rgba(0, 143, 255, 0.18),
        0 6px 18px rgba(0, 143, 255, 0.25);
    transform: none;
}
.nle-picker .nle-picker-card.is-active .nle-picker-card__label { color: #fff !important; }
.nle-picker .nle-picker-card.is-active .nle-picker-card__desc  { color: rgba(255, 255, 255, 0.88) !important; }

.nle-picker-card__radio {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 2px solid #c5cad6;
    background: #fff;
    position: relative;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}
.nle-picker-card.is-active .nle-picker-card__radio {
    border-color: #fff;
    background: #fff;
}
.nle-picker-card.is-active .nle-picker-card__radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 999px;
    background: var(--nlesc-primary);
}

.nle-picker-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.nle-picker-card__label {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    color: var(--nlesc-text);
}
.nle-picker-card__desc {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--nlesc-text-soft);
}
.nle-picker-card__star {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%) rotate(-12deg) scale(0.7);
    font-size: 16px;
    color: var(--nlesc-star);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(.34,1.56,.64,1);
    pointer-events: none;
}
.nle-picker-card.is-active .nle-picker-card__star {
    opacity: 1;
    transform: translateY(-50%) rotate(0deg) scale(1);
    color: var(--nlesc-star);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   PANELS
   ========================================================================== */
.nle-picker__panels {
    position: relative;
}
.nle-picker__panel {
    display: none;
    animation: nle-fade-in 0.22s ease both;
}
.nle-picker__panel.is-visible { display: block; }
@keyframes nle-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0);   }
}

.nle-picker__panel-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--nlesc-text);
    text-align: center;
}
.nle-picker__empty {
    text-align: center;
    color: var(--nlesc-text-soft);
    font-style: italic;
    padding: 24px 0;
}

/* ==========================================================================
   CARDS - Mobile-First
   Default: BEIDE 2-spaltig (auf Phones gewuenscht)
   Locations + Erlebnisse: 3 ab 720px, 4 ab 1024-1100px
   ========================================================================== */
.nle-picker__grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) {
    .nle-picker__grid--locations,
    .nle-picker__grid--experiences { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (min-width: 1024px) {
    .nle-picker__grid--experiences { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
    .nle-picker__grid--locations   { grid-template-columns: repeat(4, 1fr); }
}

.nle-card {
    background: var(--nlesc-surface);
    border-radius: var(--nlesc-radius-card);
    overflow: hidden;
    border: 1px solid var(--nlesc-border-soft);
    box-shadow: var(--nlesc-shadow-card);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    /* Vereinheitlichte Card-Hoehe: Locations und Erlebnisse beide gleich gross,
       damit Toggle "Nach Location / Nach Erlebnis" nicht zur Layout-Springerei fuehrt */
    min-height: 310px;
}
.nle-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--nlesc-shadow-hover);
    border-color: rgba(0, 143, 255, 0.25);
}

.nle-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #11161d;
}
/* Beide Card-Typen haben jetzt dasselbe 16:9-Format */
.nle-card__media--location,
.nle-card__media--poster { aspect-ratio: 16 / 9; }

.nle-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.nle-card:hover .nle-card__img { transform: scale(1.03); }

.nle-card__img-placeholder {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    background: #11161d;
}

/* Rating-Badge oben links */
.nle-card__badge {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(17, 22, 29, 0.82);
    color: #fff;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2;
}
.nle-card__badge--rating { display: inline-flex; align-items: center; gap: 3px; }
.nle-card__star { color: var(--nlesc-star); font-size: 11px; }

.nle-card__badge--shoutout {
    background: var(--nlesc-primary);
    color: #fff;
}

/* USK */
.nle-card__usk {
    position: absolute;
    top: 8px; right: 8px;
    width: 26px; height: 26px;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

/* Unified Play-Button: gleicher Stil auf Card-Overlay UND Slider-Slide */
.nle-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    background: rgba(0, 143, 255, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
    z-index: 3;
    padding: 0;
    box-shadow: 0 4px 14px rgba(0, 143, 255, 0.3);
}
.nle-card:hover .nle-card__play { opacity: 1; }
.nle-card__play:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(0, 143, 255, 0.88);
}
.nle-card__play::before {
    content: "";
    width: 0; height: 0;
    border-left: 13px solid rgba(255, 255, 255, 0.98);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 3px;
}
/* Mobile: kleiner aber sichtbar, gleiche Optik */
@media (max-width: 768px) {
    .nle-card__play {
        width: 36px;
        height: 36px;
        opacity: 0.85;
        background: rgba(0, 143, 255, 0.65);
        border-color: rgba(255, 255, 255, 0.45);
    }
    .nle-card__play::before {
        border-left-width: 10px;
        border-top-width: 6px;
        border-bottom-width: 6px;
        margin-left: 2px;
    }
}

/* Card-Body kompakt - feste min-height damit Locations und Experiences
   trotz unterschiedlicher Inhalte (Adresse vs. Preis) gleich hoch werden. */
.nle-card__body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    min-height: 160px;       /* gleicht Address-Block vs. Price-Line aus */
}
.nle-card__head {
    display: flex;
    flex-direction: column;
    gap: 0;                  /* Locationname direkt ueber Untertitel - kompakter */
}
.nle-card__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--nlesc-text);
    /* 2 Zeilen reservieren - lange Titel werden geclamped, kurze "fuellen" trotzdem */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(2 * 0.95rem * 1.25);
}
.nle-card__sub {
    margin: 0;
    font-size: 0.78rem;
    color: var(--nlesc-text-soft);
    line-height: 1.35;
    /* 1 Zeile reserviert, damit Cards ohne Tagline trotzdem gleich gross sind */
    min-height: 1.35em;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Adresse hinter Fahne, 2 Zeilen mit reservierter Hoehe */
.nle-card__address {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    font-size: 0.78rem;
    color: var(--nlesc-text-soft);
    line-height: 1.35;
    min-height: 2.7em; /* 2 Zeilen reserviert, gleiche Card-Hoehe */
}
.nle-card__address-icon {
    color: var(--nlesc-primary);
    font-size: 0.85rem;
    line-height: 1.4;
    flex-shrink: 0;
}
.nle-card__address-lines {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.nle-card__address-line {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Pills-Overlay AUF dem Location-Foto (unten links) */
.nle-card__overlay-pills {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    z-index: 2;
    pointer-events: none;
}
.nle-card__overlay-pill {
    display: inline-block;
    padding: 3px 9px;
    background: rgba(17, 22, 29, 0.72);
    color: #fff;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.3;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Preis-Zeile auf Card (Players/Duration sind weg - immer 2-6/40min) */
.nle-card__price-line {
    margin: 2px 0 0;
    display: flex;
    align-items: center;
}
.nle-card__price {
    color: var(--nlesc-primary);
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.2;
}

/* CTA - Brand-Button-Stil
   bg #008FFF, radius 24px, font-weight 500, font-size 0.9rem
   !important auf font-size weil Theme/Elementor diese gerne ueberschreibt */
.nle-card__cta {
    margin-top: auto;          /* drueckt Button ans Card-Ende = alle bündig */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    /* Brand-Blau gegen Theme/Elementor mit !important durchsetzen */
    background: var(--nlesc-primary) !important;
    background-color: var(--nlesc-primary) !important;
    background-image: none !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: var(--nlesc-radius-btn) !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    cursor: pointer;
    font-family: inherit !important;
    line-height: 1.4 !important;
    transition: background-color 0.18s ease, transform 0.18s ease,
                box-shadow 0.18s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    outline: none;
}
.nle-card__cta:hover {
    background: var(--nlesc-primary-hover) !important;
    background-color: var(--nlesc-primary-hover) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: var(--nlesc-shadow-cta);
}
/* Active/Focus-States vom Theme/Elementor abfangen (sonst pink) */
.nle-card__cta:active,
.nle-card__cta:focus,
.nle-card__cta:focus-visible,
.nle-card__cta:focus:not(:focus-visible) {
    background: var(--nlesc-primary-hover) !important;
    background-color: var(--nlesc-primary-hover) !important;
    color: #fff !important;
    outline: 2px solid rgba(0, 143, 255, 0.4);
    outline-offset: 2px;
}
.nle-card__cta:active { transform: translateY(0); }
.nle-card__cta-arrow {
    display: inline-block;
    transition: transform 0.18s ease;
    font-size: 1.1em;
    line-height: 1;
    opacity: 0.9;
}
.nle-card__cta:hover .nle-card__cta-arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   UNIFIED MODAL  (.nle-modal)
   Wird von [nle_booking_picker] und [nle_experience_slider] geteilt.
   Modern, mobile-first, Sandbox-Stil.
   ========================================================================== */
.nle-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    padding: clamp(8px, 3vw, 32px);
    box-sizing: border-box;
}
.nle-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: nle-modal-fade-in 0.2s ease both;
}
@keyframes nle-modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.nle-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 11, 20, 0.86);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.nle-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 940px;
    max-height: calc(100vh - 24px);
    background:
        radial-gradient(900px 500px at 25% 0%, rgba(0, 143, 255, 0.18), transparent 60%),
        linear-gradient(180deg, #0d131e 0%, #070b14 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    padding: clamp(14px, 3vw, 22px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 143, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    animation: nle-modal-pop 0.28s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes nle-modal-pop {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}
.nle-modal__close {
    position: absolute;
    top: 12px; right: 12px;
    width: 38px; height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.18s ease, transform 0.18s ease;
}
.nle-modal__close:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: scale(1.05);
}
.nle-modal__header { padding-right: 50px; }
.nle-modal__title {
    color: #fff;
    margin: 0 0 6px;
    font-size: clamp(1.05rem, 3vw, 1.35rem);
    font-weight: 700;
    line-height: 1.25;
}
.nle-modal__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    line-height: 1.2;
    flex-wrap: wrap;
}
.nle-modal__usk {
    width: 22px;
    height: 22px;
    display: none;
    flex-shrink: 0;
}
.nle-modal__usk.has-value { display: inline-block; }
.nle-modal__dot {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    display: inline-block;
}
.nle-modal__video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: #000;
}
.nle-modal__frame { width: 100%; height: 100%; border: 0; }
.nle-modal__actions {
    display: flex;
    justify-content: flex-end;
}
.nle-modal__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--nlesc-primary);
    color: #fff !important;
    border-radius: var(--nlesc-radius-btn);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.18s ease, transform 0.18s ease;
}
.nle-modal__link:hover {
    background: var(--nlesc-primary-hover);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .nle-modal { padding: 6px; }
    .nle-modal__dialog {
        max-height: calc(100vh - 12px);
        border-radius: 14px;
        padding: 14px;
    }
    .nle-modal__close { top: 8px; right: 8px; width: 34px; height: 34px; }
    .nle-modal__header { padding-right: 44px; }
}

/* ==========================================================================
   EXPERIENCE SLIDER
   Slides haben feste Breite (per CSS-Variable) + Aspect-Ratio,
   damit Plakate konsistent gross sind und Badges relativ zum Bild sitzen.
   ========================================================================== */

/* V2.2.9: Section flach - keine Margins, kein Padding. Der vertikale
   Glow-Puffer kommt aus der Skalierungs-Differenz und der overflow:visible
   Kette nach oben (Section -> Elementor-Container per JS-Walker).
   Die Section ueberlaesst den Abstand zu Nachbar-Sections komplett dem CMS. */
.nle-slider-section {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
}
.nle-slider-section__head {
    text-align: left;
    padding: 0 clamp(12px, 4vw, 32px);
    margin-bottom: 18px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}
.nle-slider-section__title {
    margin: 0 0 6px;
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-weight: 800;
    /* KEINE feste color - erbt vom Elementor-Section-Hintergrund.
       Dunkler Section-BG => Theme rendert hell, heller BG => dunkel. */
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.nle-slider-section__sub {
    margin: 0;
    font-size: clamp(0.88rem, 1.6vw, 1rem);
    /* opacity statt color, damit Sub-Text gegenueber Title gedimmt erscheint
       OHNE eine feste Farbe vorzugeben */
    opacity: 0.75;
    line-height: 1.5;
}

/* WICHTIG: alle Slider-Regeln sind unter .nle-slider-section verschachtelt.
   Damit gewinnen sie an Spezifitaet gegen das nle-dynamic-slider-Plugin,
   das die Klasse .nle-slider mit eigenen Heights/Variablen verwendet.
   Plus: width/height explizit auf auto, falls fremde Regeln das setzen. */
.nle-slider-section .nle-slider {
    /* Konsistente Slide-Breite + Aspect-Ratio
       --nle-slide-w  : Breite (per Shortcode-Param card_width ueberschreibbar)
       --nle-slide-r  : Aspect-Ratio - DIN A4 (210/297) default, fast wie Filmplakat
       V2.2.6: Breite nochmal +5% (insgesamt +15% vs. V2.2.4)
       Default-Maximum 312px Breite => ca. 442px Hoehe auf grossem Desktop */
    --nle-slide-w: clamp(186px, 23vw, 312px);
    --nle-slide-r: 210 / 297;

    position: relative;
    /* WICHTIG: overflow-x:clip + overflow-y:visible erlaubt vertikalen
       Hover-Lift OHNE den horizontalen Track sichtbar zu machen.
       Mit overflow:hidden waere der Hover-Effekt nach oben/unten beschnitten;
       overflow-x:hidden + overflow-y:visible wuerde vom Browser zwingend auf
       overflow:auto umgewandelt (CSS-Spec) - clip ist die saubere Loesung. */
    overflow-x: clip;
    overflow-y: visible;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    touch-action: pan-y;
    cursor: grab;
    margin: 0 !important;
    padding: 0;
}
.nle-slider-section .nle-slider:active { cursor: grabbing; }
.nle-slider-section .nle-slider__track {
    display: flex;
    align-items: stretch;
    will-change: transform;
    /* V2.2.8: kein eigenes Track-Padding mehr - vertikaler Glow-Puffer
       wird ueber das Section-Padding (24-40px) bereitgestellt, da
       overflow-y:visible am Slider den Glow nach oben/unten durchlaesst. */
    padding: 0;
    height: auto;
    overflow: visible;
}

.nle-slider-section .nle-slide {
    position: relative;
    flex: 0 0 auto;
    width: var(--nle-slide-w);
    /* V2.2.8: Slide-Padding auf 0 - Plakate liegen direkt aneinander.
       Der horizontale Glow-Puffer entsteht jetzt allein durch die
       hover-Skalierung (0.95 = 5% kleiner als Slide-Bound = ~7.8px Puffer).
       Glow-Radien sind entsprechend kompakter (s.u.). */
    padding: 0;
    display: block;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    z-index: 1;
}
.nle-slider-section .nle-slide:hover { z-index: 100; }

.nle-slider-section .nle-slide__card {
    position: relative;
    width: 100%;
    aspect-ratio: var(--nle-slide-r);
    border-radius: var(--nlesc-radius-card);
    overflow: hidden;
    background: #11161d;
    border: 1px solid rgba(20, 30, 50, 0.08);
    /* Kein dunkler Schatten - der User mag's flach.
       Subtler innerer Highlight bleibt zur Definition der Kante. */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transform-origin: center center;
    will-change: transform;
    /* 90/95-Trick: Default scale 0.90, Hover scale 0.95.
       V2.2.8: Bei Slide-Padding 0 ist der Glow-Puffer enger:
       - Slide-Width 312 = Card-Layout-Width 312
       - Hover-Visual-Width = 296.4px
       - Puffer zur Slide-Bound = (312-296.4)/2 = ~7.8px pro Seite
       Glow-Radien daher max 7px - dafuer mit hoeherer Opacity, damit der
       Effekt visuell noch praesent bleibt obwohl er kompakter sitzt. */
    transform: scale(0.90);
    transition: transform 0.34s cubic-bezier(.22,.85,.32,1),
                box-shadow 0.34s cubic-bezier(.22,.85,.32,1),
                filter 0.34s cubic-bezier(.22,.85,.32,1);
}

/* Hover: scale 0.95 (= +5% gegenueber default) + hellblauer Glow.
   V2.2.9: Glow wieder weicher wie V2.2.7 (max 13px). Das laeuft am Slide-Rand
   leicht ueber den scale-bedingten 7.8px-Puffer hinaus - der overflow-x:clip
   am Slider beschneidet ihn da minimal, aber bei opacity 0.40 am 13px-Radius
   ist der Glow dort visuell so weich, dass die Kante kaum auffaellt. */
.nle-slider-section .nle-slide:hover .nle-slide__card {
    transform: scale(0.95);
    box-shadow:
        0 0 0 1px rgba(0, 143, 255, 0.55),
        0 0 6px rgba(0, 143, 255, 0.65),
        0 0 13px rgba(0, 143, 255, 0.40),
        inset 0 0 0 1px rgba(255, 255, 255, 0.10);
    filter: brightness(1.06) saturate(1.05);
}

.nle-slider-section .nle-slide__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.nle-slider-section .nle-slide__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    background: rgba(0, 143, 255, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    transition: transform 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
    z-index: 5;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0, 143, 255, 0.35);
}
.nle-slider-section .nle-slide:hover .nle-slide__play { opacity: 1; }
.nle-slider-section .nle-slide__play:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(0, 143, 255, 0.88);
}
.nle-slider-section .nle-slide__play::before {
    content: "";
    width: 0; height: 0;
    border-left: 16px solid rgba(255, 255, 255, 0.98);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 4px;
}

.nle-slider-section .nle-slide__usk {
    position: absolute;
    top: 8px; right: 8px;
    width: 28px; height: 28px;
    pointer-events: none;
    z-index: 6;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}

.nle-slider-section .nle-slide__shoutout {
    position: absolute;
    top: 8px; left: 8px;
    padding: 4px 10px;
    border-radius: var(--nlesc-radius-btn);
    background: var(--nlesc-primary);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    z-index: 6;
    box-shadow: 0 4px 12px rgba(0, 143, 255, 0.3);
}

@media (max-width: 768px) {
    .nle-slider-section .nle-slider { --nle-slide-w: clamp(162px, 39vw, 231px); }
    .nle-slider-section .nle-slide__play {
        width: 40px;
        height: 40px;
        opacity: 0.9;
        background: rgba(0, 143, 255, 0.65);
        border-color: rgba(255, 255, 255, 0.45);
    }
    .nle-slider-section .nle-slide__play::before {
        border-left-width: 12px;
        border-top-width: 7px;
        border-bottom-width: 7px;
        margin-left: 3px;
    }
    .nle-slider-section .nle-slide__usk { width: 24px; height: 24px; }
    .nle-slider-section .nle-slide__shoutout { font-size: 9.5px; padding: 3px 8px; }
}
@media (max-width: 480px) {
    .nle-slider-section .nle-slider { --nle-slide-w: clamp(140px, 44vw, 185px); }
    .nle-slider-section .nle-slide__play {
        width: 36px;
        height: 36px;
        opacity: 0.9;
    }
    .nle-slider-section .nle-slide__play::before {
        border-left-width: 10px;
        border-top-width: 6px;
        border-bottom-width: 6px;
        margin-left: 2px;
    }
}

/* Slider-Modal-Markup wurde auf .nle-modal vereinheitlicht (siehe oben) */

/* ==========================================================================
   MOBILE TWEAKS - Choice-Cards bleiben nebeneinander, kompakter
   ========================================================================== */
@media (max-width: 480px) {
    .nle-picker__choice {
        gap: 6px;
        padding: 0 2px;
    }
    .nle-picker-card {
        padding: 8px 10px 8px 10px;
        gap: 7px;
        min-height: 50px;
    }
    .nle-picker-card.is-active {
        padding: 7px 9px 7px 9px;
    }
    .nle-picker-card__radio {
        width: 16px;
        height: 16px;
        border-width: 1.5px;
    }
    .nle-picker-card.is-active .nle-picker-card__radio::after {
        inset: 2px;
    }
    .nle-picker-card__body { gap: 1px; }
    .nle-picker-card__label {
        font-size: 0.78rem;
        line-height: 1.15;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .nle-picker-card__desc {
        font-size: 0.65rem;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    /* Stern auf mobile weglassen - spart Platz */
    .nle-picker-card__star { display: none; }

    /* Card-Bodies enger */
    .nle-picker__grid { gap: 8px; }
    .nle-card { min-height: 240px; }
    .nle-card__body {
        padding: 8px 10px 10px;
        gap: 3px;
        min-height: 130px;
    }
    .nle-card__title { font-size: 0.85rem; line-height: 1.2; }
    .nle-card__sub { font-size: 0.72rem; }
    .nle-card__address {
        font-size: 0.72rem;
        min-height: 2.6em;
    }
    .nle-card__address-icon { font-size: 0.78rem; }
    .nle-card__cta {
        padding: 5px 10px;
        font-size: 0.66rem !important;
        gap: 3px;
        letter-spacing: 0.01em;
        line-height: 1.3 !important;
    }
    .nle-card__cta-arrow { font-size: 0.85em; opacity: 0.75; }
    .nle-card__price { font-size: 0.74rem; }
    .nle-card__overlay-pill {
        font-size: 0.62rem;
        padding: 2px 7px;
    }
    .nle-card__badge { font-size: 10px; padding: 3px 7px; }
    .nle-card__usk { width: 22px; height: 22px; }
}

/* ==========================================================================
   OFFER-CARDS  [nle_offer_list] / [nle_offer_card]
   2 Layouts: landscape (Foto links, ab Mobile gestackt)
              portrait  (Foto oben, immer gestackt)
   Buttons nutzen Site-Klassen (.btn / .btn-secondary) - kein eigenes CSS hier
   ========================================================================== */

.nle-offers {
    width: 100%;
    box-sizing: border-box;
}

/* ---- LANDSCAPE LAYOUT ---- */
.nle-offers--landscape {
    display: flex;
    flex-direction: column;
    gap: var(--nle-offer-gap, 22px);
}
.nle-offers--landscape .nle-offer-card {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) auto;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    /* Mindesthoehe statt Fix-Hoehe: Cards mit mehr Inhalt duerfen wachsen,
       aber Cards mit weniger Inhalt sind mind. 280px. So bleiben die Buttons
       immer sichtbar (kein Overflow-Cut). */
    min-height: 280px;
}
.nle-offers--landscape .nle-offer-card__media {
    /* Foto stretcht sich mit der Card mit - immer cover, immer komplett gefuellt */
    height: 100%;
    min-height: 280px;
    background: #11161d;
}
.nle-offers--landscape .nle-offer-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Gesichter sitzen meist im oberen Drittel - object-position leicht nach oben */
    object-position: center 35%;
    display: block;
}

/* ---- PORTRAIT LAYOUT ---- */
.nle-offers--portrait {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--nle-offer-gap, 22px);
}
.nle-offers--portrait.nle-offers--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nle-offers--portrait.nle-offers--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nle-offers--portrait.nle-offers--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.nle-offers--portrait .nle-offer-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    /* Mindesthoehe damit Cards ohne CTA nicht kleiner werden als Cards mit CTA */
    min-height: 460px;
}
.nle-offers--portrait .nle-offer-card__media {
    /* Feste Hoehe statt aspect-ratio - sichert dass ALLE Fotos exakt gleich hoch sind,
       egal wie viel Body-Inhalt da ist und ob die Card durchs Grid noch hoeher gestretcht wird */
    height: 220px;
    flex-shrink: 0;
    background: #11161d;
}
.nle-offers--portrait .nle-offer-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
}
.nle-offers--portrait .nle-offer-card__body {
    /* Body fuellt den verfuegbaren Platz unter dem Foto -> Button bleibt unten */
    flex: 1 1 auto;
}
/* Portrait blendet die Preis-Spalte aus - Preis kommt aus dem Body-Block */
.nle-offers--portrait .nle-offer-card__price-rail { display: none; }
.nle-offers--portrait .nle-offer-card__price-mobile {
    display: flex;
    flex-direction: column;
    margin: 0 0 14px;
    gap: 2px;
}
.nle-offers--portrait .nle-offer-card__price-mobile .nle-offer-card__price {
    font-size: 20px;
    font-weight: 700;
    color: #111;
}
.nle-offers--portrait .nle-offer-card__price-mobile .nle-offer-card__price-sub {
    font-size: 13px;
    color: #61707A;
    font-weight: 400;
    line-height: 1.35;
}

/* ---- COMMON CARD INTERNALS ---- */
.nle-offer-card__body {
    padding: 22px 18px 18px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    flex: 1;
    /* KEIN overflow: hidden - Buttons muessen auch bei viel Inhalt sichtbar bleiben.
       Stattdessen werden Text und Features einzeln geclamped (s.u.). */
}
.nle-offer-card__title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    color: #111;
}
.nle-offer-card__text {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
    color: #61707A;
    /* max 2 Zeilen - laenger wird abgeschnitten, damit Card-Hoehe stabil bleibt */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nle-offer-card__features {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nle-offer-card__features li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #61707A;
    font-size: 14px;
    line-height: 1.45;
    /* 1 Zeile pro Feature - bei langem Text mit Ellipsis abgeschnitten,
       damit alle Cards gleich hoch sind */
    white-space: nowrap;
    overflow: hidden;
}
.nle-offer-card__features li span {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.nle-offer-card__features svg {
    flex: 0 0 16px;
    margin-top: 2px;
    color: var(--nlesc-primary, #008FFF);
}
.nle-offer-card__price-mobile { display: none; }

/* Buttons immer NEBENEINANDER, gleichmaessig 50/50.
   Text bricht bei Bedarf um (white-space: normal) - nicht wrap der Buttons selbst. */
.nle-offer-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;          /* niemals zusammenschrumpfen - immer voll sichtbar */
}
.nle-offer-card__actions > * {
    flex: 1 1 0;             /* gleich breit, egal wie viel Text */
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;     /* langer Button-Text darf umbrechen innerhalb des Buttons */
    word-break: break-word;
}

/* Secondary-Button: grau-blau (.btn-gutschein vom Theme) - mit Plugin-Fallback
   falls die Theme-Klasse fehlt oder anders heisst */
.nle-offer-card__actions .btn.btn-gutschein,
.nle-offer-card__actions .btn-gutschein {
    background-color: rgb(85, 110, 131) !important;
    color: #fff !important;
}
.nle-offer-card__actions .btn.btn-gutschein:hover,
.nle-offer-card__actions .btn-gutschein:hover {
    background-color: rgb(70, 92, 110) !important;
}

/* Preis-Spalte rechts (nur Landscape) */
.nle-offers--landscape .nle-offer-card__price-rail {
    padding: 22px 22px 18px 10px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    min-width: 130px;
}
.nle-offer-card__price-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
    align-items: flex-end;
}
.nle-offer-card__price-block .nle-offer-card__price {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
    white-space: nowrap;
}
.nle-offer-card__price-block .nle-offer-card__price-sub {
    font-size: 13px;
    color: #61707A;
    font-weight: 400;
    line-height: 1.35;
    white-space: nowrap;
}

/* ---- MOBILE ---- */
@media (max-width: 1024px) {
    .nle-offers--landscape .nle-offer-card {
        grid-template-columns: 200px minmax(0, 1fr) auto;
    }
    .nle-offers--landscape .nle-offer-card__media { min-height: 240px; }
}
@media (max-width: 767px) {
    .nle-offers--landscape .nle-offer-card {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }
    .nle-offers--landscape .nle-offer-card__media {
        /* Feste Hoehe auch hier - alle Cards identische Foto-Hoehe */
        height: 200px;
        min-height: 0;
        aspect-ratio: auto;
        flex-shrink: 0;
    }
    /* Mobile blendet die seitliche Preis-Schiene aus, der Preis kommt im Body */
    .nle-offers--landscape .nle-offer-card__price-rail { display: none; }
    .nle-offers--landscape .nle-offer-card__price-mobile {
        display: flex;
        flex-direction: column;
        margin: 0 0 14px;
        gap: 2px;
    }
    .nle-offers--landscape .nle-offer-card__price-mobile .nle-offer-card__price {
        font-size: 20px;
        font-weight: 700;
        color: #111;
        line-height: 1.2;
    }
    .nle-offers--landscape .nle-offer-card__price-mobile .nle-offer-card__price-sub {
        font-size: 13px;
        color: #61707A;
        font-weight: 400;
        line-height: 1.35;
    }

    .nle-offer-card__body {
        padding: 18px 18px 16px;
    }
    .nle-offer-card__title {
        font-size: 20px;
        line-height: 1.3;
    }
    .nle-offer-card__actions {
        max-width: 100%;
        gap: 8px;
    }

    /* Portrait-Grid kollabiert auf 1 Spalte unter 480px */
    .nle-offers--portrait,
    .nle-offers--portrait.nle-offers--cols-2,
    .nle-offers--portrait.nle-offers--cols-3,
    .nle-offers--portrait.nle-offers--cols-4 {
        grid-template-columns: 1fr;
    }
    .nle-offers--portrait .nle-offer-card { min-height: 380px; }
    .nle-offers--portrait .nle-offer-card__media { height: 180px; }
}
@media (min-width: 480px) and (max-width: 767px) {
    .nle-offers--portrait,
    .nle-offers--portrait.nle-offers--cols-2,
    .nle-offers--portrait.nle-offers--cols-3,
    .nle-offers--portrait.nle-offers--cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
