/* assets/css/konzept.css */
/* #############################################
## SECTION - MAINCONTENT
############################################# */
#maincontent #stats-section {
    padding: 4rem 1rem;
    background: #fff;

}

/* #############################################
## SECTION - VORHER UND DANACH
############################################# */
.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;
}

#maincontent .headline-category {
    font-weight: 700;
    font-size: clamp(1.25rem, 3vw, 2.25rem) !important;
    line-height: 1.3;
    margin-bottom: .25rem;
}

#maincontent .headline-category-sub {
    font-size: clamp(1.25rem, 3vw, 2.25rem) !important;
    color: #999;
    font-weight: 700;
}

#maincontent .container-fluid {
    max-width: 100% !important;
    margin-left: 0;
    margin-right: 0;
}

/* Slider klebt am Boden */
#maincontent .konzept-slider {
    margin-top: auto;
    padding: 2rem 0;
}

#maincontent .konzept-slider .logo-slider {
    text-align: center;
    overflow: hidden;
}

#maincontent .konzept-slider .partner-logo {
    display: inline-block;
    max-height: 32px;
    margin: 0 2rem;
    filter: grayscale(100%);
    opacity: .7;
    transition: .3s;
}

#maincontent .konzept-slider .partner-logo:hover {
    filter: none;
    opacity: 1;
}

/*#############################################
## SECTION - GANZJAHRESKONZEPT
############################################# */
.konzept-box {
    border: 1px solid #eaeaea;
    border-radius: .5rem;
    background: #fff;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.konzept-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

.konzept-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #17d68f;
    /* statt Gradient */
    margin-bottom: .5rem;
}

.konzept-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.konzept-title span {
    color: #17d68f;
}

.konzept-text {
    font-size: .95rem;
    color: #555;
    margin: 0;
}

/*#############################################
## 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-top: 1rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

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

/* #############################################
   Sektion: Referenzen
############################################# */
#solargarantie a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .2s ease;
}

#solargarantie a:hover {
    color: #17d68f;
}

#referenzen h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

#referenzen h4 {
    font-size: 1.5rem;
}

#referenzen p {
    color: #ddd;
    line-height: 1.6;
}

#referenzen img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.metrics {
    display: flex;
    gap: 2rem;
    align-items: flex-end;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.metric-value {
    display: inline-block;
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 700;
    background: linear-gradient(135deg, #0f8a5d 0%, #118c5e 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.metric small {
    font-size: 0.875rem;
    color: #aaa;
    margin-top: 0.25rem;
}

/* #############################################
   Sektion: ENERGIE-STEPPS
############################################# */
#energy-steps {
    color: #212529;
}

#energy-steps .step-card {
    background: #fff;
    border: none;
    /* alle Ränder abschalten */
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    border-radius: 0;
    /* keine abgerundeten Ecken */
    padding: 2rem;
    /* je nach Geschmack anpassen */
}

#energy-steps a.small {
    color: #7828a7;
}

#energy-steps h2 {
    line-height: 1.2;
}

/* Card-Grundlayout */
.step-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: .5rem;
}

.step-card .fw-bold {
    color: #212529 !important;
}

.step-number {
    font-size: 1.25rem;
    color: #0f8a5d;
}

.step-progress .circle {
    width: 24px;
    height: 24px;
    border: 2px solid #ced4da;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
}

.step-progress .circle.done {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
    display: grid;
    place-items: center;
}

.step-progress .circle.done {
    display: grid;
    place-items: center;
}

.step-progress .circle.done i {
    font-size: 1rem;
    color: #fff;
}

.step-progress .circle.active {
    position: relative;
    animation: pulse 1.8s ease-out infinite;
}

.step-card .text-muted {
    color: #495057 !important;
    opacity: 1 !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(23, 214, 143, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(23, 214, 143, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(23, 214, 143, 0);
    }
}

.step-progress .line {
    height: 2px;
    background: #ced4da;
    flex-grow: 1;
    margin: 0 8px;
}

.step-options .option label {
    border-color: #ced4da !important;
}

.step-options .option label:hover {
    background: #f1f3f5;
}

.step-options input:checked+div .fw-bold {
    color: #28a745;
}

.step-options label {
    cursor: pointer;
}

.tasks-container {
    position: relative;
    width: 100%;
}

.step-tasks {
    margin: 0;
    padding: 0;
    list-style: none;
}

.step-tasks .task-icon,
.task-icon {
    width: 40px;
    height: 40px;
    background: #212529;
    border-radius: .25rem;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.step-tasks .task-icon-img {
    max-width: 100%;
    max-height: 100%;
    padding: 10px;
    object-fit: contain;
}