/* Modified: November 21, 2025, 20:47 - Vollständiges CSS für Cisco Partner Quality Index Wizard erstellt */
/* # Modified: 24.11.2025, 23:30 - Added .slider-neutral for N/A state */
/* # Modified: 27.11.2025, 18:00 - AP 14: Added utility classes to replace inline JS styles */
/* # Modified: 02.12.2025, 15:45 - AP 41: New .help-beacon classes replacing .info-trigger for visibility upgrade */

/* Reset und Grundlagen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    text-align: center;
}

.header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.2em;
    font-weight: 300;
}

/* Fortschrittsanzeige */
.progress-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.progress-bar {
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 20%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #bdc3c7;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active {
    background: #3498db;
    transform: scale(1.1);
}

.step.completed {
    background: #2ecc71;
}

/* Wizard Container */
.wizard-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 30px;
    min-height: 600px;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.wizard-step.active {
    display: block;
}

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

.wizard-step h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 10px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.step-description {
    color: #7f8c8d;
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* Formulare */
.form-section {
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Kriterien-Tabellen */
.criteria-group {
    margin-bottom: 40px;
}

.criteria-group-title {
    background: #3498db;
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
    font-size: 1.1em;
}

.criteria-table {
    border: 2px solid #3498db;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.criteria-row {
    display: flex;
    border-bottom: 1px solid #ecf0f1;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.criteria-row:last-child {
    margin-bottom: 0;
}

.criteria-row:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.criteria-content {
    padding: 20px;
    background: #f8f9fa;
}

.criteria-info {
    display: flex;
    padding: 20px;
    background: white;
    width: 100%;
}

.criteria-name {
    flex: 1;
    font-weight: 600;
    color: #2c3e50;
    padding-right: 20px;
    border-right: 2px solid #ecf0f1;

}

.criteria-description {
    flex: 2;
    color: #555;
    padding-left: 20px;

}

/* Slider */
.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
}

.slider-label {
    font-weight: bold;
    color: #7f8c8d;
    min-width: 20px;
}

.slider-wrapper {
    flex: 1;
    position: relative;
}

/* NEU: Klasse für neutrale Slider (N/A, Wert 0) */
input[type=range].slider-neutral {
    filter: grayscale(100%);
    opacity: 0.7;
}

.slider-value {
    font-weight: bold;
    color: #3498db;
    font-size: 1.2em;
    min-width: 30px;
    text-align: center;
}

.slider-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 10px;
}

.slider-tooltip:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #2c3e50;
}

.slider-wrapper:hover .slider-tooltip {
    opacity: 1;
}

/* Partner-Auswahl */
.partner-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.partner-checkbox {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.partner-checkbox:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.partner-checkbox.selected {
    border-color: #2ecc71;
    background: #d5f4e6;
}

.partner-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    accent-color: #2ecc71;
}

.partner-checkbox label {
    font-weight: 500;
    cursor: pointer;
    flex: 1;
}

.selection-info {
    text-align: center;
    font-size: 1.1em;
    color: #7f8c8d;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Partner-Navigation */
.partner-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

#partner-progress {
    font-weight: bold;
    color: #2c3e50;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.btn-success {
    background: #2ecc71;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

/* Erfolgsmeldung */
.success-container {
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 4em;
    color: #2ecc71;
    margin-bottom: 20px;
}

.success-container h2 {
    color: #2ecc71;
    margin-bottom: 20px;
    border: none;
}

.success-details {
    color: #7f8c8d;
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.error-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
}

.error-content h3 {
    color: #e74c3c;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .wizard-container {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        min-width: unset;
    }
    
    .criteria-info {
        flex-direction: column;
    }
    
    .criteria-name {
        border-right: none;
        border-bottom: 2px solid #ecf0f1;
        padding-right: 0;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    
.criteria-description {
    flex: 2;
    min-width: 60%;
    color: #555;
    padding-left: 20px;
}
    
    .partner-selection {
        grid-template-columns: 1fr;
    }
    
    .partner-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px;
    }
    
    .wizard-container {
        padding: 15px;
    }
    
    .slider-container {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .slider-label {
        text-align: center;
    }
    
    .progress-steps {
        gap: 10px;
    }
    
    .step {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }
}

/* Partner Score Analyse: Heatmap-Balken */
.score-bar-bg {
    width: 95%;
    height: 16px;
    background: #ecf0f1;
    border-radius: 8px;
    margin: 0 auto 6px auto;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.07);
    position: relative;
}
.score-bar-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.5s, background 0.5s;
}
.score-bar-value {
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1em;
    margin-top: 1px;
    margin-bottom: 3px; 
}

