/* Original: 645fcfe2740bb4a1065970b7deab701dca53a4b6fd5136c2198a1ea209daec23; nur Übungsselektoren, mobiles Überlaufen begrenzt. */

[data-systemisch-widget="ordnungen"] {
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

[data-systemisch-widget="ordnungen"] .header {
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
    background: var(--color-bg-secondary);
}

[data-systemisch-widget="ordnungen"] .header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-primary, #111111);
}

[data-systemisch-widget="ordnungen"] .subtitle {
    color: var(--color-border-dark, #6c757d);
    font-size: 16px;
}

[data-systemisch-widget="ordnungen"] .main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    min-height: 500px;
}

[data-systemisch-widget="ordnungen"] .controls {
    padding: 30px;
    border-right: 1px solid #e9ecef;
}

[data-systemisch-widget="ordnungen"] .results {
    padding: 30px;
    background: var(--color-bg-secondary);
}

[data-systemisch-widget="ordnungen"] .dimension {
    margin-bottom: 35px;
}

[data-systemisch-widget="ordnungen"] .dimension-question {
    font-size: 15px;
    color: var(--color-text-primary, #111111);
    margin-bottom: 10px;
    font-weight: 500;
}

[data-systemisch-widget="ordnungen"] .dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

[data-systemisch-widget="ordnungen"] .dimension-title {
    font-weight: 400;
    font-size: 14px;
    color: var(--color-border-dark, #6c757d);
}

[data-systemisch-widget="ordnungen"] .dimension-status {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-bg-dark, #343a40);
    text-align: right;
    min-width: 220px;
}

[data-systemisch-widget="ordnungen"] .slider-container {
    position: relative;
    margin-bottom: 8px;
}

[data-systemisch-widget="ordnungen"] .slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--color-bg-tertiary);
    outline: none;
    border-radius: 3px;
    transition: background 0.3s;
}

[data-systemisch-widget="ordnungen"] .slider:hover {
    background: var(--color-border-medium);
}

[data-systemisch-widget="ordnungen"] .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--color-text-secondary, #666666);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
}

[data-systemisch-widget="ordnungen"] .slider::-webkit-slider-thumb:hover {
    background: var(--color-bg-dark, #343a40);
    transform: scale(1.2);
}

[data-systemisch-widget="ordnungen"] .slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--color-text-secondary, #666666);
    cursor: pointer;
    border-radius: 50%;
    border: none;
    transition: all 0.2s;
}

[data-systemisch-widget="ordnungen"] .slider::-moz-range-thumb:hover {
    background: var(--color-bg-dark, #343a40);
    transform: scale(1.2);
}

[data-systemisch-widget="ordnungen"] .scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-text-secondary, #666666);
}

[data-systemisch-widget="ordnungen"] .recommendation {
    position: sticky;
    top: 20px;
}

