.energieausweis {
    background: #fff;
    padding: 2rem;
    border: 1px solid #ccc;
    font-family: sans-serif;
    margin-bottom: 2rem;
    margin-top: 2rem;
    width: 100%;
    max-width: none;
}

.energie-hinweis {
    margin-top: 2rem;
    font-style: italic;
    color: #666;
}

.energieausweis h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: #2a2a2a;
}

.energie-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
    margin-bottom: 2rem;
}

.energie-grid .field {
    margin-bottom: 5px;
}

.energie-grid .label {
    font-weight: bold;
    color: #666;
    display: block;
}

.energie-grid .value {
    color: #000;
    display: block;
}

.energie-balken {
    position: relative;
    margin-top: 30px;
    padding-top: 20px;
}

.skala {
    display: flex;
    height: 45px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    overflow: hidden;
    border-radius: 4px;
}

.skala span {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skala .a-plus { background: #007f00; }  /* dunkles grün */
.skala .a     { background: #33a02c; }
.skala .b     { background: #66bb33; }
.skala .c     { background: #d6e63d; color: #000; }
.skala .d     { background: #f4eb2f; color: #000; }
.skala .e     { background: #ffcc00; color: #000; }
.skala .f     { background: #ff9900; }
.skala .g     { background: #ff3300; }
.skala .h     { background: #cc0000; }

.anzeiger {
    position: absolute;
    top: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    color: #000;
    font-weight: bold;
    font-size: 14px;
    flex-direction: column;
}

.anzeiger span {
    background: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -2px;
}

.anzeiger::after {
    content: "▲";
    font-size: 18px;
    color: #000;
}

/* Positionierung je nach Klasse */
.klasse-a-plus  { left: 0%; }
.klasse-a       { left: 12.5%; }
.klasse-b       { left: 25%; }
.klasse-c       { left: 37.5%; }
.klasse-d       { left: 50%; }
.klasse-e       { left: 62.5%; }
.klasse-f       { left: 75%; }
.klasse-g       { left: 87.5%; }
.klasse-h       { left: 100%; }

.energie-tabelle-zweispaltig {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 1rem;
}

.energie-tabelle {
    width: 49%;
    border-collapse: collapse;
    font-family: sans-serif;
}

.energie-tabelle tr:nth-child(even) {
    background-color: #f2f2f2;
}

.energie-tabelle td {
    padding: 8px 12px;
    vertical-align: top;
}

.energie-tabelle .label {
    width: 60%;
    font-weight: normal;
}

.energie-tabelle .value {
    text-align: right;
    font-weight: bold;
}

/* Optional: Responsives Verhalten */
@media (max-width: 768px) {
    .energie-tabelle {
        width: 100%;
    }
}

