/* =========================================================
   EK4Y – KONZEPT LANDINGPAGE
   Version: 2025-11
========================================================= */
/* ===================== BEFORE/AFTER ===================== */
.before-after-section {
    padding: 60px 0;
}
.ba-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 1rem;
}
.ba-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ba-before {
    clip-path: inset(0 50% 0 0);
    z-index: 2;
}
.ba-after {
    z-index: 1;
}
.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: #17d68f;
    cursor: ew-resize;
    transform: translateX(-50%);
}
.ba-handle::after {
    content: "⇆";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 8px;
    background: #fff;
    border-radius: 50%;
    border: 1px solid #ccc;
}

/* ===================== NUMBERS ===================== */
.number-box {
    background: #fff;
    color: #000;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}
.number-box h3 {
    color: #17d68f;
    font-size: 2.6rem;
    font-weight: 700;
}
/*#############################################
## SECTION - ENERGIEKONZEOT
############################################# */
#energiekonzept .ek-box {
    position: relative;
    min-height: 250px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    color: #fff;
}

#energiekonzept .ek-box.bg-success {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-color: #17d68f;
}

#energiekonzept .ek-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
}

#energiekonzept .ek-box>div {
    background: rgba(0, 0, 0, 0.5);
    display: inline-block;
    padding: 0.5rem 0 0.5rem 2rem;
}

/* Textstile */
#energiekonzept h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: #fff;
}

#energiekonzept p {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

/* Link unten */
#energiekonzept .ek-link {
    margin: 0.5rem 1rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

#energiekonzept .ek-link:hover {
    text-decoration: underline;
}

/* ===================== PARTNER-LOGOS ===================== */
.logo-slider { overflow: hidden; }
.logo-track {
    display: flex;
    animation: slide 25s linear infinite;
}
.partner-logo {
    opacity: .9;
    transition: opacity .3s;
}
.partner-logo:hover {
    opacity: 1;
}
@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* #############################################
     ## SECTION - VORHER UND NACHHER
  ############################################# */
  .before-after-section {
    display: flex;
    justify-content: center;
    padding: 60px 0;
    background: #fff;
  }
  
  .ba-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
  }
  
  .ba-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
  }
  
  .ba-before {
    clip-path: inset(0 50% 0 0);
    z-index: 2;
  }
  
  .ba-after {
    z-index: 1;
  }
  
  .ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #fff;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 3;
  }
  
  .ba-handle::after {
    content: "⇆";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 50%;
    padding: 8px;
    font-size: 16px;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
  }