/**
 * ============================================================
 *  PDF Allrounder - SEP Interactive (Simon Erich Plath)
 *  Made with ❤️ for Steffi
 *  Copyright © 2025 - All Rights Reserved
 * ============================================================
 * 
 * Finanzübersicht - CSS Styles
 */

/* ===== Einklappbare Sektionen ===== */
.collapsible .section-header.clickable {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collapsible .collapse-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #888;
}

.collapsible.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.collapsible .section-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.collapsible.collapsed .section-content {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* ===== Firmenlisten Verwaltung ===== */
.settings-section {
    margin-bottom: 20px;
}

.settings-info {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: rgba(79, 195, 247, 0.1);
    border-left: 3px solid #4fc3f7;
    border-radius: 4px;
}

.firmenlisten-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.firmenlisten-box {
    background: #1a1a2e;
    border: 1px solid #3a3a5a;
    border-radius: 10px;
    padding: 20px;
}

.firmenlisten-box h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.firmenlisten-box .badge {
    background: #4fc3f7;
    color: #1a1a2e;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.firmenlisten-box .box-description {
    color: #888;
    font-size: 0.85rem;
    margin: 0 0 15px 0;
}

.firmen-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.firmen-input-row input {
    flex: 1;
    padding: 8px 12px;
    background: #2a2a4a;
    border: 1px solid #3a3a5a;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.firmen-input-row input:focus {
    outline: none;
    border-color: #4fc3f7;
}

.firmen-liste {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #3a3a5a;
    border-radius: 6px;
    margin-bottom: 15px;
}

.firmen-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid #3a3a5a;
    transition: background 0.2s;
}

.firmen-item:last-child {
    border-bottom: none;
}

.firmen-item:hover {
    background: #2a2a4a;
}

.firmen-item .firmen-name {
    flex: 1;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.firmen-item .firmen-kategorie {
    background: #4a4a6a;
    color: #4fc3f7;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.firmen-item .firmen-aliase {
    color: #888;
    font-size: 0.75rem;
    cursor: help;
}

.firmen-item .btn-delete {
    background: transparent;
    border: none;
    color: #f44336;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 5px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.firmen-item .btn-delete:hover {
    opacity: 1;
}

.firmen-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.format-hint {
    font-size: 0.8rem;
    color: #666;
    padding: 8px;
    background: #16213e;
    border-radius: 4px;
}

.format-hint em {
    color: #4fc3f7;
    display: block;
    margin-top: 4px;
}

.settings-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #3a3a5a;
}

/* ===== Import Section ===== */
.import-section {
    margin-bottom: 20px;
}

.import-section .section-header {
    margin-bottom: 15px;
}

.import-section .section-header h2 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    color: #fff;
}

.import-section .section-header p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

/* ===== Drop Zone ===== */
.drop-zone {
    border: 2px dashed #4a4a6a;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #4fc3f7;
    background: linear-gradient(135deg, #1e1e3f 0%, #1a2744 100%);
}

.drop-zone-content {
    pointer-events: none;
}

.drop-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.drop-zone p {
    margin: 0 0 5px 0;
    color: #e0e0e0;
}

.drop-zone small {
    color: #888;
}

.drop-zone input[type="file"] {
    display: none;
}

/* ===== Import Status ===== */
.import-status {
    margin-top: 15px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #1e1e3f, #2a2a4a);
    border-radius: 8px;
    border: 1px solid #3a3a5a;
}

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

.status-text {
    color: #4fc3f7;
}

.status-count {
    color: #4caf50;
    font-weight: 600;
}

/* ===== Filter Section ===== */
.filter-section {
    margin-bottom: 20px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    color: #4fc3f7;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-separator {
    color: #888;
}

.filter-group select,
.filter-group input {
    background: #2a2a4a;
    border: 1px solid #3a3a5a;
    border-radius: 6px;
    padding: 10px 12px;
    color: #e0e0e0;
    font-size: 0.9rem;
    flex: 1;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #4fc3f7;
}

.filter-group select[multiple] {
    min-height: 80px;
}

/* Monat Checkboxes */
.monat-checkboxes {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
}

.monat-checkboxes label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #e0e0e0;
    cursor: pointer;
    padding: 5px 8px;
    background: #2a2a4a;
    border-radius: 4px;
    transition: background 0.2s;
}

.monat-checkboxes label:hover {
    background: #3a3a5a;
}

