/**
 * Profile Review Modal Styles
 * Extracted from archetype-interaction.html for modularization
 *
 * (c) 2025 Ti-age.de - All rights reserved
 */

/* Toggle Button Grid - Card Rows */
.profile-review-checkbox-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
}

/* Toggle Button - Card Row Style */
.profile-review-toggle-btn {
    display: flex !important;
    width: 100% !important;
    padding: 12px 14px !important;
    background: rgba(255,255,255,0.03) !important;
    border: none !important;
    border-left: 3px solid #22c55e !important;
    border-radius: 6px !important;
    color: var(--text-primary) !important;
    font-size: 13px !important;
    text-align: left !important;
    cursor: pointer !important;
    align-items: center !important;
}

.profile-review-toggle-btn .toggle-label {
    flex: 1 !important;
}

/* Status-Indikator: "Egal" vs "Wichtig" */
.profile-review-toggle-btn::after {
    content: "Egal";
    font-size: 11px !important;
    color: var(--text-muted, #888) !important;
    margin-right: 8px !important;
}

.profile-review-toggle-btn.active {
    background: rgba(34, 197, 94, 0.15) !important;
}

.profile-review-toggle-btn.active::after {
    content: "\2713  Wichtig";
    color: #22c55e !important;
    font-weight: 600 !important;
}

/* Triple Attribute - Card Row Style */
.profile-review-triple-attribute {
    background: rgba(255,255,255,0.03) !important;
    border-left: 3px solid var(--primary, #457b9d) !important;
    border-radius: 6px !important;
    padding: 12px 14px !important;
    margin-bottom: 8px !important;
}

.profile-review-triple-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
}

.profile-review-triple-title {
    flex: 1 !important;
    font-size: 13px !important;
    color: #FFD700 !important;
    font-weight: 500 !important;
}

.profile-review-triple-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
}

/* 5-Button Layout: 3 oben, 2 unten zentriert */
.profile-review-triple-buttons.five-options {
    grid-template-columns: repeat(6, 1fr) !important;
}

.profile-review-triple-buttons.five-options .profile-review-triple-btn:nth-child(1),
.profile-review-triple-buttons.five-options .profile-review-triple-btn:nth-child(2),
.profile-review-triple-buttons.five-options .profile-review-triple-btn:nth-child(3) {
    grid-column: span 2;
}

.profile-review-triple-buttons.five-options .profile-review-triple-btn:nth-child(4) {
    grid-column: 2 / span 2;
}

.profile-review-triple-buttons.five-options .profile-review-triple-btn:nth-child(5) {
    grid-column: 4 / span 2;
}

.profile-review-triple-btn {
    padding: 8px 6px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    background: rgba(255,255,255,0.03) !important;
    color: var(--text-muted) !important;
    font-size: 12px !important;
    cursor: pointer !important;
    text-align: center !important;
}

.profile-review-triple-btn:hover {
    background: rgba(255,255,255,0.08) !important;
    color: var(--text-primary) !important;
}

.profile-review-triple-btn.active {
    background: var(--primary, #457b9d) !important;
    border-color: var(--primary, #457b9d) !important;
    color: white !important;
}

/* Geschlechtsidentität (Sekundär) - Gelbe Farbe wie auf Hauptseite */
[data-attr="pr-geschlecht-sekundaer"] .profile-review-triple-btn.active {
    background: rgba(234, 179, 8, 0.6) !important;
    border-color: #eab308 !important;
    color: white !important;
}

/* Info Icon for Attribute Descriptions */
.attr-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    font-size: 12px;
    color: var(--text-muted, #888);
    cursor: pointer;
    vertical-align: middle;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s, transform 0.2s;
    position: relative;
}

.attr-info-icon:active {
    transform: scale(0.9);
}

.attr-info-icon:hover {
    opacity: 1;
    color: var(--primary, #457b9d);
}

/* CSS-only Tooltip */
.attr-info-icon[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    font-size: 12px;
    font-weight: normal;
    text-transform: none;
    line-height: 1.4;
    white-space: normal;
    width: max-content;
    max-width: 250px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 9999;
    pointer-events: none;
}

/* Tooltip Arrow */
.attr-info-icon[data-tooltip]::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 2px;
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 9999;
}

/* Show tooltip on hover */
.attr-info-icon[data-tooltip]:hover::after,
.attr-info-icon[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   GEWICHTUNG CARD STYLES
   ============================================ */

.gewichtung-card {
    border-left: 3px solid #10B981 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gewichtung-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.gewichtung-card-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
}

.gewichtung-card-label {
    font-size: 13px;
    color: var(--text-secondary, #aaa);
    font-weight: 500;
    flex-shrink: 0;
}

.gewichtung-card-input-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px;
    flex-shrink: 0;
}

.gewichtung-card .gewichtung-input,
input.gewichtung-input {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    padding: 5px 4px !important;
    border: 1px solid rgba(16, 185, 129, 0.5) !important;
    border-radius: 4px !important;
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10B981 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    outline: none !important;
    transition: all 0.2s ease;
    box-sizing: border-box !important;
}

.gewichtung-card .gewichtung-input:focus,
input.gewichtung-input:focus {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

.gewichtung-percent {
    color: var(--text-muted, #888);
    font-size: 12px;
}

.gewichtung-lock-indicator {
    width: 16px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease;
}

.gewichtung-lock-indicator:hover {
    transform: scale(1.2);
}

.gewichtung-card:not(.locked):not(.readonly) .gewichtung-lock-indicator::before {
    content: '🔓';
    font-size: 12px;
    opacity: 0.5;
}

.gewichtung-card.locked {
    border-left-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.05);
}

.gewichtung-card.locked .gewichtung-input {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
    color: #f59e0b !important;
}

.gewichtung-card.locked .gewichtung-lock-indicator::before {
    content: '🔒';
    font-size: 12px;
}

.gewichtung-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
    margin-top: 8px;
}

.gewichtung-hint {
    font-size: 11px;
    color: var(--text-muted, #888);
}

.gewichtung-summe-text {
    font-size: 12px;
    color: var(--text-secondary, #aaa);
}

.gewichtung-summe-value {
    font-weight: 600;
    color: #10B981;
}

.gewichtung-summe-error {
    color: #ef4444 !important;
}

.gewichtung-summe-lock {
    cursor: pointer;
    user-select: none;
    margin-left: 6px;
    font-size: 12px;
    opacity: 0.6;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.gewichtung-summe-lock:hover {
    transform: scale(1.2);
    opacity: 1;
}

.gewichtung-summe-lock.locked {
    opacity: 1;
}

/* Gewichtung Slider Styles */
.gewichtung-slider-row {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 12px;
    min-width: 100px;
}

.gewichtung-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right,
        rgba(16, 185, 129, 0.2) 0%,
        rgba(16, 185, 129, 0.4) 100%);
    outline: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.gewichtung-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #10B981;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: grab;
    transition: transform 0.1s, box-shadow 0.2s;
}

.gewichtung-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.gewichtung-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.15);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.5);
}

.gewichtung-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #10B981;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: grab;
    transition: transform 0.1s, box-shadow 0.2s;
}

.gewichtung-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.gewichtung-slider::-moz-range-track {
    background: transparent;
    border: none;
}

/* Locked state for slider */
.gewichtung-card.locked .gewichtung-slider {
    opacity: 0.5;
    pointer-events: none;
}

.gewichtung-card.locked .gewichtung-slider::-webkit-slider-thumb {
    border-color: #f59e0b;
}

.gewichtung-card.locked .gewichtung-slider::-moz-range-thumb {
    border-color: #f59e0b;
}

/* ============================================
   RESONANZ CARD STYLES
   ============================================ */

.profile-review-category-resonanz {
    border-color: rgba(34, 197, 94, 0.3) !important;
}

