body.loading {
    visibility: hidden;
}

div[id*="heat-pump-calc"],
div[id*="ccus-calc"] {
    margin-bottom: 112px;
}

/* ------------------------------
   Color Variables (Theme Colors)
------------------------------ */
:root {
    /* Primary colours for branding*/
    --hippo-primary-color: rgb(236, 0, 72); /* primary-energy-red */
    --hippo-primary-color-light: rgba(237, 0, 73, 0.1);
    --hippo-primary-color-lighter: rgba(237, 0, 73, 0.2);

    /* Secondary colour for highlights*/
    --hippo-secondary-color: #aee8f5; /* light-blue */
    --hippo-tertiary-color: #57b7d9; /* bright-blue rgb(87 183 217) */
    
    /* Clear petrol tones */
    --hippo-clear-petrol-20: #eaf7f9;
    --hippo-clear-petrol-50: #cbebef;
    --hippo-clear-petrol-100: #97d6df;

    /* Various grey tones */
    --hippo-gray-lighter: rgb(244, 244, 244);
    --hippo-gray-light: rgb(118, 124, 125);
    --hippo-gray-dark: rgb(94, 99, 99);
    --hippo-gray-8: rgb(187, 197, 199);

    --neutral-200: #BBC5C7; /* input border */
    --neutral-300: #8D9495; /* input border on hover / selected / active */
    --neutral-400: #5E6363; /* input placeholder inactive */
    --neutral-500: #2F3132; /* input font color, active */
}

#form_hippo-container {
    flex: 1 1 100%;
    max-width: unset;
    scroll-margin-top: 56px;
}

#form_hippo-container .evl-form {
    max-width: unset;
    width: 100%;
    margin: 0 auto;
}

/* ------------------------------
   Wrapper and Container Styles
------------------------------ */
.hippo-containers-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-size: 16px;
    background-color: white;
    flex-direction: row;
    gap: 24px; /* $spacer-s */
    width: auto;
    margin: 0 auto;
    padding: 0;
}

.hippo-container {
    margin-bottom: 48px; /* $spacer-xl */
    display: flex;
    flex-direction: column;
}

.hippo-container h2 {
    margin: 0 0;
}

.hippo-container h4 {
    sub {
        font-size: 0.7em;
        font-weight: 700;
    }
}

.input_hippo-container {
    width: auto;
    max-width: 75%;
    flex: 1 1 75%;
}

.output_hippo-container {
    width: auto;
    max-width: 25%;
    flex: 1 1 25%;
}

.input_hippo-container,
.output_hippo-container {
    min-height: 100%;
}

.hippo-containers-wrapper {
    align-items: stretch;
}

#outputhippo-container {
    visibility: visible !important;
    opacity: 1 !important;
    scroll-margin-top: 56px;
}

.output_hippo-container {
    align-self: flex-start;
    min-height: unset;
    padding: 15px 15px 20px 15px;
    background-color: var(--hippo-clear-petrol-20);
}

.h-block1, .h-block2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 5px;
}

.grid-hippo-container, .grid-hippo-container2, .grid-hippo-container3 {
    display: grid;
    align-items: start;
}

.grid-hippo-container {
    grid-template-columns: repeat(4, calc((100% - 3 * 16px) / 4));
    grid-column-gap: 16px; /* $spacer-2xs */
    grid-row-gap: 0;
    grid-auto-columns: calc((100% - 3 * 16px) / 4);
}

.grid-hippo-container-two-cols {
    grid-template-columns: repeat(2, calc((100% - 16px) / 2));
    grid-auto-columns: calc((100% - 16px) / 2);
}

.grid-hippo-container-three-cols {
    grid-template-columns: repeat(3, calc((100% - 2 * 16px) / 3));
    grid-auto-columns: calc((100% - 2 * 16px) / 3);
}

/* Not used */
.grid-hippo-container2 {
    grid-template-columns: 1fr 2fr;
    grid-gap: 3px;
    gap: 5px;
}

.grid-hippo-container3 {
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 50px;
}

/* ------------------------------
   Others
------------------------------ */
.h-separator {
    height: 0.5px;
    background-color: var(--hippo-gray-lighter);
    margin: 5px 0;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.05);
}


