/* portfolio.css */

/* Zusätzliche Stile für <main> */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    margin: 20px auto;
    width: 90%;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Stil für Tabellen in <main> */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

table th {
    background-color: #232364;
    color: white;
    text-align: center;
}

table td {
    text-align: right;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

table tr:hover {
    background-color: #ddd;
}

/* Stil für Buttons in <main> */
main .btn {
    background-color: #1E90FF;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 10px 0;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
}

main .btn:hover {
    background-color: #4169E1;
}

main .btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Spezifische Stile für größere Buttons */
main .btn{
    width: auto;
    min-width: 200px;
}

/* Stil für Input-Felder in <main> */
main input[type="text"],
main input[type="number"] {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

main input[type="checkbox"] {
    margin-left: 10px;
}

/* Stil für Labels in <main> */
main label {
    font-weight: bold;
    color: #232364;
}

/* Stil für Nachrichten in <main> */
main .error-message {
    color: red;
    margin-top: 10px;
}

main .success-message {
    color: green;
    margin-top: 10px;
}

.portfolioform {
    width: 90%;
}

/* Responsive Design für <main> */
@media (min-width: 600px) {
    main {
        width: 80%;
    }
}

@media (min-width: 768px) {
    main {
        width: 60%;
    }
}

/* Zusätzliche Stile für Tabellenzeilen */
.asset-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px; /* Hinzufügen von Abständen zwischen den Eingabefeldern */
    margin-bottom: 10px; /* Hinzufügen von Abständen zwischen den Zeilen */
}

.asset-row label {
    flex: 1;
    margin-right: 10px;
}


.asset-row .placeholder {
    flex: 0 0 auto;
    width: 30px; /* gleiche Breite wie der Button, um die Ausrichtung beizubehalten */
}

.asset-row input[type="text"],
.asset-row input[type="number"],
.subasset-row input[type="text"],
.subasset-row input[type="number"] {
    flex: 1;
    margin: 0 5px;
}

.subasset-row input[type="text"] {
    margin-left: 0; /* Entfernen von zusätzlichem Abstand auf der linken Seite */
}

.subasset-row input[type="number"] {
    margin-right: 0; /* Entfernen von zusätzlichem Abstand auf der rechten Seite */
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.table-header th {
    flex: 1;
    text-align: center;
}

/* Spezifische Breiten für die Spalten der Tabellen */
.asset-table th:nth-child(1),
.asset-table td:nth-child(1),
.subasset-table th:nth-child(1),
.subasset-table td:nth-child(1) {
    width: 25%;
}

.asset-table th:nth-child(2),
.asset-table td:nth-child(2),
.subasset-table th:nth-child(2),
.subasset-table td:nth-child(2) {
    width: 15%;
}

.asset-table th:nth-child(3),
.asset-table td:nth-child(3),
.subasset-table th:nth-child(3),
.subasset-table td:nth-child(3) {
    width: 15%;
}

.asset-table th:nth-child(4),
.asset-table td:nth-child(4),
.subasset-table th:nth-child(4),
.subasset-table td:nth-child(4) {
    width: 15%;
}

.asset-table th:nth-child(5),
.asset-table td:nth-child(5),
.subasset-table th:nth-child(5),
.subasset-table td:nth-child(5) {
    width: 10%;
}

/* Toggle Switch Stile */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #1E90FF;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Spezifische Stile für Tabellen */
.summary-row {
    font-weight: bold;
    background-color: #e0e0e0;
}

/* Info Box Stile */
.info-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 20px;
}

.info-box p {
    margin: 0;
    color: #333;
}

.increase {
    color: green;
}

.decrease {
    color: red;
}

hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

/* Info Liste Stile */
.info-list {
    list-style-type: none;
    padding: 0;
}

.info-list li {
    padding-left: 1.5em;
    text-indent: -1.5em;
}

/* Neue Asset Stile */
.new-asset {
    display: flex;
    align-items: center;
}

.new-asset label {
    margin-right: 10px;
}

.new-asset button {
    margin-left: 10px;
}

.btntrashcan {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.trashcan-icon {
    width: 20px; /* Anpassung der Bildgröße */
    height: 20px; /* Anpassung der Bildgröße */
}
