.ankauf-rechner-container {
    max-width: 100%;
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ankauf-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.ankauf-header-image {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 8px;
}

.ankauf-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ankauf-title {
    margin: 0;
    color: #333;
    font-size: 24px;
    flex: 1;
}

.ankauf-table {
    width: 100%;
    border-collapse: collapse;
}

.ankauf-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.ankauf-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.ankauf-table tbody tr:hover {
    background: #f8f9fa;
}

.produkt-bild {
    width: 60px;
}

.produkt-bild img {
    max-width: 50px;
    max-height: 50px;
    border-radius: 4px;
}

.menge-input {
    width: 100px;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.menge-input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.preis-value {
    font-weight: 500;
    color: #28a745;
}

.wert-cell {
    font-weight: 600;
    color: #007bff;
}

.total-row {
    background: #e9ecef;
    font-size: 16px;
}

.total-row td {
    padding: 15px 12px;
}

#gesamtwert {
    font-size: 18px;
    font-weight: 700;
    color: #dc3545;
}

.ankauf-footer {
    margin-top: 20px;
    text-align: center;
}

#anfrageButton {
    padding: 12px 30px;
    font-size: 18px;
    background: #28a745;
    border-color: #28a745;
    transition: all 0.3s;
}

#anfrageButton:hover {
    background: #218838;
    border-color: #1e7e34;
    transform: scale(1.05);
}

#anfrageButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hinweis {
    margin-top: 15px;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    color: #856404;
}

/* Modal Styles */
.anfrage-zusammenfassung {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.anfrage-zusammenfassung h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.anfrage-zusammenfassung .total-sum {
    margin-top: 15px;
    text-align: right;
    font-size: 16px;
}

.anfrage-zusammenfassung .total-sum span {
    font-size: 18px;
    color: #dc3545;
}

.modal .form-control {
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.modal .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Admin Styles für Bildvorschau */
.image-preview {
    margin-top: 5px;
    padding: 5px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .ankauf-header {
        flex-direction: column;
        text-align: center;
    }
    
    .ankauf-header-image {
        margin: 0 auto;
    }
    
    .menge-input {
        width: 70px;
    }
    
    .ankauf-table th,
    .ankauf-table td {
        padding: 8px 4px;
        font-size: 13px;
    }
    
    #anfrageButton {
        width: 100%;
        font-size: 16px;
    }
	/* Ergänzungen für bessere Validierung und UX */
.has-error .form-control {
    border-color: #a94442;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}

.has-error .form-control:focus {
    border-color: #843534;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px #ce8483;
}

.help-block.text-danger {
    color: #a94442;
    font-size: 12px;
    margin-top: 5px;
}

.modal-alert {
    margin-bottom: 20px;
}

.alert-dismissible {
    padding-right: 35px;
}

.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px 15px;
    color: inherit;
}

/* Loading Spinner */
.icon-spin {
    animation: icon-spin 2s infinite linear;
}

@keyframes icon-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(359deg); }
}

/* Verbesserte Tabellen-Darstellung */
.ankauf-table .table-condensed > tbody > tr > td {
    padding: 5px;
}

/* Hover-Effekte für bessere Interaktion */
.menge-input:hover {
    border-color: #80bdff;
    background-color: #f8f9fa;
}

#anfrageButton i {
    margin-right: 5px;
}

/* Zusammenfassungs-Tabelle im Modal */
#zusammenfassung-werte table {
    margin-bottom: 0;
}

#zusammenfassung-werte .total-row td {
    background: #f5f5f5;
    font-weight: bold;
}

/* Tooltip für Hilfetexte */
.help-tooltip {
    cursor: help;
    border-bottom: 1px dotted #999;
}

/* Responsive Verbesserungen */
@media (max-width: 480px) {
    .ankauf-table {
        font-size: 12px;
    }
    
    .menge-input {
        width: 60px;
        padding: 4px 6px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
	/**
 * Admin CSS für Universal-Rechner Modul
 */

/* Tab-Navigation */
.tabbable {
    margin-top: 15px;
}

.nav-tabs {
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
    padding-left: 10px;
}

.nav-tabs > li {
    margin-bottom: -1px;
}

.nav-tabs > li > a {
    margin-right: 2px;
    line-height: 1.42857143;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
    padding: 10px 15px;
    background: #f8f8f8;
    color: #555;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-tabs > li > a:hover {
    background: #e9e9e9;
    border-color: #eee #eee #ddd;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: #555;
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom-color: transparent;
    cursor: default;
    font-weight: 600;
}

.nav-tabs > li > a i {
    margin-right: 5px;
    color: #25B9D7;
}

/* Tab-Inhalte */
.tab-content {
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    padding: 20px;
    border-radius: 0 0 4px 4px;
    margin-bottom: 20px;
}

/* Aktiver Tab Inhalt */
.tab-pane.active {
    display: block;
}

/* Bild-Vorschau */
.image-preview {
    margin-top: 10px;
    padding: 5px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: inline-block;
}

.image-preview img {
    border-radius: 3px;
}

/* Formular-Optimierungen */
.form-group {
    margin-bottom: 20px;
}

.control-label {
    font-weight: 600;
    color: #333;
}

.help-block {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

/* Panel-Optimierungen */
.panel {
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,.05);
}

.panel-heading {
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    padding: 10px 15px;
    font-weight: 600;
}

.panel-heading i {
    margin-right: 5px;
    color: #25B9D7;
}

/* Button-Optimierungen */
.btn i {
    margin-right: 3px;
}

/* Tabelle */
.table {
    margin-bottom: 0;
}

.table th {
    background: #f5f5f5;
    font-weight: 600;
}

.table td {
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-tabs > li {
        float: none;
        display: block;
        margin-bottom: 2px;
    }
    
    .nav-tabs > li > a {
        border-radius: 4px;
        margin-right: 0;
    }
    
    .nav-tabs > li.active > a {
        border: 1px solid #ddd;
    }
    
    .tab-content {
        border-top: 1px solid #ddd;
    }
}

/* Tooltips */
.tooltip {
    font-size: 12px;
}

.tooltip-inner {
    max-width: 200px;
    padding: 5px 10px;
    background: #333;
    border-radius: 4px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    z-index: 9999;
    display: none;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: #25B9D7;
}

/* Erfolgsmeldungen */
.alert-success {
    background: #dff0d8;
    border-color: #d6e9c6;
    color: #3c763d;
}

/* Fehlermeldungen */
.alert-danger {
    background: #f2dede;
    border-color: #ebccd1;
    color: #a94442;
}

}