[data-systemisch-widget="ordnungen"] .recommendation-box {
    padding: 20px;
    background: white;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

[data-systemisch-widget="ordnungen"] .recommendation-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

[data-systemisch-widget="ordnungen"] .recommendation-subtitle {
    font-size: 14px;
    color: var(--color-border-dark, #6c757d);
    margin-bottom: 16px;
}

[data-systemisch-widget="ordnungen"] .recommendation-details {
    font-size: 14px;
    line-height: 1.8;
    list-style: none;
    padding: 0;
}

[data-systemisch-widget="ordnungen"] .recommendation-details li {
    margin-left: 20px;
    margin-bottom: 8px;
    position: relative;
}

[data-systemisch-widget="ordnungen"] .recommendation-details li:before {
    content: "•";
    position: absolute;
    left: -20px;
    color: var(--color-border-dark, #6c757d);
}

[data-systemisch-widget="ordnungen"] .recommendation-details strong {
    color: var(--color-error);
    font-weight: 600;
}

[data-systemisch-widget="ordnungen"] /* Empfehlungsfarben */
.rec-planning {
    border-color: var(--color-primary, #21588F);
}

[data-systemisch-widget="ordnungen"] .rec-planning .recommendation-title {
    color: var(--color-primary, #21588F);
}

[data-systemisch-widget="ordnungen"] .rec-experiment {
    border-color: var(--color-success, #28a745);
}

[data-systemisch-widget="ordnungen"] .rec-experiment .recommendation-title {
    color: var(--color-success, #28a745);
}

[data-systemisch-widget="ordnungen"] .rec-hybrid {
    border-color: var(--color-warning-text, #856404);
}

[data-systemisch-widget="ordnungen"] .rec-hybrid .recommendation-title {
    color: var(--color-warning-text, #856404);
}

[data-systemisch-widget="ordnungen"] .score-breakdown {
    padding: 20px;
    background: white;
    border-radius: 4px;
}

[data-systemisch-widget="ordnungen"] .score-breakdown-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-text-secondary, #666666);
}

[data-systemisch-widget="ordnungen"] .score-bar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

[data-systemisch-widget="ordnungen"] .score-label {
    font-size: 13px;
    width: 90px;
    color: var(--color-text-secondary, #666666);
    font-weight: 500;
}

[data-systemisch-widget="ordnungen"] .score-progress {
    flex: 1;
    height: 20px;
    background: var(--color-bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-right: 10px;
}

[data-systemisch-widget="ordnungen"] .score-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

[data-systemisch-widget="ordnungen"] .score-fill-planning {
    background: var(--color-primary, #21588F);
}

[data-systemisch-widget="ordnungen"] .score-fill-experiment {
    background: var(--color-success, #28a745);
}

[data-systemisch-widget="ordnungen"] .score-percentage {
    font-size: 13px;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}


[data-systemisch-widget="wahrnehmung"] {
    position: relative;
    width: 100%;
    height: 600px;
    background: var(--color-bg-dark, #343a40);
    overflow: hidden;
    cursor: none;
}
[data-systemisch-widget="wahrnehmung"] .searchlight-canvas {
    display: block;
    width: 100%;
    height: 100%;
}
[data-systemisch-widget="wahrnehmung"] .searchlight-info-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 8px;
    max-width: 300px;
    z-index: 10;
    backdrop-filter: blur(10px);
}
[data-systemisch-widget="wahrnehmung"] .searchlight-info-panel__title {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: var(--color-text-white, #ffffff);
    font-weight: 600;
}
[data-systemisch-widget="wahrnehmung"] .searchlight-info-panel__text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-light, #cccccc);
    margin: 0;
}
[data-systemisch-widget="wahrnehmung"] .searchlight-instruction {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--color-text-light, #cccccc);
    z-index: 10;
    backdrop-filter: blur(10px);
    transition: opacity 0.5s;
}

@media (max-width: 768px) {
    [data-systemisch-widget="wahrnehmung"] { height: 400px; }
    [data-systemisch-widget="wahrnehmung"] .searchlight-info-panel {
        max-width: 200px;
        padding: 15px;
    }
    [data-systemisch-widget="wahrnehmung"] .searchlight-info-panel__title { font-size: 16px; }
    [data-systemisch-widget="wahrnehmung"] .searchlight-info-panel__text { font-size: 12px; }
    [data-systemisch-widget="wahrnehmung"] .searchlight-instruction {
        font-size: 12px;
        padding: 8px 16px;
    }
}

@media (max-width: 768px) {
    [data-systemisch-widget="ordnungen"] .main-content { grid-template-columns: minmax(0, 1fr); }
    [data-systemisch-widget="ordnungen"] .controls { border-right: none; border-bottom: 1px solid #e9ecef; }
    [data-systemisch-widget="ordnungen"] .recommendation { position: static; }
    [data-systemisch-widget="ordnungen"] .controls,
    [data-systemisch-widget="ordnungen"] .results,
    [data-systemisch-widget="ordnungen"] .header { padding: 16px; }
    [data-systemisch-widget="ordnungen"] .dimension-header { flex-wrap: wrap; }
    [data-systemisch-widget="ordnungen"] .dimension-status { min-width: 0; text-align: left; }
}
[data-systemisch-widget="ordnungen"] .slider:focus-visible { outline: 1px solid var(--color-primary, #21588F); outline-offset: 3px; }
