.avrechner {
  display: flex;
  gap: 10px;
  font-size: 14px;
  margin: 20px 0px;
  align-items: flex-start;
}

.avrechner {

  .fs-small {
    font-size: 12px;
  }

  .fc-gray {
    color: #707070;
  }

  .fc-green {
    color: #145F00;
  }

  .fc-highlighted {
    color: #8743F1;
  }

  .inputs,
  .results,
  .input-block {
    border: 1px solid #E6E7E8;
    border-radius: 10px;
    padding: 15px;
    background-color: #fff;
  }

  .inputs {
    min-width: 340px;
    width: 35%;
    padding-bottom: 0;
  }

  .frame-simple {
    border: 1px solid #E6E7E8;
    border-radius: 10px;
    padding: 15px;
    background-color: #fff;
    margin-bottom: 20px;
  }

  .frame-highlighted {
    border: 1px solid #F5F1FF;
    border-radius: 10px;
    padding: 15px;
    background-color: #F5F1FF;
    margin-bottom: 20px;
  }
  .frame-green {
    border: 1px solid #E9F6E5;
    border-radius: 10px;
    padding: 15px;
    background-color: #E9F6E5;
    margin-bottom: 20px;
  }


  .input-block {
    margin-bottom: 15px;
  }

  .results {
    width: 70%;
  }

  .textsummary {
    border-radius: 10px;
    padding: 15px;
    background-color: #F5F1FF;
    font-size: 15px;
    color: #000;
    margin-bottom: 20px;
  }

  .avr-h2 {
    font-size: 30px;
    font-weight: 700;
    margin-top: 0;
    line-height: 1.25;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    gap: 10px 20px;
    flex-wrap: wrap;
  }
  .avr-h3 {
    font-size: 21px;
    font-weight: 700;
    margin-top: 0;
    line-height: 1.25;
    margin-bottom: 30px;
  }

  .fieldlayout-hor {
    display: flex;
    align-items: center;
    justify-content:space-between;
    gap: 20px;

    .field-label {
      margin-bottom: 0;
    }
  }

  .inputs-row {
    margin-bottom: 25px;
  }
  .field-label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
  }

  /* Target Input */
  input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    cursor: pointer;
    border: none;
    display: block;
  }

  /* --- Webkit Browsers --- */
  input[type=range]::-webkit-slider-runnable-track {
    height: 5px;
    background: linear-gradient(to right, #8743f1 var(--range-pct, 0%), #e2e8f0 var(--range-pct, 0%));
    border-radius: 0px;
    border: none;
  }

  input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    background: #8743f1;
    border-radius: 8px;
    border: none;
    margin-top: -5.5px;
  }

  /* --- Firefox --- */
  input[type=range]::-moz-range-track {
    height: 5px;
    background: linear-gradient(to right, #8743f1 var(--range-pct, 0%), #e2e8f0 var(--range-pct, 0%));
    border-radius: 0px;
    border: none;
  }

  input[type=range]::-moz-range-thumb {
    height: 16px;
    width: 16px;
    background: #8743f1;
    border-radius: 8px;
    border: 0px solid #ffffff;
  }

  .slide-container {
    position: relative;
  }

  .slide-wrapper {
    display: flex;
    height: 25px;
    align-items: center;
  }

  .slide-labels {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 20px;
    width: 100%;
    color: #707070;
  }

  .inputfield-block {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
  }

  select, input[type=text] {
    width: 140px;
    height: 40px;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
    font-weight: bold;
    background: #fff;
    border: 1px solid #ced4da;
  }

  .field-note {
    border-radius: 10px;
    background-color: #F5F1FF;
    padding: 15px;
    font-size: 14px;
    color: #525252;
    margin-bottom: 20px;
  }

  .field-note .taxrate {
    color: #8743F1;
    font-size: 29px;
    font-weight: bold;
  }

  .field-note .payout-length {
    color: #8743F1;
    font-size: 15px;
    font-weight: bold;
  }

  .miniboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
  }

  .miniboxes>div {
    max-width: 160px;
  }

  .miniboxes-2>div {
    max-width: 300px;
    flex: 1 0 0;
  }

  .minibox-title {
    font-weight: bold;
    min-height: 42px;
  }
  .minibox-number {
    font-size: 27px;
    font-weight: bold;
    white-space: nowrap;
  }

  .children-btn {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
  }

  .children-btn a:hover {
    background-color: #F5F1FF;
  }

  input.children {
    border-radius: 0;
    width: 60px;
  }

  .btn-remove-children {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border: 1px solid #ced4da;
    height: 40px;
    width: 40px;
    line-height: 40px;
    text-align: center;
    display: block;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
  }

  .btn-add-children {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 1px solid #ced4da;
    height: 40px;
    width: 40px;
    line-height: 40px;
    text-align: center;
    display: block;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
  }

  input.child-age {
    width: 75px;
    padding-left: 0;
    padding-right: 0;
  }

  select.child-money {
    width: 170px;
    font-weight: normal;
    font-size: 14px;
  }

  .child-row {
    margin: 10px 0px;
  }

  .child-fields {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: space-between;
  }

  .child-index {
    min-width: 40px;
  }

  .details-table .component-content .subcomponent,
  .details-table .component-content .sub2component,
  .details-table .component-content .componentsum,
  .details-table .maincomponent
  {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }

  .sub2component {
    color: #707070;
    padding-left: 20px;
    padding-right: 0px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .btn {
    font-size: 16px;
    line-height:1;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ced4da;
    cursor: pointer;
    white-space: nowrap;
  }

  .btn:hover {
    background-color: #F5F1FF;
  }

  .btn-reset-defaults {
    font-size: 16px;
  }

  .btn .avr-icon,
  .btn-reset-defaults .avr-icon {
    margin-right: 8px;
    display: inline-block;
  }

  .delete-row {
    cursor: pointer;
    text-decoration: none;
    user-select: none;
  }

  .delete-row:hover {
    text-decoration: none;
  }

  .togglebox {
    border: 1px solid #F5F1FF;
    border-radius: 10px;
    overflow: hidden;
  }

  .togglebox-header {
    font-size: 20px;
    background-color: #F5F1FF;
    font-weight: bold;
    border-radius: 10px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .togglebox-header-text {
    padding: 15px 20px;
    padding-right: 60px;
  }

  .togglebox-header-text:focus-visible
  {
    border: 1px solid #8743F1;
    border-radius: 10px;
  }

  .togglebox-caret {
    width: 15px;
    height: 15px;
    background-size: contain;
  }

  .togglebox-content {
  }

  .togglebox-content-inner {
    padding: 20px;
  }

  .togglebox {
    .togglebox {
      border: 1px solid #E6E7E8;
      border-radius: 10px;
      overflow: hidden;

      .togglebox-header {
        font-size: 16px;
        background-color: transparent;
        font-weight: bold;
        border-radius: 10px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
      }

      .togglebox-header-text {
        padding: 15px 20px;
        padding-right: 60px;
      }

      .togglebox-caret {
        right: 40px;
      }

      .togglebox-content-inner {
        border-top: 1px solid #E6E7E8;
        padding: 20px;
      }

    }
  }

  .component {
    display: flex;
    width: 100%;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E6E7E8;
    margin-bottom: 15px;
    padding-right: 20px;
  }

  .component:last-child {
    padding-bottom: 0px;
    border-bottom: none;
    margin-bottom: 0px;
  }

  .component-icon svg {
    padding: 5px;
    background-color: #F5F1FF;
    border-radius: 10px;
  }

  .component-content {
    flex-grow: 1;
  }

  .component-icon {
    width: 50px;
  }

  .text-header {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .maincomponent {
    font-size: 20px;
  }

  .subcomponent {
    font-size: 16px;
    padding: 15px 0px;
    border-bottom: 1px solid #E6E7E8;
  }

  .subcomponent:last-child {
    border-bottom: none;
  }

  .subcomponent.noborder {
    border-bottom: none;
  }

  .componentsum {
    font-size: 18px;
    padding: 20px;
    background-color: #F5F1FF;
    border-radius: 10px;
    border-bottom: none;
    margin: 0px -20px;
  }

  .componentsum .money {
    font-size: 20px;
    font-weight: bold;
    color: #8743F1;
  }

  .jobstartbonus {
  }

  .infotext {
    color: #707070;
    font-size: 14px;
  }

  .money {
    white-space: nowrap;
  }

  .total-subsidy-frame {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
  }

  .frame-content-title {
    font-size: 20px;
    font-weight: bold;
  }

  .total-subsidy-frame .money {
    font-size: 20px;
    font-weight: bold;
    color: #8743F1;
  }

  .input-block-header {
    margin-bottom: 0;
  }

  .input-block-counter {
    display: none;
    width: 28px;
    height: 28px;
    background-color: #F5F1FF;
    color: #8743F1;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    vertical-align: center;
    margin-right: 10px;
  }

  .input-block-content>div:first-child {
    padding-top: 30px;
  }

  .btn-forward {
    color: #fff;
    background-color: #8743F1;
    border-radius:10px;
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    padding: 10px;
    cursor:pointer;
    display: none;
  }

  .field-error {
    color: red;
    margin-bottom: 10px;
    font-size: 14px;
  }

  .icon-popover {
    background-image: none;
    border: 2px solid #8743F1;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    font-size:16px;
    padding-bottom: 1px;
    padding-top: 1px;
  }

  .icon-popover:hover {
    text-decoration: none;
  }

  .icon-popover[aria-describedby] {
    background-color: #8743F1;
    color: #fff;
  }

  .section-top {
    display: flex;
    flex-direction: column;
  }

  .tooltip-series-name {
    display: inline-block;
  }

  .avr-chart-tooltip-content {
    min-width: 180px;
  }

  .tooltip-header {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
  }

  .tooltip-square {
    margin-right: 5px;
  }

  .tooltip-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }


}

@media screen and (max-width: 1120px) {
  .avrechner {
    .miniboxes-1>div {
      flex: 1 0 0;
      min-width: 40%;
      max-width: 100%;
      margin-bottom: 0;
    }
  }
}

@media screen and (max-width: 900px) {
  .avrechner {
    flex-direction: column;
  }

  .avrechner {

    .inputs {
      width: 100%;
      border: none;
      padding: 0;
    }
    .results {
      width: 100%;
      border: none;
      padding: 0;
    }

    .results .avr-h2 {
      display: none;
    }

    .chart-container {
      background-color: transparent !important;
    }

    .section-top .miniboxes {
      order: 2;
    }

    .section-top .chart-container {
      order: 1;
    }

    .section-top {
      background-color: #F5F2FC;
      margin: 0 -30px;
      padding: 30px;
    }

    .section-bottom {
      border: none;
      padding: 0;
      margin-top: 30px;
    }

    .chart-container {
      border: none;
      padding: 0;
    }

    .input-block-counter {
      display: inline-flex;
    }

    .input-block-header {
      cursor: pointer;
    }

    .btn-forward {
      display: block;
    }

    .miniboxes-1>div {
      background-color: #fff;
      border: 1px solid #E6E7E8;
      flex: 1 0 0;
      margin-bottom: 0;
    }

    .miniboxes-1>div:nth-child(1) {
      max-width: 100%;
      width: 100%;
      min-width: 100%;
    }
    .miniboxes-1>div:nth-child(2) {
      max-width: 100%;
      width: 100%;
      min-width: 100%;
    }
    .miniboxes-1>div:nth-child(3) {
      max-width: 50%;
      min-width: calc(50% - 15px);
    }
    .miniboxes-1>div:nth-child(4) {
      max-width: 50%;
      min-width: calc(50% - 15px);
    }

    .miniboxes-2>div {
      margin-bottom: 0;
    }

    .miniboxes-2>div:nth-child(1) {
      flex: 1 0 0;
      max-width: 100%;
    }
    .miniboxes-2>div:nth-child(2) {
      flex: 1 0 0;
      max-width: 100%;
    }

    .miniboxes-2>div.frame-green {
      width: 100%;
      max-width: 100%;
      flex: 1 0 100%;
    }

  }
}

@media screen and (max-width: 560px) {
  .avrechner {
    .input-block-header {
      font-size: 16px;
    }

    .input-block-header * {
      vertical-align: center;
    }

    .component-icon {
      display: none;
    }
  }
}
