:root {
    --primary-color: rgb(239, 117, 4);
    --secondary-color: #333;
    --simulation-color: #3780df;
    --danger-color: red;
    --warning-color: rgb(255, 234, 0);
    --header-color: #333;

}

h1 {
    color: var(--header-color);
    font-size: 32px;
    margin-top: 12px;
    margin-bottom: 12px;
}

h3 {
    color: var(--header-color);
    font-size: 28px;
    margin-top: 16px;
    margin-bottom: 16px;
}

h5 {
    color: var(--header-color);
    font-size: 20px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.button-group {
        display: flex;
        gap: 10px;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 2px solid #eee;
    }
    
    .btn {
        padding: 7px 18px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        display: inline-block;
        transition: all 0.2s;
        margin-top: 6px;
        margin-bottom: 6px;
    }

    .btn.btn-sm, .btn-small {
        padding: 4px 10px;
        font-size: 12px;
    }

    .btn.btn-lg, .btn-large {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .btn-primary {
        color: white;
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }
    
    .btn-primary:hover {
        border-left: 8px solid var(--primary-color);
        border-right: 1px solid var(--primary-color);
        border-top: 1px solid var(--primary-color);
        border-bottom: 1px solid var(--primary-color);
        background-color: white;
        color: var(--primary-color)
    }
    
    .btn-secondary {
        border-color: var(--secondary-color);
        color: var(--secondary-color);
        background-color: white;
    }
    
    .btn-secondary:hover {
        border-left: 8px solid var(--secondary-color);
        border-right: 1px solid var(--secondary-color);
        border-top: 1px solid var(--secondary-color);
        border-bottom: 1px solid var(--secondary-color);
        background-color: white;
        color: var(--secondary-color)
    }

    .btn-simulation {
        border-color: var(--simulation-color);
        color: var(--simulation-color);
        background-color: white;
    }
    
    .btn-simulation:hover {
        border-left: 8px solid var(--simulation-color);
        border-right: 1px solid var(--simulation-color);
        border-top: 1px solid var(--simulation-color);
        border-bottom: 1px solid var(--simulation-color);
        background-color: white;
        color: var(--simulation-color)
    }

    .btn-warning {
        color: black;
        background-color: var(--warning-color);
        border-color: white;
    }
    
    .btn-warning:hover {
        border-left: 8px solid var(--warning-color);
        border-right: 1px solid var(--warning-color);
        border-top: 1px solid var(--warning-color);
        border-bottom: 1px solid var(--warning-color);
        background-color: white;
        color: var(--warning-color)
    }
    
    .btn-danger {
        color: white;
        background-color: var(--danger-color);
        border-color: white;
    }
    
    .btn-danger:hover {
        border-left: 8px solid var(--danger-color);
        border-right: 1px solid var(--danger-color);
        border-top: 1px solid var(--danger-color);
        border-bottom: 1px solid var(--danger-color);
        background-color: white;
        color: var(--danger-color)
    }


    .btn-add {
        border-color: #2196F3;
        color: #2196F3;
        background-color: white;
    }
    
    .btn-add:hover {
        background-color: #2196F3;
    }

/* --- Button Styles --- */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-style: solid;
    border-width: 1px;
    font-size: 16px;
    text-decoration: none;
    position: relative; /* wichtig für Tooltip */
    transition: background 0.2s, color 0.2s;
}

.btn-icon.edit {
    color: var(--secondary-color, #0d6efd);
    border-color: var(--secondary-color, #0d6efd);
    background-color: white;
}

.btn-icon.delete {
    color: var(--danger-color, #dc3545);
    border-color: var(--danger-color, #dc3545);
    background-color: white;
}

/* Hover-Effekte */
.btn-icon:hover {
    background-color: var(--secondary-color, #0d6efd);
    color: white;
}

.btn-icon.delete:hover {
    background-color: var(--danger-color, #dc3545);
    color: white;
}



.banner {
    display: block;
    width: 30%;
    max-width: 800px;
    border-radius: 8px;
    margin-left: auto;
    margin-right: 50%;
}

.value-pos {
    color: green;
}

.value-neg {
    color: red;
}

.value-neutral {
    color: gray;
}

/* Einheitliche Kartenhöhe */
.card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Bildhöhe fixiert, skaliert proportional */
.card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* Karteninhalt gleichmäßig verteilt */
.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ✅ Erhöhte Spezifität für .ane Komponente */
.ane {
    background: white;
    border-radius: 5px;
    border-style: solid;
    border-color: blue;
    border-width:0.1cqmax;
    box-shadow: 2px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    color: blue;
    margin-bottom: 20px;
    margin-top: 20px;
}

.ane_cross {
   color: red;
   font-size: 15px;
   margin-bottom: 5px;
}

.ane_infobox {
    border-left: 8px solid grey;
    border-right: 1px solid grey;
    border-top: 1px solid grey;
    border-bottom: 1px solid grey;
    border-radius: 7px;
    line-height: 3.5;
    padding-left: 5px;
    font-size: 12px;
    color:grey;
    font-style: italic;
    margin-top: 10px;

}

.ane_einrueckung {
    font-size: 15px;
    font-style: italic;
    margin-left: 15px;
}

#amortizationModal .modal-body {
    max-height: 70vh;
}

#amortizationModal .table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

@media print {
    .modal-header, .modal-footer {
        display: none;
    }
}

/* Tooltip Styles - Optimiert für Bootstrap Navigation */
.tooltip-trigger { 
    position: relative; 
    align-items: center; 
    justify-content: center;
}

.tooltip-trigger::after { 
    content: attr(data-tooltip) !important; 
    position: absolute; 
    top: 50% !important; 
    left: calc(100% + 8px); 
    transform: translateY(-50%); 
    padding: 6px 12px !important; 
    background-color: rgba(0, 0, 0, 0.9) !important; 
    color: white !important; 
    font-size: 13px !important; 
    white-space: nowrap !important; 
    border-radius: 4px !important; 
    opacity: 0 !important; 
    pointer-events: none !important; 
    transition: opacity 0.1s ease !important; 
    /*margin-left: 8px !important; */
    z-index: 99999 !important; 
}
.tooltip-trigger::before { 
    content: '' !important; 
    position: absolute; 
    top: 50% ; 
    left: 100%; 
    transform: translateY(-50%) !important; 
    border: 5px solid transparent !important; 
    border-right-color: rgba(0, 0, 0, 0.9) !important; 
    opacity: 0 !important; 
    pointer-events: none !important; 
    transition: opacity 0.1s ease !important; 
    margin-left: 3px !important; 
    z-index: 99999 !important; 
}
.tooltip-trigger:hover::after, 
.tooltip-trigger:hover::before { 
    opacity: 1 !important; 
}

.table-container {
    overflow-x: auto;
    margin-bottom: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 900px;
}

th {
    background: #f9f9f9;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #ddd;
}

td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

tr:hover {
    background: #f9f9f9;
}

.actions {
    display: flex;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

#burger-menu {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

#burger-menu svg {
    width: 100%;
    height: 100%;
    display: block;
    position: static;
}

/* Submenu container */
.dropdown-submenu {
    position: relative;
}

/* Submenu */
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0.1rem;
    display: none;
}

/* Show submenu on hover */
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Pfeil nach rechts */
.dropdown-submenu > a::after {
    content: "›";
    float: right;
    margin-left: 0.5rem;
}

.footer {
    background-color: whitesmoke;
    height: 140px;
}

.footer-logo {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    margin-top: 15px;

}