.profile-review-category-header-resonanz {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.2), transparent) !important;
}

.resonanz-card {
    border-left: 3px solid #22C55E !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.resonanz-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.resonanz-card-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    gap: 12px;
}

.resonanz-card-header {
    display: flex;
    flex-direction: column;
    min-width: 100px;
}

.resonanz-card-label {
    font-size: 13px;
    color: var(--text-primary, #fff);
    font-weight: 600;
}

.resonanz-card-beschreibung {
    font-size: 10px;
    color: var(--text-muted, #888);
    margin-top: 2px;
}

.resonanz-slider-row {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.resonanz-range-label {
    font-size: 10px;
    color: var(--text-muted, #666);
    min-width: 24px;
    text-align: center;
}

.resonanz-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right,
        rgba(239, 68, 68, 0.4) 0%,
        rgba(251, 191, 36, 0.4) 25%,
        rgba(34, 197, 94, 0.4) 50%,
        rgba(59, 130, 246, 0.4) 75%,
        rgba(139, 92, 246, 0.4) 100%);
    outline: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.resonanz-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #22C55E;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: grab;
    transition: transform 0.1s, box-shadow 0.2s;
}

.resonanz-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.resonanz-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.15);
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.5);
}

.resonanz-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #22C55E;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: grab;
    transition: transform 0.1s, box-shadow 0.2s;
}

.resonanz-slider::-moz-range-track {
    background: transparent;
    border: none;
}

.resonanz-card-input-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px;
    flex-shrink: 0;
}

.resonanz-card .resonanz-input,
input.resonanz-input {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    padding: 5px 4px !important;
    border: 1px solid rgba(34, 197, 94, 0.5) !important;
    border-radius: 4px !important;
    background: rgba(34, 197, 94, 0.1) !important;
    color: #22C55E !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    outline: none !important;
    transition: all 0.2s ease;
    box-sizing: border-box !important;
}

.resonanz-card .resonanz-input:focus,
input.resonanz-input:focus {
    border-color: #22C55E !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2) !important;
}

.resonanz-lock-indicator {
    width: 16px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease;
}

.resonanz-lock-indicator:hover {
    transform: scale(1.2);
}

.resonanz-card:not(.locked) .resonanz-lock-indicator::before {
    content: '🔓';
    font-size: 12px;
    opacity: 0.5;
}

.resonanz-card.locked {
    border-left-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.05);
}

.resonanz-card.locked .resonanz-input {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
    color: #f59e0b !important;
}

.resonanz-card.locked .resonanz-lock-indicator::before {
    content: '🔒';
    font-size: 12px;
}

.resonanz-card.locked .resonanz-slider {
    opacity: 0.5;
    pointer-events: none;
}

.resonanz-card.locked .resonanz-slider::-webkit-slider-thumb {
    border-color: #f59e0b;
}

.resonanz-card.locked .resonanz-slider::-moz-range-thumb {
    border-color: #f59e0b;
}

.resonanz-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
    margin-top: 8px;
}

.resonanz-hint {
    font-size: 11px;
    color: var(--text-muted, #888);
}

.resonanz-hint #resonanz-gfk {
    font-weight: 600;
    color: #22C55E;
}

/* Container für Resonanzfaktoren-Anzeige in Bedürfnisliste */
#flat-needs-resonanz-display {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 101 !important;
    margin-bottom: 12px;
}

/* Kompakte Resonanzfaktoren-Anzeige */
.resonanz-card-compact {
    border-left: 3px solid #22C55E !important;
    padding: 16px !important;
    background: linear-gradient(180deg, #1a1a1a 0%, #1a1a1a 85%, rgba(26, 26, 26, 0.95) 100%) !important;
    margin-bottom: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.resonanz-values-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    width: 100%;
}

.resonanz-value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 80px;
}

