:root {
    --evl-primary: mediumseagreen;
    --evl-primary-darker: #479268;
    --evl-primary-lighter: rgba(60, 179, 113, 0.2);
    --bg-light-gray: #f5f5f5;
}

/* Pflichtfeld-Stern: required-Klasse sitzt am Wrapper */
.required-star,
.mb-3.required > label.form-label::after,
.required > label.form-label::after,
.required label.form-label::after {
  content: " *";
  color: #dc3545;
  font-weight: 700;
}

/* === EvaLite: Frage-Container === */
form .mb-3 {
  background: #f8f9fa;          /* Bootstrap gray-100 */
  border: 1px solid #e9ecef;    /* feiner Rahmen */
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 1rem;
}

/* === Frage-Label === */
form .mb-3 > .form-label {
  font-size: 1.2rem;      /* größer als Standard */
  font-weight: 600;       /* semibold */
  line-height: 1.4;
  margin-bottom: 12px;
  color: #212529;         /* Bootstrap body */
}

/* === EvaLite: Choice-Layouts === */

/* Container der Optionen */
form .mb-3 > div[id^="id_"] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 18px;
}

/* Ab md: zwei Spalten */
@media (min-width: 768px) {
  form .mb-3 > div[id^="id_"] {
    grid-template-columns: 1fr 1fr;
  }
}

/* Einzelne Option */
form .form-check {
  margin: 0;
}

/* Lange Labels sauber umbrechen */
form .form-check-label {
  line-height: 1.35;
}

/* Headings NICHT wie Frage aussehen lassen */
form .mb-3:has(h5.mb-1) {
  background: transparent;
  border: none;
  padding: 0;
}

/* Orignal styles below */

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: inherit;
}

img {
    max-width: 100%;
}

h1 {
    font-size: 1.8rem;
}
h2 {
    font-size: 1.5rem;
}

.bi {
    width: 1.3rem;
    height: 1.3rem;
    vertical-align: text-bottom;
}

.text-primary {
    color: var(--evl-primary) !important;
}

.btn {
    font-weight: 500;
}

.btn-primary, .btn-outline-primary {
    border: 2px solid var(--evl-primary);
}

.btn-primary {
    background: var(--evl-primary);
}

.btn-outline-primary {
    color: var(--evl-primary);
}

.btn-primary:hover, .btn-primary:focus, .btn-outline-primary:hover {
    background: var(--evl-primary-darker);
    border-color: var(--evl-primary-darker);
}

.btn:hover, .btn:focus, input:focus, select:focus, textarea:focus {
    box-shadow: none !important;
}

.btn-outline-secondary, .btn-outline-danger {
    border-width: 2px;
}

.btn-xs {
    padding: 0.15rem 0.25rem;
    line-height: 1.1;
}

.btn-xs .bi {
    width: 1.1rem;
    height: 1.1rem;
}

.mt-6 {
    margin-top: 4.5rem;
}

.mb-6 {
    margin-bottom: 4.5rem;
}

.mw-30 {
    max-width: 30%;
}

.bg-primary-light {
    background-color: var(--evl-primary-lighter);
}

.bg-gray {
    background-color: var(--bg-light-gray);
}

.link-underline:hover {
    text-decoration: underline;
}

.col-auto:has(.step-circle) {
    --sc-border-width: 3px;
    --sc-font-size: 2.2rem;
    --sc-line-height: 1.5;
}

.step-circle {
    position: relative;
    width: calc(var(--sc-line-height) * var(--sc-font-size) + 2 * var(--sc-border-width));
    background-color: white;
    border: var(--sc-border-width) solid var(--evl-primary);
    border-radius: 50%;
    text-align: center;
    font-size: var(--sc-font-size);
    font-weight: bold;
    line-height: var(--sc-line-height);
    color: var(--evl-primary);
}

.step-circle.active {
    background-color: var(--evl-primary);
    color: white;
}

.col-auto:has(.step-circle)::after {
    content: "";
    position: absolute;
    top: calc(50% - 0.5 * var(--sc-border-width));
    left: 0;
    width: 100%;
    height: var(--sc-border-width);
    background-color: var(--evl-primary);
    z-index: -1;
}

.step-circle a:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 1.5rem);
    z-index: 2;
}

.step-label {
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    width: 100%;
    font-weight: 500;
    color: var(--evl-primary);
    z-index: 1;
}

form label {
    font-weight: 500;
}

.single-form:has(
    input[name$="-order"][value$='1'],
    input[name$="-order"][value$='3'],
    input[name$="-order"][value$='5'],
    input[name$="-order"][value$='7'],
    input[name$="-order"][value$='9']) {
    background-color: var(--bg-light-gray);
}
/* https://stackoverflow.com/questions/61933662/how-can-i-select-all-the-elements-whose-attribute-value-is-odd */

.question-config {
    overflow-y: scroll;
}

#scale-infos .modal-dialog {
    max-width: 750px;
}

#area-example .modal-dialog {
    max-width: 850px;
}

.single-question.active {
    background-color: var(--evl-primary-lighter);
}


/* source: https://css-loaders.com/classic/ */
.loader {
    display: inline-block;
    width: 20px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px solid;
    border-color: var(--evl-primary) #0000;
    animation: l1 1s infinite;
}

@keyframes l1 {
    to {
        transform: rotate(.5turn)
    }
}

/* endsource */