/* Energieverbrauch / CO2 – Pkw-EnVKV block for vehicle detail pages */
.energy-info {
    padding-top: 60px;
    padding-bottom: 20px;
}

.energy-info .energy-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 0 20px;
    background: none;
    border: 0;
    border-bottom: 1px solid #AAAAA0;
    font: bold 30px 'Spezia Extended';
    color: #000D35;
    text-align: left;
    cursor: pointer;
}

.energy-info .energy-toggle:focus {
    outline: none;
}

.energy-info .energy-toggle:hover {
    opacity: 0.8;
}

.energy-info .energy-toggle .energy-chevron {
    flex: 0 0 auto;
    margin-left: 30px;
    width: 14px;
    height: 14px;
    border-right: 2px solid #981008;
    border-bottom: 2px solid #981008;
    transform: rotate(-135deg);
    transition: transform 0.2s ease;
}

.energy-info .energy-toggle.collapsed .energy-chevron {
    transform: rotate(45deg);
}

.energy-info .collapse,
.energy-info .collapsing {
    padding-left: 0;
}

.energy-info .energy-body {
    padding-top: 40px;
    font-size: 24px;
    line-height: 1.3;
}

.energy-info h5 {
    font: bold 22px 'Spezia Extended';
    padding-bottom: 20px;
    margin: 0;
}

.energy-info .energy-sub {
    font-size: 20px;
    margin-bottom: 25px;
}

.energy-info .energy-section {
    padding-bottom: 50px;
}

.energy-table {
    width: 100%;
    border-collapse: collapse;
}

.energy-table th,
.energy-table td {
    padding: 9px 0;
    font-weight: normal;
    vertical-align: top;
}

.energy-table td {
    text-align: right;
    padding-left: 20px;
}

.energy-table tr.is-strong th,
.energy-table tr.is-strong td {
    font-family: 'Spezia Extended';
    font-weight: bold;
    font-size: 22px;
}

.energy-sep {
    border: 0;
    border-top: 1px solid #AAAAA0;
    margin: 10px 0 40px;
}

.energy-costs .energy-table tr.is-highlight th,
.energy-costs .energy-table tr.is-highlight td {
    background: #EBEBE6;
}

.energy-costs .energy-table tr.is-highlight th {
    padding-left: 12px;
}

.energy-costs .energy-table tr.is-highlight td {
    padding-right: 12px;
}

.energy-costs .energy-table .cost-value {
    font-family: 'Spezia Extended';
    font-weight: bold;
    white-space: nowrap;
}

.energy-note {
    font-size: 17px;
    color: #000D35;
    opacity: 0.75;
}

.energy-note p {
    margin-bottom: 8px;
}

/* CO2 class scale (A-G) */
.co2-scale {
    position: relative;
    max-width: 440px;
}

.co2-scale .co2-row {
    display: flex;
    align-items: center;
    height: 36px;
    margin-bottom: 6px;
}

.co2-scale .co2-bar {
    position: relative;
    height: 36px;
    padding-left: 10px;
    color: #fff;
    font: normal 20px/36px 'Spezia Condensed';
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}

.co2-scale .class-A .co2-bar { width: 110px; background: #5BA85F; }
.co2-scale .class-B .co2-bar { width: 128px; background: #7DC25B; }
.co2-scale .class-C .co2-bar { width: 146px; background: #BCDB5C; }
.co2-scale .class-D .co2-bar { width: 164px; background: #F4F25F; color: #000D35; }
.co2-scale .class-E .co2-bar { width: 182px; background: #E8B94C; }
.co2-scale .class-F .co2-bar { width: 200px; background: #D9763D; }
.co2-scale .class-G .co2-bar { width: 218px; background: #C0392F; }

.co2-scale .co2-marker {
    position: relative;
    margin-left: 32px;
    height: 36px;
    min-width: 62px;
    padding-right: 12px;
    padding-left: 22px;
    background: #000;
    color: #fff;
    font: bold 20px/36px 'Spezia Extended';
    text-align: right;
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
}

@media only screen and (max-width: 991px) {
    .energy-info .energy-toggle {
        font-size: 22px;
    }

    .energy-info .energy-body {
        font-size: 20px;
    }
}

@media only screen and (max-width: 500px) {
    .energy-info {
        padding-top: 40px;
    }

    .energy-info .energy-toggle {
        font-size: 18px;
    }

    .energy-info .energy-body {
        font-size: 17px;
    }

    .energy-table td {
        padding-left: 12px;
    }

    .co2-scale .class-G .co2-bar { width: 180px; }
    .co2-scale .class-F .co2-bar { width: 166px; }
    .co2-scale .class-E .co2-bar { width: 152px; }
    .co2-scale .class-D .co2-bar { width: 138px; }
    .co2-scale .class-C .co2-bar { width: 124px; }
    .co2-scale .class-B .co2-bar { width: 110px; }
    .co2-scale .class-A .co2-bar { width: 96px; }
}