.monat-checkboxes input[type="checkbox"] {
    accent-color: #4fc3f7;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ===== Overview Cards ===== */
.overview-section {
    margin-bottom: 20px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.overview-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e1e3f, #2a2a4a);
    border: 1px solid #3a3a5a;
    transition: transform 0.2s, box-shadow 0.2s;
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.overview-card .card-icon {
    font-size: 2.5rem;
}

.overview-card .card-content {
    display: flex;
    flex-direction: column;
}

.overview-card .card-label {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.overview-card .card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e0e0e0;
}

/* Card Variants */
.overview-card.einnahmen {
    border-color: #4caf50;
}

.overview-card.einnahmen .card-value {
    color: #4caf50;
}

.overview-card.ausgaben {
    border-color: #f44336;
}

.overview-card.ausgaben .card-value {
    color: #f44336;
}

.overview-card.gewinn .card-value.positiv {
    color: #4caf50;
}

.overview-card.gewinn .card-value.negativ {
    color: #f44336;
}

.overview-card.objekte {
    border-color: #4fc3f7;
}

.overview-card.objekte .card-value {
    color: #4fc3f7;
}

/* ===== Charts Section ===== */
.charts-section {
    margin-bottom: 20px;
}

.charts-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.chart-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.chart-type-toggle,
.view-toggle {
    display: flex;
    background: #1a1a2e;
    border-radius: 8px;
    overflow: hidden;
}

.chart-btn,
.view-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.chart-btn:hover,
.view-btn:hover {
    background: #2a2a4a;
    color: #e0e0e0;
}

.chart-btn.active,
.view-btn.active {
    background: #4fc3f7;
    color: #1a1a2e;
}

.chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 20px;
}

/* ===== Chart Legend ===== */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background: #1a1a2e;
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #e0e0e0;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* ===== Comparison Section ===== */
.comparison-section {
    margin-bottom: 20px;
}

.comparison-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-controls select {
    background: #2a2a4a;
    border: 1px solid #3a3a5a;
    border-radius: 6px;
    padding: 8px 12px;
    color: #e0e0e0;
}

.comparison-controls span {
    color: #888;
}

.comparison-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.comparison-chart {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 15px;
}

.comparison-chart h3 {
    margin: 0 0 10px 0;
    color: #4fc3f7;
    font-size: 1rem;
    text-align: center;
}

.comparison-chart canvas {
    max-height: 250px;
}

.comparison-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 15px;
    background: #1a1a2e;
    border-radius: 8px;
}

.comparison-item {
    text-align: center;
}

.comparison-item .label {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.comparison-item .value {
    font-size: 1.2rem;
    font-weight: 600;
}

.comparison-item .value.positiv {
    color: #4caf50;
}

.comparison-item .value.negativ {
    color: #f44336;
}

/* ===== Details Section ===== */
.details-section {
    margin-bottom: 20px;
}

.details-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.details-controls input[type="text"] {
    background: #2a2a4a;
    border: 1px solid #3a3a5a;
    border-radius: 6px;
    padding: 8px 12px;
    color: #e0e0e0;
    min-width: 200px;
}

.details-controls select {
    background: #2a2a4a;
    border: 1px solid #3a3a5a;
    border-radius: 6px;
    padding: 8px 12px;
    color: #e0e0e0;
}

.details-table-container {
    overflow-x: auto;
    margin: 15px 0;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.details-table th,
.details-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #3a3a5a;
}

.details-table th {
    background: #1a1a2e;
    color: #4fc3f7;
    font-weight: 600;
    position: sticky;
    top: 0;
    white-space: nowrap;
}

.details-table tbody tr {
    transition: background 0.2s;
}

.details-table tbody tr:hover {
    background: #2a2a4a;
}

.details-table td.align-right,
.details-table th.align-right {
    text-align: right;
}

.details-table .einnahmen {
    color: #4caf50;
}

.details-table .ausgaben {
    color: #f44336;
}

/* Typ-Badges für Einnahme/Ausgabe/Weiterleitung */
.typ-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.typ-badge.einnahme {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.typ-badge.ausgabe {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.4);
}

.typ-badge.weiterleitung {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.4);
}