.h-title {
    grid-row: 1;
    margin-bottom: 3px;
}

.h-title2 {
    grid-row: 1;
    margin-bottom: 10px;
}

.h-title3 {
    margin-bottom: 5px;
    margin-top: 5px;
}

.h-title4 {
    grid-row: 1;
    margin-bottom: 8px;
}

.h-block-heading {
    margin-bottom: 16px; /* $spacer-2xs */
}

.currency {
    /* width: 70px; */
}

.countries {
    width: 150px;
}

.heat_source {
    width: 135px;
}

.h-default-value {
    color: #ccc;
    transition: color 0.3s ease;
}


.h-default-value.clicked {
    color: #000;
}

/* ------------------------------
   Dropdown Styles
------------------------------ */
.h-dropdown {
    width: 100%;
    position: relative;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.h-dropdown.currency {

}

.h-dropdown.fate {

}

/* Placeholder text inside the dropdown */
.h-dropdown .placeholder {
    display: none;
}

/* Adjust placeholder when dropdown is active */
.h-dropdown .placeholder.shrunk {
    top: 10px;
    font-size: 9px;
    color: #333;
    transform: none;
}

.h-dropdown .options {
    display: none;
    background-color: white;
    position: absolute;
    width: 100%;
    border: 2px solid var(--hippo-gray-8);
    border-top: none;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.h-dropdown.active .options {
    display: block;
}

.h-dropdown.active .placeholder {
    color: var(--hippo-primary-color);
}

.h-dropdown .selected {
    padding: 0 25px 0 10px;
    height: 36px;

    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    border: 2px solid var(--neutral-200);
    /* transition: border-color 0.6s ease; */
    white-space: nowrap;
    text-overflow: ellipsis;
}

.h-dropdown .selected:hover {
    border-color: var(--neutral-300);
}

.h-dropdown .option {
    padding: 5px 10px;
    background-color: white;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.4em;
}

.h-dropdown .option:hover, .h-dropdown :hover {
    background-color: var(--hippo-gray-lighter);
}

.h-dropdown .selected-adjusted {
    padding-top: 10px;
    padding-bottom: 0;
    transition: padding 0.2s ease;
}

.h-dropdown .selected::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
    transition: transform 0.3s ease;
}

.h-dropdown.active .selected::after {
    transform: translateY(-50%) rotate(180deg);
}

.h-dropdown.active .selected {

}


/* ------------------------------
   Button Styles
------------------------------ */
.content2 {
    grid-row: 2;
    margin-bottom: 5px;
}

.Radio-button-group {
    width: 200px;
}

.h-radio-group {
    display: flex;
    flex-direction: column;
}

.h-radio {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 15px;
    position: relative;
    grid-row: auto;
    width: 100%;
    margin-right: 10px;
}

.h-radio input[type="radio"] {
    display: none;
}

.h-radio input[type="radio"]:checked + .h-radio-button + span {
    font-weight: 800;
    letter-spacing: 0.05em;
}

.h-radio-button {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(128, 128, 128, 0.54);
    border-radius: 50%;
    position: relative;
    margin-right: 10px;
    transition: all 0.3s ease;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

button.disabled {
    cursor: not-allowed;
}


.h-radio-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: transparent;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: all 0.3s ease;
    z-index: -1;
}

.h-radio input[type="radio"]:checked + .h-radio-button {
    border-color: var(--hippo-primary-color);
}

.h-radio:hover .h-radio-button::before {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.1);
}

.h-radio input[type="radio"]:checked:hover + .h-radio-button::before {
    background-color: var(--hippo-primary-color-lighter);
}

.h-radio input[type="radio"]:checked + .h-radio-button::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--hippo-primary-color);
    border-radius: 50%;
}

.h-radio input[type="radio"]:checked + .h-radio-button:hover::before {
    background-color: var(--hippo-primary-color-lighter);
}

/* SLIDER */
.h-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    max-width: 295px;
    cursor: pointer;
    outline: none;
    border-radius: 15px;
    height: 3px;
    background: var(--hippo-gray-light);
    background: linear-gradient(to right, var(--hippo-primary-color) 0%, var(--hippo-primary-color) 50%, var(--hippo-gray-light) 50%, var(--hippo-gray-light) 100%);
}

