/**
 * EMB Baggerkonfigurator – Preisübersicht und Dokumentlinks
 * Version 2.05.51
 *
 * Enthält ausschließlich die Darstellung des Preisblocks sowie der
 * konfigurationsbezogenen Dokumente und externen Links.
 * Preisberechnung, Knockout-Logik und Datenquellen bleiben unverändert.
 */

#konfiguration.configuration-page--highend #configuration_price {
    position: relative;
    z-index: 0;
    order: 1;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
}

#konfiguration.configuration-page--highend .price-summary__row,
#konfiguration.configuration-page--highend .price-summary__toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(135px, auto) 22px;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 62px;
    margin: 0;
    padding: 15px 0;
    border: 0;
    border-bottom: 1px solid var(--fe-line);
    border-radius: 0;
    background: transparent;
    color: var(--fe-ink);
    box-shadow: none;
    text-align: left;
}

#konfiguration.configuration-page--highend .price-summary__row::after {
    width: 22px;
    content: "";
}

#konfiguration.configuration-page--highend .price-summary__label,
#konfiguration.configuration-page--highend .price-summary__toggle > span:first-child {
    min-width: 0;
    color: var(--fe-muted);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

#konfiguration.configuration-page--highend .price-summary__value,
#konfiguration.configuration-page--highend .price-summary__toggle > strong {
    justify-self: end;
    color: var(--fe-ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
}

#konfiguration.configuration-page--highend .price-summary__toggle {
    cursor: pointer;
}

#konfiguration.configuration-page--highend .price-summary__toggle:hover:not(.is-disabled),
#konfiguration.configuration-page--highend .price-summary__toggle:focus-visible {
    color: var(--fe-accent-dark);
    background: #f7fbfb;
}

#konfiguration.configuration-page--highend .price-summary__toggle:focus-visible {
    outline: 2px solid var(--fe-accent);
    outline-offset: 2px;
}

#konfiguration.configuration-page--highend .price-summary__toggle.is-disabled {
    cursor: default;
}

#konfiguration.configuration-page--highend .price-summary__chevron {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: var(--fe-accent);
    font-size: 20px;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform .24s ease;
}

#konfiguration.configuration-page--highend .price-summary__toggle.is-open .price-summary__chevron {
    transform: rotate(180deg);
}

#konfiguration.configuration-page--highend .price-breakdown {
    position: static;
    display: none;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 6px 0 10px 18px;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid var(--fe-line);
    border-radius: 0;
    background: #fbfcfc;
    box-sizing: border-box;
    clear: both;
}

#konfiguration.configuration-page--highend .price-breakdown__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: 44px;
    padding: 10px 8px;
    border-bottom: 1px solid #edf1f3;
    box-sizing: border-box;
    font-size: 14px;
}

#konfiguration.configuration-page--highend .price-breakdown__row:last-child {
    border-bottom: 0;
}

#konfiguration.configuration-page--highend .price-breakdown__row > span {
    min-width: 0;
    overflow: hidden;
    color: var(--fe-ink);
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#konfiguration.configuration-page--highend .price-breakdown__row > strong {
    color: var(--fe-ink);
    font-size: 14px;
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
}


#konfiguration.configuration-page--highend .price-breakdown__row > .price-breakdown__basis {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    overflow: visible;
    white-space: normal;
}

#konfiguration.configuration-page--highend .price-breakdown__basis-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#konfiguration.configuration-page--highend .price-breakdown__basis-replacement {
    display: block;
    color: #8b4d45;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

#konfiguration.configuration-page--highend .price-breakdown__row--replaced {
    background: #fff8f6;
}

#konfiguration.configuration-page--highend .price-breakdown__row--replaced .price-breakdown__basis-name {
    color: #7b858b;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

#konfiguration.configuration-page--highend .price-breakdown__row--replaced > strong {
    color: #a33b2f;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.app-body--frontend #content.frontend-main #konfiguration.configuration-page--highend #objectlist .configuration-option--basis-replaced {
    border-color: #e6cbc6;
    background: #fff8f6;
}

body.app-body--frontend #content.frontend-main #konfiguration.configuration-page--highend #objectlist .configuration-option--basis-replaced input:disabled,
body.app-body--frontend #content.frontend-main #konfiguration.configuration-page--highend #objectlist .configuration-option--basis-replaced input:disabled + label,
body.app-body--frontend #content.frontend-main #konfiguration.configuration-page--highend #objectlist .configuration-option--basis-replaced input:disabled ~ .objectprice {
    opacity: 1;
    cursor: default;
}

