.schnipsel {
  box-sizing: border-box;
  padding: 10px;
  background-color: #F4F7FA;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}



.faktor {
  padding: 10px;
  border: 5px solid #DDE8F2;
  background-color: #F4F7FA;

}

.tile-img {
  margin: 0 auto;
  margin-bottom: 6px;
  display: block;
  max-width: 150px;
  width: 100%;

}

h4 {
  text-align: center;
  font-weight: bold;
  color: #2F404F;
}


.formel {
  text-align: center;
  font-size: 2em;
  /* Größe der Formel */
  margin-top: 20px;
  margin-bottom: 20px;
}


table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2em;
  margin-top: 6px;
}

th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #fff;
  vertical-align: top;
}

th {
  background-color: #F4F8FB;
}

.math {
  /* font-family: 'Source Sans 3'; */
}


.row.equal-height {
  display: flex;
  flex-wrap: wrap;
  background-color: #DDE8F2;
  padding-bottom: 12px;
}

.row.equal-height>[class*="col-"] {
  display: flex;
  background-color: #DDE8F2;
  margin-bottom: 12px;

}


.schnipsel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 15px;
  box-sizing: border-box;
  align-items: center
}

.false {
  background-color: var(--false-background) !important;
  border: 2px solid red;
}

.panel-info {
  margin-top: 12px;
  position: relative;
}

.panel-info::before {
  top: -4px;
  left: -20px;
}

.panel-info h5.panel-title {
  padding-left: 24px;
  padding-right: 12px;
  position: relative;
}

.panel-info h5.panel-title .collapse-icon {
  position: absolute;
  right: -12px
}

.slider-wrapper {
  display: block;
  position: relative;
}

.faktor {
  position: relative;
  max-width: 100%;
  padding: 12px;

}

.faktor h4 {
  margin-top: 0px;
}

.slider-row,
.slider-wrapper {
  width: 400px;
}


.flex-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 1rem;
  width: fit-content;
  overflow-x: hidden;
}

.faktor {
  width: 100%;
}

.faktor {
  grid-row: span 5;
  display: grid;
  grid-template-rows: subgrid;
  padding: 0px 12px;
}


.custom-table {
  width: 100%;
}

.custom-table th {
  background-color: #F4F8FB;
}

.custom-table tbody td {
  font-weight: 400;
}

mjx-container[jax="CHTML"] {
  margin: 0 !important;
  padding-bottom: 12px;
}


.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: space-around;
}

.checkbox-row label span {
  display: block;
  width: 100%;
  text-align: center;
}

.checkbox-row img {
  max-width: 185px;
  padding: 6px 24px;
}


.checkbox-row .form-check-input+label {
  opacity: 0.8;
}

.form-check-input+label img {
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  -o-filter: grayscale(100%);
  filter: gray;
  -webkit-filter: grayscale(1);
  opacity: 0.7;
}

.form-check-input:checked+label {
  opacity: 1;
}

.form-check-input:checked+label img {
  filter: none;
  -webkit-filter: none !important;
  -moz-filter: none !important;
  -o-filter: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1;
}

.form-check-input:hover+label img {
  filter: grayscale(50%);
}

.form-check-input.cb-hidden {
  display: none;
}

.form-check.col-xs-6 {
  align-items: center;
  text-align: center;
}

/*Checkboxen*/

.checkbox-list {
  margin-top: 24px;
}

.checkbox-list .form-check,
.checkbox-list-ereignis .form-check {
  padding: 6px 3px;
  font-size: 16px;
}

.checkbox-list .form-check:nth-child(even) {
  background-color: #e6f8fc;
}

.checkbox-list-ereignis .form-check:nth-child(even) {
  background-color: #fcedf2;
}

.checkbox-list .form-check,
.checkbox-list-ereignis .form-check {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.checkbox-list .form-check .form-check-input {
  position: relative;
  width: 20px !important;
  min-width: 20px;
  right: -12px
}

.checkbox-list .form-check label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px;
  padding-right: 30px;
  cursor: pointer;
  font-weight: 400;
}


mjx-mtd {
  text-align: left !important;
}

.faktor p,
.schnipsel li{
  font-weight: 400;
}

p.bold{
  font-weight: bold;
}

@media (max-width: 1024px) {
  .flex-grid {
    grid-template-columns: 1fr;
  }

  .faktor {
    justify-items: center;
  }
}


@media (max-width: 960px) {
  .formel {
    font-size: 1.5em;
  }
}

@media (max-width: 650px) {
  .formel {
    font-size: 1.2em;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .source a{
    word-wrap: break-word;
  }
}
