body {
    font-family: Arial, sans-serif;
    background-color: #f4f8fb;
    margin: 0;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-row {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
}

.input-row input {
    width: 100px;
    padding: 6px;
    border-radius: 5px;
    border: 1px solid #ccc;
}


#scrollAnchor {
    height: 5px;   /* Abstand nach unten */
}

td[align="center"] {
    max-height: 80vh;  /* Höhe definieren */
    overflow-y: auto;  /* Scroll aktivieren */
}

/* Hauptcontainer */
.container-main {
   /*  width: 80%; */
    width: 920px;
    background-color: #e6f2fb;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 2-Spalten Layout */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 15px;
    column-gap: 20px;
}

/* Linke Spalte */
.label {
    font-weight: normal;
    color: #333;
}

/* Rechte Spalte */
.highlight {
    font-weight: bold;
    color: darkblue;
}

/* Buttonbereich rechts unten */
.button-row {
    display: flex;
    justify-content: flex-end;
     margin-top: 25px; 
     margin-bottom: 0;
}

/* Roter Button */
.btn-red {
    background-color: #d62828;
    color: white;
    border: none;
    padding: 12px 22px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-red:hover {
    background-color: #a61c1c;
}

/* Zweiter Container */
.container-result {
   /*  width: 80%; */
    width: 920px;
    margin-top: 0px;
    background-color: #e6f2fb;
        padding: 0px 30px 30px 30px; 
    /* oben 0px, rechts 30px, unten 30px, links 30px */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Versteckt */
.hidden {
    display: none;
}
/* Progress Wrapper */
.progress-wrapper {
    margin-bottom: 10px;
}

/* Aussenrahmen */
.progress-bar {
    width: 100%;
    height: 28px;
    background-color: #cfe7f7;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    position: relative; /* wichtig für absolut positionierten Fill */
}

/* Innerer Fortschritt */
.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4da3d9, #1e81ce);
    position: absolute; /* jetzt Start immer links */
    top: 0;
    left: 0;
    text-align: right;
    color: white;
    font-weight: bold;
    padding-right: 8px; /* Abstand Text vom rechten Rand */
    transition: width 0.2s linear;
    border-radius: 20px 0 0 20px; /* Rundung nur links */
    display: flex;              /* wichtig */
    align-items: center;        /* vertikal zentriert */
    justify-content: flex-end;  /* rechts im Balken */
}

.result-card {
    font-size: 14px; /* Basisgroesse */
}

.result-grid.header {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.5px;
}

.result-grid.data {
    font-size: 20px;
}

.result-right {
    text-align: right;
    font-variant-numeric: tabular-nums;
}