/* =========================================
   Tree View Styles (Explorer Look) - FINAL v2
   ========================================= */

/* 1. Basis-Container */
.tree-view {
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.4; 
}

/* 2. Knoten & Header */
.tree-node {
    position: relative;
    list-style: none;
    overflow: visible !important; 
}

.tree-header {
    display: flex;
    align-items: center;
    padding: 2px 5px;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    z-index: 2; 
    background-color: transparent; 
}

.tree-header:hover {
    background-color: #eaf6ff;
}

/* 3. Elemente im Header */
/* Chevron (Pfeil): Cisco Blue */
.tree-header .chevron { 
    width: 20px; 
    text-align: center; 
    color: #3498db;  /* Das gewünschte Blau */
    font-size: 0.9em; 
    font-weight: bold;
    transition: transform 0.1s;
}

/* KORREKTUR: Platz sparen bei Blättern (keine Kinder) */
.tree-header .chevron.invisible { 
    display: none; /* Entfernt den Platzhalter komplett */
}

/* Checkbox */
.tree-header input[type="checkbox"] { 
    margin: 0 6px 0 0; 
}

/* Wenn kein Chevron da ist (Leaf Node), braucht die Checkbox etwas Abstand zur Linie */
.tree-header .chevron.invisible + input[type="checkbox"] {
    margin-left: 5px; /* Kleiner Abstand zur vertikalen Linie */
}

.tree-header label { 
    cursor: pointer; 
    user-select: none; 
    flex: 1; 
    font-size: 14px; 
    color: #333; 
}

/* 4. Der Kinder-Container (Die Einrückung) */
.tree-children {
    margin-left: 10px;    
    padding-left: 20px;   
    position: relative;
    overflow: visible !important;
}

/* =========================================
   Die Verbindungslinien (L-Shape) 
   ========================================= */

/* Vertikale Linie */
.tree-children .tree-node::before {
    content: "";              
    display: block;
    position: absolute;
    z-index: 1;
    left: -11px;              
    top: 0;
    bottom: 0;                
    border-left: 1px solid #999; /* Dein gewähltes Grau */
}

/* Horizontale Linie (Ast) */
.tree-children .tree-node::after {
    content: "";
    display: block;
    position: absolute;
    z-index: 1;
    left: -11px;              
    top: 15px;                
    width: 13px;              
    border-top: 1px solid #999; /* Dein gewähltes Grau */
}

/* Spezialfall: Letztes Kind */
.tree-children .tree-node:last-child::before {
    bottom: auto;      
    height: 16px;      
}


/* =========================================
   Modal & IPA Matrix Styles
   ========================================= */

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal-content-large {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #7f8c8d;
    cursor: pointer;
}
.modal-close:hover { color: #e74c3c; }

#matrix-title {
    margin: 0 0 20px 0;
    color: #2c3e50;
}

.matrix-wrapper {
    width: 100%;
    max-width: 650px; /* Quadratisch halten WAR 450 - RKORELL*/
    aspect-ratio: 1 / 1;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    position: relative;
}

