* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Raleway;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

:root {
  --blue: #007bff;
  --pink: #8b3a62;
  --lightPink: #cd6090;
  --red: #e46464;
  --lightRed: #ffdddd;
  --green: #33a333;
  --gray: #aaaaaa;
}
html {
  height: 100%;
  overflow: hidden;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  background-color: #f4f4f9;
  font-family: Raleway, sans-serif;
  padding: 15px;
  overflow: hidden;
  height: 100%;
}

.container {
  min-width: 300px;
  text-align: center;
  background-color: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-height: 100%;
  max-width: 100%;
  overflow: auto;
}
#indexContainer,
#spendenContainer {
  max-width: 400px;
}

#inputsContainer {
  max-width: 600px;
}

#divDiagramm {
  overflow: initial;
}

#regForm {
  width: 100%;
  box-shadow: none;
  max-height: 100%;
}

#divOptimizeManual {
  margin-bottom: 15px;
}

h1 {
  text-align: center;

  /* margin-bottom: 20px; */
}

.tab p,
.tab input,
.tab select,
.chapterDiv,
.container p {
  margin-bottom: 15px;
}

.tab p:last-child,
.tab input:last-child,
.tab select:last-child,
.tab .wrapperInput:last-child,
.tab .wrapperInput input,
.tab .chapterDiv {
  margin-bottom: 0px; /* Neue Zeile hinzugefügt */
}

h2,
h3 {
  text-align: left;
}

ul {
  text-align: left;
  padding-left: 30px;
  margin-bottom: 15px;
}

p,
span {
  text-align: justify;
  color: black;
}

input,
select {
  padding: 10px;
  width: 100%;
  font-size: 17px;
  font-family: Raleway;
  border: 1px solid var(--gray);
}

/* Entfernen der Pfeile in den input-Feldern für alle Browser */
/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input.invalid {
  background-color: var(--lightRed);
}

.wrapperInput {
  position: relative;
  margin-bottom: 15px;
}

.unit {
  margin: 0;
  /* padding-bottom: 10px; */
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  right: 10px;
  /* display: flex;
  align-items: center; */
}

/* Hide all steps by default: */
.tab {
  display: none;
  margin-bottom: 15px;
}

.buttonDiv {
  /* overflow: auto; */
  display: flex;
  width: fit-content;
  margin: auto;
  /* float: right; */
}

.chapterDiv {
  width: 100%;
  display: inline-block;
  opacity: 1;
}

button {
  background-color: var(--green);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 17px;
  cursor: pointer;
}

button:hover {
  opacity: 0.8;
}

button.invalid {
  background-color: var(--red);
  opacity: 1;
}

#prevBtn {
  background-color: var(--gray);
}

/* Make circles that indicate the steps of the form: */
.step {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: var(--gray);
  border: none;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.5;
}

.step.active {
  opacity: 1;
}

/* Mark the steps that are finished and valid: */
.step.finish {
  background-color: var(--green);
}
.step.invalid {
  background-color: var(--red);
}

.switch-toggle {
  display: flex;
  justify-content: center;
}

.switch-toggle label {
  background: var(--gray);
  border: 1px solid black;
}

.switch-toggle label input[type="radio"] {
  display: none;
}

.switch-toggle label span {
  display: block;
  padding: 10px;
  height: 100%;
  align-content: center;
  text-align: center;
}

.switch-toggle label input[type="radio"]:checked + span {
  background: var(--green);
  color: white;
}

.iconRechtsDiv {
  margin-left: 45px;
}

.iconPhase2 {
  /* margin-left: px; */
  float: left;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray);
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: var(--green);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--green);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
  margin-right: 0;
}

.slider.round:before {
  border-radius: 50%;
}

.rightDiv {
  margin-left: auto;
  margin-right: 0;
  width: fit-content;
}

.rightDiv p {
  margin: 0 5px 0 0;
  font-weight: bold;
}

.tabContainer {
  max-height: 90%;
  width: 90%;
  max-width: 700px;
  position: absolute;
  top: 5%;
  left: 50%;
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  overflow: auto;
  border: 5px solid black;
}

.fullWidth30 label {
  width: 30%;
  text-align: center;
  margin-top: 5px;
}
.fullWidth50 label {
  width: 45%;
  text-align: center;
}

iframe {
  width: 100%;
  height: 30%;
}

