:root {
  --link-color-light-mode: #000000;
  --link-color-dark-mode: #ffffff;
  --input-border: #617384;
  --input-text-color-light-mode: #ffffff;
  --input-text-color-dark-mode: #000000;
  --label-color: #949ca2;
  --radio-border-color: #617385;
  --radio-check-hover-background-dark-mode: #3a4b59;
  --radio-check-hover-background-light-mode: #eff3f5;
  --input-focus-color-dark-mode: #455666;
  --input-focus-color-light-mode: #eff3f5;
  --radio-button-checked-color-dark-mode: #ffffff;
  --radio-button-checked-color-light-mode: #6bb024;
  --selected-radio-color-dark-mode: #ffffff;
  --selected-radio-color-light-mode: #6bb024;
}

.cbox .form-group {
    position: relative;
    max-width: 596px;
    display: flex;
}

.cbox .form-group-justify
{
  justify-content: space-between;
}

.cbox input[type="text"] {
    padding: 10px;
    padding-left: 14px;
    border: 1px solid var(--input-border);
    background-color: transparent;
    height: 50px;
    padding-top: 25px;
    color: var(--input-text-color-light-mode);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    margin: 5px;
    transition: background-color 0.2s linear;
    transition: border-color 0.2s linear;
}

.cbox input[type="text"]:hover,
.cbox input[type="text"]:focus
{
  box-shadow: none;
}

.cbox .text-label {
    position: absolute;
    left: 20px;
    transition: top 0.2s, font-size 0.2s linear;
    color: var(--label-color);
    font-size: 14px;
    font-weight: 500;
    cursor: text;
    transform-origin: left top;
}

.cbox .label-right {
    left: 34%;
    transform-origin: left top;
}

/* The radio-container */
.cbox .radio-container,
.cbox .checkbox-container {
  display: block;
  position: relative;
  padding-left: 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  min-width: 75px;
  line-height: 1.2;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family: "Inter";
}

/* Hide the browsers default radio button */
.cbox .radio-container input,
.cbox .checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Create a custom radio button */
.cbox .radio-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 16px;
  width: 16px;
  background-color: transparent;
  border: solid 1px var(--radio-border-color);
  border-radius: 50%;
}

.cbox select {
    padding: 15px;
    color: #fff;
    font-size: 12px;
    background: transparent;
    border: 1px solid #9ab0c3;
    height: 50px;
    width: 586px;
}

.cbox select option{
  background-color: #3a4b59;
  color: white;
  border: 1px solid #9ab0c3;
}

.cbox select:hover,
.cbox select:focus
{
  box-shadow: none;
  cursor: pointer;
  border: 1px solid #9ab0c3;
}

.cbox .checkbox-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 16px;
  width: 16px;
  background-color: transparent;
  border: solid 1px #617385;
  border-radius: 10%;
}

.cbox textarea {
    padding: 10px;
    padding-left: 14px;
    padding-top: 20px;
    border: 1px solid var(--input-border);
    background-color: transparent;
    color: var(--input-text-color-light-mode);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    margin: 5px;
    transition: background-color 0.2s linear, border-color 0.2s linear;
    resize: vertical;
    width: 100%;
    min-height: 80px;
}

.cbox textarea:hover,
.cbox textarea:focus {
    box-shadow: none;
}

.cbox .textbox-label {
    position: absolute;
    left: 20px;
    top: 10px;
    transition: top 0.2s, font-size 0.2s linear;
    color: var(--label-color);
    font-size: 14px;
    font-weight: 500;
    cursor: text;
    transform-origin: left top;
}

/* On mouse-over, add a grey background color */
.cbox .radio-container:hover input ~ .radio-checkmark,
.cbox .checkbox-container:hover input ~ .checkbox-checkmark {
  background-color: var(--radio-check-hover-background-dark-mode);
  transition: background-color 0.2s linear;
}

