.question-container {
    display: flex;
    flex-direction: column;
    padding: 1rem 1rem 5rem;
    box-sizing: border-box;
}

.question-header {
    flex-shrink: 0; /* bleibt nur so hoch wie nötig */
}

.question-body {
    gap: 1vmin;
}

.question-body .btn, .question-body table {
    width: 80%;
    margin-bottom: 0.5rem;
}

.question-nav {
    flex-shrink: 0; /* bleibt unten fix, Höhe nach Inhalt */
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
}

.nav-progress {
    margin-bottom: 1vmin;
    gap: .5vmin;
}

.nav-progress-element {
    height: 1vmin;
    flex-grow: 1;
    background-color: var(--background-color-darker-2);
}

.nav-progress-element._valid {
    background-color: var(--bs-success);
}
.nav-progress-element._invalid {
    background-color: var(--bs-danger);
}
.nav-progress-element._active {
    background-color: var(--bs-secondary);
}

.nav-buttons {
    width: 100%;
}

.__disabled {
    pointer-events: none; !important;
}

.btn, .form-group, .form-control {
    font-size: 1.5rem;
}

.outer-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.question-container {
    width: 50%; /* insgesamt 50% der Parent-Breite */
    display: flex;
    flex-direction: column;
}

.question-header {
    /* Header darf breiter sein als der Container, ohne Layout zu verschieben */
    width: auto;      /* passt sich dem Inhalt an */
    max-width: none;  /* keine Begrenzung */
    text-align: center;
    white-space: nowrap; /* verhindert Zeilenumbruch, optional */
    overflow: visible;   /* Inhalt darf über Container hinausgehen */
}

.question-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.question-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.form-group {
    width: 80%;
}

.var-prefix {
    font-size: 1.5rem;
    margin-right: 1vmin;
}

.connect-pairs-container {
    width: 80%;
}

.pair-container {
    gap: 2rem;
}

.pair-item {
    font-size: 1.5rem;
}

.connector {
    width: 1.75rem;
    height: 1.75rem;
    background-color: var(--background-color-lighter);
    border: .2rem solid var(--background-color-darker-2);
    border-radius: 50%;
    margin-left: 1vmax;
    margin-right: 1vmax;
}

.connector.__disabled {
    opacity: 0.5;
}

.connector-lines {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    pointer-events: none;
}

.question-time-container{
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
}

.question-time-bars {
    position: relative;
    height: 1vmin;
    margin-right: 1vmin;
    border-radius: 100px;
    overflow: hidden;
}

.question-time-bar-bg {
    /* Gradient über die volle Bar */
    background: linear-gradient(to right, var(--bs-danger), var(--bs-warning), var(--bs-success));
}

.question-time-bar-fill {
    background: var(--background-color-darker-2);
    width: 0;
    right: 0;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
/*    transition: width var(--time-limit) linear;*/
}

.question-time-display {
    font-size: 1.25rem;
    color: var(--bs-success);
    font-variant-numeric: tabular-nums;
}

.question-time-display._time {
    width: 2ch;
    text-align: right;
}

