/* =========================================================
   EK4Y – STROMSPEICHER / PHOTOVOLTAIK
   Version: 2025-11 | Komplett
========================================================= */

/* ---------------- HERO mit Video + Preloader ---------------- */
#hero {
    position: relative;
    overflow: hidden;
  }
  #bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }
  #video-preloader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 2;
  }
  #video-preloader .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #17d68f;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  @media (max-width: 768px) {
    #bg-video,
    #video-preloader { display: none; }
  }
  
  /* ---------------- Leistungskarten ---------------- */
  .leistungen-card {
    border: none;
    border-radius: .75rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transition: transform .25s, box-shadow .25s;
    height: 100%;
  }
  .leistungen-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
  }
  .leistungen-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }
  .leistungen-card .card-body {
    padding: 1.5rem;
  }
  .leistungen-card h5 {
    font-weight: 700;
    font-size: 1.25rem;
    color: #0a5c3e;
    margin-bottom: 1rem;
  }
  .leistungen-card p {
    color: #555;
    line-height: 1.6;
  }
  
  /* ---------------- Vorteile ---------------- */
  .vorteil-box {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    background: #fff;
    transition: all .3s ease;
    cursor: pointer;
  }
  .vorteil-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
    border-color: #17d68f;
  }
  .vorteil-box h3 i {
    font-size: 2rem;
    color: #17d68f;
  }
  .vorteil-box .vorteil-title {
    font-weight: 600;
    color: #000;
    margin: 1rem 0 .5rem;
  }
  .vorteil-box p {
    color: #555;
    font-size: .95rem;
    margin-bottom: 0;
  }
  
  /* === Tooltip Farbe === */
  .tooltip-inner {
    background-color: #0a5c3e !important;
    color: #fff !important;
    font-size: .9rem;
    border-radius: .5rem;
    padding: .5rem .75rem;
  }
  .tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #0a5c3e !important;
  }
  
  /* ---------------- Smarte Technik ---------------- */
  #smarte-technik {
    background: #fff;
    color: #333;
  }
  #smarte-technik .headline-category {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #0a5c3e;
    margin-bottom: 1.5rem;
  }
  #smarte-technik .row {
    max-width: 1100px;
    margin: 0 auto;
  }
  /* === Icon-Boxen === */
  .icon-box {
    background: #fff;
    border: 1px solid #eaeaea;
    transition: transform .3s, box-shadow .3s;
    cursor: pointer;
  }
  .icon-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
  }
  .icon-box i {
    color: #17d68f;
    transition: transform .3s;
  }
  .icon-box:hover i { transform: scale(1.15); }
  .icon-box h5 {
    color: #000;
    font-weight: 600;
    margin-top: 1rem;
  }
  .icon-box:hover h5 { color: #17d68f; }
  /* ---------------- Sigenergy Abschnitt ---------------- */
  #sigenergy-speicher {
    background: #fff;
    color: #111;
  }
  #sigenergy-speicher .headline-category {
    font-size: clamp(1.8rem,3vw,2.5rem);
    font-weight: 700;
    color: #0a5c3e;
  }
  .sigenergy-img {
    max-width: 70%;
    height: auto;
  }
  @media (min-width: 992px) {
    .sigenergy-img { max-width: 55%; }
  }
  #sigenergy-speicher .btn-success {
    background: transparent;
    color: #17d68f;
    border: 2px solid #17d68f;
    font-weight: 600;
    transition: all .3s;
  }
  #sigenergy-speicher .btn-success:hover {
    background: #17d68f;
    color: #fff;
  }
  
  /* =========================================================
   EK4Y – SPEICHER / PHOTOVOLTAIK LANDINGPAGE
   Version: 2025-11 | Hero + Energiekonzept + Before/After
========================================================= */

/* #############################################
## HERO SECTION
############################################# */
#hero {
    position: relative;
    overflow: hidden;
  }
  
  #bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }
  
  #video-preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }
  
  #video-preloader .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #17d68f;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    100% { transform: rotate(360deg); }
  }
  
  @media (max-width: 768px) {
    #bg-video { display: none; }
    #video-preloader { display: none; }
  }
  
  /* #############################################
  ## SIGENERGY IMAGE
  ############################################# */
  .sigenergy-img {
    max-width: 70%;
    height: auto;
  }
  @media (min-width: 992px) {
    .sigenergy-img { max-width: 50%; }
  }
  
  /* #############################################
  ## SECTION - ENERGIEKONZEPT
  ############################################# */
  #energiekonzept .ek-box {
    position: relative;
    padding: 2rem;
    min-height: 250px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
  }
  
  #energiekonzept .ek-box.bg-success {
    background-color: #17d68f;
    color: #fff;
  }
  #energiekonzept .ek-box.bg-light {
    background-color: #f8f9fa;
    color: #000;
  }
  #energiekonzept .ek-box.bg-dark {
    background-color: #1d1f20;
    color: #fff;
  }
  
  #energiekonzept .ek-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
  }
  
  #energiekonzept h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .5rem;
  }
  
  #energiekonzept p {
    margin: 0;
    font-size: 1rem;
  }
  
  #energiekonzept .ek-link {
    margin-top: 1rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    display: inline-block;
  }
  
  #energiekonzept .ek-link:hover {
    text-decoration: underline;
  }
  
  /* #############################################
  ## BEFORE / AFTER SLIDER
  ############################################# */

.before-after-section {
    display: flex;
    justify-content: center;
    padding: 40px 0;
    background: #fff;
}

.ba-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    /* Dein Bild-Verhältnis */
    overflow: hidden;
}

/* Beide Bilder absolut, deckungsgleich, cover */
.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tag-Bild initial halb maskiert */
.ba-before {
    clip-path: inset(0 50% 0 0);
    /* oben rechts 50% wegschnippeln */
    z-index: 2;
}

/* Nacht-Bild darunter */
.ba-after {
    z-index: 1;
}

/* Handle-Linie */
.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;
}  

