/* =====================================
   BASIS MODUL
===================================== */
.ts-module {
    position: relative;
    width: 100%;
    overflow: visible;
    background: var(--ts-bgcolor, #ffffff);
    padding: 0px 0px 15px 0px;
    box-sizing: border-box;
}

/* Innerer Wrapper */
.ts-inner {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    transition: height .35s ease;
    min-height: 350px;
}

/* Platzhalter hält echte Höhe */
.ts-inner-placeholder {
    width: 100%;
    height: 0;
}

/* =====================================
   SLIDES übereinander stapeln
===================================== */
.ts-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: opacity 1.8s ease, transform 1.8s ease;
}

.ts-slide.ts-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* =====================================
   INHALT
===================================== */
.ts-slide-inner {
    display: flex;
    align-items: center;
    gap: 30px;
}

.ts-left {
    flex: 1;
    z-index: 2;
}

.ts-title {
    margin: 0 0 12px;
}

.ts-text {
    margin-bottom: 15px;
}

/* Buttons */
.ts-buttons {
    display: flex;
    gap: 10px;
}

.ts-btn {
    margin-right: 8px;
    padding: 10px 20px;
    background: #0066cc;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background .2s;
}

.ts-buttons .ts-btn:hover,
.ts-buttons .ts-btn:active,
.ts-buttons .ts-btn:focus {
    background: #ac1313;
    color: #fff;
	text-decoration: none;
}

/* =====================================
   Bildseite
===================================== */
.ts-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ts-image {
    margin-top: (var(--image-margin, 0px)); /* wird als Variable nicht beachtet!*/
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
    transform: translateY(var(--image-offset, 0px));
}


/* =====================================
   NAVIGATION Desktop
===================================== */
.ts-nav-wrap {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ts-prev,
.ts-next {
    padding: 6px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #006cd9;
    background: #fff !important;
    border: 2px solid #5395d7;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s ease;
}

.ts-prev:hover,
.ts-next:hover {
    background: #ac1313 !important;
    color: #fff;
    border: 2px solid #5395d7;
}

.ts-counter {
    font-weight: 400;
}

.ts-current {
    font-size: 1.525rem;
    font-weight: 600;
}

/* =====================================
   RESPONSIVE Mobile & Tablet
===================================== */
@media (max-width: 991px) {

    /* Inhalt untereinander */
    .ts-slide-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ts-right {
        order: 1;
        width: 100%;
        display: block;
    }

    .ts-left {
        order: 2;
        width: 100%;
        margin-top: 20px;
    }

    .ts-buttons {
        justify-content: center;
    }

    /* Navigation fix unten */
    .ts-nav-wrap {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding-bottom: 20px;
        display: flex;
        justify-content: center;
        background: none;
    }

    /* Bild automatisch */
    .ts-image {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        aspect-ratio: 16 / 9;
        background-size: cover;
        background-position: center;
        transform: none !important;
        margin-top: 10px !important;   /* kannst du anpassen */
    }

    /* Placeholder muss Platz für Text + Navi schaffen */
    .ts-inner-placeholder {
        height: 100px;
    }
}