.h-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 17px;
    width: 17px;
    background-color: var(--hippo-primary-color);
    border-radius: 50%;
    border: none;
    transition: box-shadow 0.5s ease-in-out, .2s ease-in-out;
}

.h-slider::-moz-range-thumb {
    height: 14px;
    width: 14px;
    background-color: var(--hippo-primary-color);
    border-radius: 50%;
    border: none;
    transition: box-shadow 0.5s ease-in-out, .2s ease-in-out;
}


.h-slider::-webkit-slider-thumb:hover, .h-slider::-moz-range-thumb:hover {
    box-shadow: 0 0 0 10px var(--hippo-primary-color-light)
}

.h-slider:active::-webkit-slider-thumb, .h-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 13px var(--hippo-primary-color-lighter)
}

.h-slider:active::-moz-range-thumb, .h-slider:focus::-moz-range-thumb {
    box-shadow: 0 0 0 13px var(--hippo-primary-color-lighter)
}

.h-slider:focus:not(:active)::-webkit-slider-thumb {
    box-shadow: 0 0 0 0 var(--hippo-primary-color-lighter)
}

.h-slider:focus:not(:active)::-moz-range-thumb {
    box-shadow: 0 0 0 0 var(--hippo-primary-color-lighter)
}

.h-slider-hippo-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.h-slider-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    max-width: unset;
    margin-bottom: 20px;
}

.min-value, .max-value {
    font-size: 14px;
    width: 3em;
}

.min-value {
    margin-right: 0.5em;
    text-align: right;
}

.max-value {
    width: 4em;
    margin-left: 0.5em;
}

.h-unit {
    font-size: 14px;
    margin-left: 5px;
    width: 3em;
    white-space: nowrap;
}

/* INPUT FIELD */
.input-field-hippo-container {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
}

.h-input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 5px;
}

.h-input_box {
    position: relative;
    margin-bottom: 5px;
    width: 100%;
}

.hippo-container h2:has(+ .grid-hippo-container .heat_source) {
    margin-bottom: 0 !important;
}

.equipment_values-Q, .h-input_value, .h-value-field {
    width: 100%;
    height: 40px;
    font-size: 14px;
}


.h-value-field {
    font-size: 16px;
    line-height: 1.8em;
    height: auto;
    flex: 0 1 6em;
    max-width: 6em;
    margin-left: 0;
    padding-left: 0.5em;
    text-align: left;
    border: 2px solid var(--neutral-200);
    border-radius: 0;
    outline: none;
    color: var(--hippo-primary-color);
}

.h-value-field:focus,
.h-value-field:hover,
.h-value-field:active {
    border-color: var(--neutral-300);
}

.equipment_values-Q,
.h-input_value {
    width: 100%;
    height: auto;
    padding: 0 0 0 8px;
    font-size: 16px;
    line-height: 1.8em;
    box-sizing: border-box;
    border: 2px solid var(--neutral-200);
    border-radius: 0;
    outline: none;

}

.h-input_value::placeholder {
    color: var(--neutral-400);
    opacity: 1;
}

.h-input_value {
    color: var(--neutral-400);
    transition: color 0.2s ease-in-out;
}

.h-input_value:focus {
    color: black !important;
    border-color: var(--neutral-300);
}

.equipment_values-Q {
    margin-top: 5px;
}

/* COLUMNS */
.h-Base-group {
    margin-bottom: 30px;
}

.h-Base-group:has(.heat_source) {
    flex: 0 1 calc(50% - 8px);
    max-width: calc(50% - 8px);
}

.h-columns {
    display: flex;
    grid-column-gap: 16px;
    grid-row-gap: 0;
}

.h-left-column,
.h-right-column {
    display: flex;
    align-items: flex-start;
    flex: 0 1 50%;
    max-width: 50%;
}

.h-left-column {
    flex-direction: row;
    display: flex;
    grid-column-gap: 16px;
    grid-row-gap: 0;
}

.h-left-column .h-input-group,
.h-left-column .h-Base-group {
    flex: 0 1 50%;
}

.h-right-column {
    flex-direction: column;
}