body.app-body--frontend #content.frontend-main #konfiguration.configuration-page--highend #objectlist .configuration-option--basis-replaced label {
    color: #7b858b;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

body.app-body--frontend #content.frontend-main #konfiguration.configuration-page--highend #objectlist .configuration-option--basis-replaced .objectprice {
    color: #a33b2f;
}

#konfiguration.configuration-page--highend .price-summary__total {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 20px;
    width: 100%;
    min-height: 68px;
    margin-top: 18px;
    padding: 22px 0 8px;
    border-top: 2px solid var(--fe-accent);
    box-sizing: border-box;
}

#konfiguration.configuration-page--highend .price-summary__total > span {
    color: var(--fe-ink);
    font-size: 20px;
    font-weight: 850;
}

#konfiguration.configuration-page--highend .price-summary__total small {
    display: block;
    margin-top: 3px;
    color: var(--fe-muted);
    font-size: 12px;
    font-weight: 500;
}

#konfiguration.configuration-page--highend .price-summary__total > strong {
    color: var(--fe-ink);
    font-size: 24px;
    font-weight: 850;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

#konfiguration.configuration-page--highend #configuration_links {
    position: static;
    z-index: auto;
    order: 2;
    width: 100%;
    height: auto;
    margin: 26px 0 0;
    padding-top: 22px;
    clear: both;
    border-top: 1px solid var(--fe-line);
}

#konfiguration.configuration-page--highend #configuration_links > hr {
    display: none;
}

#konfiguration.configuration-page--highend .configuration-resources__title {
    margin: 0 0 14px;
    color: var(--fe-ink);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

#konfiguration.configuration-page--highend #configuration_docs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

#konfiguration.configuration-page--highend .configuration_doc {
    display: flex;
    float: none;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 10px 16px;
    border: 1px solid var(--fe-line);
    border-radius: 13px;
    background: #fafcfc;
    color: var(--fe-accent-dark);
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: border-color .18s ease, background-color .18s ease;
}

#konfiguration.configuration-page--highend .configuration_doc:hover {
    border-color: var(--fe-accent);
    background: #f2fafa;
    color: var(--fe-accent-dark);
}

#konfiguration.configuration-page--highend .configuration_doc:focus-visible {
    outline: 2px solid var(--fe-accent);
    outline-offset: 2px;
}

#konfiguration.configuration-page--highend .configuration_doc::before {
    flex: 0 0 auto;
    width: 22px;
    margin-right: 10px;
    color: var(--fe-accent);
    font-size: 17px;
    line-height: 1;
    text-align: center;
}

#konfiguration.configuration-page--highend .configuration_doc--file::before {
    content: "↓";
}

#konfiguration.configuration-page--highend .configuration_doc--external::before {
    content: "↗";
}

@media (max-width: 620px) {
    #konfiguration.configuration-page--highend .price-summary__row,
    #konfiguration.configuration-page--highend .price-summary__toggle {
        grid-template-columns: minmax(0, 1fr) auto 20px;
        gap: 8px;
    }

    #konfiguration.configuration-page--highend .price-summary__label,
    #konfiguration.configuration-page--highend .price-summary__toggle > span:first-child {
        font-size: 14px;
    }

    #konfiguration.configuration-page--highend .price-summary__value,
    #konfiguration.configuration-page--highend .price-summary__toggle > strong {
        font-size: 15px;
    }

    #konfiguration.configuration-page--highend .price-breakdown {
        padding-left: 8px;
    }

    #konfiguration.configuration-page--highend .price-breakdown__row {
        gap: 10px;
        padding-inline: 4px;
    }

    #konfiguration.configuration-page--highend .price-summary__total {
        gap: 12px;
    }

    #konfiguration.configuration-page--highend .price-summary__total > span {
        font-size: 17px;
    }

    #konfiguration.configuration-page--highend .price-summary__total > strong {
        font-size: 20px;
    }

    #konfiguration.configuration-page--highend #configuration_docs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    #konfiguration.configuration-page--highend .price-summary__row,
    #konfiguration.configuration-page--highend .price-summary__toggle {
        grid-template-columns: minmax(0, 1fr) auto 18px;
    }

    #konfiguration.configuration-page--highend .price-summary__total {
        grid-template-columns: 1fr;
        align-items: start;
    }

    #konfiguration.configuration-page--highend .price-summary__total > strong {
        justify-self: start;
        text-align: left;
    }

    #konfiguration.configuration-page--highend .price-breakdown__row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    #konfiguration.configuration-page--highend .price-breakdown__row > span {
        white-space: normal;
    }

    #konfiguration.configuration-page--highend .price-breakdown__row > strong {
        text-align: left;
    }
}
