/**
 * AlpGeotech Hero Slideshow – Stylesheet
 * Version 1.5.0
 */

/* =============================================
   Container
   ============================================= */
.ags-slideshow {
    position: relative;
    width: 100%;
    /* flex: 0 0 100% verhindert Schrumpfen als Flex-Child (z.B. in .hero) */
    flex: 0 0 100%;
    max-width: 100%;
    overflow: hidden;
    background: #2a3a3a;
    box-sizing: border-box;
}

/* =============================================
   Slides Wrapper & einzelne Slides
   ============================================= */
.ags-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.ags-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.6s ease-in-out;
    will-change: transform;
    z-index: 1;
}

.ags-slide.ags-active {
    transform: translateX(0);
    z-index: 2;
}

/* =============================================
   Weißes Content-Panel (links)
   ============================================= */
.ags-panel {
    position: relative;
    z-index: 3;
    margin-left: 7%;
    width: 40%;
    max-width: 560px;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.96);
    padding: 52px 56px;
    box-sizing: border-box;
    border-radius: 12px;
    /* Vertikale Ausrichtung übernimmt flexbox des Slides */
}

/* =============================================
   Titel
   ============================================= */
.ags-title {
    font-size: clamp(1.6rem, 3.2vw, 2.8rem);
    font-weight: 800;
    margin: 0 0 20px 0;
    color: #111111;
    line-height: 1.18;
    letter-spacing: -0.01em;
}

/* =============================================
   Untertitel / Beschreibungstext
   ============================================= */
.ags-subtitle {
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    margin: 0 0 32px 0;
    color: #555555;
    line-height: 1.65;
}

/* =============================================
   Button
   ============================================= */
.ags-button {
    display: inline-block;
    padding: 13px 28px;
    background-color: #2d8f76;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 0.97rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    border: none;
    box-shadow: 0 3px 10px rgba(45, 143, 118, 0.30);
}

.ags-button:hover,
.ags-button:focus {
    background-color: #236b58;
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(45, 143, 118, 0.45);
    color: #ffffff !important;
    text-decoration: none !important;
}

/* =============================================
   Pfeil-Navigation
   ============================================= */
.ags-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.55);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.ags-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.08);
}

.ags-prev { left: 18px; }
.ags-next { right: 18px; }

/* =============================================
   Punkt-Navigation
   Inaktiv = kleiner Kreis, Aktiv = breiter Strich
   ============================================= */
.ags-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
}

.ags-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.50);
    border: 2px solid rgba(255, 255, 255, 0.75);
    cursor: pointer;
    padding: 0;
    transition: width 0.35s ease, border-radius 0.35s ease, background 0.3s ease;
    flex-shrink: 0;
}

.ags-dot.ags-active {
    width: 28px;
    border-radius: 4px;
    background: #ffffff;
    border-color: #ffffff;
}

.ags-dot:hover:not(.ags-active) {
    background: rgba(255, 255, 255, 0.80);
    border-color: #ffffff;
}

/* =============================================
   Placeholder (keine Slides konfiguriert)
   ============================================= */
.ags-empty-notice {
    padding: 36px;
    text-align: center;
    background: #f2f2f2;
    color: #666;
    border: 2px dashed #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 900px) {
    .ags-panel {
        margin-left: 5%;
        width: 50%;
        padding: 36px 32px;
    }
}

@media (max-width: 640px) {
    .ags-slideshow {
        height: auto !important;
        min-height: 420px;
    }

    .ags-slide {
        align-items: flex-end;
        padding-bottom: 48px;
    }

    .ags-panel {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        padding: 28px 24px;
        background: rgba(255, 255, 255, 0.93);
    }

    .ags-arrow {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .ags-prev { left: 8px; }
    .ag