.details-table tfoot {
    background: linear-gradient(135deg, #1e1e3f, #2a2a4a);
    font-weight: 600;
}

.details-table tfoot td {
    border-top: 2px solid #4fc3f7;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 15px 0;
}

.pagination button {
    padding: 8px 14px;
    background: #2a2a4a;
    border: 1px solid #3a3a5a;
    border-radius: 6px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination button:hover {
    background: #3a3a5a;
    border-color: #4fc3f7;
}

.pagination button.active {
    background: #4fc3f7;
    color: #1a1a2e;
    border-color: #4fc3f7;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== Objekt Section ===== */
.objekt-section {
    margin-bottom: 20px;
}

.objekt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.objekt-card {
    background: linear-gradient(135deg, #1e1e3f, #2a2a4a);
    border: 1px solid #3a3a5a;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.objekt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.objekt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3a3a5a;
}

.objekt-card-header h3 {
    margin: 0;
    color: #4fc3f7;
    font-size: 1.1rem;
}

.objekt-number {
    background: #4fc3f7;
    color: #1a1a2e;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.objekt-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.objekt-stat {
    text-align: center;
    padding: 10px;
    background: #1a1a2e;
    border-radius: 8px;
}

.objekt-stat .label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 5px;
}

.objekt-stat .value {
    font-size: 1.1rem;
    font-weight: 600;
}

.objekt-stat.einnahmen .value {
    color: #4caf50;
}

.objekt-stat.ausgaben .value {
    color: #f44336;
}

.objekt-stat.gewinn .value.positiv {
    color: #4caf50;
}

.objekt-stat.gewinn .value.negativ {
    color: #f44336;
}

.objekt-mieter {
    margin-top: 15px;
}

.objekt-mieter h4 {
    margin: 0 0 10px 0;
    color: #888;
    font-size: 0.85rem;
}

.mieter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mieter-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #1a1a2e;
    border-radius: 6px;
    font-size: 0.85rem;
}

.mieter-item .name {
    color: #e0e0e0;
}

.mieter-item .betrag {
    font-weight: 600;
}

/* ===== Buttons ===== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    color: #1a1a2e;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #29b6f6, #03a9f4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #2a2a4a;
    color: #e0e0e0;
    border: 1px solid #3a3a5a;
}

.btn-secondary:hover {
    background: #3a3a5a;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .monat-checkboxes {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comparison-charts {
        grid-template-columns: 1fr;
    }
    
    .chart-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .details-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .details-controls input[type="text"] {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .monat-checkboxes {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .objekt-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ELIOT TRAINING SECTION ===== */
.eliot-training-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #3a3a5a;
    margin-bottom: 20px;
}

.eliot-training-content {
    padding: 10px;
}

.eliot-intro {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.eliot-avatar-large {
    font-size: 60px;
    animation: eliot-float 3s ease-in-out infinite;
}

@keyframes eliot-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.eliot-welcome h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1.3rem;
}

.eliot-welcome p {
    margin: 0 0 10px 0;
    color: #ccc;
    line-height: 1.5;
}

.eliot-hint {
    background: rgba(255, 193, 7, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #ffc107 !important;
}

.eliot-training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.eliot-training-card {
    background: #1f2b47;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.eliot-training-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.eliot-training-card.einnahmen {
    border-color: #4caf50;
}

.eliot-training-card.einnahmen:hover {
    background: rgba(76, 175, 80, 0.1);
}

.eliot-training-card.ausgaben {
    border-color: #f44336;
}

.eliot-training-card.ausgaben:hover {
    background: rgba(244, 67, 54, 0.1);
}

.eliot-training-card.active {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.2);
}

.training-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.eliot-training-card h4 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1.1rem;
}

.eliot-training-card p {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0 0 15px 0;
}

.training-status {
    margin-bottom: 15px;
}