/* When the radio button is checked, add a blue background */
.cbox .radio-container input:checked ~ .radio-checkmark,
.cbox .checkbox-container input:checked ~ .checkbox-checkmark {
  background-color: transparent;
  border-color: var(--radio-button-checked-color-dark-mode);
  transition: background-color 0.5s linear;
  transition: border-color 0.5s linear;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.cbox .radio-checkmark:after,
.cbox .checkbox-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the indicator (dot/circle) when checked */
.cbox .radio-container input:checked ~ .radio-checkmark:after,
.cbox .checkbox-container input:checked ~ .checkbox-checkmark:after {
  display: block;
}

/* Style the indicator (dot/circle) */
.cbox .radio-container .radio-checkmark:after {
 	top: 3.2px;
	left: 3.2px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--selected-radio-color-dark-mode);
	transition: background 0.5s linear;
}

/* Style the checkmark/indicator */
.cbox .checkbox-container .checkbox-checkmark:after {
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--selected-radio-color-dark-mode);
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.cbox .radio-container a,
.cbox .checkbox-container a
{
  text-decoration: underline;
  color: var(--link-color-dark-mode);
}

.cbox h3
{
  font-weight: bold;
  margin-left: 5px;
  font-family: "DIN Next LT Pro";
  font-size: 22px;
}

.cbox h4
{
  font-weight: bold;
  margin-left: 5px;
  font-family: "DIN Next LT Pro";
  font-size: 18px
}

.cbox p
{
  margin-left: 5px;
  font-family: "inter";
  font-size: 16px
}

.cbox input:focus + label, input:valid + label {
    top: -10px; /* Bewegung nach oben um 10 Pixel */
    font-size: 12px;
    transform-origin: left top;
}

.cbox input:focus,
.cbox textarea:focus
{
  background-color: var(--input-focus-color-dark-mode);
  border-color: white;
}

.input-row {
    display: grid;
    grid-gap: 12px;
    grid-template-columns: 4fr 9fr;
    align-items: flex-start;
}

.cbox input:-webkit-autofill,
.cbox input:-webkit-autofill:hover,
.cbox input:-webkit-autofill:focus,
.cbox input:-webkit-autofill:active{
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff;
    -webkit-background-color: transparent;
}

.cbox p.errorMessage
{
    font-family: "inter";
    font-size: 12px;
    padding-bottom: 5px;
    color: #E84F1C;
}

.cbox p.hide
{
  display: none;
}

@media (prefers-color-scheme: light) {
  .cbox .radio-container a,
  .cbox .checkbox-container a
  {
    text-decoration: underline;
    color: var(--link-color-light-mode);
  }

  .cbox input[type="text"],
  .cbox textarea {
      color: var(--input-text-color-dark-mode);
  }

  .cbox .radio-container:hover input ~ .radio-checkmark,
  .cbox .checkbox-container:hover input ~ .checkbox-checkmark {
    background-color: var(--radio-check-hover-background-light-mode);
  }

  .cbox input:focus,
  .cbox textarea:focus
  {
    background-color: var(--input-focus-color-light-mode);
    border-color: #9ab0c3;
  }

  .cbox .radio-container input:checked ~ .radio-checkmark,
  .cbox .checkbox-container input:checked ~ .checkbox-checkmark {
    border-color: var(--radio-button-checked-color-light-mode);
  }

  /* Style the indicator (dot/circle) */
  .cbox .radio-container .radio-checkmark:after {
  	background: var(--selected-radio-color-light-mode);
  }

  /* Style the checkmark/indicator */
  .cbox .checkbox-container .checkbox-checkmark:after {
    border: solid var(--selected-radio-color-light-mode);
    border-width: 0 2px 2px 0;
  }

  .cbox input:-webkit-autofill,
  .cbox input:-webkit-autofill:hover,
  .cbox input:-webkit-autofill:focus,
  .cbox input:-webkit-autofill:active{
      -webkit-background-clip: text;
      -webkit-text-fill-color: #000000;
      -webkit-background-color: transparent;
  }
}

.btn.btn-success:focus
{
  background-color: #6BB024;
}