.divTab3 h2,
#returnDiv h2,
.divTab3 h3 {
  -ms-transform: translateY(100%);
  transform: translateY(100%);
}

#ETFStrategy h2,
#returnDiv h2 {
  color: darkblue;
}

input:disabled,
select:disabled {
  background: lightgray;
}

select {
  background-color: white;
}

.buttonContainer button {
  height: 17vh;
}

th {
  text-align: left;
}

.individualDiv {
  border: 3px solid black;
  padding: 5px;
}

.leftDiv,
.rightDiv {
  display: flex;
  align-items: center;
}

.rightDiv .switch-toggle,
.leftDiv .switch-toggle {
  width: fit-content;
}

.leftDiv h2,
.rightDiv h2 {
  margin-right: 5px;
}

.leftDiv .chapterDiv,
.rightDiv .chapterDiv {
  margin-bottom: 0;
}

.leftDiv,
.rightDiv {
  margin-bottom: 10px;
}

.logo {
  width: 100px;
  margin-bottom: 15px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .small-logo {
  width: 50px;
}

.header h1 {
  flex-grow: 1;
  text-align: center;
  margin-left: -50px; /* Adjust to center the title */
}

#savingsRateIndividualData th:nth-child(1),
#savingsRateIndividualData td:nth-child(1) {
  width: 1%;
  white-space: nowrap;
}

#savingsRateIndividualData th:nth-child(2),
#savingsRateIndividualData td:nth-child(2) {
  width: 70px; /* Adjust as needed for the number 9999999 */
}

#savingsRateIndividualData th:nth-child(3),
#savingsRateIndividualData td:nth-child(3) {
  width: 50px; /* Adjust as needed for the number 100 */
}

table input,
table select,
table td,
table th {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  padding: 5px;
  margin: 0 !important;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 auto;
  table-layout: auto;
  text-align: center;
}

.results-table tr {
  border-bottom: 1px solid black;
}

.results-table tr:last-child {
  border-bottom: none;
}

.btn-start {
  background-color: #33a333;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 5px;
  text-decoration: none;
  width: fit-content;
}
.btnDiv {
  margin-top: 25px;
}

.btn-start:hover {
  background-color: #28a745;
}

.footer {
  font-size: 0.9rem;
  margin-top: 15px;
}

.footer a {
  color: var(--blue);
  text-decoration: none;
  margin: 0 10px;
}

.footer a:hover {
  text-decoration: underline;
}

.footer a[href*="spenden.html"] {
  font-weight: bold;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

h1.center {
  text-align: center;
}

/* Cookie-Banner-Stil */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #333;
  color: white;
  padding: 15px;
  text-align: center;
  z-index: 1000;
}
#cookie-banner button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-left: 10px;
  cursor: pointer;
}

.info-button {
  background-color: var(--blue);
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 50%;
  margin: 10px auto 10px auto; /* Zentriert unterhalb der Überschrift */
  display: block;
  position: relative;
  z-index: 1001;
  width: 30px; /* Neue Zeile hinzugefügt */
  height: 30px; /* Neue Zeile hinzugefügt */
  display: flex; /* Neue Zeile hinzugefügt */
  align-items: center; /* Neue Zeile hinzugefügt */
  justify-content: center; /* Neue Zeile hinzugefügt */
}

.info-popup {
  display: none;
  position: absolute;
  background-color: var(--gray);
  border: 2px solid black;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1002;
  left: 50%;
  top: 15px;
  transform: translateX(-50%);
  color: white;
  text-align: justify;
  width: calc(100% - 30px);
  max-width: 600px;
}

.info-popup .info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.close-button {
  background: none;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  width: 30px; /* Neue Zeile hinzugefügt */
  height: 30px; /* Neue Zeile hinzugefügt */
  display: flex; /* Neue Zeile hinzugefügt */
  align-items: center; /* Neue Zeile hinzugefügt */
  justify-content: center; /* Neue Zeile hinzugefügt */
}

.info-popup .info-content {
  margin-top: 10px;
  font-size: medium;
  font-weight: 400;
}

.info-popup.active {
  display: block;
  pointer-events: auto;
}

.info-popup.hidden {
  display: none;
  pointer-events: none;
}

.info-popup.active {
  display: block;
}

.info-popup.hidden {
  display: none;
}
