#tagespflege-rechner-wrapper {
  font: inherit;
  color: #000;
  /* max-width: 600px; */
  padding: 1.5em;
  border: 1px solid #ccc;
  border-radius: 0px;
  background: #fff;
  /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05); */
  transition: all 0.3s ease;
}

/* Formular */
.tkr-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;  
  font-size: 19px !important;
}

.tkr-form label {
  font-weight: 500;
  display: block;
  width: 100%;
  color: #000;
}

.tkr-form input[type="number"],
.tkr-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 0px;
  transition: border-color 0.2s ease;
  font: inherit;
  color: #015a68;
  font-weight: 900;
  margin-top: 5px;
  margin-bottom: 10px;
}

.tkr-form input[type="number"]:focus,
.tkr-form select:focus {
  border-color: #015a68;
  outline: none;
}

.tkr-form select option:checked {
  font-weight: 900;
  color: #015a68;
}

/* Checkbox vor Labeltext */
.tkr-entlastung-label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 900;
  color: #000;
}

.tkr-entlastung-label input[type="checkbox"] {
  margin: 14px 10px 0 5px;
  transform: scale(1.8);
}

/* Ergebnisbereich */
.tkr-ergebnis {
  margin-top: 1.5em;
  padding-top: 1em;
  border-top: 2px solid #015a68;
  transition: opacity 0.4s ease;
}

.tkr-ausgabe {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.tkr-ausgabe p {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  margin: 0;
  color: #000;
}

.tkr-ausgabe p span {
  text-align: right;
  font-weight: 900;
  color: #015a68;
}

/* Eigenanteil optisch hervorheben */
.tkr-ausgabe .zeile-eigenanteil {
    background: #ffffff;
    padding: 0.5em 0;
    border-top: 2px solid #b1772e;
    border-radius: 0;
    color: #b1772e;
    font-weight: 900;
    margin-top: 10px;
}

p span.eigenanteil {
  font-weight: 900;
  color: #b1772e !important;
}

/* Detail-Button */
.toggle-details {
  margin-top: 20px;
  padding: 0.5em 1em !important;
  background-color: #015a68;
  color: #fff;
  border: none;
  border-radius: 0px;
  cursor: pointer;
  font-size: 15px !important;
  transition: background-color 0.2s ease;
}

.toggle-details:hover {
  background-color: #014652;
}

/* Detailbereich */
.tkr-details {
  margin-top: 1em;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-left: 4px solid #b1772e;
  padding: 1em;
  font-size: 0.85em !important;
  line-height: 1.2 !important;
}

.tkr-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tkr-details li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4em;
  font-weight: 500;
  color: #000;
}

.tkr-details li span {
  text-align: right;
  font-weight: 900;
  min-width: 80px;
  color: #000;
}

select {

  /* styling
  background-color: white;
  border: thin solid blue; */
  border-radius: 4px;
  display: inline-block;
  font: inherit;
  line-height: 1.5em;
  padding: 0.5em 3.5em 0.5em 1em;

  /* reset */

  margin: 0;      
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
}

select {
  background-image:
    linear-gradient(45deg, transparent 50%, gray 50%),
    linear-gradient(135deg, gray 50%, transparent 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position:
    calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px),
    calc(100% - 2.0em) 0.5em;
  background-size:
    5px 5px,
    5px 5px,
    1px 1.5em;
  background-repeat: no-repeat;
}

select:focus {
  background-image:
    linear-gradient(45deg, green 50%, transparent 50%),
    linear-gradient(135deg, transparent 50%, green 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position:
    calc(100% - 15px) 1em,
    calc(100% - 20px) 1em,
    calc(100% - 2.0em) 0.5em;
  background-size:
    5px 5px,
    5px 5px,
    1px 1.5em;
  background-repeat: no-repeat;
  border-color: green;
  outline: 0;
}


select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #000;
}

/* Radio-Button Gruppe für Tage */
.tkr-tage-fieldset {
  border: none;
  margin: 0 0 15px 0;
  padding: 0;
}

.tkr-tage-fieldset legend {
  margin-bottom: 15px;
  color: #000;
}

.tkr-tage-radio {
  display: flex;
  gap: 25px; /* Abstand zwischen den Optionen */
  justify-content: flex-start;
  padding: 15px 0 5px 0;
  background: #f7f7f7;
  border: 1px solid #cccccc;
}

.tkr-tage-radio label {
  display: flex;
  flex-direction: column; /* Zahl unterhalb; für oberhalb -> column-reverse */
  align-items: center;
  cursor: pointer;
  font-weight: normal;
  color: #000;
}

.tkr-tage-radio input[type="radio"] {
  transform: scale(1.8);
  margin: 6px 0; /* Abstand zur Zahl */
}

/* Ausgewählte Radio-Option */
.tkr-tage-radio label.selected {
  font-weight: 900;
  color: #015a68;
}