/* Tooltip unter/über der Grafik */
.matrix-tooltip {
    margin-top: 15px;
    padding: 10px 15px;
    background: #34495e;
    color: white;
    border-radius: 6px;
    font-size: 0.95em;
    min-height: 40px; /* Damit es nicht springt */
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* SVG Styles */
.matrix-svg text {
    font-family: sans-serif;
    pointer-events: none; /* Text blockiert Maus nicht */
}

.matrix-dot {
    cursor: pointer;
    transition: r 0.2s, fill 0.2s;
}

.matrix-dot:hover {
    r: 9;
    fill: #e74c3c; /* Wird rot beim Hovern */
    z-index: 100;
}

/* =========================================
   Author Signature (Branding)
   ========================================= */

.author-signature {
    text-align: right;
    color: #95a5a6; /* Cisco "Concrete" Grey */
    margin-top: 30px;
    font-size: 0.8em;
    font-weight: normal;
    border-top: 1px solid #ecf0f1; /* Optionale feine Linie zur Abgrenzung */
    padding-top: 10px;
}


/* =========================================
   Info Trigger (Hilfe-Button) & Modal - LEGACY
   Hinweis: Ersetzt durch .help-beacon Klassen (AP 41)
   ========================================= */

/* Der Button (CSS Only Icon) */
.info-trigger {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 28px;
    height: 28px;
    background-color: #ecf0f1;
    color: #34495e;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-family: 'Georgia', serif; /* Klassisches Serif-i wirkt edel */
    font-weight: bold;
    font-style: italic;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-trigger:hover {
    background-color: #3498db; /* Cisco Blau */
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Das Info-Modal (Overlay) */
.info-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); /* Dunkler Hintergrund */
    z-index: 3000;
    display: none; /* Standardmäßig versteckt */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.info-modal-content {
    background: white;
    width: 90%;
    max-width: 890px;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    position: relative;
    line-height: 1.6;
    color: #333;
    max-height: 90vh;
    overflow-y: auto;
}

.info-modal-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    font-weight: 300;
    color: #bdc3c7;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.info-modal-close:hover { color: #e74c3c; }

/* Typografie im Modal */
.info-modal-content h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.info-modal-content strong {
    color: #2c3e50;
}

.info-modal-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.info-modal-content li {
    margin-bottom: 8px;
}

/* =========================================
   AP 41: Help Beacon - Neue Info-Icon Klassen
   Ersetzt .info-trigger mit besserer Sichtbarkeit
   ========================================= */

/* Pulse Animation für Aufmerksamkeit beim Laden */
@keyframes help-beacon-pulse {
    0% {
        box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 0 0 0 rgba(245, 166, 35, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3), 0 0 0 8px rgba(245, 166, 35, 0);
    }
    100% {
        box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 0 0 0 rgba(245, 166, 35, 0);
    }
}

/* Basis-Klasse für Wizard (index.html) */
.help-beacon {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 36px;
    height: 36px;
    background-color: #F5A623;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    font-family: 'Georgia', serif;
    font-weight: bold;
    font-style: italic;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: help-beacon-pulse 0.8s ease-in-out 10;
    animation-delay: 0.4s;
}

.help-beacon:hover {
    background-color: #34495e;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(52, 73, 94, 0.3);
}


@keyframes help-beacon-pulse-header {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 0 0 0 rgba(245, 166, 35, 0.4);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3), 0 0 0 12px rgba(245, 166, 35, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 0 0 0 rgba(245, 166, 35, 0);
    }
}

/* Variante für Tabellen-Header (Analyse) */
.help-beacon-header {
    position: absolute;
    right: 15px;
    top: 50%;
    margin-top: -16px;
    width: 32px;
    height: 32px;
    background-color: #F5A623;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-family: 'Georgia', serif;
    font-weight: bold;
    font-style: italic;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
/*    animation: help-beacon-pulse 0.8s ease-in-out 3;*/
    animation: help-beacon-pulse-header 0.8s ease-in-out 10;
}

.help-beacon-header:hover {
    background-color: #34495e;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(52, 73, 94, 0.3);
}

/* =========================================
   NEU (AP 14): Utility Classes für JS-Generiertes HTML
   Zweck: Ablösung der Inline-Styles in score_analyse.js / wizard-data-view.js
   ========================================= */

/* Score Analyse: Tabelle Header & Rows */
.score-table-header {
    background: #f8f9fa;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.score-table-row {
    display: flex;
    align-items: center;
}

/* Spaltenbreiten (Flex) */
.col-partner {
    flex: 0 0 300px;
}

.col-partner-link {
    color: #3498db;
    cursor: pointer;
    font-weight: 500;
}

.col-score-graph {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    padding-right: 10px;
}

.col-count {
    flex: 0 0 110px;
    text-align: center;
}

.col-insights {
    flex: 0 0 260px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
}

/* Score Bar Balken Wrapper (in score-table-row) */
.score-bar-wrapper {
    flex: 1;
    margin: 0;
    height: 16px;
    background: #ecf0f1;
    border-radius: 8px;
    overflow: hidden;
}

.score-bar-text {
    margin-left: 10px;
    min-width: 40px;
    text-align: right;
    font-weight: bold;
    color: #2c3e50;
}

/* Insight Slots */
.insight-slot-nps {
    width: 80px;
    text-align: left;
    white-space: nowrap;
}

.insight-slot-icon {
    width: 60px;
    text-align: center;
}

.insight-slot-mini {
    width: 30px;
    text-align: center;
}

/* Insight Icons Styling */
.nps-display {
    margin: 0; 
    cursor: default; 
    font-size: 1.2em; 
    white-space: nowrap;
}

.nps-value {
    font-size: 0.8em; 
    font-weight: bold; 
    vertical-align: middle;
}

.action-icon {
    margin: 0; 
    cursor: pointer; 
    font-size: 1.5em;
}

.action-count {
    font-size: 0.6em; 
    font-weight: bold; 
    vertical-align: middle;
}

/* Wizard Header Slider Labels */
.slider-value-label {
    min-width: 200px; 
    text-align: left; 
    margin-left: 15px;
}

/* Comment Container */
.comment-container {
    display: none; /* JS toggles this */
    margin-top: 10px; 
    padding-left: 20px;
}

.comment-textarea {
    width: 100%; 
    height: 60px; 
    padding: 5px; 
    border-radius: 4px; 
    border: 1px solid #ccc;
}

.comment-textarea-large {
    width: 100%; 
    height: 80px; 
    padding: 10px; 
    border: 2px solid #ddd; 
    border-radius: 8px; 
    resize: vertical;
}

.partner-header-box {
    background: #fff; 
    padding: 20px; 
    border-radius: 8px; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

/* Icon Legend */
.icon-legend-box {
    margin-top: 15px; 
    padding: 10px; 
    background: #f8f9fa; 
    border-radius: 4px; 
    font-size: 0.9em; 
    color: #7f8c8d;
}

.legend-item {
    margin-right: 20px;
}


/* =========================================
   NEU (AP 19): Utility Classes für JS-Generiertes HTML
   Zweck: Ablösung verbliebener Inline-Styles in score_analyse.js
   ========================================= */

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

/* Modal Tabellen & Texte */
.modal-headline {
    margin-top: 0;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.modal-table {
    width: 100%;
    text-align: left;
}

.text-danger-bold {
    color: #e74c3c;
    font-weight: bold;
}

.text-primary-bold {
    color: #3498db;
    font-weight: bold;
}

/* Legende */
.legend-label {
    margin-right: 10px;
}

/* Fix für Slider in Form-Groups (Header): Padding entfernen, damit die Linie bis zum Rand geht */
.form-group input[type="range"] {
    padding: 0;
}

/* =========================================
   AP I.3: Diverging Bar Chart & Awareness
   ========================================= */

/* Diverging Bar Container */
.dbc-container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 24px; /* Etwas höher für bessere Lesbarkeit */
    position: relative;
    background-color: #f9f9f9; /* Leichter Hintergrund */
    border-radius: 4px;
    overflow: hidden;
}

/* Die Null-Linie in der Mitte */
.dbc-zero-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #bdc3c7;
    z-index: 1;
}

/* Linker Bereich (Negativ/Rot) */
.dbc-bar-left-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* Balken wächst von rechts nach links */
    padding-right: 1px; /* Abstand zur Nulllinie */
}