.training-status .status-count {
    background: rgba(102, 126, 234, 0.2);
    color: #4fc3f7;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Eliot Drop Container */
.eliot-drop-container {
    background: #1f2b47;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px dashed #667eea;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.eliot-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.05);
}

.eliot-drop-zone:hover {
    background: rgba(102, 126, 234, 0.15);
}

.eliot-drop-zone.dragover {
    background: rgba(102, 126, 234, 0.25);
    border-color: #4fc3f7;
}

.drop-zone-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.drop-zone-text {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
}

.drop-zone-hint {
    background: #667eea;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.eliot-training-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.eliot-progress {
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.progress-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 6px;
    font-size: 0.9rem;
    color: #ccc;
}

.progress-item.success {
    border-left: 3px solid #4caf50;
}

.progress-item.error {
    background: rgba(244, 67, 54, 0.1);
    border-left: 3px solid #f44336;
}

/* Eliot Knowledge Summary */
.eliot-knowledge-summary {
    background: #1f2b47;
    border-radius: 12px;
    padding: 20px;
}

.eliot-knowledge-summary h4 {
    margin: 0 0 15px 0;
    color: #fff;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.knowledge-box {
    padding: 15px;
    border-radius: 8px;
    background: rgba(0,0,0,0.2);
}

.knowledge-box.einnahmen {
    border-left: 3px solid #4caf50;
}

.knowledge-box.ausgaben {
    border-left: 3px solid #f44336;
}

.knowledge-box strong {
    color: #fff;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.knowledge-list {
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.6;
}

.knowledge-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.knowledge-tag {
    display: inline-block;
    background: rgba(102, 126, 234, 0.2);
    color: #4fc3f7;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin: 2px;
}

.knowledge-list em {
    color: #888;
    font-size: 0.8rem;
}

/* ===== KOSTENVERGLEICH SECTION ===== */
.kostenvergleich-section {
    margin-bottom: 20px;
}

.section-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-top: 5px;
}

.vergleich-steuerung {
    background: #1f2b47;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.vergleich-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.vergleich-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vergleich-group label {
    color: #aaa;
    font-size: 0.85rem;
}

.vergleich-group select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #3a3a5a;
    background: #16213e;
    color: #fff;
    font-size: 0.9rem;
}

.vergleich-actions {
    text-align: center;
}

/* Vergleichs-Ergebnisse */
.vergleich-ergebnisse {
    animation: fadeIn 0.3s ease;
}

.vergleich-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.summary-card {
    background: #1f2b47;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.summary-card .summary-label {
    display: block;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.summary-card .summary-value {
    display: block;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
}

.summary-card.differenz .summary-value {
    color: #4fc3f7;
}

.summary-card.differenz.positiv .summary-value {
    color: #f44336;
}

.summary-card.differenz.negativ .summary-value {
    color: #4caf50;
}

.summary-percent {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    padding: 3px 10px;
    border-radius: 15px;
    display: inline-block;
}

.summary-card.differenz.positiv .summary-percent {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.summary-card.differenz.negativ .summary-percent {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

/* Vergleichs-Tabelle */
.vergleich-tabelle-container {
    overflow-x: auto;
    margin-bottom: 25px;
}

.vergleich-tabelle {
    width: 100%;
    border-collapse: collapse;
    background: #1f2b47;
    border-radius: 10px;
    overflow: hidden;
}

.vergleich-tabelle th {
    background: #16213e;
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.vergleich-tabelle td {
    padding: 12px 15px;
    border-bottom: 1px solid #3a3a5a;
    color: #ccc;
}

.vergleich-tabelle tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

.vergleich-tabelle .trend-up {
    color: #f44336;
}

.vergleich-tabelle .trend-down {
    color: #4caf50;
}

.vergleich-tabelle .trend-same {
    color: #888;
}

/* Vergleichs-Chart */
.vergleich-chart-container {
    background: #1f2b47;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

/* Auffälligkeiten */
.vergleich-auffaelligkeiten {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
}

.vergleich-auffaelligkeiten h4 {
    color: #ffc107;
    margin: 0 0 15px 0;
}

.vergleich-auffaelligkeiten ul {
    margin: 0;
    padding-left: 20px;
}

.vergleich-auffaelligkeiten li {
    color: #ccc;
    margin-bottom: 8px;
    line-height: 1.5;
}

.vergleich-auffaelligkeiten .highlight-red {
    color: #f44336;
    font-weight: 600;
}

.vergleich-auffaelligkeiten .highlight-green {
    color: #4caf50;
    font-weight: 600;
}

/* Responsive für neue Sections */
@media (max-width: 768px) {
    .eliot-intro {
        flex-direction: column;
        text-align: center;
    }
    
    .eliot-training-grid {
        grid-template-columns: 1fr;
    }
    
    .vergleich-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .vergleich-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .vergleich-row {
        grid-template-columns: 1fr;
    }
    
    .eliot-training-actions {
        flex-direction: column;
    }
    
    .knowledge-actions {
        flex-direction: column;
    }
}