/* TEXT LAYOUT */
.savings-description, .h-more-info {
    text-align: left;
    font-size: 16px;
    line-height: 1.5em;
}

.h-sub-heading {
    text-align: left;
    margin-bottom: 16px;
}

/* BUTTONS */

.pdf-button-hippo-container button,
.calculate-button-hippo-container button {
    width: auto;
    margin-right: 0;
}


.calculate-button-hippo-container {
    display: flex;
    justify-content: flex-start;
    margin-top: 5px;
}

.pdf-button-hippo-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* ------------------------------
   RESULTS
------------------------------ */
.result-value {
    font-size: 48px;
    font-weight: 400;
    color: var(--hippo-tertiary-color);
    line-height: 1.2em;
}

.results-hippo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10px;
    font-size: 12px;
}

.result-description {
    text-align: center;
    font-size: 12px;
    line-height: 1.2em;
    margin-bottom: 16px;

}

.result-description,
.h-unit {
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.05em;
}

.h-unit sub {
    letter-spacing: 0.1em;
}

.h-unit_result {
    text-align: center;
}

.image-hippo-container img {
    width: 100%;
    height: auto;
    display: block;
}

.stats-illustration {
    display: block;
    width: 100%;
    height: auto;
}

/* SPINNER */

.h-spinner-border {
    width: 5rem;
    height: 5rem;
    border: 0.6rem solid var(--hippo-primary-color);
    border-top: 0.6rem solid var(--hippo-gray-lighter);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.h-spinner-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* ------------------------------
   Responsive Styles
   Adjust layout for small screens
------------------------------ */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#pdfButton .text {
    line-height: 1.15em;
}


.hidden {
    display: none !important;
}

.input-wrapper {
    position: relative;
}

.input-placeholder {
    color: #999;
    transition: color 0.2s ease;
}

hr:has(+ #ccus-footnotes) {
    margin-top: 40px;
}

#ccus-footnotes {
    ol li {
        font-weight: 300;
        strong {
            font-weight: 700;
            letter-spacing: 0.05em;
        }
    }
}

/* Wenn das Input aktiv ist (fokussiert oder nicht leer), wird es hervorgehoben */
/* 
.input-wrapper:focus-within .input-placeholder,
.input-wrapper input:not(:placeholder-shown) + .input-placeholder {
    color: #0ba4a2;
} */

@media screen and (max-width: 1199.98px) {
    .hippo-containers-wrapper {
        display: block;
    }

    .input_hippo-container {
        max-width: unset;
        margin-bottom: 80px;
    }

    .output_hippo-container {
        max-width: unset;

        .result-value {
            font-size: 80px;
        }

        .result-description {
            font-size: 24px;
        }

        p:has(img) {
            text-align: center;
        }

        img {
            max-width: 500px;
            height: auto;
            margin: 40px auto 0 auto;
        }
    }
}

@media screen and (max-width: 991.98px) {
    .grid-hippo-container-three-cols,
    .grid-hippo-container {
        grid-template-columns: repeat(2, calc((100% - 16px) / 2));
        grid-auto-columns: calc((100% - 16px) / 2);
        gap: 16px;
    }

    .h-columns {
        flex-direction: column;
        gap: 16px;
    }

    .h-left-column,
    .h-right-column {
        flex: 1 1 auto;
        max-width: unset;
    }

    .h-left-column .h-Base-group {
        width: 100%;
    }

    .h-slider-hippo-container {

    }

    .h-slider {
        max-width: unset;
    }
}

@media screen and (max-width: 767.98px) {
    .grid-hippo-container-three-cols {
        grid-template-columns: repeat(1, 100%);
        grid-auto-columns: 100%;
    }

    .h-Base-group {
        margin-bottom: 16px;
    }

    .h-Base-group:has(.heat_source) {
        max-width: calc(50% - 8px);
        flex: 0 1 calc(50% - 8px);
    }

    .h-input_box {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .grid-hippo-container {
        grid-template-columns: repeat(1, 100%);
        grid-auto-columns: 100%;
    }

    .h-left-column {
        flex-direction: column;
        gap: 16px;
    }

    .h-Base-group:has(.heat_source) {
        flex: 1 0 100%;
        width: 100%;
        max-width: unset;
        display: block;
    }
}