.dbc-bar-left {
    height: 100%;
    background-color: #e74c3c; /* Rot */
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Text links im Balken */
    padding-left: 5px;
    color: white;
    font-size: 0.8em;
    white-space: nowrap;
    overflow: hidden;
    transition: width 0.5s ease-in-out;
}

/* Rechter Bereich (Positiv/Grün) */
.dbc-bar-right-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-start; /* Balken wächst von links nach rechts */
    padding-left: 1px; /* Abstand zur Nulllinie */
}

.dbc-bar-right {
    height: 100%;
    background-color: #2ecc71; /* Grün */
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Text rechts im Balken */
    padding-right: 5px;
    color: white;
    font-size: 0.8em;
    white-space: nowrap;
    overflow: hidden;
    transition: width 0.5s ease-in-out;
}

/* Awareness Pie Chart */
.awareness-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.awareness-pie {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #ecf0f1; /* Fallback */
    /* Gradient wird per JS gesetzt */
}

.awareness-text {
    font-size: 0.8em;
    color: #7f8c8d;
}

/* Matrix Styling Updates */
.matrix-axis-label {
    font-size: 12px;
    fill: #7f8c8d;
    font-weight: bold;
}

.matrix-grid-line {
    stroke: #ecf0f1;
    stroke-width: 1;
}