.resonanz-value-label-top {
    font-size: 13px;
    color: var(--text-primary, #fff);
    font-weight: 600;
    text-align: center;
}

.resonanz-value-label-sub {
    font-size: 10px;
    color: var(--text-muted, #888);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.resonanz-value-display {
    font-size: 24px;
    font-weight: 700;
    color: #22C55E;
    font-family: 'Courier New', monospace;
    text-align: center;
    min-width: 60px;
    margin-top: 4px;
}

.resonanz-value-item.locked .resonanz-value-display {
    color: #f59e0b;
}

/* ============================================
   SOURCE EXPLANATION STYLES
   ============================================ */

.profile-review-source-explanation {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    margin: 0 0 16px 0;
    overflow: hidden;
}

.source-explanation-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.source-explanation-header:hover {
    background: rgba(99, 102, 241, 0.1);
}

.source-explanation-icon {
    width: 22px;
    height: 22px;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #a5b4fc;
    flex-shrink: 0;
}

.source-explanation-title {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #a5b4fc;
}

.source-explanation-toggle {
    font-size: 10px;
    color: #a5b4fc;
    transition: transform 0.3s ease;
}

.source-explanation-toggle.collapsed {
    transform: rotate(-90deg);
}

.source-explanation-content {
    padding: 0 14px 14px 14px;
    display: block;
    transition: all 0.3s ease;
}

.source-explanation-content.collapsed {
    display: none;
}

.source-explanation-intro {
    font-size: 12px;
    color: var(--text-secondary, #aaa);
    margin: 0 0 10px 0;
}

.source-explanation-factors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.source-factor-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 11px;
}

.source-factor-tag .factor-label {
    color: var(--text-muted, #888);
}

.source-factor-tag .factor-value {
    color: var(--text-primary, #fff);
    font-weight: 500;
}

.source-explanation-note {
    font-size: 11px;
    color: var(--text-muted, #888);
    margin: 0;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    line-height: 1.5;
}

.source-explanation-link {
    display: inline-block;
    margin-left: 6px;
    color: #a5b4fc;
    text-decoration: none;
    font-style: normal;
    font-weight: 500;
}

.source-explanation-link:hover {
    color: #c7d2fe;
    text-decoration: underline;
}

/* ============================================
   ATTRIBUTE SUMMARY CARD STYLES
   ============================================ */

.attribute-summary-card {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid var(--primary, #457b9d) !important;
    border-radius: 6px !important;
    margin-bottom: 8px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.attribute-summary-card:hover {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.15);
}

.attribute-summary-card.locked {
    border-left-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.05) !important;
}

.attribute-summary-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 14px !important;
    width: 100%;
}

.attribute-summary-label-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.attribute-summary-label {
    font-size: 13px;
    color: var(--text-secondary, #aaa);
    font-weight: 500;
}

.attribute-summary-sublabel {
    font-size: 10px;
    color: var(--text-muted, #666);
    font-style: italic;
}

.attribute-summary-input-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px;
    flex-shrink: 0;
}

.attribute-summary-input {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    padding: 5px 4px !important;
    border: 1px solid rgba(69, 123, 157, 0.5) !important;
    border-radius: 4px !important;
    background: rgba(69, 123, 157, 0.1) !important;
    color: var(--primary, #457b9d) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    outline: none !important;
    transition: all 0.2s ease;
    box-sizing: border-box !important;
    cursor: default;
}

.attribute-summary-card.locked .attribute-summary-input {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
    color: #f59e0b !important;
}

.attribute-summary-percent {
    color: var(--text-muted, #888);
    font-size: 12px;
}

.attribute-summary-lock {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.attribute-summary-lock:hover {
    opacity: 1;
}

.attribute-summary-card:not(.locked) .attribute-summary-lock::before {
    content: '🔓';
    font-size: 12px;
}

.attribute-summary-card.locked .attribute-summary-lock::before {
    content: '🔒';
    font-size: 12px;
}

.attribute-summary-expand-icon {
    font-size: 10px;
    color: var(--text-muted, #888);
    transition: transform 0.2s ease;
    margin-left: 4px;
}

.attribute-summary-expand-icon.expanded {
    transform: rotate(180deg);
}

/* Bedürfnis-Liste (expandierbar) */
.attribute-summary-needs-list {
    padding: 0 14px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 0;
    background: rgba(0,0,0,0.1);
}

.attribute-summary-needs-list.collapsed {
    display: none;
}

.attribute-need-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    transition: background 0.2s;
}

.attribute-need-item:hover {
    background: rgba(255,255,255,0.06);
}

.attribute-need-label {
    font-size: 12px;
    color: var(--text-secondary, #aaa);
}

/* Klickbare Bedürfnis-Labels für Modal-Öffnung */
.attribute-need-label.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 2px 4px;
    margin: -2px -4px;
    border-radius: 4px;
}

.attribute-need-label.clickable:hover {
    color: var(--primary, #457b9d);
    background: rgba(69, 123, 157, 0.1);
    text-decoration: underline;
}

.attribute-need-label.clickable:active {
    background: rgba(69, 123, 157, 0.2);
}

.attribute-need-input-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.attribute-need-input {
    width: 45px !important;
    padding: 4px !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 4px !important;
    background: rgba(255,255,255,0.05) !important;
    color: var(--text-primary, #fff) !important;
    font-size: 12px !important;
    text-align: center !important;
    outline: none !important;
    transition: all 0.2s ease;
}

.attribute-need-input:focus {
    border-color: var(--primary, #457b9d) !important;
    box-shadow: 0 0 0 2px rgba(69, 123, 157, 0.2) !important;
}

.attribute-need-percent {
    font-size: 11px;
    color: var(--text-muted, #666);
}

/* Locked state für Bedürfnis-Inputs */
.attribute-summary-card.locked .attribute-need-input {
    background: rgba(245, 158, 11, 0.05) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: rgba(245, 158, 11, 0.7) !important;
    cursor: not-allowed;
}

/* ============================================
   CATEGORY LOCK STYLES
   ============================================ */

/* Kategorie-Zähler */
.profile-review-category-count {
    font-size: 12px;
    color: var(--text-muted, #888);
    font-weight: 400;
    margin-left: 4px;
}

/* Kategorie-Beschreibung (für Gewichtung und Resonanz) */
.profile-review-category-description {
    font-size: 11px;
    color: var(--text-muted, #888);
    font-weight: 400;
    font-style: italic;
    margin-left: 12px;
    opacity: 0.8;
}

/* Kategorie Lock-Symbol im Header */
.profile-review-category-lock {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
    border-radius: 4px;
}

.profile-review-category-lock:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.profile-review-category:not(.category-locked) .profile-review-category-lock::before {
    content: '🔓';
    font-size: 14px;
}

.profile-review-category.category-locked .profile-review-category-lock::before {
    content: '🔒';
    font-size: 14px;
}

/* Gesperrte Kategorie Styling */
.profile-review-category.category-locked {
    border-color: rgba(245, 158, 11, 0.3);
}

.profile-review-category.category-locked .profile-review-category-header {
    background: rgba(245, 158, 11, 0.05);
    border-bottom-color: rgba(245, 158, 11, 0.2);
}

.profile-review-category.category-locked .profile-review-category-count {
    color: #f59e0b;
}

/* Attribute-Karten wenn Kategorie gesperrt */
.attribute-summary-card.category-parent-locked {
    border-left-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.03) !important;
    pointer-events: none;
}

.attribute-summary-card.category-parent-locked .attribute-summary-input {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
    color: #f59e0b !important;
}

.attribute-summary-card.category-parent-locked .attribute-need-input {
    background: rgba(245, 158, 11, 0.05) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: rgba(245, 158, 11, 0.7) !important;
    cursor: not-allowed;
}

/* Lock-Symbol bei Attribut ausblenden wenn Kategorie gesperrt */
.attribute-summary-card.category-parent-locked .attribute-summary-lock {
    display: none;
}

/* Expand-Icon bei Kategorie-Lock auch ausblenden */
.attribute-summary-card.category-parent-locked .attribute-summary-expand-icon {
    opacity: 0.3;
}

/* ============================================
   NEED SLIDER CARD STYLES (NEU)
   ============================================ */

/* Need-Item mit Slider - Inline Layout */
.attribute-need-item.with-slider {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.attribute-need-item.with-slider:hover {
    background: rgba(255,255,255,0.07);
}

/* Header Row: Label + Input + Lock */
.need-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.need-item-header .attribute-need-label {
    flex: 1;
    font-size: 12px;
    color: var(--text-secondary, #aaa);
    font-weight: 500;
}

.need-item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Need Lock Icon */
.need-lock-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.5;
    font-size: 11px;
    transition: opacity 0.2s, transform 0.1s;
    border-radius: 4px;
}

.need-lock-icon:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}

.need-lock-icon:active {
    transform: scale(0.9);
}

.need-lock-icon::before {
    content: '🔓';
}

/* Locked Need State */
.attribute-need-item.with-slider.need-locked {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.attribute-need-item.with-slider.need-locked .need-lock-icon::before {
    content: '🔒';
}

.attribute-need-item.with-slider.need-locked .need-lock-icon {
    opacity: 1;
}

.attribute-need-item.with-slider.need-locked .attribute-need-input {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    color: #f59e0b !important;
}

.attribute-need-item.with-slider.need-locked .need-slider {
    opacity: 0.6;
    pointer-events: none;
}

/* Slider Row */
.need-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* Range Slider Styling */
.need-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right,
        rgba(59, 130, 246, 0.4) 0%,
        rgba(16, 185, 129, 0.4) 50%,
        rgba(245, 158, 11, 0.4) 100%);
    outline: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.need-slider:hover {
    background: linear-gradient(to right,
        rgba(59, 130, 246, 0.6) 0%,
        rgba(16, 185, 129, 0.6) 50%,
        rgba(245, 158, 11, 0.6) 100%);
}

/* Slider Thumb - Webkit (Chrome, Safari, Edge) */
.need-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary, #457b9d);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: grab;
    transition: transform 0.1s, box-shadow 0.2s;
}

.need-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.need-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.15);
    box-shadow: 0 2px 10px rgba(69, 123, 157, 0.5);
}

/* Slider Thumb - Firefox */
.need-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary, #457b9d);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: grab;
    transition: transform 0.1s, box-shadow 0.2s;
}

.need-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.need-slider::-moz-range-thumb:active {
    cursor: grabbing;
}

/* Slider Track - Firefox */
.need-slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right,
        rgba(59, 130, 246, 0.4) 0%,
        rgba(16, 185, 129, 0.4) 50%,
        rgba(245, 158, 11, 0.4) 100%);
}

/* Need Input neben Slider */
.need-slider-row .attribute-need-input {
    width: 42px !important;
    min-width: 42px !important;
    padding: 4px 2px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

/* Animierte Wert-Änderung */
@keyframes needValuePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.need-slider-row .attribute-need-input.value-changed {
    animation: needValuePulse 0.2s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* SEARCH/FILTER FUNCTIONALITY                                                   */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* Search Container (External - to be hidden when flat view is active) */
.profile-review-search-container {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 102;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Hide external search when flat view is active */
/* This will be controlled via JavaScript when flat view is rendered */

/* Search Container (Internal - inside flat-needs-header) */
.profile-review-search-container-internal {
    padding: 12px 0;
    margin-bottom: 8px;
}

/* Search Wrapper */
.profile-review-search-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.profile-review-search-wrapper:focus-within {
    border-color: var(--primary, #457b9d);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 2px rgba(69, 123, 157, 0.2);
}

/* Search Icon */
.profile-review-search-icon {
    font-size: 14px;
    margin-right: 8px;
    opacity: 0.7;
}

/* Search Input */
.profile-review-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary, #fff);
    font-size: 14px;
    padding: 0;
}

.profile-review-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Clear Button */
.profile-review-search-clear {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
    display: none;
}

.profile-review-search-clear:hover {
    color: rgba(255, 255, 255, 0.9);
}

.profile-review-search-wrapper.has-value .profile-review-search-clear {
    display: block;
}

/* Search Hint */
.profile-review-search-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    min-height: 14px;
}

.profile-review-search-hint.has-results {
    color: #22c55e;
}

.profile-review-search-hint.no-results {
    color: #ef4444;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* INTELLIGENT SEARCH SUGGESTIONS                                                */
/* ═══════════════════════════════════════════════════════════════════════════ */

.profile-review-search-wrapper {
    position: relative;
}

.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: rgba(20, 20, 30, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000; /* High z-index to appear above scrollable content */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    scrollbar-gutter: stable;
}

.search-suggestions-content {
    padding: 4px 4px 12px 4px;
    min-height: 0;
}

.suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 2px;
}

.suggestion-item:last-child {
    margin-bottom: 0;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: rgba(69, 123, 157, 0.25);
}

.suggestion-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestion-item-type {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.suggestion-item-type.type-need {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.suggestion-item-type.type-category {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.suggestion-item-type.type-dimension {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
}

.suggestion-item-type.type-perspective {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.suggestion-item-label {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    flex: 1;
}

.suggestion-item-id {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Courier New', monospace;
}

.suggestion-item-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    padding-left: 20px;
}

.suggestion-item-perspective {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    padding-left: 20px;
}

.suggestion-item-perspective-icon {
    font-size: 12px;
}

.suggestion-section-header {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
    padding: 8px 12px 4px;
    margin-top: 4px;
}

.suggestion-section-header:first-child {
    margin-top: 0;
}

.search-suggestions-empty {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.search-suggestions-dropdown::-webkit-scrollbar {
    width: 8px;
}

.search-suggestions-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.search-suggestions-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.search-suggestions-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* ACTIVE SEARCH SELECTION DISPLAY                                               */
/* ═══════════════════════════════════════════════════════════════════════════ */

.profile-review-search-hint.has-active-selection {
    margin-top: 8px;
    padding: 0;
}

.search-active-selection {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(69, 123, 157, 0.25);
    border: 1px solid rgba(69, 123, 157, 0.4);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
}

.search-active-type {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
    color: #fff;
}

.search-active-type.type-need {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.search-active-type.type-category {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

.search-active-type.type-dimension {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.search-active-type.type-resonanz {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.search-active-type.type-perspective {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

/* FIX #879: Textsuche-Filter für Bedürfnis-Suche */
.search-active-type.type-textsearch {
    background: linear-gradient(135deg, #64748b, #475569);
}

.search-active-label {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.search-active-id {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-family: 'Fira Code', monospace;
}

.search-active-clear {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.search-active-clear:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* FILTER VISIBILITY STATES                                                      */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* Hidden by filter */
.attribute-summary-card.filter-hidden,
.profile-review-category.filter-hidden {
    display: none !important;
}

/* Match highlight */
.attribute-need-item.filter-match {
    background: rgba(34, 197, 94, 0.15) !important;
    border-left: 2px solid #22c55e;
}

.attribute-need-label.search-highlight {
    background: rgba(255, 215, 0, 0.3);
    padding: 0 2px;
    border-radius: 2px;
}

/* Auto-expand cards with matches */
.attribute-summary-card.has-filter-match .attribute-summary-needs-list {
    max-height: none !important;
    opacity: 1 !important;
}

.attribute-summary-card.has-filter-match .attribute-summary-expand-icon {
    transform: rotate(180deg);
}

/* FLAT VIEW: Filter states for flat-need-item */
.flat-need-item.filter-hidden {
    display: none !important;
}

/* HAUPTFRAGEN VIEW: Filter states (unified via .flat-need-item.is-hauptfrage) */
.flat-need-item.is-hauptfrage.has-matching-nuancen {
    opacity: 0.85;
    border-left: 3px solid rgba(147, 51, 234, 0.5);
}

.flat-need-item.is-hauptfrage.has-matching-nuancen .need-slider {
    pointer-events: none;
    opacity: 0.5;
}

.flat-need-item.is-hauptfrage.has-matching-nuancen .flat-need-input {
    pointer-events: none;
    opacity: 0.5;
}

/* Nuancen innerhalb von nuancen-list filtern */
.nuancen-list .flat-need-item.filter-hidden {
    display: none !important;
}

/* FIX: DimensionKategorieFilter versteckt Bedürfnisse, aber lässt sie im DOM für Suche */
.flat-need-item.dimension-filter-hidden {
    display: none !important;
}

/* Zeige gefilterte Bedürfnisse wenn Suche aktiv und sie matchen */
.flat-need-item.dimension-filter-hidden.filter-match {
    display: block !important;
}

.flat-need-item.filter-match {
    background: rgba(34, 197, 94, 0.15) !important;
    border-left: 5px solid #22c55e !important;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* FLAT NEEDS DISPLAY - Alle Bedürfnisse wie in Ti-Age Synthese                 */
/* ═══════════════════════════════════════════════════════════════════════════ */

.flat-needs-container {
    padding: 0 4px;
}

.flat-needs-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 12px;
    border-bottom: none;
    margin-bottom: 0;
}

/* STICKY CONTROLS CONTAINER - Multi-Select + Filter + Sortierung */
.flat-needs-sticky-controls {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-card, #1a1a2e);
    backdrop-filter: blur(12px);
    padding: 12px;
    margin: 0 -4px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.flat-needs-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.flat-needs-subtitle {
    font-size: 12px;
    color: var(--text-muted, #888);
}

/* Kategorie-Container */
.flat-needs-category {
    margin-bottom: 8px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    overflow: hidden;
}

.flat-needs-category.collapsed .flat-needs-category-content {
    display: none;
}

.flat-needs-category.collapsed .flat-needs-category-expand {
    transform: rotate(-90deg);
}

.flat-needs-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.flat-needs-category-header:hover {
    background: rgba(255,255,255,0.08);
}

.flat-needs-category-icon {
    font-size: 16px;
}

.flat-needs-category-label {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary, #FFD700);
}

.flat-needs-category-count {
    font-size: 12px;
    color: var(--text-muted, #888);
}

.flat-needs-category-expand {
    font-size: 10px;
    color: var(--text-muted, #888);
    transition: transform 0.2s;
}

.flat-needs-category-content {
    padding: 8px 12px;
}

/* Einzelnes Bedürfnis-Item */
.flat-need-item {
    padding: 10px 12px;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    border-left: 3px solid var(--primary, #457b9d);
    transition: all 0.2s;
    cursor: pointer;
}

.flat-need-item:hover {
    background: rgba(255,255,255,0.06);
}

.flat-need-item.need-locked {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

/* Selected state for multi-select */
.flat-need-item.need-selected {
    background: rgba(34, 197, 94, 0.2);
    border-left-color: #22c55e !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
}

.flat-need-item.need-selected:hover {
    background: rgba(34, 197, 94, 0.25);
}

.flat-need-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.flat-need-label {
    font-size: 13px;
    color: var(--text-primary, #fff);
}

.flat-need-label.clickable {
    cursor: pointer;
}

.flat-need-label.clickable:hover {
    color: var(--primary, #FFD700);
    text-decoration: underline;
}

/* Sternchen-Indikator für geänderte Werte */
.value-changed-indicator {
    color: var(--primary, #FFD700);
    font-weight: bold;
    margin-left: 4px;
    font-size: 14px;
}

.flat-need-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flat-need-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flat-need-slider-row .need-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    cursor: pointer;
}

.flat-need-slider-row .need-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary, #FFD700);
    cursor: pointer;
    border: 2px solid rgba(0,0,0,0.3);
}

.flat-need-slider-row .need-slider:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.flat-need-input {
    width: 48px;
    padding: 6px 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
}

.flat-need-input:focus {
    outline: none;
    border-color: var(--primary, #FFD700);
}

/* Lock Icon für flache Darstellung */
.flat-need-item .need-lock-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.flat-need-item .need-lock-icon::before {
    content: "🔓";
    font-size: 14px;
}

.flat-need-item .need-lock-icon:hover {
    opacity: 1;
}

.flat-need-item.need-locked .need-lock-icon {
    opacity: 1;
}

.flat-need-item.need-locked .need-lock-icon::before {
    content: "🔒";
}

/* FIX v1.8.968: Status-Indikator-Punkt neben Schloss */
.flat-need-lock {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lock-status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.lock-status-indicator.saved {
    background: #22c55e; /* Grün = gespeichert */
    box-shadow: 0 0 4px #22c55e;
}

.lock-status-indicator.unsaved {
    background: #ef4444; /* Rot = nicht gespeichert */
    box-shadow: 0 0 4px #ef4444;
}

/* Value Changed State - Bedürfnis dessen Wert vom Standard abweicht */
.flat-need-item.value-changed {
    background: rgba(168, 85, 247, 0.08);
}

.flat-need-item.value-changed .flat-need-label {
    color: #a855f7;
}

/* Changed Indicator (Sternchen) */
.value-changed-indicator {
    color: #a855f7;
    font-weight: bold;
    margin-left: 4px;
}

/* Combined: Locked AND Changed */
.flat-need-item.need-locked.value-changed {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, rgba(168, 85, 247, 0.08) 100%);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* FLAT NEEDS LIST - Flache Liste ohne Kategorien-Gruppierung                   */
/* ═══════════════════════════════════════════════════════════════════════════ */

.flat-needs-no-categories .flat-needs-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
}

.flat-needs-no-categories .flat-need-item {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* COLLAPSIBLE SLIDERS SECTION                                                    */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* Collapse Header */
.flat-needs-collapse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.2s ease;
}

.flat-needs-collapse-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.flat-needs-collapse-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.flat-needs-collapse-icon {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease;
}

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

/* Collapsible Wrapper */
.flat-needs-list-wrapper {
    max-height: none;
    overflow: visible;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.flat-needs-list-wrapper.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

/* Header mit Sortierung und Standard-Button */
.flat-needs-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.flat-needs-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flat-needs-reset-btn {
    padding: 6px 12px;
    font-size: 11px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: var(--text-primary, #fff);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.flat-needs-reset-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--primary, #FFD700);
}

/* Sortierleiste */
.flat-needs-sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
}

.flat-needs-sort-label {
    font-size: 12px;
    color: var(--text-muted, #888);
}

.flat-needs-sort-btn {
    padding: 4px 10px;
    font-size: 11px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    color: var(--text-secondary, #aaa);
    cursor: pointer;
    transition: all 0.2s;
}

.flat-needs-sort-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary, #fff);
}

.flat-needs-sort-btn.active {
    background: var(--primary, #FFD700);
    border-color: var(--primary, #FFD700);
    color: #000;
    font-weight: 600;
}

/* Multi-Sort: Position-Badges (1, 2, 3) */
.flat-needs-sort-btn.sort-1::after,
.flat-needs-sort-btn.sort-2::after,
.flat-needs-sort-btn.sort-3::after {
    font-size: 9px;
    font-weight: bold;
    margin-left: 2px;
    opacity: 0.8;
}
.flat-needs-sort-btn.sort-1::after { content: '¹'; }
.flat-needs-sort-btn.sort-2::after { content: '²'; }
.flat-needs-sort-btn.sort-3::after { content: '³'; }

/* Richtungs-Button */
.flat-needs-sort-btn.sort-direction-btn {
    min-width: 28px;
    font-size: 14px;
    padding: 3px 6px;
}

/* Plus-Button (Multi-Sort Toggle) */
.flat-needs-sort-btn.sort-additive-btn {
    min-width: 28px;
    font-size: 16px;
    font-weight: bold;
    padding: 2px 6px;
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}
.flat-needs-sort-btn.sort-additive-btn:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.5);
}
.flat-needs-sort-btn.sort-additive-btn.active {
    background: #22c55e;
    border-color: #22c55e;
    color: #000;
}

/* Sort-Mode Indicator */
.sort-mode-indicator {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    margin-right: 8px;
}

/* Reset-Button */
.flat-needs-sort-btn.sort-reset-btn {
    min-width: 28px;
    font-size: 12px;
    padding: 3px 6px;
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}
.flat-needs-sort-btn.sort-reset-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
}
.flat-needs-sort-btn.sort-reset-btn.hidden {
    display: none;
}

/* Sort-Info (Multi-Sort Anzeige) */
.flat-needs-sort-info {
    font-size: 11px;
    color: var(--text-muted, #888);
    margin-top: 4px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
}

.flat-needs-sort-info .sort-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 500;
    margin: 0 2px;
}
.sort-badge.sort-1 { background: var(--primary, #FFD700); color: #000; }
.sort-badge.sort-2 { background: rgba(168, 85, 247, 0.3); color: #c084fc; }
.sort-badge.sort-3 { background: rgba(59, 130, 246, 0.3); color: #60a5fa; }

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Markierungs-/Selection-Bar für Bulk-Editing                                 */
/* ═══════════════════════════════════════════════════════════════════════════ */

.flat-needs-selection-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(34, 197, 94, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.flat-needs-selection-label {
    font-size: 12px;
    color: #22c55e;
    font-weight: 500;
}

.flat-needs-selection-btn {
    padding: 4px 10px;
    font-size: 11px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 4px;
    color: var(--text-secondary, #aaa);
    cursor: pointer;
    transition: all 0.2s;
}

.flat-needs-selection-btn:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.5);
    color: #22c55e;
}

.flat-needs-selection-btn:active {
    transform: scale(0.95);
}

/* Selection Counter */
.selection-counter {
    font-size: 12px;
    color: var(--text-muted, #888);
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 12px;
    background: transparent;
    transition: all 0.2s;
}

.selection-counter.has-selection {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Bulk Increment/Decrement Card (Plus/Minus Buttons für markierte Werte)      */
/* ═══════════════════════════════════════════════════════════════════════════ */

.bulk-increment-card {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 4px 8px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

.bulk-increment-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    min-width: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bulk-increment-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bulk-increment-btn:active {
    transform: scale(0.95);
}

.bulk-increment-btn.bulk-decrement {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.15) 100%);
    border-color: rgba(239, 68, 68, 0.4);
}

.bulk-increment-btn.bulk-decrement:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.35) 0%, rgba(220, 38, 38, 0.25) 100%);
    border-color: rgba(239, 68, 68, 0.6);
}

.bulk-increment-btn.bulk-increment {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.15) 100%);
    border-color: rgba(34, 197, 94, 0.4);
}

.bulk-increment-btn.bulk-increment:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.35) 0%, rgba(22, 163, 74, 0.25) 100%);
    border-color: rgba(34, 197, 94, 0.6);
}

.bulk-btn-icon {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.bulk-decrement .bulk-btn-icon {
    color: #ef4444;
}

.bulk-increment .bulk-btn-icon {
    color: #22c55e;
}

.bulk-btn-label {
    font-size: 10px;
    color: var(--text-muted, #888);
    margin-top: 2px;
}

/* Reset Button für markierte Werte */
.bulk-reset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    min-width: 48px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.bulk-reset-btn:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.35) 0%, rgba(245, 158, 11, 0.25) 100%);
    border-color: rgba(251, 191, 36, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.bulk-reset-btn:active {
    transform: scale(0.95);
}

.bulk-reset-btn .bulk-btn-icon {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: #fbbf24;
}

.bulk-reset-btn .bulk-btn-label {
    font-size: 9px;
    color: var(--text-muted, #888);
    margin-top: 2px;
}

/* Lock Button für markierte Werte */
.bulk-lock-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    min-width: 52px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.bulk-lock-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(37, 99, 235, 0.25) 100%);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.bulk-lock-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.bulk-lock-btn .bulk-btn-icon {
    font-size: 14px;
    line-height: 1;
}

.bulk-lock-btn .bulk-btn-label {
    font-size: 9px;
    color: var(--text-muted, #888);
    margin-top: 2px;
}

/* FIX v1.8.970: Copy Button für "In alle Archetypen kopieren" */
.bulk-copy-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    min-width: 52px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(147, 51, 234, 0.15) 100%);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.bulk-copy-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.35) 0%, rgba(147, 51, 234, 0.25) 100%);
    border-color: rgba(168, 85, 247, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}

.bulk-copy-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.bulk-copy-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.bulk-copy-btn .bulk-btn-icon {
    font-size: 14px;
    line-height: 1;
}

.bulk-copy-btn .bulk-btn-label {
    font-size: 9px;
    color: var(--text-muted, #888);
    margin-top: 2px;
}

.bulk-lock-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Speichern-Button */
.bulk-save-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    min-width: 52px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.15) 100%);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.bulk-save-btn:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.35) 0%, rgba(22, 163, 74, 0.25) 100%);
    border-color: rgba(34, 197, 94, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.bulk-save-btn:active {
    transform: scale(0.95);
}

.bulk-save-btn .bulk-btn-icon {
    font-size: 14px;
    line-height: 1;
}

.bulk-save-btn .bulk-btn-label {
    font-size: 9px;
    color: var(--text-muted, #888);
    margin-top: 2px;
}

/* Speichern Erfolg-Animation */
.bulk-save-btn.save-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.5) 0%, rgba(22, 163, 74, 0.4) 100%);
    border-color: rgba(34, 197, 94, 0.8);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.bulk-save-btn.save-success .bulk-btn-icon {
    color: #22c55e;
}

/* Speichern Fehler */
.bulk-save-btn.save-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(220, 38, 38, 0.2) 100%);
    border-color: rgba(239, 68, 68, 0.6);
}

/* Disabled State für Bulk-Buttons (wenn nichts markiert) */
.bulk-increment-card.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.bulk-increment-card.disabled .bulk-increment-btn,
.bulk-increment-card.disabled .bulk-reset-btn,
.bulk-increment-card.disabled .bulk-lock-btn {
    cursor: not-allowed;
    opacity: 0.5;
}

.bulk-increment-btn:disabled,
.bulk-reset-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

/* Lock-Button für alle gefilterten Bedürfnisse */
.bulk-lock-filtered-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    min-width: 52px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.bulk-lock-filtered-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(37, 99, 235, 0.25) 100%);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.bulk-lock-filtered-btn:active {
    transform: scale(0.95);
}

.bulk-lock-filtered-btn .bulk-btn-icon {
    font-size: 14px;
    line-height: 1;
}

.bulk-lock-filtered-btn .bulk-btn-label {
    font-size: 9px;
    color: var(--text-muted, #888);
    margin-top: 2px;
}

.bulk-lock-filtered-btn.disabled,
.bulk-lock-filtered-btn:disabled {
    cursor: not-allowed;
    opacity: 0.4;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Perspektiven-Filter (bei Kategorie-Sortierung)                              */
/* ═══════════════════════════════════════════════════════════════════════════ */

.flat-needs-perspektive-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255,255,255,0.08);
    flex-wrap: wrap;
}

.flat-needs-perspektive-label {
    font-size: 11px;
    color: var(--text-muted, #888);
    margin-right: 4px;
}

.flat-needs-perspektive-btn {
    padding: 4px 10px;
    font-size: 11px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: var(--text-secondary, #aaa);
    cursor: pointer;
    transition: all 0.2s;
}

.flat-needs-perspektive-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary, #fff);
    border-color: rgba(255,255,255,0.2);
}

/* Aktiver Perspektiven-Button (Alle) */
.flat-needs-perspektive-btn.active {
    background: var(--primary, #FFD700);
    border-color: var(--primary, #FFD700);
    color: #000;
    font-weight: 600;
}

/* Aktive Perspektiven-Buttons mit eigener Farbe */
.flat-needs-perspektive-btn.perspektive-p1.active {
    background: #3B82F6;
    border-color: #3B82F6;
    color: #fff;
}

.flat-needs-perspektive-btn.perspektive-p2.active {
    background: #F59E0B;
    border-color: #F59E0B;
    color: #000;
}

.flat-needs-perspektive-btn.perspektive-p3.active {
    background: #10B981;
    border-color: #10B981;
    color: #fff;
}

.flat-needs-perspektive-btn.perspektive-p4.active {
    background: #8B5CF6;
    border-color: #8B5CF6;
    color: #fff;
}

/* Hover für nicht-aktive Perspektiven-Buttons */
.flat-needs-perspektive-btn.perspektive-p1:not(.active):hover {
    border-color: #3B82F6;
    color: #3B82F6;
}

.flat-needs-perspektive-btn.perspektive-p2:not(.active):hover {
    border-color: #F59E0B;
    color: #F59E0B;
}

.flat-needs-perspektive-btn.perspektive-p3:not(.active):hover {
    border-color: #10B981;
    color: #10B981;
}

.flat-needs-perspektive-btn.perspektive-p4:not(.active):hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Kategorie-Sortierung: Dimension-Farben                                      */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* Kategorie-Modus: Items mit farblicher Kennzeichnung */
.flat-needs-list.kategorie-mode .flat-need-item.has-dimension-color {
    border-left-width: 5px;
    border-left-style: solid;
    padding-left: 12px;
    border-radius: 0 6px 6px 0;
    transition: border-left-color 0.2s ease, background 0.2s ease;
}

/* Hover-Effekt für Items mit Dimension-Farbe */
.flat-needs-list.kategorie-mode .flat-need-item.has-dimension-color:hover {
    background: rgba(255,255,255,0.06);
}

/* Slider-Thumb mit Dimension-Farbe im Kategorie-Modus */
.flat-needs-list.kategorie-mode .flat-need-item.has-dimension-color .need-slider::-webkit-slider-thumb {
    background: var(--dimension-color, #fff);
    border-color: rgba(0,0,0,0.4);
}

.flat-needs-list.kategorie-mode .flat-need-item.has-dimension-color .need-slider::-moz-range-thumb {
    background: var(--dimension-color, #fff);
    border-color: rgba(0,0,0,0.4);
}

/* Firefox: Track-Progress mit Dimension-Farbe */
.flat-needs-list.kategorie-mode .flat-need-item.has-dimension-color .need-slider::-moz-range-progress {
    background: var(--dimension-color, #3B82F6);
    border-radius: 3px;
    height: 6px;
}

.flat-needs-list.kategorie-mode .flat-need-item.has-dimension-color .need-slider::-moz-range-track {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    height: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DIMENSION-KATEGORIE-FILTER KOMPONENTE
   ═══════════════════════════════════════════════════════════════════════════
   Universeller 2-Ebenen-Filter für Bedürfnisse
   © 2025 Ti-age.de
   ═══════════════════════════════════════════════════════════════════════════ */

/* Filter Container */
.dimension-kategorie-filter {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

/* ─────────────────────────────────────────────────────────────────────────
   VIEW TOGGLE (Tags vs. Tree)
   ───────────────────────────────────────────────────────────────────────── */

.filter-view-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 4px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
}

.view-toggle-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle-btn:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
}

.view-toggle-btn.active {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #8B5CF6;
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────
   TREE VIEW CONTAINER
   ───────────────────────────────────────────────────────────────────────── */

.tree-view-container {
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 16px;
    margin-bottom: 12px;
}

/* Tree View innerhalb des Filter-Containers anpassen */
.tree-view-container .resonanz-tree-view {
    background: transparent;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.tree-view-container .tree-header {
    margin-bottom: 16px;
    padding-bottom: 10px;
}

/* ─────────────────────────────────────────────────────────────────────────
   EBENE 1: DIMENSIONEN
   ───────────────────────────────────────────────────────────────────────── */

.dimension-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 100px;
    z-index: 100;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 12px;
}

.dimension-filter-bar .filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #aaa);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

/* Dimension Buttons */
.dimension-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-primary, #fff);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.dimension-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.dimension-btn.active {
    background: var(--dimension-color, #3B82F6);
    border-color: var(--dimension-color, #3B82F6);
    color: white;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(var(--dimension-color-rgb, 59, 130, 246), 0.3);
}

.dimension-btn .dim-icon {
    font-size: 16px;
    line-height: 1;
}

.dimension-btn .dim-label {
    font-size: 13px;
}

.dimension-btn .dim-kurzform {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    font-family: monospace;
    margin-left: 2px;
}

.dimension-btn.active .dim-kurzform {
    background: rgba(255,255,255,0.25);
}

/* Spezial-Button "Alle Bereiche" */
.dimension-btn[data-dim="alle"] {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
}

.dimension-btn[data-dim="alle"].active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: #6366f1;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

/* ─────────────────────────────────────────────────────────────────────────
   EBENE 2: KATEGORIEN
   ───────────────────────────────────────────────────────────────────────── */

.kategorie-filter-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 10px 16px 10px 48px; /* Eingerückt */
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
}

/* Visuelle Verbindung zu Dimension (Linie) */
.kategorie-filter-bar::before {
    content: '';
    position: absolute;
    left: 20px;
    top: -12px;
    width: 2px;
    height: calc(100% + 12px);
    background: linear-gradient(to bottom,
        rgba(255,255,255,0.15) 0%,
        rgba(255,255,255,0.05) 100%);
    border-radius: 1px;
}

.kategorie-filter-bar .filter-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted, #888);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

/* Kategorie Buttons */
.kategorie-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: var(--text-primary, #fff);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kategorie-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

.kategorie-btn.active {
    background: var(--kategorie-color, #8B5CF6);
    border-color: var(--kategorie-color, #8B5CF6);
    color: white;
    font-weight: 600;
    box-shadow: 0 0 8px rgba(var(--kategorie-color-rgb, 139, 92, 246), 0.3);
}

.kategorie-btn .kat-label {
    font-size: 12px;
}

.kategorie-btn .kat-id {
    font-size: 9px;
    font-family: monospace;
    opacity: 0.6;
    background: rgba(255,255,255,0.1);
    padding: 2px 5px;
    border-radius: 3px;
}

.kategorie-btn.active .kat-id {
    opacity: 0.8;
    background: rgba(255,255,255,0.2);
}

/* "Alle" Button in Kategorien */
.kategorie-btn[data-kat="alle"] {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
}

.kategorie-btn[data-kat="alle"].active {
    background: rgba(139, 92, 246, 0.6);
    border-color: rgba(139, 92, 246, 0.8);
}

/* ─────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .dimension-filter-bar,
    .kategorie-filter-bar {
        padding-left: 12px;
        padding-right: 12px;
    }

    .dimension-btn .dim-label {
        display: none;
    }

    .dimension-btn {
        padding: 8px 10px;
    }

    .kategorie-btn .kat-label {
        font-size: 11px;
    }

    .kategorie-filter-bar {
        padding-left: 32px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────
   ANIMATION
   ───────────────────────────────────────────────────────────────────────── */

.kategorie-filter-bar {
    animation: slideDown 0.3s ease-out;
}

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

/* ═══════════════════════════════════════════════════════════════════════
   RESONANZ PROFILE MODAL CARD (außerhalb Scrollbereich im Modal Header)
   ─────────────────────────────────────────────────────────────────────── */

.resonanz-profile-modal-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.6) 0%, rgba(15, 15, 26, 0.4) 100%);
    border: 2px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    padding: 16px;
    margin: 12px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.resonanz-profile-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.resonanz-profile-modal-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.4));
}

.resonanz-profile-modal-text {
    font-size: 15px;
    font-weight: 700;
    color: #f0f0f0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.3px;
}

.resonanz-profile-modal-count {
    font-size: 12px;
    color: rgba(139, 92, 246, 0.7);
    font-weight: 500;
    margin-left: auto;
}

.resonanz-profile-modal-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.resonanz-profile-value-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1.5px solid var(--dimension-color, rgba(139, 92, 246, 0.25));
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.resonanz-profile-value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--dimension-color, rgba(139, 92, 246, 0.7));
    box-shadow: 0 1px 6px var(--dimension-color, rgba(139, 92, 246, 0.5));
}

.resonanz-profile-value-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25),
                0 0 15px var(--dimension-color, rgba(139, 92, 246, 0.3));
    border-color: var(--dimension-color, rgba(139, 92, 246, 0.5));
}

/* Aktiver/Ausgewählter State für Perspektive-Karten */
.resonanz-profile-value-item.active,
.resonanz-profile-value-item.selected {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3),
                0 0 25px var(--dimension-color, rgba(139, 92, 246, 0.5)),
                inset 0 0 0 2px var(--dimension-color, rgba(139, 92, 246, 0.8));
    border-color: var(--dimension-color, rgba(139, 92, 246, 0.8));
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.08) 0%,
        var(--dimension-color, rgba(139, 92, 246, 0.15)) 100%);
}

.resonanz-profile-value-item.active::after,
.resonanz-profile-value-item.selected::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 12px;
    color: var(--dimension-color, #8B5CF6);
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.resonanz-profile-value-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--dimension-color, #8B5CF6);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.resonanz-profile-value-id {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.resonanz-profile-value-number {
    font-size: 24px;
    font-weight: 900;
    color: #22c55e;
    text-shadow: 0 2px 6px rgba(34, 197, 94, 0.5),
                 0 3px 12px rgba(34, 197, 94, 0.3);
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

/* Responsive Design für Modal */
@media (max-width: 600px) {
    .resonanz-profile-modal-card {
        padding: 12px;
        margin: 10px 12px;
    }

    .resonanz-profile-modal-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .resonanz-profile-modal-count {
        margin-left: 0;
    }

    .resonanz-profile-modal-values {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .resonanz-profile-value-item {
        padding: 10px 6px;
    }

    .resonanz-profile-value-number {
        font-size: 20px;
    }

    .resonanz-profile-value-label {
        font-size: 10px;
    }
}

/* Animation für Werte-Updates */
@keyframes valueUpdate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

.resonanz-profile-value-number.updating {
    animation: valueUpdate 0.35s ease-in-out;
}

/* Loading State Animation für Modal Card */
@keyframes shimmerModal {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes pulseModal {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.resonanz-profile-modal-values.loading .resonanz-profile-value-item {
    position: relative;
    pointer-events: none;
}

.resonanz-profile-modal-values.loading .resonanz-profile-value-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139, 92, 246, 0.2),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmerModal 1.5s infinite;
    border-radius: 10px;
    z-index: 1;
}

.resonanz-profile-modal-values.loading .resonanz-profile-value-number {
    animation: pulseModal 1s infinite;
    color: rgba(255, 255, 255, 0.4);
    text-shadow: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HAUPTFRAGEN-ANSICHT - Konsolidierte Bedürfnisse mit aufklappbaren Nuancen
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hauptfragen-Modus Container */
.flat-needs-list.hauptfragen-mode {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
}

/* REFACTORING v1.8.985: Alte .hauptfrage-* CSS-Klassen entfernt
 * Hauptfragen verwenden jetzt .flat-need-item.is-hauptfrage (unified rendering)
 * Siehe neue Styles weiter oben bei .flat-need-item.is-hauptfrage */

/* Nuancen gelockt durch Hauptfrage */
.nuancen-list.nuancen-locked-by-parent {
    opacity: 0.7;
    position: relative;
}

.nuancen-list.nuancen-locked-by-parent::before {
    content: "🔒 Nuancen gesperrt (Hauptfrage gelockt)";
    display: block;
    font-size: 11px;
    color: var(--text-muted, #888);
    padding: 4px 8px;
    margin-bottom: 4px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 4px;
}

.nuancen-list.nuancen-locked-by-parent .flat-need-item {
    pointer-events: none;
}

.nuancen-list.nuancen-locked-by-parent .need-slider,
.nuancen-list.nuancen-locked-by-parent .flat-need-input {
    opacity: 0.5;
}

/* Nuancen-Liste (expandiert) - Card Style */
.nuancen-list {
    padding: 8px 12px 12px 48px;
    background: rgba(0, 0, 0, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Nuancen-Items als Sub-Cards */
.nuancen-list .flat-need-item {
    background: rgba(255, 255, 255, 0.02);
    border-left-width: 3px;
    padding: 10px 12px;
    margin: 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.15s ease;
}

.nuancen-list .flat-need-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Selected Nuancen inside list */
.nuancen-list .flat-need-item.need-selected {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .flat-needs-list.hauptfragen-mode {
        gap: 8px;
        padding: 8px;
    }

    .nuancen-list {
        padding: 6px 8px 8px 32px;
        gap: 4px;
    }

    .nuancen-list .flat-need-item {
        padding: 8px 10px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
 * R-FAKTOR EINFLUSS-BADGES
 * Zeigt bei jedem Bedürfnis an, zu welchem R-Faktor es beiträgt
 * ═══════════════════════════════════════════════════════════════════════ */

.r-factor-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 18px;
    padding: 0 6px;
    margin-right: 6px;
    font-size: 10px;
    font-weight: 700;
    color: var(--r-color, #8B5CF6);
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--r-color, #8B5CF6);
    border-radius: 4px;
    cursor: help;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.r-factor-badge:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3),
                0 0 12px color-mix(in srgb, var(--r-color, #8B5CF6) 40%, transparent);
}

/* Kern-Bedürfnisse (die 4-5 wichtigsten pro R-Faktor) */
.r-factor-badge.r-badge-core {
    opacity: 1;
    background: color-mix(in srgb, var(--r-color, #8B5CF6) 15%, transparent);
    font-weight: 800;
}

.r-factor-badge.r-badge-core::after {
    content: '★';
    margin-left: 2px;
    font-size: 8px;
}

/* Hohe Intensität (Wert >= 70) */
.r-factor-badge.r-badge-high {
    opacity: 1;
    background: color-mix(in srgb, var(--r-color, #8B5CF6) 25%, transparent);
    box-shadow: 0 0 8px color-mix(in srgb, var(--r-color, #8B5CF6) 50%, transparent);
    animation: rBadgePulse 2s ease-in-out infinite;
}

/* Niedrige Intensität (Wert <= 30) */
.r-factor-badge.r-badge-low {
    opacity: 0.5;
    border-style: dashed;
}

@keyframes rBadgePulse {
    0%, 100% {
        box-shadow: 0 0 8px color-mix(in srgb, var(--r-color, #8B5CF6) 50%, transparent);
    }
    50% {
        box-shadow: 0 0 16px color-mix(in srgb, var(--r-color, #8B5CF6) 70%, transparent),
                    0 0 24px color-mix(in srgb, var(--r-color, #8B5CF6) 30%, transparent);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .r-factor-badge {
        min-width: 20px;
        height: 16px;
        padding: 0 4px;
        font-size: 9px;
        margin-right: 4px;
    }

    .r-factor-badge.r-badge-core::after {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GOD-MODIFIKATOR BADGE
   Zeigt den Einfluss von Geschlecht, Orientierung und Dominanz auf Bedürfnisse
   Format: G:+5 D:+10 O:-5 direkt auf der Card
   ═══════════════════════════════════════════════════════════════════════════ */

.god-modifier-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
    font-size: 10px;
    font-weight: 600;
    font-family: monospace;
}

/* Einzelne Modifikator-Teile (G:+5, D:+10, O:-5) */
.god-mod-part {
    padding: 1px 4px;
    border-radius: 4px;
    cursor: help;
    transition: all 0.2s ease;
}

/* Geschlecht (G) - Lila */
.god-mod-part.god-mod-g {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.5);
}
.god-mod-part.god-mod-g.positive { color: #A855F7; }
.god-mod-part.god-mod-g.negative { color: #C084FC; }

/* Orientierung (O) - Blau */
.god-mod-part.god-mod-o {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
}
.god-mod-part.god-mod-o.positive { color: #3B82F6; }
.god-mod-part.god-mod-o.negative { color: #60A5FA; }

/* Dominanz (D) - Orange */
.god-mod-part.god-mod-d {
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.5);
}
.god-mod-part.god-mod-d.positive { color: #F97316; }
.god-mod-part.god-mod-d.negative { color: #FB923C; }

/* Hover-Effekt */
.god-mod-part:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .god-modifier-badge {
        gap: 2px;
        margin-right: 4px;
        font-size: 9px;
    }

    .god-mod-part {
        padding: 0 3px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   UNIFIED RENDERING v1.8.985: Hauptfragen-Features in flat-need-item
   Hauptfragen nutzen jetzt das gleiche Template wie Nuancen
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hauptfrage-Marker */
.flat-need-item.is-hauptfrage {
    border-width: 3px;
    border-left-width: 5px;
}

/* Expand Icon (▶/▼) */
.need-expand-icon {
    cursor: pointer;
    font-size: 12px;
    margin-right: 6px;
    opacity: 0.7;
    transition: opacity 0.2s;
    user-select: none;
    flex-shrink: 0;
}

.need-expand-icon:hover {
    opacity: 1;
}

/* Nuancen Count Badge */
.need-nuancen-count {
    font-size: 0.75rem;
    color: #999;
    margin-left: auto;
    margin-right: 8px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.need-nuancen-count:hover {
    color: #ccc;
}

/* Nuancen-Liste (eingebettet in flat-need-item) */
.flat-need-item.is-hauptfrage > .nuancen-list {
    padding-left: 16px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: 4px;
}

.flat-need-item.is-hauptfrage > .nuancen-list .flat-need-item {
    margin-bottom: 2px;
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SAVE STATUS BADGE
   FIX v1.8.975: Zeigt Speicher-Status (🟢 gespeichert / 🔴 nur RAM)
   Explicit Save Workflow - zeigt ob RAM-Werte mit TiageState synchron sind
   ═══════════════════════════════════════════════════════════════════════════ */

.save-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    margin-right: 6px;
    cursor: help;
    transition: all 0.2s ease;
    opacity: 0.9;
}

.save-status-badge:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Gespeichert (grün) - subtiler */
.save-status-badge.save-status-saved {
    opacity: 0.6;
}

.save-status-badge.save-status-saved:hover {
    opacity: 0.8;
}

/* Nicht gespeichert (rot) - auffälliger */
.save-status-badge.save-status-unsaved {
    opacity: 1;
    animation: saveStatusPulse 2s ease-in-out infinite;
}

@keyframes saveStatusPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .save-status-badge {
        font-size: 14px;
        margin-right: 4px;
    }
}
