body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 20px;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #fff; /* Ändere "font-color" zu "color" */
}

.container{
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container.dark-mode{
    background-color: #333;
    color: #fff; /* Ändere "font-color" zu "color" */
}

.portfolio-form {
    width: 70%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.portfolio-form.dark-mode {
    background-color: #333;
    color: #fff; /* Ändere "font-color" zu "color" */
}

.ticker.dark-mode {
    background-color: #333;
    color: #fff; /* Ändere "font-color" zu "color" */
    border-color: #85807f;
}

.suggestions.dark-mode {
    background-color: #333;
    color: #fff; /* Ändere "font-color" zu "color" */
    border-color: #85807f;
}

.percent-input{
    width: 120px !important;
    margin-top: 5px;
}

.percent-input.dark-mode {
    background-color: #333;
    color: #fff; /* Ändere "font-color" zu "color" */
    border-color: #85807f;
}

.absolute-input{
    width: 120px !important;
    margin-top: 5px;

}

.absolute-input.dark-mode {
    background-color: #333;
    color: #fff; /* Ändere "font-color" zu "color" */
    border-color: #85807f;
}

.ticker{
    margin-top: 5px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portfolio-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="text"] {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

input[type="number"] {
    width: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 8px 16px;
    border: none;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}

button:hover {
    background-color: #45a049;
}

.remove {
    background-color: red;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
}

.remove:hover {
    background-color: darkred;
}

#search-result {
    margin-top: 20px;
    padding: 10px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.portfolio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 0px solid #ddd;
    max-height: 300px;
    overflow-y: auto;
    width: 71%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.suggestion {
    padding: 10px;
    cursor: pointer;
    border: 1px solid #ddd;
}

.suggestion:hover {
    background-color: #f0f0f0;
}

.switch-container {
    display: flex; /* Aktiviert Flexbox */
    justify-content: space-between; /* Platz zwischen den beiden Switches */
    align-items: center; /* Vertikale Zentrierung */
    gap: 20px; /* Abstand zwischen den Switches */
    padding: 20px;
    border-radius: 10px;
}

/* Einzelne Switch-Box */
.switch {
    display: flex;
    align-items: center;
    gap: 10px; /* Abstand zwischen Symbol, Schalter und Text */
}

/* Switch-Label */
.switch label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

/* Verstecktes Input-Checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Der runde Slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

/* Der runde Schalter (der sich bewegt) */
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

/* Wenn der Input gecheckt ist (Schalter bewegt sich) */
input:checked + .slider {
    background-color: #007bff;
}

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

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

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

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

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

.dark-mode-switch {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 10px;
}

.dark-mode-switch input[type="checkbox"] {
    display: none;
}

.dark-mode-switch label {
    font-size: 24px;
    cursor: pointer;
}

.dark-mode-switch label[for="dark-mode-toggle"]:nth-child(1) {
    color: #f39c12; /* Sonne */
}

.dark-mode-switch label[for="dark-mode-toggle"]:nth-child(3) {
    color: #8e44ad; /* Mond */
}