.matrix-axis-line {
    stroke: #95a5a6;
    stroke-width: 2;
    marker-end: url(#arrow); /* Pfeilspitze */
}

/* =========================================
   AP 35: Matrix & Modal Optimierungen 
   ========================================= */

/* Modal breiter machen für mehr Platz (Matrix + Text) */
.modal-content-large {
    max-width: 800px; /* Verbreitert von 600px */
}

/* Matrix Tooltip fixieren gegen "Springen" */
.matrix-tooltip {
    min-height: 80px; /* Feste Mindesthöhe erzwingen */
    display: flex;
    align-items: center;     /* Vertikal zentrieren */
    justify-content: center; /* Horizontal zentrieren */
    width: 100%;             /* Volle Breite nutzen */
}

/* Matrix Punkte: Transparenz für Overplotting-Erkennung */
.matrix-dot {
    opacity: 0.6; /* Halbtransparent */
}

/* Beim Hovern voll deckend */
.matrix-dot:hover {
    opacity: 1.0;
}

/* Neues, dezentes Koordinatenkreuz (Durchgezogen) */
.matrix-cross-line {
    stroke: #bdc3c7; /* Dezentes Grau (Silver) */
    stroke-width: 1.5px;
    shape-rendering: geometricPrecision;
}

/* Größere Labels für die Endwerte (5) */
.matrix-axis-label-large {
    font-size: 14px;
    font-weight: bold;
    fill: #7f8c8d;
}

/* Info-Icon inline im Tabellen-Header - LEGACY */
.info-trigger-inline {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 0.9em;
}


/* Hover für inline-Variante: Kombinierter Transform - LEGACY */
.info-trigger-inline:hover {
    transform: translateY(-50%) scale(1.1);
}

/* ============================================================
   AP 40: Design-Upgrade - Cards, Gradients, Pills, Header
   Added: 30.11.2025, 14:15
   Einfach am Ende der style.css anhängen
   ============================================================ */

/* --- A: Cards statt flache Tabellenzeilen --- */
.score-table-row {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
    padding: 12px 15px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.score-table-row:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Header-Zeile als Card ausschließen */
.score-table-header {
    background: transparent;
    box-shadow: none;
    margin-bottom: 8px;
    padding: 8px 15px;
    border-radius: 0;
    border-bottom: 2px solid #ecf0f1;
}

.score-table-header:hover {
    box-shadow: none;
    transform: none;
}

/* --- B: Gradient-Balken statt Flat-Color --- */
.dbc-bar-right {
    background: linear-gradient(90deg, #66bb6a, #43a047);
    border-radius: 0 4px 4px 0;
}

.dbc-bar-left {
    background: linear-gradient(90deg, #ef5350, #e57373);
    border-radius: 4px 0 0 4px;
}

/* --- D: Pills für Insight-Icons --- */
.insight-slot-nps .nps-display {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #e9ecef;
}

.insight-slot-icon .insight-icon,
.insight-slot-mini .insight-icon {
    background: #f8f9fa;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
    font-size: 1em;
    transition: background-color 0.2s ease;
}

.insight-slot-icon .insight-icon:hover,
.insight-slot-mini .insight-icon:hover {
    background: #e9ecef;
}

/* Kommentar-Icon (💬) mit Count */
.insight-icon .action-count {
    font-size: 0.75em;
    margin-left: 2px;
}

/* --- E: Header-Redesign --- */
.criteria-group-title {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 8px 8px 0 0;
    padding: 14px 20px;
    font-size: 1.1em;
    letter-spacing: 0.3px;
}

/* --- Zusätzliche Feinheiten --- */

/* Mehr Weißraum um die Tabelle */
.criteria-table {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

/* Partner-Link dezenter */
.col-partner-link {
    color: #2c3e50;
    font-weight: 600;
    transition: color 0.2s ease;
}

.col-partner-link:hover {
    color: #3498db;
}

/* Awareness-Pie etwas größer und mit Schatten */
.awareness-pie {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Legende als Card */
.icon-legend-box {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 12px 20px;
    margin-top: 20px;
}

/* ============================================================
   Ende AP 40
   ============================================================ */

.dbc-bar-left,
.dbc-bar-right {
    text-shadow: 
        0 0 3px rgba(0, 0, 0, 0.7),
        0 0 6px rgba(0, 0, 0, 0.5);
}


/* Text außerhalb bei kleinen Balken */
.dbc-bar-left.text-outside,
.dbc-bar-right.text-outside {
    overflow: visible;
}

.dbc-bar-right.text-outside {
    color: #2c3e50;
    text-shadow: none;
}

.dbc-bar-left.text-outside {
    color: #2c3e50;
    text-shadow: none;
}

.dbc-bar-left-wrapper,
.dbc-bar-right-wrapper {
    overflow: visible;
}

/* =========================================
   AP 42: Slider Modernisierung (3D-Effekte)
   Added: 02.12.2025
   ========================================= */

/* Basis-Reset für Custom-Styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

/* Track - Firefox */
input[type="range"]::-moz-range-track {
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

/* Thumb - Chrome/Safari/Edge */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #3498db;
    border: 3px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Thumb - Firefox */
input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3498db;
    border: 3px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Hover-Effekt für Thumb */
input[type="range"]::-webkit-slider-thumb:hover {
    background: #2980b9;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

input[type="range"]::-moz-range-thumb:hover {
    background: #2980b9;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
/* AP 44: Name/Email ausgeblendet (Datenschutz) */
.form-row:has(#name) {
    display: none;
}
